protocol.pb.cc 440 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475
  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. , radar8_(0){}
  477. struct CCRadarMessageDefaultTypeInternal {
  478. constexpr CCRadarMessageDefaultTypeInternal()
  479. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  480. ~CCRadarMessageDefaultTypeInternal() {}
  481. union {
  482. CCRadarMessage _instance;
  483. };
  484. };
  485. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  486. constexpr CCSensor::CCSensor(
  487. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  488. : node_()
  489. , left_encode_(0)
  490. , right_encode_(0){}
  491. struct CCSensorDefaultTypeInternal {
  492. constexpr CCSensorDefaultTypeInternal()
  493. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  494. ~CCSensorDefaultTypeInternal() {}
  495. union {
  496. CCSensor _instance;
  497. };
  498. };
  499. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSensorDefaultTypeInternal _CCSensor_default_instance_;
  500. constexpr CCSwitch::CCSwitch(
  501. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  502. : front_(false){}
  503. struct CCSwitchDefaultTypeInternal {
  504. constexpr CCSwitchDefaultTypeInternal()
  505. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  506. ~CCSwitchDefaultTypeInternal() {}
  507. union {
  508. CCSwitch _instance;
  509. };
  510. };
  511. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  512. constexpr State::State(
  513. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  514. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  515. , work_pressure_(0)
  516. , brake_pressure_(0)
  517. , gearbox_oil_temp_(0)
  518. , gearbox_oil_pressure_(0)
  519. , engine_rpm_(0)
  520. , speed_(0)
  521. , gear_(0)
  522. , engine_pressure_(0)
  523. , cold_water_(0)
  524. , steer_angle_(0)
  525. , left_lock_(0)
  526. , right_lock_(0)
  527. , engine_time_(0)
  528. , wire_sensor_l_(0)
  529. , wire_sensor_r_(0)
  530. , fuel_level_(0)
  531. , lock_switch_l_(0)
  532. , lock_switch_r_(0)
  533. , tip_limit_(0)
  534. , turn_left_(0)
  535. , turn_right_(0)
  536. , hight_beam_(0)
  537. , low_beam_(0)
  538. , parking_(0)
  539. , brake_(0)
  540. , back_car_(0)
  541. , front_work_lamp_(0)
  542. , rear_work_lamp_(0)
  543. , cargo_weight_(0)
  544. , system_vol_(0)
  545. , f_gear_(0)
  546. , gear_1_(0)
  547. , outgrigger_l_(0)
  548. , outgrigger_r_(0)
  549. , tip_pressure_(0){}
  550. struct StateDefaultTypeInternal {
  551. constexpr StateDefaultTypeInternal()
  552. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  553. ~StateDefaultTypeInternal() {}
  554. union {
  555. State _instance;
  556. };
  557. };
  558. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  559. constexpr LidarPoint::LidarPoint(
  560. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  561. : data_()
  562. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  563. , timestamp_(0)
  564. , seq_(0u)
  565. , height_(0u)
  566. , width_(0u)
  567. , is_dense_(false)
  568. , is_left_(false){}
  569. struct LidarPointDefaultTypeInternal {
  570. constexpr LidarPointDefaultTypeInternal()
  571. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  572. ~LidarPointDefaultTypeInternal() {}
  573. union {
  574. LidarPoint _instance;
  575. };
  576. };
  577. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  578. constexpr SensorStop::SensorStop(
  579. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  580. struct SensorStopDefaultTypeInternal {
  581. constexpr SensorStopDefaultTypeInternal()
  582. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  583. ~SensorStopDefaultTypeInternal() {}
  584. union {
  585. SensorStop _instance;
  586. };
  587. };
  588. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  589. constexpr StopAck::StopAck(
  590. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  591. struct StopAckDefaultTypeInternal {
  592. constexpr StopAckDefaultTypeInternal()
  593. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  594. ~StopAckDefaultTypeInternal() {}
  595. union {
  596. StopAck _instance;
  597. };
  598. };
  599. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  600. constexpr can_net_frame::can_net_frame(
  601. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  602. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  603. , dlc_(0)
  604. , canid_(0){}
  605. struct can_net_frameDefaultTypeInternal {
  606. constexpr can_net_frameDefaultTypeInternal()
  607. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  608. ~can_net_frameDefaultTypeInternal() {}
  609. union {
  610. can_net_frame _instance;
  611. };
  612. };
  613. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  614. constexpr CCCanMsg::CCCanMsg(
  615. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  616. : frams_(){}
  617. struct CCCanMsgDefaultTypeInternal {
  618. constexpr CCCanMsgDefaultTypeInternal()
  619. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  620. ~CCCanMsgDefaultTypeInternal() {}
  621. union {
  622. CCCanMsg _instance;
  623. };
  624. };
  625. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  626. constexpr SCAddRobot::SCAddRobot(
  627. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  628. : robot_(nullptr){}
  629. struct SCAddRobotDefaultTypeInternal {
  630. constexpr SCAddRobotDefaultTypeInternal()
  631. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  632. ~SCAddRobotDefaultTypeInternal() {}
  633. union {
  634. SCAddRobot _instance;
  635. };
  636. };
  637. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  638. constexpr SCDelRobot::SCDelRobot(
  639. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  640. : peer_(0)
  641. , egotype_(0){}
  642. struct SCDelRobotDefaultTypeInternal {
  643. constexpr SCDelRobotDefaultTypeInternal()
  644. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  645. ~SCDelRobotDefaultTypeInternal() {}
  646. union {
  647. SCDelRobot _instance;
  648. };
  649. };
  650. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  651. } // namespace RemoNet
  652. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[43];
  653. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  654. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  655. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  656. ~0u, // no _has_bits_
  657. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, _internal_metadata_),
  658. ~0u, // no _extensions_
  659. ~0u, // no _oneof_case_
  660. ~0u, // no _weak_field_map_
  661. ~0u, // no _inlined_string_donated_
  662. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, peer_),
  663. ~0u, // no _has_bits_
  664. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, _internal_metadata_),
  665. ~0u, // no _extensions_
  666. ~0u, // no _oneof_case_
  667. ~0u, // no _weak_field_map_
  668. ~0u, // no _inlined_string_donated_
  669. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, x_),
  670. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, y_),
  671. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, z_),
  672. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rx_),
  673. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, ry_),
  674. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rz_),
  675. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rw_),
  676. ~0u, // no _has_bits_
  677. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, _internal_metadata_),
  678. ~0u, // no _extensions_
  679. ~0u, // no _oneof_case_
  680. ~0u, // no _weak_field_map_
  681. ~0u, // no _inlined_string_donated_
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, peer_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, area_),
  684. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, no_),
  685. ~0u, // no _has_bits_
  686. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, _internal_metadata_),
  687. ~0u, // no _extensions_
  688. ~0u, // no _oneof_case_
  689. ~0u, // no _weak_field_map_
  690. ~0u, // no _inlined_string_donated_
  691. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, desc_),
  692. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, peer_),
  693. ~0u, // no _has_bits_
  694. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, _internal_metadata_),
  695. ~0u, // no _extensions_
  696. ~0u, // no _oneof_case_
  697. ~0u, // no _weak_field_map_
  698. ~0u, // no _inlined_string_donated_
  699. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, area_),
  700. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, no_),
  701. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, uid_),
  702. ~0u, // no _has_bits_
  703. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, _internal_metadata_),
  704. ~0u, // no _extensions_
  705. ~0u, // no _oneof_case_
  706. ~0u, // no _weak_field_map_
  707. ~0u, // no _inlined_string_donated_
  708. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, uid_),
  709. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, area_),
  710. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, no_),
  711. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, x_),
  712. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, y_),
  713. ~0u, // no _has_bits_
  714. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, _internal_metadata_),
  715. ~0u, // no _extensions_
  716. ~0u, // no _oneof_case_
  717. ~0u, // no _weak_field_map_
  718. ~0u, // no _inlined_string_donated_
  719. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, area_),
  720. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, no_),
  721. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, uid_),
  722. ~0u, // no _has_bits_
  723. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  724. ~0u, // no _extensions_
  725. ~0u, // no _oneof_case_
  726. ~0u, // no _weak_field_map_
  727. ~0u, // no _inlined_string_donated_
  728. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  729. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  730. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  731. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, car_),
  732. ~0u, // no _has_bits_
  733. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  734. ~0u, // no _extensions_
  735. ~0u, // no _oneof_case_
  736. ~0u, // no _weak_field_map_
  737. ~0u, // no _inlined_string_donated_
  738. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  739. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  740. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  741. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, car_),
  742. ~0u, // no _has_bits_
  743. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  744. ~0u, // no _extensions_
  745. ~0u, // no _oneof_case_
  746. ~0u, // no _weak_field_map_
  747. ~0u, // no _inlined_string_donated_
  748. ~0u, // no _has_bits_
  749. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, _internal_metadata_),
  750. ~0u, // no _extensions_
  751. ~0u, // no _oneof_case_
  752. ~0u, // no _weak_field_map_
  753. ~0u, // no _inlined_string_donated_
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, state_),
  755. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, uid_),
  756. ~0u, // no _has_bits_
  757. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, _internal_metadata_),
  758. ~0u, // no _extensions_
  759. ~0u, // no _oneof_case_
  760. ~0u, // no _weak_field_map_
  761. ~0u, // no _inlined_string_donated_
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, state_),
  763. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, uid_),
  764. ~0u, // no _has_bits_
  765. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  766. ~0u, // no _extensions_
  767. ~0u, // no _oneof_case_
  768. ~0u, // no _weak_field_map_
  769. ~0u, // no _inlined_string_donated_
  770. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  772. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  774. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, cartype_),
  775. ~0u, // no _has_bits_
  776. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  777. ~0u, // no _extensions_
  778. ~0u, // no _oneof_case_
  779. ~0u, // no _weak_field_map_
  780. ~0u, // no _inlined_string_donated_
  781. ~0u, // no _has_bits_
  782. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  783. ~0u, // no _extensions_
  784. ~0u, // no _oneof_case_
  785. ~0u, // no _weak_field_map_
  786. ~0u, // no _inlined_string_donated_
  787. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  788. ~0u, // no _has_bits_
  789. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  790. ~0u, // no _extensions_
  791. ~0u, // no _oneof_case_
  792. ~0u, // no _weak_field_map_
  793. ~0u, // no _inlined_string_donated_
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  795. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  796. ~0u, // no _has_bits_
  797. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _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::SCSign, ret_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  804. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  805. ~0u, // no _has_bits_
  806. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  807. ~0u, // no _extensions_
  808. ~0u, // no _oneof_case_
  809. ~0u, // no _weak_field_map_
  810. ~0u, // no _inlined_string_donated_
  811. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  812. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  813. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  814. ~0u, // no _has_bits_
  815. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  816. ~0u, // no _extensions_
  817. ~0u, // no _oneof_case_
  818. ~0u, // no _weak_field_map_
  819. ~0u, // no _inlined_string_donated_
  820. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  821. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  822. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  823. ~0u, // no _has_bits_
  824. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  825. ~0u, // no _extensions_
  826. ~0u, // no _oneof_case_
  827. ~0u, // no _weak_field_map_
  828. ~0u, // no _inlined_string_donated_
  829. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  831. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  832. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  833. ~0u, // no _has_bits_
  834. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  835. ~0u, // no _extensions_
  836. ~0u, // no _oneof_case_
  837. ~0u, // no _weak_field_map_
  838. ~0u, // no _inlined_string_donated_
  839. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  840. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  842. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  843. ~0u, // no _has_bits_
  844. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  845. ~0u, // no _extensions_
  846. ~0u, // no _oneof_case_
  847. ~0u, // no _weak_field_map_
  848. ~0u, // no _inlined_string_donated_
  849. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  852. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  853. ~0u, // no _has_bits_
  854. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _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::Answer, index_),
  860. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  861. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  862. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  863. ~0u, // no _has_bits_
  864. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  865. ~0u, // no _extensions_
  866. ~0u, // no _oneof_case_
  867. ~0u, // no _weak_field_map_
  868. ~0u, // no _inlined_string_donated_
  869. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  870. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  871. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  872. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  873. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  874. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  875. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  876. ~0u, // no _has_bits_
  877. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  878. ~0u, // no _extensions_
  879. ~0u, // no _oneof_case_
  880. ~0u, // no _weak_field_map_
  881. ~0u, // no _inlined_string_donated_
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  883. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  884. ~0u, // no _has_bits_
  885. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  886. ~0u, // no _extensions_
  887. ~0u, // no _oneof_case_
  888. ~0u, // no _weak_field_map_
  889. ~0u, // no _inlined_string_donated_
  890. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  891. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  892. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  893. ~0u, // no _has_bits_
  894. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  895. ~0u, // no _extensions_
  896. ~0u, // no _oneof_case_
  897. ~0u, // no _weak_field_map_
  898. ~0u, // no _inlined_string_donated_
  899. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  900. ~0u, // no _has_bits_
  901. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, _internal_metadata_),
  902. ~0u, // no _extensions_
  903. ~0u, // no _oneof_case_
  904. ~0u, // no _weak_field_map_
  905. ~0u, // no _inlined_string_donated_
  906. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_sec_),
  907. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_min_),
  908. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_hour_),
  909. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mday_),
  910. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mon_),
  911. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_year_),
  912. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_wday_),
  913. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_yday_),
  914. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_isdst_),
  915. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, update_time_),
  916. ~0u, // no _has_bits_
  917. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  918. ~0u, // no _extensions_
  919. ~0u, // no _oneof_case_
  920. ~0u, // no _weak_field_map_
  921. ~0u, // no _inlined_string_donated_
  922. ~0u, // no _has_bits_
  923. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  924. ~0u, // no _extensions_
  925. ~0u, // no _oneof_case_
  926. ~0u, // no _weak_field_map_
  927. ~0u, // no _inlined_string_donated_
  928. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  929. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  930. ~0u, // no _has_bits_
  931. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  932. ~0u, // no _extensions_
  933. ~0u, // no _oneof_case_
  934. ~0u, // no _weak_field_map_
  935. ~0u, // no _inlined_string_donated_
  936. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  937. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, temp_),
  938. ~0u, // no _has_bits_
  939. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, _internal_metadata_),
  940. ~0u, // no _extensions_
  941. ~0u, // no _oneof_case_
  942. ~0u, // no _weak_field_map_
  943. ~0u, // no _inlined_string_donated_
  944. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, id_),
  945. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, range_),
  946. ~0u, // no _has_bits_
  947. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  948. ~0u, // no _extensions_
  949. ~0u, // no _oneof_case_
  950. ~0u, // no _weak_field_map_
  951. ~0u, // no _inlined_string_donated_
  952. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  953. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  954. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  955. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  956. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  957. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  958. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  959. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  960. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar8_),
  961. ~0u, // no _has_bits_
  962. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, _internal_metadata_),
  963. ~0u, // no _extensions_
  964. ~0u, // no _oneof_case_
  965. ~0u, // no _weak_field_map_
  966. ~0u, // no _inlined_string_donated_
  967. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, node_),
  968. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, left_encode_),
  969. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, right_encode_),
  970. ~0u, // no _has_bits_
  971. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _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::CCSwitch, front_),
  977. ~0u, // no _has_bits_
  978. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  979. ~0u, // no _extensions_
  980. ~0u, // no _oneof_case_
  981. ~0u, // no _weak_field_map_
  982. ~0u, // no _inlined_string_donated_
  983. PROTOBUF_FIELD_OFFSET(::RemoNet::State, work_pressure_),
  984. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_pressure_),
  985. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_temp_),
  986. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_pressure_),
  987. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_rpm_),
  988. PROTOBUF_FIELD_OFFSET(::RemoNet::State, speed_),
  989. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gear_),
  990. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_pressure_),
  991. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cold_water_),
  992. PROTOBUF_FIELD_OFFSET(::RemoNet::State, steer_angle_),
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_lock_),
  994. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_lock_),
  995. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_time_),
  996. PROTOBUF_FIELD_OFFSET(::RemoNet::State, wire_sensor_l_),
  997. PROTOBUF_FIELD_OFFSET(::RemoNet::State, wire_sensor_r_),
  998. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  999. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lock_switch_l_),
  1000. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lock_switch_r_),
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::State, tip_limit_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::State, turn_left_),
  1003. PROTOBUF_FIELD_OFFSET(::RemoNet::State, turn_right_),
  1004. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hight_beam_),
  1005. PROTOBUF_FIELD_OFFSET(::RemoNet::State, low_beam_),
  1006. PROTOBUF_FIELD_OFFSET(::RemoNet::State, parking_),
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_),
  1008. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_car_),
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_work_lamp_),
  1010. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rear_work_lamp_),
  1011. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cargo_weight_),
  1012. PROTOBUF_FIELD_OFFSET(::RemoNet::State, system_vol_),
  1013. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::State, f_gear_),
  1015. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gear_1_),
  1016. PROTOBUF_FIELD_OFFSET(::RemoNet::State, outgrigger_l_),
  1017. PROTOBUF_FIELD_OFFSET(::RemoNet::State, outgrigger_r_),
  1018. PROTOBUF_FIELD_OFFSET(::RemoNet::State, tip_pressure_),
  1019. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  1020. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  1021. ~0u, // no _extensions_
  1022. ~0u, // no _oneof_case_
  1023. ~0u, // no _weak_field_map_
  1024. ~0u, // no _inlined_string_donated_
  1025. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  1026. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  1027. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  1028. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  1029. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  1031. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  1032. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  1033. 1,
  1034. 2,
  1035. 0,
  1036. 3,
  1037. 4,
  1038. 5,
  1039. 6,
  1040. ~0u,
  1041. ~0u, // no _has_bits_
  1042. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  1043. ~0u, // no _extensions_
  1044. ~0u, // no _oneof_case_
  1045. ~0u, // no _weak_field_map_
  1046. ~0u, // no _inlined_string_donated_
  1047. ~0u, // no _has_bits_
  1048. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  1049. ~0u, // no _extensions_
  1050. ~0u, // no _oneof_case_
  1051. ~0u, // no _weak_field_map_
  1052. ~0u, // no _inlined_string_donated_
  1053. ~0u, // no _has_bits_
  1054. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1055. ~0u, // no _extensions_
  1056. ~0u, // no _oneof_case_
  1057. ~0u, // no _weak_field_map_
  1058. ~0u, // no _inlined_string_donated_
  1059. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1060. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1061. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1062. ~0u, // no _has_bits_
  1063. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1064. ~0u, // no _extensions_
  1065. ~0u, // no _oneof_case_
  1066. ~0u, // no _weak_field_map_
  1067. ~0u, // no _inlined_string_donated_
  1068. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1069. ~0u, // no _has_bits_
  1070. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  1071. ~0u, // no _extensions_
  1072. ~0u, // no _oneof_case_
  1073. ~0u, // no _weak_field_map_
  1074. ~0u, // no _inlined_string_donated_
  1075. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  1076. ~0u, // no _has_bits_
  1077. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  1078. ~0u, // no _extensions_
  1079. ~0u, // no _oneof_case_
  1080. ~0u, // no _weak_field_map_
  1081. ~0u, // no _inlined_string_donated_
  1082. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  1083. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  1084. };
  1085. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1086. { 0, -1, -1, sizeof(::RemoNet::SwitchDriver)},
  1087. { 7, -1, -1, sizeof(::RemoNet::NDTPos)},
  1088. { 20, -1, -1, sizeof(::RemoNet::CSMoveBegin)},
  1089. { 29, -1, -1, sizeof(::RemoNet::MoveRet)},
  1090. { 37, -1, -1, sizeof(::RemoNet::CSMoveEnd)},
  1091. { 46, -1, -1, sizeof(::RemoNet::SCMoveBegin)},
  1092. { 57, -1, -1, sizeof(::RemoNet::SCMoveEnd)},
  1093. { 66, -1, -1, sizeof(::RemoNet::CSAdd)},
  1094. { 76, -1, -1, sizeof(::RemoNet::SCAdd)},
  1095. { 86, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1096. { 92, -1, -1, sizeof(::RemoNet::CSState)},
  1097. { 100, -1, -1, sizeof(::RemoNet::SCState)},
  1098. { 108, -1, -1, sizeof(::RemoNet::Robot)},
  1099. { 119, -1, -1, sizeof(::RemoNet::CSRobot)},
  1100. { 125, -1, -1, sizeof(::RemoNet::SCRobot)},
  1101. { 132, -1, -1, sizeof(::RemoNet::CSSign)},
  1102. { 140, -1, -1, sizeof(::RemoNet::SCSign)},
  1103. { 149, -1, -1, sizeof(::RemoNet::CSReq)},
  1104. { 158, -1, -1, sizeof(::RemoNet::SCReq)},
  1105. { 167, -1, -1, sizeof(::RemoNet::CSRep)},
  1106. { 177, -1, -1, sizeof(::RemoNet::SCRep)},
  1107. { 187, -1, -1, sizeof(::RemoNet::Offer)},
  1108. { 197, -1, -1, sizeof(::RemoNet::Answer)},
  1109. { 207, -1, -1, sizeof(::RemoNet::Candidate)},
  1110. { 220, -1, -1, sizeof(::RemoNet::Leave)},
  1111. { 228, -1, -1, sizeof(::RemoNet::Close)},
  1112. { 237, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1113. { 244, -1, -1, sizeof(::RemoNet::SyncTime)},
  1114. { 260, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1115. { 266, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1116. { 274, -1, -1, sizeof(::RemoNet::CCPing)},
  1117. { 282, -1, -1, sizeof(::RemoNet::radar_node)},
  1118. { 290, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1119. { 305, -1, -1, sizeof(::RemoNet::CCSensor)},
  1120. { 314, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1121. { 321, -1, -1, sizeof(::RemoNet::State)},
  1122. { 363, 377, -1, sizeof(::RemoNet::LidarPoint)},
  1123. { 385, -1, -1, sizeof(::RemoNet::SensorStop)},
  1124. { 391, -1, -1, sizeof(::RemoNet::StopAck)},
  1125. { 397, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1126. { 406, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1127. { 413, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1128. { 420, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1129. };
  1130. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1131. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SwitchDriver_default_instance_),
  1132. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_NDTPos_default_instance_),
  1133. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveBegin_default_instance_),
  1134. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_MoveRet_default_instance_),
  1135. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveEnd_default_instance_),
  1136. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveBegin_default_instance_),
  1137. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveEnd_default_instance_),
  1138. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1139. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1140. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSState_default_instance_),
  1142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCState_default_instance_),
  1143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1146. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1147. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1148. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1149. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1150. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1151. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1152. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1153. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1154. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1155. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1156. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1157. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1158. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SyncTime_default_instance_),
  1159. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1160. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1161. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1162. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_radar_node_default_instance_),
  1163. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1164. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSensor_default_instance_),
  1165. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1166. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1167. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1168. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1169. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1170. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1171. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1172. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1173. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1174. };
  1175. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1176. "\n\016protocol.proto\022\007RemoNet\"\034\n\014SwitchDrive"
  1177. "r\022\014\n\004peer\030\001 \001(\005\"Y\n\006NDTPos\022\t\n\001x\030\001 \001(\002\022\t\n\001"
  1178. "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"
  1179. "(\002\022\n\n\002rz\030\006 \001(\002\022\n\n\002rw\030\007 \001(\002\"5\n\013CSMoveBegi"
  1180. "n\022\014\n\004peer\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030\003 \001("
  1181. "\005\"8\n\007MoveRet\022\037\n\004desc\030\001 \001(\0162\021.RemoNet.Mov"
  1182. "eDesc\022\014\n\004peer\030\002 \001(\005\"2\n\tCSMoveEnd\022\014\n\004area"
  1183. "\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\"J\n\013SCMov"
  1184. "eBegin\022\013\n\003uid\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030"
  1185. "\003 \001(\005\022\t\n\001x\030\004 \001(\002\022\t\n\001y\030\005 \001(\002\"2\n\tSCMoveEnd"
  1186. "\022\014\n\004area\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\""
  1187. "@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014"
  1188. "\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<\n\005SCAdd\022\013\n\003re"
  1189. "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"
  1190. "r\030\004 \001(\005\"\013\n\tSCKickOff\"9\n\007CSState\022!\n\005state"
  1191. "\030\001 \001(\0162\022.RemoNet.UserState\022\013\n\003uid\030\002 \001(\005\""
  1192. "9\n\007SCState\022!\n\005state\030\001 \001(\0162\022.RemoNet.User"
  1193. "State\022\013\n\003uid\030\002 \001(\005\"d\n\005Robot\022\013\n\003rid\030\001 \001(\005"
  1194. "\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022!\n\005state\030\004 "
  1195. "\001(\0162\022.RemoNet.UserState\022\017\n\007carType\030\005 \001(\005"
  1196. "\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005robot\030\001 \003(\0132\016."
  1197. "RemoNet.Robot\"+\n\006CSSign\022\017\n\007account\030\001 \001(\t"
  1198. "\022\020\n\010password\030\002 \001(\t\"0\n\006SCSign\022\013\n\003ret\030\001 \001("
  1199. "\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"5\n\005CSReq\022\014\n"
  1200. "\004peer\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 "
  1201. "\001(\005\"H\n\005SCReq\022 \n\004desc\030\001 \001(\0162\022.RemoNet.Vid"
  1202. "eoDesc\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n"
  1203. "\005CSRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc"
  1204. "\022\014\n\004peer\030\002 \001(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype"
  1205. "\030\004 \001(\005\"W\n\005SCRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet."
  1206. "VideoDesc\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001("
  1207. "\005\022\014\n\004peer\030\004 \001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022"
  1208. "\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t"
  1209. "\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022"
  1210. "\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate"
  1211. "\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 "
  1212. "\001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030"
  1213. "\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&"
  1214. "\n\005Leave\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5"
  1215. "\n\005Close\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r"
  1216. "\n\005index\030\003 \001(\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001"
  1217. "(\t\"\266\001\n\010SyncTime\022\016\n\006tm_sec\030\001 \001(\005\022\016\n\006tm_mi"
  1218. "n\030\002 \001(\005\022\017\n\007tm_hour\030\003 \001(\005\022\017\n\007tm_mday\030\004 \001("
  1219. "\005\022\016\n\006tm_mon\030\005 \001(\005\022\017\n\007tm_year\030\006 \001(\005\022\017\n\007tm"
  1220. "_wday\030\007 \001(\005\022\017\n\007tm_yday\030\010 \001(\005\022\020\n\010tm_isdst"
  1221. "\030\t \001(\005\022\023\n\013update_time\030\n \001(\010\"\022\n\020CCAskData"
  1222. "Channel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n\n\002ry\030"
  1223. "\002 \001(\002\"$\n\006CCPing\022\014\n\004tick\030\001 \001(\003\022\014\n\004temp\030\002 "
  1224. "\001(\001\"\'\n\nradar_node\022\n\n\002id\030\001 \001(\005\022\r\n\005range\030\002"
  1225. " \001(\005\"\240\001\n\016CCRadarMessage\022\016\n\006radar0\030\001 \001(\005\022"
  1226. "\016\n\006radar1\030\002 \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar"
  1227. "3\030\004 \001(\005\022\016\n\006radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022"
  1228. "\016\n\006radar6\030\007 \001(\005\022\016\n\006radar7\030\010 \001(\005\022\016\n\006radar"
  1229. "8\030\t \001(\005\"X\n\010CCSensor\022!\n\004node\030\001 \003(\0132\023.Remo"
  1230. "Net.radar_node\022\023\n\013left_encode\030\002 \001(\005\022\024\n\014r"
  1231. "ight_encode\030\003 \001(\005\"\031\n\010CCSwitch\022\r\n\005front\030\001"
  1232. " \001(\010\"\360\005\n\005State\022\025\n\rwork_pressure\030\001 \001(\005\022\026\n"
  1233. "\016brake_pressure\030\002 \001(\005\022\030\n\020gearbox_oil_tem"
  1234. "p\030\003 \001(\005\022\034\n\024gearbox_oil_pressure\030\004 \001(\005\022\022\n"
  1235. "\nengine_rpm\030\005 \001(\005\022\r\n\005speed\030\006 \001(\005\022\014\n\004gear"
  1236. "\030\007 \001(\005\022\027\n\017engine_pressure\030\010 \001(\005\022\022\n\ncold_"
  1237. "water\030\t \001(\005\022\023\n\013steer_angle\030\n \001(\002\022\021\n\tleft"
  1238. "_lock\030\013 \001(\005\022\022\n\nright_lock\030\014 \001(\005\022\023\n\013engin"
  1239. "e_time\030\r \001(\005\022\025\n\rwire_sensor_l\030\016 \001(\005\022\025\n\rw"
  1240. "ire_sensor_r\030\017 \001(\005\022\022\n\nfuel_level\030\020 \001(\005\022\025"
  1241. "\n\rlock_switch_l\030\021 \001(\005\022\025\n\rlock_switch_r\030\022"
  1242. " \001(\005\022\021\n\ttip_limit\030\023 \001(\005\022\021\n\tturn_left\030\024 \001"
  1243. "(\005\022\022\n\nturn_right\030\025 \001(\005\022\022\n\nhight_beam\030\026 \001"
  1244. "(\005\022\020\n\010low_beam\030\027 \001(\005\022\017\n\007parking\030\030 \001(\005\022\r\n"
  1245. "\005brake\030\031 \001(\005\022\020\n\010back_car\030\032 \001(\005\022\027\n\017front_"
  1246. "work_lamp\030\033 \001(\005\022\026\n\016rear_work_lamp\030\034 \001(\005\022"
  1247. "\024\n\014cargo_weight\030\035 \001(\005\022\022\n\nsystem_vol\030\036 \001("
  1248. "\005\022\022\n\nerror_Buff\030\037 \001(\014\022\016\n\006f_gear\030 \001(\005\022\016\n"
  1249. "\006gear_1\030! \001(\005\022\024\n\014outgrigger_l\030\" \001(\005\022\024\n\014o"
  1250. "utgrigger_r\030# \001(\005\022\024\n\014tip_pressure\030$ \001(\005\""
  1251. "\202\002\n\nLidarPoint\022\026\n\ttimestamp\030\001 \001(\001H\000\210\001\001\022\020"
  1252. "\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010frame_id\030\003 \001(\tH\002\210\001\001\022"
  1253. "\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005width\030\005 \001(\rH\004\210\001\001"
  1254. "\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001\022\024\n\007is_left\030\007 \001(\010"
  1255. "H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_timestampB\006\n\004_se"
  1256. "qB\013\n\t_frame_idB\t\n\007_heightB\010\n\006_widthB\013\n\t_"
  1257. "is_denseB\n\n\010_is_left\"\014\n\nSensorStop\"\t\n\007St"
  1258. "opAck\"9\n\rcan_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n\005c"
  1259. "anid\030\002 \001(\005\022\014\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%\n\005"
  1260. "frams\030\001 \003(\0132\026.RemoNet.can_net_frame\"+\n\nS"
  1261. "CAddRobot\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Robot"
  1262. "\"+\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030"
  1263. "\002 \001(\005*\303\002\n\tCSMessage\022\013\n\007CS_NONE\020\000\022\014\n\007CS_S"
  1264. "ign\020\320\017\022\013\n\006CS_Req\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS_C"
  1265. "ancelReq\020\323\017\022\r\n\010CS_Offer\020\324\017\022\016\n\tCS_Answer\020"
  1266. "\325\017\022\021\n\014CS_Candidate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014"
  1267. "CS_KeepAlive\020\330\017\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Robot"
  1268. "\020\332\017\022\022\n\rCS_CloseVideo\020\333\017\022\021\n\014CS_MoveBegin\020"
  1269. "\334\017\022\017\n\nCS_MoveEnd\020\335\017\022\r\n\010CS_State\020\336\017\022\024\n\017CS"
  1270. "_SwitchDriver\020\337\017\022\017\n\nCS_MoveRet\020\340\017\022\020\n\013CS_"
  1271. "SyncTime\020\341\017*\205\004\n\tSCMessage\022\013\n\007SC_NONE\020\000\022\014"
  1272. "\n\007SC_Sign\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n\006SC_Rep\020\242\037\022\016"
  1273. "\n\tSC_Cancel\020\243\037\022\r\n\010SC_Offer\020\244\037\022\016\n\tSC_Answ"
  1274. "er\020\245\037\022\021\n\014SC_Candidate\020\246\037\022\013\n\006SC_Add\020\247\037\022\r\n"
  1275. "\010SC_Robot\020\250\037\022\021\n\014SC_NotifyReq\020\251\037\022\021\n\014SC_No"
  1276. "tifyRep\020\252\037\022\024\n\017SC_NotifyAnswer\020\253\037\022\023\n\016SC_N"
  1277. "otifyOffer\020\254\037\022\027\n\022SC_NotifyCandidate\020\255\037\022\023"
  1278. "\n\016SC_NotifyLeave\020\256\037\022\024\n\017SC_NotifyCancel\020\257"
  1279. "\037\022\021\n\014SC_NotifyAdd\020\260\037\022\021\n\014SC_NotifyDel\020\261\037\022"
  1280. "\030\n\023SC_NotifyCloseVideo\020\262\037\022\017\n\nSC_KickOff\020"
  1281. "\263\037\022\021\n\014SC_MoveBegin\020\264\037\022\017\n\nSC_MoveEnd\020\265\037\022\r"
  1282. "\n\010SC_State\020\266\037\022\024\n\017SC_SwitchDriver\020\267\037\022\017\n\nS"
  1283. "C_MoveRet\020\270\037\022\023\n\016SC_NotifyState\020\271\037\022\020\n\013SC_"
  1284. "SyncTime\020\272\037*\376\001\n\tCCMessage\022\013\n\007CC_None\020\000\022\014"
  1285. "\n\007CC_Text\020\300>\022\013\n\006CC_CAN\020\301>\022\013\n\006CC_IMU\020\302>\022\026"
  1286. "\n\021CC_ASKDATACHANNEL\020\303>\022\024\n\017CC_Manipulatio"
  1287. "n\020\304>\022\r\n\010CC_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007C"
  1288. "C_Ping\020\307>\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_Stop"
  1289. "ACK\020\311>\022\r\n\010CC_Lidar\020\312>\022\016\n\tCC_CANMSG\020\313>\022\r\n"
  1290. "\010CC_STATE\020\314>\022\016\n\tCC_NDTPOS\020\315>*F\n\tVideoDes"
  1291. "c\022\006\n\002OK\020\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFou"
  1292. "nd\020\003\022\016\n\nIsVideoing\020\004*D\n\010MoveDesc\022\013\n\007Move"
  1293. "_OK\020\000\022\024\n\020Move_Encode_Fail\020\001\022\025\n\021Move_Unkn"
  1294. "ow_Faile\020\002*M\n\tUserState\022\013\n\007Offline\020\000\022\010\n\004"
  1295. "Idle\020\001\022\n\n\006Remote\020\002\022\016\n\nAutomotive\020\003\022\r\n\tAs"
  1296. "kRemote\020\004b\006proto3"
  1297. ;
  1298. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1299. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1300. false, false, 4817, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1301. &descriptor_table_protocol_2eproto_once, nullptr, 0, 43,
  1302. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1303. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1304. };
  1305. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1306. return &descriptor_table_protocol_2eproto;
  1307. }
  1308. // Force running AddDescriptors() at dynamic initialization time.
  1309. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1310. namespace RemoNet {
  1311. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1312. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1313. return file_level_enum_descriptors_protocol_2eproto[0];
  1314. }
  1315. bool CSMessage_IsValid(int value) {
  1316. switch (value) {
  1317. case 0:
  1318. case 2000:
  1319. case 2001:
  1320. case 2002:
  1321. case 2003:
  1322. case 2004:
  1323. case 2005:
  1324. case 2006:
  1325. case 2007:
  1326. case 2008:
  1327. case 2009:
  1328. case 2010:
  1329. case 2011:
  1330. case 2012:
  1331. case 2013:
  1332. case 2014:
  1333. case 2015:
  1334. case 2016:
  1335. case 2017:
  1336. return true;
  1337. default:
  1338. return false;
  1339. }
  1340. }
  1341. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1342. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1343. return file_level_enum_descriptors_protocol_2eproto[1];
  1344. }
  1345. bool SCMessage_IsValid(int value) {
  1346. switch (value) {
  1347. case 0:
  1348. case 4000:
  1349. case 4001:
  1350. case 4002:
  1351. case 4003:
  1352. case 4004:
  1353. case 4005:
  1354. case 4006:
  1355. case 4007:
  1356. case 4008:
  1357. case 4009:
  1358. case 4010:
  1359. case 4011:
  1360. case 4012:
  1361. case 4013:
  1362. case 4014:
  1363. case 4015:
  1364. case 4016:
  1365. case 4017:
  1366. case 4018:
  1367. case 4019:
  1368. case 4020:
  1369. case 4021:
  1370. case 4022:
  1371. case 4023:
  1372. case 4024:
  1373. case 4025:
  1374. case 4026:
  1375. return true;
  1376. default:
  1377. return false;
  1378. }
  1379. }
  1380. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1381. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1382. return file_level_enum_descriptors_protocol_2eproto[2];
  1383. }
  1384. bool CCMessage_IsValid(int value) {
  1385. switch (value) {
  1386. case 0:
  1387. case 8000:
  1388. case 8001:
  1389. case 8002:
  1390. case 8003:
  1391. case 8004:
  1392. case 8005:
  1393. case 8006:
  1394. case 8007:
  1395. case 8008:
  1396. case 8009:
  1397. case 8010:
  1398. case 8011:
  1399. case 8012:
  1400. case 8013:
  1401. return true;
  1402. default:
  1403. return false;
  1404. }
  1405. }
  1406. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1407. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1408. return file_level_enum_descriptors_protocol_2eproto[3];
  1409. }
  1410. bool VideoDesc_IsValid(int value) {
  1411. switch (value) {
  1412. case 0:
  1413. case 1:
  1414. case 2:
  1415. case 3:
  1416. case 4:
  1417. return true;
  1418. default:
  1419. return false;
  1420. }
  1421. }
  1422. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MoveDesc_descriptor() {
  1423. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1424. return file_level_enum_descriptors_protocol_2eproto[4];
  1425. }
  1426. bool MoveDesc_IsValid(int value) {
  1427. switch (value) {
  1428. case 0:
  1429. case 1:
  1430. case 2:
  1431. return true;
  1432. default:
  1433. return false;
  1434. }
  1435. }
  1436. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserState_descriptor() {
  1437. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1438. return file_level_enum_descriptors_protocol_2eproto[5];
  1439. }
  1440. bool UserState_IsValid(int value) {
  1441. switch (value) {
  1442. case 0:
  1443. case 1:
  1444. case 2:
  1445. case 3:
  1446. case 4:
  1447. return true;
  1448. default:
  1449. return false;
  1450. }
  1451. }
  1452. // ===================================================================
  1453. class SwitchDriver::_Internal {
  1454. public:
  1455. };
  1456. SwitchDriver::SwitchDriver(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1457. bool is_message_owned)
  1458. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1459. SharedCtor();
  1460. if (!is_message_owned) {
  1461. RegisterArenaDtor(arena);
  1462. }
  1463. // @@protoc_insertion_point(arena_constructor:RemoNet.SwitchDriver)
  1464. }
  1465. SwitchDriver::SwitchDriver(const SwitchDriver& from)
  1466. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1467. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1468. peer_ = from.peer_;
  1469. // @@protoc_insertion_point(copy_constructor:RemoNet.SwitchDriver)
  1470. }
  1471. inline void SwitchDriver::SharedCtor() {
  1472. peer_ = 0;
  1473. }
  1474. SwitchDriver::~SwitchDriver() {
  1475. // @@protoc_insertion_point(destructor:RemoNet.SwitchDriver)
  1476. if (GetArenaForAllocation() != nullptr) return;
  1477. SharedDtor();
  1478. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1479. }
  1480. inline void SwitchDriver::SharedDtor() {
  1481. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1482. }
  1483. void SwitchDriver::ArenaDtor(void* object) {
  1484. SwitchDriver* _this = reinterpret_cast< SwitchDriver* >(object);
  1485. (void)_this;
  1486. }
  1487. void SwitchDriver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1488. }
  1489. void SwitchDriver::SetCachedSize(int size) const {
  1490. _cached_size_.Set(size);
  1491. }
  1492. void SwitchDriver::Clear() {
  1493. // @@protoc_insertion_point(message_clear_start:RemoNet.SwitchDriver)
  1494. uint32_t cached_has_bits = 0;
  1495. // Prevent compiler warnings about cached_has_bits being unused
  1496. (void) cached_has_bits;
  1497. peer_ = 0;
  1498. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1499. }
  1500. const char* SwitchDriver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1501. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1502. while (!ctx->Done(&ptr)) {
  1503. uint32_t tag;
  1504. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1505. switch (tag >> 3) {
  1506. // int32 peer = 1;
  1507. case 1:
  1508. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1509. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1510. CHK_(ptr);
  1511. } else
  1512. goto handle_unusual;
  1513. continue;
  1514. default:
  1515. goto handle_unusual;
  1516. } // switch
  1517. handle_unusual:
  1518. if ((tag == 0) || ((tag & 7) == 4)) {
  1519. CHK_(ptr);
  1520. ctx->SetLastTag(tag);
  1521. goto message_done;
  1522. }
  1523. ptr = UnknownFieldParse(
  1524. tag,
  1525. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1526. ptr, ctx);
  1527. CHK_(ptr != nullptr);
  1528. } // while
  1529. message_done:
  1530. return ptr;
  1531. failure:
  1532. ptr = nullptr;
  1533. goto message_done;
  1534. #undef CHK_
  1535. }
  1536. uint8_t* SwitchDriver::_InternalSerialize(
  1537. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1538. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SwitchDriver)
  1539. uint32_t cached_has_bits = 0;
  1540. (void) cached_has_bits;
  1541. // int32 peer = 1;
  1542. if (this->_internal_peer() != 0) {
  1543. target = stream->EnsureSpace(target);
  1544. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1545. }
  1546. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1547. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1548. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1549. }
  1550. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SwitchDriver)
  1551. return target;
  1552. }
  1553. size_t SwitchDriver::ByteSizeLong() const {
  1554. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SwitchDriver)
  1555. size_t total_size = 0;
  1556. uint32_t cached_has_bits = 0;
  1557. // Prevent compiler warnings about cached_has_bits being unused
  1558. (void) cached_has_bits;
  1559. // int32 peer = 1;
  1560. if (this->_internal_peer() != 0) {
  1561. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1562. }
  1563. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1564. }
  1565. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SwitchDriver::_class_data_ = {
  1566. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1567. SwitchDriver::MergeImpl
  1568. };
  1569. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SwitchDriver::GetClassData() const { return &_class_data_; }
  1570. void SwitchDriver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1571. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1572. static_cast<SwitchDriver *>(to)->MergeFrom(
  1573. static_cast<const SwitchDriver &>(from));
  1574. }
  1575. void SwitchDriver::MergeFrom(const SwitchDriver& from) {
  1576. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SwitchDriver)
  1577. GOOGLE_DCHECK_NE(&from, this);
  1578. uint32_t cached_has_bits = 0;
  1579. (void) cached_has_bits;
  1580. if (from._internal_peer() != 0) {
  1581. _internal_set_peer(from._internal_peer());
  1582. }
  1583. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1584. }
  1585. void SwitchDriver::CopyFrom(const SwitchDriver& from) {
  1586. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SwitchDriver)
  1587. if (&from == this) return;
  1588. Clear();
  1589. MergeFrom(from);
  1590. }
  1591. bool SwitchDriver::IsInitialized() const {
  1592. return true;
  1593. }
  1594. void SwitchDriver::InternalSwap(SwitchDriver* other) {
  1595. using std::swap;
  1596. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1597. swap(peer_, other->peer_);
  1598. }
  1599. ::PROTOBUF_NAMESPACE_ID::Metadata SwitchDriver::GetMetadata() const {
  1600. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1601. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1602. file_level_metadata_protocol_2eproto[0]);
  1603. }
  1604. // ===================================================================
  1605. class NDTPos::_Internal {
  1606. public:
  1607. };
  1608. NDTPos::NDTPos(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1609. bool is_message_owned)
  1610. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1611. SharedCtor();
  1612. if (!is_message_owned) {
  1613. RegisterArenaDtor(arena);
  1614. }
  1615. // @@protoc_insertion_point(arena_constructor:RemoNet.NDTPos)
  1616. }
  1617. NDTPos::NDTPos(const NDTPos& from)
  1618. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1619. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1620. ::memcpy(&x_, &from.x_,
  1621. static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1622. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1623. // @@protoc_insertion_point(copy_constructor:RemoNet.NDTPos)
  1624. }
  1625. inline void NDTPos::SharedCtor() {
  1626. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1627. reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
  1628. 0, static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1629. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1630. }
  1631. NDTPos::~NDTPos() {
  1632. // @@protoc_insertion_point(destructor:RemoNet.NDTPos)
  1633. if (GetArenaForAllocation() != nullptr) return;
  1634. SharedDtor();
  1635. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1636. }
  1637. inline void NDTPos::SharedDtor() {
  1638. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1639. }
  1640. void NDTPos::ArenaDtor(void* object) {
  1641. NDTPos* _this = reinterpret_cast< NDTPos* >(object);
  1642. (void)_this;
  1643. }
  1644. void NDTPos::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1645. }
  1646. void NDTPos::SetCachedSize(int size) const {
  1647. _cached_size_.Set(size);
  1648. }
  1649. void NDTPos::Clear() {
  1650. // @@protoc_insertion_point(message_clear_start:RemoNet.NDTPos)
  1651. uint32_t cached_has_bits = 0;
  1652. // Prevent compiler warnings about cached_has_bits being unused
  1653. (void) cached_has_bits;
  1654. ::memset(&x_, 0, static_cast<size_t>(
  1655. reinterpret_cast<char*>(&rw_) -
  1656. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1657. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1658. }
  1659. const char* NDTPos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1660. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1661. while (!ctx->Done(&ptr)) {
  1662. uint32_t tag;
  1663. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1664. switch (tag >> 3) {
  1665. // float x = 1;
  1666. case 1:
  1667. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  1668. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1669. ptr += sizeof(float);
  1670. } else
  1671. goto handle_unusual;
  1672. continue;
  1673. // float y = 2;
  1674. case 2:
  1675. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  1676. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1677. ptr += sizeof(float);
  1678. } else
  1679. goto handle_unusual;
  1680. continue;
  1681. // float z = 3;
  1682. case 3:
  1683. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
  1684. z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1685. ptr += sizeof(float);
  1686. } else
  1687. goto handle_unusual;
  1688. continue;
  1689. // float rx = 4;
  1690. case 4:
  1691. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  1692. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1693. ptr += sizeof(float);
  1694. } else
  1695. goto handle_unusual;
  1696. continue;
  1697. // float ry = 5;
  1698. case 5:
  1699. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  1700. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1701. ptr += sizeof(float);
  1702. } else
  1703. goto handle_unusual;
  1704. continue;
  1705. // float rz = 6;
  1706. case 6:
  1707. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
  1708. rz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1709. ptr += sizeof(float);
  1710. } else
  1711. goto handle_unusual;
  1712. continue;
  1713. // float rw = 7;
  1714. case 7:
  1715. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
  1716. rw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1717. ptr += sizeof(float);
  1718. } else
  1719. goto handle_unusual;
  1720. continue;
  1721. default:
  1722. goto handle_unusual;
  1723. } // switch
  1724. handle_unusual:
  1725. if ((tag == 0) || ((tag & 7) == 4)) {
  1726. CHK_(ptr);
  1727. ctx->SetLastTag(tag);
  1728. goto message_done;
  1729. }
  1730. ptr = UnknownFieldParse(
  1731. tag,
  1732. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1733. ptr, ctx);
  1734. CHK_(ptr != nullptr);
  1735. } // while
  1736. message_done:
  1737. return ptr;
  1738. failure:
  1739. ptr = nullptr;
  1740. goto message_done;
  1741. #undef CHK_
  1742. }
  1743. uint8_t* NDTPos::_InternalSerialize(
  1744. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1745. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.NDTPos)
  1746. uint32_t cached_has_bits = 0;
  1747. (void) cached_has_bits;
  1748. // float x = 1;
  1749. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1750. float tmp_x = this->_internal_x();
  1751. uint32_t raw_x;
  1752. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1753. if (raw_x != 0) {
  1754. target = stream->EnsureSpace(target);
  1755. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1756. }
  1757. // float y = 2;
  1758. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1759. float tmp_y = this->_internal_y();
  1760. uint32_t raw_y;
  1761. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1762. if (raw_y != 0) {
  1763. target = stream->EnsureSpace(target);
  1764. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1765. }
  1766. // float z = 3;
  1767. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1768. float tmp_z = this->_internal_z();
  1769. uint32_t raw_z;
  1770. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1771. if (raw_z != 0) {
  1772. target = stream->EnsureSpace(target);
  1773. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target);
  1774. }
  1775. // float rx = 4;
  1776. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1777. float tmp_rx = this->_internal_rx();
  1778. uint32_t raw_rx;
  1779. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1780. if (raw_rx != 0) {
  1781. target = stream->EnsureSpace(target);
  1782. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_rx(), target);
  1783. }
  1784. // float ry = 5;
  1785. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1786. float tmp_ry = this->_internal_ry();
  1787. uint32_t raw_ry;
  1788. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1789. if (raw_ry != 0) {
  1790. target = stream->EnsureSpace(target);
  1791. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_ry(), target);
  1792. }
  1793. // float rz = 6;
  1794. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1795. float tmp_rz = this->_internal_rz();
  1796. uint32_t raw_rz;
  1797. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1798. if (raw_rz != 0) {
  1799. target = stream->EnsureSpace(target);
  1800. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_rz(), target);
  1801. }
  1802. // float rw = 7;
  1803. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1804. float tmp_rw = this->_internal_rw();
  1805. uint32_t raw_rw;
  1806. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1807. if (raw_rw != 0) {
  1808. target = stream->EnsureSpace(target);
  1809. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_rw(), target);
  1810. }
  1811. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1812. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1813. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1814. }
  1815. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.NDTPos)
  1816. return target;
  1817. }
  1818. size_t NDTPos::ByteSizeLong() const {
  1819. // @@protoc_insertion_point(message_byte_size_start:RemoNet.NDTPos)
  1820. size_t total_size = 0;
  1821. uint32_t cached_has_bits = 0;
  1822. // Prevent compiler warnings about cached_has_bits being unused
  1823. (void) cached_has_bits;
  1824. // float x = 1;
  1825. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1826. float tmp_x = this->_internal_x();
  1827. uint32_t raw_x;
  1828. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1829. if (raw_x != 0) {
  1830. total_size += 1 + 4;
  1831. }
  1832. // float y = 2;
  1833. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1834. float tmp_y = this->_internal_y();
  1835. uint32_t raw_y;
  1836. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1837. if (raw_y != 0) {
  1838. total_size += 1 + 4;
  1839. }
  1840. // float z = 3;
  1841. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1842. float tmp_z = this->_internal_z();
  1843. uint32_t raw_z;
  1844. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1845. if (raw_z != 0) {
  1846. total_size += 1 + 4;
  1847. }
  1848. // float rx = 4;
  1849. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1850. float tmp_rx = this->_internal_rx();
  1851. uint32_t raw_rx;
  1852. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1853. if (raw_rx != 0) {
  1854. total_size += 1 + 4;
  1855. }
  1856. // float ry = 5;
  1857. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1858. float tmp_ry = this->_internal_ry();
  1859. uint32_t raw_ry;
  1860. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1861. if (raw_ry != 0) {
  1862. total_size += 1 + 4;
  1863. }
  1864. // float rz = 6;
  1865. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1866. float tmp_rz = this->_internal_rz();
  1867. uint32_t raw_rz;
  1868. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1869. if (raw_rz != 0) {
  1870. total_size += 1 + 4;
  1871. }
  1872. // float rw = 7;
  1873. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1874. float tmp_rw = this->_internal_rw();
  1875. uint32_t raw_rw;
  1876. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1877. if (raw_rw != 0) {
  1878. total_size += 1 + 4;
  1879. }
  1880. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1881. }
  1882. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NDTPos::_class_data_ = {
  1883. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1884. NDTPos::MergeImpl
  1885. };
  1886. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NDTPos::GetClassData() const { return &_class_data_; }
  1887. void NDTPos::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1888. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1889. static_cast<NDTPos *>(to)->MergeFrom(
  1890. static_cast<const NDTPos &>(from));
  1891. }
  1892. void NDTPos::MergeFrom(const NDTPos& from) {
  1893. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.NDTPos)
  1894. GOOGLE_DCHECK_NE(&from, this);
  1895. uint32_t cached_has_bits = 0;
  1896. (void) cached_has_bits;
  1897. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1898. float tmp_x = from._internal_x();
  1899. uint32_t raw_x;
  1900. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1901. if (raw_x != 0) {
  1902. _internal_set_x(from._internal_x());
  1903. }
  1904. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1905. float tmp_y = from._internal_y();
  1906. uint32_t raw_y;
  1907. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1908. if (raw_y != 0) {
  1909. _internal_set_y(from._internal_y());
  1910. }
  1911. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1912. float tmp_z = from._internal_z();
  1913. uint32_t raw_z;
  1914. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1915. if (raw_z != 0) {
  1916. _internal_set_z(from._internal_z());
  1917. }
  1918. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1919. float tmp_rx = from._internal_rx();
  1920. uint32_t raw_rx;
  1921. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1922. if (raw_rx != 0) {
  1923. _internal_set_rx(from._internal_rx());
  1924. }
  1925. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1926. float tmp_ry = from._internal_ry();
  1927. uint32_t raw_ry;
  1928. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1929. if (raw_ry != 0) {
  1930. _internal_set_ry(from._internal_ry());
  1931. }
  1932. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1933. float tmp_rz = from._internal_rz();
  1934. uint32_t raw_rz;
  1935. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1936. if (raw_rz != 0) {
  1937. _internal_set_rz(from._internal_rz());
  1938. }
  1939. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1940. float tmp_rw = from._internal_rw();
  1941. uint32_t raw_rw;
  1942. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1943. if (raw_rw != 0) {
  1944. _internal_set_rw(from._internal_rw());
  1945. }
  1946. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1947. }
  1948. void NDTPos::CopyFrom(const NDTPos& from) {
  1949. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.NDTPos)
  1950. if (&from == this) return;
  1951. Clear();
  1952. MergeFrom(from);
  1953. }
  1954. bool NDTPos::IsInitialized() const {
  1955. return true;
  1956. }
  1957. void NDTPos::InternalSwap(NDTPos* other) {
  1958. using std::swap;
  1959. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1960. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1961. PROTOBUF_FIELD_OFFSET(NDTPos, rw_)
  1962. + sizeof(NDTPos::rw_)
  1963. - PROTOBUF_FIELD_OFFSET(NDTPos, x_)>(
  1964. reinterpret_cast<char*>(&x_),
  1965. reinterpret_cast<char*>(&other->x_));
  1966. }
  1967. ::PROTOBUF_NAMESPACE_ID::Metadata NDTPos::GetMetadata() const {
  1968. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1969. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1970. file_level_metadata_protocol_2eproto[1]);
  1971. }
  1972. // ===================================================================
  1973. class CSMoveBegin::_Internal {
  1974. public:
  1975. };
  1976. CSMoveBegin::CSMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1977. bool is_message_owned)
  1978. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1979. SharedCtor();
  1980. if (!is_message_owned) {
  1981. RegisterArenaDtor(arena);
  1982. }
  1983. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveBegin)
  1984. }
  1985. CSMoveBegin::CSMoveBegin(const CSMoveBegin& from)
  1986. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1987. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1988. ::memcpy(&peer_, &from.peer_,
  1989. static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1990. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1991. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveBegin)
  1992. }
  1993. inline void CSMoveBegin::SharedCtor() {
  1994. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1995. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  1996. 0, static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1997. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1998. }
  1999. CSMoveBegin::~CSMoveBegin() {
  2000. // @@protoc_insertion_point(destructor:RemoNet.CSMoveBegin)
  2001. if (GetArenaForAllocation() != nullptr) return;
  2002. SharedDtor();
  2003. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2004. }
  2005. inline void CSMoveBegin::SharedDtor() {
  2006. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2007. }
  2008. void CSMoveBegin::ArenaDtor(void* object) {
  2009. CSMoveBegin* _this = reinterpret_cast< CSMoveBegin* >(object);
  2010. (void)_this;
  2011. }
  2012. void CSMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2013. }
  2014. void CSMoveBegin::SetCachedSize(int size) const {
  2015. _cached_size_.Set(size);
  2016. }
  2017. void CSMoveBegin::Clear() {
  2018. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveBegin)
  2019. uint32_t cached_has_bits = 0;
  2020. // Prevent compiler warnings about cached_has_bits being unused
  2021. (void) cached_has_bits;
  2022. ::memset(&peer_, 0, static_cast<size_t>(
  2023. reinterpret_cast<char*>(&no_) -
  2024. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2025. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2026. }
  2027. const char* CSMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2028. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2029. while (!ctx->Done(&ptr)) {
  2030. uint32_t tag;
  2031. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2032. switch (tag >> 3) {
  2033. // int32 peer = 1;
  2034. case 1:
  2035. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2036. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2037. CHK_(ptr);
  2038. } else
  2039. goto handle_unusual;
  2040. continue;
  2041. // int32 area = 2;
  2042. case 2:
  2043. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2044. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2045. CHK_(ptr);
  2046. } else
  2047. goto handle_unusual;
  2048. continue;
  2049. // int32 no = 3;
  2050. case 3:
  2051. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2052. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2053. CHK_(ptr);
  2054. } else
  2055. goto handle_unusual;
  2056. continue;
  2057. default:
  2058. goto handle_unusual;
  2059. } // switch
  2060. handle_unusual:
  2061. if ((tag == 0) || ((tag & 7) == 4)) {
  2062. CHK_(ptr);
  2063. ctx->SetLastTag(tag);
  2064. goto message_done;
  2065. }
  2066. ptr = UnknownFieldParse(
  2067. tag,
  2068. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2069. ptr, ctx);
  2070. CHK_(ptr != nullptr);
  2071. } // while
  2072. message_done:
  2073. return ptr;
  2074. failure:
  2075. ptr = nullptr;
  2076. goto message_done;
  2077. #undef CHK_
  2078. }
  2079. uint8_t* CSMoveBegin::_InternalSerialize(
  2080. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2081. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveBegin)
  2082. uint32_t cached_has_bits = 0;
  2083. (void) cached_has_bits;
  2084. // int32 peer = 1;
  2085. if (this->_internal_peer() != 0) {
  2086. target = stream->EnsureSpace(target);
  2087. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  2088. }
  2089. // int32 area = 2;
  2090. if (this->_internal_area() != 0) {
  2091. target = stream->EnsureSpace(target);
  2092. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2093. }
  2094. // int32 no = 3;
  2095. if (this->_internal_no() != 0) {
  2096. target = stream->EnsureSpace(target);
  2097. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2098. }
  2099. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2100. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2101. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2102. }
  2103. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveBegin)
  2104. return target;
  2105. }
  2106. size_t CSMoveBegin::ByteSizeLong() const {
  2107. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveBegin)
  2108. size_t total_size = 0;
  2109. uint32_t cached_has_bits = 0;
  2110. // Prevent compiler warnings about cached_has_bits being unused
  2111. (void) cached_has_bits;
  2112. // int32 peer = 1;
  2113. if (this->_internal_peer() != 0) {
  2114. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2115. }
  2116. // int32 area = 2;
  2117. if (this->_internal_area() != 0) {
  2118. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2119. }
  2120. // int32 no = 3;
  2121. if (this->_internal_no() != 0) {
  2122. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2123. }
  2124. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2125. }
  2126. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveBegin::_class_data_ = {
  2127. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2128. CSMoveBegin::MergeImpl
  2129. };
  2130. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveBegin::GetClassData() const { return &_class_data_; }
  2131. void CSMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2132. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2133. static_cast<CSMoveBegin *>(to)->MergeFrom(
  2134. static_cast<const CSMoveBegin &>(from));
  2135. }
  2136. void CSMoveBegin::MergeFrom(const CSMoveBegin& from) {
  2137. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveBegin)
  2138. GOOGLE_DCHECK_NE(&from, this);
  2139. uint32_t cached_has_bits = 0;
  2140. (void) cached_has_bits;
  2141. if (from._internal_peer() != 0) {
  2142. _internal_set_peer(from._internal_peer());
  2143. }
  2144. if (from._internal_area() != 0) {
  2145. _internal_set_area(from._internal_area());
  2146. }
  2147. if (from._internal_no() != 0) {
  2148. _internal_set_no(from._internal_no());
  2149. }
  2150. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2151. }
  2152. void CSMoveBegin::CopyFrom(const CSMoveBegin& from) {
  2153. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveBegin)
  2154. if (&from == this) return;
  2155. Clear();
  2156. MergeFrom(from);
  2157. }
  2158. bool CSMoveBegin::IsInitialized() const {
  2159. return true;
  2160. }
  2161. void CSMoveBegin::InternalSwap(CSMoveBegin* other) {
  2162. using std::swap;
  2163. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2164. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2165. PROTOBUF_FIELD_OFFSET(CSMoveBegin, no_)
  2166. + sizeof(CSMoveBegin::no_)
  2167. - PROTOBUF_FIELD_OFFSET(CSMoveBegin, peer_)>(
  2168. reinterpret_cast<char*>(&peer_),
  2169. reinterpret_cast<char*>(&other->peer_));
  2170. }
  2171. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveBegin::GetMetadata() const {
  2172. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2173. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2174. file_level_metadata_protocol_2eproto[2]);
  2175. }
  2176. // ===================================================================
  2177. class MoveRet::_Internal {
  2178. public:
  2179. };
  2180. MoveRet::MoveRet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2181. bool is_message_owned)
  2182. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2183. SharedCtor();
  2184. if (!is_message_owned) {
  2185. RegisterArenaDtor(arena);
  2186. }
  2187. // @@protoc_insertion_point(arena_constructor:RemoNet.MoveRet)
  2188. }
  2189. MoveRet::MoveRet(const MoveRet& from)
  2190. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2191. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2192. ::memcpy(&desc_, &from.desc_,
  2193. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2194. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2195. // @@protoc_insertion_point(copy_constructor:RemoNet.MoveRet)
  2196. }
  2197. inline void MoveRet::SharedCtor() {
  2198. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2199. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2200. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2201. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2202. }
  2203. MoveRet::~MoveRet() {
  2204. // @@protoc_insertion_point(destructor:RemoNet.MoveRet)
  2205. if (GetArenaForAllocation() != nullptr) return;
  2206. SharedDtor();
  2207. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2208. }
  2209. inline void MoveRet::SharedDtor() {
  2210. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2211. }
  2212. void MoveRet::ArenaDtor(void* object) {
  2213. MoveRet* _this = reinterpret_cast< MoveRet* >(object);
  2214. (void)_this;
  2215. }
  2216. void MoveRet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2217. }
  2218. void MoveRet::SetCachedSize(int size) const {
  2219. _cached_size_.Set(size);
  2220. }
  2221. void MoveRet::Clear() {
  2222. // @@protoc_insertion_point(message_clear_start:RemoNet.MoveRet)
  2223. uint32_t cached_has_bits = 0;
  2224. // Prevent compiler warnings about cached_has_bits being unused
  2225. (void) cached_has_bits;
  2226. ::memset(&desc_, 0, static_cast<size_t>(
  2227. reinterpret_cast<char*>(&peer_) -
  2228. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2229. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2230. }
  2231. const char* MoveRet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2232. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2233. while (!ctx->Done(&ptr)) {
  2234. uint32_t tag;
  2235. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2236. switch (tag >> 3) {
  2237. // .RemoNet.MoveDesc desc = 1;
  2238. case 1:
  2239. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2240. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2241. CHK_(ptr);
  2242. _internal_set_desc(static_cast<::RemoNet::MoveDesc>(val));
  2243. } else
  2244. goto handle_unusual;
  2245. continue;
  2246. // int32 peer = 2;
  2247. case 2:
  2248. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2249. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2250. CHK_(ptr);
  2251. } else
  2252. goto handle_unusual;
  2253. continue;
  2254. default:
  2255. goto handle_unusual;
  2256. } // switch
  2257. handle_unusual:
  2258. if ((tag == 0) || ((tag & 7) == 4)) {
  2259. CHK_(ptr);
  2260. ctx->SetLastTag(tag);
  2261. goto message_done;
  2262. }
  2263. ptr = UnknownFieldParse(
  2264. tag,
  2265. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2266. ptr, ctx);
  2267. CHK_(ptr != nullptr);
  2268. } // while
  2269. message_done:
  2270. return ptr;
  2271. failure:
  2272. ptr = nullptr;
  2273. goto message_done;
  2274. #undef CHK_
  2275. }
  2276. uint8_t* MoveRet::_InternalSerialize(
  2277. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2278. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.MoveRet)
  2279. uint32_t cached_has_bits = 0;
  2280. (void) cached_has_bits;
  2281. // .RemoNet.MoveDesc desc = 1;
  2282. if (this->_internal_desc() != 0) {
  2283. target = stream->EnsureSpace(target);
  2284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2285. 1, this->_internal_desc(), target);
  2286. }
  2287. // int32 peer = 2;
  2288. if (this->_internal_peer() != 0) {
  2289. target = stream->EnsureSpace(target);
  2290. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2291. }
  2292. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2293. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2294. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2295. }
  2296. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.MoveRet)
  2297. return target;
  2298. }
  2299. size_t MoveRet::ByteSizeLong() const {
  2300. // @@protoc_insertion_point(message_byte_size_start:RemoNet.MoveRet)
  2301. size_t total_size = 0;
  2302. uint32_t cached_has_bits = 0;
  2303. // Prevent compiler warnings about cached_has_bits being unused
  2304. (void) cached_has_bits;
  2305. // .RemoNet.MoveDesc desc = 1;
  2306. if (this->_internal_desc() != 0) {
  2307. total_size += 1 +
  2308. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2309. }
  2310. // int32 peer = 2;
  2311. if (this->_internal_peer() != 0) {
  2312. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2313. }
  2314. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2315. }
  2316. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRet::_class_data_ = {
  2317. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2318. MoveRet::MergeImpl
  2319. };
  2320. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRet::GetClassData() const { return &_class_data_; }
  2321. void MoveRet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2322. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2323. static_cast<MoveRet *>(to)->MergeFrom(
  2324. static_cast<const MoveRet &>(from));
  2325. }
  2326. void MoveRet::MergeFrom(const MoveRet& from) {
  2327. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.MoveRet)
  2328. GOOGLE_DCHECK_NE(&from, this);
  2329. uint32_t cached_has_bits = 0;
  2330. (void) cached_has_bits;
  2331. if (from._internal_desc() != 0) {
  2332. _internal_set_desc(from._internal_desc());
  2333. }
  2334. if (from._internal_peer() != 0) {
  2335. _internal_set_peer(from._internal_peer());
  2336. }
  2337. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2338. }
  2339. void MoveRet::CopyFrom(const MoveRet& from) {
  2340. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.MoveRet)
  2341. if (&from == this) return;
  2342. Clear();
  2343. MergeFrom(from);
  2344. }
  2345. bool MoveRet::IsInitialized() const {
  2346. return true;
  2347. }
  2348. void MoveRet::InternalSwap(MoveRet* other) {
  2349. using std::swap;
  2350. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2351. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2352. PROTOBUF_FIELD_OFFSET(MoveRet, peer_)
  2353. + sizeof(MoveRet::peer_)
  2354. - PROTOBUF_FIELD_OFFSET(MoveRet, desc_)>(
  2355. reinterpret_cast<char*>(&desc_),
  2356. reinterpret_cast<char*>(&other->desc_));
  2357. }
  2358. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRet::GetMetadata() const {
  2359. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2360. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2361. file_level_metadata_protocol_2eproto[3]);
  2362. }
  2363. // ===================================================================
  2364. class CSMoveEnd::_Internal {
  2365. public:
  2366. };
  2367. CSMoveEnd::CSMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2368. bool is_message_owned)
  2369. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2370. SharedCtor();
  2371. if (!is_message_owned) {
  2372. RegisterArenaDtor(arena);
  2373. }
  2374. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveEnd)
  2375. }
  2376. CSMoveEnd::CSMoveEnd(const CSMoveEnd& from)
  2377. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2378. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2379. ::memcpy(&area_, &from.area_,
  2380. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2381. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2382. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveEnd)
  2383. }
  2384. inline void CSMoveEnd::SharedCtor() {
  2385. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2386. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2387. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2388. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2389. }
  2390. CSMoveEnd::~CSMoveEnd() {
  2391. // @@protoc_insertion_point(destructor:RemoNet.CSMoveEnd)
  2392. if (GetArenaForAllocation() != nullptr) return;
  2393. SharedDtor();
  2394. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2395. }
  2396. inline void CSMoveEnd::SharedDtor() {
  2397. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2398. }
  2399. void CSMoveEnd::ArenaDtor(void* object) {
  2400. CSMoveEnd* _this = reinterpret_cast< CSMoveEnd* >(object);
  2401. (void)_this;
  2402. }
  2403. void CSMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2404. }
  2405. void CSMoveEnd::SetCachedSize(int size) const {
  2406. _cached_size_.Set(size);
  2407. }
  2408. void CSMoveEnd::Clear() {
  2409. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveEnd)
  2410. uint32_t cached_has_bits = 0;
  2411. // Prevent compiler warnings about cached_has_bits being unused
  2412. (void) cached_has_bits;
  2413. ::memset(&area_, 0, static_cast<size_t>(
  2414. reinterpret_cast<char*>(&uid_) -
  2415. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2416. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2417. }
  2418. const char* CSMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2419. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2420. while (!ctx->Done(&ptr)) {
  2421. uint32_t tag;
  2422. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2423. switch (tag >> 3) {
  2424. // int32 area = 1;
  2425. case 1:
  2426. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2427. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2428. CHK_(ptr);
  2429. } else
  2430. goto handle_unusual;
  2431. continue;
  2432. // int32 no = 2;
  2433. case 2:
  2434. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2435. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2436. CHK_(ptr);
  2437. } else
  2438. goto handle_unusual;
  2439. continue;
  2440. // int32 uid = 3;
  2441. case 3:
  2442. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2443. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2444. CHK_(ptr);
  2445. } else
  2446. goto handle_unusual;
  2447. continue;
  2448. default:
  2449. goto handle_unusual;
  2450. } // switch
  2451. handle_unusual:
  2452. if ((tag == 0) || ((tag & 7) == 4)) {
  2453. CHK_(ptr);
  2454. ctx->SetLastTag(tag);
  2455. goto message_done;
  2456. }
  2457. ptr = UnknownFieldParse(
  2458. tag,
  2459. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2460. ptr, ctx);
  2461. CHK_(ptr != nullptr);
  2462. } // while
  2463. message_done:
  2464. return ptr;
  2465. failure:
  2466. ptr = nullptr;
  2467. goto message_done;
  2468. #undef CHK_
  2469. }
  2470. uint8_t* CSMoveEnd::_InternalSerialize(
  2471. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2472. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveEnd)
  2473. uint32_t cached_has_bits = 0;
  2474. (void) cached_has_bits;
  2475. // int32 area = 1;
  2476. if (this->_internal_area() != 0) {
  2477. target = stream->EnsureSpace(target);
  2478. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2479. }
  2480. // int32 no = 2;
  2481. if (this->_internal_no() != 0) {
  2482. target = stream->EnsureSpace(target);
  2483. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2484. }
  2485. // int32 uid = 3;
  2486. if (this->_internal_uid() != 0) {
  2487. target = stream->EnsureSpace(target);
  2488. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2489. }
  2490. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2491. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2492. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2493. }
  2494. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveEnd)
  2495. return target;
  2496. }
  2497. size_t CSMoveEnd::ByteSizeLong() const {
  2498. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveEnd)
  2499. size_t total_size = 0;
  2500. uint32_t cached_has_bits = 0;
  2501. // Prevent compiler warnings about cached_has_bits being unused
  2502. (void) cached_has_bits;
  2503. // int32 area = 1;
  2504. if (this->_internal_area() != 0) {
  2505. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2506. }
  2507. // int32 no = 2;
  2508. if (this->_internal_no() != 0) {
  2509. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2510. }
  2511. // int32 uid = 3;
  2512. if (this->_internal_uid() != 0) {
  2513. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2514. }
  2515. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2516. }
  2517. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveEnd::_class_data_ = {
  2518. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2519. CSMoveEnd::MergeImpl
  2520. };
  2521. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveEnd::GetClassData() const { return &_class_data_; }
  2522. void CSMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2523. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2524. static_cast<CSMoveEnd *>(to)->MergeFrom(
  2525. static_cast<const CSMoveEnd &>(from));
  2526. }
  2527. void CSMoveEnd::MergeFrom(const CSMoveEnd& from) {
  2528. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveEnd)
  2529. GOOGLE_DCHECK_NE(&from, this);
  2530. uint32_t cached_has_bits = 0;
  2531. (void) cached_has_bits;
  2532. if (from._internal_area() != 0) {
  2533. _internal_set_area(from._internal_area());
  2534. }
  2535. if (from._internal_no() != 0) {
  2536. _internal_set_no(from._internal_no());
  2537. }
  2538. if (from._internal_uid() != 0) {
  2539. _internal_set_uid(from._internal_uid());
  2540. }
  2541. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2542. }
  2543. void CSMoveEnd::CopyFrom(const CSMoveEnd& from) {
  2544. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveEnd)
  2545. if (&from == this) return;
  2546. Clear();
  2547. MergeFrom(from);
  2548. }
  2549. bool CSMoveEnd::IsInitialized() const {
  2550. return true;
  2551. }
  2552. void CSMoveEnd::InternalSwap(CSMoveEnd* other) {
  2553. using std::swap;
  2554. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2555. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2556. PROTOBUF_FIELD_OFFSET(CSMoveEnd, uid_)
  2557. + sizeof(CSMoveEnd::uid_)
  2558. - PROTOBUF_FIELD_OFFSET(CSMoveEnd, area_)>(
  2559. reinterpret_cast<char*>(&area_),
  2560. reinterpret_cast<char*>(&other->area_));
  2561. }
  2562. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveEnd::GetMetadata() const {
  2563. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2564. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2565. file_level_metadata_protocol_2eproto[4]);
  2566. }
  2567. // ===================================================================
  2568. class SCMoveBegin::_Internal {
  2569. public:
  2570. };
  2571. SCMoveBegin::SCMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2572. bool is_message_owned)
  2573. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2574. SharedCtor();
  2575. if (!is_message_owned) {
  2576. RegisterArenaDtor(arena);
  2577. }
  2578. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveBegin)
  2579. }
  2580. SCMoveBegin::SCMoveBegin(const SCMoveBegin& from)
  2581. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2582. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2583. ::memcpy(&uid_, &from.uid_,
  2584. static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2585. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2586. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveBegin)
  2587. }
  2588. inline void SCMoveBegin::SharedCtor() {
  2589. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2590. reinterpret_cast<char*>(&uid_) - reinterpret_cast<char*>(this)),
  2591. 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2592. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2593. }
  2594. SCMoveBegin::~SCMoveBegin() {
  2595. // @@protoc_insertion_point(destructor:RemoNet.SCMoveBegin)
  2596. if (GetArenaForAllocation() != nullptr) return;
  2597. SharedDtor();
  2598. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2599. }
  2600. inline void SCMoveBegin::SharedDtor() {
  2601. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2602. }
  2603. void SCMoveBegin::ArenaDtor(void* object) {
  2604. SCMoveBegin* _this = reinterpret_cast< SCMoveBegin* >(object);
  2605. (void)_this;
  2606. }
  2607. void SCMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2608. }
  2609. void SCMoveBegin::SetCachedSize(int size) const {
  2610. _cached_size_.Set(size);
  2611. }
  2612. void SCMoveBegin::Clear() {
  2613. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveBegin)
  2614. uint32_t cached_has_bits = 0;
  2615. // Prevent compiler warnings about cached_has_bits being unused
  2616. (void) cached_has_bits;
  2617. ::memset(&uid_, 0, static_cast<size_t>(
  2618. reinterpret_cast<char*>(&y_) -
  2619. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2620. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2621. }
  2622. const char* SCMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2623. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2624. while (!ctx->Done(&ptr)) {
  2625. uint32_t tag;
  2626. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2627. switch (tag >> 3) {
  2628. // int32 uid = 1;
  2629. case 1:
  2630. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2631. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2632. CHK_(ptr);
  2633. } else
  2634. goto handle_unusual;
  2635. continue;
  2636. // int32 area = 2;
  2637. case 2:
  2638. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2639. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2640. CHK_(ptr);
  2641. } else
  2642. goto handle_unusual;
  2643. continue;
  2644. // int32 no = 3;
  2645. case 3:
  2646. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2647. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2648. CHK_(ptr);
  2649. } else
  2650. goto handle_unusual;
  2651. continue;
  2652. // float x = 4;
  2653. case 4:
  2654. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  2655. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2656. ptr += sizeof(float);
  2657. } else
  2658. goto handle_unusual;
  2659. continue;
  2660. // float y = 5;
  2661. case 5:
  2662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  2663. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2664. ptr += sizeof(float);
  2665. } else
  2666. goto handle_unusual;
  2667. continue;
  2668. default:
  2669. goto handle_unusual;
  2670. } // switch
  2671. handle_unusual:
  2672. if ((tag == 0) || ((tag & 7) == 4)) {
  2673. CHK_(ptr);
  2674. ctx->SetLastTag(tag);
  2675. goto message_done;
  2676. }
  2677. ptr = UnknownFieldParse(
  2678. tag,
  2679. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2680. ptr, ctx);
  2681. CHK_(ptr != nullptr);
  2682. } // while
  2683. message_done:
  2684. return ptr;
  2685. failure:
  2686. ptr = nullptr;
  2687. goto message_done;
  2688. #undef CHK_
  2689. }
  2690. uint8_t* SCMoveBegin::_InternalSerialize(
  2691. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2692. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveBegin)
  2693. uint32_t cached_has_bits = 0;
  2694. (void) cached_has_bits;
  2695. // int32 uid = 1;
  2696. if (this->_internal_uid() != 0) {
  2697. target = stream->EnsureSpace(target);
  2698. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_uid(), target);
  2699. }
  2700. // int32 area = 2;
  2701. if (this->_internal_area() != 0) {
  2702. target = stream->EnsureSpace(target);
  2703. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2704. }
  2705. // int32 no = 3;
  2706. if (this->_internal_no() != 0) {
  2707. target = stream->EnsureSpace(target);
  2708. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2709. }
  2710. // float x = 4;
  2711. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2712. float tmp_x = this->_internal_x();
  2713. uint32_t raw_x;
  2714. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2715. if (raw_x != 0) {
  2716. target = stream->EnsureSpace(target);
  2717. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_x(), target);
  2718. }
  2719. // float y = 5;
  2720. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2721. float tmp_y = this->_internal_y();
  2722. uint32_t raw_y;
  2723. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2724. if (raw_y != 0) {
  2725. target = stream->EnsureSpace(target);
  2726. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_y(), target);
  2727. }
  2728. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2729. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2730. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2731. }
  2732. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveBegin)
  2733. return target;
  2734. }
  2735. size_t SCMoveBegin::ByteSizeLong() const {
  2736. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveBegin)
  2737. size_t total_size = 0;
  2738. uint32_t cached_has_bits = 0;
  2739. // Prevent compiler warnings about cached_has_bits being unused
  2740. (void) cached_has_bits;
  2741. // int32 uid = 1;
  2742. if (this->_internal_uid() != 0) {
  2743. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2744. }
  2745. // int32 area = 2;
  2746. if (this->_internal_area() != 0) {
  2747. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2748. }
  2749. // int32 no = 3;
  2750. if (this->_internal_no() != 0) {
  2751. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2752. }
  2753. // float x = 4;
  2754. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2755. float tmp_x = this->_internal_x();
  2756. uint32_t raw_x;
  2757. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2758. if (raw_x != 0) {
  2759. total_size += 1 + 4;
  2760. }
  2761. // float y = 5;
  2762. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2763. float tmp_y = this->_internal_y();
  2764. uint32_t raw_y;
  2765. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2766. if (raw_y != 0) {
  2767. total_size += 1 + 4;
  2768. }
  2769. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2770. }
  2771. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveBegin::_class_data_ = {
  2772. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2773. SCMoveBegin::MergeImpl
  2774. };
  2775. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveBegin::GetClassData() const { return &_class_data_; }
  2776. void SCMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2777. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2778. static_cast<SCMoveBegin *>(to)->MergeFrom(
  2779. static_cast<const SCMoveBegin &>(from));
  2780. }
  2781. void SCMoveBegin::MergeFrom(const SCMoveBegin& from) {
  2782. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveBegin)
  2783. GOOGLE_DCHECK_NE(&from, this);
  2784. uint32_t cached_has_bits = 0;
  2785. (void) cached_has_bits;
  2786. if (from._internal_uid() != 0) {
  2787. _internal_set_uid(from._internal_uid());
  2788. }
  2789. if (from._internal_area() != 0) {
  2790. _internal_set_area(from._internal_area());
  2791. }
  2792. if (from._internal_no() != 0) {
  2793. _internal_set_no(from._internal_no());
  2794. }
  2795. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2796. float tmp_x = from._internal_x();
  2797. uint32_t raw_x;
  2798. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2799. if (raw_x != 0) {
  2800. _internal_set_x(from._internal_x());
  2801. }
  2802. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2803. float tmp_y = from._internal_y();
  2804. uint32_t raw_y;
  2805. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2806. if (raw_y != 0) {
  2807. _internal_set_y(from._internal_y());
  2808. }
  2809. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2810. }
  2811. void SCMoveBegin::CopyFrom(const SCMoveBegin& from) {
  2812. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveBegin)
  2813. if (&from == this) return;
  2814. Clear();
  2815. MergeFrom(from);
  2816. }
  2817. bool SCMoveBegin::IsInitialized() const {
  2818. return true;
  2819. }
  2820. void SCMoveBegin::InternalSwap(SCMoveBegin* other) {
  2821. using std::swap;
  2822. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2823. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2824. PROTOBUF_FIELD_OFFSET(SCMoveBegin, y_)
  2825. + sizeof(SCMoveBegin::y_)
  2826. - PROTOBUF_FIELD_OFFSET(SCMoveBegin, uid_)>(
  2827. reinterpret_cast<char*>(&uid_),
  2828. reinterpret_cast<char*>(&other->uid_));
  2829. }
  2830. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveBegin::GetMetadata() const {
  2831. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2832. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2833. file_level_metadata_protocol_2eproto[5]);
  2834. }
  2835. // ===================================================================
  2836. class SCMoveEnd::_Internal {
  2837. public:
  2838. };
  2839. SCMoveEnd::SCMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2840. bool is_message_owned)
  2841. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2842. SharedCtor();
  2843. if (!is_message_owned) {
  2844. RegisterArenaDtor(arena);
  2845. }
  2846. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveEnd)
  2847. }
  2848. SCMoveEnd::SCMoveEnd(const SCMoveEnd& from)
  2849. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2850. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2851. ::memcpy(&area_, &from.area_,
  2852. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2853. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2854. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveEnd)
  2855. }
  2856. inline void SCMoveEnd::SharedCtor() {
  2857. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2858. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2859. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2860. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2861. }
  2862. SCMoveEnd::~SCMoveEnd() {
  2863. // @@protoc_insertion_point(destructor:RemoNet.SCMoveEnd)
  2864. if (GetArenaForAllocation() != nullptr) return;
  2865. SharedDtor();
  2866. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2867. }
  2868. inline void SCMoveEnd::SharedDtor() {
  2869. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2870. }
  2871. void SCMoveEnd::ArenaDtor(void* object) {
  2872. SCMoveEnd* _this = reinterpret_cast< SCMoveEnd* >(object);
  2873. (void)_this;
  2874. }
  2875. void SCMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2876. }
  2877. void SCMoveEnd::SetCachedSize(int size) const {
  2878. _cached_size_.Set(size);
  2879. }
  2880. void SCMoveEnd::Clear() {
  2881. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveEnd)
  2882. uint32_t cached_has_bits = 0;
  2883. // Prevent compiler warnings about cached_has_bits being unused
  2884. (void) cached_has_bits;
  2885. ::memset(&area_, 0, static_cast<size_t>(
  2886. reinterpret_cast<char*>(&uid_) -
  2887. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2888. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2889. }
  2890. const char* SCMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2891. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2892. while (!ctx->Done(&ptr)) {
  2893. uint32_t tag;
  2894. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2895. switch (tag >> 3) {
  2896. // int32 area = 1;
  2897. case 1:
  2898. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2899. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2900. CHK_(ptr);
  2901. } else
  2902. goto handle_unusual;
  2903. continue;
  2904. // int32 no = 2;
  2905. case 2:
  2906. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2907. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2908. CHK_(ptr);
  2909. } else
  2910. goto handle_unusual;
  2911. continue;
  2912. // int32 uid = 3;
  2913. case 3:
  2914. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2915. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2916. CHK_(ptr);
  2917. } else
  2918. goto handle_unusual;
  2919. continue;
  2920. default:
  2921. goto handle_unusual;
  2922. } // switch
  2923. handle_unusual:
  2924. if ((tag == 0) || ((tag & 7) == 4)) {
  2925. CHK_(ptr);
  2926. ctx->SetLastTag(tag);
  2927. goto message_done;
  2928. }
  2929. ptr = UnknownFieldParse(
  2930. tag,
  2931. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2932. ptr, ctx);
  2933. CHK_(ptr != nullptr);
  2934. } // while
  2935. message_done:
  2936. return ptr;
  2937. failure:
  2938. ptr = nullptr;
  2939. goto message_done;
  2940. #undef CHK_
  2941. }
  2942. uint8_t* SCMoveEnd::_InternalSerialize(
  2943. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2944. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveEnd)
  2945. uint32_t cached_has_bits = 0;
  2946. (void) cached_has_bits;
  2947. // int32 area = 1;
  2948. if (this->_internal_area() != 0) {
  2949. target = stream->EnsureSpace(target);
  2950. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2951. }
  2952. // int32 no = 2;
  2953. if (this->_internal_no() != 0) {
  2954. target = stream->EnsureSpace(target);
  2955. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2956. }
  2957. // int32 uid = 3;
  2958. if (this->_internal_uid() != 0) {
  2959. target = stream->EnsureSpace(target);
  2960. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2961. }
  2962. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2963. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2964. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2965. }
  2966. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveEnd)
  2967. return target;
  2968. }
  2969. size_t SCMoveEnd::ByteSizeLong() const {
  2970. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveEnd)
  2971. size_t total_size = 0;
  2972. uint32_t cached_has_bits = 0;
  2973. // Prevent compiler warnings about cached_has_bits being unused
  2974. (void) cached_has_bits;
  2975. // int32 area = 1;
  2976. if (this->_internal_area() != 0) {
  2977. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2978. }
  2979. // int32 no = 2;
  2980. if (this->_internal_no() != 0) {
  2981. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2982. }
  2983. // int32 uid = 3;
  2984. if (this->_internal_uid() != 0) {
  2985. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2986. }
  2987. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2988. }
  2989. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveEnd::_class_data_ = {
  2990. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2991. SCMoveEnd::MergeImpl
  2992. };
  2993. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveEnd::GetClassData() const { return &_class_data_; }
  2994. void SCMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2995. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2996. static_cast<SCMoveEnd *>(to)->MergeFrom(
  2997. static_cast<const SCMoveEnd &>(from));
  2998. }
  2999. void SCMoveEnd::MergeFrom(const SCMoveEnd& from) {
  3000. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveEnd)
  3001. GOOGLE_DCHECK_NE(&from, this);
  3002. uint32_t cached_has_bits = 0;
  3003. (void) cached_has_bits;
  3004. if (from._internal_area() != 0) {
  3005. _internal_set_area(from._internal_area());
  3006. }
  3007. if (from._internal_no() != 0) {
  3008. _internal_set_no(from._internal_no());
  3009. }
  3010. if (from._internal_uid() != 0) {
  3011. _internal_set_uid(from._internal_uid());
  3012. }
  3013. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3014. }
  3015. void SCMoveEnd::CopyFrom(const SCMoveEnd& from) {
  3016. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveEnd)
  3017. if (&from == this) return;
  3018. Clear();
  3019. MergeFrom(from);
  3020. }
  3021. bool SCMoveEnd::IsInitialized() const {
  3022. return true;
  3023. }
  3024. void SCMoveEnd::InternalSwap(SCMoveEnd* other) {
  3025. using std::swap;
  3026. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3027. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3028. PROTOBUF_FIELD_OFFSET(SCMoveEnd, uid_)
  3029. + sizeof(SCMoveEnd::uid_)
  3030. - PROTOBUF_FIELD_OFFSET(SCMoveEnd, area_)>(
  3031. reinterpret_cast<char*>(&area_),
  3032. reinterpret_cast<char*>(&other->area_));
  3033. }
  3034. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveEnd::GetMetadata() const {
  3035. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3036. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3037. file_level_metadata_protocol_2eproto[6]);
  3038. }
  3039. // ===================================================================
  3040. class CSAdd::_Internal {
  3041. public:
  3042. };
  3043. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3044. bool is_message_owned)
  3045. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3046. SharedCtor();
  3047. if (!is_message_owned) {
  3048. RegisterArenaDtor(arena);
  3049. }
  3050. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  3051. }
  3052. CSAdd::CSAdd(const CSAdd& from)
  3053. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3054. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3055. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3056. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3057. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3058. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3059. if (!from._internal_serial().empty()) {
  3060. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  3061. GetArenaForAllocation());
  3062. }
  3063. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3064. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3065. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3066. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3067. if (!from._internal_name().empty()) {
  3068. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3069. GetArenaForAllocation());
  3070. }
  3071. ::memcpy(&type_, &from.type_,
  3072. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3073. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3074. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  3075. }
  3076. inline void CSAdd::SharedCtor() {
  3077. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3078. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3079. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3080. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3081. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3082. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3083. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3084. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3085. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3086. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  3087. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3088. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3089. }
  3090. CSAdd::~CSAdd() {
  3091. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  3092. if (GetArenaForAllocation() != nullptr) return;
  3093. SharedDtor();
  3094. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3095. }
  3096. inline void CSAdd::SharedDtor() {
  3097. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3098. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3099. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3100. }
  3101. void CSAdd::ArenaDtor(void* object) {
  3102. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  3103. (void)_this;
  3104. }
  3105. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3106. }
  3107. void CSAdd::SetCachedSize(int size) const {
  3108. _cached_size_.Set(size);
  3109. }
  3110. void CSAdd::Clear() {
  3111. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  3112. uint32_t cached_has_bits = 0;
  3113. // Prevent compiler warnings about cached_has_bits being unused
  3114. (void) cached_has_bits;
  3115. serial_.ClearToEmpty();
  3116. name_.ClearToEmpty();
  3117. ::memset(&type_, 0, static_cast<size_t>(
  3118. reinterpret_cast<char*>(&car_) -
  3119. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3120. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3121. }
  3122. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3123. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3124. while (!ctx->Done(&ptr)) {
  3125. uint32_t tag;
  3126. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3127. switch (tag >> 3) {
  3128. // string serial = 1;
  3129. case 1:
  3130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3131. auto str = _internal_mutable_serial();
  3132. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3133. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  3134. CHK_(ptr);
  3135. } else
  3136. goto handle_unusual;
  3137. continue;
  3138. // int32 type = 2;
  3139. case 2:
  3140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3141. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3142. CHK_(ptr);
  3143. } else
  3144. goto handle_unusual;
  3145. continue;
  3146. // string name = 3;
  3147. case 3:
  3148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3149. auto str = _internal_mutable_name();
  3150. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3151. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  3152. CHK_(ptr);
  3153. } else
  3154. goto handle_unusual;
  3155. continue;
  3156. // int32 car = 4;
  3157. case 4:
  3158. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3159. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3160. CHK_(ptr);
  3161. } else
  3162. goto handle_unusual;
  3163. continue;
  3164. default:
  3165. goto handle_unusual;
  3166. } // switch
  3167. handle_unusual:
  3168. if ((tag == 0) || ((tag & 7) == 4)) {
  3169. CHK_(ptr);
  3170. ctx->SetLastTag(tag);
  3171. goto message_done;
  3172. }
  3173. ptr = UnknownFieldParse(
  3174. tag,
  3175. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3176. ptr, ctx);
  3177. CHK_(ptr != nullptr);
  3178. } // while
  3179. message_done:
  3180. return ptr;
  3181. failure:
  3182. ptr = nullptr;
  3183. goto message_done;
  3184. #undef CHK_
  3185. }
  3186. uint8_t* CSAdd::_InternalSerialize(
  3187. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3188. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  3189. uint32_t cached_has_bits = 0;
  3190. (void) cached_has_bits;
  3191. // string serial = 1;
  3192. if (!this->_internal_serial().empty()) {
  3193. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3194. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  3195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3196. "RemoNet.CSAdd.serial");
  3197. target = stream->WriteStringMaybeAliased(
  3198. 1, this->_internal_serial(), target);
  3199. }
  3200. // int32 type = 2;
  3201. if (this->_internal_type() != 0) {
  3202. target = stream->EnsureSpace(target);
  3203. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  3204. }
  3205. // string name = 3;
  3206. if (!this->_internal_name().empty()) {
  3207. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3208. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3209. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3210. "RemoNet.CSAdd.name");
  3211. target = stream->WriteStringMaybeAliased(
  3212. 3, this->_internal_name(), target);
  3213. }
  3214. // int32 car = 4;
  3215. if (this->_internal_car() != 0) {
  3216. target = stream->EnsureSpace(target);
  3217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3218. }
  3219. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3220. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3221. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3222. }
  3223. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  3224. return target;
  3225. }
  3226. size_t CSAdd::ByteSizeLong() const {
  3227. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  3228. size_t total_size = 0;
  3229. uint32_t cached_has_bits = 0;
  3230. // Prevent compiler warnings about cached_has_bits being unused
  3231. (void) cached_has_bits;
  3232. // string serial = 1;
  3233. if (!this->_internal_serial().empty()) {
  3234. total_size += 1 +
  3235. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3236. this->_internal_serial());
  3237. }
  3238. // string name = 3;
  3239. if (!this->_internal_name().empty()) {
  3240. total_size += 1 +
  3241. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3242. this->_internal_name());
  3243. }
  3244. // int32 type = 2;
  3245. if (this->_internal_type() != 0) {
  3246. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3247. }
  3248. // int32 car = 4;
  3249. if (this->_internal_car() != 0) {
  3250. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3251. }
  3252. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3253. }
  3254. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  3255. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3256. CSAdd::MergeImpl
  3257. };
  3258. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  3259. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3260. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3261. static_cast<CSAdd *>(to)->MergeFrom(
  3262. static_cast<const CSAdd &>(from));
  3263. }
  3264. void CSAdd::MergeFrom(const CSAdd& from) {
  3265. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  3266. GOOGLE_DCHECK_NE(&from, this);
  3267. uint32_t cached_has_bits = 0;
  3268. (void) cached_has_bits;
  3269. if (!from._internal_serial().empty()) {
  3270. _internal_set_serial(from._internal_serial());
  3271. }
  3272. if (!from._internal_name().empty()) {
  3273. _internal_set_name(from._internal_name());
  3274. }
  3275. if (from._internal_type() != 0) {
  3276. _internal_set_type(from._internal_type());
  3277. }
  3278. if (from._internal_car() != 0) {
  3279. _internal_set_car(from._internal_car());
  3280. }
  3281. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3282. }
  3283. void CSAdd::CopyFrom(const CSAdd& from) {
  3284. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  3285. if (&from == this) return;
  3286. Clear();
  3287. MergeFrom(from);
  3288. }
  3289. bool CSAdd::IsInitialized() const {
  3290. return true;
  3291. }
  3292. void CSAdd::InternalSwap(CSAdd* other) {
  3293. using std::swap;
  3294. auto* lhs_arena = GetArenaForAllocation();
  3295. auto* rhs_arena = other->GetArenaForAllocation();
  3296. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3297. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3298. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3299. &serial_, lhs_arena,
  3300. &other->serial_, rhs_arena
  3301. );
  3302. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3303. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3304. &name_, lhs_arena,
  3305. &other->name_, rhs_arena
  3306. );
  3307. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3308. PROTOBUF_FIELD_OFFSET(CSAdd, car_)
  3309. + sizeof(CSAdd::car_)
  3310. - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>(
  3311. reinterpret_cast<char*>(&type_),
  3312. reinterpret_cast<char*>(&other->type_));
  3313. }
  3314. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  3315. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3316. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3317. file_level_metadata_protocol_2eproto[7]);
  3318. }
  3319. // ===================================================================
  3320. class SCAdd::_Internal {
  3321. public:
  3322. };
  3323. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3324. bool is_message_owned)
  3325. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3326. SharedCtor();
  3327. if (!is_message_owned) {
  3328. RegisterArenaDtor(arena);
  3329. }
  3330. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  3331. }
  3332. SCAdd::SCAdd(const SCAdd& from)
  3333. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3334. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3335. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3336. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3337. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3338. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3339. if (!from._internal_name().empty()) {
  3340. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3341. GetArenaForAllocation());
  3342. }
  3343. ::memcpy(&ret_, &from.ret_,
  3344. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3345. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3346. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  3347. }
  3348. inline void SCAdd::SharedCtor() {
  3349. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3350. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3351. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3352. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3353. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3354. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  3355. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3356. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3357. }
  3358. SCAdd::~SCAdd() {
  3359. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  3360. if (GetArenaForAllocation() != nullptr) return;
  3361. SharedDtor();
  3362. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3363. }
  3364. inline void SCAdd::SharedDtor() {
  3365. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3366. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3367. }
  3368. void SCAdd::ArenaDtor(void* object) {
  3369. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  3370. (void)_this;
  3371. }
  3372. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3373. }
  3374. void SCAdd::SetCachedSize(int size) const {
  3375. _cached_size_.Set(size);
  3376. }
  3377. void SCAdd::Clear() {
  3378. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  3379. uint32_t cached_has_bits = 0;
  3380. // Prevent compiler warnings about cached_has_bits being unused
  3381. (void) cached_has_bits;
  3382. name_.ClearToEmpty();
  3383. ::memset(&ret_, 0, static_cast<size_t>(
  3384. reinterpret_cast<char*>(&car_) -
  3385. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3386. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3387. }
  3388. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3389. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3390. while (!ctx->Done(&ptr)) {
  3391. uint32_t tag;
  3392. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3393. switch (tag >> 3) {
  3394. // bool ret = 1;
  3395. case 1:
  3396. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3397. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3398. CHK_(ptr);
  3399. } else
  3400. goto handle_unusual;
  3401. continue;
  3402. // int32 uid = 2;
  3403. case 2:
  3404. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3405. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3406. CHK_(ptr);
  3407. } else
  3408. goto handle_unusual;
  3409. continue;
  3410. // string name = 3;
  3411. case 3:
  3412. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3413. auto str = _internal_mutable_name();
  3414. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3415. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  3416. CHK_(ptr);
  3417. } else
  3418. goto handle_unusual;
  3419. continue;
  3420. // int32 car = 4;
  3421. case 4:
  3422. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3423. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3424. CHK_(ptr);
  3425. } else
  3426. goto handle_unusual;
  3427. continue;
  3428. default:
  3429. goto handle_unusual;
  3430. } // switch
  3431. handle_unusual:
  3432. if ((tag == 0) || ((tag & 7) == 4)) {
  3433. CHK_(ptr);
  3434. ctx->SetLastTag(tag);
  3435. goto message_done;
  3436. }
  3437. ptr = UnknownFieldParse(
  3438. tag,
  3439. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3440. ptr, ctx);
  3441. CHK_(ptr != nullptr);
  3442. } // while
  3443. message_done:
  3444. return ptr;
  3445. failure:
  3446. ptr = nullptr;
  3447. goto message_done;
  3448. #undef CHK_
  3449. }
  3450. uint8_t* SCAdd::_InternalSerialize(
  3451. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3452. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  3453. uint32_t cached_has_bits = 0;
  3454. (void) cached_has_bits;
  3455. // bool ret = 1;
  3456. if (this->_internal_ret() != 0) {
  3457. target = stream->EnsureSpace(target);
  3458. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3459. }
  3460. // int32 uid = 2;
  3461. if (this->_internal_uid() != 0) {
  3462. target = stream->EnsureSpace(target);
  3463. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3464. }
  3465. // string name = 3;
  3466. if (!this->_internal_name().empty()) {
  3467. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3468. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3469. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3470. "RemoNet.SCAdd.name");
  3471. target = stream->WriteStringMaybeAliased(
  3472. 3, this->_internal_name(), target);
  3473. }
  3474. // int32 car = 4;
  3475. if (this->_internal_car() != 0) {
  3476. target = stream->EnsureSpace(target);
  3477. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3478. }
  3479. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3480. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3481. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3482. }
  3483. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  3484. return target;
  3485. }
  3486. size_t SCAdd::ByteSizeLong() const {
  3487. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  3488. size_t total_size = 0;
  3489. uint32_t cached_has_bits = 0;
  3490. // Prevent compiler warnings about cached_has_bits being unused
  3491. (void) cached_has_bits;
  3492. // string name = 3;
  3493. if (!this->_internal_name().empty()) {
  3494. total_size += 1 +
  3495. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3496. this->_internal_name());
  3497. }
  3498. // bool ret = 1;
  3499. if (this->_internal_ret() != 0) {
  3500. total_size += 1 + 1;
  3501. }
  3502. // int32 uid = 2;
  3503. if (this->_internal_uid() != 0) {
  3504. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3505. }
  3506. // int32 car = 4;
  3507. if (this->_internal_car() != 0) {
  3508. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3509. }
  3510. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3511. }
  3512. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  3513. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3514. SCAdd::MergeImpl
  3515. };
  3516. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  3517. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3518. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3519. static_cast<SCAdd *>(to)->MergeFrom(
  3520. static_cast<const SCAdd &>(from));
  3521. }
  3522. void SCAdd::MergeFrom(const SCAdd& from) {
  3523. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  3524. GOOGLE_DCHECK_NE(&from, this);
  3525. uint32_t cached_has_bits = 0;
  3526. (void) cached_has_bits;
  3527. if (!from._internal_name().empty()) {
  3528. _internal_set_name(from._internal_name());
  3529. }
  3530. if (from._internal_ret() != 0) {
  3531. _internal_set_ret(from._internal_ret());
  3532. }
  3533. if (from._internal_uid() != 0) {
  3534. _internal_set_uid(from._internal_uid());
  3535. }
  3536. if (from._internal_car() != 0) {
  3537. _internal_set_car(from._internal_car());
  3538. }
  3539. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3540. }
  3541. void SCAdd::CopyFrom(const SCAdd& from) {
  3542. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  3543. if (&from == this) return;
  3544. Clear();
  3545. MergeFrom(from);
  3546. }
  3547. bool SCAdd::IsInitialized() const {
  3548. return true;
  3549. }
  3550. void SCAdd::InternalSwap(SCAdd* other) {
  3551. using std::swap;
  3552. auto* lhs_arena = GetArenaForAllocation();
  3553. auto* rhs_arena = other->GetArenaForAllocation();
  3554. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3555. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3556. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3557. &name_, lhs_arena,
  3558. &other->name_, rhs_arena
  3559. );
  3560. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3561. PROTOBUF_FIELD_OFFSET(SCAdd, car_)
  3562. + sizeof(SCAdd::car_)
  3563. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  3564. reinterpret_cast<char*>(&ret_),
  3565. reinterpret_cast<char*>(&other->ret_));
  3566. }
  3567. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  3568. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3569. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3570. file_level_metadata_protocol_2eproto[8]);
  3571. }
  3572. // ===================================================================
  3573. class SCKickOff::_Internal {
  3574. public:
  3575. };
  3576. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3577. bool is_message_owned)
  3578. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3579. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  3580. }
  3581. SCKickOff::SCKickOff(const SCKickOff& from)
  3582. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3583. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3584. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  3585. }
  3586. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  3587. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3588. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3589. };
  3590. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  3591. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  3592. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3593. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3594. file_level_metadata_protocol_2eproto[9]);
  3595. }
  3596. // ===================================================================
  3597. class CSState::_Internal {
  3598. public:
  3599. };
  3600. CSState::CSState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3601. bool is_message_owned)
  3602. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3603. SharedCtor();
  3604. if (!is_message_owned) {
  3605. RegisterArenaDtor(arena);
  3606. }
  3607. // @@protoc_insertion_point(arena_constructor:RemoNet.CSState)
  3608. }
  3609. CSState::CSState(const CSState& from)
  3610. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3611. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3612. ::memcpy(&state_, &from.state_,
  3613. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3614. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3615. // @@protoc_insertion_point(copy_constructor:RemoNet.CSState)
  3616. }
  3617. inline void CSState::SharedCtor() {
  3618. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3619. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3620. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3621. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3622. }
  3623. CSState::~CSState() {
  3624. // @@protoc_insertion_point(destructor:RemoNet.CSState)
  3625. if (GetArenaForAllocation() != nullptr) return;
  3626. SharedDtor();
  3627. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3628. }
  3629. inline void CSState::SharedDtor() {
  3630. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3631. }
  3632. void CSState::ArenaDtor(void* object) {
  3633. CSState* _this = reinterpret_cast< CSState* >(object);
  3634. (void)_this;
  3635. }
  3636. void CSState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3637. }
  3638. void CSState::SetCachedSize(int size) const {
  3639. _cached_size_.Set(size);
  3640. }
  3641. void CSState::Clear() {
  3642. // @@protoc_insertion_point(message_clear_start:RemoNet.CSState)
  3643. uint32_t cached_has_bits = 0;
  3644. // Prevent compiler warnings about cached_has_bits being unused
  3645. (void) cached_has_bits;
  3646. ::memset(&state_, 0, static_cast<size_t>(
  3647. reinterpret_cast<char*>(&uid_) -
  3648. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3649. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3650. }
  3651. const char* CSState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3652. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3653. while (!ctx->Done(&ptr)) {
  3654. uint32_t tag;
  3655. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3656. switch (tag >> 3) {
  3657. // .RemoNet.UserState state = 1;
  3658. case 1:
  3659. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3660. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3661. CHK_(ptr);
  3662. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3663. } else
  3664. goto handle_unusual;
  3665. continue;
  3666. // int32 uid = 2;
  3667. case 2:
  3668. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3669. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3670. CHK_(ptr);
  3671. } else
  3672. goto handle_unusual;
  3673. continue;
  3674. default:
  3675. goto handle_unusual;
  3676. } // switch
  3677. handle_unusual:
  3678. if ((tag == 0) || ((tag & 7) == 4)) {
  3679. CHK_(ptr);
  3680. ctx->SetLastTag(tag);
  3681. goto message_done;
  3682. }
  3683. ptr = UnknownFieldParse(
  3684. tag,
  3685. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3686. ptr, ctx);
  3687. CHK_(ptr != nullptr);
  3688. } // while
  3689. message_done:
  3690. return ptr;
  3691. failure:
  3692. ptr = nullptr;
  3693. goto message_done;
  3694. #undef CHK_
  3695. }
  3696. uint8_t* CSState::_InternalSerialize(
  3697. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3698. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSState)
  3699. uint32_t cached_has_bits = 0;
  3700. (void) cached_has_bits;
  3701. // .RemoNet.UserState state = 1;
  3702. if (this->_internal_state() != 0) {
  3703. target = stream->EnsureSpace(target);
  3704. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3705. 1, this->_internal_state(), target);
  3706. }
  3707. // int32 uid = 2;
  3708. if (this->_internal_uid() != 0) {
  3709. target = stream->EnsureSpace(target);
  3710. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3711. }
  3712. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3713. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3714. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3715. }
  3716. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSState)
  3717. return target;
  3718. }
  3719. size_t CSState::ByteSizeLong() const {
  3720. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSState)
  3721. size_t total_size = 0;
  3722. uint32_t cached_has_bits = 0;
  3723. // Prevent compiler warnings about cached_has_bits being unused
  3724. (void) cached_has_bits;
  3725. // .RemoNet.UserState state = 1;
  3726. if (this->_internal_state() != 0) {
  3727. total_size += 1 +
  3728. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3729. }
  3730. // int32 uid = 2;
  3731. if (this->_internal_uid() != 0) {
  3732. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3733. }
  3734. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3735. }
  3736. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSState::_class_data_ = {
  3737. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3738. CSState::MergeImpl
  3739. };
  3740. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSState::GetClassData() const { return &_class_data_; }
  3741. void CSState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3742. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3743. static_cast<CSState *>(to)->MergeFrom(
  3744. static_cast<const CSState &>(from));
  3745. }
  3746. void CSState::MergeFrom(const CSState& from) {
  3747. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSState)
  3748. GOOGLE_DCHECK_NE(&from, this);
  3749. uint32_t cached_has_bits = 0;
  3750. (void) cached_has_bits;
  3751. if (from._internal_state() != 0) {
  3752. _internal_set_state(from._internal_state());
  3753. }
  3754. if (from._internal_uid() != 0) {
  3755. _internal_set_uid(from._internal_uid());
  3756. }
  3757. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3758. }
  3759. void CSState::CopyFrom(const CSState& from) {
  3760. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSState)
  3761. if (&from == this) return;
  3762. Clear();
  3763. MergeFrom(from);
  3764. }
  3765. bool CSState::IsInitialized() const {
  3766. return true;
  3767. }
  3768. void CSState::InternalSwap(CSState* other) {
  3769. using std::swap;
  3770. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3771. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3772. PROTOBUF_FIELD_OFFSET(CSState, uid_)
  3773. + sizeof(CSState::uid_)
  3774. - PROTOBUF_FIELD_OFFSET(CSState, state_)>(
  3775. reinterpret_cast<char*>(&state_),
  3776. reinterpret_cast<char*>(&other->state_));
  3777. }
  3778. ::PROTOBUF_NAMESPACE_ID::Metadata CSState::GetMetadata() const {
  3779. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3780. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3781. file_level_metadata_protocol_2eproto[10]);
  3782. }
  3783. // ===================================================================
  3784. class SCState::_Internal {
  3785. public:
  3786. };
  3787. SCState::SCState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3788. bool is_message_owned)
  3789. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3790. SharedCtor();
  3791. if (!is_message_owned) {
  3792. RegisterArenaDtor(arena);
  3793. }
  3794. // @@protoc_insertion_point(arena_constructor:RemoNet.SCState)
  3795. }
  3796. SCState::SCState(const SCState& from)
  3797. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3798. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3799. ::memcpy(&state_, &from.state_,
  3800. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3801. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3802. // @@protoc_insertion_point(copy_constructor:RemoNet.SCState)
  3803. }
  3804. inline void SCState::SharedCtor() {
  3805. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3806. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3807. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3808. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3809. }
  3810. SCState::~SCState() {
  3811. // @@protoc_insertion_point(destructor:RemoNet.SCState)
  3812. if (GetArenaForAllocation() != nullptr) return;
  3813. SharedDtor();
  3814. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3815. }
  3816. inline void SCState::SharedDtor() {
  3817. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3818. }
  3819. void SCState::ArenaDtor(void* object) {
  3820. SCState* _this = reinterpret_cast< SCState* >(object);
  3821. (void)_this;
  3822. }
  3823. void SCState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3824. }
  3825. void SCState::SetCachedSize(int size) const {
  3826. _cached_size_.Set(size);
  3827. }
  3828. void SCState::Clear() {
  3829. // @@protoc_insertion_point(message_clear_start:RemoNet.SCState)
  3830. uint32_t cached_has_bits = 0;
  3831. // Prevent compiler warnings about cached_has_bits being unused
  3832. (void) cached_has_bits;
  3833. ::memset(&state_, 0, static_cast<size_t>(
  3834. reinterpret_cast<char*>(&uid_) -
  3835. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3836. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3837. }
  3838. const char* SCState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3839. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3840. while (!ctx->Done(&ptr)) {
  3841. uint32_t tag;
  3842. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3843. switch (tag >> 3) {
  3844. // .RemoNet.UserState state = 1;
  3845. case 1:
  3846. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3847. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3848. CHK_(ptr);
  3849. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3850. } else
  3851. goto handle_unusual;
  3852. continue;
  3853. // int32 uid = 2;
  3854. case 2:
  3855. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3856. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3857. CHK_(ptr);
  3858. } else
  3859. goto handle_unusual;
  3860. continue;
  3861. default:
  3862. goto handle_unusual;
  3863. } // switch
  3864. handle_unusual:
  3865. if ((tag == 0) || ((tag & 7) == 4)) {
  3866. CHK_(ptr);
  3867. ctx->SetLastTag(tag);
  3868. goto message_done;
  3869. }
  3870. ptr = UnknownFieldParse(
  3871. tag,
  3872. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3873. ptr, ctx);
  3874. CHK_(ptr != nullptr);
  3875. } // while
  3876. message_done:
  3877. return ptr;
  3878. failure:
  3879. ptr = nullptr;
  3880. goto message_done;
  3881. #undef CHK_
  3882. }
  3883. uint8_t* SCState::_InternalSerialize(
  3884. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3885. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCState)
  3886. uint32_t cached_has_bits = 0;
  3887. (void) cached_has_bits;
  3888. // .RemoNet.UserState state = 1;
  3889. if (this->_internal_state() != 0) {
  3890. target = stream->EnsureSpace(target);
  3891. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3892. 1, this->_internal_state(), target);
  3893. }
  3894. // int32 uid = 2;
  3895. if (this->_internal_uid() != 0) {
  3896. target = stream->EnsureSpace(target);
  3897. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3898. }
  3899. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3900. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3901. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3902. }
  3903. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCState)
  3904. return target;
  3905. }
  3906. size_t SCState::ByteSizeLong() const {
  3907. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCState)
  3908. size_t total_size = 0;
  3909. uint32_t cached_has_bits = 0;
  3910. // Prevent compiler warnings about cached_has_bits being unused
  3911. (void) cached_has_bits;
  3912. // .RemoNet.UserState state = 1;
  3913. if (this->_internal_state() != 0) {
  3914. total_size += 1 +
  3915. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3916. }
  3917. // int32 uid = 2;
  3918. if (this->_internal_uid() != 0) {
  3919. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3920. }
  3921. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3922. }
  3923. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCState::_class_data_ = {
  3924. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3925. SCState::MergeImpl
  3926. };
  3927. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCState::GetClassData() const { return &_class_data_; }
  3928. void SCState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3929. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3930. static_cast<SCState *>(to)->MergeFrom(
  3931. static_cast<const SCState &>(from));
  3932. }
  3933. void SCState::MergeFrom(const SCState& from) {
  3934. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCState)
  3935. GOOGLE_DCHECK_NE(&from, this);
  3936. uint32_t cached_has_bits = 0;
  3937. (void) cached_has_bits;
  3938. if (from._internal_state() != 0) {
  3939. _internal_set_state(from._internal_state());
  3940. }
  3941. if (from._internal_uid() != 0) {
  3942. _internal_set_uid(from._internal_uid());
  3943. }
  3944. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3945. }
  3946. void SCState::CopyFrom(const SCState& from) {
  3947. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCState)
  3948. if (&from == this) return;
  3949. Clear();
  3950. MergeFrom(from);
  3951. }
  3952. bool SCState::IsInitialized() const {
  3953. return true;
  3954. }
  3955. void SCState::InternalSwap(SCState* other) {
  3956. using std::swap;
  3957. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3958. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3959. PROTOBUF_FIELD_OFFSET(SCState, uid_)
  3960. + sizeof(SCState::uid_)
  3961. - PROTOBUF_FIELD_OFFSET(SCState, state_)>(
  3962. reinterpret_cast<char*>(&state_),
  3963. reinterpret_cast<char*>(&other->state_));
  3964. }
  3965. ::PROTOBUF_NAMESPACE_ID::Metadata SCState::GetMetadata() const {
  3966. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3967. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3968. file_level_metadata_protocol_2eproto[11]);
  3969. }
  3970. // ===================================================================
  3971. class Robot::_Internal {
  3972. public:
  3973. };
  3974. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3975. bool is_message_owned)
  3976. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3977. SharedCtor();
  3978. if (!is_message_owned) {
  3979. RegisterArenaDtor(arena);
  3980. }
  3981. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  3982. }
  3983. Robot::Robot(const Robot& from)
  3984. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3985. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3986. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3987. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3988. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3989. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3990. if (!from._internal_name().empty()) {
  3991. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3992. GetArenaForAllocation());
  3993. }
  3994. ::memcpy(&rid_, &from.rid_,
  3995. static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3996. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3997. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  3998. }
  3999. inline void Robot::SharedCtor() {
  4000. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4001. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4002. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4003. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4004. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4005. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  4006. 0, static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  4007. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4008. }
  4009. Robot::~Robot() {
  4010. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  4011. if (GetArenaForAllocation() != nullptr) return;
  4012. SharedDtor();
  4013. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4014. }
  4015. inline void Robot::SharedDtor() {
  4016. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4017. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4018. }
  4019. void Robot::ArenaDtor(void* object) {
  4020. Robot* _this = reinterpret_cast< Robot* >(object);
  4021. (void)_this;
  4022. }
  4023. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4024. }
  4025. void Robot::SetCachedSize(int size) const {
  4026. _cached_size_.Set(size);
  4027. }
  4028. void Robot::Clear() {
  4029. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  4030. uint32_t cached_has_bits = 0;
  4031. // Prevent compiler warnings about cached_has_bits being unused
  4032. (void) cached_has_bits;
  4033. name_.ClearToEmpty();
  4034. ::memset(&rid_, 0, static_cast<size_t>(
  4035. reinterpret_cast<char*>(&cartype_) -
  4036. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4037. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4038. }
  4039. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4040. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4041. while (!ctx->Done(&ptr)) {
  4042. uint32_t tag;
  4043. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4044. switch (tag >> 3) {
  4045. // int32 rid = 1;
  4046. case 1:
  4047. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4048. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4049. CHK_(ptr);
  4050. } else
  4051. goto handle_unusual;
  4052. continue;
  4053. // string name = 2;
  4054. case 2:
  4055. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4056. auto str = _internal_mutable_name();
  4057. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4058. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  4059. CHK_(ptr);
  4060. } else
  4061. goto handle_unusual;
  4062. continue;
  4063. // int32 type = 3;
  4064. case 3:
  4065. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4066. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4067. CHK_(ptr);
  4068. } else
  4069. goto handle_unusual;
  4070. continue;
  4071. // .RemoNet.UserState state = 4;
  4072. case 4:
  4073. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  4074. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4075. CHK_(ptr);
  4076. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  4077. } else
  4078. goto handle_unusual;
  4079. continue;
  4080. // int32 carType = 5;
  4081. case 5:
  4082. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4083. cartype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4084. CHK_(ptr);
  4085. } else
  4086. goto handle_unusual;
  4087. continue;
  4088. default:
  4089. goto handle_unusual;
  4090. } // switch
  4091. handle_unusual:
  4092. if ((tag == 0) || ((tag & 7) == 4)) {
  4093. CHK_(ptr);
  4094. ctx->SetLastTag(tag);
  4095. goto message_done;
  4096. }
  4097. ptr = UnknownFieldParse(
  4098. tag,
  4099. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4100. ptr, ctx);
  4101. CHK_(ptr != nullptr);
  4102. } // while
  4103. message_done:
  4104. return ptr;
  4105. failure:
  4106. ptr = nullptr;
  4107. goto message_done;
  4108. #undef CHK_
  4109. }
  4110. uint8_t* Robot::_InternalSerialize(
  4111. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4112. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  4113. uint32_t cached_has_bits = 0;
  4114. (void) cached_has_bits;
  4115. // int32 rid = 1;
  4116. if (this->_internal_rid() != 0) {
  4117. target = stream->EnsureSpace(target);
  4118. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  4119. }
  4120. // string name = 2;
  4121. if (!this->_internal_name().empty()) {
  4122. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4123. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4124. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4125. "RemoNet.Robot.name");
  4126. target = stream->WriteStringMaybeAliased(
  4127. 2, this->_internal_name(), target);
  4128. }
  4129. // int32 type = 3;
  4130. if (this->_internal_type() != 0) {
  4131. target = stream->EnsureSpace(target);
  4132. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  4133. }
  4134. // .RemoNet.UserState state = 4;
  4135. if (this->_internal_state() != 0) {
  4136. target = stream->EnsureSpace(target);
  4137. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4138. 4, this->_internal_state(), target);
  4139. }
  4140. // int32 carType = 5;
  4141. if (this->_internal_cartype() != 0) {
  4142. target = stream->EnsureSpace(target);
  4143. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_cartype(), target);
  4144. }
  4145. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4146. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4147. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4148. }
  4149. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  4150. return target;
  4151. }
  4152. size_t Robot::ByteSizeLong() const {
  4153. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  4154. size_t total_size = 0;
  4155. uint32_t cached_has_bits = 0;
  4156. // Prevent compiler warnings about cached_has_bits being unused
  4157. (void) cached_has_bits;
  4158. // string name = 2;
  4159. if (!this->_internal_name().empty()) {
  4160. total_size += 1 +
  4161. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4162. this->_internal_name());
  4163. }
  4164. // int32 rid = 1;
  4165. if (this->_internal_rid() != 0) {
  4166. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  4167. }
  4168. // int32 type = 3;
  4169. if (this->_internal_type() != 0) {
  4170. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  4171. }
  4172. // .RemoNet.UserState state = 4;
  4173. if (this->_internal_state() != 0) {
  4174. total_size += 1 +
  4175. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4176. }
  4177. // int32 carType = 5;
  4178. if (this->_internal_cartype() != 0) {
  4179. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cartype());
  4180. }
  4181. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4182. }
  4183. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  4184. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4185. Robot::MergeImpl
  4186. };
  4187. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  4188. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4189. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4190. static_cast<Robot *>(to)->MergeFrom(
  4191. static_cast<const Robot &>(from));
  4192. }
  4193. void Robot::MergeFrom(const Robot& from) {
  4194. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  4195. GOOGLE_DCHECK_NE(&from, this);
  4196. uint32_t cached_has_bits = 0;
  4197. (void) cached_has_bits;
  4198. if (!from._internal_name().empty()) {
  4199. _internal_set_name(from._internal_name());
  4200. }
  4201. if (from._internal_rid() != 0) {
  4202. _internal_set_rid(from._internal_rid());
  4203. }
  4204. if (from._internal_type() != 0) {
  4205. _internal_set_type(from._internal_type());
  4206. }
  4207. if (from._internal_state() != 0) {
  4208. _internal_set_state(from._internal_state());
  4209. }
  4210. if (from._internal_cartype() != 0) {
  4211. _internal_set_cartype(from._internal_cartype());
  4212. }
  4213. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4214. }
  4215. void Robot::CopyFrom(const Robot& from) {
  4216. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  4217. if (&from == this) return;
  4218. Clear();
  4219. MergeFrom(from);
  4220. }
  4221. bool Robot::IsInitialized() const {
  4222. return true;
  4223. }
  4224. void Robot::InternalSwap(Robot* other) {
  4225. using std::swap;
  4226. auto* lhs_arena = GetArenaForAllocation();
  4227. auto* rhs_arena = other->GetArenaForAllocation();
  4228. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4229. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4230. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4231. &name_, lhs_arena,
  4232. &other->name_, rhs_arena
  4233. );
  4234. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4235. PROTOBUF_FIELD_OFFSET(Robot, cartype_)
  4236. + sizeof(Robot::cartype_)
  4237. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  4238. reinterpret_cast<char*>(&rid_),
  4239. reinterpret_cast<char*>(&other->rid_));
  4240. }
  4241. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  4242. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4243. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4244. file_level_metadata_protocol_2eproto[12]);
  4245. }
  4246. // ===================================================================
  4247. class CSRobot::_Internal {
  4248. public:
  4249. };
  4250. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4251. bool is_message_owned)
  4252. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  4253. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  4254. }
  4255. CSRobot::CSRobot(const CSRobot& from)
  4256. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  4257. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4258. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  4259. }
  4260. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  4261. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  4262. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  4263. };
  4264. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  4265. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  4266. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4267. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4268. file_level_metadata_protocol_2eproto[13]);
  4269. }
  4270. // ===================================================================
  4271. class SCRobot::_Internal {
  4272. public:
  4273. };
  4274. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4275. bool is_message_owned)
  4276. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  4277. robot_(arena) {
  4278. SharedCtor();
  4279. if (!is_message_owned) {
  4280. RegisterArenaDtor(arena);
  4281. }
  4282. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  4283. }
  4284. SCRobot::SCRobot(const SCRobot& from)
  4285. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4286. robot_(from.robot_) {
  4287. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4288. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  4289. }
  4290. inline void SCRobot::SharedCtor() {
  4291. }
  4292. SCRobot::~SCRobot() {
  4293. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  4294. if (GetArenaForAllocation() != nullptr) return;
  4295. SharedDtor();
  4296. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4297. }
  4298. inline void SCRobot::SharedDtor() {
  4299. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4300. }
  4301. void SCRobot::ArenaDtor(void* object) {
  4302. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  4303. (void)_this;
  4304. }
  4305. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4306. }
  4307. void SCRobot::SetCachedSize(int size) const {
  4308. _cached_size_.Set(size);
  4309. }
  4310. void SCRobot::Clear() {
  4311. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  4312. uint32_t cached_has_bits = 0;
  4313. // Prevent compiler warnings about cached_has_bits being unused
  4314. (void) cached_has_bits;
  4315. robot_.Clear();
  4316. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4317. }
  4318. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4319. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4320. while (!ctx->Done(&ptr)) {
  4321. uint32_t tag;
  4322. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4323. switch (tag >> 3) {
  4324. // repeated .RemoNet.Robot robot = 1;
  4325. case 1:
  4326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4327. ptr -= 1;
  4328. do {
  4329. ptr += 1;
  4330. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  4331. CHK_(ptr);
  4332. if (!ctx->DataAvailable(ptr)) break;
  4333. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  4334. } else
  4335. goto handle_unusual;
  4336. continue;
  4337. default:
  4338. goto handle_unusual;
  4339. } // switch
  4340. handle_unusual:
  4341. if ((tag == 0) || ((tag & 7) == 4)) {
  4342. CHK_(ptr);
  4343. ctx->SetLastTag(tag);
  4344. goto message_done;
  4345. }
  4346. ptr = UnknownFieldParse(
  4347. tag,
  4348. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4349. ptr, ctx);
  4350. CHK_(ptr != nullptr);
  4351. } // while
  4352. message_done:
  4353. return ptr;
  4354. failure:
  4355. ptr = nullptr;
  4356. goto message_done;
  4357. #undef CHK_
  4358. }
  4359. uint8_t* SCRobot::_InternalSerialize(
  4360. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4361. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  4362. uint32_t cached_has_bits = 0;
  4363. (void) cached_has_bits;
  4364. // repeated .RemoNet.Robot robot = 1;
  4365. for (unsigned int i = 0,
  4366. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  4367. target = stream->EnsureSpace(target);
  4368. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4369. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  4370. }
  4371. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4373. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4374. }
  4375. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  4376. return target;
  4377. }
  4378. size_t SCRobot::ByteSizeLong() const {
  4379. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  4380. size_t total_size = 0;
  4381. uint32_t cached_has_bits = 0;
  4382. // Prevent compiler warnings about cached_has_bits being unused
  4383. (void) cached_has_bits;
  4384. // repeated .RemoNet.Robot robot = 1;
  4385. total_size += 1UL * this->_internal_robot_size();
  4386. for (const auto& msg : this->robot_) {
  4387. total_size +=
  4388. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  4389. }
  4390. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4391. }
  4392. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  4393. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4394. SCRobot::MergeImpl
  4395. };
  4396. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  4397. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4398. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4399. static_cast<SCRobot *>(to)->MergeFrom(
  4400. static_cast<const SCRobot &>(from));
  4401. }
  4402. void SCRobot::MergeFrom(const SCRobot& from) {
  4403. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  4404. GOOGLE_DCHECK_NE(&from, this);
  4405. uint32_t cached_has_bits = 0;
  4406. (void) cached_has_bits;
  4407. robot_.MergeFrom(from.robot_);
  4408. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4409. }
  4410. void SCRobot::CopyFrom(const SCRobot& from) {
  4411. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  4412. if (&from == this) return;
  4413. Clear();
  4414. MergeFrom(from);
  4415. }
  4416. bool SCRobot::IsInitialized() const {
  4417. return true;
  4418. }
  4419. void SCRobot::InternalSwap(SCRobot* other) {
  4420. using std::swap;
  4421. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4422. robot_.InternalSwap(&other->robot_);
  4423. }
  4424. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  4425. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4426. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4427. file_level_metadata_protocol_2eproto[14]);
  4428. }
  4429. // ===================================================================
  4430. class CSSign::_Internal {
  4431. public:
  4432. };
  4433. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4434. bool is_message_owned)
  4435. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4436. SharedCtor();
  4437. if (!is_message_owned) {
  4438. RegisterArenaDtor(arena);
  4439. }
  4440. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  4441. }
  4442. CSSign::CSSign(const CSSign& from)
  4443. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4444. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4445. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4446. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4447. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4448. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4449. if (!from._internal_account().empty()) {
  4450. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  4451. GetArenaForAllocation());
  4452. }
  4453. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4454. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4455. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4456. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4457. if (!from._internal_password().empty()) {
  4458. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  4459. GetArenaForAllocation());
  4460. }
  4461. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  4462. }
  4463. inline void CSSign::SharedCtor() {
  4464. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4465. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4466. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4467. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4468. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4469. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4470. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4471. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4472. }
  4473. CSSign::~CSSign() {
  4474. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  4475. if (GetArenaForAllocation() != nullptr) return;
  4476. SharedDtor();
  4477. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4478. }
  4479. inline void CSSign::SharedDtor() {
  4480. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4481. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4482. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4483. }
  4484. void CSSign::ArenaDtor(void* object) {
  4485. CSSign* _this = reinterpret_cast< CSSign* >(object);
  4486. (void)_this;
  4487. }
  4488. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4489. }
  4490. void CSSign::SetCachedSize(int size) const {
  4491. _cached_size_.Set(size);
  4492. }
  4493. void CSSign::Clear() {
  4494. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  4495. uint32_t cached_has_bits = 0;
  4496. // Prevent compiler warnings about cached_has_bits being unused
  4497. (void) cached_has_bits;
  4498. account_.ClearToEmpty();
  4499. password_.ClearToEmpty();
  4500. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4501. }
  4502. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4503. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4504. while (!ctx->Done(&ptr)) {
  4505. uint32_t tag;
  4506. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4507. switch (tag >> 3) {
  4508. // string account = 1;
  4509. case 1:
  4510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4511. auto str = _internal_mutable_account();
  4512. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4513. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  4514. CHK_(ptr);
  4515. } else
  4516. goto handle_unusual;
  4517. continue;
  4518. // string password = 2;
  4519. case 2:
  4520. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4521. auto str = _internal_mutable_password();
  4522. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4523. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  4524. CHK_(ptr);
  4525. } else
  4526. goto handle_unusual;
  4527. continue;
  4528. default:
  4529. goto handle_unusual;
  4530. } // switch
  4531. handle_unusual:
  4532. if ((tag == 0) || ((tag & 7) == 4)) {
  4533. CHK_(ptr);
  4534. ctx->SetLastTag(tag);
  4535. goto message_done;
  4536. }
  4537. ptr = UnknownFieldParse(
  4538. tag,
  4539. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4540. ptr, ctx);
  4541. CHK_(ptr != nullptr);
  4542. } // while
  4543. message_done:
  4544. return ptr;
  4545. failure:
  4546. ptr = nullptr;
  4547. goto message_done;
  4548. #undef CHK_
  4549. }
  4550. uint8_t* CSSign::_InternalSerialize(
  4551. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4552. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  4553. uint32_t cached_has_bits = 0;
  4554. (void) cached_has_bits;
  4555. // string account = 1;
  4556. if (!this->_internal_account().empty()) {
  4557. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4558. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  4559. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4560. "RemoNet.CSSign.account");
  4561. target = stream->WriteStringMaybeAliased(
  4562. 1, this->_internal_account(), target);
  4563. }
  4564. // string password = 2;
  4565. if (!this->_internal_password().empty()) {
  4566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4567. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  4568. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4569. "RemoNet.CSSign.password");
  4570. target = stream->WriteStringMaybeAliased(
  4571. 2, this->_internal_password(), target);
  4572. }
  4573. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4574. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4575. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4576. }
  4577. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  4578. return target;
  4579. }
  4580. size_t CSSign::ByteSizeLong() const {
  4581. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  4582. size_t total_size = 0;
  4583. uint32_t cached_has_bits = 0;
  4584. // Prevent compiler warnings about cached_has_bits being unused
  4585. (void) cached_has_bits;
  4586. // string account = 1;
  4587. if (!this->_internal_account().empty()) {
  4588. total_size += 1 +
  4589. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4590. this->_internal_account());
  4591. }
  4592. // string password = 2;
  4593. if (!this->_internal_password().empty()) {
  4594. total_size += 1 +
  4595. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4596. this->_internal_password());
  4597. }
  4598. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4599. }
  4600. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  4601. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4602. CSSign::MergeImpl
  4603. };
  4604. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  4605. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4606. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4607. static_cast<CSSign *>(to)->MergeFrom(
  4608. static_cast<const CSSign &>(from));
  4609. }
  4610. void CSSign::MergeFrom(const CSSign& from) {
  4611. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  4612. GOOGLE_DCHECK_NE(&from, this);
  4613. uint32_t cached_has_bits = 0;
  4614. (void) cached_has_bits;
  4615. if (!from._internal_account().empty()) {
  4616. _internal_set_account(from._internal_account());
  4617. }
  4618. if (!from._internal_password().empty()) {
  4619. _internal_set_password(from._internal_password());
  4620. }
  4621. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4622. }
  4623. void CSSign::CopyFrom(const CSSign& from) {
  4624. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  4625. if (&from == this) return;
  4626. Clear();
  4627. MergeFrom(from);
  4628. }
  4629. bool CSSign::IsInitialized() const {
  4630. return true;
  4631. }
  4632. void CSSign::InternalSwap(CSSign* other) {
  4633. using std::swap;
  4634. auto* lhs_arena = GetArenaForAllocation();
  4635. auto* rhs_arena = other->GetArenaForAllocation();
  4636. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4637. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4638. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4639. &account_, lhs_arena,
  4640. &other->account_, rhs_arena
  4641. );
  4642. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4643. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4644. &password_, lhs_arena,
  4645. &other->password_, rhs_arena
  4646. );
  4647. }
  4648. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  4649. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4650. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4651. file_level_metadata_protocol_2eproto[15]);
  4652. }
  4653. // ===================================================================
  4654. class SCSign::_Internal {
  4655. public:
  4656. };
  4657. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4658. bool is_message_owned)
  4659. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4660. SharedCtor();
  4661. if (!is_message_owned) {
  4662. RegisterArenaDtor(arena);
  4663. }
  4664. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  4665. }
  4666. SCSign::SCSign(const SCSign& from)
  4667. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4668. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4669. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4670. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4671. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4672. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4673. if (!from._internal_name().empty()) {
  4674. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4675. GetArenaForAllocation());
  4676. }
  4677. ::memcpy(&ret_, &from.ret_,
  4678. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4679. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4680. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  4681. }
  4682. inline void SCSign::SharedCtor() {
  4683. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4685. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4686. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4687. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4688. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  4689. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4690. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4691. }
  4692. SCSign::~SCSign() {
  4693. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  4694. if (GetArenaForAllocation() != nullptr) return;
  4695. SharedDtor();
  4696. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4697. }
  4698. inline void SCSign::SharedDtor() {
  4699. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4700. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4701. }
  4702. void SCSign::ArenaDtor(void* object) {
  4703. SCSign* _this = reinterpret_cast< SCSign* >(object);
  4704. (void)_this;
  4705. }
  4706. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4707. }
  4708. void SCSign::SetCachedSize(int size) const {
  4709. _cached_size_.Set(size);
  4710. }
  4711. void SCSign::Clear() {
  4712. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  4713. uint32_t cached_has_bits = 0;
  4714. // Prevent compiler warnings about cached_has_bits being unused
  4715. (void) cached_has_bits;
  4716. name_.ClearToEmpty();
  4717. ::memset(&ret_, 0, static_cast<size_t>(
  4718. reinterpret_cast<char*>(&uid_) -
  4719. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4720. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4721. }
  4722. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4723. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4724. while (!ctx->Done(&ptr)) {
  4725. uint32_t tag;
  4726. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4727. switch (tag >> 3) {
  4728. // bool ret = 1;
  4729. case 1:
  4730. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4731. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4732. CHK_(ptr);
  4733. } else
  4734. goto handle_unusual;
  4735. continue;
  4736. // int32 uid = 2;
  4737. case 2:
  4738. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4739. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4740. CHK_(ptr);
  4741. } else
  4742. goto handle_unusual;
  4743. continue;
  4744. // string name = 3;
  4745. case 3:
  4746. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4747. auto str = _internal_mutable_name();
  4748. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4749. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  4750. CHK_(ptr);
  4751. } else
  4752. goto handle_unusual;
  4753. continue;
  4754. default:
  4755. goto handle_unusual;
  4756. } // switch
  4757. handle_unusual:
  4758. if ((tag == 0) || ((tag & 7) == 4)) {
  4759. CHK_(ptr);
  4760. ctx->SetLastTag(tag);
  4761. goto message_done;
  4762. }
  4763. ptr = UnknownFieldParse(
  4764. tag,
  4765. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4766. ptr, ctx);
  4767. CHK_(ptr != nullptr);
  4768. } // while
  4769. message_done:
  4770. return ptr;
  4771. failure:
  4772. ptr = nullptr;
  4773. goto message_done;
  4774. #undef CHK_
  4775. }
  4776. uint8_t* SCSign::_InternalSerialize(
  4777. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4778. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  4779. uint32_t cached_has_bits = 0;
  4780. (void) cached_has_bits;
  4781. // bool ret = 1;
  4782. if (this->_internal_ret() != 0) {
  4783. target = stream->EnsureSpace(target);
  4784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  4785. }
  4786. // int32 uid = 2;
  4787. if (this->_internal_uid() != 0) {
  4788. target = stream->EnsureSpace(target);
  4789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4790. }
  4791. // string name = 3;
  4792. if (!this->_internal_name().empty()) {
  4793. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4794. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4795. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4796. "RemoNet.SCSign.name");
  4797. target = stream->WriteStringMaybeAliased(
  4798. 3, this->_internal_name(), target);
  4799. }
  4800. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4801. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4802. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4803. }
  4804. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  4805. return target;
  4806. }
  4807. size_t SCSign::ByteSizeLong() const {
  4808. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  4809. size_t total_size = 0;
  4810. uint32_t cached_has_bits = 0;
  4811. // Prevent compiler warnings about cached_has_bits being unused
  4812. (void) cached_has_bits;
  4813. // string name = 3;
  4814. if (!this->_internal_name().empty()) {
  4815. total_size += 1 +
  4816. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4817. this->_internal_name());
  4818. }
  4819. // bool ret = 1;
  4820. if (this->_internal_ret() != 0) {
  4821. total_size += 1 + 1;
  4822. }
  4823. // int32 uid = 2;
  4824. if (this->_internal_uid() != 0) {
  4825. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4826. }
  4827. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4828. }
  4829. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  4830. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4831. SCSign::MergeImpl
  4832. };
  4833. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  4834. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4835. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4836. static_cast<SCSign *>(to)->MergeFrom(
  4837. static_cast<const SCSign &>(from));
  4838. }
  4839. void SCSign::MergeFrom(const SCSign& from) {
  4840. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  4841. GOOGLE_DCHECK_NE(&from, this);
  4842. uint32_t cached_has_bits = 0;
  4843. (void) cached_has_bits;
  4844. if (!from._internal_name().empty()) {
  4845. _internal_set_name(from._internal_name());
  4846. }
  4847. if (from._internal_ret() != 0) {
  4848. _internal_set_ret(from._internal_ret());
  4849. }
  4850. if (from._internal_uid() != 0) {
  4851. _internal_set_uid(from._internal_uid());
  4852. }
  4853. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4854. }
  4855. void SCSign::CopyFrom(const SCSign& from) {
  4856. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  4857. if (&from == this) return;
  4858. Clear();
  4859. MergeFrom(from);
  4860. }
  4861. bool SCSign::IsInitialized() const {
  4862. return true;
  4863. }
  4864. void SCSign::InternalSwap(SCSign* other) {
  4865. using std::swap;
  4866. auto* lhs_arena = GetArenaForAllocation();
  4867. auto* rhs_arena = other->GetArenaForAllocation();
  4868. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4869. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4870. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4871. &name_, lhs_arena,
  4872. &other->name_, rhs_arena
  4873. );
  4874. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4875. PROTOBUF_FIELD_OFFSET(SCSign, uid_)
  4876. + sizeof(SCSign::uid_)
  4877. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  4878. reinterpret_cast<char*>(&ret_),
  4879. reinterpret_cast<char*>(&other->ret_));
  4880. }
  4881. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  4882. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4883. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4884. file_level_metadata_protocol_2eproto[16]);
  4885. }
  4886. // ===================================================================
  4887. class CSReq::_Internal {
  4888. public:
  4889. };
  4890. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4891. bool is_message_owned)
  4892. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4893. SharedCtor();
  4894. if (!is_message_owned) {
  4895. RegisterArenaDtor(arena);
  4896. }
  4897. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  4898. }
  4899. CSReq::CSReq(const CSReq& from)
  4900. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4901. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4902. ::memcpy(&peer_, &from.peer_,
  4903. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4904. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4905. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  4906. }
  4907. inline void CSReq::SharedCtor() {
  4908. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4909. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4910. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4911. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4912. }
  4913. CSReq::~CSReq() {
  4914. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  4915. if (GetArenaForAllocation() != nullptr) return;
  4916. SharedDtor();
  4917. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4918. }
  4919. inline void CSReq::SharedDtor() {
  4920. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4921. }
  4922. void CSReq::ArenaDtor(void* object) {
  4923. CSReq* _this = reinterpret_cast< CSReq* >(object);
  4924. (void)_this;
  4925. }
  4926. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4927. }
  4928. void CSReq::SetCachedSize(int size) const {
  4929. _cached_size_.Set(size);
  4930. }
  4931. void CSReq::Clear() {
  4932. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  4933. uint32_t cached_has_bits = 0;
  4934. // Prevent compiler warnings about cached_has_bits being unused
  4935. (void) cached_has_bits;
  4936. ::memset(&peer_, 0, static_cast<size_t>(
  4937. reinterpret_cast<char*>(&egotype_) -
  4938. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4939. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4940. }
  4941. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4942. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4943. while (!ctx->Done(&ptr)) {
  4944. uint32_t tag;
  4945. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4946. switch (tag >> 3) {
  4947. // int32 peer = 1;
  4948. case 1:
  4949. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4950. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4951. CHK_(ptr);
  4952. } else
  4953. goto handle_unusual;
  4954. continue;
  4955. // int32 index = 2;
  4956. case 2:
  4957. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4958. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4959. CHK_(ptr);
  4960. } else
  4961. goto handle_unusual;
  4962. continue;
  4963. // int32 egotype = 3;
  4964. case 3:
  4965. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4966. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4967. CHK_(ptr);
  4968. } else
  4969. goto handle_unusual;
  4970. continue;
  4971. default:
  4972. goto handle_unusual;
  4973. } // switch
  4974. handle_unusual:
  4975. if ((tag == 0) || ((tag & 7) == 4)) {
  4976. CHK_(ptr);
  4977. ctx->SetLastTag(tag);
  4978. goto message_done;
  4979. }
  4980. ptr = UnknownFieldParse(
  4981. tag,
  4982. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4983. ptr, ctx);
  4984. CHK_(ptr != nullptr);
  4985. } // while
  4986. message_done:
  4987. return ptr;
  4988. failure:
  4989. ptr = nullptr;
  4990. goto message_done;
  4991. #undef CHK_
  4992. }
  4993. uint8_t* CSReq::_InternalSerialize(
  4994. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4995. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  4996. uint32_t cached_has_bits = 0;
  4997. (void) cached_has_bits;
  4998. // int32 peer = 1;
  4999. if (this->_internal_peer() != 0) {
  5000. target = stream->EnsureSpace(target);
  5001. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  5002. }
  5003. // int32 index = 2;
  5004. if (this->_internal_index() != 0) {
  5005. target = stream->EnsureSpace(target);
  5006. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5007. }
  5008. // int32 egotype = 3;
  5009. if (this->_internal_egotype() != 0) {
  5010. target = stream->EnsureSpace(target);
  5011. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5012. }
  5013. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5014. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5015. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5016. }
  5017. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  5018. return target;
  5019. }
  5020. size_t CSReq::ByteSizeLong() const {
  5021. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  5022. size_t total_size = 0;
  5023. uint32_t cached_has_bits = 0;
  5024. // Prevent compiler warnings about cached_has_bits being unused
  5025. (void) cached_has_bits;
  5026. // int32 peer = 1;
  5027. if (this->_internal_peer() != 0) {
  5028. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5029. }
  5030. // int32 index = 2;
  5031. if (this->_internal_index() != 0) {
  5032. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5033. }
  5034. // int32 egotype = 3;
  5035. if (this->_internal_egotype() != 0) {
  5036. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5037. }
  5038. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5039. }
  5040. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  5041. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5042. CSReq::MergeImpl
  5043. };
  5044. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  5045. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5046. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5047. static_cast<CSReq *>(to)->MergeFrom(
  5048. static_cast<const CSReq &>(from));
  5049. }
  5050. void CSReq::MergeFrom(const CSReq& from) {
  5051. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  5052. GOOGLE_DCHECK_NE(&from, this);
  5053. uint32_t cached_has_bits = 0;
  5054. (void) cached_has_bits;
  5055. if (from._internal_peer() != 0) {
  5056. _internal_set_peer(from._internal_peer());
  5057. }
  5058. if (from._internal_index() != 0) {
  5059. _internal_set_index(from._internal_index());
  5060. }
  5061. if (from._internal_egotype() != 0) {
  5062. _internal_set_egotype(from._internal_egotype());
  5063. }
  5064. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5065. }
  5066. void CSReq::CopyFrom(const CSReq& from) {
  5067. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  5068. if (&from == this) return;
  5069. Clear();
  5070. MergeFrom(from);
  5071. }
  5072. bool CSReq::IsInitialized() const {
  5073. return true;
  5074. }
  5075. void CSReq::InternalSwap(CSReq* other) {
  5076. using std::swap;
  5077. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5078. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5079. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  5080. + sizeof(CSReq::egotype_)
  5081. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  5082. reinterpret_cast<char*>(&peer_),
  5083. reinterpret_cast<char*>(&other->peer_));
  5084. }
  5085. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  5086. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5087. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5088. file_level_metadata_protocol_2eproto[17]);
  5089. }
  5090. // ===================================================================
  5091. class SCReq::_Internal {
  5092. public:
  5093. };
  5094. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5095. bool is_message_owned)
  5096. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5097. SharedCtor();
  5098. if (!is_message_owned) {
  5099. RegisterArenaDtor(arena);
  5100. }
  5101. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  5102. }
  5103. SCReq::SCReq(const SCReq& from)
  5104. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5105. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5106. ::memcpy(&desc_, &from.desc_,
  5107. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5108. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5109. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  5110. }
  5111. inline void SCReq::SharedCtor() {
  5112. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5113. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5114. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5115. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5116. }
  5117. SCReq::~SCReq() {
  5118. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  5119. if (GetArenaForAllocation() != nullptr) return;
  5120. SharedDtor();
  5121. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5122. }
  5123. inline void SCReq::SharedDtor() {
  5124. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5125. }
  5126. void SCReq::ArenaDtor(void* object) {
  5127. SCReq* _this = reinterpret_cast< SCReq* >(object);
  5128. (void)_this;
  5129. }
  5130. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5131. }
  5132. void SCReq::SetCachedSize(int size) const {
  5133. _cached_size_.Set(size);
  5134. }
  5135. void SCReq::Clear() {
  5136. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  5137. uint32_t cached_has_bits = 0;
  5138. // Prevent compiler warnings about cached_has_bits being unused
  5139. (void) cached_has_bits;
  5140. ::memset(&desc_, 0, static_cast<size_t>(
  5141. reinterpret_cast<char*>(&egotype_) -
  5142. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5143. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5144. }
  5145. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5146. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5147. while (!ctx->Done(&ptr)) {
  5148. uint32_t tag;
  5149. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5150. switch (tag >> 3) {
  5151. // .RemoNet.VideoDesc desc = 1;
  5152. case 1:
  5153. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5154. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5155. CHK_(ptr);
  5156. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5157. } else
  5158. goto handle_unusual;
  5159. continue;
  5160. // int32 peer = 2;
  5161. case 2:
  5162. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5163. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5164. CHK_(ptr);
  5165. } else
  5166. goto handle_unusual;
  5167. continue;
  5168. // int32 egotype = 3;
  5169. case 3:
  5170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5171. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5172. CHK_(ptr);
  5173. } else
  5174. goto handle_unusual;
  5175. continue;
  5176. default:
  5177. goto handle_unusual;
  5178. } // switch
  5179. handle_unusual:
  5180. if ((tag == 0) || ((tag & 7) == 4)) {
  5181. CHK_(ptr);
  5182. ctx->SetLastTag(tag);
  5183. goto message_done;
  5184. }
  5185. ptr = UnknownFieldParse(
  5186. tag,
  5187. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5188. ptr, ctx);
  5189. CHK_(ptr != nullptr);
  5190. } // while
  5191. message_done:
  5192. return ptr;
  5193. failure:
  5194. ptr = nullptr;
  5195. goto message_done;
  5196. #undef CHK_
  5197. }
  5198. uint8_t* SCReq::_InternalSerialize(
  5199. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5200. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  5201. uint32_t cached_has_bits = 0;
  5202. (void) cached_has_bits;
  5203. // .RemoNet.VideoDesc desc = 1;
  5204. if (this->_internal_desc() != 0) {
  5205. target = stream->EnsureSpace(target);
  5206. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5207. 1, this->_internal_desc(), target);
  5208. }
  5209. // int32 peer = 2;
  5210. if (this->_internal_peer() != 0) {
  5211. target = stream->EnsureSpace(target);
  5212. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5213. }
  5214. // int32 egotype = 3;
  5215. if (this->_internal_egotype() != 0) {
  5216. target = stream->EnsureSpace(target);
  5217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5218. }
  5219. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5220. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5221. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5222. }
  5223. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  5224. return target;
  5225. }
  5226. size_t SCReq::ByteSizeLong() const {
  5227. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  5228. size_t total_size = 0;
  5229. uint32_t cached_has_bits = 0;
  5230. // Prevent compiler warnings about cached_has_bits being unused
  5231. (void) cached_has_bits;
  5232. // .RemoNet.VideoDesc desc = 1;
  5233. if (this->_internal_desc() != 0) {
  5234. total_size += 1 +
  5235. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5236. }
  5237. // int32 peer = 2;
  5238. if (this->_internal_peer() != 0) {
  5239. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5240. }
  5241. // int32 egotype = 3;
  5242. if (this->_internal_egotype() != 0) {
  5243. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5244. }
  5245. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5246. }
  5247. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  5248. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5249. SCReq::MergeImpl
  5250. };
  5251. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  5252. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5253. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5254. static_cast<SCReq *>(to)->MergeFrom(
  5255. static_cast<const SCReq &>(from));
  5256. }
  5257. void SCReq::MergeFrom(const SCReq& from) {
  5258. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  5259. GOOGLE_DCHECK_NE(&from, this);
  5260. uint32_t cached_has_bits = 0;
  5261. (void) cached_has_bits;
  5262. if (from._internal_desc() != 0) {
  5263. _internal_set_desc(from._internal_desc());
  5264. }
  5265. if (from._internal_peer() != 0) {
  5266. _internal_set_peer(from._internal_peer());
  5267. }
  5268. if (from._internal_egotype() != 0) {
  5269. _internal_set_egotype(from._internal_egotype());
  5270. }
  5271. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5272. }
  5273. void SCReq::CopyFrom(const SCReq& from) {
  5274. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  5275. if (&from == this) return;
  5276. Clear();
  5277. MergeFrom(from);
  5278. }
  5279. bool SCReq::IsInitialized() const {
  5280. return true;
  5281. }
  5282. void SCReq::InternalSwap(SCReq* other) {
  5283. using std::swap;
  5284. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5285. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5286. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  5287. + sizeof(SCReq::egotype_)
  5288. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  5289. reinterpret_cast<char*>(&desc_),
  5290. reinterpret_cast<char*>(&other->desc_));
  5291. }
  5292. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  5293. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5294. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5295. file_level_metadata_protocol_2eproto[18]);
  5296. }
  5297. // ===================================================================
  5298. class CSRep::_Internal {
  5299. public:
  5300. };
  5301. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5302. bool is_message_owned)
  5303. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5304. SharedCtor();
  5305. if (!is_message_owned) {
  5306. RegisterArenaDtor(arena);
  5307. }
  5308. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  5309. }
  5310. CSRep::CSRep(const CSRep& from)
  5311. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5312. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5313. ::memcpy(&desc_, &from.desc_,
  5314. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5315. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5316. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  5317. }
  5318. inline void CSRep::SharedCtor() {
  5319. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5320. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5321. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5322. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5323. }
  5324. CSRep::~CSRep() {
  5325. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  5326. if (GetArenaForAllocation() != nullptr) return;
  5327. SharedDtor();
  5328. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5329. }
  5330. inline void CSRep::SharedDtor() {
  5331. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5332. }
  5333. void CSRep::ArenaDtor(void* object) {
  5334. CSRep* _this = reinterpret_cast< CSRep* >(object);
  5335. (void)_this;
  5336. }
  5337. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5338. }
  5339. void CSRep::SetCachedSize(int size) const {
  5340. _cached_size_.Set(size);
  5341. }
  5342. void CSRep::Clear() {
  5343. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  5344. uint32_t cached_has_bits = 0;
  5345. // Prevent compiler warnings about cached_has_bits being unused
  5346. (void) cached_has_bits;
  5347. ::memset(&desc_, 0, static_cast<size_t>(
  5348. reinterpret_cast<char*>(&egotype_) -
  5349. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5350. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5351. }
  5352. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5353. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5354. while (!ctx->Done(&ptr)) {
  5355. uint32_t tag;
  5356. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5357. switch (tag >> 3) {
  5358. // .RemoNet.VideoDesc desc = 1;
  5359. case 1:
  5360. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5361. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5362. CHK_(ptr);
  5363. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5364. } else
  5365. goto handle_unusual;
  5366. continue;
  5367. // int32 peer = 2;
  5368. case 2:
  5369. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5370. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5371. CHK_(ptr);
  5372. } else
  5373. goto handle_unusual;
  5374. continue;
  5375. // int32 index = 3;
  5376. case 3:
  5377. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5378. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5379. CHK_(ptr);
  5380. } else
  5381. goto handle_unusual;
  5382. continue;
  5383. // int32 egotype = 4;
  5384. case 4:
  5385. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5386. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5387. CHK_(ptr);
  5388. } else
  5389. goto handle_unusual;
  5390. continue;
  5391. default:
  5392. goto handle_unusual;
  5393. } // switch
  5394. handle_unusual:
  5395. if ((tag == 0) || ((tag & 7) == 4)) {
  5396. CHK_(ptr);
  5397. ctx->SetLastTag(tag);
  5398. goto message_done;
  5399. }
  5400. ptr = UnknownFieldParse(
  5401. tag,
  5402. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5403. ptr, ctx);
  5404. CHK_(ptr != nullptr);
  5405. } // while
  5406. message_done:
  5407. return ptr;
  5408. failure:
  5409. ptr = nullptr;
  5410. goto message_done;
  5411. #undef CHK_
  5412. }
  5413. uint8_t* CSRep::_InternalSerialize(
  5414. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5415. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  5416. uint32_t cached_has_bits = 0;
  5417. (void) cached_has_bits;
  5418. // .RemoNet.VideoDesc desc = 1;
  5419. if (this->_internal_desc() != 0) {
  5420. target = stream->EnsureSpace(target);
  5421. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5422. 1, this->_internal_desc(), target);
  5423. }
  5424. // int32 peer = 2;
  5425. if (this->_internal_peer() != 0) {
  5426. target = stream->EnsureSpace(target);
  5427. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5428. }
  5429. // int32 index = 3;
  5430. if (this->_internal_index() != 0) {
  5431. target = stream->EnsureSpace(target);
  5432. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5433. }
  5434. // int32 egotype = 4;
  5435. if (this->_internal_egotype() != 0) {
  5436. target = stream->EnsureSpace(target);
  5437. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  5438. }
  5439. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5440. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5441. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5442. }
  5443. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  5444. return target;
  5445. }
  5446. size_t CSRep::ByteSizeLong() const {
  5447. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  5448. size_t total_size = 0;
  5449. uint32_t cached_has_bits = 0;
  5450. // Prevent compiler warnings about cached_has_bits being unused
  5451. (void) cached_has_bits;
  5452. // .RemoNet.VideoDesc desc = 1;
  5453. if (this->_internal_desc() != 0) {
  5454. total_size += 1 +
  5455. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5456. }
  5457. // int32 peer = 2;
  5458. if (this->_internal_peer() != 0) {
  5459. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5460. }
  5461. // int32 index = 3;
  5462. if (this->_internal_index() != 0) {
  5463. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5464. }
  5465. // int32 egotype = 4;
  5466. if (this->_internal_egotype() != 0) {
  5467. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5468. }
  5469. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5470. }
  5471. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  5472. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5473. CSRep::MergeImpl
  5474. };
  5475. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  5476. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5477. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5478. static_cast<CSRep *>(to)->MergeFrom(
  5479. static_cast<const CSRep &>(from));
  5480. }
  5481. void CSRep::MergeFrom(const CSRep& from) {
  5482. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  5483. GOOGLE_DCHECK_NE(&from, this);
  5484. uint32_t cached_has_bits = 0;
  5485. (void) cached_has_bits;
  5486. if (from._internal_desc() != 0) {
  5487. _internal_set_desc(from._internal_desc());
  5488. }
  5489. if (from._internal_peer() != 0) {
  5490. _internal_set_peer(from._internal_peer());
  5491. }
  5492. if (from._internal_index() != 0) {
  5493. _internal_set_index(from._internal_index());
  5494. }
  5495. if (from._internal_egotype() != 0) {
  5496. _internal_set_egotype(from._internal_egotype());
  5497. }
  5498. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5499. }
  5500. void CSRep::CopyFrom(const CSRep& from) {
  5501. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  5502. if (&from == this) return;
  5503. Clear();
  5504. MergeFrom(from);
  5505. }
  5506. bool CSRep::IsInitialized() const {
  5507. return true;
  5508. }
  5509. void CSRep::InternalSwap(CSRep* other) {
  5510. using std::swap;
  5511. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5512. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5513. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  5514. + sizeof(CSRep::egotype_)
  5515. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  5516. reinterpret_cast<char*>(&desc_),
  5517. reinterpret_cast<char*>(&other->desc_));
  5518. }
  5519. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  5520. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5521. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5522. file_level_metadata_protocol_2eproto[19]);
  5523. }
  5524. // ===================================================================
  5525. class SCRep::_Internal {
  5526. public:
  5527. };
  5528. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5529. bool is_message_owned)
  5530. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5531. SharedCtor();
  5532. if (!is_message_owned) {
  5533. RegisterArenaDtor(arena);
  5534. }
  5535. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  5536. }
  5537. SCRep::SCRep(const SCRep& from)
  5538. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5539. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5540. ::memcpy(&desc_, &from.desc_,
  5541. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5542. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5543. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  5544. }
  5545. inline void SCRep::SharedCtor() {
  5546. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5547. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5548. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5549. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5550. }
  5551. SCRep::~SCRep() {
  5552. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  5553. if (GetArenaForAllocation() != nullptr) return;
  5554. SharedDtor();
  5555. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5556. }
  5557. inline void SCRep::SharedDtor() {
  5558. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5559. }
  5560. void SCRep::ArenaDtor(void* object) {
  5561. SCRep* _this = reinterpret_cast< SCRep* >(object);
  5562. (void)_this;
  5563. }
  5564. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5565. }
  5566. void SCRep::SetCachedSize(int size) const {
  5567. _cached_size_.Set(size);
  5568. }
  5569. void SCRep::Clear() {
  5570. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  5571. uint32_t cached_has_bits = 0;
  5572. // Prevent compiler warnings about cached_has_bits being unused
  5573. (void) cached_has_bits;
  5574. ::memset(&desc_, 0, static_cast<size_t>(
  5575. reinterpret_cast<char*>(&peer_) -
  5576. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5577. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5578. }
  5579. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5580. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5581. while (!ctx->Done(&ptr)) {
  5582. uint32_t tag;
  5583. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5584. switch (tag >> 3) {
  5585. // .RemoNet.VideoDesc desc = 1;
  5586. case 1:
  5587. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5588. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5589. CHK_(ptr);
  5590. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5591. } else
  5592. goto handle_unusual;
  5593. continue;
  5594. // int32 index = 2;
  5595. case 2:
  5596. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5597. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5598. CHK_(ptr);
  5599. } else
  5600. goto handle_unusual;
  5601. continue;
  5602. // int32 egotype = 3;
  5603. case 3:
  5604. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5605. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5606. CHK_(ptr);
  5607. } else
  5608. goto handle_unusual;
  5609. continue;
  5610. // int32 peer = 4;
  5611. case 4:
  5612. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5613. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5614. CHK_(ptr);
  5615. } else
  5616. goto handle_unusual;
  5617. continue;
  5618. default:
  5619. goto handle_unusual;
  5620. } // switch
  5621. handle_unusual:
  5622. if ((tag == 0) || ((tag & 7) == 4)) {
  5623. CHK_(ptr);
  5624. ctx->SetLastTag(tag);
  5625. goto message_done;
  5626. }
  5627. ptr = UnknownFieldParse(
  5628. tag,
  5629. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5630. ptr, ctx);
  5631. CHK_(ptr != nullptr);
  5632. } // while
  5633. message_done:
  5634. return ptr;
  5635. failure:
  5636. ptr = nullptr;
  5637. goto message_done;
  5638. #undef CHK_
  5639. }
  5640. uint8_t* SCRep::_InternalSerialize(
  5641. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5642. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  5643. uint32_t cached_has_bits = 0;
  5644. (void) cached_has_bits;
  5645. // .RemoNet.VideoDesc desc = 1;
  5646. if (this->_internal_desc() != 0) {
  5647. target = stream->EnsureSpace(target);
  5648. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5649. 1, this->_internal_desc(), target);
  5650. }
  5651. // int32 index = 2;
  5652. if (this->_internal_index() != 0) {
  5653. target = stream->EnsureSpace(target);
  5654. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5655. }
  5656. // int32 egotype = 3;
  5657. if (this->_internal_egotype() != 0) {
  5658. target = stream->EnsureSpace(target);
  5659. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5660. }
  5661. // int32 peer = 4;
  5662. if (this->_internal_peer() != 0) {
  5663. target = stream->EnsureSpace(target);
  5664. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  5665. }
  5666. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5667. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5668. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5669. }
  5670. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  5671. return target;
  5672. }
  5673. size_t SCRep::ByteSizeLong() const {
  5674. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  5675. size_t total_size = 0;
  5676. uint32_t cached_has_bits = 0;
  5677. // Prevent compiler warnings about cached_has_bits being unused
  5678. (void) cached_has_bits;
  5679. // .RemoNet.VideoDesc desc = 1;
  5680. if (this->_internal_desc() != 0) {
  5681. total_size += 1 +
  5682. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5683. }
  5684. // int32 index = 2;
  5685. if (this->_internal_index() != 0) {
  5686. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5687. }
  5688. // int32 egotype = 3;
  5689. if (this->_internal_egotype() != 0) {
  5690. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5691. }
  5692. // int32 peer = 4;
  5693. if (this->_internal_peer() != 0) {
  5694. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5695. }
  5696. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5697. }
  5698. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  5699. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5700. SCRep::MergeImpl
  5701. };
  5702. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  5703. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5704. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5705. static_cast<SCRep *>(to)->MergeFrom(
  5706. static_cast<const SCRep &>(from));
  5707. }
  5708. void SCRep::MergeFrom(const SCRep& from) {
  5709. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  5710. GOOGLE_DCHECK_NE(&from, this);
  5711. uint32_t cached_has_bits = 0;
  5712. (void) cached_has_bits;
  5713. if (from._internal_desc() != 0) {
  5714. _internal_set_desc(from._internal_desc());
  5715. }
  5716. if (from._internal_index() != 0) {
  5717. _internal_set_index(from._internal_index());
  5718. }
  5719. if (from._internal_egotype() != 0) {
  5720. _internal_set_egotype(from._internal_egotype());
  5721. }
  5722. if (from._internal_peer() != 0) {
  5723. _internal_set_peer(from._internal_peer());
  5724. }
  5725. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5726. }
  5727. void SCRep::CopyFrom(const SCRep& from) {
  5728. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  5729. if (&from == this) return;
  5730. Clear();
  5731. MergeFrom(from);
  5732. }
  5733. bool SCRep::IsInitialized() const {
  5734. return true;
  5735. }
  5736. void SCRep::InternalSwap(SCRep* other) {
  5737. using std::swap;
  5738. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5739. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5740. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  5741. + sizeof(SCRep::peer_)
  5742. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  5743. reinterpret_cast<char*>(&desc_),
  5744. reinterpret_cast<char*>(&other->desc_));
  5745. }
  5746. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  5747. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5748. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5749. file_level_metadata_protocol_2eproto[20]);
  5750. }
  5751. // ===================================================================
  5752. class Offer::_Internal {
  5753. public:
  5754. };
  5755. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5756. bool is_message_owned)
  5757. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5758. SharedCtor();
  5759. if (!is_message_owned) {
  5760. RegisterArenaDtor(arena);
  5761. }
  5762. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  5763. }
  5764. Offer::Offer(const Offer& from)
  5765. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5766. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5767. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5768. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5769. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5770. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5771. if (!from._internal_type().empty()) {
  5772. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5773. GetArenaForAllocation());
  5774. }
  5775. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5776. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5777. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5778. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5779. if (!from._internal_sdp().empty()) {
  5780. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5781. GetArenaForAllocation());
  5782. }
  5783. ::memcpy(&index_, &from.index_,
  5784. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5785. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5786. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  5787. }
  5788. inline void Offer::SharedCtor() {
  5789. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5790. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5791. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5792. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5793. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5794. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5795. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5796. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5797. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5798. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5799. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5800. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5801. }
  5802. Offer::~Offer() {
  5803. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  5804. if (GetArenaForAllocation() != nullptr) return;
  5805. SharedDtor();
  5806. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5807. }
  5808. inline void Offer::SharedDtor() {
  5809. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5810. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5811. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5812. }
  5813. void Offer::ArenaDtor(void* object) {
  5814. Offer* _this = reinterpret_cast< Offer* >(object);
  5815. (void)_this;
  5816. }
  5817. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5818. }
  5819. void Offer::SetCachedSize(int size) const {
  5820. _cached_size_.Set(size);
  5821. }
  5822. void Offer::Clear() {
  5823. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  5824. uint32_t cached_has_bits = 0;
  5825. // Prevent compiler warnings about cached_has_bits being unused
  5826. (void) cached_has_bits;
  5827. type_.ClearToEmpty();
  5828. sdp_.ClearToEmpty();
  5829. ::memset(&index_, 0, static_cast<size_t>(
  5830. reinterpret_cast<char*>(&peer_) -
  5831. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5832. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5833. }
  5834. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5835. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5836. while (!ctx->Done(&ptr)) {
  5837. uint32_t tag;
  5838. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5839. switch (tag >> 3) {
  5840. // int32 index = 1;
  5841. case 1:
  5842. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5843. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5844. CHK_(ptr);
  5845. } else
  5846. goto handle_unusual;
  5847. continue;
  5848. // int32 peer = 2;
  5849. case 2:
  5850. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5851. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5852. CHK_(ptr);
  5853. } else
  5854. goto handle_unusual;
  5855. continue;
  5856. // string type = 3;
  5857. case 3:
  5858. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5859. auto str = _internal_mutable_type();
  5860. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5861. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  5862. CHK_(ptr);
  5863. } else
  5864. goto handle_unusual;
  5865. continue;
  5866. // string sdp = 4;
  5867. case 4:
  5868. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  5869. auto str = _internal_mutable_sdp();
  5870. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5871. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  5872. CHK_(ptr);
  5873. } else
  5874. goto handle_unusual;
  5875. continue;
  5876. default:
  5877. goto handle_unusual;
  5878. } // switch
  5879. handle_unusual:
  5880. if ((tag == 0) || ((tag & 7) == 4)) {
  5881. CHK_(ptr);
  5882. ctx->SetLastTag(tag);
  5883. goto message_done;
  5884. }
  5885. ptr = UnknownFieldParse(
  5886. tag,
  5887. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5888. ptr, ctx);
  5889. CHK_(ptr != nullptr);
  5890. } // while
  5891. message_done:
  5892. return ptr;
  5893. failure:
  5894. ptr = nullptr;
  5895. goto message_done;
  5896. #undef CHK_
  5897. }
  5898. uint8_t* Offer::_InternalSerialize(
  5899. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5900. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  5901. uint32_t cached_has_bits = 0;
  5902. (void) cached_has_bits;
  5903. // int32 index = 1;
  5904. if (this->_internal_index() != 0) {
  5905. target = stream->EnsureSpace(target);
  5906. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  5907. }
  5908. // int32 peer = 2;
  5909. if (this->_internal_peer() != 0) {
  5910. target = stream->EnsureSpace(target);
  5911. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5912. }
  5913. // string type = 3;
  5914. if (!this->_internal_type().empty()) {
  5915. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5916. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  5917. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5918. "RemoNet.Offer.type");
  5919. target = stream->WriteStringMaybeAliased(
  5920. 3, this->_internal_type(), target);
  5921. }
  5922. // string sdp = 4;
  5923. if (!this->_internal_sdp().empty()) {
  5924. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5925. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  5926. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5927. "RemoNet.Offer.sdp");
  5928. target = stream->WriteStringMaybeAliased(
  5929. 4, this->_internal_sdp(), target);
  5930. }
  5931. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5932. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5933. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5934. }
  5935. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  5936. return target;
  5937. }
  5938. size_t Offer::ByteSizeLong() const {
  5939. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  5940. size_t total_size = 0;
  5941. uint32_t cached_has_bits = 0;
  5942. // Prevent compiler warnings about cached_has_bits being unused
  5943. (void) cached_has_bits;
  5944. // string type = 3;
  5945. if (!this->_internal_type().empty()) {
  5946. total_size += 1 +
  5947. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5948. this->_internal_type());
  5949. }
  5950. // string sdp = 4;
  5951. if (!this->_internal_sdp().empty()) {
  5952. total_size += 1 +
  5953. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5954. this->_internal_sdp());
  5955. }
  5956. // int32 index = 1;
  5957. if (this->_internal_index() != 0) {
  5958. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5959. }
  5960. // int32 peer = 2;
  5961. if (this->_internal_peer() != 0) {
  5962. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5963. }
  5964. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5965. }
  5966. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  5967. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5968. Offer::MergeImpl
  5969. };
  5970. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  5971. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5972. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5973. static_cast<Offer *>(to)->MergeFrom(
  5974. static_cast<const Offer &>(from));
  5975. }
  5976. void Offer::MergeFrom(const Offer& from) {
  5977. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  5978. GOOGLE_DCHECK_NE(&from, this);
  5979. uint32_t cached_has_bits = 0;
  5980. (void) cached_has_bits;
  5981. if (!from._internal_type().empty()) {
  5982. _internal_set_type(from._internal_type());
  5983. }
  5984. if (!from._internal_sdp().empty()) {
  5985. _internal_set_sdp(from._internal_sdp());
  5986. }
  5987. if (from._internal_index() != 0) {
  5988. _internal_set_index(from._internal_index());
  5989. }
  5990. if (from._internal_peer() != 0) {
  5991. _internal_set_peer(from._internal_peer());
  5992. }
  5993. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5994. }
  5995. void Offer::CopyFrom(const Offer& from) {
  5996. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  5997. if (&from == this) return;
  5998. Clear();
  5999. MergeFrom(from);
  6000. }
  6001. bool Offer::IsInitialized() const {
  6002. return true;
  6003. }
  6004. void Offer::InternalSwap(Offer* other) {
  6005. using std::swap;
  6006. auto* lhs_arena = GetArenaForAllocation();
  6007. auto* rhs_arena = other->GetArenaForAllocation();
  6008. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6009. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6010. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6011. &type_, lhs_arena,
  6012. &other->type_, rhs_arena
  6013. );
  6014. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6015. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6016. &sdp_, lhs_arena,
  6017. &other->sdp_, rhs_arena
  6018. );
  6019. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6020. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  6021. + sizeof(Offer::peer_)
  6022. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  6023. reinterpret_cast<char*>(&index_),
  6024. reinterpret_cast<char*>(&other->index_));
  6025. }
  6026. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  6027. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6028. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6029. file_level_metadata_protocol_2eproto[21]);
  6030. }
  6031. // ===================================================================
  6032. class Answer::_Internal {
  6033. public:
  6034. };
  6035. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6036. bool is_message_owned)
  6037. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6038. SharedCtor();
  6039. if (!is_message_owned) {
  6040. RegisterArenaDtor(arena);
  6041. }
  6042. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  6043. }
  6044. Answer::Answer(const Answer& from)
  6045. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6046. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6047. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6048. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6049. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6050. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6051. if (!from._internal_type().empty()) {
  6052. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6053. GetArenaForAllocation());
  6054. }
  6055. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6056. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6057. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6058. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6059. if (!from._internal_sdp().empty()) {
  6060. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  6061. GetArenaForAllocation());
  6062. }
  6063. ::memcpy(&index_, &from.index_,
  6064. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6065. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6066. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  6067. }
  6068. inline void Answer::SharedCtor() {
  6069. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6070. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6071. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6072. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6073. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6074. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6075. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6076. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6077. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6078. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6079. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6080. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6081. }
  6082. Answer::~Answer() {
  6083. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  6084. if (GetArenaForAllocation() != nullptr) return;
  6085. SharedDtor();
  6086. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6087. }
  6088. inline void Answer::SharedDtor() {
  6089. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6090. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6091. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6092. }
  6093. void Answer::ArenaDtor(void* object) {
  6094. Answer* _this = reinterpret_cast< Answer* >(object);
  6095. (void)_this;
  6096. }
  6097. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6098. }
  6099. void Answer::SetCachedSize(int size) const {
  6100. _cached_size_.Set(size);
  6101. }
  6102. void Answer::Clear() {
  6103. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  6104. uint32_t cached_has_bits = 0;
  6105. // Prevent compiler warnings about cached_has_bits being unused
  6106. (void) cached_has_bits;
  6107. type_.ClearToEmpty();
  6108. sdp_.ClearToEmpty();
  6109. ::memset(&index_, 0, static_cast<size_t>(
  6110. reinterpret_cast<char*>(&peer_) -
  6111. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6112. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6113. }
  6114. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6115. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6116. while (!ctx->Done(&ptr)) {
  6117. uint32_t tag;
  6118. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6119. switch (tag >> 3) {
  6120. // int32 index = 1;
  6121. case 1:
  6122. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6123. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6124. CHK_(ptr);
  6125. } else
  6126. goto handle_unusual;
  6127. continue;
  6128. // int32 peer = 2;
  6129. case 2:
  6130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6131. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6132. CHK_(ptr);
  6133. } else
  6134. goto handle_unusual;
  6135. continue;
  6136. // string type = 3;
  6137. case 3:
  6138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6139. auto str = _internal_mutable_type();
  6140. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6141. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  6142. CHK_(ptr);
  6143. } else
  6144. goto handle_unusual;
  6145. continue;
  6146. // string sdp = 4;
  6147. case 4:
  6148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6149. auto str = _internal_mutable_sdp();
  6150. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6151. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  6152. CHK_(ptr);
  6153. } else
  6154. goto handle_unusual;
  6155. continue;
  6156. default:
  6157. goto handle_unusual;
  6158. } // switch
  6159. handle_unusual:
  6160. if ((tag == 0) || ((tag & 7) == 4)) {
  6161. CHK_(ptr);
  6162. ctx->SetLastTag(tag);
  6163. goto message_done;
  6164. }
  6165. ptr = UnknownFieldParse(
  6166. tag,
  6167. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6168. ptr, ctx);
  6169. CHK_(ptr != nullptr);
  6170. } // while
  6171. message_done:
  6172. return ptr;
  6173. failure:
  6174. ptr = nullptr;
  6175. goto message_done;
  6176. #undef CHK_
  6177. }
  6178. uint8_t* Answer::_InternalSerialize(
  6179. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6180. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  6181. uint32_t cached_has_bits = 0;
  6182. (void) cached_has_bits;
  6183. // int32 index = 1;
  6184. if (this->_internal_index() != 0) {
  6185. target = stream->EnsureSpace(target);
  6186. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6187. }
  6188. // int32 peer = 2;
  6189. if (this->_internal_peer() != 0) {
  6190. target = stream->EnsureSpace(target);
  6191. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6192. }
  6193. // string type = 3;
  6194. if (!this->_internal_type().empty()) {
  6195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6196. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6197. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6198. "RemoNet.Answer.type");
  6199. target = stream->WriteStringMaybeAliased(
  6200. 3, this->_internal_type(), target);
  6201. }
  6202. // string sdp = 4;
  6203. if (!this->_internal_sdp().empty()) {
  6204. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6205. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6206. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6207. "RemoNet.Answer.sdp");
  6208. target = stream->WriteStringMaybeAliased(
  6209. 4, this->_internal_sdp(), target);
  6210. }
  6211. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6212. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6213. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6214. }
  6215. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  6216. return target;
  6217. }
  6218. size_t Answer::ByteSizeLong() const {
  6219. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  6220. size_t total_size = 0;
  6221. uint32_t cached_has_bits = 0;
  6222. // Prevent compiler warnings about cached_has_bits being unused
  6223. (void) cached_has_bits;
  6224. // string type = 3;
  6225. if (!this->_internal_type().empty()) {
  6226. total_size += 1 +
  6227. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6228. this->_internal_type());
  6229. }
  6230. // string sdp = 4;
  6231. if (!this->_internal_sdp().empty()) {
  6232. total_size += 1 +
  6233. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6234. this->_internal_sdp());
  6235. }
  6236. // int32 index = 1;
  6237. if (this->_internal_index() != 0) {
  6238. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6239. }
  6240. // int32 peer = 2;
  6241. if (this->_internal_peer() != 0) {
  6242. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6243. }
  6244. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6245. }
  6246. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  6247. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6248. Answer::MergeImpl
  6249. };
  6250. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  6251. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6252. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6253. static_cast<Answer *>(to)->MergeFrom(
  6254. static_cast<const Answer &>(from));
  6255. }
  6256. void Answer::MergeFrom(const Answer& from) {
  6257. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  6258. GOOGLE_DCHECK_NE(&from, this);
  6259. uint32_t cached_has_bits = 0;
  6260. (void) cached_has_bits;
  6261. if (!from._internal_type().empty()) {
  6262. _internal_set_type(from._internal_type());
  6263. }
  6264. if (!from._internal_sdp().empty()) {
  6265. _internal_set_sdp(from._internal_sdp());
  6266. }
  6267. if (from._internal_index() != 0) {
  6268. _internal_set_index(from._internal_index());
  6269. }
  6270. if (from._internal_peer() != 0) {
  6271. _internal_set_peer(from._internal_peer());
  6272. }
  6273. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6274. }
  6275. void Answer::CopyFrom(const Answer& from) {
  6276. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  6277. if (&from == this) return;
  6278. Clear();
  6279. MergeFrom(from);
  6280. }
  6281. bool Answer::IsInitialized() const {
  6282. return true;
  6283. }
  6284. void Answer::InternalSwap(Answer* other) {
  6285. using std::swap;
  6286. auto* lhs_arena = GetArenaForAllocation();
  6287. auto* rhs_arena = other->GetArenaForAllocation();
  6288. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6289. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6290. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6291. &type_, lhs_arena,
  6292. &other->type_, rhs_arena
  6293. );
  6294. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6295. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6296. &sdp_, lhs_arena,
  6297. &other->sdp_, rhs_arena
  6298. );
  6299. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6300. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  6301. + sizeof(Answer::peer_)
  6302. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  6303. reinterpret_cast<char*>(&index_),
  6304. reinterpret_cast<char*>(&other->index_));
  6305. }
  6306. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  6307. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6308. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6309. file_level_metadata_protocol_2eproto[22]);
  6310. }
  6311. // ===================================================================
  6312. class Candidate::_Internal {
  6313. public:
  6314. };
  6315. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6316. bool is_message_owned)
  6317. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6318. SharedCtor();
  6319. if (!is_message_owned) {
  6320. RegisterArenaDtor(arena);
  6321. }
  6322. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  6323. }
  6324. Candidate::Candidate(const Candidate& from)
  6325. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6326. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6327. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6328. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6329. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6330. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6331. if (!from._internal_type().empty()) {
  6332. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6333. GetArenaForAllocation());
  6334. }
  6335. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6336. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6337. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6338. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6339. if (!from._internal_candidate().empty()) {
  6340. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  6341. GetArenaForAllocation());
  6342. }
  6343. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6345. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6346. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6347. if (!from._internal_sdpmid().empty()) {
  6348. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  6349. GetArenaForAllocation());
  6350. }
  6351. ::memcpy(&index_, &from.index_,
  6352. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6353. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6354. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  6355. }
  6356. inline void Candidate::SharedCtor() {
  6357. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6358. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6359. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6360. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6361. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6362. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6363. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6364. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6365. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6366. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6367. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6368. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6369. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6370. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6371. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6372. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6373. }
  6374. Candidate::~Candidate() {
  6375. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  6376. if (GetArenaForAllocation() != nullptr) return;
  6377. SharedDtor();
  6378. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6379. }
  6380. inline void Candidate::SharedDtor() {
  6381. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6382. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6383. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6384. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6385. }
  6386. void Candidate::ArenaDtor(void* object) {
  6387. Candidate* _this = reinterpret_cast< Candidate* >(object);
  6388. (void)_this;
  6389. }
  6390. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6391. }
  6392. void Candidate::SetCachedSize(int size) const {
  6393. _cached_size_.Set(size);
  6394. }
  6395. void Candidate::Clear() {
  6396. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  6397. uint32_t cached_has_bits = 0;
  6398. // Prevent compiler warnings about cached_has_bits being unused
  6399. (void) cached_has_bits;
  6400. type_.ClearToEmpty();
  6401. candidate_.ClearToEmpty();
  6402. sdpmid_.ClearToEmpty();
  6403. ::memset(&index_, 0, static_cast<size_t>(
  6404. reinterpret_cast<char*>(&egotype_) -
  6405. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6406. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6407. }
  6408. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6409. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6410. while (!ctx->Done(&ptr)) {
  6411. uint32_t tag;
  6412. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6413. switch (tag >> 3) {
  6414. // int32 index = 1;
  6415. case 1:
  6416. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6417. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6418. CHK_(ptr);
  6419. } else
  6420. goto handle_unusual;
  6421. continue;
  6422. // int32 peer = 2;
  6423. case 2:
  6424. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6425. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6426. CHK_(ptr);
  6427. } else
  6428. goto handle_unusual;
  6429. continue;
  6430. // string type = 3;
  6431. case 3:
  6432. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6433. auto str = _internal_mutable_type();
  6434. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6435. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  6436. CHK_(ptr);
  6437. } else
  6438. goto handle_unusual;
  6439. continue;
  6440. // string candidate = 4;
  6441. case 4:
  6442. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6443. auto str = _internal_mutable_candidate();
  6444. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6445. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  6446. CHK_(ptr);
  6447. } else
  6448. goto handle_unusual;
  6449. continue;
  6450. // int32 sdpMLineIndex = 5;
  6451. case 5:
  6452. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6453. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6454. CHK_(ptr);
  6455. } else
  6456. goto handle_unusual;
  6457. continue;
  6458. // string sdpMid = 6;
  6459. case 6:
  6460. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  6461. auto str = _internal_mutable_sdpmid();
  6462. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6463. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  6464. CHK_(ptr);
  6465. } else
  6466. goto handle_unusual;
  6467. continue;
  6468. // int32 egotype = 7;
  6469. case 7:
  6470. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6471. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6472. CHK_(ptr);
  6473. } else
  6474. goto handle_unusual;
  6475. continue;
  6476. default:
  6477. goto handle_unusual;
  6478. } // switch
  6479. handle_unusual:
  6480. if ((tag == 0) || ((tag & 7) == 4)) {
  6481. CHK_(ptr);
  6482. ctx->SetLastTag(tag);
  6483. goto message_done;
  6484. }
  6485. ptr = UnknownFieldParse(
  6486. tag,
  6487. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6488. ptr, ctx);
  6489. CHK_(ptr != nullptr);
  6490. } // while
  6491. message_done:
  6492. return ptr;
  6493. failure:
  6494. ptr = nullptr;
  6495. goto message_done;
  6496. #undef CHK_
  6497. }
  6498. uint8_t* Candidate::_InternalSerialize(
  6499. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6500. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  6501. uint32_t cached_has_bits = 0;
  6502. (void) cached_has_bits;
  6503. // int32 index = 1;
  6504. if (this->_internal_index() != 0) {
  6505. target = stream->EnsureSpace(target);
  6506. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6507. }
  6508. // int32 peer = 2;
  6509. if (this->_internal_peer() != 0) {
  6510. target = stream->EnsureSpace(target);
  6511. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6512. }
  6513. // string type = 3;
  6514. if (!this->_internal_type().empty()) {
  6515. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6516. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6517. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6518. "RemoNet.Candidate.type");
  6519. target = stream->WriteStringMaybeAliased(
  6520. 3, this->_internal_type(), target);
  6521. }
  6522. // string candidate = 4;
  6523. if (!this->_internal_candidate().empty()) {
  6524. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6525. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  6526. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6527. "RemoNet.Candidate.candidate");
  6528. target = stream->WriteStringMaybeAliased(
  6529. 4, this->_internal_candidate(), target);
  6530. }
  6531. // int32 sdpMLineIndex = 5;
  6532. if (this->_internal_sdpmlineindex() != 0) {
  6533. target = stream->EnsureSpace(target);
  6534. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  6535. }
  6536. // string sdpMid = 6;
  6537. if (!this->_internal_sdpmid().empty()) {
  6538. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6539. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  6540. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6541. "RemoNet.Candidate.sdpMid");
  6542. target = stream->WriteStringMaybeAliased(
  6543. 6, this->_internal_sdpmid(), target);
  6544. }
  6545. // int32 egotype = 7;
  6546. if (this->_internal_egotype() != 0) {
  6547. target = stream->EnsureSpace(target);
  6548. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  6549. }
  6550. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6551. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6552. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6553. }
  6554. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  6555. return target;
  6556. }
  6557. size_t Candidate::ByteSizeLong() const {
  6558. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  6559. size_t total_size = 0;
  6560. uint32_t cached_has_bits = 0;
  6561. // Prevent compiler warnings about cached_has_bits being unused
  6562. (void) cached_has_bits;
  6563. // string type = 3;
  6564. if (!this->_internal_type().empty()) {
  6565. total_size += 1 +
  6566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6567. this->_internal_type());
  6568. }
  6569. // string candidate = 4;
  6570. if (!this->_internal_candidate().empty()) {
  6571. total_size += 1 +
  6572. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6573. this->_internal_candidate());
  6574. }
  6575. // string sdpMid = 6;
  6576. if (!this->_internal_sdpmid().empty()) {
  6577. total_size += 1 +
  6578. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6579. this->_internal_sdpmid());
  6580. }
  6581. // int32 index = 1;
  6582. if (this->_internal_index() != 0) {
  6583. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6584. }
  6585. // int32 peer = 2;
  6586. if (this->_internal_peer() != 0) {
  6587. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6588. }
  6589. // int32 sdpMLineIndex = 5;
  6590. if (this->_internal_sdpmlineindex() != 0) {
  6591. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  6592. }
  6593. // int32 egotype = 7;
  6594. if (this->_internal_egotype() != 0) {
  6595. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6596. }
  6597. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6598. }
  6599. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  6600. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6601. Candidate::MergeImpl
  6602. };
  6603. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  6604. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6605. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6606. static_cast<Candidate *>(to)->MergeFrom(
  6607. static_cast<const Candidate &>(from));
  6608. }
  6609. void Candidate::MergeFrom(const Candidate& from) {
  6610. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  6611. GOOGLE_DCHECK_NE(&from, this);
  6612. uint32_t cached_has_bits = 0;
  6613. (void) cached_has_bits;
  6614. if (!from._internal_type().empty()) {
  6615. _internal_set_type(from._internal_type());
  6616. }
  6617. if (!from._internal_candidate().empty()) {
  6618. _internal_set_candidate(from._internal_candidate());
  6619. }
  6620. if (!from._internal_sdpmid().empty()) {
  6621. _internal_set_sdpmid(from._internal_sdpmid());
  6622. }
  6623. if (from._internal_index() != 0) {
  6624. _internal_set_index(from._internal_index());
  6625. }
  6626. if (from._internal_peer() != 0) {
  6627. _internal_set_peer(from._internal_peer());
  6628. }
  6629. if (from._internal_sdpmlineindex() != 0) {
  6630. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  6631. }
  6632. if (from._internal_egotype() != 0) {
  6633. _internal_set_egotype(from._internal_egotype());
  6634. }
  6635. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6636. }
  6637. void Candidate::CopyFrom(const Candidate& from) {
  6638. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  6639. if (&from == this) return;
  6640. Clear();
  6641. MergeFrom(from);
  6642. }
  6643. bool Candidate::IsInitialized() const {
  6644. return true;
  6645. }
  6646. void Candidate::InternalSwap(Candidate* other) {
  6647. using std::swap;
  6648. auto* lhs_arena = GetArenaForAllocation();
  6649. auto* rhs_arena = other->GetArenaForAllocation();
  6650. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6651. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6652. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6653. &type_, lhs_arena,
  6654. &other->type_, rhs_arena
  6655. );
  6656. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6657. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6658. &candidate_, lhs_arena,
  6659. &other->candidate_, rhs_arena
  6660. );
  6661. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6662. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6663. &sdpmid_, lhs_arena,
  6664. &other->sdpmid_, rhs_arena
  6665. );
  6666. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6667. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  6668. + sizeof(Candidate::egotype_)
  6669. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  6670. reinterpret_cast<char*>(&index_),
  6671. reinterpret_cast<char*>(&other->index_));
  6672. }
  6673. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  6674. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6675. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6676. file_level_metadata_protocol_2eproto[23]);
  6677. }
  6678. // ===================================================================
  6679. class Leave::_Internal {
  6680. public:
  6681. };
  6682. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6683. bool is_message_owned)
  6684. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6685. SharedCtor();
  6686. if (!is_message_owned) {
  6687. RegisterArenaDtor(arena);
  6688. }
  6689. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  6690. }
  6691. Leave::Leave(const Leave& from)
  6692. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6693. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6694. ::memcpy(&peer_, &from.peer_,
  6695. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6696. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6697. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  6698. }
  6699. inline void Leave::SharedCtor() {
  6700. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6701. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6702. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6703. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6704. }
  6705. Leave::~Leave() {
  6706. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  6707. if (GetArenaForAllocation() != nullptr) return;
  6708. SharedDtor();
  6709. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6710. }
  6711. inline void Leave::SharedDtor() {
  6712. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6713. }
  6714. void Leave::ArenaDtor(void* object) {
  6715. Leave* _this = reinterpret_cast< Leave* >(object);
  6716. (void)_this;
  6717. }
  6718. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6719. }
  6720. void Leave::SetCachedSize(int size) const {
  6721. _cached_size_.Set(size);
  6722. }
  6723. void Leave::Clear() {
  6724. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  6725. uint32_t cached_has_bits = 0;
  6726. // Prevent compiler warnings about cached_has_bits being unused
  6727. (void) cached_has_bits;
  6728. ::memset(&peer_, 0, static_cast<size_t>(
  6729. reinterpret_cast<char*>(&egotype_) -
  6730. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6731. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6732. }
  6733. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6734. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6735. while (!ctx->Done(&ptr)) {
  6736. uint32_t tag;
  6737. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6738. switch (tag >> 3) {
  6739. // int32 peer = 1;
  6740. case 1:
  6741. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6742. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6743. CHK_(ptr);
  6744. } else
  6745. goto handle_unusual;
  6746. continue;
  6747. // int32 egotype = 2;
  6748. case 2:
  6749. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6750. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6751. CHK_(ptr);
  6752. } else
  6753. goto handle_unusual;
  6754. continue;
  6755. default:
  6756. goto handle_unusual;
  6757. } // switch
  6758. handle_unusual:
  6759. if ((tag == 0) || ((tag & 7) == 4)) {
  6760. CHK_(ptr);
  6761. ctx->SetLastTag(tag);
  6762. goto message_done;
  6763. }
  6764. ptr = UnknownFieldParse(
  6765. tag,
  6766. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6767. ptr, ctx);
  6768. CHK_(ptr != nullptr);
  6769. } // while
  6770. message_done:
  6771. return ptr;
  6772. failure:
  6773. ptr = nullptr;
  6774. goto message_done;
  6775. #undef CHK_
  6776. }
  6777. uint8_t* Leave::_InternalSerialize(
  6778. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6779. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  6780. uint32_t cached_has_bits = 0;
  6781. (void) cached_has_bits;
  6782. // int32 peer = 1;
  6783. if (this->_internal_peer() != 0) {
  6784. target = stream->EnsureSpace(target);
  6785. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6786. }
  6787. // int32 egotype = 2;
  6788. if (this->_internal_egotype() != 0) {
  6789. target = stream->EnsureSpace(target);
  6790. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6791. }
  6792. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6793. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6794. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6795. }
  6796. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  6797. return target;
  6798. }
  6799. size_t Leave::ByteSizeLong() const {
  6800. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  6801. size_t total_size = 0;
  6802. uint32_t cached_has_bits = 0;
  6803. // Prevent compiler warnings about cached_has_bits being unused
  6804. (void) cached_has_bits;
  6805. // int32 peer = 1;
  6806. if (this->_internal_peer() != 0) {
  6807. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6808. }
  6809. // int32 egotype = 2;
  6810. if (this->_internal_egotype() != 0) {
  6811. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6812. }
  6813. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6814. }
  6815. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  6816. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6817. Leave::MergeImpl
  6818. };
  6819. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  6820. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6821. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6822. static_cast<Leave *>(to)->MergeFrom(
  6823. static_cast<const Leave &>(from));
  6824. }
  6825. void Leave::MergeFrom(const Leave& from) {
  6826. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  6827. GOOGLE_DCHECK_NE(&from, this);
  6828. uint32_t cached_has_bits = 0;
  6829. (void) cached_has_bits;
  6830. if (from._internal_peer() != 0) {
  6831. _internal_set_peer(from._internal_peer());
  6832. }
  6833. if (from._internal_egotype() != 0) {
  6834. _internal_set_egotype(from._internal_egotype());
  6835. }
  6836. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6837. }
  6838. void Leave::CopyFrom(const Leave& from) {
  6839. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  6840. if (&from == this) return;
  6841. Clear();
  6842. MergeFrom(from);
  6843. }
  6844. bool Leave::IsInitialized() const {
  6845. return true;
  6846. }
  6847. void Leave::InternalSwap(Leave* other) {
  6848. using std::swap;
  6849. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6850. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6851. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  6852. + sizeof(Leave::egotype_)
  6853. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  6854. reinterpret_cast<char*>(&peer_),
  6855. reinterpret_cast<char*>(&other->peer_));
  6856. }
  6857. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  6858. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6859. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6860. file_level_metadata_protocol_2eproto[24]);
  6861. }
  6862. // ===================================================================
  6863. class Close::_Internal {
  6864. public:
  6865. };
  6866. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6867. bool is_message_owned)
  6868. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6869. SharedCtor();
  6870. if (!is_message_owned) {
  6871. RegisterArenaDtor(arena);
  6872. }
  6873. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  6874. }
  6875. Close::Close(const Close& from)
  6876. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6877. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6878. ::memcpy(&peer_, &from.peer_,
  6879. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6880. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6881. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  6882. }
  6883. inline void Close::SharedCtor() {
  6884. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6885. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6886. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6887. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6888. }
  6889. Close::~Close() {
  6890. // @@protoc_insertion_point(destructor:RemoNet.Close)
  6891. if (GetArenaForAllocation() != nullptr) return;
  6892. SharedDtor();
  6893. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6894. }
  6895. inline void Close::SharedDtor() {
  6896. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6897. }
  6898. void Close::ArenaDtor(void* object) {
  6899. Close* _this = reinterpret_cast< Close* >(object);
  6900. (void)_this;
  6901. }
  6902. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6903. }
  6904. void Close::SetCachedSize(int size) const {
  6905. _cached_size_.Set(size);
  6906. }
  6907. void Close::Clear() {
  6908. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  6909. uint32_t cached_has_bits = 0;
  6910. // Prevent compiler warnings about cached_has_bits being unused
  6911. (void) cached_has_bits;
  6912. ::memset(&peer_, 0, static_cast<size_t>(
  6913. reinterpret_cast<char*>(&index_) -
  6914. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6915. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6916. }
  6917. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6918. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6919. while (!ctx->Done(&ptr)) {
  6920. uint32_t tag;
  6921. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6922. switch (tag >> 3) {
  6923. // int32 peer = 1;
  6924. case 1:
  6925. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6926. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6927. CHK_(ptr);
  6928. } else
  6929. goto handle_unusual;
  6930. continue;
  6931. // int32 egotype = 2;
  6932. case 2:
  6933. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6934. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6935. CHK_(ptr);
  6936. } else
  6937. goto handle_unusual;
  6938. continue;
  6939. // int32 index = 3;
  6940. case 3:
  6941. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6942. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6943. CHK_(ptr);
  6944. } else
  6945. goto handle_unusual;
  6946. continue;
  6947. default:
  6948. goto handle_unusual;
  6949. } // switch
  6950. handle_unusual:
  6951. if ((tag == 0) || ((tag & 7) == 4)) {
  6952. CHK_(ptr);
  6953. ctx->SetLastTag(tag);
  6954. goto message_done;
  6955. }
  6956. ptr = UnknownFieldParse(
  6957. tag,
  6958. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6959. ptr, ctx);
  6960. CHK_(ptr != nullptr);
  6961. } // while
  6962. message_done:
  6963. return ptr;
  6964. failure:
  6965. ptr = nullptr;
  6966. goto message_done;
  6967. #undef CHK_
  6968. }
  6969. uint8_t* Close::_InternalSerialize(
  6970. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6971. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  6972. uint32_t cached_has_bits = 0;
  6973. (void) cached_has_bits;
  6974. // int32 peer = 1;
  6975. if (this->_internal_peer() != 0) {
  6976. target = stream->EnsureSpace(target);
  6977. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6978. }
  6979. // int32 egotype = 2;
  6980. if (this->_internal_egotype() != 0) {
  6981. target = stream->EnsureSpace(target);
  6982. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6983. }
  6984. // int32 index = 3;
  6985. if (this->_internal_index() != 0) {
  6986. target = stream->EnsureSpace(target);
  6987. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  6988. }
  6989. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6990. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6991. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6992. }
  6993. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  6994. return target;
  6995. }
  6996. size_t Close::ByteSizeLong() const {
  6997. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  6998. size_t total_size = 0;
  6999. uint32_t cached_has_bits = 0;
  7000. // Prevent compiler warnings about cached_has_bits being unused
  7001. (void) cached_has_bits;
  7002. // int32 peer = 1;
  7003. if (this->_internal_peer() != 0) {
  7004. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  7005. }
  7006. // int32 egotype = 2;
  7007. if (this->_internal_egotype() != 0) {
  7008. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  7009. }
  7010. // int32 index = 3;
  7011. if (this->_internal_index() != 0) {
  7012. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  7013. }
  7014. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7015. }
  7016. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  7017. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7018. Close::MergeImpl
  7019. };
  7020. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  7021. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7022. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7023. static_cast<Close *>(to)->MergeFrom(
  7024. static_cast<const Close &>(from));
  7025. }
  7026. void Close::MergeFrom(const Close& from) {
  7027. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  7028. GOOGLE_DCHECK_NE(&from, this);
  7029. uint32_t cached_has_bits = 0;
  7030. (void) cached_has_bits;
  7031. if (from._internal_peer() != 0) {
  7032. _internal_set_peer(from._internal_peer());
  7033. }
  7034. if (from._internal_egotype() != 0) {
  7035. _internal_set_egotype(from._internal_egotype());
  7036. }
  7037. if (from._internal_index() != 0) {
  7038. _internal_set_index(from._internal_index());
  7039. }
  7040. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7041. }
  7042. void Close::CopyFrom(const Close& from) {
  7043. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  7044. if (&from == this) return;
  7045. Clear();
  7046. MergeFrom(from);
  7047. }
  7048. bool Close::IsInitialized() const {
  7049. return true;
  7050. }
  7051. void Close::InternalSwap(Close* other) {
  7052. using std::swap;
  7053. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7054. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7055. PROTOBUF_FIELD_OFFSET(Close, index_)
  7056. + sizeof(Close::index_)
  7057. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  7058. reinterpret_cast<char*>(&peer_),
  7059. reinterpret_cast<char*>(&other->peer_));
  7060. }
  7061. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  7062. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7063. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7064. file_level_metadata_protocol_2eproto[25]);
  7065. }
  7066. // ===================================================================
  7067. class TestTextReq::_Internal {
  7068. public:
  7069. };
  7070. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7071. bool is_message_owned)
  7072. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7073. SharedCtor();
  7074. if (!is_message_owned) {
  7075. RegisterArenaDtor(arena);
  7076. }
  7077. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  7078. }
  7079. TestTextReq::TestTextReq(const TestTextReq& from)
  7080. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7081. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7082. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7083. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7084. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7085. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7086. if (!from._internal_text().empty()) {
  7087. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  7088. GetArenaForAllocation());
  7089. }
  7090. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  7091. }
  7092. inline void TestTextReq::SharedCtor() {
  7093. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7094. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7095. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7096. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7097. }
  7098. TestTextReq::~TestTextReq() {
  7099. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  7100. if (GetArenaForAllocation() != nullptr) return;
  7101. SharedDtor();
  7102. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7103. }
  7104. inline void TestTextReq::SharedDtor() {
  7105. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7106. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7107. }
  7108. void TestTextReq::ArenaDtor(void* object) {
  7109. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  7110. (void)_this;
  7111. }
  7112. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7113. }
  7114. void TestTextReq::SetCachedSize(int size) const {
  7115. _cached_size_.Set(size);
  7116. }
  7117. void TestTextReq::Clear() {
  7118. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  7119. uint32_t cached_has_bits = 0;
  7120. // Prevent compiler warnings about cached_has_bits being unused
  7121. (void) cached_has_bits;
  7122. text_.ClearToEmpty();
  7123. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7124. }
  7125. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7126. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7127. while (!ctx->Done(&ptr)) {
  7128. uint32_t tag;
  7129. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7130. switch (tag >> 3) {
  7131. // string text = 1;
  7132. case 1:
  7133. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7134. auto str = _internal_mutable_text();
  7135. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7136. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  7137. CHK_(ptr);
  7138. } else
  7139. goto handle_unusual;
  7140. continue;
  7141. default:
  7142. goto handle_unusual;
  7143. } // switch
  7144. handle_unusual:
  7145. if ((tag == 0) || ((tag & 7) == 4)) {
  7146. CHK_(ptr);
  7147. ctx->SetLastTag(tag);
  7148. goto message_done;
  7149. }
  7150. ptr = UnknownFieldParse(
  7151. tag,
  7152. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7153. ptr, ctx);
  7154. CHK_(ptr != nullptr);
  7155. } // while
  7156. message_done:
  7157. return ptr;
  7158. failure:
  7159. ptr = nullptr;
  7160. goto message_done;
  7161. #undef CHK_
  7162. }
  7163. uint8_t* TestTextReq::_InternalSerialize(
  7164. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7165. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  7166. uint32_t cached_has_bits = 0;
  7167. (void) cached_has_bits;
  7168. // string text = 1;
  7169. if (!this->_internal_text().empty()) {
  7170. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7171. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  7172. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7173. "RemoNet.TestTextReq.text");
  7174. target = stream->WriteStringMaybeAliased(
  7175. 1, this->_internal_text(), target);
  7176. }
  7177. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7178. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7179. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7180. }
  7181. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  7182. return target;
  7183. }
  7184. size_t TestTextReq::ByteSizeLong() const {
  7185. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  7186. size_t total_size = 0;
  7187. uint32_t cached_has_bits = 0;
  7188. // Prevent compiler warnings about cached_has_bits being unused
  7189. (void) cached_has_bits;
  7190. // string text = 1;
  7191. if (!this->_internal_text().empty()) {
  7192. total_size += 1 +
  7193. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7194. this->_internal_text());
  7195. }
  7196. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7197. }
  7198. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  7199. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7200. TestTextReq::MergeImpl
  7201. };
  7202. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  7203. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7204. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7205. static_cast<TestTextReq *>(to)->MergeFrom(
  7206. static_cast<const TestTextReq &>(from));
  7207. }
  7208. void TestTextReq::MergeFrom(const TestTextReq& from) {
  7209. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  7210. GOOGLE_DCHECK_NE(&from, this);
  7211. uint32_t cached_has_bits = 0;
  7212. (void) cached_has_bits;
  7213. if (!from._internal_text().empty()) {
  7214. _internal_set_text(from._internal_text());
  7215. }
  7216. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7217. }
  7218. void TestTextReq::CopyFrom(const TestTextReq& from) {
  7219. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  7220. if (&from == this) return;
  7221. Clear();
  7222. MergeFrom(from);
  7223. }
  7224. bool TestTextReq::IsInitialized() const {
  7225. return true;
  7226. }
  7227. void TestTextReq::InternalSwap(TestTextReq* other) {
  7228. using std::swap;
  7229. auto* lhs_arena = GetArenaForAllocation();
  7230. auto* rhs_arena = other->GetArenaForAllocation();
  7231. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7232. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7233. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7234. &text_, lhs_arena,
  7235. &other->text_, rhs_arena
  7236. );
  7237. }
  7238. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  7239. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7240. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7241. file_level_metadata_protocol_2eproto[26]);
  7242. }
  7243. // ===================================================================
  7244. class SyncTime::_Internal {
  7245. public:
  7246. };
  7247. SyncTime::SyncTime(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7248. bool is_message_owned)
  7249. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7250. SharedCtor();
  7251. if (!is_message_owned) {
  7252. RegisterArenaDtor(arena);
  7253. }
  7254. // @@protoc_insertion_point(arena_constructor:RemoNet.SyncTime)
  7255. }
  7256. SyncTime::SyncTime(const SyncTime& from)
  7257. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7258. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7259. ::memcpy(&tm_sec_, &from.tm_sec_,
  7260. static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7261. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7262. // @@protoc_insertion_point(copy_constructor:RemoNet.SyncTime)
  7263. }
  7264. inline void SyncTime::SharedCtor() {
  7265. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7266. reinterpret_cast<char*>(&tm_sec_) - reinterpret_cast<char*>(this)),
  7267. 0, static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7268. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7269. }
  7270. SyncTime::~SyncTime() {
  7271. // @@protoc_insertion_point(destructor:RemoNet.SyncTime)
  7272. if (GetArenaForAllocation() != nullptr) return;
  7273. SharedDtor();
  7274. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7275. }
  7276. inline void SyncTime::SharedDtor() {
  7277. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7278. }
  7279. void SyncTime::ArenaDtor(void* object) {
  7280. SyncTime* _this = reinterpret_cast< SyncTime* >(object);
  7281. (void)_this;
  7282. }
  7283. void SyncTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7284. }
  7285. void SyncTime::SetCachedSize(int size) const {
  7286. _cached_size_.Set(size);
  7287. }
  7288. void SyncTime::Clear() {
  7289. // @@protoc_insertion_point(message_clear_start:RemoNet.SyncTime)
  7290. uint32_t cached_has_bits = 0;
  7291. // Prevent compiler warnings about cached_has_bits being unused
  7292. (void) cached_has_bits;
  7293. ::memset(&tm_sec_, 0, static_cast<size_t>(
  7294. reinterpret_cast<char*>(&update_time_) -
  7295. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7296. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7297. }
  7298. const char* SyncTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7299. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7300. while (!ctx->Done(&ptr)) {
  7301. uint32_t tag;
  7302. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7303. switch (tag >> 3) {
  7304. // int32 tm_sec = 1;
  7305. case 1:
  7306. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7307. tm_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7308. CHK_(ptr);
  7309. } else
  7310. goto handle_unusual;
  7311. continue;
  7312. // int32 tm_min = 2;
  7313. case 2:
  7314. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7315. tm_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7316. CHK_(ptr);
  7317. } else
  7318. goto handle_unusual;
  7319. continue;
  7320. // int32 tm_hour = 3;
  7321. case 3:
  7322. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7323. tm_hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7324. CHK_(ptr);
  7325. } else
  7326. goto handle_unusual;
  7327. continue;
  7328. // int32 tm_mday = 4;
  7329. case 4:
  7330. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7331. tm_mday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7332. CHK_(ptr);
  7333. } else
  7334. goto handle_unusual;
  7335. continue;
  7336. // int32 tm_mon = 5;
  7337. case 5:
  7338. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7339. tm_mon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7340. CHK_(ptr);
  7341. } else
  7342. goto handle_unusual;
  7343. continue;
  7344. // int32 tm_year = 6;
  7345. case 6:
  7346. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7347. tm_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7348. CHK_(ptr);
  7349. } else
  7350. goto handle_unusual;
  7351. continue;
  7352. // int32 tm_wday = 7;
  7353. case 7:
  7354. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7355. tm_wday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7356. CHK_(ptr);
  7357. } else
  7358. goto handle_unusual;
  7359. continue;
  7360. // int32 tm_yday = 8;
  7361. case 8:
  7362. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7363. tm_yday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7364. CHK_(ptr);
  7365. } else
  7366. goto handle_unusual;
  7367. continue;
  7368. // int32 tm_isdst = 9;
  7369. case 9:
  7370. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7371. tm_isdst_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7372. CHK_(ptr);
  7373. } else
  7374. goto handle_unusual;
  7375. continue;
  7376. // bool update_time = 10;
  7377. case 10:
  7378. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7379. update_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7380. CHK_(ptr);
  7381. } else
  7382. goto handle_unusual;
  7383. continue;
  7384. default:
  7385. goto handle_unusual;
  7386. } // switch
  7387. handle_unusual:
  7388. if ((tag == 0) || ((tag & 7) == 4)) {
  7389. CHK_(ptr);
  7390. ctx->SetLastTag(tag);
  7391. goto message_done;
  7392. }
  7393. ptr = UnknownFieldParse(
  7394. tag,
  7395. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7396. ptr, ctx);
  7397. CHK_(ptr != nullptr);
  7398. } // while
  7399. message_done:
  7400. return ptr;
  7401. failure:
  7402. ptr = nullptr;
  7403. goto message_done;
  7404. #undef CHK_
  7405. }
  7406. uint8_t* SyncTime::_InternalSerialize(
  7407. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7408. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SyncTime)
  7409. uint32_t cached_has_bits = 0;
  7410. (void) cached_has_bits;
  7411. // int32 tm_sec = 1;
  7412. if (this->_internal_tm_sec() != 0) {
  7413. target = stream->EnsureSpace(target);
  7414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_tm_sec(), target);
  7415. }
  7416. // int32 tm_min = 2;
  7417. if (this->_internal_tm_min() != 0) {
  7418. target = stream->EnsureSpace(target);
  7419. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_tm_min(), target);
  7420. }
  7421. // int32 tm_hour = 3;
  7422. if (this->_internal_tm_hour() != 0) {
  7423. target = stream->EnsureSpace(target);
  7424. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_tm_hour(), target);
  7425. }
  7426. // int32 tm_mday = 4;
  7427. if (this->_internal_tm_mday() != 0) {
  7428. target = stream->EnsureSpace(target);
  7429. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_tm_mday(), target);
  7430. }
  7431. // int32 tm_mon = 5;
  7432. if (this->_internal_tm_mon() != 0) {
  7433. target = stream->EnsureSpace(target);
  7434. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_tm_mon(), target);
  7435. }
  7436. // int32 tm_year = 6;
  7437. if (this->_internal_tm_year() != 0) {
  7438. target = stream->EnsureSpace(target);
  7439. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tm_year(), target);
  7440. }
  7441. // int32 tm_wday = 7;
  7442. if (this->_internal_tm_wday() != 0) {
  7443. target = stream->EnsureSpace(target);
  7444. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_tm_wday(), target);
  7445. }
  7446. // int32 tm_yday = 8;
  7447. if (this->_internal_tm_yday() != 0) {
  7448. target = stream->EnsureSpace(target);
  7449. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_tm_yday(), target);
  7450. }
  7451. // int32 tm_isdst = 9;
  7452. if (this->_internal_tm_isdst() != 0) {
  7453. target = stream->EnsureSpace(target);
  7454. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tm_isdst(), target);
  7455. }
  7456. // bool update_time = 10;
  7457. if (this->_internal_update_time() != 0) {
  7458. target = stream->EnsureSpace(target);
  7459. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_update_time(), target);
  7460. }
  7461. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7462. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7463. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7464. }
  7465. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SyncTime)
  7466. return target;
  7467. }
  7468. size_t SyncTime::ByteSizeLong() const {
  7469. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SyncTime)
  7470. size_t total_size = 0;
  7471. uint32_t cached_has_bits = 0;
  7472. // Prevent compiler warnings about cached_has_bits being unused
  7473. (void) cached_has_bits;
  7474. // int32 tm_sec = 1;
  7475. if (this->_internal_tm_sec() != 0) {
  7476. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_sec());
  7477. }
  7478. // int32 tm_min = 2;
  7479. if (this->_internal_tm_min() != 0) {
  7480. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_min());
  7481. }
  7482. // int32 tm_hour = 3;
  7483. if (this->_internal_tm_hour() != 0) {
  7484. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_hour());
  7485. }
  7486. // int32 tm_mday = 4;
  7487. if (this->_internal_tm_mday() != 0) {
  7488. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mday());
  7489. }
  7490. // int32 tm_mon = 5;
  7491. if (this->_internal_tm_mon() != 0) {
  7492. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mon());
  7493. }
  7494. // int32 tm_year = 6;
  7495. if (this->_internal_tm_year() != 0) {
  7496. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_year());
  7497. }
  7498. // int32 tm_wday = 7;
  7499. if (this->_internal_tm_wday() != 0) {
  7500. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_wday());
  7501. }
  7502. // int32 tm_yday = 8;
  7503. if (this->_internal_tm_yday() != 0) {
  7504. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_yday());
  7505. }
  7506. // int32 tm_isdst = 9;
  7507. if (this->_internal_tm_isdst() != 0) {
  7508. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_isdst());
  7509. }
  7510. // bool update_time = 10;
  7511. if (this->_internal_update_time() != 0) {
  7512. total_size += 1 + 1;
  7513. }
  7514. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7515. }
  7516. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncTime::_class_data_ = {
  7517. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7518. SyncTime::MergeImpl
  7519. };
  7520. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncTime::GetClassData() const { return &_class_data_; }
  7521. void SyncTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7522. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7523. static_cast<SyncTime *>(to)->MergeFrom(
  7524. static_cast<const SyncTime &>(from));
  7525. }
  7526. void SyncTime::MergeFrom(const SyncTime& from) {
  7527. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SyncTime)
  7528. GOOGLE_DCHECK_NE(&from, this);
  7529. uint32_t cached_has_bits = 0;
  7530. (void) cached_has_bits;
  7531. if (from._internal_tm_sec() != 0) {
  7532. _internal_set_tm_sec(from._internal_tm_sec());
  7533. }
  7534. if (from._internal_tm_min() != 0) {
  7535. _internal_set_tm_min(from._internal_tm_min());
  7536. }
  7537. if (from._internal_tm_hour() != 0) {
  7538. _internal_set_tm_hour(from._internal_tm_hour());
  7539. }
  7540. if (from._internal_tm_mday() != 0) {
  7541. _internal_set_tm_mday(from._internal_tm_mday());
  7542. }
  7543. if (from._internal_tm_mon() != 0) {
  7544. _internal_set_tm_mon(from._internal_tm_mon());
  7545. }
  7546. if (from._internal_tm_year() != 0) {
  7547. _internal_set_tm_year(from._internal_tm_year());
  7548. }
  7549. if (from._internal_tm_wday() != 0) {
  7550. _internal_set_tm_wday(from._internal_tm_wday());
  7551. }
  7552. if (from._internal_tm_yday() != 0) {
  7553. _internal_set_tm_yday(from._internal_tm_yday());
  7554. }
  7555. if (from._internal_tm_isdst() != 0) {
  7556. _internal_set_tm_isdst(from._internal_tm_isdst());
  7557. }
  7558. if (from._internal_update_time() != 0) {
  7559. _internal_set_update_time(from._internal_update_time());
  7560. }
  7561. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7562. }
  7563. void SyncTime::CopyFrom(const SyncTime& from) {
  7564. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SyncTime)
  7565. if (&from == this) return;
  7566. Clear();
  7567. MergeFrom(from);
  7568. }
  7569. bool SyncTime::IsInitialized() const {
  7570. return true;
  7571. }
  7572. void SyncTime::InternalSwap(SyncTime* other) {
  7573. using std::swap;
  7574. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7575. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7576. PROTOBUF_FIELD_OFFSET(SyncTime, update_time_)
  7577. + sizeof(SyncTime::update_time_)
  7578. - PROTOBUF_FIELD_OFFSET(SyncTime, tm_sec_)>(
  7579. reinterpret_cast<char*>(&tm_sec_),
  7580. reinterpret_cast<char*>(&other->tm_sec_));
  7581. }
  7582. ::PROTOBUF_NAMESPACE_ID::Metadata SyncTime::GetMetadata() const {
  7583. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7584. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7585. file_level_metadata_protocol_2eproto[27]);
  7586. }
  7587. // ===================================================================
  7588. class CCAskDataChannel::_Internal {
  7589. public:
  7590. };
  7591. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7592. bool is_message_owned)
  7593. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7594. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  7595. }
  7596. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  7597. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7598. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7599. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  7600. }
  7601. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  7602. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7603. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7604. };
  7605. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  7606. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  7607. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7608. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7609. file_level_metadata_protocol_2eproto[28]);
  7610. }
  7611. // ===================================================================
  7612. class IMuMessage::_Internal {
  7613. public:
  7614. };
  7615. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7616. bool is_message_owned)
  7617. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7618. SharedCtor();
  7619. if (!is_message_owned) {
  7620. RegisterArenaDtor(arena);
  7621. }
  7622. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  7623. }
  7624. IMuMessage::IMuMessage(const IMuMessage& from)
  7625. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7626. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7627. ::memcpy(&rx_, &from.rx_,
  7628. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7629. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7630. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  7631. }
  7632. inline void IMuMessage::SharedCtor() {
  7633. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7634. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  7635. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7636. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7637. }
  7638. IMuMessage::~IMuMessage() {
  7639. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  7640. if (GetArenaForAllocation() != nullptr) return;
  7641. SharedDtor();
  7642. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7643. }
  7644. inline void IMuMessage::SharedDtor() {
  7645. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7646. }
  7647. void IMuMessage::ArenaDtor(void* object) {
  7648. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  7649. (void)_this;
  7650. }
  7651. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7652. }
  7653. void IMuMessage::SetCachedSize(int size) const {
  7654. _cached_size_.Set(size);
  7655. }
  7656. void IMuMessage::Clear() {
  7657. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  7658. uint32_t cached_has_bits = 0;
  7659. // Prevent compiler warnings about cached_has_bits being unused
  7660. (void) cached_has_bits;
  7661. ::memset(&rx_, 0, static_cast<size_t>(
  7662. reinterpret_cast<char*>(&ry_) -
  7663. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7664. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7665. }
  7666. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7667. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7668. while (!ctx->Done(&ptr)) {
  7669. uint32_t tag;
  7670. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7671. switch (tag >> 3) {
  7672. // float rx = 1;
  7673. case 1:
  7674. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  7675. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7676. ptr += sizeof(float);
  7677. } else
  7678. goto handle_unusual;
  7679. continue;
  7680. // float ry = 2;
  7681. case 2:
  7682. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  7683. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7684. ptr += sizeof(float);
  7685. } else
  7686. goto handle_unusual;
  7687. continue;
  7688. default:
  7689. goto handle_unusual;
  7690. } // switch
  7691. handle_unusual:
  7692. if ((tag == 0) || ((tag & 7) == 4)) {
  7693. CHK_(ptr);
  7694. ctx->SetLastTag(tag);
  7695. goto message_done;
  7696. }
  7697. ptr = UnknownFieldParse(
  7698. tag,
  7699. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7700. ptr, ctx);
  7701. CHK_(ptr != nullptr);
  7702. } // while
  7703. message_done:
  7704. return ptr;
  7705. failure:
  7706. ptr = nullptr;
  7707. goto message_done;
  7708. #undef CHK_
  7709. }
  7710. uint8_t* IMuMessage::_InternalSerialize(
  7711. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7712. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  7713. uint32_t cached_has_bits = 0;
  7714. (void) cached_has_bits;
  7715. // float rx = 1;
  7716. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7717. float tmp_rx = this->_internal_rx();
  7718. uint32_t raw_rx;
  7719. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7720. if (raw_rx != 0) {
  7721. target = stream->EnsureSpace(target);
  7722. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  7723. }
  7724. // float ry = 2;
  7725. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7726. float tmp_ry = this->_internal_ry();
  7727. uint32_t raw_ry;
  7728. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7729. if (raw_ry != 0) {
  7730. target = stream->EnsureSpace(target);
  7731. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  7732. }
  7733. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7734. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7735. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7736. }
  7737. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  7738. return target;
  7739. }
  7740. size_t IMuMessage::ByteSizeLong() const {
  7741. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  7742. size_t total_size = 0;
  7743. uint32_t cached_has_bits = 0;
  7744. // Prevent compiler warnings about cached_has_bits being unused
  7745. (void) cached_has_bits;
  7746. // float rx = 1;
  7747. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7748. float tmp_rx = this->_internal_rx();
  7749. uint32_t raw_rx;
  7750. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7751. if (raw_rx != 0) {
  7752. total_size += 1 + 4;
  7753. }
  7754. // float ry = 2;
  7755. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7756. float tmp_ry = this->_internal_ry();
  7757. uint32_t raw_ry;
  7758. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7759. if (raw_ry != 0) {
  7760. total_size += 1 + 4;
  7761. }
  7762. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7763. }
  7764. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  7765. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7766. IMuMessage::MergeImpl
  7767. };
  7768. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  7769. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7770. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7771. static_cast<IMuMessage *>(to)->MergeFrom(
  7772. static_cast<const IMuMessage &>(from));
  7773. }
  7774. void IMuMessage::MergeFrom(const IMuMessage& from) {
  7775. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  7776. GOOGLE_DCHECK_NE(&from, this);
  7777. uint32_t cached_has_bits = 0;
  7778. (void) cached_has_bits;
  7779. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7780. float tmp_rx = from._internal_rx();
  7781. uint32_t raw_rx;
  7782. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7783. if (raw_rx != 0) {
  7784. _internal_set_rx(from._internal_rx());
  7785. }
  7786. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7787. float tmp_ry = from._internal_ry();
  7788. uint32_t raw_ry;
  7789. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7790. if (raw_ry != 0) {
  7791. _internal_set_ry(from._internal_ry());
  7792. }
  7793. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7794. }
  7795. void IMuMessage::CopyFrom(const IMuMessage& from) {
  7796. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  7797. if (&from == this) return;
  7798. Clear();
  7799. MergeFrom(from);
  7800. }
  7801. bool IMuMessage::IsInitialized() const {
  7802. return true;
  7803. }
  7804. void IMuMessage::InternalSwap(IMuMessage* other) {
  7805. using std::swap;
  7806. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7807. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7808. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  7809. + sizeof(IMuMessage::ry_)
  7810. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  7811. reinterpret_cast<char*>(&rx_),
  7812. reinterpret_cast<char*>(&other->rx_));
  7813. }
  7814. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  7815. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7816. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7817. file_level_metadata_protocol_2eproto[29]);
  7818. }
  7819. // ===================================================================
  7820. class CCPing::_Internal {
  7821. public:
  7822. };
  7823. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7824. bool is_message_owned)
  7825. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7826. SharedCtor();
  7827. if (!is_message_owned) {
  7828. RegisterArenaDtor(arena);
  7829. }
  7830. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  7831. }
  7832. CCPing::CCPing(const CCPing& from)
  7833. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7834. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7835. ::memcpy(&tick_, &from.tick_,
  7836. static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7837. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7838. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  7839. }
  7840. inline void CCPing::SharedCtor() {
  7841. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7842. reinterpret_cast<char*>(&tick_) - reinterpret_cast<char*>(this)),
  7843. 0, static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7844. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7845. }
  7846. CCPing::~CCPing() {
  7847. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  7848. if (GetArenaForAllocation() != nullptr) return;
  7849. SharedDtor();
  7850. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7851. }
  7852. inline void CCPing::SharedDtor() {
  7853. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7854. }
  7855. void CCPing::ArenaDtor(void* object) {
  7856. CCPing* _this = reinterpret_cast< CCPing* >(object);
  7857. (void)_this;
  7858. }
  7859. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7860. }
  7861. void CCPing::SetCachedSize(int size) const {
  7862. _cached_size_.Set(size);
  7863. }
  7864. void CCPing::Clear() {
  7865. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  7866. uint32_t cached_has_bits = 0;
  7867. // Prevent compiler warnings about cached_has_bits being unused
  7868. (void) cached_has_bits;
  7869. ::memset(&tick_, 0, static_cast<size_t>(
  7870. reinterpret_cast<char*>(&temp_) -
  7871. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7872. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7873. }
  7874. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7875. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7876. while (!ctx->Done(&ptr)) {
  7877. uint32_t tag;
  7878. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7879. switch (tag >> 3) {
  7880. // int64 tick = 1;
  7881. case 1:
  7882. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7883. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7884. CHK_(ptr);
  7885. } else
  7886. goto handle_unusual;
  7887. continue;
  7888. // double temp = 2;
  7889. case 2:
  7890. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
  7891. temp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7892. ptr += sizeof(double);
  7893. } else
  7894. goto handle_unusual;
  7895. continue;
  7896. default:
  7897. goto handle_unusual;
  7898. } // switch
  7899. handle_unusual:
  7900. if ((tag == 0) || ((tag & 7) == 4)) {
  7901. CHK_(ptr);
  7902. ctx->SetLastTag(tag);
  7903. goto message_done;
  7904. }
  7905. ptr = UnknownFieldParse(
  7906. tag,
  7907. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7908. ptr, ctx);
  7909. CHK_(ptr != nullptr);
  7910. } // while
  7911. message_done:
  7912. return ptr;
  7913. failure:
  7914. ptr = nullptr;
  7915. goto message_done;
  7916. #undef CHK_
  7917. }
  7918. uint8_t* CCPing::_InternalSerialize(
  7919. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7920. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  7921. uint32_t cached_has_bits = 0;
  7922. (void) cached_has_bits;
  7923. // int64 tick = 1;
  7924. if (this->_internal_tick() != 0) {
  7925. target = stream->EnsureSpace(target);
  7926. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  7927. }
  7928. // double temp = 2;
  7929. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7930. double tmp_temp = this->_internal_temp();
  7931. uint64_t raw_temp;
  7932. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7933. if (raw_temp != 0) {
  7934. target = stream->EnsureSpace(target);
  7935. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_temp(), target);
  7936. }
  7937. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7938. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7939. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7940. }
  7941. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  7942. return target;
  7943. }
  7944. size_t CCPing::ByteSizeLong() const {
  7945. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  7946. size_t total_size = 0;
  7947. uint32_t cached_has_bits = 0;
  7948. // Prevent compiler warnings about cached_has_bits being unused
  7949. (void) cached_has_bits;
  7950. // int64 tick = 1;
  7951. if (this->_internal_tick() != 0) {
  7952. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  7953. }
  7954. // double temp = 2;
  7955. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7956. double tmp_temp = this->_internal_temp();
  7957. uint64_t raw_temp;
  7958. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7959. if (raw_temp != 0) {
  7960. total_size += 1 + 8;
  7961. }
  7962. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7963. }
  7964. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  7965. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7966. CCPing::MergeImpl
  7967. };
  7968. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  7969. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7970. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7971. static_cast<CCPing *>(to)->MergeFrom(
  7972. static_cast<const CCPing &>(from));
  7973. }
  7974. void CCPing::MergeFrom(const CCPing& from) {
  7975. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  7976. GOOGLE_DCHECK_NE(&from, this);
  7977. uint32_t cached_has_bits = 0;
  7978. (void) cached_has_bits;
  7979. if (from._internal_tick() != 0) {
  7980. _internal_set_tick(from._internal_tick());
  7981. }
  7982. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7983. double tmp_temp = from._internal_temp();
  7984. uint64_t raw_temp;
  7985. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7986. if (raw_temp != 0) {
  7987. _internal_set_temp(from._internal_temp());
  7988. }
  7989. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7990. }
  7991. void CCPing::CopyFrom(const CCPing& from) {
  7992. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  7993. if (&from == this) return;
  7994. Clear();
  7995. MergeFrom(from);
  7996. }
  7997. bool CCPing::IsInitialized() const {
  7998. return true;
  7999. }
  8000. void CCPing::InternalSwap(CCPing* other) {
  8001. using std::swap;
  8002. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8003. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8004. PROTOBUF_FIELD_OFFSET(CCPing, temp_)
  8005. + sizeof(CCPing::temp_)
  8006. - PROTOBUF_FIELD_OFFSET(CCPing, tick_)>(
  8007. reinterpret_cast<char*>(&tick_),
  8008. reinterpret_cast<char*>(&other->tick_));
  8009. }
  8010. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  8011. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8012. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8013. file_level_metadata_protocol_2eproto[30]);
  8014. }
  8015. // ===================================================================
  8016. class radar_node::_Internal {
  8017. public:
  8018. };
  8019. radar_node::radar_node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8020. bool is_message_owned)
  8021. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8022. SharedCtor();
  8023. if (!is_message_owned) {
  8024. RegisterArenaDtor(arena);
  8025. }
  8026. // @@protoc_insertion_point(arena_constructor:RemoNet.radar_node)
  8027. }
  8028. radar_node::radar_node(const radar_node& from)
  8029. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8030. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8031. ::memcpy(&id_, &from.id_,
  8032. static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8033. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8034. // @@protoc_insertion_point(copy_constructor:RemoNet.radar_node)
  8035. }
  8036. inline void radar_node::SharedCtor() {
  8037. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8038. reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
  8039. 0, static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8040. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8041. }
  8042. radar_node::~radar_node() {
  8043. // @@protoc_insertion_point(destructor:RemoNet.radar_node)
  8044. if (GetArenaForAllocation() != nullptr) return;
  8045. SharedDtor();
  8046. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8047. }
  8048. inline void radar_node::SharedDtor() {
  8049. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8050. }
  8051. void radar_node::ArenaDtor(void* object) {
  8052. radar_node* _this = reinterpret_cast< radar_node* >(object);
  8053. (void)_this;
  8054. }
  8055. void radar_node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8056. }
  8057. void radar_node::SetCachedSize(int size) const {
  8058. _cached_size_.Set(size);
  8059. }
  8060. void radar_node::Clear() {
  8061. // @@protoc_insertion_point(message_clear_start:RemoNet.radar_node)
  8062. uint32_t cached_has_bits = 0;
  8063. // Prevent compiler warnings about cached_has_bits being unused
  8064. (void) cached_has_bits;
  8065. ::memset(&id_, 0, static_cast<size_t>(
  8066. reinterpret_cast<char*>(&range_) -
  8067. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8068. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8069. }
  8070. const char* radar_node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8071. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8072. while (!ctx->Done(&ptr)) {
  8073. uint32_t tag;
  8074. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8075. switch (tag >> 3) {
  8076. // int32 id = 1;
  8077. case 1:
  8078. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8079. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8080. CHK_(ptr);
  8081. } else
  8082. goto handle_unusual;
  8083. continue;
  8084. // int32 range = 2;
  8085. case 2:
  8086. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8087. range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8088. CHK_(ptr);
  8089. } else
  8090. goto handle_unusual;
  8091. continue;
  8092. default:
  8093. goto handle_unusual;
  8094. } // switch
  8095. handle_unusual:
  8096. if ((tag == 0) || ((tag & 7) == 4)) {
  8097. CHK_(ptr);
  8098. ctx->SetLastTag(tag);
  8099. goto message_done;
  8100. }
  8101. ptr = UnknownFieldParse(
  8102. tag,
  8103. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8104. ptr, ctx);
  8105. CHK_(ptr != nullptr);
  8106. } // while
  8107. message_done:
  8108. return ptr;
  8109. failure:
  8110. ptr = nullptr;
  8111. goto message_done;
  8112. #undef CHK_
  8113. }
  8114. uint8_t* radar_node::_InternalSerialize(
  8115. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8116. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.radar_node)
  8117. uint32_t cached_has_bits = 0;
  8118. (void) cached_has_bits;
  8119. // int32 id = 1;
  8120. if (this->_internal_id() != 0) {
  8121. target = stream->EnsureSpace(target);
  8122. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  8123. }
  8124. // int32 range = 2;
  8125. if (this->_internal_range() != 0) {
  8126. target = stream->EnsureSpace(target);
  8127. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_range(), target);
  8128. }
  8129. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8130. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8131. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8132. }
  8133. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.radar_node)
  8134. return target;
  8135. }
  8136. size_t radar_node::ByteSizeLong() const {
  8137. // @@protoc_insertion_point(message_byte_size_start:RemoNet.radar_node)
  8138. size_t total_size = 0;
  8139. uint32_t cached_has_bits = 0;
  8140. // Prevent compiler warnings about cached_has_bits being unused
  8141. (void) cached_has_bits;
  8142. // int32 id = 1;
  8143. if (this->_internal_id() != 0) {
  8144. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  8145. }
  8146. // int32 range = 2;
  8147. if (this->_internal_range() != 0) {
  8148. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_range());
  8149. }
  8150. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8151. }
  8152. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData radar_node::_class_data_ = {
  8153. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8154. radar_node::MergeImpl
  8155. };
  8156. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*radar_node::GetClassData() const { return &_class_data_; }
  8157. void radar_node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8158. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8159. static_cast<radar_node *>(to)->MergeFrom(
  8160. static_cast<const radar_node &>(from));
  8161. }
  8162. void radar_node::MergeFrom(const radar_node& from) {
  8163. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.radar_node)
  8164. GOOGLE_DCHECK_NE(&from, this);
  8165. uint32_t cached_has_bits = 0;
  8166. (void) cached_has_bits;
  8167. if (from._internal_id() != 0) {
  8168. _internal_set_id(from._internal_id());
  8169. }
  8170. if (from._internal_range() != 0) {
  8171. _internal_set_range(from._internal_range());
  8172. }
  8173. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8174. }
  8175. void radar_node::CopyFrom(const radar_node& from) {
  8176. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.radar_node)
  8177. if (&from == this) return;
  8178. Clear();
  8179. MergeFrom(from);
  8180. }
  8181. bool radar_node::IsInitialized() const {
  8182. return true;
  8183. }
  8184. void radar_node::InternalSwap(radar_node* other) {
  8185. using std::swap;
  8186. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8187. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8188. PROTOBUF_FIELD_OFFSET(radar_node, range_)
  8189. + sizeof(radar_node::range_)
  8190. - PROTOBUF_FIELD_OFFSET(radar_node, id_)>(
  8191. reinterpret_cast<char*>(&id_),
  8192. reinterpret_cast<char*>(&other->id_));
  8193. }
  8194. ::PROTOBUF_NAMESPACE_ID::Metadata radar_node::GetMetadata() const {
  8195. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8196. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8197. file_level_metadata_protocol_2eproto[31]);
  8198. }
  8199. // ===================================================================
  8200. class CCRadarMessage::_Internal {
  8201. public:
  8202. };
  8203. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8204. bool is_message_owned)
  8205. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8206. SharedCtor();
  8207. if (!is_message_owned) {
  8208. RegisterArenaDtor(arena);
  8209. }
  8210. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  8211. }
  8212. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  8213. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8214. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8215. ::memcpy(&radar0_, &from.radar0_,
  8216. static_cast<size_t>(reinterpret_cast<char*>(&radar8_) -
  8217. reinterpret_cast<char*>(&radar0_)) + sizeof(radar8_));
  8218. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  8219. }
  8220. inline void CCRadarMessage::SharedCtor() {
  8221. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8222. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  8223. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar8_) -
  8224. reinterpret_cast<char*>(&radar0_)) + sizeof(radar8_));
  8225. }
  8226. CCRadarMessage::~CCRadarMessage() {
  8227. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  8228. if (GetArenaForAllocation() != nullptr) return;
  8229. SharedDtor();
  8230. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8231. }
  8232. inline void CCRadarMessage::SharedDtor() {
  8233. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8234. }
  8235. void CCRadarMessage::ArenaDtor(void* object) {
  8236. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  8237. (void)_this;
  8238. }
  8239. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8240. }
  8241. void CCRadarMessage::SetCachedSize(int size) const {
  8242. _cached_size_.Set(size);
  8243. }
  8244. void CCRadarMessage::Clear() {
  8245. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  8246. uint32_t cached_has_bits = 0;
  8247. // Prevent compiler warnings about cached_has_bits being unused
  8248. (void) cached_has_bits;
  8249. ::memset(&radar0_, 0, static_cast<size_t>(
  8250. reinterpret_cast<char*>(&radar8_) -
  8251. reinterpret_cast<char*>(&radar0_)) + sizeof(radar8_));
  8252. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8253. }
  8254. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8255. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8256. while (!ctx->Done(&ptr)) {
  8257. uint32_t tag;
  8258. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8259. switch (tag >> 3) {
  8260. // int32 radar0 = 1;
  8261. case 1:
  8262. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8263. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8264. CHK_(ptr);
  8265. } else
  8266. goto handle_unusual;
  8267. continue;
  8268. // int32 radar1 = 2;
  8269. case 2:
  8270. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8271. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8272. CHK_(ptr);
  8273. } else
  8274. goto handle_unusual;
  8275. continue;
  8276. // int32 radar2 = 3;
  8277. case 3:
  8278. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8279. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8280. CHK_(ptr);
  8281. } else
  8282. goto handle_unusual;
  8283. continue;
  8284. // int32 radar3 = 4;
  8285. case 4:
  8286. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8287. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8288. CHK_(ptr);
  8289. } else
  8290. goto handle_unusual;
  8291. continue;
  8292. // int32 radar4 = 5;
  8293. case 5:
  8294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8295. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8296. CHK_(ptr);
  8297. } else
  8298. goto handle_unusual;
  8299. continue;
  8300. // int32 radar5 = 6;
  8301. case 6:
  8302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8303. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8304. CHK_(ptr);
  8305. } else
  8306. goto handle_unusual;
  8307. continue;
  8308. // int32 radar6 = 7;
  8309. case 7:
  8310. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8311. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8312. CHK_(ptr);
  8313. } else
  8314. goto handle_unusual;
  8315. continue;
  8316. // int32 radar7 = 8;
  8317. case 8:
  8318. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8319. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8320. CHK_(ptr);
  8321. } else
  8322. goto handle_unusual;
  8323. continue;
  8324. // int32 radar8 = 9;
  8325. case 9:
  8326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  8327. radar8_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8328. CHK_(ptr);
  8329. } else
  8330. goto handle_unusual;
  8331. continue;
  8332. default:
  8333. goto handle_unusual;
  8334. } // switch
  8335. handle_unusual:
  8336. if ((tag == 0) || ((tag & 7) == 4)) {
  8337. CHK_(ptr);
  8338. ctx->SetLastTag(tag);
  8339. goto message_done;
  8340. }
  8341. ptr = UnknownFieldParse(
  8342. tag,
  8343. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8344. ptr, ctx);
  8345. CHK_(ptr != nullptr);
  8346. } // while
  8347. message_done:
  8348. return ptr;
  8349. failure:
  8350. ptr = nullptr;
  8351. goto message_done;
  8352. #undef CHK_
  8353. }
  8354. uint8_t* CCRadarMessage::_InternalSerialize(
  8355. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8356. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  8357. uint32_t cached_has_bits = 0;
  8358. (void) cached_has_bits;
  8359. // int32 radar0 = 1;
  8360. if (this->_internal_radar0() != 0) {
  8361. target = stream->EnsureSpace(target);
  8362. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  8363. }
  8364. // int32 radar1 = 2;
  8365. if (this->_internal_radar1() != 0) {
  8366. target = stream->EnsureSpace(target);
  8367. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  8368. }
  8369. // int32 radar2 = 3;
  8370. if (this->_internal_radar2() != 0) {
  8371. target = stream->EnsureSpace(target);
  8372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  8373. }
  8374. // int32 radar3 = 4;
  8375. if (this->_internal_radar3() != 0) {
  8376. target = stream->EnsureSpace(target);
  8377. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  8378. }
  8379. // int32 radar4 = 5;
  8380. if (this->_internal_radar4() != 0) {
  8381. target = stream->EnsureSpace(target);
  8382. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  8383. }
  8384. // int32 radar5 = 6;
  8385. if (this->_internal_radar5() != 0) {
  8386. target = stream->EnsureSpace(target);
  8387. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  8388. }
  8389. // int32 radar6 = 7;
  8390. if (this->_internal_radar6() != 0) {
  8391. target = stream->EnsureSpace(target);
  8392. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  8393. }
  8394. // int32 radar7 = 8;
  8395. if (this->_internal_radar7() != 0) {
  8396. target = stream->EnsureSpace(target);
  8397. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  8398. }
  8399. // int32 radar8 = 9;
  8400. if (this->_internal_radar8() != 0) {
  8401. target = stream->EnsureSpace(target);
  8402. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_radar8(), target);
  8403. }
  8404. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8405. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8406. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8407. }
  8408. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  8409. return target;
  8410. }
  8411. size_t CCRadarMessage::ByteSizeLong() const {
  8412. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  8413. size_t total_size = 0;
  8414. uint32_t cached_has_bits = 0;
  8415. // Prevent compiler warnings about cached_has_bits being unused
  8416. (void) cached_has_bits;
  8417. // int32 radar0 = 1;
  8418. if (this->_internal_radar0() != 0) {
  8419. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  8420. }
  8421. // int32 radar1 = 2;
  8422. if (this->_internal_radar1() != 0) {
  8423. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  8424. }
  8425. // int32 radar2 = 3;
  8426. if (this->_internal_radar2() != 0) {
  8427. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  8428. }
  8429. // int32 radar3 = 4;
  8430. if (this->_internal_radar3() != 0) {
  8431. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  8432. }
  8433. // int32 radar4 = 5;
  8434. if (this->_internal_radar4() != 0) {
  8435. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  8436. }
  8437. // int32 radar5 = 6;
  8438. if (this->_internal_radar5() != 0) {
  8439. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  8440. }
  8441. // int32 radar6 = 7;
  8442. if (this->_internal_radar6() != 0) {
  8443. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  8444. }
  8445. // int32 radar7 = 8;
  8446. if (this->_internal_radar7() != 0) {
  8447. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  8448. }
  8449. // int32 radar8 = 9;
  8450. if (this->_internal_radar8() != 0) {
  8451. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar8());
  8452. }
  8453. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8454. }
  8455. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  8456. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8457. CCRadarMessage::MergeImpl
  8458. };
  8459. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  8460. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8461. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8462. static_cast<CCRadarMessage *>(to)->MergeFrom(
  8463. static_cast<const CCRadarMessage &>(from));
  8464. }
  8465. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  8466. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  8467. GOOGLE_DCHECK_NE(&from, this);
  8468. uint32_t cached_has_bits = 0;
  8469. (void) cached_has_bits;
  8470. if (from._internal_radar0() != 0) {
  8471. _internal_set_radar0(from._internal_radar0());
  8472. }
  8473. if (from._internal_radar1() != 0) {
  8474. _internal_set_radar1(from._internal_radar1());
  8475. }
  8476. if (from._internal_radar2() != 0) {
  8477. _internal_set_radar2(from._internal_radar2());
  8478. }
  8479. if (from._internal_radar3() != 0) {
  8480. _internal_set_radar3(from._internal_radar3());
  8481. }
  8482. if (from._internal_radar4() != 0) {
  8483. _internal_set_radar4(from._internal_radar4());
  8484. }
  8485. if (from._internal_radar5() != 0) {
  8486. _internal_set_radar5(from._internal_radar5());
  8487. }
  8488. if (from._internal_radar6() != 0) {
  8489. _internal_set_radar6(from._internal_radar6());
  8490. }
  8491. if (from._internal_radar7() != 0) {
  8492. _internal_set_radar7(from._internal_radar7());
  8493. }
  8494. if (from._internal_radar8() != 0) {
  8495. _internal_set_radar8(from._internal_radar8());
  8496. }
  8497. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8498. }
  8499. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  8500. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  8501. if (&from == this) return;
  8502. Clear();
  8503. MergeFrom(from);
  8504. }
  8505. bool CCRadarMessage::IsInitialized() const {
  8506. return true;
  8507. }
  8508. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  8509. using std::swap;
  8510. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8511. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8512. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar8_)
  8513. + sizeof(CCRadarMessage::radar8_)
  8514. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  8515. reinterpret_cast<char*>(&radar0_),
  8516. reinterpret_cast<char*>(&other->radar0_));
  8517. }
  8518. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  8519. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8520. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8521. file_level_metadata_protocol_2eproto[32]);
  8522. }
  8523. // ===================================================================
  8524. class CCSensor::_Internal {
  8525. public:
  8526. };
  8527. CCSensor::CCSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8528. bool is_message_owned)
  8529. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8530. node_(arena) {
  8531. SharedCtor();
  8532. if (!is_message_owned) {
  8533. RegisterArenaDtor(arena);
  8534. }
  8535. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSensor)
  8536. }
  8537. CCSensor::CCSensor(const CCSensor& from)
  8538. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8539. node_(from.node_) {
  8540. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8541. ::memcpy(&left_encode_, &from.left_encode_,
  8542. static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8543. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8544. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSensor)
  8545. }
  8546. inline void CCSensor::SharedCtor() {
  8547. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8548. reinterpret_cast<char*>(&left_encode_) - reinterpret_cast<char*>(this)),
  8549. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8550. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8551. }
  8552. CCSensor::~CCSensor() {
  8553. // @@protoc_insertion_point(destructor:RemoNet.CCSensor)
  8554. if (GetArenaForAllocation() != nullptr) return;
  8555. SharedDtor();
  8556. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8557. }
  8558. inline void CCSensor::SharedDtor() {
  8559. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8560. }
  8561. void CCSensor::ArenaDtor(void* object) {
  8562. CCSensor* _this = reinterpret_cast< CCSensor* >(object);
  8563. (void)_this;
  8564. }
  8565. void CCSensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8566. }
  8567. void CCSensor::SetCachedSize(int size) const {
  8568. _cached_size_.Set(size);
  8569. }
  8570. void CCSensor::Clear() {
  8571. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSensor)
  8572. uint32_t cached_has_bits = 0;
  8573. // Prevent compiler warnings about cached_has_bits being unused
  8574. (void) cached_has_bits;
  8575. node_.Clear();
  8576. ::memset(&left_encode_, 0, static_cast<size_t>(
  8577. reinterpret_cast<char*>(&right_encode_) -
  8578. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8579. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8580. }
  8581. const char* CCSensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8582. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8583. while (!ctx->Done(&ptr)) {
  8584. uint32_t tag;
  8585. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8586. switch (tag >> 3) {
  8587. // repeated .RemoNet.radar_node node = 1;
  8588. case 1:
  8589. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8590. ptr -= 1;
  8591. do {
  8592. ptr += 1;
  8593. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  8594. CHK_(ptr);
  8595. if (!ctx->DataAvailable(ptr)) break;
  8596. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  8597. } else
  8598. goto handle_unusual;
  8599. continue;
  8600. // int32 left_encode = 2;
  8601. case 2:
  8602. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8603. left_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8604. CHK_(ptr);
  8605. } else
  8606. goto handle_unusual;
  8607. continue;
  8608. // int32 right_encode = 3;
  8609. case 3:
  8610. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8611. right_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8612. CHK_(ptr);
  8613. } else
  8614. goto handle_unusual;
  8615. continue;
  8616. default:
  8617. goto handle_unusual;
  8618. } // switch
  8619. handle_unusual:
  8620. if ((tag == 0) || ((tag & 7) == 4)) {
  8621. CHK_(ptr);
  8622. ctx->SetLastTag(tag);
  8623. goto message_done;
  8624. }
  8625. ptr = UnknownFieldParse(
  8626. tag,
  8627. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8628. ptr, ctx);
  8629. CHK_(ptr != nullptr);
  8630. } // while
  8631. message_done:
  8632. return ptr;
  8633. failure:
  8634. ptr = nullptr;
  8635. goto message_done;
  8636. #undef CHK_
  8637. }
  8638. uint8_t* CCSensor::_InternalSerialize(
  8639. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8640. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSensor)
  8641. uint32_t cached_has_bits = 0;
  8642. (void) cached_has_bits;
  8643. // repeated .RemoNet.radar_node node = 1;
  8644. for (unsigned int i = 0,
  8645. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  8646. target = stream->EnsureSpace(target);
  8647. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8648. InternalWriteMessage(1, this->_internal_node(i), target, stream);
  8649. }
  8650. // int32 left_encode = 2;
  8651. if (this->_internal_left_encode() != 0) {
  8652. target = stream->EnsureSpace(target);
  8653. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_left_encode(), target);
  8654. }
  8655. // int32 right_encode = 3;
  8656. if (this->_internal_right_encode() != 0) {
  8657. target = stream->EnsureSpace(target);
  8658. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right_encode(), target);
  8659. }
  8660. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8661. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8662. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8663. }
  8664. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSensor)
  8665. return target;
  8666. }
  8667. size_t CCSensor::ByteSizeLong() const {
  8668. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSensor)
  8669. size_t total_size = 0;
  8670. uint32_t cached_has_bits = 0;
  8671. // Prevent compiler warnings about cached_has_bits being unused
  8672. (void) cached_has_bits;
  8673. // repeated .RemoNet.radar_node node = 1;
  8674. total_size += 1UL * this->_internal_node_size();
  8675. for (const auto& msg : this->node_) {
  8676. total_size +=
  8677. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  8678. }
  8679. // int32 left_encode = 2;
  8680. if (this->_internal_left_encode() != 0) {
  8681. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_encode());
  8682. }
  8683. // int32 right_encode = 3;
  8684. if (this->_internal_right_encode() != 0) {
  8685. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_encode());
  8686. }
  8687. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8688. }
  8689. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSensor::_class_data_ = {
  8690. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8691. CCSensor::MergeImpl
  8692. };
  8693. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSensor::GetClassData() const { return &_class_data_; }
  8694. void CCSensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8695. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8696. static_cast<CCSensor *>(to)->MergeFrom(
  8697. static_cast<const CCSensor &>(from));
  8698. }
  8699. void CCSensor::MergeFrom(const CCSensor& from) {
  8700. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSensor)
  8701. GOOGLE_DCHECK_NE(&from, this);
  8702. uint32_t cached_has_bits = 0;
  8703. (void) cached_has_bits;
  8704. node_.MergeFrom(from.node_);
  8705. if (from._internal_left_encode() != 0) {
  8706. _internal_set_left_encode(from._internal_left_encode());
  8707. }
  8708. if (from._internal_right_encode() != 0) {
  8709. _internal_set_right_encode(from._internal_right_encode());
  8710. }
  8711. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8712. }
  8713. void CCSensor::CopyFrom(const CCSensor& from) {
  8714. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSensor)
  8715. if (&from == this) return;
  8716. Clear();
  8717. MergeFrom(from);
  8718. }
  8719. bool CCSensor::IsInitialized() const {
  8720. return true;
  8721. }
  8722. void CCSensor::InternalSwap(CCSensor* other) {
  8723. using std::swap;
  8724. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8725. node_.InternalSwap(&other->node_);
  8726. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8727. PROTOBUF_FIELD_OFFSET(CCSensor, right_encode_)
  8728. + sizeof(CCSensor::right_encode_)
  8729. - PROTOBUF_FIELD_OFFSET(CCSensor, left_encode_)>(
  8730. reinterpret_cast<char*>(&left_encode_),
  8731. reinterpret_cast<char*>(&other->left_encode_));
  8732. }
  8733. ::PROTOBUF_NAMESPACE_ID::Metadata CCSensor::GetMetadata() const {
  8734. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8735. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8736. file_level_metadata_protocol_2eproto[33]);
  8737. }
  8738. // ===================================================================
  8739. class CCSwitch::_Internal {
  8740. public:
  8741. };
  8742. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8743. bool is_message_owned)
  8744. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8745. SharedCtor();
  8746. if (!is_message_owned) {
  8747. RegisterArenaDtor(arena);
  8748. }
  8749. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  8750. }
  8751. CCSwitch::CCSwitch(const CCSwitch& from)
  8752. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8753. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8754. front_ = from.front_;
  8755. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  8756. }
  8757. inline void CCSwitch::SharedCtor() {
  8758. front_ = false;
  8759. }
  8760. CCSwitch::~CCSwitch() {
  8761. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  8762. if (GetArenaForAllocation() != nullptr) return;
  8763. SharedDtor();
  8764. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8765. }
  8766. inline void CCSwitch::SharedDtor() {
  8767. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8768. }
  8769. void CCSwitch::ArenaDtor(void* object) {
  8770. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  8771. (void)_this;
  8772. }
  8773. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8774. }
  8775. void CCSwitch::SetCachedSize(int size) const {
  8776. _cached_size_.Set(size);
  8777. }
  8778. void CCSwitch::Clear() {
  8779. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  8780. uint32_t cached_has_bits = 0;
  8781. // Prevent compiler warnings about cached_has_bits being unused
  8782. (void) cached_has_bits;
  8783. front_ = false;
  8784. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8785. }
  8786. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8787. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8788. while (!ctx->Done(&ptr)) {
  8789. uint32_t tag;
  8790. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8791. switch (tag >> 3) {
  8792. // bool front = 1;
  8793. case 1:
  8794. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8795. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8796. CHK_(ptr);
  8797. } else
  8798. goto handle_unusual;
  8799. continue;
  8800. default:
  8801. goto handle_unusual;
  8802. } // switch
  8803. handle_unusual:
  8804. if ((tag == 0) || ((tag & 7) == 4)) {
  8805. CHK_(ptr);
  8806. ctx->SetLastTag(tag);
  8807. goto message_done;
  8808. }
  8809. ptr = UnknownFieldParse(
  8810. tag,
  8811. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8812. ptr, ctx);
  8813. CHK_(ptr != nullptr);
  8814. } // while
  8815. message_done:
  8816. return ptr;
  8817. failure:
  8818. ptr = nullptr;
  8819. goto message_done;
  8820. #undef CHK_
  8821. }
  8822. uint8_t* CCSwitch::_InternalSerialize(
  8823. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8824. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  8825. uint32_t cached_has_bits = 0;
  8826. (void) cached_has_bits;
  8827. // bool front = 1;
  8828. if (this->_internal_front() != 0) {
  8829. target = stream->EnsureSpace(target);
  8830. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  8831. }
  8832. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8833. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8834. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8835. }
  8836. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  8837. return target;
  8838. }
  8839. size_t CCSwitch::ByteSizeLong() const {
  8840. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  8841. size_t total_size = 0;
  8842. uint32_t cached_has_bits = 0;
  8843. // Prevent compiler warnings about cached_has_bits being unused
  8844. (void) cached_has_bits;
  8845. // bool front = 1;
  8846. if (this->_internal_front() != 0) {
  8847. total_size += 1 + 1;
  8848. }
  8849. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8850. }
  8851. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  8852. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8853. CCSwitch::MergeImpl
  8854. };
  8855. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  8856. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8857. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8858. static_cast<CCSwitch *>(to)->MergeFrom(
  8859. static_cast<const CCSwitch &>(from));
  8860. }
  8861. void CCSwitch::MergeFrom(const CCSwitch& from) {
  8862. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  8863. GOOGLE_DCHECK_NE(&from, this);
  8864. uint32_t cached_has_bits = 0;
  8865. (void) cached_has_bits;
  8866. if (from._internal_front() != 0) {
  8867. _internal_set_front(from._internal_front());
  8868. }
  8869. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8870. }
  8871. void CCSwitch::CopyFrom(const CCSwitch& from) {
  8872. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  8873. if (&from == this) return;
  8874. Clear();
  8875. MergeFrom(from);
  8876. }
  8877. bool CCSwitch::IsInitialized() const {
  8878. return true;
  8879. }
  8880. void CCSwitch::InternalSwap(CCSwitch* other) {
  8881. using std::swap;
  8882. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8883. swap(front_, other->front_);
  8884. }
  8885. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  8886. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8887. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8888. file_level_metadata_protocol_2eproto[34]);
  8889. }
  8890. // ===================================================================
  8891. class State::_Internal {
  8892. public:
  8893. };
  8894. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8895. bool is_message_owned)
  8896. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8897. SharedCtor();
  8898. if (!is_message_owned) {
  8899. RegisterArenaDtor(arena);
  8900. }
  8901. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8902. }
  8903. State::State(const State& from)
  8904. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8905. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8906. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8907. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8908. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8909. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8910. if (!from._internal_error_buff().empty()) {
  8911. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  8912. GetArenaForAllocation());
  8913. }
  8914. ::memcpy(&work_pressure_, &from.work_pressure_,
  8915. static_cast<size_t>(reinterpret_cast<char*>(&tip_pressure_) -
  8916. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8917. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  8918. }
  8919. inline void State::SharedCtor() {
  8920. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8921. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8922. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8923. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8924. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8925. reinterpret_cast<char*>(&work_pressure_) - reinterpret_cast<char*>(this)),
  8926. 0, static_cast<size_t>(reinterpret_cast<char*>(&tip_pressure_) -
  8927. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8928. }
  8929. State::~State() {
  8930. // @@protoc_insertion_point(destructor:RemoNet.State)
  8931. if (GetArenaForAllocation() != nullptr) return;
  8932. SharedDtor();
  8933. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8934. }
  8935. inline void State::SharedDtor() {
  8936. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8937. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8938. }
  8939. void State::ArenaDtor(void* object) {
  8940. State* _this = reinterpret_cast< State* >(object);
  8941. (void)_this;
  8942. }
  8943. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8944. }
  8945. void State::SetCachedSize(int size) const {
  8946. _cached_size_.Set(size);
  8947. }
  8948. void State::Clear() {
  8949. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  8950. uint32_t cached_has_bits = 0;
  8951. // Prevent compiler warnings about cached_has_bits being unused
  8952. (void) cached_has_bits;
  8953. error_buff_.ClearToEmpty();
  8954. ::memset(&work_pressure_, 0, static_cast<size_t>(
  8955. reinterpret_cast<char*>(&tip_pressure_) -
  8956. reinterpret_cast<char*>(&work_pressure_)) + sizeof(tip_pressure_));
  8957. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8958. }
  8959. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8960. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8961. while (!ctx->Done(&ptr)) {
  8962. uint32_t tag;
  8963. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8964. switch (tag >> 3) {
  8965. // int32 work_pressure = 1;
  8966. case 1:
  8967. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8968. work_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8969. CHK_(ptr);
  8970. } else
  8971. goto handle_unusual;
  8972. continue;
  8973. // int32 brake_pressure = 2;
  8974. case 2:
  8975. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8976. brake_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8977. CHK_(ptr);
  8978. } else
  8979. goto handle_unusual;
  8980. continue;
  8981. // int32 gearbox_oil_temp = 3;
  8982. case 3:
  8983. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8984. gearbox_oil_temp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8985. CHK_(ptr);
  8986. } else
  8987. goto handle_unusual;
  8988. continue;
  8989. // int32 gearbox_oil_pressure = 4;
  8990. case 4:
  8991. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8992. gearbox_oil_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8993. CHK_(ptr);
  8994. } else
  8995. goto handle_unusual;
  8996. continue;
  8997. // int32 engine_rpm = 5;
  8998. case 5:
  8999. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9000. engine_rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9001. CHK_(ptr);
  9002. } else
  9003. goto handle_unusual;
  9004. continue;
  9005. // int32 speed = 6;
  9006. case 6:
  9007. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9008. speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9009. CHK_(ptr);
  9010. } else
  9011. goto handle_unusual;
  9012. continue;
  9013. // int32 gear = 7;
  9014. case 7:
  9015. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9016. gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9017. CHK_(ptr);
  9018. } else
  9019. goto handle_unusual;
  9020. continue;
  9021. // int32 engine_pressure = 8;
  9022. case 8:
  9023. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9024. engine_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9025. CHK_(ptr);
  9026. } else
  9027. goto handle_unusual;
  9028. continue;
  9029. // int32 cold_water = 9;
  9030. case 9:
  9031. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9032. cold_water_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9033. CHK_(ptr);
  9034. } else
  9035. goto handle_unusual;
  9036. continue;
  9037. // float steer_angle = 10;
  9038. case 10:
  9039. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  9040. steer_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9041. ptr += sizeof(float);
  9042. } else
  9043. goto handle_unusual;
  9044. continue;
  9045. // int32 left_lock = 11;
  9046. case 11:
  9047. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  9048. left_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9049. CHK_(ptr);
  9050. } else
  9051. goto handle_unusual;
  9052. continue;
  9053. // int32 right_lock = 12;
  9054. case 12:
  9055. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9056. right_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9057. CHK_(ptr);
  9058. } else
  9059. goto handle_unusual;
  9060. continue;
  9061. // int32 engine_time = 13;
  9062. case 13:
  9063. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9064. engine_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9065. CHK_(ptr);
  9066. } else
  9067. goto handle_unusual;
  9068. continue;
  9069. // int32 wire_sensor_l = 14;
  9070. case 14:
  9071. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9072. wire_sensor_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9073. CHK_(ptr);
  9074. } else
  9075. goto handle_unusual;
  9076. continue;
  9077. // int32 wire_sensor_r = 15;
  9078. case 15:
  9079. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9080. wire_sensor_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9081. CHK_(ptr);
  9082. } else
  9083. goto handle_unusual;
  9084. continue;
  9085. // int32 fuel_level = 16;
  9086. case 16:
  9087. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9088. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9089. CHK_(ptr);
  9090. } else
  9091. goto handle_unusual;
  9092. continue;
  9093. // int32 lock_switch_l = 17;
  9094. case 17:
  9095. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
  9096. lock_switch_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9097. CHK_(ptr);
  9098. } else
  9099. goto handle_unusual;
  9100. continue;
  9101. // int32 lock_switch_r = 18;
  9102. case 18:
  9103. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9104. lock_switch_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9105. CHK_(ptr);
  9106. } else
  9107. goto handle_unusual;
  9108. continue;
  9109. // int32 tip_limit = 19;
  9110. case 19:
  9111. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9112. tip_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9113. CHK_(ptr);
  9114. } else
  9115. goto handle_unusual;
  9116. continue;
  9117. // int32 turn_left = 20;
  9118. case 20:
  9119. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9120. turn_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9121. CHK_(ptr);
  9122. } else
  9123. goto handle_unusual;
  9124. continue;
  9125. // int32 turn_right = 21;
  9126. case 21:
  9127. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9128. turn_right_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9129. CHK_(ptr);
  9130. } else
  9131. goto handle_unusual;
  9132. continue;
  9133. // int32 hight_beam = 22;
  9134. case 22:
  9135. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9136. hight_beam_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9137. CHK_(ptr);
  9138. } else
  9139. goto handle_unusual;
  9140. continue;
  9141. // int32 low_beam = 23;
  9142. case 23:
  9143. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9144. low_beam_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9145. CHK_(ptr);
  9146. } else
  9147. goto handle_unusual;
  9148. continue;
  9149. // int32 parking = 24;
  9150. case 24:
  9151. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9152. parking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9153. CHK_(ptr);
  9154. } else
  9155. goto handle_unusual;
  9156. continue;
  9157. // int32 brake = 25;
  9158. case 25:
  9159. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9160. brake_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9161. CHK_(ptr);
  9162. } else
  9163. goto handle_unusual;
  9164. continue;
  9165. // int32 back_car = 26;
  9166. case 26:
  9167. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9168. back_car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9169. CHK_(ptr);
  9170. } else
  9171. goto handle_unusual;
  9172. continue;
  9173. // int32 front_work_lamp = 27;
  9174. case 27:
  9175. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9176. front_work_lamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9177. CHK_(ptr);
  9178. } else
  9179. goto handle_unusual;
  9180. continue;
  9181. // int32 rear_work_lamp = 28;
  9182. case 28:
  9183. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9184. rear_work_lamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9185. CHK_(ptr);
  9186. } else
  9187. goto handle_unusual;
  9188. continue;
  9189. // int32 cargo_weight = 29;
  9190. case 29:
  9191. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9192. cargo_weight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9193. CHK_(ptr);
  9194. } else
  9195. goto handle_unusual;
  9196. continue;
  9197. // int32 system_vol = 30;
  9198. case 30:
  9199. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9200. system_vol_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9201. CHK_(ptr);
  9202. } else
  9203. goto handle_unusual;
  9204. continue;
  9205. // bytes error_Buff = 31;
  9206. case 31:
  9207. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) {
  9208. auto str = _internal_mutable_error_buff();
  9209. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9210. CHK_(ptr);
  9211. } else
  9212. goto handle_unusual;
  9213. continue;
  9214. // int32 f_gear = 32;
  9215. case 32:
  9216. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9217. f_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9218. CHK_(ptr);
  9219. } else
  9220. goto handle_unusual;
  9221. continue;
  9222. // int32 gear_1 = 33;
  9223. case 33:
  9224. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9225. gear_1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9226. CHK_(ptr);
  9227. } else
  9228. goto handle_unusual;
  9229. continue;
  9230. // int32 outgrigger_l = 34;
  9231. case 34:
  9232. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9233. outgrigger_l_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9234. CHK_(ptr);
  9235. } else
  9236. goto handle_unusual;
  9237. continue;
  9238. // int32 outgrigger_r = 35;
  9239. case 35:
  9240. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9241. outgrigger_r_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9242. CHK_(ptr);
  9243. } else
  9244. goto handle_unusual;
  9245. continue;
  9246. // int32 tip_pressure = 36;
  9247. case 36:
  9248. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9249. tip_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9250. CHK_(ptr);
  9251. } else
  9252. goto handle_unusual;
  9253. continue;
  9254. default:
  9255. goto handle_unusual;
  9256. } // switch
  9257. handle_unusual:
  9258. if ((tag == 0) || ((tag & 7) == 4)) {
  9259. CHK_(ptr);
  9260. ctx->SetLastTag(tag);
  9261. goto message_done;
  9262. }
  9263. ptr = UnknownFieldParse(
  9264. tag,
  9265. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9266. ptr, ctx);
  9267. CHK_(ptr != nullptr);
  9268. } // while
  9269. message_done:
  9270. return ptr;
  9271. failure:
  9272. ptr = nullptr;
  9273. goto message_done;
  9274. #undef CHK_
  9275. }
  9276. uint8_t* State::_InternalSerialize(
  9277. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9278. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9279. uint32_t cached_has_bits = 0;
  9280. (void) cached_has_bits;
  9281. // int32 work_pressure = 1;
  9282. if (this->_internal_work_pressure() != 0) {
  9283. target = stream->EnsureSpace(target);
  9284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_work_pressure(), target);
  9285. }
  9286. // int32 brake_pressure = 2;
  9287. if (this->_internal_brake_pressure() != 0) {
  9288. target = stream->EnsureSpace(target);
  9289. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_brake_pressure(), target);
  9290. }
  9291. // int32 gearbox_oil_temp = 3;
  9292. if (this->_internal_gearbox_oil_temp() != 0) {
  9293. target = stream->EnsureSpace(target);
  9294. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_gearbox_oil_temp(), target);
  9295. }
  9296. // int32 gearbox_oil_pressure = 4;
  9297. if (this->_internal_gearbox_oil_pressure() != 0) {
  9298. target = stream->EnsureSpace(target);
  9299. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_gearbox_oil_pressure(), target);
  9300. }
  9301. // int32 engine_rpm = 5;
  9302. if (this->_internal_engine_rpm() != 0) {
  9303. target = stream->EnsureSpace(target);
  9304. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_engine_rpm(), target);
  9305. }
  9306. // int32 speed = 6;
  9307. if (this->_internal_speed() != 0) {
  9308. target = stream->EnsureSpace(target);
  9309. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_speed(), target);
  9310. }
  9311. // int32 gear = 7;
  9312. if (this->_internal_gear() != 0) {
  9313. target = stream->EnsureSpace(target);
  9314. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_gear(), target);
  9315. }
  9316. // int32 engine_pressure = 8;
  9317. if (this->_internal_engine_pressure() != 0) {
  9318. target = stream->EnsureSpace(target);
  9319. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_engine_pressure(), target);
  9320. }
  9321. // int32 cold_water = 9;
  9322. if (this->_internal_cold_water() != 0) {
  9323. target = stream->EnsureSpace(target);
  9324. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_cold_water(), target);
  9325. }
  9326. // float steer_angle = 10;
  9327. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9328. float tmp_steer_angle = this->_internal_steer_angle();
  9329. uint32_t raw_steer_angle;
  9330. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9331. if (raw_steer_angle != 0) {
  9332. target = stream->EnsureSpace(target);
  9333. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_steer_angle(), target);
  9334. }
  9335. // int32 left_lock = 11;
  9336. if (this->_internal_left_lock() != 0) {
  9337. target = stream->EnsureSpace(target);
  9338. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_left_lock(), target);
  9339. }
  9340. // int32 right_lock = 12;
  9341. if (this->_internal_right_lock() != 0) {
  9342. target = stream->EnsureSpace(target);
  9343. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_right_lock(), target);
  9344. }
  9345. // int32 engine_time = 13;
  9346. if (this->_internal_engine_time() != 0) {
  9347. target = stream->EnsureSpace(target);
  9348. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_engine_time(), target);
  9349. }
  9350. // int32 wire_sensor_l = 14;
  9351. if (this->_internal_wire_sensor_l() != 0) {
  9352. target = stream->EnsureSpace(target);
  9353. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_wire_sensor_l(), target);
  9354. }
  9355. // int32 wire_sensor_r = 15;
  9356. if (this->_internal_wire_sensor_r() != 0) {
  9357. target = stream->EnsureSpace(target);
  9358. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_wire_sensor_r(), target);
  9359. }
  9360. // int32 fuel_level = 16;
  9361. if (this->_internal_fuel_level() != 0) {
  9362. target = stream->EnsureSpace(target);
  9363. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_fuel_level(), target);
  9364. }
  9365. // int32 lock_switch_l = 17;
  9366. if (this->_internal_lock_switch_l() != 0) {
  9367. target = stream->EnsureSpace(target);
  9368. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_lock_switch_l(), target);
  9369. }
  9370. // int32 lock_switch_r = 18;
  9371. if (this->_internal_lock_switch_r() != 0) {
  9372. target = stream->EnsureSpace(target);
  9373. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_lock_switch_r(), target);
  9374. }
  9375. // int32 tip_limit = 19;
  9376. if (this->_internal_tip_limit() != 0) {
  9377. target = stream->EnsureSpace(target);
  9378. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_tip_limit(), target);
  9379. }
  9380. // int32 turn_left = 20;
  9381. if (this->_internal_turn_left() != 0) {
  9382. target = stream->EnsureSpace(target);
  9383. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_turn_left(), target);
  9384. }
  9385. // int32 turn_right = 21;
  9386. if (this->_internal_turn_right() != 0) {
  9387. target = stream->EnsureSpace(target);
  9388. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_turn_right(), target);
  9389. }
  9390. // int32 hight_beam = 22;
  9391. if (this->_internal_hight_beam() != 0) {
  9392. target = stream->EnsureSpace(target);
  9393. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_hight_beam(), target);
  9394. }
  9395. // int32 low_beam = 23;
  9396. if (this->_internal_low_beam() != 0) {
  9397. target = stream->EnsureSpace(target);
  9398. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_low_beam(), target);
  9399. }
  9400. // int32 parking = 24;
  9401. if (this->_internal_parking() != 0) {
  9402. target = stream->EnsureSpace(target);
  9403. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_parking(), target);
  9404. }
  9405. // int32 brake = 25;
  9406. if (this->_internal_brake() != 0) {
  9407. target = stream->EnsureSpace(target);
  9408. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_brake(), target);
  9409. }
  9410. // int32 back_car = 26;
  9411. if (this->_internal_back_car() != 0) {
  9412. target = stream->EnsureSpace(target);
  9413. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_back_car(), target);
  9414. }
  9415. // int32 front_work_lamp = 27;
  9416. if (this->_internal_front_work_lamp() != 0) {
  9417. target = stream->EnsureSpace(target);
  9418. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_front_work_lamp(), target);
  9419. }
  9420. // int32 rear_work_lamp = 28;
  9421. if (this->_internal_rear_work_lamp() != 0) {
  9422. target = stream->EnsureSpace(target);
  9423. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_rear_work_lamp(), target);
  9424. }
  9425. // int32 cargo_weight = 29;
  9426. if (this->_internal_cargo_weight() != 0) {
  9427. target = stream->EnsureSpace(target);
  9428. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(29, this->_internal_cargo_weight(), target);
  9429. }
  9430. // int32 system_vol = 30;
  9431. if (this->_internal_system_vol() != 0) {
  9432. target = stream->EnsureSpace(target);
  9433. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(30, this->_internal_system_vol(), target);
  9434. }
  9435. // bytes error_Buff = 31;
  9436. if (!this->_internal_error_buff().empty()) {
  9437. target = stream->WriteBytesMaybeAliased(
  9438. 31, this->_internal_error_buff(), target);
  9439. }
  9440. // int32 f_gear = 32;
  9441. if (this->_internal_f_gear() != 0) {
  9442. target = stream->EnsureSpace(target);
  9443. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(32, this->_internal_f_gear(), target);
  9444. }
  9445. // int32 gear_1 = 33;
  9446. if (this->_internal_gear_1() != 0) {
  9447. target = stream->EnsureSpace(target);
  9448. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(33, this->_internal_gear_1(), target);
  9449. }
  9450. // int32 outgrigger_l = 34;
  9451. if (this->_internal_outgrigger_l() != 0) {
  9452. target = stream->EnsureSpace(target);
  9453. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(34, this->_internal_outgrigger_l(), target);
  9454. }
  9455. // int32 outgrigger_r = 35;
  9456. if (this->_internal_outgrigger_r() != 0) {
  9457. target = stream->EnsureSpace(target);
  9458. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(35, this->_internal_outgrigger_r(), target);
  9459. }
  9460. // int32 tip_pressure = 36;
  9461. if (this->_internal_tip_pressure() != 0) {
  9462. target = stream->EnsureSpace(target);
  9463. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(36, this->_internal_tip_pressure(), target);
  9464. }
  9465. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9466. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9467. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9468. }
  9469. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  9470. return target;
  9471. }
  9472. size_t State::ByteSizeLong() const {
  9473. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  9474. size_t total_size = 0;
  9475. uint32_t cached_has_bits = 0;
  9476. // Prevent compiler warnings about cached_has_bits being unused
  9477. (void) cached_has_bits;
  9478. // bytes error_Buff = 31;
  9479. if (!this->_internal_error_buff().empty()) {
  9480. total_size += 2 +
  9481. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9482. this->_internal_error_buff());
  9483. }
  9484. // int32 work_pressure = 1;
  9485. if (this->_internal_work_pressure() != 0) {
  9486. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_work_pressure());
  9487. }
  9488. // int32 brake_pressure = 2;
  9489. if (this->_internal_brake_pressure() != 0) {
  9490. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake_pressure());
  9491. }
  9492. // int32 gearbox_oil_temp = 3;
  9493. if (this->_internal_gearbox_oil_temp() != 0) {
  9494. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_temp());
  9495. }
  9496. // int32 gearbox_oil_pressure = 4;
  9497. if (this->_internal_gearbox_oil_pressure() != 0) {
  9498. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_pressure());
  9499. }
  9500. // int32 engine_rpm = 5;
  9501. if (this->_internal_engine_rpm() != 0) {
  9502. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_rpm());
  9503. }
  9504. // int32 speed = 6;
  9505. if (this->_internal_speed() != 0) {
  9506. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  9507. }
  9508. // int32 gear = 7;
  9509. if (this->_internal_gear() != 0) {
  9510. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gear());
  9511. }
  9512. // int32 engine_pressure = 8;
  9513. if (this->_internal_engine_pressure() != 0) {
  9514. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_pressure());
  9515. }
  9516. // int32 cold_water = 9;
  9517. if (this->_internal_cold_water() != 0) {
  9518. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cold_water());
  9519. }
  9520. // float steer_angle = 10;
  9521. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9522. float tmp_steer_angle = this->_internal_steer_angle();
  9523. uint32_t raw_steer_angle;
  9524. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9525. if (raw_steer_angle != 0) {
  9526. total_size += 1 + 4;
  9527. }
  9528. // int32 left_lock = 11;
  9529. if (this->_internal_left_lock() != 0) {
  9530. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_lock());
  9531. }
  9532. // int32 right_lock = 12;
  9533. if (this->_internal_right_lock() != 0) {
  9534. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_lock());
  9535. }
  9536. // int32 engine_time = 13;
  9537. if (this->_internal_engine_time() != 0) {
  9538. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_time());
  9539. }
  9540. // int32 wire_sensor_l = 14;
  9541. if (this->_internal_wire_sensor_l() != 0) {
  9542. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wire_sensor_l());
  9543. }
  9544. // int32 wire_sensor_r = 15;
  9545. if (this->_internal_wire_sensor_r() != 0) {
  9546. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wire_sensor_r());
  9547. }
  9548. // int32 fuel_level = 16;
  9549. if (this->_internal_fuel_level() != 0) {
  9550. total_size += 2 +
  9551. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9552. this->_internal_fuel_level());
  9553. }
  9554. // int32 lock_switch_l = 17;
  9555. if (this->_internal_lock_switch_l() != 0) {
  9556. total_size += 2 +
  9557. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9558. this->_internal_lock_switch_l());
  9559. }
  9560. // int32 lock_switch_r = 18;
  9561. if (this->_internal_lock_switch_r() != 0) {
  9562. total_size += 2 +
  9563. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9564. this->_internal_lock_switch_r());
  9565. }
  9566. // int32 tip_limit = 19;
  9567. if (this->_internal_tip_limit() != 0) {
  9568. total_size += 2 +
  9569. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9570. this->_internal_tip_limit());
  9571. }
  9572. // int32 turn_left = 20;
  9573. if (this->_internal_turn_left() != 0) {
  9574. total_size += 2 +
  9575. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9576. this->_internal_turn_left());
  9577. }
  9578. // int32 turn_right = 21;
  9579. if (this->_internal_turn_right() != 0) {
  9580. total_size += 2 +
  9581. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9582. this->_internal_turn_right());
  9583. }
  9584. // int32 hight_beam = 22;
  9585. if (this->_internal_hight_beam() != 0) {
  9586. total_size += 2 +
  9587. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9588. this->_internal_hight_beam());
  9589. }
  9590. // int32 low_beam = 23;
  9591. if (this->_internal_low_beam() != 0) {
  9592. total_size += 2 +
  9593. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9594. this->_internal_low_beam());
  9595. }
  9596. // int32 parking = 24;
  9597. if (this->_internal_parking() != 0) {
  9598. total_size += 2 +
  9599. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9600. this->_internal_parking());
  9601. }
  9602. // int32 brake = 25;
  9603. if (this->_internal_brake() != 0) {
  9604. total_size += 2 +
  9605. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9606. this->_internal_brake());
  9607. }
  9608. // int32 back_car = 26;
  9609. if (this->_internal_back_car() != 0) {
  9610. total_size += 2 +
  9611. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9612. this->_internal_back_car());
  9613. }
  9614. // int32 front_work_lamp = 27;
  9615. if (this->_internal_front_work_lamp() != 0) {
  9616. total_size += 2 +
  9617. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9618. this->_internal_front_work_lamp());
  9619. }
  9620. // int32 rear_work_lamp = 28;
  9621. if (this->_internal_rear_work_lamp() != 0) {
  9622. total_size += 2 +
  9623. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9624. this->_internal_rear_work_lamp());
  9625. }
  9626. // int32 cargo_weight = 29;
  9627. if (this->_internal_cargo_weight() != 0) {
  9628. total_size += 2 +
  9629. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9630. this->_internal_cargo_weight());
  9631. }
  9632. // int32 system_vol = 30;
  9633. if (this->_internal_system_vol() != 0) {
  9634. total_size += 2 +
  9635. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9636. this->_internal_system_vol());
  9637. }
  9638. // int32 f_gear = 32;
  9639. if (this->_internal_f_gear() != 0) {
  9640. total_size += 2 +
  9641. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9642. this->_internal_f_gear());
  9643. }
  9644. // int32 gear_1 = 33;
  9645. if (this->_internal_gear_1() != 0) {
  9646. total_size += 2 +
  9647. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9648. this->_internal_gear_1());
  9649. }
  9650. // int32 outgrigger_l = 34;
  9651. if (this->_internal_outgrigger_l() != 0) {
  9652. total_size += 2 +
  9653. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9654. this->_internal_outgrigger_l());
  9655. }
  9656. // int32 outgrigger_r = 35;
  9657. if (this->_internal_outgrigger_r() != 0) {
  9658. total_size += 2 +
  9659. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9660. this->_internal_outgrigger_r());
  9661. }
  9662. // int32 tip_pressure = 36;
  9663. if (this->_internal_tip_pressure() != 0) {
  9664. total_size += 2 +
  9665. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9666. this->_internal_tip_pressure());
  9667. }
  9668. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9669. }
  9670. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  9671. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9672. State::MergeImpl
  9673. };
  9674. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  9675. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9676. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9677. static_cast<State *>(to)->MergeFrom(
  9678. static_cast<const State &>(from));
  9679. }
  9680. void State::MergeFrom(const State& from) {
  9681. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  9682. GOOGLE_DCHECK_NE(&from, this);
  9683. uint32_t cached_has_bits = 0;
  9684. (void) cached_has_bits;
  9685. if (!from._internal_error_buff().empty()) {
  9686. _internal_set_error_buff(from._internal_error_buff());
  9687. }
  9688. if (from._internal_work_pressure() != 0) {
  9689. _internal_set_work_pressure(from._internal_work_pressure());
  9690. }
  9691. if (from._internal_brake_pressure() != 0) {
  9692. _internal_set_brake_pressure(from._internal_brake_pressure());
  9693. }
  9694. if (from._internal_gearbox_oil_temp() != 0) {
  9695. _internal_set_gearbox_oil_temp(from._internal_gearbox_oil_temp());
  9696. }
  9697. if (from._internal_gearbox_oil_pressure() != 0) {
  9698. _internal_set_gearbox_oil_pressure(from._internal_gearbox_oil_pressure());
  9699. }
  9700. if (from._internal_engine_rpm() != 0) {
  9701. _internal_set_engine_rpm(from._internal_engine_rpm());
  9702. }
  9703. if (from._internal_speed() != 0) {
  9704. _internal_set_speed(from._internal_speed());
  9705. }
  9706. if (from._internal_gear() != 0) {
  9707. _internal_set_gear(from._internal_gear());
  9708. }
  9709. if (from._internal_engine_pressure() != 0) {
  9710. _internal_set_engine_pressure(from._internal_engine_pressure());
  9711. }
  9712. if (from._internal_cold_water() != 0) {
  9713. _internal_set_cold_water(from._internal_cold_water());
  9714. }
  9715. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9716. float tmp_steer_angle = from._internal_steer_angle();
  9717. uint32_t raw_steer_angle;
  9718. memcpy(&raw_steer_angle, &tmp_steer_angle, sizeof(tmp_steer_angle));
  9719. if (raw_steer_angle != 0) {
  9720. _internal_set_steer_angle(from._internal_steer_angle());
  9721. }
  9722. if (from._internal_left_lock() != 0) {
  9723. _internal_set_left_lock(from._internal_left_lock());
  9724. }
  9725. if (from._internal_right_lock() != 0) {
  9726. _internal_set_right_lock(from._internal_right_lock());
  9727. }
  9728. if (from._internal_engine_time() != 0) {
  9729. _internal_set_engine_time(from._internal_engine_time());
  9730. }
  9731. if (from._internal_wire_sensor_l() != 0) {
  9732. _internal_set_wire_sensor_l(from._internal_wire_sensor_l());
  9733. }
  9734. if (from._internal_wire_sensor_r() != 0) {
  9735. _internal_set_wire_sensor_r(from._internal_wire_sensor_r());
  9736. }
  9737. if (from._internal_fuel_level() != 0) {
  9738. _internal_set_fuel_level(from._internal_fuel_level());
  9739. }
  9740. if (from._internal_lock_switch_l() != 0) {
  9741. _internal_set_lock_switch_l(from._internal_lock_switch_l());
  9742. }
  9743. if (from._internal_lock_switch_r() != 0) {
  9744. _internal_set_lock_switch_r(from._internal_lock_switch_r());
  9745. }
  9746. if (from._internal_tip_limit() != 0) {
  9747. _internal_set_tip_limit(from._internal_tip_limit());
  9748. }
  9749. if (from._internal_turn_left() != 0) {
  9750. _internal_set_turn_left(from._internal_turn_left());
  9751. }
  9752. if (from._internal_turn_right() != 0) {
  9753. _internal_set_turn_right(from._internal_turn_right());
  9754. }
  9755. if (from._internal_hight_beam() != 0) {
  9756. _internal_set_hight_beam(from._internal_hight_beam());
  9757. }
  9758. if (from._internal_low_beam() != 0) {
  9759. _internal_set_low_beam(from._internal_low_beam());
  9760. }
  9761. if (from._internal_parking() != 0) {
  9762. _internal_set_parking(from._internal_parking());
  9763. }
  9764. if (from._internal_brake() != 0) {
  9765. _internal_set_brake(from._internal_brake());
  9766. }
  9767. if (from._internal_back_car() != 0) {
  9768. _internal_set_back_car(from._internal_back_car());
  9769. }
  9770. if (from._internal_front_work_lamp() != 0) {
  9771. _internal_set_front_work_lamp(from._internal_front_work_lamp());
  9772. }
  9773. if (from._internal_rear_work_lamp() != 0) {
  9774. _internal_set_rear_work_lamp(from._internal_rear_work_lamp());
  9775. }
  9776. if (from._internal_cargo_weight() != 0) {
  9777. _internal_set_cargo_weight(from._internal_cargo_weight());
  9778. }
  9779. if (from._internal_system_vol() != 0) {
  9780. _internal_set_system_vol(from._internal_system_vol());
  9781. }
  9782. if (from._internal_f_gear() != 0) {
  9783. _internal_set_f_gear(from._internal_f_gear());
  9784. }
  9785. if (from._internal_gear_1() != 0) {
  9786. _internal_set_gear_1(from._internal_gear_1());
  9787. }
  9788. if (from._internal_outgrigger_l() != 0) {
  9789. _internal_set_outgrigger_l(from._internal_outgrigger_l());
  9790. }
  9791. if (from._internal_outgrigger_r() != 0) {
  9792. _internal_set_outgrigger_r(from._internal_outgrigger_r());
  9793. }
  9794. if (from._internal_tip_pressure() != 0) {
  9795. _internal_set_tip_pressure(from._internal_tip_pressure());
  9796. }
  9797. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9798. }
  9799. void State::CopyFrom(const State& from) {
  9800. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  9801. if (&from == this) return;
  9802. Clear();
  9803. MergeFrom(from);
  9804. }
  9805. bool State::IsInitialized() const {
  9806. return true;
  9807. }
  9808. void State::InternalSwap(State* other) {
  9809. using std::swap;
  9810. auto* lhs_arena = GetArenaForAllocation();
  9811. auto* rhs_arena = other->GetArenaForAllocation();
  9812. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9813. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9814. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9815. &error_buff_, lhs_arena,
  9816. &other->error_buff_, rhs_arena
  9817. );
  9818. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9819. PROTOBUF_FIELD_OFFSET(State, tip_pressure_)
  9820. + sizeof(State::tip_pressure_)
  9821. - PROTOBUF_FIELD_OFFSET(State, work_pressure_)>(
  9822. reinterpret_cast<char*>(&work_pressure_),
  9823. reinterpret_cast<char*>(&other->work_pressure_));
  9824. }
  9825. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  9826. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9827. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9828. file_level_metadata_protocol_2eproto[35]);
  9829. }
  9830. // ===================================================================
  9831. class LidarPoint::_Internal {
  9832. public:
  9833. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  9834. static void set_has_timestamp(HasBits* has_bits) {
  9835. (*has_bits)[0] |= 2u;
  9836. }
  9837. static void set_has_seq(HasBits* has_bits) {
  9838. (*has_bits)[0] |= 4u;
  9839. }
  9840. static void set_has_frame_id(HasBits* has_bits) {
  9841. (*has_bits)[0] |= 1u;
  9842. }
  9843. static void set_has_height(HasBits* has_bits) {
  9844. (*has_bits)[0] |= 8u;
  9845. }
  9846. static void set_has_width(HasBits* has_bits) {
  9847. (*has_bits)[0] |= 16u;
  9848. }
  9849. static void set_has_is_dense(HasBits* has_bits) {
  9850. (*has_bits)[0] |= 32u;
  9851. }
  9852. static void set_has_is_left(HasBits* has_bits) {
  9853. (*has_bits)[0] |= 64u;
  9854. }
  9855. };
  9856. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9857. bool is_message_owned)
  9858. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  9859. data_(arena) {
  9860. SharedCtor();
  9861. if (!is_message_owned) {
  9862. RegisterArenaDtor(arena);
  9863. }
  9864. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  9865. }
  9866. LidarPoint::LidarPoint(const LidarPoint& from)
  9867. : ::PROTOBUF_NAMESPACE_ID::Message(),
  9868. _has_bits_(from._has_bits_),
  9869. data_(from.data_) {
  9870. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9871. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9872. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9873. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9874. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9875. if (from._internal_has_frame_id()) {
  9876. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  9877. GetArenaForAllocation());
  9878. }
  9879. ::memcpy(&timestamp_, &from.timestamp_,
  9880. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9881. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9882. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  9883. }
  9884. inline void LidarPoint::SharedCtor() {
  9885. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9886. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9887. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9888. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9889. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9890. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  9891. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9892. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9893. }
  9894. LidarPoint::~LidarPoint() {
  9895. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  9896. if (GetArenaForAllocation() != nullptr) return;
  9897. SharedDtor();
  9898. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9899. }
  9900. inline void LidarPoint::SharedDtor() {
  9901. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9902. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9903. }
  9904. void LidarPoint::ArenaDtor(void* object) {
  9905. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  9906. (void)_this;
  9907. }
  9908. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9909. }
  9910. void LidarPoint::SetCachedSize(int size) const {
  9911. _cached_size_.Set(size);
  9912. }
  9913. void LidarPoint::Clear() {
  9914. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  9915. uint32_t cached_has_bits = 0;
  9916. // Prevent compiler warnings about cached_has_bits being unused
  9917. (void) cached_has_bits;
  9918. data_.Clear();
  9919. cached_has_bits = _has_bits_[0];
  9920. if (cached_has_bits & 0x00000001u) {
  9921. frame_id_.ClearNonDefaultToEmpty();
  9922. }
  9923. if (cached_has_bits & 0x0000007eu) {
  9924. ::memset(&timestamp_, 0, static_cast<size_t>(
  9925. reinterpret_cast<char*>(&is_left_) -
  9926. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9927. }
  9928. _has_bits_.Clear();
  9929. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9930. }
  9931. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9932. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9933. _Internal::HasBits has_bits{};
  9934. while (!ctx->Done(&ptr)) {
  9935. uint32_t tag;
  9936. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9937. switch (tag >> 3) {
  9938. // optional double timestamp = 1;
  9939. case 1:
  9940. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  9941. _Internal::set_has_timestamp(&has_bits);
  9942. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  9943. ptr += sizeof(double);
  9944. } else
  9945. goto handle_unusual;
  9946. continue;
  9947. // optional uint32 seq = 2;
  9948. case 2:
  9949. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9950. _Internal::set_has_seq(&has_bits);
  9951. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9952. CHK_(ptr);
  9953. } else
  9954. goto handle_unusual;
  9955. continue;
  9956. // optional string frame_id = 3;
  9957. case 3:
  9958. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  9959. auto str = _internal_mutable_frame_id();
  9960. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9961. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  9962. CHK_(ptr);
  9963. } else
  9964. goto handle_unusual;
  9965. continue;
  9966. // optional uint32 height = 4;
  9967. case 4:
  9968. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9969. _Internal::set_has_height(&has_bits);
  9970. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9971. CHK_(ptr);
  9972. } else
  9973. goto handle_unusual;
  9974. continue;
  9975. // optional uint32 width = 5;
  9976. case 5:
  9977. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9978. _Internal::set_has_width(&has_bits);
  9979. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9980. CHK_(ptr);
  9981. } else
  9982. goto handle_unusual;
  9983. continue;
  9984. // optional bool is_dense = 6;
  9985. case 6:
  9986. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9987. _Internal::set_has_is_dense(&has_bits);
  9988. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  9989. CHK_(ptr);
  9990. } else
  9991. goto handle_unusual;
  9992. continue;
  9993. // optional bool is_left = 7;
  9994. case 7:
  9995. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9996. _Internal::set_has_is_left(&has_bits);
  9997. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  9998. CHK_(ptr);
  9999. } else
  10000. goto handle_unusual;
  10001. continue;
  10002. // repeated float data = 8;
  10003. case 8:
  10004. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  10005. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  10006. CHK_(ptr);
  10007. } else if (static_cast<uint8_t>(tag) == 69) {
  10008. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  10009. ptr += sizeof(float);
  10010. } else
  10011. goto handle_unusual;
  10012. continue;
  10013. default:
  10014. goto handle_unusual;
  10015. } // switch
  10016. handle_unusual:
  10017. if ((tag == 0) || ((tag & 7) == 4)) {
  10018. CHK_(ptr);
  10019. ctx->SetLastTag(tag);
  10020. goto message_done;
  10021. }
  10022. ptr = UnknownFieldParse(
  10023. tag,
  10024. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10025. ptr, ctx);
  10026. CHK_(ptr != nullptr);
  10027. } // while
  10028. message_done:
  10029. _has_bits_.Or(has_bits);
  10030. return ptr;
  10031. failure:
  10032. ptr = nullptr;
  10033. goto message_done;
  10034. #undef CHK_
  10035. }
  10036. uint8_t* LidarPoint::_InternalSerialize(
  10037. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10038. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  10039. uint32_t cached_has_bits = 0;
  10040. (void) cached_has_bits;
  10041. // optional double timestamp = 1;
  10042. if (_internal_has_timestamp()) {
  10043. target = stream->EnsureSpace(target);
  10044. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  10045. }
  10046. // optional uint32 seq = 2;
  10047. if (_internal_has_seq()) {
  10048. target = stream->EnsureSpace(target);
  10049. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  10050. }
  10051. // optional string frame_id = 3;
  10052. if (_internal_has_frame_id()) {
  10053. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  10054. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  10055. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  10056. "RemoNet.LidarPoint.frame_id");
  10057. target = stream->WriteStringMaybeAliased(
  10058. 3, this->_internal_frame_id(), target);
  10059. }
  10060. // optional uint32 height = 4;
  10061. if (_internal_has_height()) {
  10062. target = stream->EnsureSpace(target);
  10063. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  10064. }
  10065. // optional uint32 width = 5;
  10066. if (_internal_has_width()) {
  10067. target = stream->EnsureSpace(target);
  10068. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  10069. }
  10070. // optional bool is_dense = 6;
  10071. if (_internal_has_is_dense()) {
  10072. target = stream->EnsureSpace(target);
  10073. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  10074. }
  10075. // optional bool is_left = 7;
  10076. if (_internal_has_is_left()) {
  10077. target = stream->EnsureSpace(target);
  10078. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  10079. }
  10080. // repeated float data = 8;
  10081. if (this->_internal_data_size() > 0) {
  10082. target = stream->WriteFixedPacked(8, _internal_data(), target);
  10083. }
  10084. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10085. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10086. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10087. }
  10088. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  10089. return target;
  10090. }
  10091. size_t LidarPoint::ByteSizeLong() const {
  10092. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  10093. size_t total_size = 0;
  10094. uint32_t cached_has_bits = 0;
  10095. // Prevent compiler warnings about cached_has_bits being unused
  10096. (void) cached_has_bits;
  10097. // repeated float data = 8;
  10098. {
  10099. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  10100. size_t data_size = 4UL * count;
  10101. if (data_size > 0) {
  10102. total_size += 1 +
  10103. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10104. static_cast<int32_t>(data_size));
  10105. }
  10106. total_size += data_size;
  10107. }
  10108. cached_has_bits = _has_bits_[0];
  10109. if (cached_has_bits & 0x0000007fu) {
  10110. // optional string frame_id = 3;
  10111. if (cached_has_bits & 0x00000001u) {
  10112. total_size += 1 +
  10113. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  10114. this->_internal_frame_id());
  10115. }
  10116. // optional double timestamp = 1;
  10117. if (cached_has_bits & 0x00000002u) {
  10118. total_size += 1 + 8;
  10119. }
  10120. // optional uint32 seq = 2;
  10121. if (cached_has_bits & 0x00000004u) {
  10122. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  10123. }
  10124. // optional uint32 height = 4;
  10125. if (cached_has_bits & 0x00000008u) {
  10126. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  10127. }
  10128. // optional uint32 width = 5;
  10129. if (cached_has_bits & 0x00000010u) {
  10130. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  10131. }
  10132. // optional bool is_dense = 6;
  10133. if (cached_has_bits & 0x00000020u) {
  10134. total_size += 1 + 1;
  10135. }
  10136. // optional bool is_left = 7;
  10137. if (cached_has_bits & 0x00000040u) {
  10138. total_size += 1 + 1;
  10139. }
  10140. }
  10141. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10142. }
  10143. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  10144. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10145. LidarPoint::MergeImpl
  10146. };
  10147. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  10148. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10149. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10150. static_cast<LidarPoint *>(to)->MergeFrom(
  10151. static_cast<const LidarPoint &>(from));
  10152. }
  10153. void LidarPoint::MergeFrom(const LidarPoint& from) {
  10154. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  10155. GOOGLE_DCHECK_NE(&from, this);
  10156. uint32_t cached_has_bits = 0;
  10157. (void) cached_has_bits;
  10158. data_.MergeFrom(from.data_);
  10159. cached_has_bits = from._has_bits_[0];
  10160. if (cached_has_bits & 0x0000007fu) {
  10161. if (cached_has_bits & 0x00000001u) {
  10162. _internal_set_frame_id(from._internal_frame_id());
  10163. }
  10164. if (cached_has_bits & 0x00000002u) {
  10165. timestamp_ = from.timestamp_;
  10166. }
  10167. if (cached_has_bits & 0x00000004u) {
  10168. seq_ = from.seq_;
  10169. }
  10170. if (cached_has_bits & 0x00000008u) {
  10171. height_ = from.height_;
  10172. }
  10173. if (cached_has_bits & 0x00000010u) {
  10174. width_ = from.width_;
  10175. }
  10176. if (cached_has_bits & 0x00000020u) {
  10177. is_dense_ = from.is_dense_;
  10178. }
  10179. if (cached_has_bits & 0x00000040u) {
  10180. is_left_ = from.is_left_;
  10181. }
  10182. _has_bits_[0] |= cached_has_bits;
  10183. }
  10184. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10185. }
  10186. void LidarPoint::CopyFrom(const LidarPoint& from) {
  10187. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  10188. if (&from == this) return;
  10189. Clear();
  10190. MergeFrom(from);
  10191. }
  10192. bool LidarPoint::IsInitialized() const {
  10193. return true;
  10194. }
  10195. void LidarPoint::InternalSwap(LidarPoint* other) {
  10196. using std::swap;
  10197. auto* lhs_arena = GetArenaForAllocation();
  10198. auto* rhs_arena = other->GetArenaForAllocation();
  10199. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10200. swap(_has_bits_[0], other->_has_bits_[0]);
  10201. data_.InternalSwap(&other->data_);
  10202. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10203. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10204. &frame_id_, lhs_arena,
  10205. &other->frame_id_, rhs_arena
  10206. );
  10207. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10208. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  10209. + sizeof(LidarPoint::is_left_)
  10210. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  10211. reinterpret_cast<char*>(&timestamp_),
  10212. reinterpret_cast<char*>(&other->timestamp_));
  10213. }
  10214. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  10215. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10216. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10217. file_level_metadata_protocol_2eproto[36]);
  10218. }
  10219. // ===================================================================
  10220. class SensorStop::_Internal {
  10221. public:
  10222. };
  10223. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10224. bool is_message_owned)
  10225. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10226. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  10227. }
  10228. SensorStop::SensorStop(const SensorStop& from)
  10229. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10230. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10231. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  10232. }
  10233. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  10234. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10235. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10236. };
  10237. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  10238. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  10239. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10240. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10241. file_level_metadata_protocol_2eproto[37]);
  10242. }
  10243. // ===================================================================
  10244. class StopAck::_Internal {
  10245. public:
  10246. };
  10247. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10248. bool is_message_owned)
  10249. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10250. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  10251. }
  10252. StopAck::StopAck(const StopAck& from)
  10253. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10254. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10255. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  10256. }
  10257. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  10258. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10259. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10260. };
  10261. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  10262. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  10263. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10264. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10265. file_level_metadata_protocol_2eproto[38]);
  10266. }
  10267. // ===================================================================
  10268. class can_net_frame::_Internal {
  10269. public:
  10270. };
  10271. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10272. bool is_message_owned)
  10273. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10274. SharedCtor();
  10275. if (!is_message_owned) {
  10276. RegisterArenaDtor(arena);
  10277. }
  10278. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  10279. }
  10280. can_net_frame::can_net_frame(const can_net_frame& from)
  10281. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10282. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10283. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10284. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10285. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10286. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10287. if (!from._internal_data().empty()) {
  10288. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  10289. GetArenaForAllocation());
  10290. }
  10291. ::memcpy(&dlc_, &from.dlc_,
  10292. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10293. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10294. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  10295. }
  10296. inline void can_net_frame::SharedCtor() {
  10297. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10298. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10299. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10300. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10301. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10302. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  10303. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10304. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10305. }
  10306. can_net_frame::~can_net_frame() {
  10307. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  10308. if (GetArenaForAllocation() != nullptr) return;
  10309. SharedDtor();
  10310. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10311. }
  10312. inline void can_net_frame::SharedDtor() {
  10313. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10314. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10315. }
  10316. void can_net_frame::ArenaDtor(void* object) {
  10317. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  10318. (void)_this;
  10319. }
  10320. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10321. }
  10322. void can_net_frame::SetCachedSize(int size) const {
  10323. _cached_size_.Set(size);
  10324. }
  10325. void can_net_frame::Clear() {
  10326. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  10327. uint32_t cached_has_bits = 0;
  10328. // Prevent compiler warnings about cached_has_bits being unused
  10329. (void) cached_has_bits;
  10330. data_.ClearToEmpty();
  10331. ::memset(&dlc_, 0, static_cast<size_t>(
  10332. reinterpret_cast<char*>(&canid_) -
  10333. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10334. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10335. }
  10336. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10337. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10338. while (!ctx->Done(&ptr)) {
  10339. uint32_t tag;
  10340. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10341. switch (tag >> 3) {
  10342. // sint32 dlc = 1;
  10343. case 1:
  10344. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10345. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  10346. CHK_(ptr);
  10347. } else
  10348. goto handle_unusual;
  10349. continue;
  10350. // int32 canid = 2;
  10351. case 2:
  10352. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10353. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10354. CHK_(ptr);
  10355. } else
  10356. goto handle_unusual;
  10357. continue;
  10358. // bytes data = 3;
  10359. case 3:
  10360. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  10361. auto str = _internal_mutable_data();
  10362. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  10363. CHK_(ptr);
  10364. } else
  10365. goto handle_unusual;
  10366. continue;
  10367. default:
  10368. goto handle_unusual;
  10369. } // switch
  10370. handle_unusual:
  10371. if ((tag == 0) || ((tag & 7) == 4)) {
  10372. CHK_(ptr);
  10373. ctx->SetLastTag(tag);
  10374. goto message_done;
  10375. }
  10376. ptr = UnknownFieldParse(
  10377. tag,
  10378. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10379. ptr, ctx);
  10380. CHK_(ptr != nullptr);
  10381. } // while
  10382. message_done:
  10383. return ptr;
  10384. failure:
  10385. ptr = nullptr;
  10386. goto message_done;
  10387. #undef CHK_
  10388. }
  10389. uint8_t* can_net_frame::_InternalSerialize(
  10390. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10391. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  10392. uint32_t cached_has_bits = 0;
  10393. (void) cached_has_bits;
  10394. // sint32 dlc = 1;
  10395. if (this->_internal_dlc() != 0) {
  10396. target = stream->EnsureSpace(target);
  10397. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  10398. }
  10399. // int32 canid = 2;
  10400. if (this->_internal_canid() != 0) {
  10401. target = stream->EnsureSpace(target);
  10402. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  10403. }
  10404. // bytes data = 3;
  10405. if (!this->_internal_data().empty()) {
  10406. target = stream->WriteBytesMaybeAliased(
  10407. 3, this->_internal_data(), target);
  10408. }
  10409. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10410. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10411. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10412. }
  10413. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  10414. return target;
  10415. }
  10416. size_t can_net_frame::ByteSizeLong() const {
  10417. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  10418. size_t total_size = 0;
  10419. uint32_t cached_has_bits = 0;
  10420. // Prevent compiler warnings about cached_has_bits being unused
  10421. (void) cached_has_bits;
  10422. // bytes data = 3;
  10423. if (!this->_internal_data().empty()) {
  10424. total_size += 1 +
  10425. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  10426. this->_internal_data());
  10427. }
  10428. // sint32 dlc = 1;
  10429. if (this->_internal_dlc() != 0) {
  10430. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  10431. }
  10432. // int32 canid = 2;
  10433. if (this->_internal_canid() != 0) {
  10434. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  10435. }
  10436. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10437. }
  10438. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  10439. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10440. can_net_frame::MergeImpl
  10441. };
  10442. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  10443. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10444. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10445. static_cast<can_net_frame *>(to)->MergeFrom(
  10446. static_cast<const can_net_frame &>(from));
  10447. }
  10448. void can_net_frame::MergeFrom(const can_net_frame& from) {
  10449. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  10450. GOOGLE_DCHECK_NE(&from, this);
  10451. uint32_t cached_has_bits = 0;
  10452. (void) cached_has_bits;
  10453. if (!from._internal_data().empty()) {
  10454. _internal_set_data(from._internal_data());
  10455. }
  10456. if (from._internal_dlc() != 0) {
  10457. _internal_set_dlc(from._internal_dlc());
  10458. }
  10459. if (from._internal_canid() != 0) {
  10460. _internal_set_canid(from._internal_canid());
  10461. }
  10462. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10463. }
  10464. void can_net_frame::CopyFrom(const can_net_frame& from) {
  10465. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  10466. if (&from == this) return;
  10467. Clear();
  10468. MergeFrom(from);
  10469. }
  10470. bool can_net_frame::IsInitialized() const {
  10471. return true;
  10472. }
  10473. void can_net_frame::InternalSwap(can_net_frame* other) {
  10474. using std::swap;
  10475. auto* lhs_arena = GetArenaForAllocation();
  10476. auto* rhs_arena = other->GetArenaForAllocation();
  10477. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10478. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10479. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10480. &data_, lhs_arena,
  10481. &other->data_, rhs_arena
  10482. );
  10483. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10484. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  10485. + sizeof(can_net_frame::canid_)
  10486. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  10487. reinterpret_cast<char*>(&dlc_),
  10488. reinterpret_cast<char*>(&other->dlc_));
  10489. }
  10490. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  10491. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10492. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10493. file_level_metadata_protocol_2eproto[39]);
  10494. }
  10495. // ===================================================================
  10496. class CCCanMsg::_Internal {
  10497. public:
  10498. };
  10499. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10500. bool is_message_owned)
  10501. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  10502. frams_(arena) {
  10503. SharedCtor();
  10504. if (!is_message_owned) {
  10505. RegisterArenaDtor(arena);
  10506. }
  10507. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  10508. }
  10509. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  10510. : ::PROTOBUF_NAMESPACE_ID::Message(),
  10511. frams_(from.frams_) {
  10512. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10513. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  10514. }
  10515. inline void CCCanMsg::SharedCtor() {
  10516. }
  10517. CCCanMsg::~CCCanMsg() {
  10518. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  10519. if (GetArenaForAllocation() != nullptr) return;
  10520. SharedDtor();
  10521. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10522. }
  10523. inline void CCCanMsg::SharedDtor() {
  10524. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10525. }
  10526. void CCCanMsg::ArenaDtor(void* object) {
  10527. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  10528. (void)_this;
  10529. }
  10530. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10531. }
  10532. void CCCanMsg::SetCachedSize(int size) const {
  10533. _cached_size_.Set(size);
  10534. }
  10535. void CCCanMsg::Clear() {
  10536. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  10537. uint32_t cached_has_bits = 0;
  10538. // Prevent compiler warnings about cached_has_bits being unused
  10539. (void) cached_has_bits;
  10540. frams_.Clear();
  10541. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10542. }
  10543. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10544. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10545. while (!ctx->Done(&ptr)) {
  10546. uint32_t tag;
  10547. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10548. switch (tag >> 3) {
  10549. // repeated .RemoNet.can_net_frame frams = 1;
  10550. case 1:
  10551. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10552. ptr -= 1;
  10553. do {
  10554. ptr += 1;
  10555. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  10556. CHK_(ptr);
  10557. if (!ctx->DataAvailable(ptr)) break;
  10558. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  10559. } else
  10560. goto handle_unusual;
  10561. continue;
  10562. default:
  10563. goto handle_unusual;
  10564. } // switch
  10565. handle_unusual:
  10566. if ((tag == 0) || ((tag & 7) == 4)) {
  10567. CHK_(ptr);
  10568. ctx->SetLastTag(tag);
  10569. goto message_done;
  10570. }
  10571. ptr = UnknownFieldParse(
  10572. tag,
  10573. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10574. ptr, ctx);
  10575. CHK_(ptr != nullptr);
  10576. } // while
  10577. message_done:
  10578. return ptr;
  10579. failure:
  10580. ptr = nullptr;
  10581. goto message_done;
  10582. #undef CHK_
  10583. }
  10584. uint8_t* CCCanMsg::_InternalSerialize(
  10585. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10586. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  10587. uint32_t cached_has_bits = 0;
  10588. (void) cached_has_bits;
  10589. // repeated .RemoNet.can_net_frame frams = 1;
  10590. for (unsigned int i = 0,
  10591. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  10592. target = stream->EnsureSpace(target);
  10593. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10594. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  10595. }
  10596. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10597. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10598. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10599. }
  10600. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  10601. return target;
  10602. }
  10603. size_t CCCanMsg::ByteSizeLong() const {
  10604. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  10605. size_t total_size = 0;
  10606. uint32_t cached_has_bits = 0;
  10607. // Prevent compiler warnings about cached_has_bits being unused
  10608. (void) cached_has_bits;
  10609. // repeated .RemoNet.can_net_frame frams = 1;
  10610. total_size += 1UL * this->_internal_frams_size();
  10611. for (const auto& msg : this->frams_) {
  10612. total_size +=
  10613. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10614. }
  10615. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10616. }
  10617. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  10618. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10619. CCCanMsg::MergeImpl
  10620. };
  10621. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  10622. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10623. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10624. static_cast<CCCanMsg *>(to)->MergeFrom(
  10625. static_cast<const CCCanMsg &>(from));
  10626. }
  10627. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  10628. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  10629. GOOGLE_DCHECK_NE(&from, this);
  10630. uint32_t cached_has_bits = 0;
  10631. (void) cached_has_bits;
  10632. frams_.MergeFrom(from.frams_);
  10633. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10634. }
  10635. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  10636. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  10637. if (&from == this) return;
  10638. Clear();
  10639. MergeFrom(from);
  10640. }
  10641. bool CCCanMsg::IsInitialized() const {
  10642. return true;
  10643. }
  10644. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  10645. using std::swap;
  10646. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10647. frams_.InternalSwap(&other->frams_);
  10648. }
  10649. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  10650. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10651. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10652. file_level_metadata_protocol_2eproto[40]);
  10653. }
  10654. // ===================================================================
  10655. class SCAddRobot::_Internal {
  10656. public:
  10657. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  10658. };
  10659. const ::RemoNet::Robot&
  10660. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  10661. return *msg->robot_;
  10662. }
  10663. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10664. bool is_message_owned)
  10665. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10666. SharedCtor();
  10667. if (!is_message_owned) {
  10668. RegisterArenaDtor(arena);
  10669. }
  10670. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  10671. }
  10672. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  10673. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10674. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10675. if (from._internal_has_robot()) {
  10676. robot_ = new ::RemoNet::Robot(*from.robot_);
  10677. } else {
  10678. robot_ = nullptr;
  10679. }
  10680. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  10681. }
  10682. inline void SCAddRobot::SharedCtor() {
  10683. robot_ = nullptr;
  10684. }
  10685. SCAddRobot::~SCAddRobot() {
  10686. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  10687. if (GetArenaForAllocation() != nullptr) return;
  10688. SharedDtor();
  10689. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10690. }
  10691. inline void SCAddRobot::SharedDtor() {
  10692. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10693. if (this != internal_default_instance()) delete robot_;
  10694. }
  10695. void SCAddRobot::ArenaDtor(void* object) {
  10696. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  10697. (void)_this;
  10698. }
  10699. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10700. }
  10701. void SCAddRobot::SetCachedSize(int size) const {
  10702. _cached_size_.Set(size);
  10703. }
  10704. void SCAddRobot::Clear() {
  10705. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  10706. uint32_t cached_has_bits = 0;
  10707. // Prevent compiler warnings about cached_has_bits being unused
  10708. (void) cached_has_bits;
  10709. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  10710. delete robot_;
  10711. }
  10712. robot_ = nullptr;
  10713. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10714. }
  10715. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10716. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10717. while (!ctx->Done(&ptr)) {
  10718. uint32_t tag;
  10719. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10720. switch (tag >> 3) {
  10721. // .RemoNet.Robot robot = 1;
  10722. case 1:
  10723. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10724. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  10725. CHK_(ptr);
  10726. } else
  10727. goto handle_unusual;
  10728. continue;
  10729. default:
  10730. goto handle_unusual;
  10731. } // switch
  10732. handle_unusual:
  10733. if ((tag == 0) || ((tag & 7) == 4)) {
  10734. CHK_(ptr);
  10735. ctx->SetLastTag(tag);
  10736. goto message_done;
  10737. }
  10738. ptr = UnknownFieldParse(
  10739. tag,
  10740. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10741. ptr, ctx);
  10742. CHK_(ptr != nullptr);
  10743. } // while
  10744. message_done:
  10745. return ptr;
  10746. failure:
  10747. ptr = nullptr;
  10748. goto message_done;
  10749. #undef CHK_
  10750. }
  10751. uint8_t* SCAddRobot::_InternalSerialize(
  10752. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10753. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  10754. uint32_t cached_has_bits = 0;
  10755. (void) cached_has_bits;
  10756. // .RemoNet.Robot robot = 1;
  10757. if (this->_internal_has_robot()) {
  10758. target = stream->EnsureSpace(target);
  10759. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10760. InternalWriteMessage(
  10761. 1, _Internal::robot(this), target, stream);
  10762. }
  10763. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10764. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10765. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10766. }
  10767. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  10768. return target;
  10769. }
  10770. size_t SCAddRobot::ByteSizeLong() const {
  10771. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  10772. size_t total_size = 0;
  10773. uint32_t cached_has_bits = 0;
  10774. // Prevent compiler warnings about cached_has_bits being unused
  10775. (void) cached_has_bits;
  10776. // .RemoNet.Robot robot = 1;
  10777. if (this->_internal_has_robot()) {
  10778. total_size += 1 +
  10779. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  10780. *robot_);
  10781. }
  10782. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10783. }
  10784. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  10785. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10786. SCAddRobot::MergeImpl
  10787. };
  10788. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  10789. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10790. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10791. static_cast<SCAddRobot *>(to)->MergeFrom(
  10792. static_cast<const SCAddRobot &>(from));
  10793. }
  10794. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  10795. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  10796. GOOGLE_DCHECK_NE(&from, this);
  10797. uint32_t cached_has_bits = 0;
  10798. (void) cached_has_bits;
  10799. if (from._internal_has_robot()) {
  10800. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  10801. }
  10802. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10803. }
  10804. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  10805. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  10806. if (&from == this) return;
  10807. Clear();
  10808. MergeFrom(from);
  10809. }
  10810. bool SCAddRobot::IsInitialized() const {
  10811. return true;
  10812. }
  10813. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  10814. using std::swap;
  10815. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10816. swap(robot_, other->robot_);
  10817. }
  10818. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  10819. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10820. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10821. file_level_metadata_protocol_2eproto[41]);
  10822. }
  10823. // ===================================================================
  10824. class SCDelRobot::_Internal {
  10825. public:
  10826. };
  10827. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10828. bool is_message_owned)
  10829. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10830. SharedCtor();
  10831. if (!is_message_owned) {
  10832. RegisterArenaDtor(arena);
  10833. }
  10834. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  10835. }
  10836. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  10837. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10838. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10839. ::memcpy(&peer_, &from.peer_,
  10840. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10841. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10842. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  10843. }
  10844. inline void SCDelRobot::SharedCtor() {
  10845. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10846. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  10847. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10848. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10849. }
  10850. SCDelRobot::~SCDelRobot() {
  10851. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  10852. if (GetArenaForAllocation() != nullptr) return;
  10853. SharedDtor();
  10854. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10855. }
  10856. inline void SCDelRobot::SharedDtor() {
  10857. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10858. }
  10859. void SCDelRobot::ArenaDtor(void* object) {
  10860. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  10861. (void)_this;
  10862. }
  10863. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10864. }
  10865. void SCDelRobot::SetCachedSize(int size) const {
  10866. _cached_size_.Set(size);
  10867. }
  10868. void SCDelRobot::Clear() {
  10869. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  10870. uint32_t cached_has_bits = 0;
  10871. // Prevent compiler warnings about cached_has_bits being unused
  10872. (void) cached_has_bits;
  10873. ::memset(&peer_, 0, static_cast<size_t>(
  10874. reinterpret_cast<char*>(&egotype_) -
  10875. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10876. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10877. }
  10878. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10879. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10880. while (!ctx->Done(&ptr)) {
  10881. uint32_t tag;
  10882. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10883. switch (tag >> 3) {
  10884. // int32 peer = 1;
  10885. case 1:
  10886. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10887. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10888. CHK_(ptr);
  10889. } else
  10890. goto handle_unusual;
  10891. continue;
  10892. // int32 egotype = 2;
  10893. case 2:
  10894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10895. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10896. CHK_(ptr);
  10897. } else
  10898. goto handle_unusual;
  10899. continue;
  10900. default:
  10901. goto handle_unusual;
  10902. } // switch
  10903. handle_unusual:
  10904. if ((tag == 0) || ((tag & 7) == 4)) {
  10905. CHK_(ptr);
  10906. ctx->SetLastTag(tag);
  10907. goto message_done;
  10908. }
  10909. ptr = UnknownFieldParse(
  10910. tag,
  10911. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10912. ptr, ctx);
  10913. CHK_(ptr != nullptr);
  10914. } // while
  10915. message_done:
  10916. return ptr;
  10917. failure:
  10918. ptr = nullptr;
  10919. goto message_done;
  10920. #undef CHK_
  10921. }
  10922. uint8_t* SCDelRobot::_InternalSerialize(
  10923. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10924. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  10925. uint32_t cached_has_bits = 0;
  10926. (void) cached_has_bits;
  10927. // int32 peer = 1;
  10928. if (this->_internal_peer() != 0) {
  10929. target = stream->EnsureSpace(target);
  10930. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  10931. }
  10932. // int32 egotype = 2;
  10933. if (this->_internal_egotype() != 0) {
  10934. target = stream->EnsureSpace(target);
  10935. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  10936. }
  10937. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10938. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10939. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10940. }
  10941. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  10942. return target;
  10943. }
  10944. size_t SCDelRobot::ByteSizeLong() const {
  10945. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  10946. size_t total_size = 0;
  10947. uint32_t cached_has_bits = 0;
  10948. // Prevent compiler warnings about cached_has_bits being unused
  10949. (void) cached_has_bits;
  10950. // int32 peer = 1;
  10951. if (this->_internal_peer() != 0) {
  10952. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  10953. }
  10954. // int32 egotype = 2;
  10955. if (this->_internal_egotype() != 0) {
  10956. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  10957. }
  10958. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10959. }
  10960. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  10961. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10962. SCDelRobot::MergeImpl
  10963. };
  10964. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  10965. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10966. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10967. static_cast<SCDelRobot *>(to)->MergeFrom(
  10968. static_cast<const SCDelRobot &>(from));
  10969. }
  10970. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  10971. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  10972. GOOGLE_DCHECK_NE(&from, this);
  10973. uint32_t cached_has_bits = 0;
  10974. (void) cached_has_bits;
  10975. if (from._internal_peer() != 0) {
  10976. _internal_set_peer(from._internal_peer());
  10977. }
  10978. if (from._internal_egotype() != 0) {
  10979. _internal_set_egotype(from._internal_egotype());
  10980. }
  10981. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10982. }
  10983. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  10984. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  10985. if (&from == this) return;
  10986. Clear();
  10987. MergeFrom(from);
  10988. }
  10989. bool SCDelRobot::IsInitialized() const {
  10990. return true;
  10991. }
  10992. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  10993. using std::swap;
  10994. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10995. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10996. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  10997. + sizeof(SCDelRobot::egotype_)
  10998. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  10999. reinterpret_cast<char*>(&peer_),
  11000. reinterpret_cast<char*>(&other->peer_));
  11001. }
  11002. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  11003. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11004. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11005. file_level_metadata_protocol_2eproto[42]);
  11006. }
  11007. // @@protoc_insertion_point(namespace_scope)
  11008. } // namespace RemoNet
  11009. PROTOBUF_NAMESPACE_OPEN
  11010. template<> PROTOBUF_NOINLINE ::RemoNet::SwitchDriver* Arena::CreateMaybeMessage< ::RemoNet::SwitchDriver >(Arena* arena) {
  11011. return Arena::CreateMessageInternal< ::RemoNet::SwitchDriver >(arena);
  11012. }
  11013. template<> PROTOBUF_NOINLINE ::RemoNet::NDTPos* Arena::CreateMaybeMessage< ::RemoNet::NDTPos >(Arena* arena) {
  11014. return Arena::CreateMessageInternal< ::RemoNet::NDTPos >(arena);
  11015. }
  11016. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::CSMoveBegin >(Arena* arena) {
  11017. return Arena::CreateMessageInternal< ::RemoNet::CSMoveBegin >(arena);
  11018. }
  11019. template<> PROTOBUF_NOINLINE ::RemoNet::MoveRet* Arena::CreateMaybeMessage< ::RemoNet::MoveRet >(Arena* arena) {
  11020. return Arena::CreateMessageInternal< ::RemoNet::MoveRet >(arena);
  11021. }
  11022. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::CSMoveEnd >(Arena* arena) {
  11023. return Arena::CreateMessageInternal< ::RemoNet::CSMoveEnd >(arena);
  11024. }
  11025. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::SCMoveBegin >(Arena* arena) {
  11026. return Arena::CreateMessageInternal< ::RemoNet::SCMoveBegin >(arena);
  11027. }
  11028. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::SCMoveEnd >(Arena* arena) {
  11029. return Arena::CreateMessageInternal< ::RemoNet::SCMoveEnd >(arena);
  11030. }
  11031. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  11032. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  11033. }
  11034. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  11035. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  11036. }
  11037. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  11038. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  11039. }
  11040. template<> PROTOBUF_NOINLINE ::RemoNet::CSState* Arena::CreateMaybeMessage< ::RemoNet::CSState >(Arena* arena) {
  11041. return Arena::CreateMessageInternal< ::RemoNet::CSState >(arena);
  11042. }
  11043. template<> PROTOBUF_NOINLINE ::RemoNet::SCState* Arena::CreateMaybeMessage< ::RemoNet::SCState >(Arena* arena) {
  11044. return Arena::CreateMessageInternal< ::RemoNet::SCState >(arena);
  11045. }
  11046. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  11047. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  11048. }
  11049. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  11050. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  11051. }
  11052. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  11053. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  11054. }
  11055. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  11056. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  11057. }
  11058. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  11059. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  11060. }
  11061. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  11062. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  11063. }
  11064. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  11065. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  11066. }
  11067. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  11068. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  11069. }
  11070. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  11071. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  11072. }
  11073. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  11074. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  11075. }
  11076. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  11077. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  11078. }
  11079. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  11080. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  11081. }
  11082. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  11083. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  11084. }
  11085. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  11086. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  11087. }
  11088. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  11089. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  11090. }
  11091. template<> PROTOBUF_NOINLINE ::RemoNet::SyncTime* Arena::CreateMaybeMessage< ::RemoNet::SyncTime >(Arena* arena) {
  11092. return Arena::CreateMessageInternal< ::RemoNet::SyncTime >(arena);
  11093. }
  11094. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  11095. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  11096. }
  11097. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  11098. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  11099. }
  11100. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  11101. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  11102. }
  11103. template<> PROTOBUF_NOINLINE ::RemoNet::radar_node* Arena::CreateMaybeMessage< ::RemoNet::radar_node >(Arena* arena) {
  11104. return Arena::CreateMessageInternal< ::RemoNet::radar_node >(arena);
  11105. }
  11106. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  11107. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  11108. }
  11109. template<> PROTOBUF_NOINLINE ::RemoNet::CCSensor* Arena::CreateMaybeMessage< ::RemoNet::CCSensor >(Arena* arena) {
  11110. return Arena::CreateMessageInternal< ::RemoNet::CCSensor >(arena);
  11111. }
  11112. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  11113. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  11114. }
  11115. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  11116. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  11117. }
  11118. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  11119. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  11120. }
  11121. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  11122. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  11123. }
  11124. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  11125. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  11126. }
  11127. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  11128. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  11129. }
  11130. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  11131. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  11132. }
  11133. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  11134. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  11135. }
  11136. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  11137. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  11138. }
  11139. PROTOBUF_NAMESPACE_CLOSE
  11140. // @@protoc_insertion_point(global_scope)
  11141. #include <google/protobuf/port_undef.inc>