protocol.pb.cc 434 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: protocol.proto
  3. #include "protocol.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace RemoNet {
  16. constexpr SwitchDriver::SwitchDriver(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : peer_(0){}
  19. struct SwitchDriverDefaultTypeInternal {
  20. constexpr SwitchDriverDefaultTypeInternal()
  21. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  22. ~SwitchDriverDefaultTypeInternal() {}
  23. union {
  24. SwitchDriver _instance;
  25. };
  26. };
  27. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SwitchDriverDefaultTypeInternal _SwitchDriver_default_instance_;
  28. constexpr NDTPos::NDTPos(
  29. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  30. : x_(0)
  31. , y_(0)
  32. , z_(0)
  33. , rx_(0)
  34. , ry_(0)
  35. , rz_(0)
  36. , rw_(0){}
  37. struct NDTPosDefaultTypeInternal {
  38. constexpr NDTPosDefaultTypeInternal()
  39. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  40. ~NDTPosDefaultTypeInternal() {}
  41. union {
  42. NDTPos _instance;
  43. };
  44. };
  45. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NDTPosDefaultTypeInternal _NDTPos_default_instance_;
  46. constexpr CSMoveBegin::CSMoveBegin(
  47. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  48. : peer_(0)
  49. , area_(0)
  50. , no_(0){}
  51. struct CSMoveBeginDefaultTypeInternal {
  52. constexpr CSMoveBeginDefaultTypeInternal()
  53. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  54. ~CSMoveBeginDefaultTypeInternal() {}
  55. union {
  56. CSMoveBegin _instance;
  57. };
  58. };
  59. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveBeginDefaultTypeInternal _CSMoveBegin_default_instance_;
  60. constexpr MoveRet::MoveRet(
  61. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  62. : desc_(0)
  63. , peer_(0){}
  64. struct MoveRetDefaultTypeInternal {
  65. constexpr MoveRetDefaultTypeInternal()
  66. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  67. ~MoveRetDefaultTypeInternal() {}
  68. union {
  69. MoveRet _instance;
  70. };
  71. };
  72. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveRetDefaultTypeInternal _MoveRet_default_instance_;
  73. constexpr CSMoveEnd::CSMoveEnd(
  74. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  75. : area_(0)
  76. , no_(0)
  77. , uid_(0){}
  78. struct CSMoveEndDefaultTypeInternal {
  79. constexpr CSMoveEndDefaultTypeInternal()
  80. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  81. ~CSMoveEndDefaultTypeInternal() {}
  82. union {
  83. CSMoveEnd _instance;
  84. };
  85. };
  86. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveEndDefaultTypeInternal _CSMoveEnd_default_instance_;
  87. constexpr SCMoveBegin::SCMoveBegin(
  88. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  89. : uid_(0)
  90. , area_(0)
  91. , no_(0)
  92. , x_(0)
  93. , y_(0){}
  94. struct SCMoveBeginDefaultTypeInternal {
  95. constexpr SCMoveBeginDefaultTypeInternal()
  96. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  97. ~SCMoveBeginDefaultTypeInternal() {}
  98. union {
  99. SCMoveBegin _instance;
  100. };
  101. };
  102. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveBeginDefaultTypeInternal _SCMoveBegin_default_instance_;
  103. constexpr SCMoveEnd::SCMoveEnd(
  104. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  105. : area_(0)
  106. , no_(0)
  107. , uid_(0){}
  108. struct SCMoveEndDefaultTypeInternal {
  109. constexpr SCMoveEndDefaultTypeInternal()
  110. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  111. ~SCMoveEndDefaultTypeInternal() {}
  112. union {
  113. SCMoveEnd _instance;
  114. };
  115. };
  116. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveEndDefaultTypeInternal _SCMoveEnd_default_instance_;
  117. constexpr CSAdd::CSAdd(
  118. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  119. : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  120. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  121. , type_(0)
  122. , car_(0){}
  123. struct CSAddDefaultTypeInternal {
  124. constexpr CSAddDefaultTypeInternal()
  125. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  126. ~CSAddDefaultTypeInternal() {}
  127. union {
  128. CSAdd _instance;
  129. };
  130. };
  131. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_;
  132. constexpr SCAdd::SCAdd(
  133. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  134. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  135. , ret_(false)
  136. , uid_(0)
  137. , car_(0){}
  138. struct SCAddDefaultTypeInternal {
  139. constexpr SCAddDefaultTypeInternal()
  140. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  141. ~SCAddDefaultTypeInternal() {}
  142. union {
  143. SCAdd _instance;
  144. };
  145. };
  146. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_;
  147. constexpr SCKickOff::SCKickOff(
  148. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  149. struct SCKickOffDefaultTypeInternal {
  150. constexpr SCKickOffDefaultTypeInternal()
  151. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  152. ~SCKickOffDefaultTypeInternal() {}
  153. union {
  154. SCKickOff _instance;
  155. };
  156. };
  157. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCKickOffDefaultTypeInternal _SCKickOff_default_instance_;
  158. constexpr CSState::CSState(
  159. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  160. : state_(0)
  161. , uid_(0){}
  162. struct CSStateDefaultTypeInternal {
  163. constexpr CSStateDefaultTypeInternal()
  164. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  165. ~CSStateDefaultTypeInternal() {}
  166. union {
  167. CSState _instance;
  168. };
  169. };
  170. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSStateDefaultTypeInternal _CSState_default_instance_;
  171. constexpr SCState::SCState(
  172. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  173. : state_(0)
  174. , uid_(0){}
  175. struct SCStateDefaultTypeInternal {
  176. constexpr SCStateDefaultTypeInternal()
  177. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  178. ~SCStateDefaultTypeInternal() {}
  179. union {
  180. SCState _instance;
  181. };
  182. };
  183. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCStateDefaultTypeInternal _SCState_default_instance_;
  184. constexpr Robot::Robot(
  185. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  186. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  187. , rid_(0)
  188. , type_(0)
  189. , state_(0)
  190. , cartype_(0){}
  191. struct RobotDefaultTypeInternal {
  192. constexpr RobotDefaultTypeInternal()
  193. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  194. ~RobotDefaultTypeInternal() {}
  195. union {
  196. Robot _instance;
  197. };
  198. };
  199. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  200. constexpr CSRobot::CSRobot(
  201. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  202. struct CSRobotDefaultTypeInternal {
  203. constexpr CSRobotDefaultTypeInternal()
  204. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  205. ~CSRobotDefaultTypeInternal() {}
  206. union {
  207. CSRobot _instance;
  208. };
  209. };
  210. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  211. constexpr SCRobot::SCRobot(
  212. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  213. : robot_(){}
  214. struct SCRobotDefaultTypeInternal {
  215. constexpr SCRobotDefaultTypeInternal()
  216. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  217. ~SCRobotDefaultTypeInternal() {}
  218. union {
  219. SCRobot _instance;
  220. };
  221. };
  222. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  223. constexpr CSSign::CSSign(
  224. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  225. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  226. , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  227. struct CSSignDefaultTypeInternal {
  228. constexpr CSSignDefaultTypeInternal()
  229. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  230. ~CSSignDefaultTypeInternal() {}
  231. union {
  232. CSSign _instance;
  233. };
  234. };
  235. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSignDefaultTypeInternal _CSSign_default_instance_;
  236. constexpr SCSign::SCSign(
  237. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  238. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  239. , ret_(false)
  240. , uid_(0){}
  241. struct SCSignDefaultTypeInternal {
  242. constexpr SCSignDefaultTypeInternal()
  243. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  244. ~SCSignDefaultTypeInternal() {}
  245. union {
  246. SCSign _instance;
  247. };
  248. };
  249. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSignDefaultTypeInternal _SCSign_default_instance_;
  250. constexpr CSReq::CSReq(
  251. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  252. : peer_(0)
  253. , index_(0)
  254. , egotype_(0){}
  255. struct CSReqDefaultTypeInternal {
  256. constexpr CSReqDefaultTypeInternal()
  257. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  258. ~CSReqDefaultTypeInternal() {}
  259. union {
  260. CSReq _instance;
  261. };
  262. };
  263. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  264. constexpr SCReq::SCReq(
  265. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  266. : desc_(0)
  267. , peer_(0)
  268. , egotype_(0){}
  269. struct SCReqDefaultTypeInternal {
  270. constexpr SCReqDefaultTypeInternal()
  271. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  272. ~SCReqDefaultTypeInternal() {}
  273. union {
  274. SCReq _instance;
  275. };
  276. };
  277. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  278. constexpr CSRep::CSRep(
  279. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  280. : desc_(0)
  281. , peer_(0)
  282. , index_(0)
  283. , egotype_(0){}
  284. struct CSRepDefaultTypeInternal {
  285. constexpr CSRepDefaultTypeInternal()
  286. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  287. ~CSRepDefaultTypeInternal() {}
  288. union {
  289. CSRep _instance;
  290. };
  291. };
  292. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  293. constexpr SCRep::SCRep(
  294. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  295. : desc_(0)
  296. , index_(0)
  297. , egotype_(0)
  298. , peer_(0){}
  299. struct SCRepDefaultTypeInternal {
  300. constexpr SCRepDefaultTypeInternal()
  301. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  302. ~SCRepDefaultTypeInternal() {}
  303. union {
  304. SCRep _instance;
  305. };
  306. };
  307. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  308. constexpr Offer::Offer(
  309. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  310. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  311. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  312. , index_(0)
  313. , peer_(0){}
  314. struct OfferDefaultTypeInternal {
  315. constexpr OfferDefaultTypeInternal()
  316. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  317. ~OfferDefaultTypeInternal() {}
  318. union {
  319. Offer _instance;
  320. };
  321. };
  322. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  323. constexpr Answer::Answer(
  324. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  325. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  326. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  327. , index_(0)
  328. , peer_(0){}
  329. struct AnswerDefaultTypeInternal {
  330. constexpr AnswerDefaultTypeInternal()
  331. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  332. ~AnswerDefaultTypeInternal() {}
  333. union {
  334. Answer _instance;
  335. };
  336. };
  337. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  338. constexpr Candidate::Candidate(
  339. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  340. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  341. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  342. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  343. , index_(0)
  344. , peer_(0)
  345. , sdpmlineindex_(0)
  346. , egotype_(0){}
  347. struct CandidateDefaultTypeInternal {
  348. constexpr CandidateDefaultTypeInternal()
  349. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  350. ~CandidateDefaultTypeInternal() {}
  351. union {
  352. Candidate _instance;
  353. };
  354. };
  355. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  356. constexpr Leave::Leave(
  357. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  358. : peer_(0)
  359. , egotype_(0){}
  360. struct LeaveDefaultTypeInternal {
  361. constexpr LeaveDefaultTypeInternal()
  362. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  363. ~LeaveDefaultTypeInternal() {}
  364. union {
  365. Leave _instance;
  366. };
  367. };
  368. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  369. constexpr Close::Close(
  370. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  371. : peer_(0)
  372. , egotype_(0)
  373. , index_(0){}
  374. struct CloseDefaultTypeInternal {
  375. constexpr CloseDefaultTypeInternal()
  376. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  377. ~CloseDefaultTypeInternal() {}
  378. union {
  379. Close _instance;
  380. };
  381. };
  382. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloseDefaultTypeInternal _Close_default_instance_;
  383. constexpr TestTextReq::TestTextReq(
  384. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  385. : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  386. struct TestTextReqDefaultTypeInternal {
  387. constexpr TestTextReqDefaultTypeInternal()
  388. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  389. ~TestTextReqDefaultTypeInternal() {}
  390. union {
  391. TestTextReq _instance;
  392. };
  393. };
  394. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TestTextReqDefaultTypeInternal _TestTextReq_default_instance_;
  395. constexpr SyncTime::SyncTime(
  396. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  397. : tm_sec_(0)
  398. , tm_min_(0)
  399. , tm_hour_(0)
  400. , tm_mday_(0)
  401. , tm_mon_(0)
  402. , tm_year_(0)
  403. , tm_wday_(0)
  404. , tm_yday_(0)
  405. , tm_isdst_(0)
  406. , update_time_(false){}
  407. struct SyncTimeDefaultTypeInternal {
  408. constexpr SyncTimeDefaultTypeInternal()
  409. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  410. ~SyncTimeDefaultTypeInternal() {}
  411. union {
  412. SyncTime _instance;
  413. };
  414. };
  415. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SyncTimeDefaultTypeInternal _SyncTime_default_instance_;
  416. constexpr CCAskDataChannel::CCAskDataChannel(
  417. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  418. struct CCAskDataChannelDefaultTypeInternal {
  419. constexpr CCAskDataChannelDefaultTypeInternal()
  420. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  421. ~CCAskDataChannelDefaultTypeInternal() {}
  422. union {
  423. CCAskDataChannel _instance;
  424. };
  425. };
  426. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCAskDataChannelDefaultTypeInternal _CCAskDataChannel_default_instance_;
  427. constexpr IMuMessage::IMuMessage(
  428. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  429. : rx_(0)
  430. , ry_(0){}
  431. struct IMuMessageDefaultTypeInternal {
  432. constexpr IMuMessageDefaultTypeInternal()
  433. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  434. ~IMuMessageDefaultTypeInternal() {}
  435. union {
  436. IMuMessage _instance;
  437. };
  438. };
  439. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IMuMessageDefaultTypeInternal _IMuMessage_default_instance_;
  440. constexpr CCPing::CCPing(
  441. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  442. : tick_(int64_t{0})
  443. , temp_(0){}
  444. struct CCPingDefaultTypeInternal {
  445. constexpr CCPingDefaultTypeInternal()
  446. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  447. ~CCPingDefaultTypeInternal() {}
  448. union {
  449. CCPing _instance;
  450. };
  451. };
  452. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  453. constexpr radar_node::radar_node(
  454. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  455. : id_(0)
  456. , range_(0){}
  457. struct radar_nodeDefaultTypeInternal {
  458. constexpr radar_nodeDefaultTypeInternal()
  459. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  460. ~radar_nodeDefaultTypeInternal() {}
  461. union {
  462. radar_node _instance;
  463. };
  464. };
  465. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT radar_nodeDefaultTypeInternal _radar_node_default_instance_;
  466. constexpr CCRadarMessage::CCRadarMessage(
  467. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  468. : radar0_(0)
  469. , radar1_(0)
  470. , radar2_(0)
  471. , radar3_(0)
  472. , radar4_(0)
  473. , radar5_(0)
  474. , radar6_(0)
  475. , radar7_(0){}
  476. struct CCRadarMessageDefaultTypeInternal {
  477. constexpr CCRadarMessageDefaultTypeInternal()
  478. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  479. ~CCRadarMessageDefaultTypeInternal() {}
  480. union {
  481. CCRadarMessage _instance;
  482. };
  483. };
  484. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  485. constexpr CCSensor::CCSensor(
  486. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  487. : node_()
  488. , left_encode_(0)
  489. , right_encode_(0){}
  490. struct CCSensorDefaultTypeInternal {
  491. constexpr CCSensorDefaultTypeInternal()
  492. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  493. ~CCSensorDefaultTypeInternal() {}
  494. union {
  495. CCSensor _instance;
  496. };
  497. };
  498. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSensorDefaultTypeInternal _CCSensor_default_instance_;
  499. constexpr CCSwitch::CCSwitch(
  500. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  501. : front_(false){}
  502. struct CCSwitchDefaultTypeInternal {
  503. constexpr CCSwitchDefaultTypeInternal()
  504. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  505. ~CCSwitchDefaultTypeInternal() {}
  506. union {
  507. CCSwitch _instance;
  508. };
  509. };
  510. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  511. constexpr State::State(
  512. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  513. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  514. , engine_speed_(0)
  515. , travel_speed_(0)
  516. , fuel_level_(0)
  517. , engine_temperature_(0)
  518. , hydraulic_oil_temperature_(0)
  519. , main_pump_1_pressure_(0)
  520. , main_pump_2_pressure_(0)
  521. , hand_gear_(0)
  522. , actual_gear_(0)
  523. , gripper_height_(0)
  524. , amplitude_(0)
  525. , boom_angle_(0)
  526. , stick_angle_(0)
  527. , idle_protection_(0)
  528. , front_toggle_(0)
  529. , back_toggle_(0)
  530. , interlock_(0)
  531. , safety_switch_(0)
  532. , arm_lift_pilot_(0)
  533. , arm_lowering_pilot_(0)
  534. , lever_lifting_pilot_(0)
  535. , rod_lowering_pilot_(0)
  536. , left_rotary_pilot_(0)
  537. , right_rotary_pilot_(0)
  538. , grab_open_pilot_(0)
  539. , grab_close_pilot_(0)
  540. , safety_valves_(0){}
  541. struct StateDefaultTypeInternal {
  542. constexpr StateDefaultTypeInternal()
  543. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  544. ~StateDefaultTypeInternal() {}
  545. union {
  546. State _instance;
  547. };
  548. };
  549. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  550. constexpr LidarPoint::LidarPoint(
  551. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  552. : data_()
  553. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  554. , timestamp_(0)
  555. , seq_(0u)
  556. , height_(0u)
  557. , width_(0u)
  558. , is_dense_(false)
  559. , is_left_(false){}
  560. struct LidarPointDefaultTypeInternal {
  561. constexpr LidarPointDefaultTypeInternal()
  562. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  563. ~LidarPointDefaultTypeInternal() {}
  564. union {
  565. LidarPoint _instance;
  566. };
  567. };
  568. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  569. constexpr SensorStop::SensorStop(
  570. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  571. struct SensorStopDefaultTypeInternal {
  572. constexpr SensorStopDefaultTypeInternal()
  573. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  574. ~SensorStopDefaultTypeInternal() {}
  575. union {
  576. SensorStop _instance;
  577. };
  578. };
  579. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  580. constexpr StopAck::StopAck(
  581. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  582. struct StopAckDefaultTypeInternal {
  583. constexpr StopAckDefaultTypeInternal()
  584. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  585. ~StopAckDefaultTypeInternal() {}
  586. union {
  587. StopAck _instance;
  588. };
  589. };
  590. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  591. constexpr can_net_frame::can_net_frame(
  592. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  593. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  594. , dlc_(0)
  595. , canid_(0){}
  596. struct can_net_frameDefaultTypeInternal {
  597. constexpr can_net_frameDefaultTypeInternal()
  598. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  599. ~can_net_frameDefaultTypeInternal() {}
  600. union {
  601. can_net_frame _instance;
  602. };
  603. };
  604. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  605. constexpr CCCanMsg::CCCanMsg(
  606. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  607. : frams_(){}
  608. struct CCCanMsgDefaultTypeInternal {
  609. constexpr CCCanMsgDefaultTypeInternal()
  610. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  611. ~CCCanMsgDefaultTypeInternal() {}
  612. union {
  613. CCCanMsg _instance;
  614. };
  615. };
  616. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  617. constexpr SCAddRobot::SCAddRobot(
  618. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  619. : robot_(nullptr){}
  620. struct SCAddRobotDefaultTypeInternal {
  621. constexpr SCAddRobotDefaultTypeInternal()
  622. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  623. ~SCAddRobotDefaultTypeInternal() {}
  624. union {
  625. SCAddRobot _instance;
  626. };
  627. };
  628. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  629. constexpr SCDelRobot::SCDelRobot(
  630. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  631. : peer_(0)
  632. , egotype_(0){}
  633. struct SCDelRobotDefaultTypeInternal {
  634. constexpr SCDelRobotDefaultTypeInternal()
  635. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  636. ~SCDelRobotDefaultTypeInternal() {}
  637. union {
  638. SCDelRobot _instance;
  639. };
  640. };
  641. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  642. } // namespace RemoNet
  643. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[43];
  644. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  645. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  646. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  647. ~0u, // no _has_bits_
  648. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, _internal_metadata_),
  649. ~0u, // no _extensions_
  650. ~0u, // no _oneof_case_
  651. ~0u, // no _weak_field_map_
  652. ~0u, // no _inlined_string_donated_
  653. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, peer_),
  654. ~0u, // no _has_bits_
  655. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, _internal_metadata_),
  656. ~0u, // no _extensions_
  657. ~0u, // no _oneof_case_
  658. ~0u, // no _weak_field_map_
  659. ~0u, // no _inlined_string_donated_
  660. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, x_),
  661. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, y_),
  662. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, z_),
  663. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rx_),
  664. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, ry_),
  665. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rz_),
  666. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rw_),
  667. ~0u, // no _has_bits_
  668. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, _internal_metadata_),
  669. ~0u, // no _extensions_
  670. ~0u, // no _oneof_case_
  671. ~0u, // no _weak_field_map_
  672. ~0u, // no _inlined_string_donated_
  673. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, peer_),
  674. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, area_),
  675. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, no_),
  676. ~0u, // no _has_bits_
  677. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, _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::MoveRet, desc_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, peer_),
  684. ~0u, // no _has_bits_
  685. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, _internal_metadata_),
  686. ~0u, // no _extensions_
  687. ~0u, // no _oneof_case_
  688. ~0u, // no _weak_field_map_
  689. ~0u, // no _inlined_string_donated_
  690. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, area_),
  691. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, no_),
  692. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, uid_),
  693. ~0u, // no _has_bits_
  694. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, _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::SCMoveBegin, uid_),
  700. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, area_),
  701. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, no_),
  702. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, x_),
  703. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, y_),
  704. ~0u, // no _has_bits_
  705. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, _internal_metadata_),
  706. ~0u, // no _extensions_
  707. ~0u, // no _oneof_case_
  708. ~0u, // no _weak_field_map_
  709. ~0u, // no _inlined_string_donated_
  710. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, area_),
  711. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, no_),
  712. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, uid_),
  713. ~0u, // no _has_bits_
  714. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _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::CSAdd, serial_),
  720. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  721. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  722. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, car_),
  723. ~0u, // no _has_bits_
  724. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  725. ~0u, // no _extensions_
  726. ~0u, // no _oneof_case_
  727. ~0u, // no _weak_field_map_
  728. ~0u, // no _inlined_string_donated_
  729. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  730. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  731. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  732. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, car_),
  733. ~0u, // no _has_bits_
  734. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  735. ~0u, // no _extensions_
  736. ~0u, // no _oneof_case_
  737. ~0u, // no _weak_field_map_
  738. ~0u, // no _inlined_string_donated_
  739. ~0u, // no _has_bits_
  740. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, _internal_metadata_),
  741. ~0u, // no _extensions_
  742. ~0u, // no _oneof_case_
  743. ~0u, // no _weak_field_map_
  744. ~0u, // no _inlined_string_donated_
  745. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, state_),
  746. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, uid_),
  747. ~0u, // no _has_bits_
  748. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, _internal_metadata_),
  749. ~0u, // no _extensions_
  750. ~0u, // no _oneof_case_
  751. ~0u, // no _weak_field_map_
  752. ~0u, // no _inlined_string_donated_
  753. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, state_),
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, uid_),
  755. ~0u, // no _has_bits_
  756. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  757. ~0u, // no _extensions_
  758. ~0u, // no _oneof_case_
  759. ~0u, // no _weak_field_map_
  760. ~0u, // no _inlined_string_donated_
  761. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  763. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  764. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  765. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, cartype_),
  766. ~0u, // no _has_bits_
  767. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  768. ~0u, // no _extensions_
  769. ~0u, // no _oneof_case_
  770. ~0u, // no _weak_field_map_
  771. ~0u, // no _inlined_string_donated_
  772. ~0u, // no _has_bits_
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  774. ~0u, // no _extensions_
  775. ~0u, // no _oneof_case_
  776. ~0u, // no _weak_field_map_
  777. ~0u, // no _inlined_string_donated_
  778. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  779. ~0u, // no _has_bits_
  780. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  781. ~0u, // no _extensions_
  782. ~0u, // no _oneof_case_
  783. ~0u, // no _weak_field_map_
  784. ~0u, // no _inlined_string_donated_
  785. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  787. ~0u, // no _has_bits_
  788. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  789. ~0u, // no _extensions_
  790. ~0u, // no _oneof_case_
  791. ~0u, // no _weak_field_map_
  792. ~0u, // no _inlined_string_donated_
  793. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  795. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  796. ~0u, // no _has_bits_
  797. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _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::CSReq, peer_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  804. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  805. ~0u, // no _has_bits_
  806. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _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::SCReq, desc_),
  812. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  813. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  814. ~0u, // no _has_bits_
  815. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _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::CSRep, desc_),
  821. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  822. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  823. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  824. ~0u, // no _has_bits_
  825. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  826. ~0u, // no _extensions_
  827. ~0u, // no _oneof_case_
  828. ~0u, // no _weak_field_map_
  829. ~0u, // no _inlined_string_donated_
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  831. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  832. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  833. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  834. ~0u, // no _has_bits_
  835. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  836. ~0u, // no _extensions_
  837. ~0u, // no _oneof_case_
  838. ~0u, // no _weak_field_map_
  839. ~0u, // no _inlined_string_donated_
  840. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  842. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  844. ~0u, // no _has_bits_
  845. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  846. ~0u, // no _extensions_
  847. ~0u, // no _oneof_case_
  848. ~0u, // no _weak_field_map_
  849. ~0u, // no _inlined_string_donated_
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  852. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  853. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  854. ~0u, // no _has_bits_
  855. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  856. ~0u, // no _extensions_
  857. ~0u, // no _oneof_case_
  858. ~0u, // no _weak_field_map_
  859. ~0u, // no _inlined_string_donated_
  860. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  861. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  862. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  863. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  864. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  865. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  866. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  867. ~0u, // no _has_bits_
  868. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  869. ~0u, // no _extensions_
  870. ~0u, // no _oneof_case_
  871. ~0u, // no _weak_field_map_
  872. ~0u, // no _inlined_string_donated_
  873. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  874. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  875. ~0u, // no _has_bits_
  876. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  877. ~0u, // no _extensions_
  878. ~0u, // no _oneof_case_
  879. ~0u, // no _weak_field_map_
  880. ~0u, // no _inlined_string_donated_
  881. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  883. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  884. ~0u, // no _has_bits_
  885. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _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::TestTextReq, text_),
  891. ~0u, // no _has_bits_
  892. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, _internal_metadata_),
  893. ~0u, // no _extensions_
  894. ~0u, // no _oneof_case_
  895. ~0u, // no _weak_field_map_
  896. ~0u, // no _inlined_string_donated_
  897. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_sec_),
  898. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_min_),
  899. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_hour_),
  900. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mday_),
  901. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mon_),
  902. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_year_),
  903. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_wday_),
  904. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_yday_),
  905. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_isdst_),
  906. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, update_time_),
  907. ~0u, // no _has_bits_
  908. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  909. ~0u, // no _extensions_
  910. ~0u, // no _oneof_case_
  911. ~0u, // no _weak_field_map_
  912. ~0u, // no _inlined_string_donated_
  913. ~0u, // no _has_bits_
  914. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  915. ~0u, // no _extensions_
  916. ~0u, // no _oneof_case_
  917. ~0u, // no _weak_field_map_
  918. ~0u, // no _inlined_string_donated_
  919. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  920. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  921. ~0u, // no _has_bits_
  922. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  923. ~0u, // no _extensions_
  924. ~0u, // no _oneof_case_
  925. ~0u, // no _weak_field_map_
  926. ~0u, // no _inlined_string_donated_
  927. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  928. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, temp_),
  929. ~0u, // no _has_bits_
  930. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, _internal_metadata_),
  931. ~0u, // no _extensions_
  932. ~0u, // no _oneof_case_
  933. ~0u, // no _weak_field_map_
  934. ~0u, // no _inlined_string_donated_
  935. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, id_),
  936. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, range_),
  937. ~0u, // no _has_bits_
  938. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  939. ~0u, // no _extensions_
  940. ~0u, // no _oneof_case_
  941. ~0u, // no _weak_field_map_
  942. ~0u, // no _inlined_string_donated_
  943. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  944. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  945. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  946. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  947. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  948. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  949. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  950. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  951. ~0u, // no _has_bits_
  952. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, _internal_metadata_),
  953. ~0u, // no _extensions_
  954. ~0u, // no _oneof_case_
  955. ~0u, // no _weak_field_map_
  956. ~0u, // no _inlined_string_donated_
  957. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, node_),
  958. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, left_encode_),
  959. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, right_encode_),
  960. ~0u, // no _has_bits_
  961. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  962. ~0u, // no _extensions_
  963. ~0u, // no _oneof_case_
  964. ~0u, // no _weak_field_map_
  965. ~0u, // no _inlined_string_donated_
  966. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  967. ~0u, // no _has_bits_
  968. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  969. ~0u, // no _extensions_
  970. ~0u, // no _oneof_case_
  971. ~0u, // no _weak_field_map_
  972. ~0u, // no _inlined_string_donated_
  973. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_speed_),
  974. PROTOBUF_FIELD_OFFSET(::RemoNet::State, travel_speed_),
  975. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  976. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_temperature_),
  977. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hydraulic_oil_temperature_),
  978. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_1_pressure_),
  979. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_2_pressure_),
  980. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hand_gear_),
  981. PROTOBUF_FIELD_OFFSET(::RemoNet::State, actual_gear_),
  982. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gripper_height_),
  983. PROTOBUF_FIELD_OFFSET(::RemoNet::State, amplitude_),
  984. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_angle_),
  985. PROTOBUF_FIELD_OFFSET(::RemoNet::State, stick_angle_),
  986. PROTOBUF_FIELD_OFFSET(::RemoNet::State, idle_protection_),
  987. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_toggle_),
  988. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_toggle_),
  989. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  990. PROTOBUF_FIELD_OFFSET(::RemoNet::State, interlock_),
  991. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_switch_),
  992. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lift_pilot_),
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lowering_pilot_),
  994. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lever_lifting_pilot_),
  995. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_lowering_pilot_),
  996. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_rotary_pilot_),
  997. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_rotary_pilot_),
  998. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_open_pilot_),
  999. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_close_pilot_),
  1000. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_valves_),
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  1003. ~0u, // no _extensions_
  1004. ~0u, // no _oneof_case_
  1005. ~0u, // no _weak_field_map_
  1006. ~0u, // no _inlined_string_donated_
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  1008. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  1010. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  1011. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  1012. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  1013. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  1015. 1,
  1016. 2,
  1017. 0,
  1018. 3,
  1019. 4,
  1020. 5,
  1021. 6,
  1022. ~0u,
  1023. ~0u, // no _has_bits_
  1024. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  1025. ~0u, // no _extensions_
  1026. ~0u, // no _oneof_case_
  1027. ~0u, // no _weak_field_map_
  1028. ~0u, // no _inlined_string_donated_
  1029. ~0u, // no _has_bits_
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  1031. ~0u, // no _extensions_
  1032. ~0u, // no _oneof_case_
  1033. ~0u, // no _weak_field_map_
  1034. ~0u, // no _inlined_string_donated_
  1035. ~0u, // no _has_bits_
  1036. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1037. ~0u, // no _extensions_
  1038. ~0u, // no _oneof_case_
  1039. ~0u, // no _weak_field_map_
  1040. ~0u, // no _inlined_string_donated_
  1041. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1042. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1043. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1044. ~0u, // no _has_bits_
  1045. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1046. ~0u, // no _extensions_
  1047. ~0u, // no _oneof_case_
  1048. ~0u, // no _weak_field_map_
  1049. ~0u, // no _inlined_string_donated_
  1050. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1051. ~0u, // no _has_bits_
  1052. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  1053. ~0u, // no _extensions_
  1054. ~0u, // no _oneof_case_
  1055. ~0u, // no _weak_field_map_
  1056. ~0u, // no _inlined_string_donated_
  1057. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  1058. ~0u, // no _has_bits_
  1059. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  1060. ~0u, // no _extensions_
  1061. ~0u, // no _oneof_case_
  1062. ~0u, // no _weak_field_map_
  1063. ~0u, // no _inlined_string_donated_
  1064. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  1065. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  1066. };
  1067. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1068. { 0, -1, -1, sizeof(::RemoNet::SwitchDriver)},
  1069. { 7, -1, -1, sizeof(::RemoNet::NDTPos)},
  1070. { 20, -1, -1, sizeof(::RemoNet::CSMoveBegin)},
  1071. { 29, -1, -1, sizeof(::RemoNet::MoveRet)},
  1072. { 37, -1, -1, sizeof(::RemoNet::CSMoveEnd)},
  1073. { 46, -1, -1, sizeof(::RemoNet::SCMoveBegin)},
  1074. { 57, -1, -1, sizeof(::RemoNet::SCMoveEnd)},
  1075. { 66, -1, -1, sizeof(::RemoNet::CSAdd)},
  1076. { 76, -1, -1, sizeof(::RemoNet::SCAdd)},
  1077. { 86, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1078. { 92, -1, -1, sizeof(::RemoNet::CSState)},
  1079. { 100, -1, -1, sizeof(::RemoNet::SCState)},
  1080. { 108, -1, -1, sizeof(::RemoNet::Robot)},
  1081. { 119, -1, -1, sizeof(::RemoNet::CSRobot)},
  1082. { 125, -1, -1, sizeof(::RemoNet::SCRobot)},
  1083. { 132, -1, -1, sizeof(::RemoNet::CSSign)},
  1084. { 140, -1, -1, sizeof(::RemoNet::SCSign)},
  1085. { 149, -1, -1, sizeof(::RemoNet::CSReq)},
  1086. { 158, -1, -1, sizeof(::RemoNet::SCReq)},
  1087. { 167, -1, -1, sizeof(::RemoNet::CSRep)},
  1088. { 177, -1, -1, sizeof(::RemoNet::SCRep)},
  1089. { 187, -1, -1, sizeof(::RemoNet::Offer)},
  1090. { 197, -1, -1, sizeof(::RemoNet::Answer)},
  1091. { 207, -1, -1, sizeof(::RemoNet::Candidate)},
  1092. { 220, -1, -1, sizeof(::RemoNet::Leave)},
  1093. { 228, -1, -1, sizeof(::RemoNet::Close)},
  1094. { 237, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1095. { 244, -1, -1, sizeof(::RemoNet::SyncTime)},
  1096. { 260, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1097. { 266, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1098. { 274, -1, -1, sizeof(::RemoNet::CCPing)},
  1099. { 282, -1, -1, sizeof(::RemoNet::radar_node)},
  1100. { 290, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1101. { 304, -1, -1, sizeof(::RemoNet::CCSensor)},
  1102. { 313, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1103. { 320, -1, -1, sizeof(::RemoNet::State)},
  1104. { 354, 368, -1, sizeof(::RemoNet::LidarPoint)},
  1105. { 376, -1, -1, sizeof(::RemoNet::SensorStop)},
  1106. { 382, -1, -1, sizeof(::RemoNet::StopAck)},
  1107. { 388, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1108. { 397, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1109. { 404, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1110. { 411, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1111. };
  1112. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1113. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SwitchDriver_default_instance_),
  1114. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_NDTPos_default_instance_),
  1115. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveBegin_default_instance_),
  1116. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_MoveRet_default_instance_),
  1117. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveEnd_default_instance_),
  1118. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveBegin_default_instance_),
  1119. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveEnd_default_instance_),
  1120. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1121. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1122. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1123. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSState_default_instance_),
  1124. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCState_default_instance_),
  1125. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1126. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1127. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1128. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1129. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1130. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1131. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1132. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1133. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1134. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1135. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1136. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1137. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1138. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1139. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1140. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SyncTime_default_instance_),
  1141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_radar_node_default_instance_),
  1145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1146. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSensor_default_instance_),
  1147. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1148. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1149. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1150. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1151. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1152. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1153. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1154. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1155. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1156. };
  1157. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1158. "\n\016protocol.proto\022\007RemoNet\"\034\n\014SwitchDrive"
  1159. "r\022\014\n\004peer\030\001 \001(\005\"Y\n\006NDTPos\022\t\n\001x\030\001 \001(\002\022\t\n\001"
  1160. "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"
  1161. "(\002\022\n\n\002rz\030\006 \001(\002\022\n\n\002rw\030\007 \001(\002\"5\n\013CSMoveBegi"
  1162. "n\022\014\n\004peer\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030\003 \001("
  1163. "\005\"8\n\007MoveRet\022\037\n\004desc\030\001 \001(\0162\021.RemoNet.Mov"
  1164. "eDesc\022\014\n\004peer\030\002 \001(\005\"2\n\tCSMoveEnd\022\014\n\004area"
  1165. "\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\"J\n\013SCMov"
  1166. "eBegin\022\013\n\003uid\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030"
  1167. "\003 \001(\005\022\t\n\001x\030\004 \001(\002\022\t\n\001y\030\005 \001(\002\"2\n\tSCMoveEnd"
  1168. "\022\014\n\004area\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\""
  1169. "@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014"
  1170. "\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<\n\005SCAdd\022\013\n\003re"
  1171. "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"
  1172. "r\030\004 \001(\005\"\013\n\tSCKickOff\"9\n\007CSState\022!\n\005state"
  1173. "\030\001 \001(\0162\022.RemoNet.UserState\022\013\n\003uid\030\002 \001(\005\""
  1174. "9\n\007SCState\022!\n\005state\030\001 \001(\0162\022.RemoNet.User"
  1175. "State\022\013\n\003uid\030\002 \001(\005\"d\n\005Robot\022\013\n\003rid\030\001 \001(\005"
  1176. "\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022!\n\005state\030\004 "
  1177. "\001(\0162\022.RemoNet.UserState\022\017\n\007carType\030\005 \001(\005"
  1178. "\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005robot\030\001 \003(\0132\016."
  1179. "RemoNet.Robot\"+\n\006CSSign\022\017\n\007account\030\001 \001(\t"
  1180. "\022\020\n\010password\030\002 \001(\t\"0\n\006SCSign\022\013\n\003ret\030\001 \001("
  1181. "\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"5\n\005CSReq\022\014\n"
  1182. "\004peer\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 "
  1183. "\001(\005\"H\n\005SCReq\022 \n\004desc\030\001 \001(\0162\022.RemoNet.Vid"
  1184. "eoDesc\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n"
  1185. "\005CSRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc"
  1186. "\022\014\n\004peer\030\002 \001(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype"
  1187. "\030\004 \001(\005\"W\n\005SCRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet."
  1188. "VideoDesc\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001("
  1189. "\005\022\014\n\004peer\030\004 \001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022"
  1190. "\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t"
  1191. "\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022"
  1192. "\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate"
  1193. "\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 "
  1194. "\001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030"
  1195. "\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&"
  1196. "\n\005Leave\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5"
  1197. "\n\005Close\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r"
  1198. "\n\005index\030\003 \001(\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001"
  1199. "(\t\"\266\001\n\010SyncTime\022\016\n\006tm_sec\030\001 \001(\005\022\016\n\006tm_mi"
  1200. "n\030\002 \001(\005\022\017\n\007tm_hour\030\003 \001(\005\022\017\n\007tm_mday\030\004 \001("
  1201. "\005\022\016\n\006tm_mon\030\005 \001(\005\022\017\n\007tm_year\030\006 \001(\005\022\017\n\007tm"
  1202. "_wday\030\007 \001(\005\022\017\n\007tm_yday\030\010 \001(\005\022\020\n\010tm_isdst"
  1203. "\030\t \001(\005\022\023\n\013update_time\030\n \001(\010\"\022\n\020CCAskData"
  1204. "Channel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n\n\002ry\030"
  1205. "\002 \001(\002\"$\n\006CCPing\022\014\n\004tick\030\001 \001(\003\022\014\n\004temp\030\002 "
  1206. "\001(\001\"\'\n\nradar_node\022\n\n\002id\030\001 \001(\005\022\r\n\005range\030\002"
  1207. " \001(\005\"\220\001\n\016CCRadarMessage\022\016\n\006radar0\030\001 \001(\005\022"
  1208. "\016\n\006radar1\030\002 \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar"
  1209. "3\030\004 \001(\005\022\016\n\006radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022"
  1210. "\016\n\006radar6\030\007 \001(\005\022\016\n\006radar7\030\010 \001(\005\"X\n\010CCSen"
  1211. "sor\022!\n\004node\030\001 \003(\0132\023.RemoNet.radar_node\022\023"
  1212. "\n\013left_encode\030\002 \001(\005\022\024\n\014right_encode\030\003 \001("
  1213. "\005\"\031\n\010CCSwitch\022\r\n\005front\030\001 \001(\010\"\256\005\n\005State\022\024"
  1214. "\n\014engine_speed\030\001 \001(\005\022\024\n\014travel_speed\030\002 \001"
  1215. "(\005\022\022\n\nfuel_level\030\003 \001(\005\022\032\n\022engine_tempera"
  1216. "ture\030\004 \001(\005\022!\n\031hydraulic_oil_temperature\030"
  1217. "\005 \001(\005\022\034\n\024main_pump_1_pressure\030\006 \001(\005\022\034\n\024m"
  1218. "ain_pump_2_pressure\030\007 \001(\005\022\021\n\thand_gear\030\010"
  1219. " \001(\005\022\023\n\013actual_gear\030\t \001(\005\022\026\n\016gripper_hei"
  1220. "ght\030\n \001(\002\022\021\n\tamplitude\030\013 \001(\002\022\022\n\nboom_ang"
  1221. "le\030\014 \001(\005\022\023\n\013stick_angle\030\r \001(\005\022\027\n\017idle_pr"
  1222. "otection\030\016 \001(\005\022\024\n\014front_toggle\030\017 \001(\005\022\023\n\013"
  1223. "back_toggle\030\020 \001(\005\022\022\n\nerror_Buff\030\021 \001(\014\022\021\n"
  1224. "\tinterlock\030\022 \001(\005\022\025\n\rsafety_switch\030\023 \001(\005\022"
  1225. "\026\n\016arm_lift_pilot\030\024 \001(\005\022\032\n\022arm_lowering_"
  1226. "pilot\030\025 \001(\005\022\033\n\023lever_lifting_pilot\030\026 \001(\005"
  1227. "\022\032\n\022rod_lowering_pilot\030\027 \001(\005\022\031\n\021left_rot"
  1228. "ary_pilot\030\030 \001(\005\022\032\n\022right_rotary_pilot\030\031 "
  1229. "\001(\005\022\027\n\017grab_open_pilot\030\032 \001(\005\022\030\n\020grab_clo"
  1230. "se_pilot\030\033 \001(\005\022\025\n\rsafety_valves\030\034 \001(\005\"\202\002"
  1231. "\n\nLidarPoint\022\026\n\ttimestamp\030\001 \001(\001H\000\210\001\001\022\020\n\003"
  1232. "seq\030\002 \001(\rH\001\210\001\001\022\025\n\010frame_id\030\003 \001(\tH\002\210\001\001\022\023\n"
  1233. "\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005width\030\005 \001(\rH\004\210\001\001\022\025"
  1234. "\n\010is_dense\030\006 \001(\010H\005\210\001\001\022\024\n\007is_left\030\007 \001(\010H\006"
  1235. "\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_timestampB\006\n\004_seqB"
  1236. "\013\n\t_frame_idB\t\n\007_heightB\010\n\006_widthB\013\n\t_is"
  1237. "_denseB\n\n\010_is_left\"\014\n\nSensorStop\"\t\n\007Stop"
  1238. "Ack\"9\n\rcan_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n\005can"
  1239. "id\030\002 \001(\005\022\014\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%\n\005fr"
  1240. "ams\030\001 \003(\0132\026.RemoNet.can_net_frame\"+\n\nSCA"
  1241. "ddRobot\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Robot\"+"
  1242. "\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 "
  1243. "\001(\005*\303\002\n\tCSMessage\022\013\n\007CS_NONE\020\000\022\014\n\007CS_Sig"
  1244. "n\020\320\017\022\013\n\006CS_Req\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS_Can"
  1245. "celReq\020\323\017\022\r\n\010CS_Offer\020\324\017\022\016\n\tCS_Answer\020\325\017"
  1246. "\022\021\n\014CS_Candidate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014CS"
  1247. "_KeepAlive\020\330\017\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Robot\020\332"
  1248. "\017\022\022\n\rCS_CloseVideo\020\333\017\022\021\n\014CS_MoveBegin\020\334\017"
  1249. "\022\017\n\nCS_MoveEnd\020\335\017\022\r\n\010CS_State\020\336\017\022\024\n\017CS_S"
  1250. "witchDriver\020\337\017\022\017\n\nCS_MoveRet\020\340\017\022\020\n\013CS_Sy"
  1251. "ncTime\020\341\017*\205\004\n\tSCMessage\022\013\n\007SC_NONE\020\000\022\014\n\007"
  1252. "SC_Sign\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n\006SC_Rep\020\242\037\022\016\n\t"
  1253. "SC_Cancel\020\243\037\022\r\n\010SC_Offer\020\244\037\022\016\n\tSC_Answer"
  1254. "\020\245\037\022\021\n\014SC_Candidate\020\246\037\022\013\n\006SC_Add\020\247\037\022\r\n\010S"
  1255. "C_Robot\020\250\037\022\021\n\014SC_NotifyReq\020\251\037\022\021\n\014SC_Noti"
  1256. "fyRep\020\252\037\022\024\n\017SC_NotifyAnswer\020\253\037\022\023\n\016SC_Not"
  1257. "ifyOffer\020\254\037\022\027\n\022SC_NotifyCandidate\020\255\037\022\023\n\016"
  1258. "SC_NotifyLeave\020\256\037\022\024\n\017SC_NotifyCancel\020\257\037\022"
  1259. "\021\n\014SC_NotifyAdd\020\260\037\022\021\n\014SC_NotifyDel\020\261\037\022\030\n"
  1260. "\023SC_NotifyCloseVideo\020\262\037\022\017\n\nSC_KickOff\020\263\037"
  1261. "\022\021\n\014SC_MoveBegin\020\264\037\022\017\n\nSC_MoveEnd\020\265\037\022\r\n\010"
  1262. "SC_State\020\266\037\022\024\n\017SC_SwitchDriver\020\267\037\022\017\n\nSC_"
  1263. "MoveRet\020\270\037\022\023\n\016SC_NotifyState\020\271\037\022\020\n\013SC_Sy"
  1264. "ncTime\020\272\037*\376\001\n\tCCMessage\022\013\n\007CC_None\020\000\022\014\n\007"
  1265. "CC_Text\020\300>\022\013\n\006CC_CAN\020\301>\022\013\n\006CC_IMU\020\302>\022\026\n\021"
  1266. "CC_ASKDATACHANNEL\020\303>\022\024\n\017CC_Manipulation\020"
  1267. "\304>\022\r\n\010CC_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007CC_"
  1268. "Ping\020\307>\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_StopAC"
  1269. "K\020\311>\022\r\n\010CC_Lidar\020\312>\022\016\n\tCC_CANMSG\020\313>\022\r\n\010C"
  1270. "C_STATE\020\314>\022\016\n\tCC_NDTPOS\020\315>*F\n\tVideoDesc\022"
  1271. "\006\n\002OK\020\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFound"
  1272. "\020\003\022\016\n\nIsVideoing\020\004*D\n\010MoveDesc\022\013\n\007Move_O"
  1273. "K\020\000\022\024\n\020Move_Encode_Fail\020\001\022\025\n\021Move_Unknow"
  1274. "_Faile\020\002*M\n\tUserState\022\013\n\007Offline\020\000\022\010\n\004Id"
  1275. "le\020\001\022\n\n\006Remote\020\002\022\016\n\nAutomotive\020\003\022\r\n\tAskR"
  1276. "emote\020\004b\006proto3"
  1277. ;
  1278. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1279. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1280. false, false, 4735, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1281. &descriptor_table_protocol_2eproto_once, nullptr, 0, 43,
  1282. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1283. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1284. };
  1285. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1286. return &descriptor_table_protocol_2eproto;
  1287. }
  1288. // Force running AddDescriptors() at dynamic initialization time.
  1289. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1290. namespace RemoNet {
  1291. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1292. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1293. return file_level_enum_descriptors_protocol_2eproto[0];
  1294. }
  1295. bool CSMessage_IsValid(int value) {
  1296. switch (value) {
  1297. case 0:
  1298. case 2000:
  1299. case 2001:
  1300. case 2002:
  1301. case 2003:
  1302. case 2004:
  1303. case 2005:
  1304. case 2006:
  1305. case 2007:
  1306. case 2008:
  1307. case 2009:
  1308. case 2010:
  1309. case 2011:
  1310. case 2012:
  1311. case 2013:
  1312. case 2014:
  1313. case 2015:
  1314. case 2016:
  1315. case 2017:
  1316. return true;
  1317. default:
  1318. return false;
  1319. }
  1320. }
  1321. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1322. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1323. return file_level_enum_descriptors_protocol_2eproto[1];
  1324. }
  1325. bool SCMessage_IsValid(int value) {
  1326. switch (value) {
  1327. case 0:
  1328. case 4000:
  1329. case 4001:
  1330. case 4002:
  1331. case 4003:
  1332. case 4004:
  1333. case 4005:
  1334. case 4006:
  1335. case 4007:
  1336. case 4008:
  1337. case 4009:
  1338. case 4010:
  1339. case 4011:
  1340. case 4012:
  1341. case 4013:
  1342. case 4014:
  1343. case 4015:
  1344. case 4016:
  1345. case 4017:
  1346. case 4018:
  1347. case 4019:
  1348. case 4020:
  1349. case 4021:
  1350. case 4022:
  1351. case 4023:
  1352. case 4024:
  1353. case 4025:
  1354. case 4026:
  1355. return true;
  1356. default:
  1357. return false;
  1358. }
  1359. }
  1360. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1361. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1362. return file_level_enum_descriptors_protocol_2eproto[2];
  1363. }
  1364. bool CCMessage_IsValid(int value) {
  1365. switch (value) {
  1366. case 0:
  1367. case 8000:
  1368. case 8001:
  1369. case 8002:
  1370. case 8003:
  1371. case 8004:
  1372. case 8005:
  1373. case 8006:
  1374. case 8007:
  1375. case 8008:
  1376. case 8009:
  1377. case 8010:
  1378. case 8011:
  1379. case 8012:
  1380. case 8013:
  1381. return true;
  1382. default:
  1383. return false;
  1384. }
  1385. }
  1386. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1387. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1388. return file_level_enum_descriptors_protocol_2eproto[3];
  1389. }
  1390. bool VideoDesc_IsValid(int value) {
  1391. switch (value) {
  1392. case 0:
  1393. case 1:
  1394. case 2:
  1395. case 3:
  1396. case 4:
  1397. return true;
  1398. default:
  1399. return false;
  1400. }
  1401. }
  1402. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MoveDesc_descriptor() {
  1403. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1404. return file_level_enum_descriptors_protocol_2eproto[4];
  1405. }
  1406. bool MoveDesc_IsValid(int value) {
  1407. switch (value) {
  1408. case 0:
  1409. case 1:
  1410. case 2:
  1411. return true;
  1412. default:
  1413. return false;
  1414. }
  1415. }
  1416. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserState_descriptor() {
  1417. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1418. return file_level_enum_descriptors_protocol_2eproto[5];
  1419. }
  1420. bool UserState_IsValid(int value) {
  1421. switch (value) {
  1422. case 0:
  1423. case 1:
  1424. case 2:
  1425. case 3:
  1426. case 4:
  1427. return true;
  1428. default:
  1429. return false;
  1430. }
  1431. }
  1432. // ===================================================================
  1433. class SwitchDriver::_Internal {
  1434. public:
  1435. };
  1436. SwitchDriver::SwitchDriver(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1437. bool is_message_owned)
  1438. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1439. SharedCtor();
  1440. if (!is_message_owned) {
  1441. RegisterArenaDtor(arena);
  1442. }
  1443. // @@protoc_insertion_point(arena_constructor:RemoNet.SwitchDriver)
  1444. }
  1445. SwitchDriver::SwitchDriver(const SwitchDriver& from)
  1446. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1447. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1448. peer_ = from.peer_;
  1449. // @@protoc_insertion_point(copy_constructor:RemoNet.SwitchDriver)
  1450. }
  1451. inline void SwitchDriver::SharedCtor() {
  1452. peer_ = 0;
  1453. }
  1454. SwitchDriver::~SwitchDriver() {
  1455. // @@protoc_insertion_point(destructor:RemoNet.SwitchDriver)
  1456. if (GetArenaForAllocation() != nullptr) return;
  1457. SharedDtor();
  1458. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1459. }
  1460. inline void SwitchDriver::SharedDtor() {
  1461. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1462. }
  1463. void SwitchDriver::ArenaDtor(void* object) {
  1464. SwitchDriver* _this = reinterpret_cast< SwitchDriver* >(object);
  1465. (void)_this;
  1466. }
  1467. void SwitchDriver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1468. }
  1469. void SwitchDriver::SetCachedSize(int size) const {
  1470. _cached_size_.Set(size);
  1471. }
  1472. void SwitchDriver::Clear() {
  1473. // @@protoc_insertion_point(message_clear_start:RemoNet.SwitchDriver)
  1474. uint32_t cached_has_bits = 0;
  1475. // Prevent compiler warnings about cached_has_bits being unused
  1476. (void) cached_has_bits;
  1477. peer_ = 0;
  1478. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1479. }
  1480. const char* SwitchDriver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1481. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1482. while (!ctx->Done(&ptr)) {
  1483. uint32_t tag;
  1484. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1485. switch (tag >> 3) {
  1486. // int32 peer = 1;
  1487. case 1:
  1488. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1489. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1490. CHK_(ptr);
  1491. } else
  1492. goto handle_unusual;
  1493. continue;
  1494. default:
  1495. goto handle_unusual;
  1496. } // switch
  1497. handle_unusual:
  1498. if ((tag == 0) || ((tag & 7) == 4)) {
  1499. CHK_(ptr);
  1500. ctx->SetLastTag(tag);
  1501. goto message_done;
  1502. }
  1503. ptr = UnknownFieldParse(
  1504. tag,
  1505. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1506. ptr, ctx);
  1507. CHK_(ptr != nullptr);
  1508. } // while
  1509. message_done:
  1510. return ptr;
  1511. failure:
  1512. ptr = nullptr;
  1513. goto message_done;
  1514. #undef CHK_
  1515. }
  1516. uint8_t* SwitchDriver::_InternalSerialize(
  1517. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1518. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SwitchDriver)
  1519. uint32_t cached_has_bits = 0;
  1520. (void) cached_has_bits;
  1521. // int32 peer = 1;
  1522. if (this->_internal_peer() != 0) {
  1523. target = stream->EnsureSpace(target);
  1524. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1525. }
  1526. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1527. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1528. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1529. }
  1530. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SwitchDriver)
  1531. return target;
  1532. }
  1533. size_t SwitchDriver::ByteSizeLong() const {
  1534. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SwitchDriver)
  1535. size_t total_size = 0;
  1536. uint32_t cached_has_bits = 0;
  1537. // Prevent compiler warnings about cached_has_bits being unused
  1538. (void) cached_has_bits;
  1539. // int32 peer = 1;
  1540. if (this->_internal_peer() != 0) {
  1541. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1542. }
  1543. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1544. }
  1545. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SwitchDriver::_class_data_ = {
  1546. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1547. SwitchDriver::MergeImpl
  1548. };
  1549. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SwitchDriver::GetClassData() const { return &_class_data_; }
  1550. void SwitchDriver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1551. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1552. static_cast<SwitchDriver *>(to)->MergeFrom(
  1553. static_cast<const SwitchDriver &>(from));
  1554. }
  1555. void SwitchDriver::MergeFrom(const SwitchDriver& from) {
  1556. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SwitchDriver)
  1557. GOOGLE_DCHECK_NE(&from, this);
  1558. uint32_t cached_has_bits = 0;
  1559. (void) cached_has_bits;
  1560. if (from._internal_peer() != 0) {
  1561. _internal_set_peer(from._internal_peer());
  1562. }
  1563. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1564. }
  1565. void SwitchDriver::CopyFrom(const SwitchDriver& from) {
  1566. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SwitchDriver)
  1567. if (&from == this) return;
  1568. Clear();
  1569. MergeFrom(from);
  1570. }
  1571. bool SwitchDriver::IsInitialized() const {
  1572. return true;
  1573. }
  1574. void SwitchDriver::InternalSwap(SwitchDriver* other) {
  1575. using std::swap;
  1576. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1577. swap(peer_, other->peer_);
  1578. }
  1579. ::PROTOBUF_NAMESPACE_ID::Metadata SwitchDriver::GetMetadata() const {
  1580. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1581. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1582. file_level_metadata_protocol_2eproto[0]);
  1583. }
  1584. // ===================================================================
  1585. class NDTPos::_Internal {
  1586. public:
  1587. };
  1588. NDTPos::NDTPos(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1589. bool is_message_owned)
  1590. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1591. SharedCtor();
  1592. if (!is_message_owned) {
  1593. RegisterArenaDtor(arena);
  1594. }
  1595. // @@protoc_insertion_point(arena_constructor:RemoNet.NDTPos)
  1596. }
  1597. NDTPos::NDTPos(const NDTPos& from)
  1598. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1599. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1600. ::memcpy(&x_, &from.x_,
  1601. static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1602. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1603. // @@protoc_insertion_point(copy_constructor:RemoNet.NDTPos)
  1604. }
  1605. inline void NDTPos::SharedCtor() {
  1606. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1607. reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
  1608. 0, static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1609. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1610. }
  1611. NDTPos::~NDTPos() {
  1612. // @@protoc_insertion_point(destructor:RemoNet.NDTPos)
  1613. if (GetArenaForAllocation() != nullptr) return;
  1614. SharedDtor();
  1615. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1616. }
  1617. inline void NDTPos::SharedDtor() {
  1618. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1619. }
  1620. void NDTPos::ArenaDtor(void* object) {
  1621. NDTPos* _this = reinterpret_cast< NDTPos* >(object);
  1622. (void)_this;
  1623. }
  1624. void NDTPos::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1625. }
  1626. void NDTPos::SetCachedSize(int size) const {
  1627. _cached_size_.Set(size);
  1628. }
  1629. void NDTPos::Clear() {
  1630. // @@protoc_insertion_point(message_clear_start:RemoNet.NDTPos)
  1631. uint32_t cached_has_bits = 0;
  1632. // Prevent compiler warnings about cached_has_bits being unused
  1633. (void) cached_has_bits;
  1634. ::memset(&x_, 0, static_cast<size_t>(
  1635. reinterpret_cast<char*>(&rw_) -
  1636. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1637. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1638. }
  1639. const char* NDTPos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1640. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1641. while (!ctx->Done(&ptr)) {
  1642. uint32_t tag;
  1643. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1644. switch (tag >> 3) {
  1645. // float x = 1;
  1646. case 1:
  1647. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  1648. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1649. ptr += sizeof(float);
  1650. } else
  1651. goto handle_unusual;
  1652. continue;
  1653. // float y = 2;
  1654. case 2:
  1655. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  1656. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1657. ptr += sizeof(float);
  1658. } else
  1659. goto handle_unusual;
  1660. continue;
  1661. // float z = 3;
  1662. case 3:
  1663. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
  1664. z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1665. ptr += sizeof(float);
  1666. } else
  1667. goto handle_unusual;
  1668. continue;
  1669. // float rx = 4;
  1670. case 4:
  1671. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  1672. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1673. ptr += sizeof(float);
  1674. } else
  1675. goto handle_unusual;
  1676. continue;
  1677. // float ry = 5;
  1678. case 5:
  1679. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  1680. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1681. ptr += sizeof(float);
  1682. } else
  1683. goto handle_unusual;
  1684. continue;
  1685. // float rz = 6;
  1686. case 6:
  1687. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
  1688. rz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1689. ptr += sizeof(float);
  1690. } else
  1691. goto handle_unusual;
  1692. continue;
  1693. // float rw = 7;
  1694. case 7:
  1695. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
  1696. rw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1697. ptr += sizeof(float);
  1698. } else
  1699. goto handle_unusual;
  1700. continue;
  1701. default:
  1702. goto handle_unusual;
  1703. } // switch
  1704. handle_unusual:
  1705. if ((tag == 0) || ((tag & 7) == 4)) {
  1706. CHK_(ptr);
  1707. ctx->SetLastTag(tag);
  1708. goto message_done;
  1709. }
  1710. ptr = UnknownFieldParse(
  1711. tag,
  1712. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1713. ptr, ctx);
  1714. CHK_(ptr != nullptr);
  1715. } // while
  1716. message_done:
  1717. return ptr;
  1718. failure:
  1719. ptr = nullptr;
  1720. goto message_done;
  1721. #undef CHK_
  1722. }
  1723. uint8_t* NDTPos::_InternalSerialize(
  1724. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1725. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.NDTPos)
  1726. uint32_t cached_has_bits = 0;
  1727. (void) cached_has_bits;
  1728. // float x = 1;
  1729. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1730. float tmp_x = this->_internal_x();
  1731. uint32_t raw_x;
  1732. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1733. if (raw_x != 0) {
  1734. target = stream->EnsureSpace(target);
  1735. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1736. }
  1737. // float y = 2;
  1738. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1739. float tmp_y = this->_internal_y();
  1740. uint32_t raw_y;
  1741. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1742. if (raw_y != 0) {
  1743. target = stream->EnsureSpace(target);
  1744. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1745. }
  1746. // float z = 3;
  1747. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1748. float tmp_z = this->_internal_z();
  1749. uint32_t raw_z;
  1750. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1751. if (raw_z != 0) {
  1752. target = stream->EnsureSpace(target);
  1753. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target);
  1754. }
  1755. // float rx = 4;
  1756. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1757. float tmp_rx = this->_internal_rx();
  1758. uint32_t raw_rx;
  1759. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1760. if (raw_rx != 0) {
  1761. target = stream->EnsureSpace(target);
  1762. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_rx(), target);
  1763. }
  1764. // float ry = 5;
  1765. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1766. float tmp_ry = this->_internal_ry();
  1767. uint32_t raw_ry;
  1768. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1769. if (raw_ry != 0) {
  1770. target = stream->EnsureSpace(target);
  1771. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_ry(), target);
  1772. }
  1773. // float rz = 6;
  1774. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1775. float tmp_rz = this->_internal_rz();
  1776. uint32_t raw_rz;
  1777. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1778. if (raw_rz != 0) {
  1779. target = stream->EnsureSpace(target);
  1780. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_rz(), target);
  1781. }
  1782. // float rw = 7;
  1783. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1784. float tmp_rw = this->_internal_rw();
  1785. uint32_t raw_rw;
  1786. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1787. if (raw_rw != 0) {
  1788. target = stream->EnsureSpace(target);
  1789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_rw(), target);
  1790. }
  1791. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1792. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1793. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1794. }
  1795. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.NDTPos)
  1796. return target;
  1797. }
  1798. size_t NDTPos::ByteSizeLong() const {
  1799. // @@protoc_insertion_point(message_byte_size_start:RemoNet.NDTPos)
  1800. size_t total_size = 0;
  1801. uint32_t cached_has_bits = 0;
  1802. // Prevent compiler warnings about cached_has_bits being unused
  1803. (void) cached_has_bits;
  1804. // float x = 1;
  1805. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1806. float tmp_x = this->_internal_x();
  1807. uint32_t raw_x;
  1808. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1809. if (raw_x != 0) {
  1810. total_size += 1 + 4;
  1811. }
  1812. // float y = 2;
  1813. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1814. float tmp_y = this->_internal_y();
  1815. uint32_t raw_y;
  1816. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1817. if (raw_y != 0) {
  1818. total_size += 1 + 4;
  1819. }
  1820. // float z = 3;
  1821. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1822. float tmp_z = this->_internal_z();
  1823. uint32_t raw_z;
  1824. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1825. if (raw_z != 0) {
  1826. total_size += 1 + 4;
  1827. }
  1828. // float rx = 4;
  1829. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1830. float tmp_rx = this->_internal_rx();
  1831. uint32_t raw_rx;
  1832. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1833. if (raw_rx != 0) {
  1834. total_size += 1 + 4;
  1835. }
  1836. // float ry = 5;
  1837. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1838. float tmp_ry = this->_internal_ry();
  1839. uint32_t raw_ry;
  1840. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1841. if (raw_ry != 0) {
  1842. total_size += 1 + 4;
  1843. }
  1844. // float rz = 6;
  1845. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1846. float tmp_rz = this->_internal_rz();
  1847. uint32_t raw_rz;
  1848. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1849. if (raw_rz != 0) {
  1850. total_size += 1 + 4;
  1851. }
  1852. // float rw = 7;
  1853. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1854. float tmp_rw = this->_internal_rw();
  1855. uint32_t raw_rw;
  1856. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1857. if (raw_rw != 0) {
  1858. total_size += 1 + 4;
  1859. }
  1860. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1861. }
  1862. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NDTPos::_class_data_ = {
  1863. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1864. NDTPos::MergeImpl
  1865. };
  1866. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NDTPos::GetClassData() const { return &_class_data_; }
  1867. void NDTPos::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1868. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1869. static_cast<NDTPos *>(to)->MergeFrom(
  1870. static_cast<const NDTPos &>(from));
  1871. }
  1872. void NDTPos::MergeFrom(const NDTPos& from) {
  1873. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.NDTPos)
  1874. GOOGLE_DCHECK_NE(&from, this);
  1875. uint32_t cached_has_bits = 0;
  1876. (void) cached_has_bits;
  1877. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1878. float tmp_x = from._internal_x();
  1879. uint32_t raw_x;
  1880. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1881. if (raw_x != 0) {
  1882. _internal_set_x(from._internal_x());
  1883. }
  1884. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1885. float tmp_y = from._internal_y();
  1886. uint32_t raw_y;
  1887. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1888. if (raw_y != 0) {
  1889. _internal_set_y(from._internal_y());
  1890. }
  1891. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1892. float tmp_z = from._internal_z();
  1893. uint32_t raw_z;
  1894. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1895. if (raw_z != 0) {
  1896. _internal_set_z(from._internal_z());
  1897. }
  1898. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1899. float tmp_rx = from._internal_rx();
  1900. uint32_t raw_rx;
  1901. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1902. if (raw_rx != 0) {
  1903. _internal_set_rx(from._internal_rx());
  1904. }
  1905. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1906. float tmp_ry = from._internal_ry();
  1907. uint32_t raw_ry;
  1908. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1909. if (raw_ry != 0) {
  1910. _internal_set_ry(from._internal_ry());
  1911. }
  1912. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1913. float tmp_rz = from._internal_rz();
  1914. uint32_t raw_rz;
  1915. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1916. if (raw_rz != 0) {
  1917. _internal_set_rz(from._internal_rz());
  1918. }
  1919. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1920. float tmp_rw = from._internal_rw();
  1921. uint32_t raw_rw;
  1922. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1923. if (raw_rw != 0) {
  1924. _internal_set_rw(from._internal_rw());
  1925. }
  1926. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1927. }
  1928. void NDTPos::CopyFrom(const NDTPos& from) {
  1929. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.NDTPos)
  1930. if (&from == this) return;
  1931. Clear();
  1932. MergeFrom(from);
  1933. }
  1934. bool NDTPos::IsInitialized() const {
  1935. return true;
  1936. }
  1937. void NDTPos::InternalSwap(NDTPos* other) {
  1938. using std::swap;
  1939. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1940. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1941. PROTOBUF_FIELD_OFFSET(NDTPos, rw_)
  1942. + sizeof(NDTPos::rw_)
  1943. - PROTOBUF_FIELD_OFFSET(NDTPos, x_)>(
  1944. reinterpret_cast<char*>(&x_),
  1945. reinterpret_cast<char*>(&other->x_));
  1946. }
  1947. ::PROTOBUF_NAMESPACE_ID::Metadata NDTPos::GetMetadata() const {
  1948. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1949. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1950. file_level_metadata_protocol_2eproto[1]);
  1951. }
  1952. // ===================================================================
  1953. class CSMoveBegin::_Internal {
  1954. public:
  1955. };
  1956. CSMoveBegin::CSMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1957. bool is_message_owned)
  1958. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1959. SharedCtor();
  1960. if (!is_message_owned) {
  1961. RegisterArenaDtor(arena);
  1962. }
  1963. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveBegin)
  1964. }
  1965. CSMoveBegin::CSMoveBegin(const CSMoveBegin& from)
  1966. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1967. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1968. ::memcpy(&peer_, &from.peer_,
  1969. static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1970. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1971. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveBegin)
  1972. }
  1973. inline void CSMoveBegin::SharedCtor() {
  1974. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1975. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  1976. 0, static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1977. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1978. }
  1979. CSMoveBegin::~CSMoveBegin() {
  1980. // @@protoc_insertion_point(destructor:RemoNet.CSMoveBegin)
  1981. if (GetArenaForAllocation() != nullptr) return;
  1982. SharedDtor();
  1983. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1984. }
  1985. inline void CSMoveBegin::SharedDtor() {
  1986. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1987. }
  1988. void CSMoveBegin::ArenaDtor(void* object) {
  1989. CSMoveBegin* _this = reinterpret_cast< CSMoveBegin* >(object);
  1990. (void)_this;
  1991. }
  1992. void CSMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1993. }
  1994. void CSMoveBegin::SetCachedSize(int size) const {
  1995. _cached_size_.Set(size);
  1996. }
  1997. void CSMoveBegin::Clear() {
  1998. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveBegin)
  1999. uint32_t cached_has_bits = 0;
  2000. // Prevent compiler warnings about cached_has_bits being unused
  2001. (void) cached_has_bits;
  2002. ::memset(&peer_, 0, static_cast<size_t>(
  2003. reinterpret_cast<char*>(&no_) -
  2004. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2005. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2006. }
  2007. const char* CSMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2008. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2009. while (!ctx->Done(&ptr)) {
  2010. uint32_t tag;
  2011. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2012. switch (tag >> 3) {
  2013. // int32 peer = 1;
  2014. case 1:
  2015. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2016. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2017. CHK_(ptr);
  2018. } else
  2019. goto handle_unusual;
  2020. continue;
  2021. // int32 area = 2;
  2022. case 2:
  2023. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2024. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2025. CHK_(ptr);
  2026. } else
  2027. goto handle_unusual;
  2028. continue;
  2029. // int32 no = 3;
  2030. case 3:
  2031. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2032. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2033. CHK_(ptr);
  2034. } else
  2035. goto handle_unusual;
  2036. continue;
  2037. default:
  2038. goto handle_unusual;
  2039. } // switch
  2040. handle_unusual:
  2041. if ((tag == 0) || ((tag & 7) == 4)) {
  2042. CHK_(ptr);
  2043. ctx->SetLastTag(tag);
  2044. goto message_done;
  2045. }
  2046. ptr = UnknownFieldParse(
  2047. tag,
  2048. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2049. ptr, ctx);
  2050. CHK_(ptr != nullptr);
  2051. } // while
  2052. message_done:
  2053. return ptr;
  2054. failure:
  2055. ptr = nullptr;
  2056. goto message_done;
  2057. #undef CHK_
  2058. }
  2059. uint8_t* CSMoveBegin::_InternalSerialize(
  2060. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2061. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveBegin)
  2062. uint32_t cached_has_bits = 0;
  2063. (void) cached_has_bits;
  2064. // int32 peer = 1;
  2065. if (this->_internal_peer() != 0) {
  2066. target = stream->EnsureSpace(target);
  2067. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  2068. }
  2069. // int32 area = 2;
  2070. if (this->_internal_area() != 0) {
  2071. target = stream->EnsureSpace(target);
  2072. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2073. }
  2074. // int32 no = 3;
  2075. if (this->_internal_no() != 0) {
  2076. target = stream->EnsureSpace(target);
  2077. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2078. }
  2079. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2080. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2081. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2082. }
  2083. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveBegin)
  2084. return target;
  2085. }
  2086. size_t CSMoveBegin::ByteSizeLong() const {
  2087. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveBegin)
  2088. size_t total_size = 0;
  2089. uint32_t cached_has_bits = 0;
  2090. // Prevent compiler warnings about cached_has_bits being unused
  2091. (void) cached_has_bits;
  2092. // int32 peer = 1;
  2093. if (this->_internal_peer() != 0) {
  2094. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2095. }
  2096. // int32 area = 2;
  2097. if (this->_internal_area() != 0) {
  2098. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2099. }
  2100. // int32 no = 3;
  2101. if (this->_internal_no() != 0) {
  2102. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2103. }
  2104. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2105. }
  2106. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveBegin::_class_data_ = {
  2107. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2108. CSMoveBegin::MergeImpl
  2109. };
  2110. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveBegin::GetClassData() const { return &_class_data_; }
  2111. void CSMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2112. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2113. static_cast<CSMoveBegin *>(to)->MergeFrom(
  2114. static_cast<const CSMoveBegin &>(from));
  2115. }
  2116. void CSMoveBegin::MergeFrom(const CSMoveBegin& from) {
  2117. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveBegin)
  2118. GOOGLE_DCHECK_NE(&from, this);
  2119. uint32_t cached_has_bits = 0;
  2120. (void) cached_has_bits;
  2121. if (from._internal_peer() != 0) {
  2122. _internal_set_peer(from._internal_peer());
  2123. }
  2124. if (from._internal_area() != 0) {
  2125. _internal_set_area(from._internal_area());
  2126. }
  2127. if (from._internal_no() != 0) {
  2128. _internal_set_no(from._internal_no());
  2129. }
  2130. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2131. }
  2132. void CSMoveBegin::CopyFrom(const CSMoveBegin& from) {
  2133. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveBegin)
  2134. if (&from == this) return;
  2135. Clear();
  2136. MergeFrom(from);
  2137. }
  2138. bool CSMoveBegin::IsInitialized() const {
  2139. return true;
  2140. }
  2141. void CSMoveBegin::InternalSwap(CSMoveBegin* other) {
  2142. using std::swap;
  2143. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2144. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2145. PROTOBUF_FIELD_OFFSET(CSMoveBegin, no_)
  2146. + sizeof(CSMoveBegin::no_)
  2147. - PROTOBUF_FIELD_OFFSET(CSMoveBegin, peer_)>(
  2148. reinterpret_cast<char*>(&peer_),
  2149. reinterpret_cast<char*>(&other->peer_));
  2150. }
  2151. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveBegin::GetMetadata() const {
  2152. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2153. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2154. file_level_metadata_protocol_2eproto[2]);
  2155. }
  2156. // ===================================================================
  2157. class MoveRet::_Internal {
  2158. public:
  2159. };
  2160. MoveRet::MoveRet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2161. bool is_message_owned)
  2162. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2163. SharedCtor();
  2164. if (!is_message_owned) {
  2165. RegisterArenaDtor(arena);
  2166. }
  2167. // @@protoc_insertion_point(arena_constructor:RemoNet.MoveRet)
  2168. }
  2169. MoveRet::MoveRet(const MoveRet& from)
  2170. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2171. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2172. ::memcpy(&desc_, &from.desc_,
  2173. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2174. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2175. // @@protoc_insertion_point(copy_constructor:RemoNet.MoveRet)
  2176. }
  2177. inline void MoveRet::SharedCtor() {
  2178. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2179. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2180. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2181. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2182. }
  2183. MoveRet::~MoveRet() {
  2184. // @@protoc_insertion_point(destructor:RemoNet.MoveRet)
  2185. if (GetArenaForAllocation() != nullptr) return;
  2186. SharedDtor();
  2187. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2188. }
  2189. inline void MoveRet::SharedDtor() {
  2190. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2191. }
  2192. void MoveRet::ArenaDtor(void* object) {
  2193. MoveRet* _this = reinterpret_cast< MoveRet* >(object);
  2194. (void)_this;
  2195. }
  2196. void MoveRet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2197. }
  2198. void MoveRet::SetCachedSize(int size) const {
  2199. _cached_size_.Set(size);
  2200. }
  2201. void MoveRet::Clear() {
  2202. // @@protoc_insertion_point(message_clear_start:RemoNet.MoveRet)
  2203. uint32_t cached_has_bits = 0;
  2204. // Prevent compiler warnings about cached_has_bits being unused
  2205. (void) cached_has_bits;
  2206. ::memset(&desc_, 0, static_cast<size_t>(
  2207. reinterpret_cast<char*>(&peer_) -
  2208. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2209. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2210. }
  2211. const char* MoveRet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2212. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2213. while (!ctx->Done(&ptr)) {
  2214. uint32_t tag;
  2215. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2216. switch (tag >> 3) {
  2217. // .RemoNet.MoveDesc desc = 1;
  2218. case 1:
  2219. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2220. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2221. CHK_(ptr);
  2222. _internal_set_desc(static_cast<::RemoNet::MoveDesc>(val));
  2223. } else
  2224. goto handle_unusual;
  2225. continue;
  2226. // int32 peer = 2;
  2227. case 2:
  2228. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2229. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2230. CHK_(ptr);
  2231. } else
  2232. goto handle_unusual;
  2233. continue;
  2234. default:
  2235. goto handle_unusual;
  2236. } // switch
  2237. handle_unusual:
  2238. if ((tag == 0) || ((tag & 7) == 4)) {
  2239. CHK_(ptr);
  2240. ctx->SetLastTag(tag);
  2241. goto message_done;
  2242. }
  2243. ptr = UnknownFieldParse(
  2244. tag,
  2245. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2246. ptr, ctx);
  2247. CHK_(ptr != nullptr);
  2248. } // while
  2249. message_done:
  2250. return ptr;
  2251. failure:
  2252. ptr = nullptr;
  2253. goto message_done;
  2254. #undef CHK_
  2255. }
  2256. uint8_t* MoveRet::_InternalSerialize(
  2257. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2258. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.MoveRet)
  2259. uint32_t cached_has_bits = 0;
  2260. (void) cached_has_bits;
  2261. // .RemoNet.MoveDesc desc = 1;
  2262. if (this->_internal_desc() != 0) {
  2263. target = stream->EnsureSpace(target);
  2264. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2265. 1, this->_internal_desc(), target);
  2266. }
  2267. // int32 peer = 2;
  2268. if (this->_internal_peer() != 0) {
  2269. target = stream->EnsureSpace(target);
  2270. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2271. }
  2272. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2274. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2275. }
  2276. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.MoveRet)
  2277. return target;
  2278. }
  2279. size_t MoveRet::ByteSizeLong() const {
  2280. // @@protoc_insertion_point(message_byte_size_start:RemoNet.MoveRet)
  2281. size_t total_size = 0;
  2282. uint32_t cached_has_bits = 0;
  2283. // Prevent compiler warnings about cached_has_bits being unused
  2284. (void) cached_has_bits;
  2285. // .RemoNet.MoveDesc desc = 1;
  2286. if (this->_internal_desc() != 0) {
  2287. total_size += 1 +
  2288. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2289. }
  2290. // int32 peer = 2;
  2291. if (this->_internal_peer() != 0) {
  2292. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2293. }
  2294. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2295. }
  2296. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRet::_class_data_ = {
  2297. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2298. MoveRet::MergeImpl
  2299. };
  2300. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRet::GetClassData() const { return &_class_data_; }
  2301. void MoveRet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2302. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2303. static_cast<MoveRet *>(to)->MergeFrom(
  2304. static_cast<const MoveRet &>(from));
  2305. }
  2306. void MoveRet::MergeFrom(const MoveRet& from) {
  2307. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.MoveRet)
  2308. GOOGLE_DCHECK_NE(&from, this);
  2309. uint32_t cached_has_bits = 0;
  2310. (void) cached_has_bits;
  2311. if (from._internal_desc() != 0) {
  2312. _internal_set_desc(from._internal_desc());
  2313. }
  2314. if (from._internal_peer() != 0) {
  2315. _internal_set_peer(from._internal_peer());
  2316. }
  2317. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2318. }
  2319. void MoveRet::CopyFrom(const MoveRet& from) {
  2320. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.MoveRet)
  2321. if (&from == this) return;
  2322. Clear();
  2323. MergeFrom(from);
  2324. }
  2325. bool MoveRet::IsInitialized() const {
  2326. return true;
  2327. }
  2328. void MoveRet::InternalSwap(MoveRet* other) {
  2329. using std::swap;
  2330. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2331. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2332. PROTOBUF_FIELD_OFFSET(MoveRet, peer_)
  2333. + sizeof(MoveRet::peer_)
  2334. - PROTOBUF_FIELD_OFFSET(MoveRet, desc_)>(
  2335. reinterpret_cast<char*>(&desc_),
  2336. reinterpret_cast<char*>(&other->desc_));
  2337. }
  2338. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRet::GetMetadata() const {
  2339. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2340. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2341. file_level_metadata_protocol_2eproto[3]);
  2342. }
  2343. // ===================================================================
  2344. class CSMoveEnd::_Internal {
  2345. public:
  2346. };
  2347. CSMoveEnd::CSMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2348. bool is_message_owned)
  2349. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2350. SharedCtor();
  2351. if (!is_message_owned) {
  2352. RegisterArenaDtor(arena);
  2353. }
  2354. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveEnd)
  2355. }
  2356. CSMoveEnd::CSMoveEnd(const CSMoveEnd& from)
  2357. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2358. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2359. ::memcpy(&area_, &from.area_,
  2360. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2361. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2362. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveEnd)
  2363. }
  2364. inline void CSMoveEnd::SharedCtor() {
  2365. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2366. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2367. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2368. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2369. }
  2370. CSMoveEnd::~CSMoveEnd() {
  2371. // @@protoc_insertion_point(destructor:RemoNet.CSMoveEnd)
  2372. if (GetArenaForAllocation() != nullptr) return;
  2373. SharedDtor();
  2374. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2375. }
  2376. inline void CSMoveEnd::SharedDtor() {
  2377. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2378. }
  2379. void CSMoveEnd::ArenaDtor(void* object) {
  2380. CSMoveEnd* _this = reinterpret_cast< CSMoveEnd* >(object);
  2381. (void)_this;
  2382. }
  2383. void CSMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2384. }
  2385. void CSMoveEnd::SetCachedSize(int size) const {
  2386. _cached_size_.Set(size);
  2387. }
  2388. void CSMoveEnd::Clear() {
  2389. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveEnd)
  2390. uint32_t cached_has_bits = 0;
  2391. // Prevent compiler warnings about cached_has_bits being unused
  2392. (void) cached_has_bits;
  2393. ::memset(&area_, 0, static_cast<size_t>(
  2394. reinterpret_cast<char*>(&uid_) -
  2395. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2396. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2397. }
  2398. const char* CSMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2399. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2400. while (!ctx->Done(&ptr)) {
  2401. uint32_t tag;
  2402. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2403. switch (tag >> 3) {
  2404. // int32 area = 1;
  2405. case 1:
  2406. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2407. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2408. CHK_(ptr);
  2409. } else
  2410. goto handle_unusual;
  2411. continue;
  2412. // int32 no = 2;
  2413. case 2:
  2414. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2415. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2416. CHK_(ptr);
  2417. } else
  2418. goto handle_unusual;
  2419. continue;
  2420. // int32 uid = 3;
  2421. case 3:
  2422. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2423. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2424. CHK_(ptr);
  2425. } else
  2426. goto handle_unusual;
  2427. continue;
  2428. default:
  2429. goto handle_unusual;
  2430. } // switch
  2431. handle_unusual:
  2432. if ((tag == 0) || ((tag & 7) == 4)) {
  2433. CHK_(ptr);
  2434. ctx->SetLastTag(tag);
  2435. goto message_done;
  2436. }
  2437. ptr = UnknownFieldParse(
  2438. tag,
  2439. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2440. ptr, ctx);
  2441. CHK_(ptr != nullptr);
  2442. } // while
  2443. message_done:
  2444. return ptr;
  2445. failure:
  2446. ptr = nullptr;
  2447. goto message_done;
  2448. #undef CHK_
  2449. }
  2450. uint8_t* CSMoveEnd::_InternalSerialize(
  2451. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2452. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveEnd)
  2453. uint32_t cached_has_bits = 0;
  2454. (void) cached_has_bits;
  2455. // int32 area = 1;
  2456. if (this->_internal_area() != 0) {
  2457. target = stream->EnsureSpace(target);
  2458. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2459. }
  2460. // int32 no = 2;
  2461. if (this->_internal_no() != 0) {
  2462. target = stream->EnsureSpace(target);
  2463. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2464. }
  2465. // int32 uid = 3;
  2466. if (this->_internal_uid() != 0) {
  2467. target = stream->EnsureSpace(target);
  2468. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2469. }
  2470. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2471. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2472. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2473. }
  2474. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveEnd)
  2475. return target;
  2476. }
  2477. size_t CSMoveEnd::ByteSizeLong() const {
  2478. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveEnd)
  2479. size_t total_size = 0;
  2480. uint32_t cached_has_bits = 0;
  2481. // Prevent compiler warnings about cached_has_bits being unused
  2482. (void) cached_has_bits;
  2483. // int32 area = 1;
  2484. if (this->_internal_area() != 0) {
  2485. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2486. }
  2487. // int32 no = 2;
  2488. if (this->_internal_no() != 0) {
  2489. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2490. }
  2491. // int32 uid = 3;
  2492. if (this->_internal_uid() != 0) {
  2493. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2494. }
  2495. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2496. }
  2497. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveEnd::_class_data_ = {
  2498. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2499. CSMoveEnd::MergeImpl
  2500. };
  2501. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveEnd::GetClassData() const { return &_class_data_; }
  2502. void CSMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2503. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2504. static_cast<CSMoveEnd *>(to)->MergeFrom(
  2505. static_cast<const CSMoveEnd &>(from));
  2506. }
  2507. void CSMoveEnd::MergeFrom(const CSMoveEnd& from) {
  2508. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveEnd)
  2509. GOOGLE_DCHECK_NE(&from, this);
  2510. uint32_t cached_has_bits = 0;
  2511. (void) cached_has_bits;
  2512. if (from._internal_area() != 0) {
  2513. _internal_set_area(from._internal_area());
  2514. }
  2515. if (from._internal_no() != 0) {
  2516. _internal_set_no(from._internal_no());
  2517. }
  2518. if (from._internal_uid() != 0) {
  2519. _internal_set_uid(from._internal_uid());
  2520. }
  2521. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2522. }
  2523. void CSMoveEnd::CopyFrom(const CSMoveEnd& from) {
  2524. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveEnd)
  2525. if (&from == this) return;
  2526. Clear();
  2527. MergeFrom(from);
  2528. }
  2529. bool CSMoveEnd::IsInitialized() const {
  2530. return true;
  2531. }
  2532. void CSMoveEnd::InternalSwap(CSMoveEnd* other) {
  2533. using std::swap;
  2534. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2535. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2536. PROTOBUF_FIELD_OFFSET(CSMoveEnd, uid_)
  2537. + sizeof(CSMoveEnd::uid_)
  2538. - PROTOBUF_FIELD_OFFSET(CSMoveEnd, area_)>(
  2539. reinterpret_cast<char*>(&area_),
  2540. reinterpret_cast<char*>(&other->area_));
  2541. }
  2542. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveEnd::GetMetadata() const {
  2543. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2544. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2545. file_level_metadata_protocol_2eproto[4]);
  2546. }
  2547. // ===================================================================
  2548. class SCMoveBegin::_Internal {
  2549. public:
  2550. };
  2551. SCMoveBegin::SCMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2552. bool is_message_owned)
  2553. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2554. SharedCtor();
  2555. if (!is_message_owned) {
  2556. RegisterArenaDtor(arena);
  2557. }
  2558. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveBegin)
  2559. }
  2560. SCMoveBegin::SCMoveBegin(const SCMoveBegin& from)
  2561. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2562. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2563. ::memcpy(&uid_, &from.uid_,
  2564. static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2565. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2566. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveBegin)
  2567. }
  2568. inline void SCMoveBegin::SharedCtor() {
  2569. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2570. reinterpret_cast<char*>(&uid_) - reinterpret_cast<char*>(this)),
  2571. 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2572. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2573. }
  2574. SCMoveBegin::~SCMoveBegin() {
  2575. // @@protoc_insertion_point(destructor:RemoNet.SCMoveBegin)
  2576. if (GetArenaForAllocation() != nullptr) return;
  2577. SharedDtor();
  2578. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2579. }
  2580. inline void SCMoveBegin::SharedDtor() {
  2581. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2582. }
  2583. void SCMoveBegin::ArenaDtor(void* object) {
  2584. SCMoveBegin* _this = reinterpret_cast< SCMoveBegin* >(object);
  2585. (void)_this;
  2586. }
  2587. void SCMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2588. }
  2589. void SCMoveBegin::SetCachedSize(int size) const {
  2590. _cached_size_.Set(size);
  2591. }
  2592. void SCMoveBegin::Clear() {
  2593. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveBegin)
  2594. uint32_t cached_has_bits = 0;
  2595. // Prevent compiler warnings about cached_has_bits being unused
  2596. (void) cached_has_bits;
  2597. ::memset(&uid_, 0, static_cast<size_t>(
  2598. reinterpret_cast<char*>(&y_) -
  2599. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2600. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2601. }
  2602. const char* SCMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2603. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2604. while (!ctx->Done(&ptr)) {
  2605. uint32_t tag;
  2606. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2607. switch (tag >> 3) {
  2608. // int32 uid = 1;
  2609. case 1:
  2610. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2611. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2612. CHK_(ptr);
  2613. } else
  2614. goto handle_unusual;
  2615. continue;
  2616. // int32 area = 2;
  2617. case 2:
  2618. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2619. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2620. CHK_(ptr);
  2621. } else
  2622. goto handle_unusual;
  2623. continue;
  2624. // int32 no = 3;
  2625. case 3:
  2626. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2627. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2628. CHK_(ptr);
  2629. } else
  2630. goto handle_unusual;
  2631. continue;
  2632. // float x = 4;
  2633. case 4:
  2634. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  2635. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2636. ptr += sizeof(float);
  2637. } else
  2638. goto handle_unusual;
  2639. continue;
  2640. // float y = 5;
  2641. case 5:
  2642. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  2643. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2644. ptr += sizeof(float);
  2645. } else
  2646. goto handle_unusual;
  2647. continue;
  2648. default:
  2649. goto handle_unusual;
  2650. } // switch
  2651. handle_unusual:
  2652. if ((tag == 0) || ((tag & 7) == 4)) {
  2653. CHK_(ptr);
  2654. ctx->SetLastTag(tag);
  2655. goto message_done;
  2656. }
  2657. ptr = UnknownFieldParse(
  2658. tag,
  2659. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2660. ptr, ctx);
  2661. CHK_(ptr != nullptr);
  2662. } // while
  2663. message_done:
  2664. return ptr;
  2665. failure:
  2666. ptr = nullptr;
  2667. goto message_done;
  2668. #undef CHK_
  2669. }
  2670. uint8_t* SCMoveBegin::_InternalSerialize(
  2671. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2672. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveBegin)
  2673. uint32_t cached_has_bits = 0;
  2674. (void) cached_has_bits;
  2675. // int32 uid = 1;
  2676. if (this->_internal_uid() != 0) {
  2677. target = stream->EnsureSpace(target);
  2678. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_uid(), target);
  2679. }
  2680. // int32 area = 2;
  2681. if (this->_internal_area() != 0) {
  2682. target = stream->EnsureSpace(target);
  2683. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2684. }
  2685. // int32 no = 3;
  2686. if (this->_internal_no() != 0) {
  2687. target = stream->EnsureSpace(target);
  2688. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2689. }
  2690. // float x = 4;
  2691. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2692. float tmp_x = this->_internal_x();
  2693. uint32_t raw_x;
  2694. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2695. if (raw_x != 0) {
  2696. target = stream->EnsureSpace(target);
  2697. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_x(), target);
  2698. }
  2699. // float y = 5;
  2700. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2701. float tmp_y = this->_internal_y();
  2702. uint32_t raw_y;
  2703. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2704. if (raw_y != 0) {
  2705. target = stream->EnsureSpace(target);
  2706. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_y(), target);
  2707. }
  2708. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2709. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2710. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2711. }
  2712. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveBegin)
  2713. return target;
  2714. }
  2715. size_t SCMoveBegin::ByteSizeLong() const {
  2716. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveBegin)
  2717. size_t total_size = 0;
  2718. uint32_t cached_has_bits = 0;
  2719. // Prevent compiler warnings about cached_has_bits being unused
  2720. (void) cached_has_bits;
  2721. // int32 uid = 1;
  2722. if (this->_internal_uid() != 0) {
  2723. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2724. }
  2725. // int32 area = 2;
  2726. if (this->_internal_area() != 0) {
  2727. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2728. }
  2729. // int32 no = 3;
  2730. if (this->_internal_no() != 0) {
  2731. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2732. }
  2733. // float x = 4;
  2734. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2735. float tmp_x = this->_internal_x();
  2736. uint32_t raw_x;
  2737. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2738. if (raw_x != 0) {
  2739. total_size += 1 + 4;
  2740. }
  2741. // float y = 5;
  2742. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2743. float tmp_y = this->_internal_y();
  2744. uint32_t raw_y;
  2745. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2746. if (raw_y != 0) {
  2747. total_size += 1 + 4;
  2748. }
  2749. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2750. }
  2751. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveBegin::_class_data_ = {
  2752. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2753. SCMoveBegin::MergeImpl
  2754. };
  2755. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveBegin::GetClassData() const { return &_class_data_; }
  2756. void SCMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2757. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2758. static_cast<SCMoveBegin *>(to)->MergeFrom(
  2759. static_cast<const SCMoveBegin &>(from));
  2760. }
  2761. void SCMoveBegin::MergeFrom(const SCMoveBegin& from) {
  2762. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveBegin)
  2763. GOOGLE_DCHECK_NE(&from, this);
  2764. uint32_t cached_has_bits = 0;
  2765. (void) cached_has_bits;
  2766. if (from._internal_uid() != 0) {
  2767. _internal_set_uid(from._internal_uid());
  2768. }
  2769. if (from._internal_area() != 0) {
  2770. _internal_set_area(from._internal_area());
  2771. }
  2772. if (from._internal_no() != 0) {
  2773. _internal_set_no(from._internal_no());
  2774. }
  2775. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2776. float tmp_x = from._internal_x();
  2777. uint32_t raw_x;
  2778. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2779. if (raw_x != 0) {
  2780. _internal_set_x(from._internal_x());
  2781. }
  2782. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2783. float tmp_y = from._internal_y();
  2784. uint32_t raw_y;
  2785. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2786. if (raw_y != 0) {
  2787. _internal_set_y(from._internal_y());
  2788. }
  2789. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2790. }
  2791. void SCMoveBegin::CopyFrom(const SCMoveBegin& from) {
  2792. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveBegin)
  2793. if (&from == this) return;
  2794. Clear();
  2795. MergeFrom(from);
  2796. }
  2797. bool SCMoveBegin::IsInitialized() const {
  2798. return true;
  2799. }
  2800. void SCMoveBegin::InternalSwap(SCMoveBegin* other) {
  2801. using std::swap;
  2802. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2803. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2804. PROTOBUF_FIELD_OFFSET(SCMoveBegin, y_)
  2805. + sizeof(SCMoveBegin::y_)
  2806. - PROTOBUF_FIELD_OFFSET(SCMoveBegin, uid_)>(
  2807. reinterpret_cast<char*>(&uid_),
  2808. reinterpret_cast<char*>(&other->uid_));
  2809. }
  2810. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveBegin::GetMetadata() const {
  2811. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2812. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2813. file_level_metadata_protocol_2eproto[5]);
  2814. }
  2815. // ===================================================================
  2816. class SCMoveEnd::_Internal {
  2817. public:
  2818. };
  2819. SCMoveEnd::SCMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2820. bool is_message_owned)
  2821. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2822. SharedCtor();
  2823. if (!is_message_owned) {
  2824. RegisterArenaDtor(arena);
  2825. }
  2826. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveEnd)
  2827. }
  2828. SCMoveEnd::SCMoveEnd(const SCMoveEnd& from)
  2829. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2830. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2831. ::memcpy(&area_, &from.area_,
  2832. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2833. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2834. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveEnd)
  2835. }
  2836. inline void SCMoveEnd::SharedCtor() {
  2837. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2838. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2839. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2840. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2841. }
  2842. SCMoveEnd::~SCMoveEnd() {
  2843. // @@protoc_insertion_point(destructor:RemoNet.SCMoveEnd)
  2844. if (GetArenaForAllocation() != nullptr) return;
  2845. SharedDtor();
  2846. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2847. }
  2848. inline void SCMoveEnd::SharedDtor() {
  2849. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2850. }
  2851. void SCMoveEnd::ArenaDtor(void* object) {
  2852. SCMoveEnd* _this = reinterpret_cast< SCMoveEnd* >(object);
  2853. (void)_this;
  2854. }
  2855. void SCMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2856. }
  2857. void SCMoveEnd::SetCachedSize(int size) const {
  2858. _cached_size_.Set(size);
  2859. }
  2860. void SCMoveEnd::Clear() {
  2861. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveEnd)
  2862. uint32_t cached_has_bits = 0;
  2863. // Prevent compiler warnings about cached_has_bits being unused
  2864. (void) cached_has_bits;
  2865. ::memset(&area_, 0, static_cast<size_t>(
  2866. reinterpret_cast<char*>(&uid_) -
  2867. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2868. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2869. }
  2870. const char* SCMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2871. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2872. while (!ctx->Done(&ptr)) {
  2873. uint32_t tag;
  2874. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2875. switch (tag >> 3) {
  2876. // int32 area = 1;
  2877. case 1:
  2878. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2879. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2880. CHK_(ptr);
  2881. } else
  2882. goto handle_unusual;
  2883. continue;
  2884. // int32 no = 2;
  2885. case 2:
  2886. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2887. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2888. CHK_(ptr);
  2889. } else
  2890. goto handle_unusual;
  2891. continue;
  2892. // int32 uid = 3;
  2893. case 3:
  2894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2895. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2896. CHK_(ptr);
  2897. } else
  2898. goto handle_unusual;
  2899. continue;
  2900. default:
  2901. goto handle_unusual;
  2902. } // switch
  2903. handle_unusual:
  2904. if ((tag == 0) || ((tag & 7) == 4)) {
  2905. CHK_(ptr);
  2906. ctx->SetLastTag(tag);
  2907. goto message_done;
  2908. }
  2909. ptr = UnknownFieldParse(
  2910. tag,
  2911. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2912. ptr, ctx);
  2913. CHK_(ptr != nullptr);
  2914. } // while
  2915. message_done:
  2916. return ptr;
  2917. failure:
  2918. ptr = nullptr;
  2919. goto message_done;
  2920. #undef CHK_
  2921. }
  2922. uint8_t* SCMoveEnd::_InternalSerialize(
  2923. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2924. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveEnd)
  2925. uint32_t cached_has_bits = 0;
  2926. (void) cached_has_bits;
  2927. // int32 area = 1;
  2928. if (this->_internal_area() != 0) {
  2929. target = stream->EnsureSpace(target);
  2930. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2931. }
  2932. // int32 no = 2;
  2933. if (this->_internal_no() != 0) {
  2934. target = stream->EnsureSpace(target);
  2935. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2936. }
  2937. // int32 uid = 3;
  2938. if (this->_internal_uid() != 0) {
  2939. target = stream->EnsureSpace(target);
  2940. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2941. }
  2942. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2943. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2944. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2945. }
  2946. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveEnd)
  2947. return target;
  2948. }
  2949. size_t SCMoveEnd::ByteSizeLong() const {
  2950. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveEnd)
  2951. size_t total_size = 0;
  2952. uint32_t cached_has_bits = 0;
  2953. // Prevent compiler warnings about cached_has_bits being unused
  2954. (void) cached_has_bits;
  2955. // int32 area = 1;
  2956. if (this->_internal_area() != 0) {
  2957. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2958. }
  2959. // int32 no = 2;
  2960. if (this->_internal_no() != 0) {
  2961. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2962. }
  2963. // int32 uid = 3;
  2964. if (this->_internal_uid() != 0) {
  2965. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2966. }
  2967. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2968. }
  2969. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveEnd::_class_data_ = {
  2970. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2971. SCMoveEnd::MergeImpl
  2972. };
  2973. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveEnd::GetClassData() const { return &_class_data_; }
  2974. void SCMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2975. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2976. static_cast<SCMoveEnd *>(to)->MergeFrom(
  2977. static_cast<const SCMoveEnd &>(from));
  2978. }
  2979. void SCMoveEnd::MergeFrom(const SCMoveEnd& from) {
  2980. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveEnd)
  2981. GOOGLE_DCHECK_NE(&from, this);
  2982. uint32_t cached_has_bits = 0;
  2983. (void) cached_has_bits;
  2984. if (from._internal_area() != 0) {
  2985. _internal_set_area(from._internal_area());
  2986. }
  2987. if (from._internal_no() != 0) {
  2988. _internal_set_no(from._internal_no());
  2989. }
  2990. if (from._internal_uid() != 0) {
  2991. _internal_set_uid(from._internal_uid());
  2992. }
  2993. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2994. }
  2995. void SCMoveEnd::CopyFrom(const SCMoveEnd& from) {
  2996. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveEnd)
  2997. if (&from == this) return;
  2998. Clear();
  2999. MergeFrom(from);
  3000. }
  3001. bool SCMoveEnd::IsInitialized() const {
  3002. return true;
  3003. }
  3004. void SCMoveEnd::InternalSwap(SCMoveEnd* other) {
  3005. using std::swap;
  3006. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3007. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3008. PROTOBUF_FIELD_OFFSET(SCMoveEnd, uid_)
  3009. + sizeof(SCMoveEnd::uid_)
  3010. - PROTOBUF_FIELD_OFFSET(SCMoveEnd, area_)>(
  3011. reinterpret_cast<char*>(&area_),
  3012. reinterpret_cast<char*>(&other->area_));
  3013. }
  3014. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveEnd::GetMetadata() const {
  3015. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3016. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3017. file_level_metadata_protocol_2eproto[6]);
  3018. }
  3019. // ===================================================================
  3020. class CSAdd::_Internal {
  3021. public:
  3022. };
  3023. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3024. bool is_message_owned)
  3025. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3026. SharedCtor();
  3027. if (!is_message_owned) {
  3028. RegisterArenaDtor(arena);
  3029. }
  3030. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  3031. }
  3032. CSAdd::CSAdd(const CSAdd& from)
  3033. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3034. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3035. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3036. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3037. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3038. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3039. if (!from._internal_serial().empty()) {
  3040. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  3041. GetArenaForAllocation());
  3042. }
  3043. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3044. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3045. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3046. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3047. if (!from._internal_name().empty()) {
  3048. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3049. GetArenaForAllocation());
  3050. }
  3051. ::memcpy(&type_, &from.type_,
  3052. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3053. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3054. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  3055. }
  3056. inline void CSAdd::SharedCtor() {
  3057. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3058. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3059. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3060. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3061. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3062. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3063. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3064. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3065. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3066. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  3067. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3068. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3069. }
  3070. CSAdd::~CSAdd() {
  3071. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  3072. if (GetArenaForAllocation() != nullptr) return;
  3073. SharedDtor();
  3074. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3075. }
  3076. inline void CSAdd::SharedDtor() {
  3077. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3078. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3079. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3080. }
  3081. void CSAdd::ArenaDtor(void* object) {
  3082. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  3083. (void)_this;
  3084. }
  3085. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3086. }
  3087. void CSAdd::SetCachedSize(int size) const {
  3088. _cached_size_.Set(size);
  3089. }
  3090. void CSAdd::Clear() {
  3091. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  3092. uint32_t cached_has_bits = 0;
  3093. // Prevent compiler warnings about cached_has_bits being unused
  3094. (void) cached_has_bits;
  3095. serial_.ClearToEmpty();
  3096. name_.ClearToEmpty();
  3097. ::memset(&type_, 0, static_cast<size_t>(
  3098. reinterpret_cast<char*>(&car_) -
  3099. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3100. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3101. }
  3102. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3103. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3104. while (!ctx->Done(&ptr)) {
  3105. uint32_t tag;
  3106. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3107. switch (tag >> 3) {
  3108. // string serial = 1;
  3109. case 1:
  3110. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3111. auto str = _internal_mutable_serial();
  3112. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3113. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  3114. CHK_(ptr);
  3115. } else
  3116. goto handle_unusual;
  3117. continue;
  3118. // int32 type = 2;
  3119. case 2:
  3120. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3121. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3122. CHK_(ptr);
  3123. } else
  3124. goto handle_unusual;
  3125. continue;
  3126. // string name = 3;
  3127. case 3:
  3128. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3129. auto str = _internal_mutable_name();
  3130. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3131. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  3132. CHK_(ptr);
  3133. } else
  3134. goto handle_unusual;
  3135. continue;
  3136. // int32 car = 4;
  3137. case 4:
  3138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3139. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3140. CHK_(ptr);
  3141. } else
  3142. goto handle_unusual;
  3143. continue;
  3144. default:
  3145. goto handle_unusual;
  3146. } // switch
  3147. handle_unusual:
  3148. if ((tag == 0) || ((tag & 7) == 4)) {
  3149. CHK_(ptr);
  3150. ctx->SetLastTag(tag);
  3151. goto message_done;
  3152. }
  3153. ptr = UnknownFieldParse(
  3154. tag,
  3155. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3156. ptr, ctx);
  3157. CHK_(ptr != nullptr);
  3158. } // while
  3159. message_done:
  3160. return ptr;
  3161. failure:
  3162. ptr = nullptr;
  3163. goto message_done;
  3164. #undef CHK_
  3165. }
  3166. uint8_t* CSAdd::_InternalSerialize(
  3167. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3168. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  3169. uint32_t cached_has_bits = 0;
  3170. (void) cached_has_bits;
  3171. // string serial = 1;
  3172. if (!this->_internal_serial().empty()) {
  3173. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3174. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  3175. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3176. "RemoNet.CSAdd.serial");
  3177. target = stream->WriteStringMaybeAliased(
  3178. 1, this->_internal_serial(), target);
  3179. }
  3180. // int32 type = 2;
  3181. if (this->_internal_type() != 0) {
  3182. target = stream->EnsureSpace(target);
  3183. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  3184. }
  3185. // string name = 3;
  3186. if (!this->_internal_name().empty()) {
  3187. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3188. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3189. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3190. "RemoNet.CSAdd.name");
  3191. target = stream->WriteStringMaybeAliased(
  3192. 3, this->_internal_name(), target);
  3193. }
  3194. // int32 car = 4;
  3195. if (this->_internal_car() != 0) {
  3196. target = stream->EnsureSpace(target);
  3197. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3198. }
  3199. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3200. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3201. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3202. }
  3203. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  3204. return target;
  3205. }
  3206. size_t CSAdd::ByteSizeLong() const {
  3207. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  3208. size_t total_size = 0;
  3209. uint32_t cached_has_bits = 0;
  3210. // Prevent compiler warnings about cached_has_bits being unused
  3211. (void) cached_has_bits;
  3212. // string serial = 1;
  3213. if (!this->_internal_serial().empty()) {
  3214. total_size += 1 +
  3215. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3216. this->_internal_serial());
  3217. }
  3218. // string name = 3;
  3219. if (!this->_internal_name().empty()) {
  3220. total_size += 1 +
  3221. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3222. this->_internal_name());
  3223. }
  3224. // int32 type = 2;
  3225. if (this->_internal_type() != 0) {
  3226. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3227. }
  3228. // int32 car = 4;
  3229. if (this->_internal_car() != 0) {
  3230. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3231. }
  3232. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3233. }
  3234. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  3235. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3236. CSAdd::MergeImpl
  3237. };
  3238. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  3239. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3240. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3241. static_cast<CSAdd *>(to)->MergeFrom(
  3242. static_cast<const CSAdd &>(from));
  3243. }
  3244. void CSAdd::MergeFrom(const CSAdd& from) {
  3245. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  3246. GOOGLE_DCHECK_NE(&from, this);
  3247. uint32_t cached_has_bits = 0;
  3248. (void) cached_has_bits;
  3249. if (!from._internal_serial().empty()) {
  3250. _internal_set_serial(from._internal_serial());
  3251. }
  3252. if (!from._internal_name().empty()) {
  3253. _internal_set_name(from._internal_name());
  3254. }
  3255. if (from._internal_type() != 0) {
  3256. _internal_set_type(from._internal_type());
  3257. }
  3258. if (from._internal_car() != 0) {
  3259. _internal_set_car(from._internal_car());
  3260. }
  3261. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3262. }
  3263. void CSAdd::CopyFrom(const CSAdd& from) {
  3264. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  3265. if (&from == this) return;
  3266. Clear();
  3267. MergeFrom(from);
  3268. }
  3269. bool CSAdd::IsInitialized() const {
  3270. return true;
  3271. }
  3272. void CSAdd::InternalSwap(CSAdd* other) {
  3273. using std::swap;
  3274. auto* lhs_arena = GetArenaForAllocation();
  3275. auto* rhs_arena = other->GetArenaForAllocation();
  3276. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3277. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3278. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3279. &serial_, lhs_arena,
  3280. &other->serial_, rhs_arena
  3281. );
  3282. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3283. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3284. &name_, lhs_arena,
  3285. &other->name_, rhs_arena
  3286. );
  3287. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3288. PROTOBUF_FIELD_OFFSET(CSAdd, car_)
  3289. + sizeof(CSAdd::car_)
  3290. - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>(
  3291. reinterpret_cast<char*>(&type_),
  3292. reinterpret_cast<char*>(&other->type_));
  3293. }
  3294. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  3295. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3296. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3297. file_level_metadata_protocol_2eproto[7]);
  3298. }
  3299. // ===================================================================
  3300. class SCAdd::_Internal {
  3301. public:
  3302. };
  3303. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3304. bool is_message_owned)
  3305. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3306. SharedCtor();
  3307. if (!is_message_owned) {
  3308. RegisterArenaDtor(arena);
  3309. }
  3310. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  3311. }
  3312. SCAdd::SCAdd(const SCAdd& from)
  3313. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3314. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3315. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3316. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3317. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3318. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3319. if (!from._internal_name().empty()) {
  3320. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3321. GetArenaForAllocation());
  3322. }
  3323. ::memcpy(&ret_, &from.ret_,
  3324. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3325. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3326. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  3327. }
  3328. inline void SCAdd::SharedCtor() {
  3329. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3330. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3331. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3332. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3333. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3334. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  3335. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3336. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3337. }
  3338. SCAdd::~SCAdd() {
  3339. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  3340. if (GetArenaForAllocation() != nullptr) return;
  3341. SharedDtor();
  3342. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3343. }
  3344. inline void SCAdd::SharedDtor() {
  3345. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3346. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3347. }
  3348. void SCAdd::ArenaDtor(void* object) {
  3349. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  3350. (void)_this;
  3351. }
  3352. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3353. }
  3354. void SCAdd::SetCachedSize(int size) const {
  3355. _cached_size_.Set(size);
  3356. }
  3357. void SCAdd::Clear() {
  3358. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  3359. uint32_t cached_has_bits = 0;
  3360. // Prevent compiler warnings about cached_has_bits being unused
  3361. (void) cached_has_bits;
  3362. name_.ClearToEmpty();
  3363. ::memset(&ret_, 0, static_cast<size_t>(
  3364. reinterpret_cast<char*>(&car_) -
  3365. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3366. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3367. }
  3368. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3369. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3370. while (!ctx->Done(&ptr)) {
  3371. uint32_t tag;
  3372. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3373. switch (tag >> 3) {
  3374. // bool ret = 1;
  3375. case 1:
  3376. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3377. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3378. CHK_(ptr);
  3379. } else
  3380. goto handle_unusual;
  3381. continue;
  3382. // int32 uid = 2;
  3383. case 2:
  3384. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3385. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3386. CHK_(ptr);
  3387. } else
  3388. goto handle_unusual;
  3389. continue;
  3390. // string name = 3;
  3391. case 3:
  3392. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3393. auto str = _internal_mutable_name();
  3394. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3395. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  3396. CHK_(ptr);
  3397. } else
  3398. goto handle_unusual;
  3399. continue;
  3400. // int32 car = 4;
  3401. case 4:
  3402. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3403. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3404. CHK_(ptr);
  3405. } else
  3406. goto handle_unusual;
  3407. continue;
  3408. default:
  3409. goto handle_unusual;
  3410. } // switch
  3411. handle_unusual:
  3412. if ((tag == 0) || ((tag & 7) == 4)) {
  3413. CHK_(ptr);
  3414. ctx->SetLastTag(tag);
  3415. goto message_done;
  3416. }
  3417. ptr = UnknownFieldParse(
  3418. tag,
  3419. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3420. ptr, ctx);
  3421. CHK_(ptr != nullptr);
  3422. } // while
  3423. message_done:
  3424. return ptr;
  3425. failure:
  3426. ptr = nullptr;
  3427. goto message_done;
  3428. #undef CHK_
  3429. }
  3430. uint8_t* SCAdd::_InternalSerialize(
  3431. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3432. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  3433. uint32_t cached_has_bits = 0;
  3434. (void) cached_has_bits;
  3435. // bool ret = 1;
  3436. if (this->_internal_ret() != 0) {
  3437. target = stream->EnsureSpace(target);
  3438. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3439. }
  3440. // int32 uid = 2;
  3441. if (this->_internal_uid() != 0) {
  3442. target = stream->EnsureSpace(target);
  3443. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3444. }
  3445. // string name = 3;
  3446. if (!this->_internal_name().empty()) {
  3447. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3448. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3449. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3450. "RemoNet.SCAdd.name");
  3451. target = stream->WriteStringMaybeAliased(
  3452. 3, this->_internal_name(), target);
  3453. }
  3454. // int32 car = 4;
  3455. if (this->_internal_car() != 0) {
  3456. target = stream->EnsureSpace(target);
  3457. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3458. }
  3459. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3460. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3461. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3462. }
  3463. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  3464. return target;
  3465. }
  3466. size_t SCAdd::ByteSizeLong() const {
  3467. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  3468. size_t total_size = 0;
  3469. uint32_t cached_has_bits = 0;
  3470. // Prevent compiler warnings about cached_has_bits being unused
  3471. (void) cached_has_bits;
  3472. // string name = 3;
  3473. if (!this->_internal_name().empty()) {
  3474. total_size += 1 +
  3475. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3476. this->_internal_name());
  3477. }
  3478. // bool ret = 1;
  3479. if (this->_internal_ret() != 0) {
  3480. total_size += 1 + 1;
  3481. }
  3482. // int32 uid = 2;
  3483. if (this->_internal_uid() != 0) {
  3484. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3485. }
  3486. // int32 car = 4;
  3487. if (this->_internal_car() != 0) {
  3488. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3489. }
  3490. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3491. }
  3492. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  3493. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3494. SCAdd::MergeImpl
  3495. };
  3496. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  3497. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3498. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3499. static_cast<SCAdd *>(to)->MergeFrom(
  3500. static_cast<const SCAdd &>(from));
  3501. }
  3502. void SCAdd::MergeFrom(const SCAdd& from) {
  3503. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  3504. GOOGLE_DCHECK_NE(&from, this);
  3505. uint32_t cached_has_bits = 0;
  3506. (void) cached_has_bits;
  3507. if (!from._internal_name().empty()) {
  3508. _internal_set_name(from._internal_name());
  3509. }
  3510. if (from._internal_ret() != 0) {
  3511. _internal_set_ret(from._internal_ret());
  3512. }
  3513. if (from._internal_uid() != 0) {
  3514. _internal_set_uid(from._internal_uid());
  3515. }
  3516. if (from._internal_car() != 0) {
  3517. _internal_set_car(from._internal_car());
  3518. }
  3519. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3520. }
  3521. void SCAdd::CopyFrom(const SCAdd& from) {
  3522. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  3523. if (&from == this) return;
  3524. Clear();
  3525. MergeFrom(from);
  3526. }
  3527. bool SCAdd::IsInitialized() const {
  3528. return true;
  3529. }
  3530. void SCAdd::InternalSwap(SCAdd* other) {
  3531. using std::swap;
  3532. auto* lhs_arena = GetArenaForAllocation();
  3533. auto* rhs_arena = other->GetArenaForAllocation();
  3534. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3535. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3536. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3537. &name_, lhs_arena,
  3538. &other->name_, rhs_arena
  3539. );
  3540. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3541. PROTOBUF_FIELD_OFFSET(SCAdd, car_)
  3542. + sizeof(SCAdd::car_)
  3543. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  3544. reinterpret_cast<char*>(&ret_),
  3545. reinterpret_cast<char*>(&other->ret_));
  3546. }
  3547. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  3548. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3549. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3550. file_level_metadata_protocol_2eproto[8]);
  3551. }
  3552. // ===================================================================
  3553. class SCKickOff::_Internal {
  3554. public:
  3555. };
  3556. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3557. bool is_message_owned)
  3558. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3559. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  3560. }
  3561. SCKickOff::SCKickOff(const SCKickOff& from)
  3562. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3563. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3564. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  3565. }
  3566. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  3567. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3568. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3569. };
  3570. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  3571. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  3572. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3573. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3574. file_level_metadata_protocol_2eproto[9]);
  3575. }
  3576. // ===================================================================
  3577. class CSState::_Internal {
  3578. public:
  3579. };
  3580. CSState::CSState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3581. bool is_message_owned)
  3582. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3583. SharedCtor();
  3584. if (!is_message_owned) {
  3585. RegisterArenaDtor(arena);
  3586. }
  3587. // @@protoc_insertion_point(arena_constructor:RemoNet.CSState)
  3588. }
  3589. CSState::CSState(const CSState& from)
  3590. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3591. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3592. ::memcpy(&state_, &from.state_,
  3593. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3594. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3595. // @@protoc_insertion_point(copy_constructor:RemoNet.CSState)
  3596. }
  3597. inline void CSState::SharedCtor() {
  3598. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3599. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3600. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3601. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3602. }
  3603. CSState::~CSState() {
  3604. // @@protoc_insertion_point(destructor:RemoNet.CSState)
  3605. if (GetArenaForAllocation() != nullptr) return;
  3606. SharedDtor();
  3607. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3608. }
  3609. inline void CSState::SharedDtor() {
  3610. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3611. }
  3612. void CSState::ArenaDtor(void* object) {
  3613. CSState* _this = reinterpret_cast< CSState* >(object);
  3614. (void)_this;
  3615. }
  3616. void CSState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3617. }
  3618. void CSState::SetCachedSize(int size) const {
  3619. _cached_size_.Set(size);
  3620. }
  3621. void CSState::Clear() {
  3622. // @@protoc_insertion_point(message_clear_start:RemoNet.CSState)
  3623. uint32_t cached_has_bits = 0;
  3624. // Prevent compiler warnings about cached_has_bits being unused
  3625. (void) cached_has_bits;
  3626. ::memset(&state_, 0, static_cast<size_t>(
  3627. reinterpret_cast<char*>(&uid_) -
  3628. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3629. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3630. }
  3631. const char* CSState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3632. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3633. while (!ctx->Done(&ptr)) {
  3634. uint32_t tag;
  3635. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3636. switch (tag >> 3) {
  3637. // .RemoNet.UserState state = 1;
  3638. case 1:
  3639. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3640. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3641. CHK_(ptr);
  3642. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3643. } else
  3644. goto handle_unusual;
  3645. continue;
  3646. // int32 uid = 2;
  3647. case 2:
  3648. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3649. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3650. CHK_(ptr);
  3651. } else
  3652. goto handle_unusual;
  3653. continue;
  3654. default:
  3655. goto handle_unusual;
  3656. } // switch
  3657. handle_unusual:
  3658. if ((tag == 0) || ((tag & 7) == 4)) {
  3659. CHK_(ptr);
  3660. ctx->SetLastTag(tag);
  3661. goto message_done;
  3662. }
  3663. ptr = UnknownFieldParse(
  3664. tag,
  3665. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3666. ptr, ctx);
  3667. CHK_(ptr != nullptr);
  3668. } // while
  3669. message_done:
  3670. return ptr;
  3671. failure:
  3672. ptr = nullptr;
  3673. goto message_done;
  3674. #undef CHK_
  3675. }
  3676. uint8_t* CSState::_InternalSerialize(
  3677. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3678. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSState)
  3679. uint32_t cached_has_bits = 0;
  3680. (void) cached_has_bits;
  3681. // .RemoNet.UserState state = 1;
  3682. if (this->_internal_state() != 0) {
  3683. target = stream->EnsureSpace(target);
  3684. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3685. 1, this->_internal_state(), target);
  3686. }
  3687. // int32 uid = 2;
  3688. if (this->_internal_uid() != 0) {
  3689. target = stream->EnsureSpace(target);
  3690. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3691. }
  3692. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3693. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3694. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3695. }
  3696. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSState)
  3697. return target;
  3698. }
  3699. size_t CSState::ByteSizeLong() const {
  3700. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSState)
  3701. size_t total_size = 0;
  3702. uint32_t cached_has_bits = 0;
  3703. // Prevent compiler warnings about cached_has_bits being unused
  3704. (void) cached_has_bits;
  3705. // .RemoNet.UserState state = 1;
  3706. if (this->_internal_state() != 0) {
  3707. total_size += 1 +
  3708. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3709. }
  3710. // int32 uid = 2;
  3711. if (this->_internal_uid() != 0) {
  3712. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3713. }
  3714. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3715. }
  3716. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSState::_class_data_ = {
  3717. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3718. CSState::MergeImpl
  3719. };
  3720. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSState::GetClassData() const { return &_class_data_; }
  3721. void CSState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3722. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3723. static_cast<CSState *>(to)->MergeFrom(
  3724. static_cast<const CSState &>(from));
  3725. }
  3726. void CSState::MergeFrom(const CSState& from) {
  3727. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSState)
  3728. GOOGLE_DCHECK_NE(&from, this);
  3729. uint32_t cached_has_bits = 0;
  3730. (void) cached_has_bits;
  3731. if (from._internal_state() != 0) {
  3732. _internal_set_state(from._internal_state());
  3733. }
  3734. if (from._internal_uid() != 0) {
  3735. _internal_set_uid(from._internal_uid());
  3736. }
  3737. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3738. }
  3739. void CSState::CopyFrom(const CSState& from) {
  3740. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSState)
  3741. if (&from == this) return;
  3742. Clear();
  3743. MergeFrom(from);
  3744. }
  3745. bool CSState::IsInitialized() const {
  3746. return true;
  3747. }
  3748. void CSState::InternalSwap(CSState* other) {
  3749. using std::swap;
  3750. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3751. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3752. PROTOBUF_FIELD_OFFSET(CSState, uid_)
  3753. + sizeof(CSState::uid_)
  3754. - PROTOBUF_FIELD_OFFSET(CSState, state_)>(
  3755. reinterpret_cast<char*>(&state_),
  3756. reinterpret_cast<char*>(&other->state_));
  3757. }
  3758. ::PROTOBUF_NAMESPACE_ID::Metadata CSState::GetMetadata() const {
  3759. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3760. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3761. file_level_metadata_protocol_2eproto[10]);
  3762. }
  3763. // ===================================================================
  3764. class SCState::_Internal {
  3765. public:
  3766. };
  3767. SCState::SCState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3768. bool is_message_owned)
  3769. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3770. SharedCtor();
  3771. if (!is_message_owned) {
  3772. RegisterArenaDtor(arena);
  3773. }
  3774. // @@protoc_insertion_point(arena_constructor:RemoNet.SCState)
  3775. }
  3776. SCState::SCState(const SCState& from)
  3777. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3778. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3779. ::memcpy(&state_, &from.state_,
  3780. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3781. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3782. // @@protoc_insertion_point(copy_constructor:RemoNet.SCState)
  3783. }
  3784. inline void SCState::SharedCtor() {
  3785. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3786. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3787. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3788. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3789. }
  3790. SCState::~SCState() {
  3791. // @@protoc_insertion_point(destructor:RemoNet.SCState)
  3792. if (GetArenaForAllocation() != nullptr) return;
  3793. SharedDtor();
  3794. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3795. }
  3796. inline void SCState::SharedDtor() {
  3797. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3798. }
  3799. void SCState::ArenaDtor(void* object) {
  3800. SCState* _this = reinterpret_cast< SCState* >(object);
  3801. (void)_this;
  3802. }
  3803. void SCState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3804. }
  3805. void SCState::SetCachedSize(int size) const {
  3806. _cached_size_.Set(size);
  3807. }
  3808. void SCState::Clear() {
  3809. // @@protoc_insertion_point(message_clear_start:RemoNet.SCState)
  3810. uint32_t cached_has_bits = 0;
  3811. // Prevent compiler warnings about cached_has_bits being unused
  3812. (void) cached_has_bits;
  3813. ::memset(&state_, 0, static_cast<size_t>(
  3814. reinterpret_cast<char*>(&uid_) -
  3815. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3816. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3817. }
  3818. const char* SCState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3819. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3820. while (!ctx->Done(&ptr)) {
  3821. uint32_t tag;
  3822. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3823. switch (tag >> 3) {
  3824. // .RemoNet.UserState state = 1;
  3825. case 1:
  3826. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3827. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3828. CHK_(ptr);
  3829. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3830. } else
  3831. goto handle_unusual;
  3832. continue;
  3833. // int32 uid = 2;
  3834. case 2:
  3835. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3836. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3837. CHK_(ptr);
  3838. } else
  3839. goto handle_unusual;
  3840. continue;
  3841. default:
  3842. goto handle_unusual;
  3843. } // switch
  3844. handle_unusual:
  3845. if ((tag == 0) || ((tag & 7) == 4)) {
  3846. CHK_(ptr);
  3847. ctx->SetLastTag(tag);
  3848. goto message_done;
  3849. }
  3850. ptr = UnknownFieldParse(
  3851. tag,
  3852. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3853. ptr, ctx);
  3854. CHK_(ptr != nullptr);
  3855. } // while
  3856. message_done:
  3857. return ptr;
  3858. failure:
  3859. ptr = nullptr;
  3860. goto message_done;
  3861. #undef CHK_
  3862. }
  3863. uint8_t* SCState::_InternalSerialize(
  3864. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3865. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCState)
  3866. uint32_t cached_has_bits = 0;
  3867. (void) cached_has_bits;
  3868. // .RemoNet.UserState state = 1;
  3869. if (this->_internal_state() != 0) {
  3870. target = stream->EnsureSpace(target);
  3871. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3872. 1, this->_internal_state(), target);
  3873. }
  3874. // int32 uid = 2;
  3875. if (this->_internal_uid() != 0) {
  3876. target = stream->EnsureSpace(target);
  3877. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3878. }
  3879. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3880. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3881. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3882. }
  3883. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCState)
  3884. return target;
  3885. }
  3886. size_t SCState::ByteSizeLong() const {
  3887. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCState)
  3888. size_t total_size = 0;
  3889. uint32_t cached_has_bits = 0;
  3890. // Prevent compiler warnings about cached_has_bits being unused
  3891. (void) cached_has_bits;
  3892. // .RemoNet.UserState state = 1;
  3893. if (this->_internal_state() != 0) {
  3894. total_size += 1 +
  3895. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3896. }
  3897. // int32 uid = 2;
  3898. if (this->_internal_uid() != 0) {
  3899. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3900. }
  3901. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3902. }
  3903. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCState::_class_data_ = {
  3904. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3905. SCState::MergeImpl
  3906. };
  3907. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCState::GetClassData() const { return &_class_data_; }
  3908. void SCState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3909. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3910. static_cast<SCState *>(to)->MergeFrom(
  3911. static_cast<const SCState &>(from));
  3912. }
  3913. void SCState::MergeFrom(const SCState& from) {
  3914. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCState)
  3915. GOOGLE_DCHECK_NE(&from, this);
  3916. uint32_t cached_has_bits = 0;
  3917. (void) cached_has_bits;
  3918. if (from._internal_state() != 0) {
  3919. _internal_set_state(from._internal_state());
  3920. }
  3921. if (from._internal_uid() != 0) {
  3922. _internal_set_uid(from._internal_uid());
  3923. }
  3924. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3925. }
  3926. void SCState::CopyFrom(const SCState& from) {
  3927. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCState)
  3928. if (&from == this) return;
  3929. Clear();
  3930. MergeFrom(from);
  3931. }
  3932. bool SCState::IsInitialized() const {
  3933. return true;
  3934. }
  3935. void SCState::InternalSwap(SCState* other) {
  3936. using std::swap;
  3937. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3938. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3939. PROTOBUF_FIELD_OFFSET(SCState, uid_)
  3940. + sizeof(SCState::uid_)
  3941. - PROTOBUF_FIELD_OFFSET(SCState, state_)>(
  3942. reinterpret_cast<char*>(&state_),
  3943. reinterpret_cast<char*>(&other->state_));
  3944. }
  3945. ::PROTOBUF_NAMESPACE_ID::Metadata SCState::GetMetadata() const {
  3946. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3947. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3948. file_level_metadata_protocol_2eproto[11]);
  3949. }
  3950. // ===================================================================
  3951. class Robot::_Internal {
  3952. public:
  3953. };
  3954. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3955. bool is_message_owned)
  3956. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3957. SharedCtor();
  3958. if (!is_message_owned) {
  3959. RegisterArenaDtor(arena);
  3960. }
  3961. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  3962. }
  3963. Robot::Robot(const Robot& from)
  3964. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3965. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3966. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3967. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3968. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3969. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3970. if (!from._internal_name().empty()) {
  3971. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3972. GetArenaForAllocation());
  3973. }
  3974. ::memcpy(&rid_, &from.rid_,
  3975. static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3976. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3977. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  3978. }
  3979. inline void Robot::SharedCtor() {
  3980. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3981. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3982. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3983. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3984. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3985. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  3986. 0, static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3987. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3988. }
  3989. Robot::~Robot() {
  3990. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  3991. if (GetArenaForAllocation() != nullptr) return;
  3992. SharedDtor();
  3993. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3994. }
  3995. inline void Robot::SharedDtor() {
  3996. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3997. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3998. }
  3999. void Robot::ArenaDtor(void* object) {
  4000. Robot* _this = reinterpret_cast< Robot* >(object);
  4001. (void)_this;
  4002. }
  4003. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4004. }
  4005. void Robot::SetCachedSize(int size) const {
  4006. _cached_size_.Set(size);
  4007. }
  4008. void Robot::Clear() {
  4009. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  4010. uint32_t cached_has_bits = 0;
  4011. // Prevent compiler warnings about cached_has_bits being unused
  4012. (void) cached_has_bits;
  4013. name_.ClearToEmpty();
  4014. ::memset(&rid_, 0, static_cast<size_t>(
  4015. reinterpret_cast<char*>(&cartype_) -
  4016. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4017. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4018. }
  4019. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4020. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4021. while (!ctx->Done(&ptr)) {
  4022. uint32_t tag;
  4023. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4024. switch (tag >> 3) {
  4025. // int32 rid = 1;
  4026. case 1:
  4027. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4028. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4029. CHK_(ptr);
  4030. } else
  4031. goto handle_unusual;
  4032. continue;
  4033. // string name = 2;
  4034. case 2:
  4035. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4036. auto str = _internal_mutable_name();
  4037. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4038. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  4039. CHK_(ptr);
  4040. } else
  4041. goto handle_unusual;
  4042. continue;
  4043. // int32 type = 3;
  4044. case 3:
  4045. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4046. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4047. CHK_(ptr);
  4048. } else
  4049. goto handle_unusual;
  4050. continue;
  4051. // .RemoNet.UserState state = 4;
  4052. case 4:
  4053. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  4054. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4055. CHK_(ptr);
  4056. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  4057. } else
  4058. goto handle_unusual;
  4059. continue;
  4060. // int32 carType = 5;
  4061. case 5:
  4062. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4063. cartype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4064. CHK_(ptr);
  4065. } else
  4066. goto handle_unusual;
  4067. continue;
  4068. default:
  4069. goto handle_unusual;
  4070. } // switch
  4071. handle_unusual:
  4072. if ((tag == 0) || ((tag & 7) == 4)) {
  4073. CHK_(ptr);
  4074. ctx->SetLastTag(tag);
  4075. goto message_done;
  4076. }
  4077. ptr = UnknownFieldParse(
  4078. tag,
  4079. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4080. ptr, ctx);
  4081. CHK_(ptr != nullptr);
  4082. } // while
  4083. message_done:
  4084. return ptr;
  4085. failure:
  4086. ptr = nullptr;
  4087. goto message_done;
  4088. #undef CHK_
  4089. }
  4090. uint8_t* Robot::_InternalSerialize(
  4091. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4092. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  4093. uint32_t cached_has_bits = 0;
  4094. (void) cached_has_bits;
  4095. // int32 rid = 1;
  4096. if (this->_internal_rid() != 0) {
  4097. target = stream->EnsureSpace(target);
  4098. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  4099. }
  4100. // string name = 2;
  4101. if (!this->_internal_name().empty()) {
  4102. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4103. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4104. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4105. "RemoNet.Robot.name");
  4106. target = stream->WriteStringMaybeAliased(
  4107. 2, this->_internal_name(), target);
  4108. }
  4109. // int32 type = 3;
  4110. if (this->_internal_type() != 0) {
  4111. target = stream->EnsureSpace(target);
  4112. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  4113. }
  4114. // .RemoNet.UserState state = 4;
  4115. if (this->_internal_state() != 0) {
  4116. target = stream->EnsureSpace(target);
  4117. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4118. 4, this->_internal_state(), target);
  4119. }
  4120. // int32 carType = 5;
  4121. if (this->_internal_cartype() != 0) {
  4122. target = stream->EnsureSpace(target);
  4123. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_cartype(), target);
  4124. }
  4125. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4126. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4127. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4128. }
  4129. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  4130. return target;
  4131. }
  4132. size_t Robot::ByteSizeLong() const {
  4133. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  4134. size_t total_size = 0;
  4135. uint32_t cached_has_bits = 0;
  4136. // Prevent compiler warnings about cached_has_bits being unused
  4137. (void) cached_has_bits;
  4138. // string name = 2;
  4139. if (!this->_internal_name().empty()) {
  4140. total_size += 1 +
  4141. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4142. this->_internal_name());
  4143. }
  4144. // int32 rid = 1;
  4145. if (this->_internal_rid() != 0) {
  4146. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  4147. }
  4148. // int32 type = 3;
  4149. if (this->_internal_type() != 0) {
  4150. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  4151. }
  4152. // .RemoNet.UserState state = 4;
  4153. if (this->_internal_state() != 0) {
  4154. total_size += 1 +
  4155. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4156. }
  4157. // int32 carType = 5;
  4158. if (this->_internal_cartype() != 0) {
  4159. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cartype());
  4160. }
  4161. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4162. }
  4163. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  4164. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4165. Robot::MergeImpl
  4166. };
  4167. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  4168. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4169. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4170. static_cast<Robot *>(to)->MergeFrom(
  4171. static_cast<const Robot &>(from));
  4172. }
  4173. void Robot::MergeFrom(const Robot& from) {
  4174. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  4175. GOOGLE_DCHECK_NE(&from, this);
  4176. uint32_t cached_has_bits = 0;
  4177. (void) cached_has_bits;
  4178. if (!from._internal_name().empty()) {
  4179. _internal_set_name(from._internal_name());
  4180. }
  4181. if (from._internal_rid() != 0) {
  4182. _internal_set_rid(from._internal_rid());
  4183. }
  4184. if (from._internal_type() != 0) {
  4185. _internal_set_type(from._internal_type());
  4186. }
  4187. if (from._internal_state() != 0) {
  4188. _internal_set_state(from._internal_state());
  4189. }
  4190. if (from._internal_cartype() != 0) {
  4191. _internal_set_cartype(from._internal_cartype());
  4192. }
  4193. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4194. }
  4195. void Robot::CopyFrom(const Robot& from) {
  4196. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  4197. if (&from == this) return;
  4198. Clear();
  4199. MergeFrom(from);
  4200. }
  4201. bool Robot::IsInitialized() const {
  4202. return true;
  4203. }
  4204. void Robot::InternalSwap(Robot* other) {
  4205. using std::swap;
  4206. auto* lhs_arena = GetArenaForAllocation();
  4207. auto* rhs_arena = other->GetArenaForAllocation();
  4208. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4209. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4210. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4211. &name_, lhs_arena,
  4212. &other->name_, rhs_arena
  4213. );
  4214. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4215. PROTOBUF_FIELD_OFFSET(Robot, cartype_)
  4216. + sizeof(Robot::cartype_)
  4217. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  4218. reinterpret_cast<char*>(&rid_),
  4219. reinterpret_cast<char*>(&other->rid_));
  4220. }
  4221. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  4222. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4223. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4224. file_level_metadata_protocol_2eproto[12]);
  4225. }
  4226. // ===================================================================
  4227. class CSRobot::_Internal {
  4228. public:
  4229. };
  4230. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4231. bool is_message_owned)
  4232. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  4233. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  4234. }
  4235. CSRobot::CSRobot(const CSRobot& from)
  4236. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  4237. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4238. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  4239. }
  4240. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  4241. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  4242. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  4243. };
  4244. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  4245. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  4246. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4247. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4248. file_level_metadata_protocol_2eproto[13]);
  4249. }
  4250. // ===================================================================
  4251. class SCRobot::_Internal {
  4252. public:
  4253. };
  4254. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4255. bool is_message_owned)
  4256. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  4257. robot_(arena) {
  4258. SharedCtor();
  4259. if (!is_message_owned) {
  4260. RegisterArenaDtor(arena);
  4261. }
  4262. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  4263. }
  4264. SCRobot::SCRobot(const SCRobot& from)
  4265. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4266. robot_(from.robot_) {
  4267. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4268. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  4269. }
  4270. inline void SCRobot::SharedCtor() {
  4271. }
  4272. SCRobot::~SCRobot() {
  4273. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  4274. if (GetArenaForAllocation() != nullptr) return;
  4275. SharedDtor();
  4276. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4277. }
  4278. inline void SCRobot::SharedDtor() {
  4279. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4280. }
  4281. void SCRobot::ArenaDtor(void* object) {
  4282. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  4283. (void)_this;
  4284. }
  4285. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4286. }
  4287. void SCRobot::SetCachedSize(int size) const {
  4288. _cached_size_.Set(size);
  4289. }
  4290. void SCRobot::Clear() {
  4291. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  4292. uint32_t cached_has_bits = 0;
  4293. // Prevent compiler warnings about cached_has_bits being unused
  4294. (void) cached_has_bits;
  4295. robot_.Clear();
  4296. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4297. }
  4298. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4299. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4300. while (!ctx->Done(&ptr)) {
  4301. uint32_t tag;
  4302. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4303. switch (tag >> 3) {
  4304. // repeated .RemoNet.Robot robot = 1;
  4305. case 1:
  4306. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4307. ptr -= 1;
  4308. do {
  4309. ptr += 1;
  4310. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  4311. CHK_(ptr);
  4312. if (!ctx->DataAvailable(ptr)) break;
  4313. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  4314. } else
  4315. goto handle_unusual;
  4316. continue;
  4317. default:
  4318. goto handle_unusual;
  4319. } // switch
  4320. handle_unusual:
  4321. if ((tag == 0) || ((tag & 7) == 4)) {
  4322. CHK_(ptr);
  4323. ctx->SetLastTag(tag);
  4324. goto message_done;
  4325. }
  4326. ptr = UnknownFieldParse(
  4327. tag,
  4328. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4329. ptr, ctx);
  4330. CHK_(ptr != nullptr);
  4331. } // while
  4332. message_done:
  4333. return ptr;
  4334. failure:
  4335. ptr = nullptr;
  4336. goto message_done;
  4337. #undef CHK_
  4338. }
  4339. uint8_t* SCRobot::_InternalSerialize(
  4340. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4341. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  4342. uint32_t cached_has_bits = 0;
  4343. (void) cached_has_bits;
  4344. // repeated .RemoNet.Robot robot = 1;
  4345. for (unsigned int i = 0,
  4346. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  4347. target = stream->EnsureSpace(target);
  4348. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4349. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  4350. }
  4351. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4353. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4354. }
  4355. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  4356. return target;
  4357. }
  4358. size_t SCRobot::ByteSizeLong() const {
  4359. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  4360. size_t total_size = 0;
  4361. uint32_t cached_has_bits = 0;
  4362. // Prevent compiler warnings about cached_has_bits being unused
  4363. (void) cached_has_bits;
  4364. // repeated .RemoNet.Robot robot = 1;
  4365. total_size += 1UL * this->_internal_robot_size();
  4366. for (const auto& msg : this->robot_) {
  4367. total_size +=
  4368. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  4369. }
  4370. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4371. }
  4372. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  4373. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4374. SCRobot::MergeImpl
  4375. };
  4376. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  4377. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4378. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4379. static_cast<SCRobot *>(to)->MergeFrom(
  4380. static_cast<const SCRobot &>(from));
  4381. }
  4382. void SCRobot::MergeFrom(const SCRobot& from) {
  4383. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  4384. GOOGLE_DCHECK_NE(&from, this);
  4385. uint32_t cached_has_bits = 0;
  4386. (void) cached_has_bits;
  4387. robot_.MergeFrom(from.robot_);
  4388. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4389. }
  4390. void SCRobot::CopyFrom(const SCRobot& from) {
  4391. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  4392. if (&from == this) return;
  4393. Clear();
  4394. MergeFrom(from);
  4395. }
  4396. bool SCRobot::IsInitialized() const {
  4397. return true;
  4398. }
  4399. void SCRobot::InternalSwap(SCRobot* other) {
  4400. using std::swap;
  4401. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4402. robot_.InternalSwap(&other->robot_);
  4403. }
  4404. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  4405. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4406. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4407. file_level_metadata_protocol_2eproto[14]);
  4408. }
  4409. // ===================================================================
  4410. class CSSign::_Internal {
  4411. public:
  4412. };
  4413. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4414. bool is_message_owned)
  4415. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4416. SharedCtor();
  4417. if (!is_message_owned) {
  4418. RegisterArenaDtor(arena);
  4419. }
  4420. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  4421. }
  4422. CSSign::CSSign(const CSSign& from)
  4423. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4424. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4425. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4426. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4427. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4428. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4429. if (!from._internal_account().empty()) {
  4430. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  4431. GetArenaForAllocation());
  4432. }
  4433. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4434. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4435. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4436. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4437. if (!from._internal_password().empty()) {
  4438. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  4439. GetArenaForAllocation());
  4440. }
  4441. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  4442. }
  4443. inline void CSSign::SharedCtor() {
  4444. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4445. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4446. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4447. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4448. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4449. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4450. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4451. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4452. }
  4453. CSSign::~CSSign() {
  4454. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  4455. if (GetArenaForAllocation() != nullptr) return;
  4456. SharedDtor();
  4457. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4458. }
  4459. inline void CSSign::SharedDtor() {
  4460. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4461. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4462. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4463. }
  4464. void CSSign::ArenaDtor(void* object) {
  4465. CSSign* _this = reinterpret_cast< CSSign* >(object);
  4466. (void)_this;
  4467. }
  4468. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4469. }
  4470. void CSSign::SetCachedSize(int size) const {
  4471. _cached_size_.Set(size);
  4472. }
  4473. void CSSign::Clear() {
  4474. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  4475. uint32_t cached_has_bits = 0;
  4476. // Prevent compiler warnings about cached_has_bits being unused
  4477. (void) cached_has_bits;
  4478. account_.ClearToEmpty();
  4479. password_.ClearToEmpty();
  4480. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4481. }
  4482. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4483. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4484. while (!ctx->Done(&ptr)) {
  4485. uint32_t tag;
  4486. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4487. switch (tag >> 3) {
  4488. // string account = 1;
  4489. case 1:
  4490. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4491. auto str = _internal_mutable_account();
  4492. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4493. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  4494. CHK_(ptr);
  4495. } else
  4496. goto handle_unusual;
  4497. continue;
  4498. // string password = 2;
  4499. case 2:
  4500. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4501. auto str = _internal_mutable_password();
  4502. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4503. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  4504. CHK_(ptr);
  4505. } else
  4506. goto handle_unusual;
  4507. continue;
  4508. default:
  4509. goto handle_unusual;
  4510. } // switch
  4511. handle_unusual:
  4512. if ((tag == 0) || ((tag & 7) == 4)) {
  4513. CHK_(ptr);
  4514. ctx->SetLastTag(tag);
  4515. goto message_done;
  4516. }
  4517. ptr = UnknownFieldParse(
  4518. tag,
  4519. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4520. ptr, ctx);
  4521. CHK_(ptr != nullptr);
  4522. } // while
  4523. message_done:
  4524. return ptr;
  4525. failure:
  4526. ptr = nullptr;
  4527. goto message_done;
  4528. #undef CHK_
  4529. }
  4530. uint8_t* CSSign::_InternalSerialize(
  4531. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4532. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  4533. uint32_t cached_has_bits = 0;
  4534. (void) cached_has_bits;
  4535. // string account = 1;
  4536. if (!this->_internal_account().empty()) {
  4537. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4538. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  4539. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4540. "RemoNet.CSSign.account");
  4541. target = stream->WriteStringMaybeAliased(
  4542. 1, this->_internal_account(), target);
  4543. }
  4544. // string password = 2;
  4545. if (!this->_internal_password().empty()) {
  4546. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4547. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  4548. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4549. "RemoNet.CSSign.password");
  4550. target = stream->WriteStringMaybeAliased(
  4551. 2, this->_internal_password(), target);
  4552. }
  4553. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4554. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4555. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4556. }
  4557. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  4558. return target;
  4559. }
  4560. size_t CSSign::ByteSizeLong() const {
  4561. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  4562. size_t total_size = 0;
  4563. uint32_t cached_has_bits = 0;
  4564. // Prevent compiler warnings about cached_has_bits being unused
  4565. (void) cached_has_bits;
  4566. // string account = 1;
  4567. if (!this->_internal_account().empty()) {
  4568. total_size += 1 +
  4569. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4570. this->_internal_account());
  4571. }
  4572. // string password = 2;
  4573. if (!this->_internal_password().empty()) {
  4574. total_size += 1 +
  4575. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4576. this->_internal_password());
  4577. }
  4578. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4579. }
  4580. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  4581. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4582. CSSign::MergeImpl
  4583. };
  4584. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  4585. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4586. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4587. static_cast<CSSign *>(to)->MergeFrom(
  4588. static_cast<const CSSign &>(from));
  4589. }
  4590. void CSSign::MergeFrom(const CSSign& from) {
  4591. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  4592. GOOGLE_DCHECK_NE(&from, this);
  4593. uint32_t cached_has_bits = 0;
  4594. (void) cached_has_bits;
  4595. if (!from._internal_account().empty()) {
  4596. _internal_set_account(from._internal_account());
  4597. }
  4598. if (!from._internal_password().empty()) {
  4599. _internal_set_password(from._internal_password());
  4600. }
  4601. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4602. }
  4603. void CSSign::CopyFrom(const CSSign& from) {
  4604. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  4605. if (&from == this) return;
  4606. Clear();
  4607. MergeFrom(from);
  4608. }
  4609. bool CSSign::IsInitialized() const {
  4610. return true;
  4611. }
  4612. void CSSign::InternalSwap(CSSign* other) {
  4613. using std::swap;
  4614. auto* lhs_arena = GetArenaForAllocation();
  4615. auto* rhs_arena = other->GetArenaForAllocation();
  4616. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4617. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4618. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4619. &account_, lhs_arena,
  4620. &other->account_, rhs_arena
  4621. );
  4622. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4623. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4624. &password_, lhs_arena,
  4625. &other->password_, rhs_arena
  4626. );
  4627. }
  4628. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  4629. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4630. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4631. file_level_metadata_protocol_2eproto[15]);
  4632. }
  4633. // ===================================================================
  4634. class SCSign::_Internal {
  4635. public:
  4636. };
  4637. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4638. bool is_message_owned)
  4639. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4640. SharedCtor();
  4641. if (!is_message_owned) {
  4642. RegisterArenaDtor(arena);
  4643. }
  4644. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  4645. }
  4646. SCSign::SCSign(const SCSign& from)
  4647. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4648. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4649. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4650. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4651. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4652. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4653. if (!from._internal_name().empty()) {
  4654. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4655. GetArenaForAllocation());
  4656. }
  4657. ::memcpy(&ret_, &from.ret_,
  4658. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4659. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4660. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  4661. }
  4662. inline void SCSign::SharedCtor() {
  4663. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4664. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4665. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4666. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4667. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4668. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  4669. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4670. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4671. }
  4672. SCSign::~SCSign() {
  4673. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  4674. if (GetArenaForAllocation() != nullptr) return;
  4675. SharedDtor();
  4676. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4677. }
  4678. inline void SCSign::SharedDtor() {
  4679. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4680. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4681. }
  4682. void SCSign::ArenaDtor(void* object) {
  4683. SCSign* _this = reinterpret_cast< SCSign* >(object);
  4684. (void)_this;
  4685. }
  4686. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4687. }
  4688. void SCSign::SetCachedSize(int size) const {
  4689. _cached_size_.Set(size);
  4690. }
  4691. void SCSign::Clear() {
  4692. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  4693. uint32_t cached_has_bits = 0;
  4694. // Prevent compiler warnings about cached_has_bits being unused
  4695. (void) cached_has_bits;
  4696. name_.ClearToEmpty();
  4697. ::memset(&ret_, 0, static_cast<size_t>(
  4698. reinterpret_cast<char*>(&uid_) -
  4699. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4700. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4701. }
  4702. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4703. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4704. while (!ctx->Done(&ptr)) {
  4705. uint32_t tag;
  4706. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4707. switch (tag >> 3) {
  4708. // bool ret = 1;
  4709. case 1:
  4710. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4711. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4712. CHK_(ptr);
  4713. } else
  4714. goto handle_unusual;
  4715. continue;
  4716. // int32 uid = 2;
  4717. case 2:
  4718. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4719. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4720. CHK_(ptr);
  4721. } else
  4722. goto handle_unusual;
  4723. continue;
  4724. // string name = 3;
  4725. case 3:
  4726. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4727. auto str = _internal_mutable_name();
  4728. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4729. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  4730. CHK_(ptr);
  4731. } else
  4732. goto handle_unusual;
  4733. continue;
  4734. default:
  4735. goto handle_unusual;
  4736. } // switch
  4737. handle_unusual:
  4738. if ((tag == 0) || ((tag & 7) == 4)) {
  4739. CHK_(ptr);
  4740. ctx->SetLastTag(tag);
  4741. goto message_done;
  4742. }
  4743. ptr = UnknownFieldParse(
  4744. tag,
  4745. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4746. ptr, ctx);
  4747. CHK_(ptr != nullptr);
  4748. } // while
  4749. message_done:
  4750. return ptr;
  4751. failure:
  4752. ptr = nullptr;
  4753. goto message_done;
  4754. #undef CHK_
  4755. }
  4756. uint8_t* SCSign::_InternalSerialize(
  4757. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4758. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  4759. uint32_t cached_has_bits = 0;
  4760. (void) cached_has_bits;
  4761. // bool ret = 1;
  4762. if (this->_internal_ret() != 0) {
  4763. target = stream->EnsureSpace(target);
  4764. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  4765. }
  4766. // int32 uid = 2;
  4767. if (this->_internal_uid() != 0) {
  4768. target = stream->EnsureSpace(target);
  4769. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4770. }
  4771. // string name = 3;
  4772. if (!this->_internal_name().empty()) {
  4773. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4774. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4775. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4776. "RemoNet.SCSign.name");
  4777. target = stream->WriteStringMaybeAliased(
  4778. 3, this->_internal_name(), target);
  4779. }
  4780. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4781. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4782. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4783. }
  4784. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  4785. return target;
  4786. }
  4787. size_t SCSign::ByteSizeLong() const {
  4788. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  4789. size_t total_size = 0;
  4790. uint32_t cached_has_bits = 0;
  4791. // Prevent compiler warnings about cached_has_bits being unused
  4792. (void) cached_has_bits;
  4793. // string name = 3;
  4794. if (!this->_internal_name().empty()) {
  4795. total_size += 1 +
  4796. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4797. this->_internal_name());
  4798. }
  4799. // bool ret = 1;
  4800. if (this->_internal_ret() != 0) {
  4801. total_size += 1 + 1;
  4802. }
  4803. // int32 uid = 2;
  4804. if (this->_internal_uid() != 0) {
  4805. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4806. }
  4807. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4808. }
  4809. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  4810. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4811. SCSign::MergeImpl
  4812. };
  4813. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  4814. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4815. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4816. static_cast<SCSign *>(to)->MergeFrom(
  4817. static_cast<const SCSign &>(from));
  4818. }
  4819. void SCSign::MergeFrom(const SCSign& from) {
  4820. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  4821. GOOGLE_DCHECK_NE(&from, this);
  4822. uint32_t cached_has_bits = 0;
  4823. (void) cached_has_bits;
  4824. if (!from._internal_name().empty()) {
  4825. _internal_set_name(from._internal_name());
  4826. }
  4827. if (from._internal_ret() != 0) {
  4828. _internal_set_ret(from._internal_ret());
  4829. }
  4830. if (from._internal_uid() != 0) {
  4831. _internal_set_uid(from._internal_uid());
  4832. }
  4833. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4834. }
  4835. void SCSign::CopyFrom(const SCSign& from) {
  4836. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  4837. if (&from == this) return;
  4838. Clear();
  4839. MergeFrom(from);
  4840. }
  4841. bool SCSign::IsInitialized() const {
  4842. return true;
  4843. }
  4844. void SCSign::InternalSwap(SCSign* other) {
  4845. using std::swap;
  4846. auto* lhs_arena = GetArenaForAllocation();
  4847. auto* rhs_arena = other->GetArenaForAllocation();
  4848. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4849. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4850. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4851. &name_, lhs_arena,
  4852. &other->name_, rhs_arena
  4853. );
  4854. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4855. PROTOBUF_FIELD_OFFSET(SCSign, uid_)
  4856. + sizeof(SCSign::uid_)
  4857. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  4858. reinterpret_cast<char*>(&ret_),
  4859. reinterpret_cast<char*>(&other->ret_));
  4860. }
  4861. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  4862. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4863. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4864. file_level_metadata_protocol_2eproto[16]);
  4865. }
  4866. // ===================================================================
  4867. class CSReq::_Internal {
  4868. public:
  4869. };
  4870. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4871. bool is_message_owned)
  4872. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4873. SharedCtor();
  4874. if (!is_message_owned) {
  4875. RegisterArenaDtor(arena);
  4876. }
  4877. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  4878. }
  4879. CSReq::CSReq(const CSReq& from)
  4880. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4881. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4882. ::memcpy(&peer_, &from.peer_,
  4883. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4884. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4885. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  4886. }
  4887. inline void CSReq::SharedCtor() {
  4888. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4889. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4890. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4891. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4892. }
  4893. CSReq::~CSReq() {
  4894. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  4895. if (GetArenaForAllocation() != nullptr) return;
  4896. SharedDtor();
  4897. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4898. }
  4899. inline void CSReq::SharedDtor() {
  4900. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4901. }
  4902. void CSReq::ArenaDtor(void* object) {
  4903. CSReq* _this = reinterpret_cast< CSReq* >(object);
  4904. (void)_this;
  4905. }
  4906. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4907. }
  4908. void CSReq::SetCachedSize(int size) const {
  4909. _cached_size_.Set(size);
  4910. }
  4911. void CSReq::Clear() {
  4912. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  4913. uint32_t cached_has_bits = 0;
  4914. // Prevent compiler warnings about cached_has_bits being unused
  4915. (void) cached_has_bits;
  4916. ::memset(&peer_, 0, static_cast<size_t>(
  4917. reinterpret_cast<char*>(&egotype_) -
  4918. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4919. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4920. }
  4921. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4922. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4923. while (!ctx->Done(&ptr)) {
  4924. uint32_t tag;
  4925. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4926. switch (tag >> 3) {
  4927. // int32 peer = 1;
  4928. case 1:
  4929. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4930. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4931. CHK_(ptr);
  4932. } else
  4933. goto handle_unusual;
  4934. continue;
  4935. // int32 index = 2;
  4936. case 2:
  4937. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4938. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4939. CHK_(ptr);
  4940. } else
  4941. goto handle_unusual;
  4942. continue;
  4943. // int32 egotype = 3;
  4944. case 3:
  4945. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4946. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4947. CHK_(ptr);
  4948. } else
  4949. goto handle_unusual;
  4950. continue;
  4951. default:
  4952. goto handle_unusual;
  4953. } // switch
  4954. handle_unusual:
  4955. if ((tag == 0) || ((tag & 7) == 4)) {
  4956. CHK_(ptr);
  4957. ctx->SetLastTag(tag);
  4958. goto message_done;
  4959. }
  4960. ptr = UnknownFieldParse(
  4961. tag,
  4962. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4963. ptr, ctx);
  4964. CHK_(ptr != nullptr);
  4965. } // while
  4966. message_done:
  4967. return ptr;
  4968. failure:
  4969. ptr = nullptr;
  4970. goto message_done;
  4971. #undef CHK_
  4972. }
  4973. uint8_t* CSReq::_InternalSerialize(
  4974. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4975. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  4976. uint32_t cached_has_bits = 0;
  4977. (void) cached_has_bits;
  4978. // int32 peer = 1;
  4979. if (this->_internal_peer() != 0) {
  4980. target = stream->EnsureSpace(target);
  4981. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4982. }
  4983. // int32 index = 2;
  4984. if (this->_internal_index() != 0) {
  4985. target = stream->EnsureSpace(target);
  4986. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  4987. }
  4988. // int32 egotype = 3;
  4989. if (this->_internal_egotype() != 0) {
  4990. target = stream->EnsureSpace(target);
  4991. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  4992. }
  4993. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4994. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4995. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4996. }
  4997. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  4998. return target;
  4999. }
  5000. size_t CSReq::ByteSizeLong() const {
  5001. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  5002. size_t total_size = 0;
  5003. uint32_t cached_has_bits = 0;
  5004. // Prevent compiler warnings about cached_has_bits being unused
  5005. (void) cached_has_bits;
  5006. // int32 peer = 1;
  5007. if (this->_internal_peer() != 0) {
  5008. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5009. }
  5010. // int32 index = 2;
  5011. if (this->_internal_index() != 0) {
  5012. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5013. }
  5014. // int32 egotype = 3;
  5015. if (this->_internal_egotype() != 0) {
  5016. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5017. }
  5018. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5019. }
  5020. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  5021. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5022. CSReq::MergeImpl
  5023. };
  5024. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  5025. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5026. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5027. static_cast<CSReq *>(to)->MergeFrom(
  5028. static_cast<const CSReq &>(from));
  5029. }
  5030. void CSReq::MergeFrom(const CSReq& from) {
  5031. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  5032. GOOGLE_DCHECK_NE(&from, this);
  5033. uint32_t cached_has_bits = 0;
  5034. (void) cached_has_bits;
  5035. if (from._internal_peer() != 0) {
  5036. _internal_set_peer(from._internal_peer());
  5037. }
  5038. if (from._internal_index() != 0) {
  5039. _internal_set_index(from._internal_index());
  5040. }
  5041. if (from._internal_egotype() != 0) {
  5042. _internal_set_egotype(from._internal_egotype());
  5043. }
  5044. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5045. }
  5046. void CSReq::CopyFrom(const CSReq& from) {
  5047. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  5048. if (&from == this) return;
  5049. Clear();
  5050. MergeFrom(from);
  5051. }
  5052. bool CSReq::IsInitialized() const {
  5053. return true;
  5054. }
  5055. void CSReq::InternalSwap(CSReq* other) {
  5056. using std::swap;
  5057. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5058. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5059. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  5060. + sizeof(CSReq::egotype_)
  5061. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  5062. reinterpret_cast<char*>(&peer_),
  5063. reinterpret_cast<char*>(&other->peer_));
  5064. }
  5065. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  5066. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5067. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5068. file_level_metadata_protocol_2eproto[17]);
  5069. }
  5070. // ===================================================================
  5071. class SCReq::_Internal {
  5072. public:
  5073. };
  5074. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5075. bool is_message_owned)
  5076. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5077. SharedCtor();
  5078. if (!is_message_owned) {
  5079. RegisterArenaDtor(arena);
  5080. }
  5081. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  5082. }
  5083. SCReq::SCReq(const SCReq& from)
  5084. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5085. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5086. ::memcpy(&desc_, &from.desc_,
  5087. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5088. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5089. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  5090. }
  5091. inline void SCReq::SharedCtor() {
  5092. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5093. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5094. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5095. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5096. }
  5097. SCReq::~SCReq() {
  5098. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  5099. if (GetArenaForAllocation() != nullptr) return;
  5100. SharedDtor();
  5101. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5102. }
  5103. inline void SCReq::SharedDtor() {
  5104. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5105. }
  5106. void SCReq::ArenaDtor(void* object) {
  5107. SCReq* _this = reinterpret_cast< SCReq* >(object);
  5108. (void)_this;
  5109. }
  5110. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5111. }
  5112. void SCReq::SetCachedSize(int size) const {
  5113. _cached_size_.Set(size);
  5114. }
  5115. void SCReq::Clear() {
  5116. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  5117. uint32_t cached_has_bits = 0;
  5118. // Prevent compiler warnings about cached_has_bits being unused
  5119. (void) cached_has_bits;
  5120. ::memset(&desc_, 0, static_cast<size_t>(
  5121. reinterpret_cast<char*>(&egotype_) -
  5122. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5123. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5124. }
  5125. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5126. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5127. while (!ctx->Done(&ptr)) {
  5128. uint32_t tag;
  5129. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5130. switch (tag >> 3) {
  5131. // .RemoNet.VideoDesc desc = 1;
  5132. case 1:
  5133. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5134. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5135. CHK_(ptr);
  5136. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5137. } else
  5138. goto handle_unusual;
  5139. continue;
  5140. // int32 peer = 2;
  5141. case 2:
  5142. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5143. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5144. CHK_(ptr);
  5145. } else
  5146. goto handle_unusual;
  5147. continue;
  5148. // int32 egotype = 3;
  5149. case 3:
  5150. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5151. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5152. CHK_(ptr);
  5153. } else
  5154. goto handle_unusual;
  5155. continue;
  5156. default:
  5157. goto handle_unusual;
  5158. } // switch
  5159. handle_unusual:
  5160. if ((tag == 0) || ((tag & 7) == 4)) {
  5161. CHK_(ptr);
  5162. ctx->SetLastTag(tag);
  5163. goto message_done;
  5164. }
  5165. ptr = UnknownFieldParse(
  5166. tag,
  5167. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5168. ptr, ctx);
  5169. CHK_(ptr != nullptr);
  5170. } // while
  5171. message_done:
  5172. return ptr;
  5173. failure:
  5174. ptr = nullptr;
  5175. goto message_done;
  5176. #undef CHK_
  5177. }
  5178. uint8_t* SCReq::_InternalSerialize(
  5179. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5180. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  5181. uint32_t cached_has_bits = 0;
  5182. (void) cached_has_bits;
  5183. // .RemoNet.VideoDesc desc = 1;
  5184. if (this->_internal_desc() != 0) {
  5185. target = stream->EnsureSpace(target);
  5186. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5187. 1, this->_internal_desc(), target);
  5188. }
  5189. // int32 peer = 2;
  5190. if (this->_internal_peer() != 0) {
  5191. target = stream->EnsureSpace(target);
  5192. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5193. }
  5194. // int32 egotype = 3;
  5195. if (this->_internal_egotype() != 0) {
  5196. target = stream->EnsureSpace(target);
  5197. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5198. }
  5199. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5200. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5201. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5202. }
  5203. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  5204. return target;
  5205. }
  5206. size_t SCReq::ByteSizeLong() const {
  5207. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  5208. size_t total_size = 0;
  5209. uint32_t cached_has_bits = 0;
  5210. // Prevent compiler warnings about cached_has_bits being unused
  5211. (void) cached_has_bits;
  5212. // .RemoNet.VideoDesc desc = 1;
  5213. if (this->_internal_desc() != 0) {
  5214. total_size += 1 +
  5215. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5216. }
  5217. // int32 peer = 2;
  5218. if (this->_internal_peer() != 0) {
  5219. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5220. }
  5221. // int32 egotype = 3;
  5222. if (this->_internal_egotype() != 0) {
  5223. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5224. }
  5225. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5226. }
  5227. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  5228. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5229. SCReq::MergeImpl
  5230. };
  5231. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  5232. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5233. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5234. static_cast<SCReq *>(to)->MergeFrom(
  5235. static_cast<const SCReq &>(from));
  5236. }
  5237. void SCReq::MergeFrom(const SCReq& from) {
  5238. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  5239. GOOGLE_DCHECK_NE(&from, this);
  5240. uint32_t cached_has_bits = 0;
  5241. (void) cached_has_bits;
  5242. if (from._internal_desc() != 0) {
  5243. _internal_set_desc(from._internal_desc());
  5244. }
  5245. if (from._internal_peer() != 0) {
  5246. _internal_set_peer(from._internal_peer());
  5247. }
  5248. if (from._internal_egotype() != 0) {
  5249. _internal_set_egotype(from._internal_egotype());
  5250. }
  5251. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5252. }
  5253. void SCReq::CopyFrom(const SCReq& from) {
  5254. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  5255. if (&from == this) return;
  5256. Clear();
  5257. MergeFrom(from);
  5258. }
  5259. bool SCReq::IsInitialized() const {
  5260. return true;
  5261. }
  5262. void SCReq::InternalSwap(SCReq* other) {
  5263. using std::swap;
  5264. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5265. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5266. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  5267. + sizeof(SCReq::egotype_)
  5268. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  5269. reinterpret_cast<char*>(&desc_),
  5270. reinterpret_cast<char*>(&other->desc_));
  5271. }
  5272. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  5273. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5274. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5275. file_level_metadata_protocol_2eproto[18]);
  5276. }
  5277. // ===================================================================
  5278. class CSRep::_Internal {
  5279. public:
  5280. };
  5281. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5282. bool is_message_owned)
  5283. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5284. SharedCtor();
  5285. if (!is_message_owned) {
  5286. RegisterArenaDtor(arena);
  5287. }
  5288. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  5289. }
  5290. CSRep::CSRep(const CSRep& from)
  5291. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5292. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5293. ::memcpy(&desc_, &from.desc_,
  5294. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5295. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5296. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  5297. }
  5298. inline void CSRep::SharedCtor() {
  5299. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5300. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5301. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5302. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5303. }
  5304. CSRep::~CSRep() {
  5305. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  5306. if (GetArenaForAllocation() != nullptr) return;
  5307. SharedDtor();
  5308. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5309. }
  5310. inline void CSRep::SharedDtor() {
  5311. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5312. }
  5313. void CSRep::ArenaDtor(void* object) {
  5314. CSRep* _this = reinterpret_cast< CSRep* >(object);
  5315. (void)_this;
  5316. }
  5317. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5318. }
  5319. void CSRep::SetCachedSize(int size) const {
  5320. _cached_size_.Set(size);
  5321. }
  5322. void CSRep::Clear() {
  5323. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  5324. uint32_t cached_has_bits = 0;
  5325. // Prevent compiler warnings about cached_has_bits being unused
  5326. (void) cached_has_bits;
  5327. ::memset(&desc_, 0, static_cast<size_t>(
  5328. reinterpret_cast<char*>(&egotype_) -
  5329. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5330. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5331. }
  5332. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5333. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5334. while (!ctx->Done(&ptr)) {
  5335. uint32_t tag;
  5336. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5337. switch (tag >> 3) {
  5338. // .RemoNet.VideoDesc desc = 1;
  5339. case 1:
  5340. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5341. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5342. CHK_(ptr);
  5343. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5344. } else
  5345. goto handle_unusual;
  5346. continue;
  5347. // int32 peer = 2;
  5348. case 2:
  5349. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5350. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5351. CHK_(ptr);
  5352. } else
  5353. goto handle_unusual;
  5354. continue;
  5355. // int32 index = 3;
  5356. case 3:
  5357. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5358. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5359. CHK_(ptr);
  5360. } else
  5361. goto handle_unusual;
  5362. continue;
  5363. // int32 egotype = 4;
  5364. case 4:
  5365. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5366. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5367. CHK_(ptr);
  5368. } else
  5369. goto handle_unusual;
  5370. continue;
  5371. default:
  5372. goto handle_unusual;
  5373. } // switch
  5374. handle_unusual:
  5375. if ((tag == 0) || ((tag & 7) == 4)) {
  5376. CHK_(ptr);
  5377. ctx->SetLastTag(tag);
  5378. goto message_done;
  5379. }
  5380. ptr = UnknownFieldParse(
  5381. tag,
  5382. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5383. ptr, ctx);
  5384. CHK_(ptr != nullptr);
  5385. } // while
  5386. message_done:
  5387. return ptr;
  5388. failure:
  5389. ptr = nullptr;
  5390. goto message_done;
  5391. #undef CHK_
  5392. }
  5393. uint8_t* CSRep::_InternalSerialize(
  5394. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5395. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  5396. uint32_t cached_has_bits = 0;
  5397. (void) cached_has_bits;
  5398. // .RemoNet.VideoDesc desc = 1;
  5399. if (this->_internal_desc() != 0) {
  5400. target = stream->EnsureSpace(target);
  5401. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5402. 1, this->_internal_desc(), target);
  5403. }
  5404. // int32 peer = 2;
  5405. if (this->_internal_peer() != 0) {
  5406. target = stream->EnsureSpace(target);
  5407. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5408. }
  5409. // int32 index = 3;
  5410. if (this->_internal_index() != 0) {
  5411. target = stream->EnsureSpace(target);
  5412. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5413. }
  5414. // int32 egotype = 4;
  5415. if (this->_internal_egotype() != 0) {
  5416. target = stream->EnsureSpace(target);
  5417. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  5418. }
  5419. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5420. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5421. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5422. }
  5423. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  5424. return target;
  5425. }
  5426. size_t CSRep::ByteSizeLong() const {
  5427. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  5428. size_t total_size = 0;
  5429. uint32_t cached_has_bits = 0;
  5430. // Prevent compiler warnings about cached_has_bits being unused
  5431. (void) cached_has_bits;
  5432. // .RemoNet.VideoDesc desc = 1;
  5433. if (this->_internal_desc() != 0) {
  5434. total_size += 1 +
  5435. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5436. }
  5437. // int32 peer = 2;
  5438. if (this->_internal_peer() != 0) {
  5439. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5440. }
  5441. // int32 index = 3;
  5442. if (this->_internal_index() != 0) {
  5443. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5444. }
  5445. // int32 egotype = 4;
  5446. if (this->_internal_egotype() != 0) {
  5447. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5448. }
  5449. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5450. }
  5451. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  5452. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5453. CSRep::MergeImpl
  5454. };
  5455. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  5456. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5457. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5458. static_cast<CSRep *>(to)->MergeFrom(
  5459. static_cast<const CSRep &>(from));
  5460. }
  5461. void CSRep::MergeFrom(const CSRep& from) {
  5462. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  5463. GOOGLE_DCHECK_NE(&from, this);
  5464. uint32_t cached_has_bits = 0;
  5465. (void) cached_has_bits;
  5466. if (from._internal_desc() != 0) {
  5467. _internal_set_desc(from._internal_desc());
  5468. }
  5469. if (from._internal_peer() != 0) {
  5470. _internal_set_peer(from._internal_peer());
  5471. }
  5472. if (from._internal_index() != 0) {
  5473. _internal_set_index(from._internal_index());
  5474. }
  5475. if (from._internal_egotype() != 0) {
  5476. _internal_set_egotype(from._internal_egotype());
  5477. }
  5478. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5479. }
  5480. void CSRep::CopyFrom(const CSRep& from) {
  5481. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  5482. if (&from == this) return;
  5483. Clear();
  5484. MergeFrom(from);
  5485. }
  5486. bool CSRep::IsInitialized() const {
  5487. return true;
  5488. }
  5489. void CSRep::InternalSwap(CSRep* other) {
  5490. using std::swap;
  5491. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5492. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5493. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  5494. + sizeof(CSRep::egotype_)
  5495. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  5496. reinterpret_cast<char*>(&desc_),
  5497. reinterpret_cast<char*>(&other->desc_));
  5498. }
  5499. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  5500. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5501. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5502. file_level_metadata_protocol_2eproto[19]);
  5503. }
  5504. // ===================================================================
  5505. class SCRep::_Internal {
  5506. public:
  5507. };
  5508. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5509. bool is_message_owned)
  5510. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5511. SharedCtor();
  5512. if (!is_message_owned) {
  5513. RegisterArenaDtor(arena);
  5514. }
  5515. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  5516. }
  5517. SCRep::SCRep(const SCRep& from)
  5518. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5519. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5520. ::memcpy(&desc_, &from.desc_,
  5521. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5522. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5523. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  5524. }
  5525. inline void SCRep::SharedCtor() {
  5526. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5527. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5528. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5529. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5530. }
  5531. SCRep::~SCRep() {
  5532. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  5533. if (GetArenaForAllocation() != nullptr) return;
  5534. SharedDtor();
  5535. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5536. }
  5537. inline void SCRep::SharedDtor() {
  5538. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5539. }
  5540. void SCRep::ArenaDtor(void* object) {
  5541. SCRep* _this = reinterpret_cast< SCRep* >(object);
  5542. (void)_this;
  5543. }
  5544. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5545. }
  5546. void SCRep::SetCachedSize(int size) const {
  5547. _cached_size_.Set(size);
  5548. }
  5549. void SCRep::Clear() {
  5550. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  5551. uint32_t cached_has_bits = 0;
  5552. // Prevent compiler warnings about cached_has_bits being unused
  5553. (void) cached_has_bits;
  5554. ::memset(&desc_, 0, static_cast<size_t>(
  5555. reinterpret_cast<char*>(&peer_) -
  5556. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5557. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5558. }
  5559. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5560. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5561. while (!ctx->Done(&ptr)) {
  5562. uint32_t tag;
  5563. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5564. switch (tag >> 3) {
  5565. // .RemoNet.VideoDesc desc = 1;
  5566. case 1:
  5567. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5568. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5569. CHK_(ptr);
  5570. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5571. } else
  5572. goto handle_unusual;
  5573. continue;
  5574. // int32 index = 2;
  5575. case 2:
  5576. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5577. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5578. CHK_(ptr);
  5579. } else
  5580. goto handle_unusual;
  5581. continue;
  5582. // int32 egotype = 3;
  5583. case 3:
  5584. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5585. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5586. CHK_(ptr);
  5587. } else
  5588. goto handle_unusual;
  5589. continue;
  5590. // int32 peer = 4;
  5591. case 4:
  5592. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5593. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5594. CHK_(ptr);
  5595. } else
  5596. goto handle_unusual;
  5597. continue;
  5598. default:
  5599. goto handle_unusual;
  5600. } // switch
  5601. handle_unusual:
  5602. if ((tag == 0) || ((tag & 7) == 4)) {
  5603. CHK_(ptr);
  5604. ctx->SetLastTag(tag);
  5605. goto message_done;
  5606. }
  5607. ptr = UnknownFieldParse(
  5608. tag,
  5609. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5610. ptr, ctx);
  5611. CHK_(ptr != nullptr);
  5612. } // while
  5613. message_done:
  5614. return ptr;
  5615. failure:
  5616. ptr = nullptr;
  5617. goto message_done;
  5618. #undef CHK_
  5619. }
  5620. uint8_t* SCRep::_InternalSerialize(
  5621. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5622. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  5623. uint32_t cached_has_bits = 0;
  5624. (void) cached_has_bits;
  5625. // .RemoNet.VideoDesc desc = 1;
  5626. if (this->_internal_desc() != 0) {
  5627. target = stream->EnsureSpace(target);
  5628. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5629. 1, this->_internal_desc(), target);
  5630. }
  5631. // int32 index = 2;
  5632. if (this->_internal_index() != 0) {
  5633. target = stream->EnsureSpace(target);
  5634. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5635. }
  5636. // int32 egotype = 3;
  5637. if (this->_internal_egotype() != 0) {
  5638. target = stream->EnsureSpace(target);
  5639. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5640. }
  5641. // int32 peer = 4;
  5642. if (this->_internal_peer() != 0) {
  5643. target = stream->EnsureSpace(target);
  5644. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  5645. }
  5646. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5647. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5648. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5649. }
  5650. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  5651. return target;
  5652. }
  5653. size_t SCRep::ByteSizeLong() const {
  5654. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  5655. size_t total_size = 0;
  5656. uint32_t cached_has_bits = 0;
  5657. // Prevent compiler warnings about cached_has_bits being unused
  5658. (void) cached_has_bits;
  5659. // .RemoNet.VideoDesc desc = 1;
  5660. if (this->_internal_desc() != 0) {
  5661. total_size += 1 +
  5662. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5663. }
  5664. // int32 index = 2;
  5665. if (this->_internal_index() != 0) {
  5666. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5667. }
  5668. // int32 egotype = 3;
  5669. if (this->_internal_egotype() != 0) {
  5670. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5671. }
  5672. // int32 peer = 4;
  5673. if (this->_internal_peer() != 0) {
  5674. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5675. }
  5676. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5677. }
  5678. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  5679. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5680. SCRep::MergeImpl
  5681. };
  5682. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  5683. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5684. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5685. static_cast<SCRep *>(to)->MergeFrom(
  5686. static_cast<const SCRep &>(from));
  5687. }
  5688. void SCRep::MergeFrom(const SCRep& from) {
  5689. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  5690. GOOGLE_DCHECK_NE(&from, this);
  5691. uint32_t cached_has_bits = 0;
  5692. (void) cached_has_bits;
  5693. if (from._internal_desc() != 0) {
  5694. _internal_set_desc(from._internal_desc());
  5695. }
  5696. if (from._internal_index() != 0) {
  5697. _internal_set_index(from._internal_index());
  5698. }
  5699. if (from._internal_egotype() != 0) {
  5700. _internal_set_egotype(from._internal_egotype());
  5701. }
  5702. if (from._internal_peer() != 0) {
  5703. _internal_set_peer(from._internal_peer());
  5704. }
  5705. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5706. }
  5707. void SCRep::CopyFrom(const SCRep& from) {
  5708. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  5709. if (&from == this) return;
  5710. Clear();
  5711. MergeFrom(from);
  5712. }
  5713. bool SCRep::IsInitialized() const {
  5714. return true;
  5715. }
  5716. void SCRep::InternalSwap(SCRep* other) {
  5717. using std::swap;
  5718. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5719. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5720. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  5721. + sizeof(SCRep::peer_)
  5722. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  5723. reinterpret_cast<char*>(&desc_),
  5724. reinterpret_cast<char*>(&other->desc_));
  5725. }
  5726. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  5727. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5728. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5729. file_level_metadata_protocol_2eproto[20]);
  5730. }
  5731. // ===================================================================
  5732. class Offer::_Internal {
  5733. public:
  5734. };
  5735. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5736. bool is_message_owned)
  5737. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5738. SharedCtor();
  5739. if (!is_message_owned) {
  5740. RegisterArenaDtor(arena);
  5741. }
  5742. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  5743. }
  5744. Offer::Offer(const Offer& from)
  5745. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5746. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5747. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5748. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5749. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5750. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5751. if (!from._internal_type().empty()) {
  5752. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5753. GetArenaForAllocation());
  5754. }
  5755. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5756. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5757. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5758. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5759. if (!from._internal_sdp().empty()) {
  5760. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5761. GetArenaForAllocation());
  5762. }
  5763. ::memcpy(&index_, &from.index_,
  5764. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5765. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5766. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  5767. }
  5768. inline void Offer::SharedCtor() {
  5769. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5770. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5771. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5772. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5773. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5774. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5775. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5776. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5777. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5778. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5779. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5780. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5781. }
  5782. Offer::~Offer() {
  5783. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  5784. if (GetArenaForAllocation() != nullptr) return;
  5785. SharedDtor();
  5786. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5787. }
  5788. inline void Offer::SharedDtor() {
  5789. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5790. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5791. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5792. }
  5793. void Offer::ArenaDtor(void* object) {
  5794. Offer* _this = reinterpret_cast< Offer* >(object);
  5795. (void)_this;
  5796. }
  5797. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5798. }
  5799. void Offer::SetCachedSize(int size) const {
  5800. _cached_size_.Set(size);
  5801. }
  5802. void Offer::Clear() {
  5803. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  5804. uint32_t cached_has_bits = 0;
  5805. // Prevent compiler warnings about cached_has_bits being unused
  5806. (void) cached_has_bits;
  5807. type_.ClearToEmpty();
  5808. sdp_.ClearToEmpty();
  5809. ::memset(&index_, 0, static_cast<size_t>(
  5810. reinterpret_cast<char*>(&peer_) -
  5811. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5812. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5813. }
  5814. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5815. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5816. while (!ctx->Done(&ptr)) {
  5817. uint32_t tag;
  5818. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5819. switch (tag >> 3) {
  5820. // int32 index = 1;
  5821. case 1:
  5822. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5823. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5824. CHK_(ptr);
  5825. } else
  5826. goto handle_unusual;
  5827. continue;
  5828. // int32 peer = 2;
  5829. case 2:
  5830. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5831. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5832. CHK_(ptr);
  5833. } else
  5834. goto handle_unusual;
  5835. continue;
  5836. // string type = 3;
  5837. case 3:
  5838. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5839. auto str = _internal_mutable_type();
  5840. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5841. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  5842. CHK_(ptr);
  5843. } else
  5844. goto handle_unusual;
  5845. continue;
  5846. // string sdp = 4;
  5847. case 4:
  5848. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  5849. auto str = _internal_mutable_sdp();
  5850. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5851. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  5852. CHK_(ptr);
  5853. } else
  5854. goto handle_unusual;
  5855. continue;
  5856. default:
  5857. goto handle_unusual;
  5858. } // switch
  5859. handle_unusual:
  5860. if ((tag == 0) || ((tag & 7) == 4)) {
  5861. CHK_(ptr);
  5862. ctx->SetLastTag(tag);
  5863. goto message_done;
  5864. }
  5865. ptr = UnknownFieldParse(
  5866. tag,
  5867. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5868. ptr, ctx);
  5869. CHK_(ptr != nullptr);
  5870. } // while
  5871. message_done:
  5872. return ptr;
  5873. failure:
  5874. ptr = nullptr;
  5875. goto message_done;
  5876. #undef CHK_
  5877. }
  5878. uint8_t* Offer::_InternalSerialize(
  5879. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5880. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  5881. uint32_t cached_has_bits = 0;
  5882. (void) cached_has_bits;
  5883. // int32 index = 1;
  5884. if (this->_internal_index() != 0) {
  5885. target = stream->EnsureSpace(target);
  5886. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  5887. }
  5888. // int32 peer = 2;
  5889. if (this->_internal_peer() != 0) {
  5890. target = stream->EnsureSpace(target);
  5891. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5892. }
  5893. // string type = 3;
  5894. if (!this->_internal_type().empty()) {
  5895. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5896. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  5897. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5898. "RemoNet.Offer.type");
  5899. target = stream->WriteStringMaybeAliased(
  5900. 3, this->_internal_type(), target);
  5901. }
  5902. // string sdp = 4;
  5903. if (!this->_internal_sdp().empty()) {
  5904. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5905. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  5906. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5907. "RemoNet.Offer.sdp");
  5908. target = stream->WriteStringMaybeAliased(
  5909. 4, this->_internal_sdp(), target);
  5910. }
  5911. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5912. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5913. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5914. }
  5915. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  5916. return target;
  5917. }
  5918. size_t Offer::ByteSizeLong() const {
  5919. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  5920. size_t total_size = 0;
  5921. uint32_t cached_has_bits = 0;
  5922. // Prevent compiler warnings about cached_has_bits being unused
  5923. (void) cached_has_bits;
  5924. // string type = 3;
  5925. if (!this->_internal_type().empty()) {
  5926. total_size += 1 +
  5927. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5928. this->_internal_type());
  5929. }
  5930. // string sdp = 4;
  5931. if (!this->_internal_sdp().empty()) {
  5932. total_size += 1 +
  5933. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5934. this->_internal_sdp());
  5935. }
  5936. // int32 index = 1;
  5937. if (this->_internal_index() != 0) {
  5938. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5939. }
  5940. // int32 peer = 2;
  5941. if (this->_internal_peer() != 0) {
  5942. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5943. }
  5944. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5945. }
  5946. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  5947. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5948. Offer::MergeImpl
  5949. };
  5950. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  5951. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5952. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5953. static_cast<Offer *>(to)->MergeFrom(
  5954. static_cast<const Offer &>(from));
  5955. }
  5956. void Offer::MergeFrom(const Offer& from) {
  5957. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  5958. GOOGLE_DCHECK_NE(&from, this);
  5959. uint32_t cached_has_bits = 0;
  5960. (void) cached_has_bits;
  5961. if (!from._internal_type().empty()) {
  5962. _internal_set_type(from._internal_type());
  5963. }
  5964. if (!from._internal_sdp().empty()) {
  5965. _internal_set_sdp(from._internal_sdp());
  5966. }
  5967. if (from._internal_index() != 0) {
  5968. _internal_set_index(from._internal_index());
  5969. }
  5970. if (from._internal_peer() != 0) {
  5971. _internal_set_peer(from._internal_peer());
  5972. }
  5973. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5974. }
  5975. void Offer::CopyFrom(const Offer& from) {
  5976. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  5977. if (&from == this) return;
  5978. Clear();
  5979. MergeFrom(from);
  5980. }
  5981. bool Offer::IsInitialized() const {
  5982. return true;
  5983. }
  5984. void Offer::InternalSwap(Offer* other) {
  5985. using std::swap;
  5986. auto* lhs_arena = GetArenaForAllocation();
  5987. auto* rhs_arena = other->GetArenaForAllocation();
  5988. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5989. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5990. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5991. &type_, lhs_arena,
  5992. &other->type_, rhs_arena
  5993. );
  5994. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5995. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5996. &sdp_, lhs_arena,
  5997. &other->sdp_, rhs_arena
  5998. );
  5999. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6000. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  6001. + sizeof(Offer::peer_)
  6002. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  6003. reinterpret_cast<char*>(&index_),
  6004. reinterpret_cast<char*>(&other->index_));
  6005. }
  6006. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  6007. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6008. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6009. file_level_metadata_protocol_2eproto[21]);
  6010. }
  6011. // ===================================================================
  6012. class Answer::_Internal {
  6013. public:
  6014. };
  6015. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6016. bool is_message_owned)
  6017. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6018. SharedCtor();
  6019. if (!is_message_owned) {
  6020. RegisterArenaDtor(arena);
  6021. }
  6022. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  6023. }
  6024. Answer::Answer(const Answer& from)
  6025. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6026. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6027. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6028. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6029. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6030. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6031. if (!from._internal_type().empty()) {
  6032. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6033. GetArenaForAllocation());
  6034. }
  6035. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6036. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6037. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6038. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6039. if (!from._internal_sdp().empty()) {
  6040. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  6041. GetArenaForAllocation());
  6042. }
  6043. ::memcpy(&index_, &from.index_,
  6044. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6045. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6046. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  6047. }
  6048. inline void Answer::SharedCtor() {
  6049. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6050. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6051. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6052. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6053. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6054. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6055. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6056. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6057. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6058. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6059. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6060. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6061. }
  6062. Answer::~Answer() {
  6063. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  6064. if (GetArenaForAllocation() != nullptr) return;
  6065. SharedDtor();
  6066. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6067. }
  6068. inline void Answer::SharedDtor() {
  6069. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6070. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6071. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6072. }
  6073. void Answer::ArenaDtor(void* object) {
  6074. Answer* _this = reinterpret_cast< Answer* >(object);
  6075. (void)_this;
  6076. }
  6077. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6078. }
  6079. void Answer::SetCachedSize(int size) const {
  6080. _cached_size_.Set(size);
  6081. }
  6082. void Answer::Clear() {
  6083. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  6084. uint32_t cached_has_bits = 0;
  6085. // Prevent compiler warnings about cached_has_bits being unused
  6086. (void) cached_has_bits;
  6087. type_.ClearToEmpty();
  6088. sdp_.ClearToEmpty();
  6089. ::memset(&index_, 0, static_cast<size_t>(
  6090. reinterpret_cast<char*>(&peer_) -
  6091. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6092. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6093. }
  6094. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6095. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6096. while (!ctx->Done(&ptr)) {
  6097. uint32_t tag;
  6098. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6099. switch (tag >> 3) {
  6100. // int32 index = 1;
  6101. case 1:
  6102. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6103. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6104. CHK_(ptr);
  6105. } else
  6106. goto handle_unusual;
  6107. continue;
  6108. // int32 peer = 2;
  6109. case 2:
  6110. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6111. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6112. CHK_(ptr);
  6113. } else
  6114. goto handle_unusual;
  6115. continue;
  6116. // string type = 3;
  6117. case 3:
  6118. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6119. auto str = _internal_mutable_type();
  6120. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6121. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  6122. CHK_(ptr);
  6123. } else
  6124. goto handle_unusual;
  6125. continue;
  6126. // string sdp = 4;
  6127. case 4:
  6128. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6129. auto str = _internal_mutable_sdp();
  6130. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6131. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  6132. CHK_(ptr);
  6133. } else
  6134. goto handle_unusual;
  6135. continue;
  6136. default:
  6137. goto handle_unusual;
  6138. } // switch
  6139. handle_unusual:
  6140. if ((tag == 0) || ((tag & 7) == 4)) {
  6141. CHK_(ptr);
  6142. ctx->SetLastTag(tag);
  6143. goto message_done;
  6144. }
  6145. ptr = UnknownFieldParse(
  6146. tag,
  6147. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6148. ptr, ctx);
  6149. CHK_(ptr != nullptr);
  6150. } // while
  6151. message_done:
  6152. return ptr;
  6153. failure:
  6154. ptr = nullptr;
  6155. goto message_done;
  6156. #undef CHK_
  6157. }
  6158. uint8_t* Answer::_InternalSerialize(
  6159. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6160. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  6161. uint32_t cached_has_bits = 0;
  6162. (void) cached_has_bits;
  6163. // int32 index = 1;
  6164. if (this->_internal_index() != 0) {
  6165. target = stream->EnsureSpace(target);
  6166. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6167. }
  6168. // int32 peer = 2;
  6169. if (this->_internal_peer() != 0) {
  6170. target = stream->EnsureSpace(target);
  6171. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6172. }
  6173. // string type = 3;
  6174. if (!this->_internal_type().empty()) {
  6175. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6176. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6177. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6178. "RemoNet.Answer.type");
  6179. target = stream->WriteStringMaybeAliased(
  6180. 3, this->_internal_type(), target);
  6181. }
  6182. // string sdp = 4;
  6183. if (!this->_internal_sdp().empty()) {
  6184. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6185. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6186. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6187. "RemoNet.Answer.sdp");
  6188. target = stream->WriteStringMaybeAliased(
  6189. 4, this->_internal_sdp(), target);
  6190. }
  6191. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6192. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6193. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6194. }
  6195. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  6196. return target;
  6197. }
  6198. size_t Answer::ByteSizeLong() const {
  6199. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  6200. size_t total_size = 0;
  6201. uint32_t cached_has_bits = 0;
  6202. // Prevent compiler warnings about cached_has_bits being unused
  6203. (void) cached_has_bits;
  6204. // string type = 3;
  6205. if (!this->_internal_type().empty()) {
  6206. total_size += 1 +
  6207. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6208. this->_internal_type());
  6209. }
  6210. // string sdp = 4;
  6211. if (!this->_internal_sdp().empty()) {
  6212. total_size += 1 +
  6213. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6214. this->_internal_sdp());
  6215. }
  6216. // int32 index = 1;
  6217. if (this->_internal_index() != 0) {
  6218. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6219. }
  6220. // int32 peer = 2;
  6221. if (this->_internal_peer() != 0) {
  6222. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6223. }
  6224. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6225. }
  6226. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  6227. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6228. Answer::MergeImpl
  6229. };
  6230. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  6231. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6232. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6233. static_cast<Answer *>(to)->MergeFrom(
  6234. static_cast<const Answer &>(from));
  6235. }
  6236. void Answer::MergeFrom(const Answer& from) {
  6237. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  6238. GOOGLE_DCHECK_NE(&from, this);
  6239. uint32_t cached_has_bits = 0;
  6240. (void) cached_has_bits;
  6241. if (!from._internal_type().empty()) {
  6242. _internal_set_type(from._internal_type());
  6243. }
  6244. if (!from._internal_sdp().empty()) {
  6245. _internal_set_sdp(from._internal_sdp());
  6246. }
  6247. if (from._internal_index() != 0) {
  6248. _internal_set_index(from._internal_index());
  6249. }
  6250. if (from._internal_peer() != 0) {
  6251. _internal_set_peer(from._internal_peer());
  6252. }
  6253. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6254. }
  6255. void Answer::CopyFrom(const Answer& from) {
  6256. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  6257. if (&from == this) return;
  6258. Clear();
  6259. MergeFrom(from);
  6260. }
  6261. bool Answer::IsInitialized() const {
  6262. return true;
  6263. }
  6264. void Answer::InternalSwap(Answer* other) {
  6265. using std::swap;
  6266. auto* lhs_arena = GetArenaForAllocation();
  6267. auto* rhs_arena = other->GetArenaForAllocation();
  6268. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6269. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6270. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6271. &type_, lhs_arena,
  6272. &other->type_, rhs_arena
  6273. );
  6274. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6275. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6276. &sdp_, lhs_arena,
  6277. &other->sdp_, rhs_arena
  6278. );
  6279. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6280. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  6281. + sizeof(Answer::peer_)
  6282. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  6283. reinterpret_cast<char*>(&index_),
  6284. reinterpret_cast<char*>(&other->index_));
  6285. }
  6286. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  6287. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6288. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6289. file_level_metadata_protocol_2eproto[22]);
  6290. }
  6291. // ===================================================================
  6292. class Candidate::_Internal {
  6293. public:
  6294. };
  6295. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6296. bool is_message_owned)
  6297. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6298. SharedCtor();
  6299. if (!is_message_owned) {
  6300. RegisterArenaDtor(arena);
  6301. }
  6302. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  6303. }
  6304. Candidate::Candidate(const Candidate& from)
  6305. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6306. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6307. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6308. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6309. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6310. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6311. if (!from._internal_type().empty()) {
  6312. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6313. GetArenaForAllocation());
  6314. }
  6315. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6316. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6317. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6318. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6319. if (!from._internal_candidate().empty()) {
  6320. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  6321. GetArenaForAllocation());
  6322. }
  6323. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6324. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6325. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6326. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6327. if (!from._internal_sdpmid().empty()) {
  6328. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  6329. GetArenaForAllocation());
  6330. }
  6331. ::memcpy(&index_, &from.index_,
  6332. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6333. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6334. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  6335. }
  6336. inline void Candidate::SharedCtor() {
  6337. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6338. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6339. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6340. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6341. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6342. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6343. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6344. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6345. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6346. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6347. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6348. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6349. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6350. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6351. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6352. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6353. }
  6354. Candidate::~Candidate() {
  6355. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  6356. if (GetArenaForAllocation() != nullptr) return;
  6357. SharedDtor();
  6358. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6359. }
  6360. inline void Candidate::SharedDtor() {
  6361. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6362. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6363. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6364. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6365. }
  6366. void Candidate::ArenaDtor(void* object) {
  6367. Candidate* _this = reinterpret_cast< Candidate* >(object);
  6368. (void)_this;
  6369. }
  6370. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6371. }
  6372. void Candidate::SetCachedSize(int size) const {
  6373. _cached_size_.Set(size);
  6374. }
  6375. void Candidate::Clear() {
  6376. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  6377. uint32_t cached_has_bits = 0;
  6378. // Prevent compiler warnings about cached_has_bits being unused
  6379. (void) cached_has_bits;
  6380. type_.ClearToEmpty();
  6381. candidate_.ClearToEmpty();
  6382. sdpmid_.ClearToEmpty();
  6383. ::memset(&index_, 0, static_cast<size_t>(
  6384. reinterpret_cast<char*>(&egotype_) -
  6385. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6386. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6387. }
  6388. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6389. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6390. while (!ctx->Done(&ptr)) {
  6391. uint32_t tag;
  6392. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6393. switch (tag >> 3) {
  6394. // int32 index = 1;
  6395. case 1:
  6396. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6397. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6398. CHK_(ptr);
  6399. } else
  6400. goto handle_unusual;
  6401. continue;
  6402. // int32 peer = 2;
  6403. case 2:
  6404. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6405. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6406. CHK_(ptr);
  6407. } else
  6408. goto handle_unusual;
  6409. continue;
  6410. // string type = 3;
  6411. case 3:
  6412. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6413. auto str = _internal_mutable_type();
  6414. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6415. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  6416. CHK_(ptr);
  6417. } else
  6418. goto handle_unusual;
  6419. continue;
  6420. // string candidate = 4;
  6421. case 4:
  6422. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6423. auto str = _internal_mutable_candidate();
  6424. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6425. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  6426. CHK_(ptr);
  6427. } else
  6428. goto handle_unusual;
  6429. continue;
  6430. // int32 sdpMLineIndex = 5;
  6431. case 5:
  6432. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6433. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6434. CHK_(ptr);
  6435. } else
  6436. goto handle_unusual;
  6437. continue;
  6438. // string sdpMid = 6;
  6439. case 6:
  6440. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  6441. auto str = _internal_mutable_sdpmid();
  6442. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6443. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  6444. CHK_(ptr);
  6445. } else
  6446. goto handle_unusual;
  6447. continue;
  6448. // int32 egotype = 7;
  6449. case 7:
  6450. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6451. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6452. CHK_(ptr);
  6453. } else
  6454. goto handle_unusual;
  6455. continue;
  6456. default:
  6457. goto handle_unusual;
  6458. } // switch
  6459. handle_unusual:
  6460. if ((tag == 0) || ((tag & 7) == 4)) {
  6461. CHK_(ptr);
  6462. ctx->SetLastTag(tag);
  6463. goto message_done;
  6464. }
  6465. ptr = UnknownFieldParse(
  6466. tag,
  6467. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6468. ptr, ctx);
  6469. CHK_(ptr != nullptr);
  6470. } // while
  6471. message_done:
  6472. return ptr;
  6473. failure:
  6474. ptr = nullptr;
  6475. goto message_done;
  6476. #undef CHK_
  6477. }
  6478. uint8_t* Candidate::_InternalSerialize(
  6479. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6480. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  6481. uint32_t cached_has_bits = 0;
  6482. (void) cached_has_bits;
  6483. // int32 index = 1;
  6484. if (this->_internal_index() != 0) {
  6485. target = stream->EnsureSpace(target);
  6486. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6487. }
  6488. // int32 peer = 2;
  6489. if (this->_internal_peer() != 0) {
  6490. target = stream->EnsureSpace(target);
  6491. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6492. }
  6493. // string type = 3;
  6494. if (!this->_internal_type().empty()) {
  6495. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6496. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6497. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6498. "RemoNet.Candidate.type");
  6499. target = stream->WriteStringMaybeAliased(
  6500. 3, this->_internal_type(), target);
  6501. }
  6502. // string candidate = 4;
  6503. if (!this->_internal_candidate().empty()) {
  6504. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6505. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  6506. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6507. "RemoNet.Candidate.candidate");
  6508. target = stream->WriteStringMaybeAliased(
  6509. 4, this->_internal_candidate(), target);
  6510. }
  6511. // int32 sdpMLineIndex = 5;
  6512. if (this->_internal_sdpmlineindex() != 0) {
  6513. target = stream->EnsureSpace(target);
  6514. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  6515. }
  6516. // string sdpMid = 6;
  6517. if (!this->_internal_sdpmid().empty()) {
  6518. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6519. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  6520. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6521. "RemoNet.Candidate.sdpMid");
  6522. target = stream->WriteStringMaybeAliased(
  6523. 6, this->_internal_sdpmid(), target);
  6524. }
  6525. // int32 egotype = 7;
  6526. if (this->_internal_egotype() != 0) {
  6527. target = stream->EnsureSpace(target);
  6528. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  6529. }
  6530. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6531. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6532. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6533. }
  6534. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  6535. return target;
  6536. }
  6537. size_t Candidate::ByteSizeLong() const {
  6538. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  6539. size_t total_size = 0;
  6540. uint32_t cached_has_bits = 0;
  6541. // Prevent compiler warnings about cached_has_bits being unused
  6542. (void) cached_has_bits;
  6543. // string type = 3;
  6544. if (!this->_internal_type().empty()) {
  6545. total_size += 1 +
  6546. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6547. this->_internal_type());
  6548. }
  6549. // string candidate = 4;
  6550. if (!this->_internal_candidate().empty()) {
  6551. total_size += 1 +
  6552. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6553. this->_internal_candidate());
  6554. }
  6555. // string sdpMid = 6;
  6556. if (!this->_internal_sdpmid().empty()) {
  6557. total_size += 1 +
  6558. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6559. this->_internal_sdpmid());
  6560. }
  6561. // int32 index = 1;
  6562. if (this->_internal_index() != 0) {
  6563. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6564. }
  6565. // int32 peer = 2;
  6566. if (this->_internal_peer() != 0) {
  6567. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6568. }
  6569. // int32 sdpMLineIndex = 5;
  6570. if (this->_internal_sdpmlineindex() != 0) {
  6571. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  6572. }
  6573. // int32 egotype = 7;
  6574. if (this->_internal_egotype() != 0) {
  6575. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6576. }
  6577. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6578. }
  6579. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  6580. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6581. Candidate::MergeImpl
  6582. };
  6583. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  6584. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6585. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6586. static_cast<Candidate *>(to)->MergeFrom(
  6587. static_cast<const Candidate &>(from));
  6588. }
  6589. void Candidate::MergeFrom(const Candidate& from) {
  6590. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  6591. GOOGLE_DCHECK_NE(&from, this);
  6592. uint32_t cached_has_bits = 0;
  6593. (void) cached_has_bits;
  6594. if (!from._internal_type().empty()) {
  6595. _internal_set_type(from._internal_type());
  6596. }
  6597. if (!from._internal_candidate().empty()) {
  6598. _internal_set_candidate(from._internal_candidate());
  6599. }
  6600. if (!from._internal_sdpmid().empty()) {
  6601. _internal_set_sdpmid(from._internal_sdpmid());
  6602. }
  6603. if (from._internal_index() != 0) {
  6604. _internal_set_index(from._internal_index());
  6605. }
  6606. if (from._internal_peer() != 0) {
  6607. _internal_set_peer(from._internal_peer());
  6608. }
  6609. if (from._internal_sdpmlineindex() != 0) {
  6610. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  6611. }
  6612. if (from._internal_egotype() != 0) {
  6613. _internal_set_egotype(from._internal_egotype());
  6614. }
  6615. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6616. }
  6617. void Candidate::CopyFrom(const Candidate& from) {
  6618. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  6619. if (&from == this) return;
  6620. Clear();
  6621. MergeFrom(from);
  6622. }
  6623. bool Candidate::IsInitialized() const {
  6624. return true;
  6625. }
  6626. void Candidate::InternalSwap(Candidate* other) {
  6627. using std::swap;
  6628. auto* lhs_arena = GetArenaForAllocation();
  6629. auto* rhs_arena = other->GetArenaForAllocation();
  6630. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6631. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6632. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6633. &type_, lhs_arena,
  6634. &other->type_, rhs_arena
  6635. );
  6636. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6637. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6638. &candidate_, lhs_arena,
  6639. &other->candidate_, rhs_arena
  6640. );
  6641. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6642. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6643. &sdpmid_, lhs_arena,
  6644. &other->sdpmid_, rhs_arena
  6645. );
  6646. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6647. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  6648. + sizeof(Candidate::egotype_)
  6649. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  6650. reinterpret_cast<char*>(&index_),
  6651. reinterpret_cast<char*>(&other->index_));
  6652. }
  6653. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  6654. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6655. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6656. file_level_metadata_protocol_2eproto[23]);
  6657. }
  6658. // ===================================================================
  6659. class Leave::_Internal {
  6660. public:
  6661. };
  6662. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6663. bool is_message_owned)
  6664. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6665. SharedCtor();
  6666. if (!is_message_owned) {
  6667. RegisterArenaDtor(arena);
  6668. }
  6669. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  6670. }
  6671. Leave::Leave(const Leave& from)
  6672. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6673. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6674. ::memcpy(&peer_, &from.peer_,
  6675. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6676. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6677. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  6678. }
  6679. inline void Leave::SharedCtor() {
  6680. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6681. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6682. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6683. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6684. }
  6685. Leave::~Leave() {
  6686. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  6687. if (GetArenaForAllocation() != nullptr) return;
  6688. SharedDtor();
  6689. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6690. }
  6691. inline void Leave::SharedDtor() {
  6692. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6693. }
  6694. void Leave::ArenaDtor(void* object) {
  6695. Leave* _this = reinterpret_cast< Leave* >(object);
  6696. (void)_this;
  6697. }
  6698. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6699. }
  6700. void Leave::SetCachedSize(int size) const {
  6701. _cached_size_.Set(size);
  6702. }
  6703. void Leave::Clear() {
  6704. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  6705. uint32_t cached_has_bits = 0;
  6706. // Prevent compiler warnings about cached_has_bits being unused
  6707. (void) cached_has_bits;
  6708. ::memset(&peer_, 0, static_cast<size_t>(
  6709. reinterpret_cast<char*>(&egotype_) -
  6710. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6711. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6712. }
  6713. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6714. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6715. while (!ctx->Done(&ptr)) {
  6716. uint32_t tag;
  6717. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6718. switch (tag >> 3) {
  6719. // int32 peer = 1;
  6720. case 1:
  6721. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6722. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6723. CHK_(ptr);
  6724. } else
  6725. goto handle_unusual;
  6726. continue;
  6727. // int32 egotype = 2;
  6728. case 2:
  6729. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6730. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6731. CHK_(ptr);
  6732. } else
  6733. goto handle_unusual;
  6734. continue;
  6735. default:
  6736. goto handle_unusual;
  6737. } // switch
  6738. handle_unusual:
  6739. if ((tag == 0) || ((tag & 7) == 4)) {
  6740. CHK_(ptr);
  6741. ctx->SetLastTag(tag);
  6742. goto message_done;
  6743. }
  6744. ptr = UnknownFieldParse(
  6745. tag,
  6746. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6747. ptr, ctx);
  6748. CHK_(ptr != nullptr);
  6749. } // while
  6750. message_done:
  6751. return ptr;
  6752. failure:
  6753. ptr = nullptr;
  6754. goto message_done;
  6755. #undef CHK_
  6756. }
  6757. uint8_t* Leave::_InternalSerialize(
  6758. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6759. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  6760. uint32_t cached_has_bits = 0;
  6761. (void) cached_has_bits;
  6762. // int32 peer = 1;
  6763. if (this->_internal_peer() != 0) {
  6764. target = stream->EnsureSpace(target);
  6765. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6766. }
  6767. // int32 egotype = 2;
  6768. if (this->_internal_egotype() != 0) {
  6769. target = stream->EnsureSpace(target);
  6770. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6771. }
  6772. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6773. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6774. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6775. }
  6776. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  6777. return target;
  6778. }
  6779. size_t Leave::ByteSizeLong() const {
  6780. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  6781. size_t total_size = 0;
  6782. uint32_t cached_has_bits = 0;
  6783. // Prevent compiler warnings about cached_has_bits being unused
  6784. (void) cached_has_bits;
  6785. // int32 peer = 1;
  6786. if (this->_internal_peer() != 0) {
  6787. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6788. }
  6789. // int32 egotype = 2;
  6790. if (this->_internal_egotype() != 0) {
  6791. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6792. }
  6793. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6794. }
  6795. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  6796. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6797. Leave::MergeImpl
  6798. };
  6799. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  6800. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6801. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6802. static_cast<Leave *>(to)->MergeFrom(
  6803. static_cast<const Leave &>(from));
  6804. }
  6805. void Leave::MergeFrom(const Leave& from) {
  6806. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  6807. GOOGLE_DCHECK_NE(&from, this);
  6808. uint32_t cached_has_bits = 0;
  6809. (void) cached_has_bits;
  6810. if (from._internal_peer() != 0) {
  6811. _internal_set_peer(from._internal_peer());
  6812. }
  6813. if (from._internal_egotype() != 0) {
  6814. _internal_set_egotype(from._internal_egotype());
  6815. }
  6816. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6817. }
  6818. void Leave::CopyFrom(const Leave& from) {
  6819. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  6820. if (&from == this) return;
  6821. Clear();
  6822. MergeFrom(from);
  6823. }
  6824. bool Leave::IsInitialized() const {
  6825. return true;
  6826. }
  6827. void Leave::InternalSwap(Leave* other) {
  6828. using std::swap;
  6829. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6830. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6831. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  6832. + sizeof(Leave::egotype_)
  6833. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  6834. reinterpret_cast<char*>(&peer_),
  6835. reinterpret_cast<char*>(&other->peer_));
  6836. }
  6837. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  6838. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6839. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6840. file_level_metadata_protocol_2eproto[24]);
  6841. }
  6842. // ===================================================================
  6843. class Close::_Internal {
  6844. public:
  6845. };
  6846. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6847. bool is_message_owned)
  6848. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6849. SharedCtor();
  6850. if (!is_message_owned) {
  6851. RegisterArenaDtor(arena);
  6852. }
  6853. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  6854. }
  6855. Close::Close(const Close& from)
  6856. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6857. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6858. ::memcpy(&peer_, &from.peer_,
  6859. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6860. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6861. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  6862. }
  6863. inline void Close::SharedCtor() {
  6864. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6865. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6866. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6867. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6868. }
  6869. Close::~Close() {
  6870. // @@protoc_insertion_point(destructor:RemoNet.Close)
  6871. if (GetArenaForAllocation() != nullptr) return;
  6872. SharedDtor();
  6873. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6874. }
  6875. inline void Close::SharedDtor() {
  6876. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6877. }
  6878. void Close::ArenaDtor(void* object) {
  6879. Close* _this = reinterpret_cast< Close* >(object);
  6880. (void)_this;
  6881. }
  6882. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6883. }
  6884. void Close::SetCachedSize(int size) const {
  6885. _cached_size_.Set(size);
  6886. }
  6887. void Close::Clear() {
  6888. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  6889. uint32_t cached_has_bits = 0;
  6890. // Prevent compiler warnings about cached_has_bits being unused
  6891. (void) cached_has_bits;
  6892. ::memset(&peer_, 0, static_cast<size_t>(
  6893. reinterpret_cast<char*>(&index_) -
  6894. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6895. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6896. }
  6897. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6898. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6899. while (!ctx->Done(&ptr)) {
  6900. uint32_t tag;
  6901. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6902. switch (tag >> 3) {
  6903. // int32 peer = 1;
  6904. case 1:
  6905. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6906. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6907. CHK_(ptr);
  6908. } else
  6909. goto handle_unusual;
  6910. continue;
  6911. // int32 egotype = 2;
  6912. case 2:
  6913. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6914. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6915. CHK_(ptr);
  6916. } else
  6917. goto handle_unusual;
  6918. continue;
  6919. // int32 index = 3;
  6920. case 3:
  6921. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6922. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6923. CHK_(ptr);
  6924. } else
  6925. goto handle_unusual;
  6926. continue;
  6927. default:
  6928. goto handle_unusual;
  6929. } // switch
  6930. handle_unusual:
  6931. if ((tag == 0) || ((tag & 7) == 4)) {
  6932. CHK_(ptr);
  6933. ctx->SetLastTag(tag);
  6934. goto message_done;
  6935. }
  6936. ptr = UnknownFieldParse(
  6937. tag,
  6938. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6939. ptr, ctx);
  6940. CHK_(ptr != nullptr);
  6941. } // while
  6942. message_done:
  6943. return ptr;
  6944. failure:
  6945. ptr = nullptr;
  6946. goto message_done;
  6947. #undef CHK_
  6948. }
  6949. uint8_t* Close::_InternalSerialize(
  6950. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6951. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  6952. uint32_t cached_has_bits = 0;
  6953. (void) cached_has_bits;
  6954. // int32 peer = 1;
  6955. if (this->_internal_peer() != 0) {
  6956. target = stream->EnsureSpace(target);
  6957. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6958. }
  6959. // int32 egotype = 2;
  6960. if (this->_internal_egotype() != 0) {
  6961. target = stream->EnsureSpace(target);
  6962. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6963. }
  6964. // int32 index = 3;
  6965. if (this->_internal_index() != 0) {
  6966. target = stream->EnsureSpace(target);
  6967. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  6968. }
  6969. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6970. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6971. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6972. }
  6973. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  6974. return target;
  6975. }
  6976. size_t Close::ByteSizeLong() const {
  6977. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  6978. size_t total_size = 0;
  6979. uint32_t cached_has_bits = 0;
  6980. // Prevent compiler warnings about cached_has_bits being unused
  6981. (void) cached_has_bits;
  6982. // int32 peer = 1;
  6983. if (this->_internal_peer() != 0) {
  6984. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6985. }
  6986. // int32 egotype = 2;
  6987. if (this->_internal_egotype() != 0) {
  6988. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6989. }
  6990. // int32 index = 3;
  6991. if (this->_internal_index() != 0) {
  6992. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6993. }
  6994. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6995. }
  6996. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  6997. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6998. Close::MergeImpl
  6999. };
  7000. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  7001. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7002. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7003. static_cast<Close *>(to)->MergeFrom(
  7004. static_cast<const Close &>(from));
  7005. }
  7006. void Close::MergeFrom(const Close& from) {
  7007. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  7008. GOOGLE_DCHECK_NE(&from, this);
  7009. uint32_t cached_has_bits = 0;
  7010. (void) cached_has_bits;
  7011. if (from._internal_peer() != 0) {
  7012. _internal_set_peer(from._internal_peer());
  7013. }
  7014. if (from._internal_egotype() != 0) {
  7015. _internal_set_egotype(from._internal_egotype());
  7016. }
  7017. if (from._internal_index() != 0) {
  7018. _internal_set_index(from._internal_index());
  7019. }
  7020. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7021. }
  7022. void Close::CopyFrom(const Close& from) {
  7023. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  7024. if (&from == this) return;
  7025. Clear();
  7026. MergeFrom(from);
  7027. }
  7028. bool Close::IsInitialized() const {
  7029. return true;
  7030. }
  7031. void Close::InternalSwap(Close* other) {
  7032. using std::swap;
  7033. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7034. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7035. PROTOBUF_FIELD_OFFSET(Close, index_)
  7036. + sizeof(Close::index_)
  7037. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  7038. reinterpret_cast<char*>(&peer_),
  7039. reinterpret_cast<char*>(&other->peer_));
  7040. }
  7041. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  7042. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7043. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7044. file_level_metadata_protocol_2eproto[25]);
  7045. }
  7046. // ===================================================================
  7047. class TestTextReq::_Internal {
  7048. public:
  7049. };
  7050. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7051. bool is_message_owned)
  7052. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7053. SharedCtor();
  7054. if (!is_message_owned) {
  7055. RegisterArenaDtor(arena);
  7056. }
  7057. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  7058. }
  7059. TestTextReq::TestTextReq(const TestTextReq& from)
  7060. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7061. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7062. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7063. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7064. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7065. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7066. if (!from._internal_text().empty()) {
  7067. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  7068. GetArenaForAllocation());
  7069. }
  7070. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  7071. }
  7072. inline void TestTextReq::SharedCtor() {
  7073. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7074. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7075. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7076. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7077. }
  7078. TestTextReq::~TestTextReq() {
  7079. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  7080. if (GetArenaForAllocation() != nullptr) return;
  7081. SharedDtor();
  7082. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7083. }
  7084. inline void TestTextReq::SharedDtor() {
  7085. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7086. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7087. }
  7088. void TestTextReq::ArenaDtor(void* object) {
  7089. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  7090. (void)_this;
  7091. }
  7092. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7093. }
  7094. void TestTextReq::SetCachedSize(int size) const {
  7095. _cached_size_.Set(size);
  7096. }
  7097. void TestTextReq::Clear() {
  7098. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  7099. uint32_t cached_has_bits = 0;
  7100. // Prevent compiler warnings about cached_has_bits being unused
  7101. (void) cached_has_bits;
  7102. text_.ClearToEmpty();
  7103. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7104. }
  7105. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7106. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7107. while (!ctx->Done(&ptr)) {
  7108. uint32_t tag;
  7109. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7110. switch (tag >> 3) {
  7111. // string text = 1;
  7112. case 1:
  7113. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7114. auto str = _internal_mutable_text();
  7115. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7116. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  7117. CHK_(ptr);
  7118. } else
  7119. goto handle_unusual;
  7120. continue;
  7121. default:
  7122. goto handle_unusual;
  7123. } // switch
  7124. handle_unusual:
  7125. if ((tag == 0) || ((tag & 7) == 4)) {
  7126. CHK_(ptr);
  7127. ctx->SetLastTag(tag);
  7128. goto message_done;
  7129. }
  7130. ptr = UnknownFieldParse(
  7131. tag,
  7132. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7133. ptr, ctx);
  7134. CHK_(ptr != nullptr);
  7135. } // while
  7136. message_done:
  7137. return ptr;
  7138. failure:
  7139. ptr = nullptr;
  7140. goto message_done;
  7141. #undef CHK_
  7142. }
  7143. uint8_t* TestTextReq::_InternalSerialize(
  7144. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7145. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  7146. uint32_t cached_has_bits = 0;
  7147. (void) cached_has_bits;
  7148. // string text = 1;
  7149. if (!this->_internal_text().empty()) {
  7150. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7151. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  7152. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7153. "RemoNet.TestTextReq.text");
  7154. target = stream->WriteStringMaybeAliased(
  7155. 1, this->_internal_text(), target);
  7156. }
  7157. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7158. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7159. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7160. }
  7161. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  7162. return target;
  7163. }
  7164. size_t TestTextReq::ByteSizeLong() const {
  7165. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  7166. size_t total_size = 0;
  7167. uint32_t cached_has_bits = 0;
  7168. // Prevent compiler warnings about cached_has_bits being unused
  7169. (void) cached_has_bits;
  7170. // string text = 1;
  7171. if (!this->_internal_text().empty()) {
  7172. total_size += 1 +
  7173. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7174. this->_internal_text());
  7175. }
  7176. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7177. }
  7178. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  7179. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7180. TestTextReq::MergeImpl
  7181. };
  7182. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  7183. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7184. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7185. static_cast<TestTextReq *>(to)->MergeFrom(
  7186. static_cast<const TestTextReq &>(from));
  7187. }
  7188. void TestTextReq::MergeFrom(const TestTextReq& from) {
  7189. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  7190. GOOGLE_DCHECK_NE(&from, this);
  7191. uint32_t cached_has_bits = 0;
  7192. (void) cached_has_bits;
  7193. if (!from._internal_text().empty()) {
  7194. _internal_set_text(from._internal_text());
  7195. }
  7196. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7197. }
  7198. void TestTextReq::CopyFrom(const TestTextReq& from) {
  7199. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  7200. if (&from == this) return;
  7201. Clear();
  7202. MergeFrom(from);
  7203. }
  7204. bool TestTextReq::IsInitialized() const {
  7205. return true;
  7206. }
  7207. void TestTextReq::InternalSwap(TestTextReq* other) {
  7208. using std::swap;
  7209. auto* lhs_arena = GetArenaForAllocation();
  7210. auto* rhs_arena = other->GetArenaForAllocation();
  7211. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7212. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7213. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7214. &text_, lhs_arena,
  7215. &other->text_, rhs_arena
  7216. );
  7217. }
  7218. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  7219. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7220. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7221. file_level_metadata_protocol_2eproto[26]);
  7222. }
  7223. // ===================================================================
  7224. class SyncTime::_Internal {
  7225. public:
  7226. };
  7227. SyncTime::SyncTime(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7228. bool is_message_owned)
  7229. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7230. SharedCtor();
  7231. if (!is_message_owned) {
  7232. RegisterArenaDtor(arena);
  7233. }
  7234. // @@protoc_insertion_point(arena_constructor:RemoNet.SyncTime)
  7235. }
  7236. SyncTime::SyncTime(const SyncTime& from)
  7237. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7238. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7239. ::memcpy(&tm_sec_, &from.tm_sec_,
  7240. static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7241. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7242. // @@protoc_insertion_point(copy_constructor:RemoNet.SyncTime)
  7243. }
  7244. inline void SyncTime::SharedCtor() {
  7245. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7246. reinterpret_cast<char*>(&tm_sec_) - reinterpret_cast<char*>(this)),
  7247. 0, static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7248. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7249. }
  7250. SyncTime::~SyncTime() {
  7251. // @@protoc_insertion_point(destructor:RemoNet.SyncTime)
  7252. if (GetArenaForAllocation() != nullptr) return;
  7253. SharedDtor();
  7254. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7255. }
  7256. inline void SyncTime::SharedDtor() {
  7257. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7258. }
  7259. void SyncTime::ArenaDtor(void* object) {
  7260. SyncTime* _this = reinterpret_cast< SyncTime* >(object);
  7261. (void)_this;
  7262. }
  7263. void SyncTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7264. }
  7265. void SyncTime::SetCachedSize(int size) const {
  7266. _cached_size_.Set(size);
  7267. }
  7268. void SyncTime::Clear() {
  7269. // @@protoc_insertion_point(message_clear_start:RemoNet.SyncTime)
  7270. uint32_t cached_has_bits = 0;
  7271. // Prevent compiler warnings about cached_has_bits being unused
  7272. (void) cached_has_bits;
  7273. ::memset(&tm_sec_, 0, static_cast<size_t>(
  7274. reinterpret_cast<char*>(&update_time_) -
  7275. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7276. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7277. }
  7278. const char* SyncTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7279. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7280. while (!ctx->Done(&ptr)) {
  7281. uint32_t tag;
  7282. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7283. switch (tag >> 3) {
  7284. // int32 tm_sec = 1;
  7285. case 1:
  7286. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7287. tm_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7288. CHK_(ptr);
  7289. } else
  7290. goto handle_unusual;
  7291. continue;
  7292. // int32 tm_min = 2;
  7293. case 2:
  7294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7295. tm_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7296. CHK_(ptr);
  7297. } else
  7298. goto handle_unusual;
  7299. continue;
  7300. // int32 tm_hour = 3;
  7301. case 3:
  7302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7303. tm_hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7304. CHK_(ptr);
  7305. } else
  7306. goto handle_unusual;
  7307. continue;
  7308. // int32 tm_mday = 4;
  7309. case 4:
  7310. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7311. tm_mday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7312. CHK_(ptr);
  7313. } else
  7314. goto handle_unusual;
  7315. continue;
  7316. // int32 tm_mon = 5;
  7317. case 5:
  7318. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7319. tm_mon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7320. CHK_(ptr);
  7321. } else
  7322. goto handle_unusual;
  7323. continue;
  7324. // int32 tm_year = 6;
  7325. case 6:
  7326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7327. tm_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7328. CHK_(ptr);
  7329. } else
  7330. goto handle_unusual;
  7331. continue;
  7332. // int32 tm_wday = 7;
  7333. case 7:
  7334. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7335. tm_wday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7336. CHK_(ptr);
  7337. } else
  7338. goto handle_unusual;
  7339. continue;
  7340. // int32 tm_yday = 8;
  7341. case 8:
  7342. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7343. tm_yday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7344. CHK_(ptr);
  7345. } else
  7346. goto handle_unusual;
  7347. continue;
  7348. // int32 tm_isdst = 9;
  7349. case 9:
  7350. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7351. tm_isdst_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7352. CHK_(ptr);
  7353. } else
  7354. goto handle_unusual;
  7355. continue;
  7356. // bool update_time = 10;
  7357. case 10:
  7358. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7359. update_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7360. CHK_(ptr);
  7361. } else
  7362. goto handle_unusual;
  7363. continue;
  7364. default:
  7365. goto handle_unusual;
  7366. } // switch
  7367. handle_unusual:
  7368. if ((tag == 0) || ((tag & 7) == 4)) {
  7369. CHK_(ptr);
  7370. ctx->SetLastTag(tag);
  7371. goto message_done;
  7372. }
  7373. ptr = UnknownFieldParse(
  7374. tag,
  7375. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7376. ptr, ctx);
  7377. CHK_(ptr != nullptr);
  7378. } // while
  7379. message_done:
  7380. return ptr;
  7381. failure:
  7382. ptr = nullptr;
  7383. goto message_done;
  7384. #undef CHK_
  7385. }
  7386. uint8_t* SyncTime::_InternalSerialize(
  7387. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7388. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SyncTime)
  7389. uint32_t cached_has_bits = 0;
  7390. (void) cached_has_bits;
  7391. // int32 tm_sec = 1;
  7392. if (this->_internal_tm_sec() != 0) {
  7393. target = stream->EnsureSpace(target);
  7394. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_tm_sec(), target);
  7395. }
  7396. // int32 tm_min = 2;
  7397. if (this->_internal_tm_min() != 0) {
  7398. target = stream->EnsureSpace(target);
  7399. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_tm_min(), target);
  7400. }
  7401. // int32 tm_hour = 3;
  7402. if (this->_internal_tm_hour() != 0) {
  7403. target = stream->EnsureSpace(target);
  7404. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_tm_hour(), target);
  7405. }
  7406. // int32 tm_mday = 4;
  7407. if (this->_internal_tm_mday() != 0) {
  7408. target = stream->EnsureSpace(target);
  7409. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_tm_mday(), target);
  7410. }
  7411. // int32 tm_mon = 5;
  7412. if (this->_internal_tm_mon() != 0) {
  7413. target = stream->EnsureSpace(target);
  7414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_tm_mon(), target);
  7415. }
  7416. // int32 tm_year = 6;
  7417. if (this->_internal_tm_year() != 0) {
  7418. target = stream->EnsureSpace(target);
  7419. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tm_year(), target);
  7420. }
  7421. // int32 tm_wday = 7;
  7422. if (this->_internal_tm_wday() != 0) {
  7423. target = stream->EnsureSpace(target);
  7424. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_tm_wday(), target);
  7425. }
  7426. // int32 tm_yday = 8;
  7427. if (this->_internal_tm_yday() != 0) {
  7428. target = stream->EnsureSpace(target);
  7429. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_tm_yday(), target);
  7430. }
  7431. // int32 tm_isdst = 9;
  7432. if (this->_internal_tm_isdst() != 0) {
  7433. target = stream->EnsureSpace(target);
  7434. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tm_isdst(), target);
  7435. }
  7436. // bool update_time = 10;
  7437. if (this->_internal_update_time() != 0) {
  7438. target = stream->EnsureSpace(target);
  7439. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_update_time(), target);
  7440. }
  7441. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7443. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7444. }
  7445. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SyncTime)
  7446. return target;
  7447. }
  7448. size_t SyncTime::ByteSizeLong() const {
  7449. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SyncTime)
  7450. size_t total_size = 0;
  7451. uint32_t cached_has_bits = 0;
  7452. // Prevent compiler warnings about cached_has_bits being unused
  7453. (void) cached_has_bits;
  7454. // int32 tm_sec = 1;
  7455. if (this->_internal_tm_sec() != 0) {
  7456. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_sec());
  7457. }
  7458. // int32 tm_min = 2;
  7459. if (this->_internal_tm_min() != 0) {
  7460. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_min());
  7461. }
  7462. // int32 tm_hour = 3;
  7463. if (this->_internal_tm_hour() != 0) {
  7464. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_hour());
  7465. }
  7466. // int32 tm_mday = 4;
  7467. if (this->_internal_tm_mday() != 0) {
  7468. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mday());
  7469. }
  7470. // int32 tm_mon = 5;
  7471. if (this->_internal_tm_mon() != 0) {
  7472. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mon());
  7473. }
  7474. // int32 tm_year = 6;
  7475. if (this->_internal_tm_year() != 0) {
  7476. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_year());
  7477. }
  7478. // int32 tm_wday = 7;
  7479. if (this->_internal_tm_wday() != 0) {
  7480. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_wday());
  7481. }
  7482. // int32 tm_yday = 8;
  7483. if (this->_internal_tm_yday() != 0) {
  7484. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_yday());
  7485. }
  7486. // int32 tm_isdst = 9;
  7487. if (this->_internal_tm_isdst() != 0) {
  7488. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_isdst());
  7489. }
  7490. // bool update_time = 10;
  7491. if (this->_internal_update_time() != 0) {
  7492. total_size += 1 + 1;
  7493. }
  7494. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7495. }
  7496. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncTime::_class_data_ = {
  7497. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7498. SyncTime::MergeImpl
  7499. };
  7500. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncTime::GetClassData() const { return &_class_data_; }
  7501. void SyncTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7502. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7503. static_cast<SyncTime *>(to)->MergeFrom(
  7504. static_cast<const SyncTime &>(from));
  7505. }
  7506. void SyncTime::MergeFrom(const SyncTime& from) {
  7507. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SyncTime)
  7508. GOOGLE_DCHECK_NE(&from, this);
  7509. uint32_t cached_has_bits = 0;
  7510. (void) cached_has_bits;
  7511. if (from._internal_tm_sec() != 0) {
  7512. _internal_set_tm_sec(from._internal_tm_sec());
  7513. }
  7514. if (from._internal_tm_min() != 0) {
  7515. _internal_set_tm_min(from._internal_tm_min());
  7516. }
  7517. if (from._internal_tm_hour() != 0) {
  7518. _internal_set_tm_hour(from._internal_tm_hour());
  7519. }
  7520. if (from._internal_tm_mday() != 0) {
  7521. _internal_set_tm_mday(from._internal_tm_mday());
  7522. }
  7523. if (from._internal_tm_mon() != 0) {
  7524. _internal_set_tm_mon(from._internal_tm_mon());
  7525. }
  7526. if (from._internal_tm_year() != 0) {
  7527. _internal_set_tm_year(from._internal_tm_year());
  7528. }
  7529. if (from._internal_tm_wday() != 0) {
  7530. _internal_set_tm_wday(from._internal_tm_wday());
  7531. }
  7532. if (from._internal_tm_yday() != 0) {
  7533. _internal_set_tm_yday(from._internal_tm_yday());
  7534. }
  7535. if (from._internal_tm_isdst() != 0) {
  7536. _internal_set_tm_isdst(from._internal_tm_isdst());
  7537. }
  7538. if (from._internal_update_time() != 0) {
  7539. _internal_set_update_time(from._internal_update_time());
  7540. }
  7541. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7542. }
  7543. void SyncTime::CopyFrom(const SyncTime& from) {
  7544. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SyncTime)
  7545. if (&from == this) return;
  7546. Clear();
  7547. MergeFrom(from);
  7548. }
  7549. bool SyncTime::IsInitialized() const {
  7550. return true;
  7551. }
  7552. void SyncTime::InternalSwap(SyncTime* other) {
  7553. using std::swap;
  7554. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7555. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7556. PROTOBUF_FIELD_OFFSET(SyncTime, update_time_)
  7557. + sizeof(SyncTime::update_time_)
  7558. - PROTOBUF_FIELD_OFFSET(SyncTime, tm_sec_)>(
  7559. reinterpret_cast<char*>(&tm_sec_),
  7560. reinterpret_cast<char*>(&other->tm_sec_));
  7561. }
  7562. ::PROTOBUF_NAMESPACE_ID::Metadata SyncTime::GetMetadata() const {
  7563. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7564. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7565. file_level_metadata_protocol_2eproto[27]);
  7566. }
  7567. // ===================================================================
  7568. class CCAskDataChannel::_Internal {
  7569. public:
  7570. };
  7571. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7572. bool is_message_owned)
  7573. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7574. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  7575. }
  7576. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  7577. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7578. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7579. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  7580. }
  7581. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  7582. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7583. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7584. };
  7585. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  7586. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  7587. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7588. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7589. file_level_metadata_protocol_2eproto[28]);
  7590. }
  7591. // ===================================================================
  7592. class IMuMessage::_Internal {
  7593. public:
  7594. };
  7595. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7596. bool is_message_owned)
  7597. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7598. SharedCtor();
  7599. if (!is_message_owned) {
  7600. RegisterArenaDtor(arena);
  7601. }
  7602. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  7603. }
  7604. IMuMessage::IMuMessage(const IMuMessage& from)
  7605. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7606. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7607. ::memcpy(&rx_, &from.rx_,
  7608. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7609. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7610. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  7611. }
  7612. inline void IMuMessage::SharedCtor() {
  7613. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7614. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  7615. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7616. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7617. }
  7618. IMuMessage::~IMuMessage() {
  7619. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  7620. if (GetArenaForAllocation() != nullptr) return;
  7621. SharedDtor();
  7622. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7623. }
  7624. inline void IMuMessage::SharedDtor() {
  7625. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7626. }
  7627. void IMuMessage::ArenaDtor(void* object) {
  7628. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  7629. (void)_this;
  7630. }
  7631. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7632. }
  7633. void IMuMessage::SetCachedSize(int size) const {
  7634. _cached_size_.Set(size);
  7635. }
  7636. void IMuMessage::Clear() {
  7637. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  7638. uint32_t cached_has_bits = 0;
  7639. // Prevent compiler warnings about cached_has_bits being unused
  7640. (void) cached_has_bits;
  7641. ::memset(&rx_, 0, static_cast<size_t>(
  7642. reinterpret_cast<char*>(&ry_) -
  7643. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7644. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7645. }
  7646. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7647. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7648. while (!ctx->Done(&ptr)) {
  7649. uint32_t tag;
  7650. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7651. switch (tag >> 3) {
  7652. // float rx = 1;
  7653. case 1:
  7654. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  7655. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7656. ptr += sizeof(float);
  7657. } else
  7658. goto handle_unusual;
  7659. continue;
  7660. // float ry = 2;
  7661. case 2:
  7662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  7663. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7664. ptr += sizeof(float);
  7665. } else
  7666. goto handle_unusual;
  7667. continue;
  7668. default:
  7669. goto handle_unusual;
  7670. } // switch
  7671. handle_unusual:
  7672. if ((tag == 0) || ((tag & 7) == 4)) {
  7673. CHK_(ptr);
  7674. ctx->SetLastTag(tag);
  7675. goto message_done;
  7676. }
  7677. ptr = UnknownFieldParse(
  7678. tag,
  7679. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7680. ptr, ctx);
  7681. CHK_(ptr != nullptr);
  7682. } // while
  7683. message_done:
  7684. return ptr;
  7685. failure:
  7686. ptr = nullptr;
  7687. goto message_done;
  7688. #undef CHK_
  7689. }
  7690. uint8_t* IMuMessage::_InternalSerialize(
  7691. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7692. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  7693. uint32_t cached_has_bits = 0;
  7694. (void) cached_has_bits;
  7695. // float rx = 1;
  7696. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7697. float tmp_rx = this->_internal_rx();
  7698. uint32_t raw_rx;
  7699. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7700. if (raw_rx != 0) {
  7701. target = stream->EnsureSpace(target);
  7702. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  7703. }
  7704. // float ry = 2;
  7705. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7706. float tmp_ry = this->_internal_ry();
  7707. uint32_t raw_ry;
  7708. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7709. if (raw_ry != 0) {
  7710. target = stream->EnsureSpace(target);
  7711. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  7712. }
  7713. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7714. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7715. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7716. }
  7717. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  7718. return target;
  7719. }
  7720. size_t IMuMessage::ByteSizeLong() const {
  7721. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  7722. size_t total_size = 0;
  7723. uint32_t cached_has_bits = 0;
  7724. // Prevent compiler warnings about cached_has_bits being unused
  7725. (void) cached_has_bits;
  7726. // float rx = 1;
  7727. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7728. float tmp_rx = this->_internal_rx();
  7729. uint32_t raw_rx;
  7730. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7731. if (raw_rx != 0) {
  7732. total_size += 1 + 4;
  7733. }
  7734. // float ry = 2;
  7735. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7736. float tmp_ry = this->_internal_ry();
  7737. uint32_t raw_ry;
  7738. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7739. if (raw_ry != 0) {
  7740. total_size += 1 + 4;
  7741. }
  7742. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7743. }
  7744. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  7745. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7746. IMuMessage::MergeImpl
  7747. };
  7748. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  7749. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7750. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7751. static_cast<IMuMessage *>(to)->MergeFrom(
  7752. static_cast<const IMuMessage &>(from));
  7753. }
  7754. void IMuMessage::MergeFrom(const IMuMessage& from) {
  7755. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  7756. GOOGLE_DCHECK_NE(&from, this);
  7757. uint32_t cached_has_bits = 0;
  7758. (void) cached_has_bits;
  7759. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7760. float tmp_rx = from._internal_rx();
  7761. uint32_t raw_rx;
  7762. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7763. if (raw_rx != 0) {
  7764. _internal_set_rx(from._internal_rx());
  7765. }
  7766. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7767. float tmp_ry = from._internal_ry();
  7768. uint32_t raw_ry;
  7769. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7770. if (raw_ry != 0) {
  7771. _internal_set_ry(from._internal_ry());
  7772. }
  7773. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7774. }
  7775. void IMuMessage::CopyFrom(const IMuMessage& from) {
  7776. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  7777. if (&from == this) return;
  7778. Clear();
  7779. MergeFrom(from);
  7780. }
  7781. bool IMuMessage::IsInitialized() const {
  7782. return true;
  7783. }
  7784. void IMuMessage::InternalSwap(IMuMessage* other) {
  7785. using std::swap;
  7786. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7787. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7788. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  7789. + sizeof(IMuMessage::ry_)
  7790. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  7791. reinterpret_cast<char*>(&rx_),
  7792. reinterpret_cast<char*>(&other->rx_));
  7793. }
  7794. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  7795. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7796. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7797. file_level_metadata_protocol_2eproto[29]);
  7798. }
  7799. // ===================================================================
  7800. class CCPing::_Internal {
  7801. public:
  7802. };
  7803. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7804. bool is_message_owned)
  7805. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7806. SharedCtor();
  7807. if (!is_message_owned) {
  7808. RegisterArenaDtor(arena);
  7809. }
  7810. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  7811. }
  7812. CCPing::CCPing(const CCPing& from)
  7813. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7814. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7815. ::memcpy(&tick_, &from.tick_,
  7816. static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7817. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7818. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  7819. }
  7820. inline void CCPing::SharedCtor() {
  7821. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7822. reinterpret_cast<char*>(&tick_) - reinterpret_cast<char*>(this)),
  7823. 0, static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7824. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7825. }
  7826. CCPing::~CCPing() {
  7827. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  7828. if (GetArenaForAllocation() != nullptr) return;
  7829. SharedDtor();
  7830. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7831. }
  7832. inline void CCPing::SharedDtor() {
  7833. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7834. }
  7835. void CCPing::ArenaDtor(void* object) {
  7836. CCPing* _this = reinterpret_cast< CCPing* >(object);
  7837. (void)_this;
  7838. }
  7839. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7840. }
  7841. void CCPing::SetCachedSize(int size) const {
  7842. _cached_size_.Set(size);
  7843. }
  7844. void CCPing::Clear() {
  7845. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  7846. uint32_t cached_has_bits = 0;
  7847. // Prevent compiler warnings about cached_has_bits being unused
  7848. (void) cached_has_bits;
  7849. ::memset(&tick_, 0, static_cast<size_t>(
  7850. reinterpret_cast<char*>(&temp_) -
  7851. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7852. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7853. }
  7854. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7855. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7856. while (!ctx->Done(&ptr)) {
  7857. uint32_t tag;
  7858. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7859. switch (tag >> 3) {
  7860. // int64 tick = 1;
  7861. case 1:
  7862. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7863. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7864. CHK_(ptr);
  7865. } else
  7866. goto handle_unusual;
  7867. continue;
  7868. // double temp = 2;
  7869. case 2:
  7870. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
  7871. temp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7872. ptr += sizeof(double);
  7873. } else
  7874. goto handle_unusual;
  7875. continue;
  7876. default:
  7877. goto handle_unusual;
  7878. } // switch
  7879. handle_unusual:
  7880. if ((tag == 0) || ((tag & 7) == 4)) {
  7881. CHK_(ptr);
  7882. ctx->SetLastTag(tag);
  7883. goto message_done;
  7884. }
  7885. ptr = UnknownFieldParse(
  7886. tag,
  7887. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7888. ptr, ctx);
  7889. CHK_(ptr != nullptr);
  7890. } // while
  7891. message_done:
  7892. return ptr;
  7893. failure:
  7894. ptr = nullptr;
  7895. goto message_done;
  7896. #undef CHK_
  7897. }
  7898. uint8_t* CCPing::_InternalSerialize(
  7899. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7900. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  7901. uint32_t cached_has_bits = 0;
  7902. (void) cached_has_bits;
  7903. // int64 tick = 1;
  7904. if (this->_internal_tick() != 0) {
  7905. target = stream->EnsureSpace(target);
  7906. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  7907. }
  7908. // double temp = 2;
  7909. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7910. double tmp_temp = this->_internal_temp();
  7911. uint64_t raw_temp;
  7912. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7913. if (raw_temp != 0) {
  7914. target = stream->EnsureSpace(target);
  7915. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_temp(), target);
  7916. }
  7917. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7918. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7919. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7920. }
  7921. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  7922. return target;
  7923. }
  7924. size_t CCPing::ByteSizeLong() const {
  7925. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  7926. size_t total_size = 0;
  7927. uint32_t cached_has_bits = 0;
  7928. // Prevent compiler warnings about cached_has_bits being unused
  7929. (void) cached_has_bits;
  7930. // int64 tick = 1;
  7931. if (this->_internal_tick() != 0) {
  7932. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  7933. }
  7934. // double temp = 2;
  7935. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7936. double tmp_temp = this->_internal_temp();
  7937. uint64_t raw_temp;
  7938. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7939. if (raw_temp != 0) {
  7940. total_size += 1 + 8;
  7941. }
  7942. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7943. }
  7944. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  7945. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7946. CCPing::MergeImpl
  7947. };
  7948. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  7949. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7950. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7951. static_cast<CCPing *>(to)->MergeFrom(
  7952. static_cast<const CCPing &>(from));
  7953. }
  7954. void CCPing::MergeFrom(const CCPing& from) {
  7955. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  7956. GOOGLE_DCHECK_NE(&from, this);
  7957. uint32_t cached_has_bits = 0;
  7958. (void) cached_has_bits;
  7959. if (from._internal_tick() != 0) {
  7960. _internal_set_tick(from._internal_tick());
  7961. }
  7962. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7963. double tmp_temp = from._internal_temp();
  7964. uint64_t raw_temp;
  7965. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7966. if (raw_temp != 0) {
  7967. _internal_set_temp(from._internal_temp());
  7968. }
  7969. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7970. }
  7971. void CCPing::CopyFrom(const CCPing& from) {
  7972. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  7973. if (&from == this) return;
  7974. Clear();
  7975. MergeFrom(from);
  7976. }
  7977. bool CCPing::IsInitialized() const {
  7978. return true;
  7979. }
  7980. void CCPing::InternalSwap(CCPing* other) {
  7981. using std::swap;
  7982. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7983. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7984. PROTOBUF_FIELD_OFFSET(CCPing, temp_)
  7985. + sizeof(CCPing::temp_)
  7986. - PROTOBUF_FIELD_OFFSET(CCPing, tick_)>(
  7987. reinterpret_cast<char*>(&tick_),
  7988. reinterpret_cast<char*>(&other->tick_));
  7989. }
  7990. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  7991. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7992. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7993. file_level_metadata_protocol_2eproto[30]);
  7994. }
  7995. // ===================================================================
  7996. class radar_node::_Internal {
  7997. public:
  7998. };
  7999. radar_node::radar_node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8000. bool is_message_owned)
  8001. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8002. SharedCtor();
  8003. if (!is_message_owned) {
  8004. RegisterArenaDtor(arena);
  8005. }
  8006. // @@protoc_insertion_point(arena_constructor:RemoNet.radar_node)
  8007. }
  8008. radar_node::radar_node(const radar_node& from)
  8009. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8010. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8011. ::memcpy(&id_, &from.id_,
  8012. static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8013. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8014. // @@protoc_insertion_point(copy_constructor:RemoNet.radar_node)
  8015. }
  8016. inline void radar_node::SharedCtor() {
  8017. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8018. reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
  8019. 0, static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8020. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8021. }
  8022. radar_node::~radar_node() {
  8023. // @@protoc_insertion_point(destructor:RemoNet.radar_node)
  8024. if (GetArenaForAllocation() != nullptr) return;
  8025. SharedDtor();
  8026. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8027. }
  8028. inline void radar_node::SharedDtor() {
  8029. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8030. }
  8031. void radar_node::ArenaDtor(void* object) {
  8032. radar_node* _this = reinterpret_cast< radar_node* >(object);
  8033. (void)_this;
  8034. }
  8035. void radar_node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8036. }
  8037. void radar_node::SetCachedSize(int size) const {
  8038. _cached_size_.Set(size);
  8039. }
  8040. void radar_node::Clear() {
  8041. // @@protoc_insertion_point(message_clear_start:RemoNet.radar_node)
  8042. uint32_t cached_has_bits = 0;
  8043. // Prevent compiler warnings about cached_has_bits being unused
  8044. (void) cached_has_bits;
  8045. ::memset(&id_, 0, static_cast<size_t>(
  8046. reinterpret_cast<char*>(&range_) -
  8047. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8048. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8049. }
  8050. const char* radar_node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8051. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8052. while (!ctx->Done(&ptr)) {
  8053. uint32_t tag;
  8054. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8055. switch (tag >> 3) {
  8056. // int32 id = 1;
  8057. case 1:
  8058. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8059. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8060. CHK_(ptr);
  8061. } else
  8062. goto handle_unusual;
  8063. continue;
  8064. // int32 range = 2;
  8065. case 2:
  8066. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8067. range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8068. CHK_(ptr);
  8069. } else
  8070. goto handle_unusual;
  8071. continue;
  8072. default:
  8073. goto handle_unusual;
  8074. } // switch
  8075. handle_unusual:
  8076. if ((tag == 0) || ((tag & 7) == 4)) {
  8077. CHK_(ptr);
  8078. ctx->SetLastTag(tag);
  8079. goto message_done;
  8080. }
  8081. ptr = UnknownFieldParse(
  8082. tag,
  8083. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8084. ptr, ctx);
  8085. CHK_(ptr != nullptr);
  8086. } // while
  8087. message_done:
  8088. return ptr;
  8089. failure:
  8090. ptr = nullptr;
  8091. goto message_done;
  8092. #undef CHK_
  8093. }
  8094. uint8_t* radar_node::_InternalSerialize(
  8095. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8096. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.radar_node)
  8097. uint32_t cached_has_bits = 0;
  8098. (void) cached_has_bits;
  8099. // int32 id = 1;
  8100. if (this->_internal_id() != 0) {
  8101. target = stream->EnsureSpace(target);
  8102. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  8103. }
  8104. // int32 range = 2;
  8105. if (this->_internal_range() != 0) {
  8106. target = stream->EnsureSpace(target);
  8107. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_range(), target);
  8108. }
  8109. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8110. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8111. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8112. }
  8113. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.radar_node)
  8114. return target;
  8115. }
  8116. size_t radar_node::ByteSizeLong() const {
  8117. // @@protoc_insertion_point(message_byte_size_start:RemoNet.radar_node)
  8118. size_t total_size = 0;
  8119. uint32_t cached_has_bits = 0;
  8120. // Prevent compiler warnings about cached_has_bits being unused
  8121. (void) cached_has_bits;
  8122. // int32 id = 1;
  8123. if (this->_internal_id() != 0) {
  8124. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  8125. }
  8126. // int32 range = 2;
  8127. if (this->_internal_range() != 0) {
  8128. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_range());
  8129. }
  8130. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8131. }
  8132. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData radar_node::_class_data_ = {
  8133. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8134. radar_node::MergeImpl
  8135. };
  8136. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*radar_node::GetClassData() const { return &_class_data_; }
  8137. void radar_node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8138. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8139. static_cast<radar_node *>(to)->MergeFrom(
  8140. static_cast<const radar_node &>(from));
  8141. }
  8142. void radar_node::MergeFrom(const radar_node& from) {
  8143. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.radar_node)
  8144. GOOGLE_DCHECK_NE(&from, this);
  8145. uint32_t cached_has_bits = 0;
  8146. (void) cached_has_bits;
  8147. if (from._internal_id() != 0) {
  8148. _internal_set_id(from._internal_id());
  8149. }
  8150. if (from._internal_range() != 0) {
  8151. _internal_set_range(from._internal_range());
  8152. }
  8153. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8154. }
  8155. void radar_node::CopyFrom(const radar_node& from) {
  8156. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.radar_node)
  8157. if (&from == this) return;
  8158. Clear();
  8159. MergeFrom(from);
  8160. }
  8161. bool radar_node::IsInitialized() const {
  8162. return true;
  8163. }
  8164. void radar_node::InternalSwap(radar_node* other) {
  8165. using std::swap;
  8166. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8167. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8168. PROTOBUF_FIELD_OFFSET(radar_node, range_)
  8169. + sizeof(radar_node::range_)
  8170. - PROTOBUF_FIELD_OFFSET(radar_node, id_)>(
  8171. reinterpret_cast<char*>(&id_),
  8172. reinterpret_cast<char*>(&other->id_));
  8173. }
  8174. ::PROTOBUF_NAMESPACE_ID::Metadata radar_node::GetMetadata() const {
  8175. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8176. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8177. file_level_metadata_protocol_2eproto[31]);
  8178. }
  8179. // ===================================================================
  8180. class CCRadarMessage::_Internal {
  8181. public:
  8182. };
  8183. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8184. bool is_message_owned)
  8185. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8186. SharedCtor();
  8187. if (!is_message_owned) {
  8188. RegisterArenaDtor(arena);
  8189. }
  8190. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  8191. }
  8192. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  8193. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8194. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8195. ::memcpy(&radar0_, &from.radar0_,
  8196. static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8197. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8198. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  8199. }
  8200. inline void CCRadarMessage::SharedCtor() {
  8201. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8202. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  8203. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8204. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8205. }
  8206. CCRadarMessage::~CCRadarMessage() {
  8207. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  8208. if (GetArenaForAllocation() != nullptr) return;
  8209. SharedDtor();
  8210. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8211. }
  8212. inline void CCRadarMessage::SharedDtor() {
  8213. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8214. }
  8215. void CCRadarMessage::ArenaDtor(void* object) {
  8216. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  8217. (void)_this;
  8218. }
  8219. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8220. }
  8221. void CCRadarMessage::SetCachedSize(int size) const {
  8222. _cached_size_.Set(size);
  8223. }
  8224. void CCRadarMessage::Clear() {
  8225. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  8226. uint32_t cached_has_bits = 0;
  8227. // Prevent compiler warnings about cached_has_bits being unused
  8228. (void) cached_has_bits;
  8229. ::memset(&radar0_, 0, static_cast<size_t>(
  8230. reinterpret_cast<char*>(&radar7_) -
  8231. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8232. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8233. }
  8234. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8235. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8236. while (!ctx->Done(&ptr)) {
  8237. uint32_t tag;
  8238. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8239. switch (tag >> 3) {
  8240. // int32 radar0 = 1;
  8241. case 1:
  8242. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8243. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8244. CHK_(ptr);
  8245. } else
  8246. goto handle_unusual;
  8247. continue;
  8248. // int32 radar1 = 2;
  8249. case 2:
  8250. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8251. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8252. CHK_(ptr);
  8253. } else
  8254. goto handle_unusual;
  8255. continue;
  8256. // int32 radar2 = 3;
  8257. case 3:
  8258. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8259. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8260. CHK_(ptr);
  8261. } else
  8262. goto handle_unusual;
  8263. continue;
  8264. // int32 radar3 = 4;
  8265. case 4:
  8266. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8267. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8268. CHK_(ptr);
  8269. } else
  8270. goto handle_unusual;
  8271. continue;
  8272. // int32 radar4 = 5;
  8273. case 5:
  8274. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8275. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8276. CHK_(ptr);
  8277. } else
  8278. goto handle_unusual;
  8279. continue;
  8280. // int32 radar5 = 6;
  8281. case 6:
  8282. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8283. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8284. CHK_(ptr);
  8285. } else
  8286. goto handle_unusual;
  8287. continue;
  8288. // int32 radar6 = 7;
  8289. case 7:
  8290. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8291. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8292. CHK_(ptr);
  8293. } else
  8294. goto handle_unusual;
  8295. continue;
  8296. // int32 radar7 = 8;
  8297. case 8:
  8298. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8299. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8300. CHK_(ptr);
  8301. } else
  8302. goto handle_unusual;
  8303. continue;
  8304. default:
  8305. goto handle_unusual;
  8306. } // switch
  8307. handle_unusual:
  8308. if ((tag == 0) || ((tag & 7) == 4)) {
  8309. CHK_(ptr);
  8310. ctx->SetLastTag(tag);
  8311. goto message_done;
  8312. }
  8313. ptr = UnknownFieldParse(
  8314. tag,
  8315. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8316. ptr, ctx);
  8317. CHK_(ptr != nullptr);
  8318. } // while
  8319. message_done:
  8320. return ptr;
  8321. failure:
  8322. ptr = nullptr;
  8323. goto message_done;
  8324. #undef CHK_
  8325. }
  8326. uint8_t* CCRadarMessage::_InternalSerialize(
  8327. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8328. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  8329. uint32_t cached_has_bits = 0;
  8330. (void) cached_has_bits;
  8331. // int32 radar0 = 1;
  8332. if (this->_internal_radar0() != 0) {
  8333. target = stream->EnsureSpace(target);
  8334. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  8335. }
  8336. // int32 radar1 = 2;
  8337. if (this->_internal_radar1() != 0) {
  8338. target = stream->EnsureSpace(target);
  8339. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  8340. }
  8341. // int32 radar2 = 3;
  8342. if (this->_internal_radar2() != 0) {
  8343. target = stream->EnsureSpace(target);
  8344. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  8345. }
  8346. // int32 radar3 = 4;
  8347. if (this->_internal_radar3() != 0) {
  8348. target = stream->EnsureSpace(target);
  8349. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  8350. }
  8351. // int32 radar4 = 5;
  8352. if (this->_internal_radar4() != 0) {
  8353. target = stream->EnsureSpace(target);
  8354. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  8355. }
  8356. // int32 radar5 = 6;
  8357. if (this->_internal_radar5() != 0) {
  8358. target = stream->EnsureSpace(target);
  8359. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  8360. }
  8361. // int32 radar6 = 7;
  8362. if (this->_internal_radar6() != 0) {
  8363. target = stream->EnsureSpace(target);
  8364. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  8365. }
  8366. // int32 radar7 = 8;
  8367. if (this->_internal_radar7() != 0) {
  8368. target = stream->EnsureSpace(target);
  8369. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  8370. }
  8371. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8373. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8374. }
  8375. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  8376. return target;
  8377. }
  8378. size_t CCRadarMessage::ByteSizeLong() const {
  8379. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  8380. size_t total_size = 0;
  8381. uint32_t cached_has_bits = 0;
  8382. // Prevent compiler warnings about cached_has_bits being unused
  8383. (void) cached_has_bits;
  8384. // int32 radar0 = 1;
  8385. if (this->_internal_radar0() != 0) {
  8386. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  8387. }
  8388. // int32 radar1 = 2;
  8389. if (this->_internal_radar1() != 0) {
  8390. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  8391. }
  8392. // int32 radar2 = 3;
  8393. if (this->_internal_radar2() != 0) {
  8394. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  8395. }
  8396. // int32 radar3 = 4;
  8397. if (this->_internal_radar3() != 0) {
  8398. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  8399. }
  8400. // int32 radar4 = 5;
  8401. if (this->_internal_radar4() != 0) {
  8402. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  8403. }
  8404. // int32 radar5 = 6;
  8405. if (this->_internal_radar5() != 0) {
  8406. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  8407. }
  8408. // int32 radar6 = 7;
  8409. if (this->_internal_radar6() != 0) {
  8410. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  8411. }
  8412. // int32 radar7 = 8;
  8413. if (this->_internal_radar7() != 0) {
  8414. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  8415. }
  8416. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8417. }
  8418. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  8419. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8420. CCRadarMessage::MergeImpl
  8421. };
  8422. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  8423. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8424. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8425. static_cast<CCRadarMessage *>(to)->MergeFrom(
  8426. static_cast<const CCRadarMessage &>(from));
  8427. }
  8428. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  8429. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  8430. GOOGLE_DCHECK_NE(&from, this);
  8431. uint32_t cached_has_bits = 0;
  8432. (void) cached_has_bits;
  8433. if (from._internal_radar0() != 0) {
  8434. _internal_set_radar0(from._internal_radar0());
  8435. }
  8436. if (from._internal_radar1() != 0) {
  8437. _internal_set_radar1(from._internal_radar1());
  8438. }
  8439. if (from._internal_radar2() != 0) {
  8440. _internal_set_radar2(from._internal_radar2());
  8441. }
  8442. if (from._internal_radar3() != 0) {
  8443. _internal_set_radar3(from._internal_radar3());
  8444. }
  8445. if (from._internal_radar4() != 0) {
  8446. _internal_set_radar4(from._internal_radar4());
  8447. }
  8448. if (from._internal_radar5() != 0) {
  8449. _internal_set_radar5(from._internal_radar5());
  8450. }
  8451. if (from._internal_radar6() != 0) {
  8452. _internal_set_radar6(from._internal_radar6());
  8453. }
  8454. if (from._internal_radar7() != 0) {
  8455. _internal_set_radar7(from._internal_radar7());
  8456. }
  8457. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8458. }
  8459. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  8460. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  8461. if (&from == this) return;
  8462. Clear();
  8463. MergeFrom(from);
  8464. }
  8465. bool CCRadarMessage::IsInitialized() const {
  8466. return true;
  8467. }
  8468. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  8469. using std::swap;
  8470. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8471. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8472. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar7_)
  8473. + sizeof(CCRadarMessage::radar7_)
  8474. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  8475. reinterpret_cast<char*>(&radar0_),
  8476. reinterpret_cast<char*>(&other->radar0_));
  8477. }
  8478. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  8479. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8480. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8481. file_level_metadata_protocol_2eproto[32]);
  8482. }
  8483. // ===================================================================
  8484. class CCSensor::_Internal {
  8485. public:
  8486. };
  8487. CCSensor::CCSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8488. bool is_message_owned)
  8489. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8490. node_(arena) {
  8491. SharedCtor();
  8492. if (!is_message_owned) {
  8493. RegisterArenaDtor(arena);
  8494. }
  8495. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSensor)
  8496. }
  8497. CCSensor::CCSensor(const CCSensor& from)
  8498. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8499. node_(from.node_) {
  8500. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8501. ::memcpy(&left_encode_, &from.left_encode_,
  8502. static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8503. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8504. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSensor)
  8505. }
  8506. inline void CCSensor::SharedCtor() {
  8507. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8508. reinterpret_cast<char*>(&left_encode_) - reinterpret_cast<char*>(this)),
  8509. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8510. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8511. }
  8512. CCSensor::~CCSensor() {
  8513. // @@protoc_insertion_point(destructor:RemoNet.CCSensor)
  8514. if (GetArenaForAllocation() != nullptr) return;
  8515. SharedDtor();
  8516. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8517. }
  8518. inline void CCSensor::SharedDtor() {
  8519. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8520. }
  8521. void CCSensor::ArenaDtor(void* object) {
  8522. CCSensor* _this = reinterpret_cast< CCSensor* >(object);
  8523. (void)_this;
  8524. }
  8525. void CCSensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8526. }
  8527. void CCSensor::SetCachedSize(int size) const {
  8528. _cached_size_.Set(size);
  8529. }
  8530. void CCSensor::Clear() {
  8531. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSensor)
  8532. uint32_t cached_has_bits = 0;
  8533. // Prevent compiler warnings about cached_has_bits being unused
  8534. (void) cached_has_bits;
  8535. node_.Clear();
  8536. ::memset(&left_encode_, 0, static_cast<size_t>(
  8537. reinterpret_cast<char*>(&right_encode_) -
  8538. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8539. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8540. }
  8541. const char* CCSensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8542. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8543. while (!ctx->Done(&ptr)) {
  8544. uint32_t tag;
  8545. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8546. switch (tag >> 3) {
  8547. // repeated .RemoNet.radar_node node = 1;
  8548. case 1:
  8549. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8550. ptr -= 1;
  8551. do {
  8552. ptr += 1;
  8553. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  8554. CHK_(ptr);
  8555. if (!ctx->DataAvailable(ptr)) break;
  8556. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  8557. } else
  8558. goto handle_unusual;
  8559. continue;
  8560. // int32 left_encode = 2;
  8561. case 2:
  8562. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8563. left_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8564. CHK_(ptr);
  8565. } else
  8566. goto handle_unusual;
  8567. continue;
  8568. // int32 right_encode = 3;
  8569. case 3:
  8570. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8571. right_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8572. CHK_(ptr);
  8573. } else
  8574. goto handle_unusual;
  8575. continue;
  8576. default:
  8577. goto handle_unusual;
  8578. } // switch
  8579. handle_unusual:
  8580. if ((tag == 0) || ((tag & 7) == 4)) {
  8581. CHK_(ptr);
  8582. ctx->SetLastTag(tag);
  8583. goto message_done;
  8584. }
  8585. ptr = UnknownFieldParse(
  8586. tag,
  8587. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8588. ptr, ctx);
  8589. CHK_(ptr != nullptr);
  8590. } // while
  8591. message_done:
  8592. return ptr;
  8593. failure:
  8594. ptr = nullptr;
  8595. goto message_done;
  8596. #undef CHK_
  8597. }
  8598. uint8_t* CCSensor::_InternalSerialize(
  8599. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8600. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSensor)
  8601. uint32_t cached_has_bits = 0;
  8602. (void) cached_has_bits;
  8603. // repeated .RemoNet.radar_node node = 1;
  8604. for (unsigned int i = 0,
  8605. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  8606. target = stream->EnsureSpace(target);
  8607. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8608. InternalWriteMessage(1, this->_internal_node(i), target, stream);
  8609. }
  8610. // int32 left_encode = 2;
  8611. if (this->_internal_left_encode() != 0) {
  8612. target = stream->EnsureSpace(target);
  8613. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_left_encode(), target);
  8614. }
  8615. // int32 right_encode = 3;
  8616. if (this->_internal_right_encode() != 0) {
  8617. target = stream->EnsureSpace(target);
  8618. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right_encode(), target);
  8619. }
  8620. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8621. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8622. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8623. }
  8624. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSensor)
  8625. return target;
  8626. }
  8627. size_t CCSensor::ByteSizeLong() const {
  8628. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSensor)
  8629. size_t total_size = 0;
  8630. uint32_t cached_has_bits = 0;
  8631. // Prevent compiler warnings about cached_has_bits being unused
  8632. (void) cached_has_bits;
  8633. // repeated .RemoNet.radar_node node = 1;
  8634. total_size += 1UL * this->_internal_node_size();
  8635. for (const auto& msg : this->node_) {
  8636. total_size +=
  8637. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  8638. }
  8639. // int32 left_encode = 2;
  8640. if (this->_internal_left_encode() != 0) {
  8641. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_encode());
  8642. }
  8643. // int32 right_encode = 3;
  8644. if (this->_internal_right_encode() != 0) {
  8645. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_encode());
  8646. }
  8647. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8648. }
  8649. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSensor::_class_data_ = {
  8650. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8651. CCSensor::MergeImpl
  8652. };
  8653. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSensor::GetClassData() const { return &_class_data_; }
  8654. void CCSensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8655. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8656. static_cast<CCSensor *>(to)->MergeFrom(
  8657. static_cast<const CCSensor &>(from));
  8658. }
  8659. void CCSensor::MergeFrom(const CCSensor& from) {
  8660. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSensor)
  8661. GOOGLE_DCHECK_NE(&from, this);
  8662. uint32_t cached_has_bits = 0;
  8663. (void) cached_has_bits;
  8664. node_.MergeFrom(from.node_);
  8665. if (from._internal_left_encode() != 0) {
  8666. _internal_set_left_encode(from._internal_left_encode());
  8667. }
  8668. if (from._internal_right_encode() != 0) {
  8669. _internal_set_right_encode(from._internal_right_encode());
  8670. }
  8671. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8672. }
  8673. void CCSensor::CopyFrom(const CCSensor& from) {
  8674. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSensor)
  8675. if (&from == this) return;
  8676. Clear();
  8677. MergeFrom(from);
  8678. }
  8679. bool CCSensor::IsInitialized() const {
  8680. return true;
  8681. }
  8682. void CCSensor::InternalSwap(CCSensor* other) {
  8683. using std::swap;
  8684. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8685. node_.InternalSwap(&other->node_);
  8686. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8687. PROTOBUF_FIELD_OFFSET(CCSensor, right_encode_)
  8688. + sizeof(CCSensor::right_encode_)
  8689. - PROTOBUF_FIELD_OFFSET(CCSensor, left_encode_)>(
  8690. reinterpret_cast<char*>(&left_encode_),
  8691. reinterpret_cast<char*>(&other->left_encode_));
  8692. }
  8693. ::PROTOBUF_NAMESPACE_ID::Metadata CCSensor::GetMetadata() const {
  8694. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8695. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8696. file_level_metadata_protocol_2eproto[33]);
  8697. }
  8698. // ===================================================================
  8699. class CCSwitch::_Internal {
  8700. public:
  8701. };
  8702. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8703. bool is_message_owned)
  8704. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8705. SharedCtor();
  8706. if (!is_message_owned) {
  8707. RegisterArenaDtor(arena);
  8708. }
  8709. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  8710. }
  8711. CCSwitch::CCSwitch(const CCSwitch& from)
  8712. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8713. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8714. front_ = from.front_;
  8715. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  8716. }
  8717. inline void CCSwitch::SharedCtor() {
  8718. front_ = false;
  8719. }
  8720. CCSwitch::~CCSwitch() {
  8721. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  8722. if (GetArenaForAllocation() != nullptr) return;
  8723. SharedDtor();
  8724. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8725. }
  8726. inline void CCSwitch::SharedDtor() {
  8727. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8728. }
  8729. void CCSwitch::ArenaDtor(void* object) {
  8730. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  8731. (void)_this;
  8732. }
  8733. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8734. }
  8735. void CCSwitch::SetCachedSize(int size) const {
  8736. _cached_size_.Set(size);
  8737. }
  8738. void CCSwitch::Clear() {
  8739. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  8740. uint32_t cached_has_bits = 0;
  8741. // Prevent compiler warnings about cached_has_bits being unused
  8742. (void) cached_has_bits;
  8743. front_ = false;
  8744. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8745. }
  8746. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8747. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8748. while (!ctx->Done(&ptr)) {
  8749. uint32_t tag;
  8750. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8751. switch (tag >> 3) {
  8752. // bool front = 1;
  8753. case 1:
  8754. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8755. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8756. CHK_(ptr);
  8757. } else
  8758. goto handle_unusual;
  8759. continue;
  8760. default:
  8761. goto handle_unusual;
  8762. } // switch
  8763. handle_unusual:
  8764. if ((tag == 0) || ((tag & 7) == 4)) {
  8765. CHK_(ptr);
  8766. ctx->SetLastTag(tag);
  8767. goto message_done;
  8768. }
  8769. ptr = UnknownFieldParse(
  8770. tag,
  8771. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8772. ptr, ctx);
  8773. CHK_(ptr != nullptr);
  8774. } // while
  8775. message_done:
  8776. return ptr;
  8777. failure:
  8778. ptr = nullptr;
  8779. goto message_done;
  8780. #undef CHK_
  8781. }
  8782. uint8_t* CCSwitch::_InternalSerialize(
  8783. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8784. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  8785. uint32_t cached_has_bits = 0;
  8786. (void) cached_has_bits;
  8787. // bool front = 1;
  8788. if (this->_internal_front() != 0) {
  8789. target = stream->EnsureSpace(target);
  8790. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  8791. }
  8792. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8793. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8794. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8795. }
  8796. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  8797. return target;
  8798. }
  8799. size_t CCSwitch::ByteSizeLong() const {
  8800. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  8801. size_t total_size = 0;
  8802. uint32_t cached_has_bits = 0;
  8803. // Prevent compiler warnings about cached_has_bits being unused
  8804. (void) cached_has_bits;
  8805. // bool front = 1;
  8806. if (this->_internal_front() != 0) {
  8807. total_size += 1 + 1;
  8808. }
  8809. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8810. }
  8811. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  8812. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8813. CCSwitch::MergeImpl
  8814. };
  8815. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  8816. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8817. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8818. static_cast<CCSwitch *>(to)->MergeFrom(
  8819. static_cast<const CCSwitch &>(from));
  8820. }
  8821. void CCSwitch::MergeFrom(const CCSwitch& from) {
  8822. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  8823. GOOGLE_DCHECK_NE(&from, this);
  8824. uint32_t cached_has_bits = 0;
  8825. (void) cached_has_bits;
  8826. if (from._internal_front() != 0) {
  8827. _internal_set_front(from._internal_front());
  8828. }
  8829. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8830. }
  8831. void CCSwitch::CopyFrom(const CCSwitch& from) {
  8832. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  8833. if (&from == this) return;
  8834. Clear();
  8835. MergeFrom(from);
  8836. }
  8837. bool CCSwitch::IsInitialized() const {
  8838. return true;
  8839. }
  8840. void CCSwitch::InternalSwap(CCSwitch* other) {
  8841. using std::swap;
  8842. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8843. swap(front_, other->front_);
  8844. }
  8845. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  8846. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8847. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8848. file_level_metadata_protocol_2eproto[34]);
  8849. }
  8850. // ===================================================================
  8851. class State::_Internal {
  8852. public:
  8853. };
  8854. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8855. bool is_message_owned)
  8856. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8857. SharedCtor();
  8858. if (!is_message_owned) {
  8859. RegisterArenaDtor(arena);
  8860. }
  8861. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8862. }
  8863. State::State(const State& from)
  8864. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8865. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8866. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8867. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8868. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8869. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8870. if (!from._internal_error_buff().empty()) {
  8871. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  8872. GetArenaForAllocation());
  8873. }
  8874. ::memcpy(&engine_speed_, &from.engine_speed_,
  8875. static_cast<size_t>(reinterpret_cast<char*>(&safety_valves_) -
  8876. reinterpret_cast<char*>(&engine_speed_)) + sizeof(safety_valves_));
  8877. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  8878. }
  8879. inline void State::SharedCtor() {
  8880. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8881. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8882. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8883. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8884. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8885. reinterpret_cast<char*>(&engine_speed_) - reinterpret_cast<char*>(this)),
  8886. 0, static_cast<size_t>(reinterpret_cast<char*>(&safety_valves_) -
  8887. reinterpret_cast<char*>(&engine_speed_)) + sizeof(safety_valves_));
  8888. }
  8889. State::~State() {
  8890. // @@protoc_insertion_point(destructor:RemoNet.State)
  8891. if (GetArenaForAllocation() != nullptr) return;
  8892. SharedDtor();
  8893. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8894. }
  8895. inline void State::SharedDtor() {
  8896. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8897. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8898. }
  8899. void State::ArenaDtor(void* object) {
  8900. State* _this = reinterpret_cast< State* >(object);
  8901. (void)_this;
  8902. }
  8903. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8904. }
  8905. void State::SetCachedSize(int size) const {
  8906. _cached_size_.Set(size);
  8907. }
  8908. void State::Clear() {
  8909. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  8910. uint32_t cached_has_bits = 0;
  8911. // Prevent compiler warnings about cached_has_bits being unused
  8912. (void) cached_has_bits;
  8913. error_buff_.ClearToEmpty();
  8914. ::memset(&engine_speed_, 0, static_cast<size_t>(
  8915. reinterpret_cast<char*>(&safety_valves_) -
  8916. reinterpret_cast<char*>(&engine_speed_)) + sizeof(safety_valves_));
  8917. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8918. }
  8919. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8920. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8921. while (!ctx->Done(&ptr)) {
  8922. uint32_t tag;
  8923. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8924. switch (tag >> 3) {
  8925. // int32 engine_speed = 1;
  8926. case 1:
  8927. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8928. engine_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8929. CHK_(ptr);
  8930. } else
  8931. goto handle_unusual;
  8932. continue;
  8933. // int32 travel_speed = 2;
  8934. case 2:
  8935. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8936. travel_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8937. CHK_(ptr);
  8938. } else
  8939. goto handle_unusual;
  8940. continue;
  8941. // int32 fuel_level = 3;
  8942. case 3:
  8943. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8944. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8945. CHK_(ptr);
  8946. } else
  8947. goto handle_unusual;
  8948. continue;
  8949. // int32 engine_temperature = 4;
  8950. case 4:
  8951. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8952. engine_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8953. CHK_(ptr);
  8954. } else
  8955. goto handle_unusual;
  8956. continue;
  8957. // int32 hydraulic_oil_temperature = 5;
  8958. case 5:
  8959. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8960. hydraulic_oil_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8961. CHK_(ptr);
  8962. } else
  8963. goto handle_unusual;
  8964. continue;
  8965. // int32 main_pump_1_pressure = 6;
  8966. case 6:
  8967. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8968. main_pump_1_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8969. CHK_(ptr);
  8970. } else
  8971. goto handle_unusual;
  8972. continue;
  8973. // int32 main_pump_2_pressure = 7;
  8974. case 7:
  8975. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8976. main_pump_2_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8977. CHK_(ptr);
  8978. } else
  8979. goto handle_unusual;
  8980. continue;
  8981. // int32 hand_gear = 8;
  8982. case 8:
  8983. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8984. hand_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8985. CHK_(ptr);
  8986. } else
  8987. goto handle_unusual;
  8988. continue;
  8989. // int32 actual_gear = 9;
  8990. case 9:
  8991. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  8992. actual_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8993. CHK_(ptr);
  8994. } else
  8995. goto handle_unusual;
  8996. continue;
  8997. // float gripper_height = 10;
  8998. case 10:
  8999. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  9000. gripper_height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9001. ptr += sizeof(float);
  9002. } else
  9003. goto handle_unusual;
  9004. continue;
  9005. // float amplitude = 11;
  9006. case 11:
  9007. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 93)) {
  9008. amplitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9009. ptr += sizeof(float);
  9010. } else
  9011. goto handle_unusual;
  9012. continue;
  9013. // int32 boom_angle = 12;
  9014. case 12:
  9015. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9016. boom_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9017. CHK_(ptr);
  9018. } else
  9019. goto handle_unusual;
  9020. continue;
  9021. // int32 stick_angle = 13;
  9022. case 13:
  9023. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9024. stick_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9025. CHK_(ptr);
  9026. } else
  9027. goto handle_unusual;
  9028. continue;
  9029. // int32 idle_protection = 14;
  9030. case 14:
  9031. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9032. idle_protection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9033. CHK_(ptr);
  9034. } else
  9035. goto handle_unusual;
  9036. continue;
  9037. // int32 front_toggle = 15;
  9038. case 15:
  9039. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9040. front_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9041. CHK_(ptr);
  9042. } else
  9043. goto handle_unusual;
  9044. continue;
  9045. // int32 back_toggle = 16;
  9046. case 16:
  9047. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9048. back_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9049. CHK_(ptr);
  9050. } else
  9051. goto handle_unusual;
  9052. continue;
  9053. // bytes error_Buff = 17;
  9054. case 17:
  9055. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
  9056. auto str = _internal_mutable_error_buff();
  9057. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9058. CHK_(ptr);
  9059. } else
  9060. goto handle_unusual;
  9061. continue;
  9062. // int32 interlock = 18;
  9063. case 18:
  9064. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9065. interlock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9066. CHK_(ptr);
  9067. } else
  9068. goto handle_unusual;
  9069. continue;
  9070. // int32 safety_switch = 19;
  9071. case 19:
  9072. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9073. safety_switch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9074. CHK_(ptr);
  9075. } else
  9076. goto handle_unusual;
  9077. continue;
  9078. // int32 arm_lift_pilot = 20;
  9079. case 20:
  9080. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9081. arm_lift_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9082. CHK_(ptr);
  9083. } else
  9084. goto handle_unusual;
  9085. continue;
  9086. // int32 arm_lowering_pilot = 21;
  9087. case 21:
  9088. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9089. arm_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9090. CHK_(ptr);
  9091. } else
  9092. goto handle_unusual;
  9093. continue;
  9094. // int32 lever_lifting_pilot = 22;
  9095. case 22:
  9096. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9097. lever_lifting_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9098. CHK_(ptr);
  9099. } else
  9100. goto handle_unusual;
  9101. continue;
  9102. // int32 rod_lowering_pilot = 23;
  9103. case 23:
  9104. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9105. rod_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9106. CHK_(ptr);
  9107. } else
  9108. goto handle_unusual;
  9109. continue;
  9110. // int32 left_rotary_pilot = 24;
  9111. case 24:
  9112. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9113. left_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9114. CHK_(ptr);
  9115. } else
  9116. goto handle_unusual;
  9117. continue;
  9118. // int32 right_rotary_pilot = 25;
  9119. case 25:
  9120. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9121. right_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9122. CHK_(ptr);
  9123. } else
  9124. goto handle_unusual;
  9125. continue;
  9126. // int32 grab_open_pilot = 26;
  9127. case 26:
  9128. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9129. grab_open_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9130. CHK_(ptr);
  9131. } else
  9132. goto handle_unusual;
  9133. continue;
  9134. // int32 grab_close_pilot = 27;
  9135. case 27:
  9136. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9137. grab_close_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9138. CHK_(ptr);
  9139. } else
  9140. goto handle_unusual;
  9141. continue;
  9142. // int32 safety_valves = 28;
  9143. case 28:
  9144. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9145. safety_valves_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9146. CHK_(ptr);
  9147. } else
  9148. goto handle_unusual;
  9149. continue;
  9150. default:
  9151. goto handle_unusual;
  9152. } // switch
  9153. handle_unusual:
  9154. if ((tag == 0) || ((tag & 7) == 4)) {
  9155. CHK_(ptr);
  9156. ctx->SetLastTag(tag);
  9157. goto message_done;
  9158. }
  9159. ptr = UnknownFieldParse(
  9160. tag,
  9161. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9162. ptr, ctx);
  9163. CHK_(ptr != nullptr);
  9164. } // while
  9165. message_done:
  9166. return ptr;
  9167. failure:
  9168. ptr = nullptr;
  9169. goto message_done;
  9170. #undef CHK_
  9171. }
  9172. uint8_t* State::_InternalSerialize(
  9173. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9174. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9175. uint32_t cached_has_bits = 0;
  9176. (void) cached_has_bits;
  9177. // int32 engine_speed = 1;
  9178. if (this->_internal_engine_speed() != 0) {
  9179. target = stream->EnsureSpace(target);
  9180. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_engine_speed(), target);
  9181. }
  9182. // int32 travel_speed = 2;
  9183. if (this->_internal_travel_speed() != 0) {
  9184. target = stream->EnsureSpace(target);
  9185. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_travel_speed(), target);
  9186. }
  9187. // int32 fuel_level = 3;
  9188. if (this->_internal_fuel_level() != 0) {
  9189. target = stream->EnsureSpace(target);
  9190. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_fuel_level(), target);
  9191. }
  9192. // int32 engine_temperature = 4;
  9193. if (this->_internal_engine_temperature() != 0) {
  9194. target = stream->EnsureSpace(target);
  9195. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_engine_temperature(), target);
  9196. }
  9197. // int32 hydraulic_oil_temperature = 5;
  9198. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9199. target = stream->EnsureSpace(target);
  9200. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hydraulic_oil_temperature(), target);
  9201. }
  9202. // int32 main_pump_1_pressure = 6;
  9203. if (this->_internal_main_pump_1_pressure() != 0) {
  9204. target = stream->EnsureSpace(target);
  9205. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_main_pump_1_pressure(), target);
  9206. }
  9207. // int32 main_pump_2_pressure = 7;
  9208. if (this->_internal_main_pump_2_pressure() != 0) {
  9209. target = stream->EnsureSpace(target);
  9210. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_main_pump_2_pressure(), target);
  9211. }
  9212. // int32 hand_gear = 8;
  9213. if (this->_internal_hand_gear() != 0) {
  9214. target = stream->EnsureSpace(target);
  9215. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_hand_gear(), target);
  9216. }
  9217. // int32 actual_gear = 9;
  9218. if (this->_internal_actual_gear() != 0) {
  9219. target = stream->EnsureSpace(target);
  9220. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_actual_gear(), target);
  9221. }
  9222. // float gripper_height = 10;
  9223. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9224. float tmp_gripper_height = this->_internal_gripper_height();
  9225. uint32_t raw_gripper_height;
  9226. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9227. if (raw_gripper_height != 0) {
  9228. target = stream->EnsureSpace(target);
  9229. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_gripper_height(), target);
  9230. }
  9231. // float amplitude = 11;
  9232. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9233. float tmp_amplitude = this->_internal_amplitude();
  9234. uint32_t raw_amplitude;
  9235. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9236. if (raw_amplitude != 0) {
  9237. target = stream->EnsureSpace(target);
  9238. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->_internal_amplitude(), target);
  9239. }
  9240. // int32 boom_angle = 12;
  9241. if (this->_internal_boom_angle() != 0) {
  9242. target = stream->EnsureSpace(target);
  9243. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_boom_angle(), target);
  9244. }
  9245. // int32 stick_angle = 13;
  9246. if (this->_internal_stick_angle() != 0) {
  9247. target = stream->EnsureSpace(target);
  9248. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_stick_angle(), target);
  9249. }
  9250. // int32 idle_protection = 14;
  9251. if (this->_internal_idle_protection() != 0) {
  9252. target = stream->EnsureSpace(target);
  9253. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_idle_protection(), target);
  9254. }
  9255. // int32 front_toggle = 15;
  9256. if (this->_internal_front_toggle() != 0) {
  9257. target = stream->EnsureSpace(target);
  9258. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_front_toggle(), target);
  9259. }
  9260. // int32 back_toggle = 16;
  9261. if (this->_internal_back_toggle() != 0) {
  9262. target = stream->EnsureSpace(target);
  9263. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_back_toggle(), target);
  9264. }
  9265. // bytes error_Buff = 17;
  9266. if (!this->_internal_error_buff().empty()) {
  9267. target = stream->WriteBytesMaybeAliased(
  9268. 17, this->_internal_error_buff(), target);
  9269. }
  9270. // int32 interlock = 18;
  9271. if (this->_internal_interlock() != 0) {
  9272. target = stream->EnsureSpace(target);
  9273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_interlock(), target);
  9274. }
  9275. // int32 safety_switch = 19;
  9276. if (this->_internal_safety_switch() != 0) {
  9277. target = stream->EnsureSpace(target);
  9278. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_safety_switch(), target);
  9279. }
  9280. // int32 arm_lift_pilot = 20;
  9281. if (this->_internal_arm_lift_pilot() != 0) {
  9282. target = stream->EnsureSpace(target);
  9283. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_arm_lift_pilot(), target);
  9284. }
  9285. // int32 arm_lowering_pilot = 21;
  9286. if (this->_internal_arm_lowering_pilot() != 0) {
  9287. target = stream->EnsureSpace(target);
  9288. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_arm_lowering_pilot(), target);
  9289. }
  9290. // int32 lever_lifting_pilot = 22;
  9291. if (this->_internal_lever_lifting_pilot() != 0) {
  9292. target = stream->EnsureSpace(target);
  9293. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_lever_lifting_pilot(), target);
  9294. }
  9295. // int32 rod_lowering_pilot = 23;
  9296. if (this->_internal_rod_lowering_pilot() != 0) {
  9297. target = stream->EnsureSpace(target);
  9298. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_rod_lowering_pilot(), target);
  9299. }
  9300. // int32 left_rotary_pilot = 24;
  9301. if (this->_internal_left_rotary_pilot() != 0) {
  9302. target = stream->EnsureSpace(target);
  9303. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_left_rotary_pilot(), target);
  9304. }
  9305. // int32 right_rotary_pilot = 25;
  9306. if (this->_internal_right_rotary_pilot() != 0) {
  9307. target = stream->EnsureSpace(target);
  9308. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_right_rotary_pilot(), target);
  9309. }
  9310. // int32 grab_open_pilot = 26;
  9311. if (this->_internal_grab_open_pilot() != 0) {
  9312. target = stream->EnsureSpace(target);
  9313. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_grab_open_pilot(), target);
  9314. }
  9315. // int32 grab_close_pilot = 27;
  9316. if (this->_internal_grab_close_pilot() != 0) {
  9317. target = stream->EnsureSpace(target);
  9318. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_grab_close_pilot(), target);
  9319. }
  9320. // int32 safety_valves = 28;
  9321. if (this->_internal_safety_valves() != 0) {
  9322. target = stream->EnsureSpace(target);
  9323. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_safety_valves(), target);
  9324. }
  9325. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9326. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9327. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9328. }
  9329. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  9330. return target;
  9331. }
  9332. size_t State::ByteSizeLong() const {
  9333. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  9334. size_t total_size = 0;
  9335. uint32_t cached_has_bits = 0;
  9336. // Prevent compiler warnings about cached_has_bits being unused
  9337. (void) cached_has_bits;
  9338. // bytes error_Buff = 17;
  9339. if (!this->_internal_error_buff().empty()) {
  9340. total_size += 2 +
  9341. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9342. this->_internal_error_buff());
  9343. }
  9344. // int32 engine_speed = 1;
  9345. if (this->_internal_engine_speed() != 0) {
  9346. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_speed());
  9347. }
  9348. // int32 travel_speed = 2;
  9349. if (this->_internal_travel_speed() != 0) {
  9350. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_travel_speed());
  9351. }
  9352. // int32 fuel_level = 3;
  9353. if (this->_internal_fuel_level() != 0) {
  9354. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_fuel_level());
  9355. }
  9356. // int32 engine_temperature = 4;
  9357. if (this->_internal_engine_temperature() != 0) {
  9358. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_temperature());
  9359. }
  9360. // int32 hydraulic_oil_temperature = 5;
  9361. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9362. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hydraulic_oil_temperature());
  9363. }
  9364. // int32 main_pump_1_pressure = 6;
  9365. if (this->_internal_main_pump_1_pressure() != 0) {
  9366. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_1_pressure());
  9367. }
  9368. // int32 main_pump_2_pressure = 7;
  9369. if (this->_internal_main_pump_2_pressure() != 0) {
  9370. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_2_pressure());
  9371. }
  9372. // int32 hand_gear = 8;
  9373. if (this->_internal_hand_gear() != 0) {
  9374. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hand_gear());
  9375. }
  9376. // int32 actual_gear = 9;
  9377. if (this->_internal_actual_gear() != 0) {
  9378. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_actual_gear());
  9379. }
  9380. // float gripper_height = 10;
  9381. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9382. float tmp_gripper_height = this->_internal_gripper_height();
  9383. uint32_t raw_gripper_height;
  9384. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9385. if (raw_gripper_height != 0) {
  9386. total_size += 1 + 4;
  9387. }
  9388. // float amplitude = 11;
  9389. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9390. float tmp_amplitude = this->_internal_amplitude();
  9391. uint32_t raw_amplitude;
  9392. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9393. if (raw_amplitude != 0) {
  9394. total_size += 1 + 4;
  9395. }
  9396. // int32 boom_angle = 12;
  9397. if (this->_internal_boom_angle() != 0) {
  9398. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_boom_angle());
  9399. }
  9400. // int32 stick_angle = 13;
  9401. if (this->_internal_stick_angle() != 0) {
  9402. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_stick_angle());
  9403. }
  9404. // int32 idle_protection = 14;
  9405. if (this->_internal_idle_protection() != 0) {
  9406. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_idle_protection());
  9407. }
  9408. // int32 front_toggle = 15;
  9409. if (this->_internal_front_toggle() != 0) {
  9410. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_front_toggle());
  9411. }
  9412. // int32 back_toggle = 16;
  9413. if (this->_internal_back_toggle() != 0) {
  9414. total_size += 2 +
  9415. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9416. this->_internal_back_toggle());
  9417. }
  9418. // int32 interlock = 18;
  9419. if (this->_internal_interlock() != 0) {
  9420. total_size += 2 +
  9421. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9422. this->_internal_interlock());
  9423. }
  9424. // int32 safety_switch = 19;
  9425. if (this->_internal_safety_switch() != 0) {
  9426. total_size += 2 +
  9427. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9428. this->_internal_safety_switch());
  9429. }
  9430. // int32 arm_lift_pilot = 20;
  9431. if (this->_internal_arm_lift_pilot() != 0) {
  9432. total_size += 2 +
  9433. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9434. this->_internal_arm_lift_pilot());
  9435. }
  9436. // int32 arm_lowering_pilot = 21;
  9437. if (this->_internal_arm_lowering_pilot() != 0) {
  9438. total_size += 2 +
  9439. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9440. this->_internal_arm_lowering_pilot());
  9441. }
  9442. // int32 lever_lifting_pilot = 22;
  9443. if (this->_internal_lever_lifting_pilot() != 0) {
  9444. total_size += 2 +
  9445. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9446. this->_internal_lever_lifting_pilot());
  9447. }
  9448. // int32 rod_lowering_pilot = 23;
  9449. if (this->_internal_rod_lowering_pilot() != 0) {
  9450. total_size += 2 +
  9451. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9452. this->_internal_rod_lowering_pilot());
  9453. }
  9454. // int32 left_rotary_pilot = 24;
  9455. if (this->_internal_left_rotary_pilot() != 0) {
  9456. total_size += 2 +
  9457. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9458. this->_internal_left_rotary_pilot());
  9459. }
  9460. // int32 right_rotary_pilot = 25;
  9461. if (this->_internal_right_rotary_pilot() != 0) {
  9462. total_size += 2 +
  9463. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9464. this->_internal_right_rotary_pilot());
  9465. }
  9466. // int32 grab_open_pilot = 26;
  9467. if (this->_internal_grab_open_pilot() != 0) {
  9468. total_size += 2 +
  9469. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9470. this->_internal_grab_open_pilot());
  9471. }
  9472. // int32 grab_close_pilot = 27;
  9473. if (this->_internal_grab_close_pilot() != 0) {
  9474. total_size += 2 +
  9475. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9476. this->_internal_grab_close_pilot());
  9477. }
  9478. // int32 safety_valves = 28;
  9479. if (this->_internal_safety_valves() != 0) {
  9480. total_size += 2 +
  9481. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9482. this->_internal_safety_valves());
  9483. }
  9484. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9485. }
  9486. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  9487. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9488. State::MergeImpl
  9489. };
  9490. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  9491. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9492. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9493. static_cast<State *>(to)->MergeFrom(
  9494. static_cast<const State &>(from));
  9495. }
  9496. void State::MergeFrom(const State& from) {
  9497. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  9498. GOOGLE_DCHECK_NE(&from, this);
  9499. uint32_t cached_has_bits = 0;
  9500. (void) cached_has_bits;
  9501. if (!from._internal_error_buff().empty()) {
  9502. _internal_set_error_buff(from._internal_error_buff());
  9503. }
  9504. if (from._internal_engine_speed() != 0) {
  9505. _internal_set_engine_speed(from._internal_engine_speed());
  9506. }
  9507. if (from._internal_travel_speed() != 0) {
  9508. _internal_set_travel_speed(from._internal_travel_speed());
  9509. }
  9510. if (from._internal_fuel_level() != 0) {
  9511. _internal_set_fuel_level(from._internal_fuel_level());
  9512. }
  9513. if (from._internal_engine_temperature() != 0) {
  9514. _internal_set_engine_temperature(from._internal_engine_temperature());
  9515. }
  9516. if (from._internal_hydraulic_oil_temperature() != 0) {
  9517. _internal_set_hydraulic_oil_temperature(from._internal_hydraulic_oil_temperature());
  9518. }
  9519. if (from._internal_main_pump_1_pressure() != 0) {
  9520. _internal_set_main_pump_1_pressure(from._internal_main_pump_1_pressure());
  9521. }
  9522. if (from._internal_main_pump_2_pressure() != 0) {
  9523. _internal_set_main_pump_2_pressure(from._internal_main_pump_2_pressure());
  9524. }
  9525. if (from._internal_hand_gear() != 0) {
  9526. _internal_set_hand_gear(from._internal_hand_gear());
  9527. }
  9528. if (from._internal_actual_gear() != 0) {
  9529. _internal_set_actual_gear(from._internal_actual_gear());
  9530. }
  9531. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9532. float tmp_gripper_height = from._internal_gripper_height();
  9533. uint32_t raw_gripper_height;
  9534. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9535. if (raw_gripper_height != 0) {
  9536. _internal_set_gripper_height(from._internal_gripper_height());
  9537. }
  9538. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9539. float tmp_amplitude = from._internal_amplitude();
  9540. uint32_t raw_amplitude;
  9541. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9542. if (raw_amplitude != 0) {
  9543. _internal_set_amplitude(from._internal_amplitude());
  9544. }
  9545. if (from._internal_boom_angle() != 0) {
  9546. _internal_set_boom_angle(from._internal_boom_angle());
  9547. }
  9548. if (from._internal_stick_angle() != 0) {
  9549. _internal_set_stick_angle(from._internal_stick_angle());
  9550. }
  9551. if (from._internal_idle_protection() != 0) {
  9552. _internal_set_idle_protection(from._internal_idle_protection());
  9553. }
  9554. if (from._internal_front_toggle() != 0) {
  9555. _internal_set_front_toggle(from._internal_front_toggle());
  9556. }
  9557. if (from._internal_back_toggle() != 0) {
  9558. _internal_set_back_toggle(from._internal_back_toggle());
  9559. }
  9560. if (from._internal_interlock() != 0) {
  9561. _internal_set_interlock(from._internal_interlock());
  9562. }
  9563. if (from._internal_safety_switch() != 0) {
  9564. _internal_set_safety_switch(from._internal_safety_switch());
  9565. }
  9566. if (from._internal_arm_lift_pilot() != 0) {
  9567. _internal_set_arm_lift_pilot(from._internal_arm_lift_pilot());
  9568. }
  9569. if (from._internal_arm_lowering_pilot() != 0) {
  9570. _internal_set_arm_lowering_pilot(from._internal_arm_lowering_pilot());
  9571. }
  9572. if (from._internal_lever_lifting_pilot() != 0) {
  9573. _internal_set_lever_lifting_pilot(from._internal_lever_lifting_pilot());
  9574. }
  9575. if (from._internal_rod_lowering_pilot() != 0) {
  9576. _internal_set_rod_lowering_pilot(from._internal_rod_lowering_pilot());
  9577. }
  9578. if (from._internal_left_rotary_pilot() != 0) {
  9579. _internal_set_left_rotary_pilot(from._internal_left_rotary_pilot());
  9580. }
  9581. if (from._internal_right_rotary_pilot() != 0) {
  9582. _internal_set_right_rotary_pilot(from._internal_right_rotary_pilot());
  9583. }
  9584. if (from._internal_grab_open_pilot() != 0) {
  9585. _internal_set_grab_open_pilot(from._internal_grab_open_pilot());
  9586. }
  9587. if (from._internal_grab_close_pilot() != 0) {
  9588. _internal_set_grab_close_pilot(from._internal_grab_close_pilot());
  9589. }
  9590. if (from._internal_safety_valves() != 0) {
  9591. _internal_set_safety_valves(from._internal_safety_valves());
  9592. }
  9593. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9594. }
  9595. void State::CopyFrom(const State& from) {
  9596. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  9597. if (&from == this) return;
  9598. Clear();
  9599. MergeFrom(from);
  9600. }
  9601. bool State::IsInitialized() const {
  9602. return true;
  9603. }
  9604. void State::InternalSwap(State* other) {
  9605. using std::swap;
  9606. auto* lhs_arena = GetArenaForAllocation();
  9607. auto* rhs_arena = other->GetArenaForAllocation();
  9608. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9609. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9610. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9611. &error_buff_, lhs_arena,
  9612. &other->error_buff_, rhs_arena
  9613. );
  9614. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9615. PROTOBUF_FIELD_OFFSET(State, safety_valves_)
  9616. + sizeof(State::safety_valves_)
  9617. - PROTOBUF_FIELD_OFFSET(State, engine_speed_)>(
  9618. reinterpret_cast<char*>(&engine_speed_),
  9619. reinterpret_cast<char*>(&other->engine_speed_));
  9620. }
  9621. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  9622. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9623. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9624. file_level_metadata_protocol_2eproto[35]);
  9625. }
  9626. // ===================================================================
  9627. class LidarPoint::_Internal {
  9628. public:
  9629. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  9630. static void set_has_timestamp(HasBits* has_bits) {
  9631. (*has_bits)[0] |= 2u;
  9632. }
  9633. static void set_has_seq(HasBits* has_bits) {
  9634. (*has_bits)[0] |= 4u;
  9635. }
  9636. static void set_has_frame_id(HasBits* has_bits) {
  9637. (*has_bits)[0] |= 1u;
  9638. }
  9639. static void set_has_height(HasBits* has_bits) {
  9640. (*has_bits)[0] |= 8u;
  9641. }
  9642. static void set_has_width(HasBits* has_bits) {
  9643. (*has_bits)[0] |= 16u;
  9644. }
  9645. static void set_has_is_dense(HasBits* has_bits) {
  9646. (*has_bits)[0] |= 32u;
  9647. }
  9648. static void set_has_is_left(HasBits* has_bits) {
  9649. (*has_bits)[0] |= 64u;
  9650. }
  9651. };
  9652. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9653. bool is_message_owned)
  9654. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  9655. data_(arena) {
  9656. SharedCtor();
  9657. if (!is_message_owned) {
  9658. RegisterArenaDtor(arena);
  9659. }
  9660. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  9661. }
  9662. LidarPoint::LidarPoint(const LidarPoint& from)
  9663. : ::PROTOBUF_NAMESPACE_ID::Message(),
  9664. _has_bits_(from._has_bits_),
  9665. data_(from.data_) {
  9666. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9667. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9668. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9669. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9670. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9671. if (from._internal_has_frame_id()) {
  9672. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  9673. GetArenaForAllocation());
  9674. }
  9675. ::memcpy(&timestamp_, &from.timestamp_,
  9676. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9677. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9678. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  9679. }
  9680. inline void LidarPoint::SharedCtor() {
  9681. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9682. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9683. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9684. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9685. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9686. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  9687. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9688. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9689. }
  9690. LidarPoint::~LidarPoint() {
  9691. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  9692. if (GetArenaForAllocation() != nullptr) return;
  9693. SharedDtor();
  9694. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9695. }
  9696. inline void LidarPoint::SharedDtor() {
  9697. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9698. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9699. }
  9700. void LidarPoint::ArenaDtor(void* object) {
  9701. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  9702. (void)_this;
  9703. }
  9704. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9705. }
  9706. void LidarPoint::SetCachedSize(int size) const {
  9707. _cached_size_.Set(size);
  9708. }
  9709. void LidarPoint::Clear() {
  9710. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  9711. uint32_t cached_has_bits = 0;
  9712. // Prevent compiler warnings about cached_has_bits being unused
  9713. (void) cached_has_bits;
  9714. data_.Clear();
  9715. cached_has_bits = _has_bits_[0];
  9716. if (cached_has_bits & 0x00000001u) {
  9717. frame_id_.ClearNonDefaultToEmpty();
  9718. }
  9719. if (cached_has_bits & 0x0000007eu) {
  9720. ::memset(&timestamp_, 0, static_cast<size_t>(
  9721. reinterpret_cast<char*>(&is_left_) -
  9722. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9723. }
  9724. _has_bits_.Clear();
  9725. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9726. }
  9727. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9728. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9729. _Internal::HasBits has_bits{};
  9730. while (!ctx->Done(&ptr)) {
  9731. uint32_t tag;
  9732. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9733. switch (tag >> 3) {
  9734. // optional double timestamp = 1;
  9735. case 1:
  9736. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  9737. _Internal::set_has_timestamp(&has_bits);
  9738. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  9739. ptr += sizeof(double);
  9740. } else
  9741. goto handle_unusual;
  9742. continue;
  9743. // optional uint32 seq = 2;
  9744. case 2:
  9745. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9746. _Internal::set_has_seq(&has_bits);
  9747. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9748. CHK_(ptr);
  9749. } else
  9750. goto handle_unusual;
  9751. continue;
  9752. // optional string frame_id = 3;
  9753. case 3:
  9754. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  9755. auto str = _internal_mutable_frame_id();
  9756. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9757. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  9758. CHK_(ptr);
  9759. } else
  9760. goto handle_unusual;
  9761. continue;
  9762. // optional uint32 height = 4;
  9763. case 4:
  9764. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9765. _Internal::set_has_height(&has_bits);
  9766. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9767. CHK_(ptr);
  9768. } else
  9769. goto handle_unusual;
  9770. continue;
  9771. // optional uint32 width = 5;
  9772. case 5:
  9773. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9774. _Internal::set_has_width(&has_bits);
  9775. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9776. CHK_(ptr);
  9777. } else
  9778. goto handle_unusual;
  9779. continue;
  9780. // optional bool is_dense = 6;
  9781. case 6:
  9782. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9783. _Internal::set_has_is_dense(&has_bits);
  9784. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  9785. CHK_(ptr);
  9786. } else
  9787. goto handle_unusual;
  9788. continue;
  9789. // optional bool is_left = 7;
  9790. case 7:
  9791. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9792. _Internal::set_has_is_left(&has_bits);
  9793. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  9794. CHK_(ptr);
  9795. } else
  9796. goto handle_unusual;
  9797. continue;
  9798. // repeated float data = 8;
  9799. case 8:
  9800. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  9801. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  9802. CHK_(ptr);
  9803. } else if (static_cast<uint8_t>(tag) == 69) {
  9804. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  9805. ptr += sizeof(float);
  9806. } else
  9807. goto handle_unusual;
  9808. continue;
  9809. default:
  9810. goto handle_unusual;
  9811. } // switch
  9812. handle_unusual:
  9813. if ((tag == 0) || ((tag & 7) == 4)) {
  9814. CHK_(ptr);
  9815. ctx->SetLastTag(tag);
  9816. goto message_done;
  9817. }
  9818. ptr = UnknownFieldParse(
  9819. tag,
  9820. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9821. ptr, ctx);
  9822. CHK_(ptr != nullptr);
  9823. } // while
  9824. message_done:
  9825. _has_bits_.Or(has_bits);
  9826. return ptr;
  9827. failure:
  9828. ptr = nullptr;
  9829. goto message_done;
  9830. #undef CHK_
  9831. }
  9832. uint8_t* LidarPoint::_InternalSerialize(
  9833. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9834. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  9835. uint32_t cached_has_bits = 0;
  9836. (void) cached_has_bits;
  9837. // optional double timestamp = 1;
  9838. if (_internal_has_timestamp()) {
  9839. target = stream->EnsureSpace(target);
  9840. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  9841. }
  9842. // optional uint32 seq = 2;
  9843. if (_internal_has_seq()) {
  9844. target = stream->EnsureSpace(target);
  9845. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  9846. }
  9847. // optional string frame_id = 3;
  9848. if (_internal_has_frame_id()) {
  9849. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  9850. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  9851. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  9852. "RemoNet.LidarPoint.frame_id");
  9853. target = stream->WriteStringMaybeAliased(
  9854. 3, this->_internal_frame_id(), target);
  9855. }
  9856. // optional uint32 height = 4;
  9857. if (_internal_has_height()) {
  9858. target = stream->EnsureSpace(target);
  9859. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  9860. }
  9861. // optional uint32 width = 5;
  9862. if (_internal_has_width()) {
  9863. target = stream->EnsureSpace(target);
  9864. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  9865. }
  9866. // optional bool is_dense = 6;
  9867. if (_internal_has_is_dense()) {
  9868. target = stream->EnsureSpace(target);
  9869. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  9870. }
  9871. // optional bool is_left = 7;
  9872. if (_internal_has_is_left()) {
  9873. target = stream->EnsureSpace(target);
  9874. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  9875. }
  9876. // repeated float data = 8;
  9877. if (this->_internal_data_size() > 0) {
  9878. target = stream->WriteFixedPacked(8, _internal_data(), target);
  9879. }
  9880. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9881. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9882. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9883. }
  9884. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  9885. return target;
  9886. }
  9887. size_t LidarPoint::ByteSizeLong() const {
  9888. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  9889. size_t total_size = 0;
  9890. uint32_t cached_has_bits = 0;
  9891. // Prevent compiler warnings about cached_has_bits being unused
  9892. (void) cached_has_bits;
  9893. // repeated float data = 8;
  9894. {
  9895. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  9896. size_t data_size = 4UL * count;
  9897. if (data_size > 0) {
  9898. total_size += 1 +
  9899. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9900. static_cast<int32_t>(data_size));
  9901. }
  9902. total_size += data_size;
  9903. }
  9904. cached_has_bits = _has_bits_[0];
  9905. if (cached_has_bits & 0x0000007fu) {
  9906. // optional string frame_id = 3;
  9907. if (cached_has_bits & 0x00000001u) {
  9908. total_size += 1 +
  9909. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  9910. this->_internal_frame_id());
  9911. }
  9912. // optional double timestamp = 1;
  9913. if (cached_has_bits & 0x00000002u) {
  9914. total_size += 1 + 8;
  9915. }
  9916. // optional uint32 seq = 2;
  9917. if (cached_has_bits & 0x00000004u) {
  9918. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  9919. }
  9920. // optional uint32 height = 4;
  9921. if (cached_has_bits & 0x00000008u) {
  9922. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  9923. }
  9924. // optional uint32 width = 5;
  9925. if (cached_has_bits & 0x00000010u) {
  9926. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  9927. }
  9928. // optional bool is_dense = 6;
  9929. if (cached_has_bits & 0x00000020u) {
  9930. total_size += 1 + 1;
  9931. }
  9932. // optional bool is_left = 7;
  9933. if (cached_has_bits & 0x00000040u) {
  9934. total_size += 1 + 1;
  9935. }
  9936. }
  9937. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9938. }
  9939. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  9940. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9941. LidarPoint::MergeImpl
  9942. };
  9943. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  9944. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9945. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9946. static_cast<LidarPoint *>(to)->MergeFrom(
  9947. static_cast<const LidarPoint &>(from));
  9948. }
  9949. void LidarPoint::MergeFrom(const LidarPoint& from) {
  9950. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  9951. GOOGLE_DCHECK_NE(&from, this);
  9952. uint32_t cached_has_bits = 0;
  9953. (void) cached_has_bits;
  9954. data_.MergeFrom(from.data_);
  9955. cached_has_bits = from._has_bits_[0];
  9956. if (cached_has_bits & 0x0000007fu) {
  9957. if (cached_has_bits & 0x00000001u) {
  9958. _internal_set_frame_id(from._internal_frame_id());
  9959. }
  9960. if (cached_has_bits & 0x00000002u) {
  9961. timestamp_ = from.timestamp_;
  9962. }
  9963. if (cached_has_bits & 0x00000004u) {
  9964. seq_ = from.seq_;
  9965. }
  9966. if (cached_has_bits & 0x00000008u) {
  9967. height_ = from.height_;
  9968. }
  9969. if (cached_has_bits & 0x00000010u) {
  9970. width_ = from.width_;
  9971. }
  9972. if (cached_has_bits & 0x00000020u) {
  9973. is_dense_ = from.is_dense_;
  9974. }
  9975. if (cached_has_bits & 0x00000040u) {
  9976. is_left_ = from.is_left_;
  9977. }
  9978. _has_bits_[0] |= cached_has_bits;
  9979. }
  9980. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9981. }
  9982. void LidarPoint::CopyFrom(const LidarPoint& from) {
  9983. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  9984. if (&from == this) return;
  9985. Clear();
  9986. MergeFrom(from);
  9987. }
  9988. bool LidarPoint::IsInitialized() const {
  9989. return true;
  9990. }
  9991. void LidarPoint::InternalSwap(LidarPoint* other) {
  9992. using std::swap;
  9993. auto* lhs_arena = GetArenaForAllocation();
  9994. auto* rhs_arena = other->GetArenaForAllocation();
  9995. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9996. swap(_has_bits_[0], other->_has_bits_[0]);
  9997. data_.InternalSwap(&other->data_);
  9998. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9999. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10000. &frame_id_, lhs_arena,
  10001. &other->frame_id_, rhs_arena
  10002. );
  10003. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10004. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  10005. + sizeof(LidarPoint::is_left_)
  10006. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  10007. reinterpret_cast<char*>(&timestamp_),
  10008. reinterpret_cast<char*>(&other->timestamp_));
  10009. }
  10010. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  10011. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10012. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10013. file_level_metadata_protocol_2eproto[36]);
  10014. }
  10015. // ===================================================================
  10016. class SensorStop::_Internal {
  10017. public:
  10018. };
  10019. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10020. bool is_message_owned)
  10021. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10022. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  10023. }
  10024. SensorStop::SensorStop(const SensorStop& from)
  10025. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10026. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10027. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  10028. }
  10029. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  10030. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10031. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10032. };
  10033. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  10034. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  10035. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10036. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10037. file_level_metadata_protocol_2eproto[37]);
  10038. }
  10039. // ===================================================================
  10040. class StopAck::_Internal {
  10041. public:
  10042. };
  10043. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10044. bool is_message_owned)
  10045. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10046. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  10047. }
  10048. StopAck::StopAck(const StopAck& from)
  10049. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10050. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10051. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  10052. }
  10053. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  10054. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10055. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10056. };
  10057. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  10058. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  10059. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10060. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10061. file_level_metadata_protocol_2eproto[38]);
  10062. }
  10063. // ===================================================================
  10064. class can_net_frame::_Internal {
  10065. public:
  10066. };
  10067. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10068. bool is_message_owned)
  10069. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10070. SharedCtor();
  10071. if (!is_message_owned) {
  10072. RegisterArenaDtor(arena);
  10073. }
  10074. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  10075. }
  10076. can_net_frame::can_net_frame(const can_net_frame& from)
  10077. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10078. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10079. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10080. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10081. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10082. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10083. if (!from._internal_data().empty()) {
  10084. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  10085. GetArenaForAllocation());
  10086. }
  10087. ::memcpy(&dlc_, &from.dlc_,
  10088. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10089. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10090. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  10091. }
  10092. inline void can_net_frame::SharedCtor() {
  10093. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10094. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10095. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10096. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10097. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10098. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  10099. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10100. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10101. }
  10102. can_net_frame::~can_net_frame() {
  10103. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  10104. if (GetArenaForAllocation() != nullptr) return;
  10105. SharedDtor();
  10106. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10107. }
  10108. inline void can_net_frame::SharedDtor() {
  10109. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10110. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10111. }
  10112. void can_net_frame::ArenaDtor(void* object) {
  10113. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  10114. (void)_this;
  10115. }
  10116. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10117. }
  10118. void can_net_frame::SetCachedSize(int size) const {
  10119. _cached_size_.Set(size);
  10120. }
  10121. void can_net_frame::Clear() {
  10122. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  10123. uint32_t cached_has_bits = 0;
  10124. // Prevent compiler warnings about cached_has_bits being unused
  10125. (void) cached_has_bits;
  10126. data_.ClearToEmpty();
  10127. ::memset(&dlc_, 0, static_cast<size_t>(
  10128. reinterpret_cast<char*>(&canid_) -
  10129. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10130. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10131. }
  10132. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10133. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10134. while (!ctx->Done(&ptr)) {
  10135. uint32_t tag;
  10136. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10137. switch (tag >> 3) {
  10138. // sint32 dlc = 1;
  10139. case 1:
  10140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10141. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  10142. CHK_(ptr);
  10143. } else
  10144. goto handle_unusual;
  10145. continue;
  10146. // int32 canid = 2;
  10147. case 2:
  10148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10149. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10150. CHK_(ptr);
  10151. } else
  10152. goto handle_unusual;
  10153. continue;
  10154. // bytes data = 3;
  10155. case 3:
  10156. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  10157. auto str = _internal_mutable_data();
  10158. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  10159. CHK_(ptr);
  10160. } else
  10161. goto handle_unusual;
  10162. continue;
  10163. default:
  10164. goto handle_unusual;
  10165. } // switch
  10166. handle_unusual:
  10167. if ((tag == 0) || ((tag & 7) == 4)) {
  10168. CHK_(ptr);
  10169. ctx->SetLastTag(tag);
  10170. goto message_done;
  10171. }
  10172. ptr = UnknownFieldParse(
  10173. tag,
  10174. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10175. ptr, ctx);
  10176. CHK_(ptr != nullptr);
  10177. } // while
  10178. message_done:
  10179. return ptr;
  10180. failure:
  10181. ptr = nullptr;
  10182. goto message_done;
  10183. #undef CHK_
  10184. }
  10185. uint8_t* can_net_frame::_InternalSerialize(
  10186. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10187. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  10188. uint32_t cached_has_bits = 0;
  10189. (void) cached_has_bits;
  10190. // sint32 dlc = 1;
  10191. if (this->_internal_dlc() != 0) {
  10192. target = stream->EnsureSpace(target);
  10193. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  10194. }
  10195. // int32 canid = 2;
  10196. if (this->_internal_canid() != 0) {
  10197. target = stream->EnsureSpace(target);
  10198. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  10199. }
  10200. // bytes data = 3;
  10201. if (!this->_internal_data().empty()) {
  10202. target = stream->WriteBytesMaybeAliased(
  10203. 3, this->_internal_data(), target);
  10204. }
  10205. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10206. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10207. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10208. }
  10209. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  10210. return target;
  10211. }
  10212. size_t can_net_frame::ByteSizeLong() const {
  10213. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  10214. size_t total_size = 0;
  10215. uint32_t cached_has_bits = 0;
  10216. // Prevent compiler warnings about cached_has_bits being unused
  10217. (void) cached_has_bits;
  10218. // bytes data = 3;
  10219. if (!this->_internal_data().empty()) {
  10220. total_size += 1 +
  10221. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  10222. this->_internal_data());
  10223. }
  10224. // sint32 dlc = 1;
  10225. if (this->_internal_dlc() != 0) {
  10226. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  10227. }
  10228. // int32 canid = 2;
  10229. if (this->_internal_canid() != 0) {
  10230. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  10231. }
  10232. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10233. }
  10234. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  10235. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10236. can_net_frame::MergeImpl
  10237. };
  10238. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  10239. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10240. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10241. static_cast<can_net_frame *>(to)->MergeFrom(
  10242. static_cast<const can_net_frame &>(from));
  10243. }
  10244. void can_net_frame::MergeFrom(const can_net_frame& from) {
  10245. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  10246. GOOGLE_DCHECK_NE(&from, this);
  10247. uint32_t cached_has_bits = 0;
  10248. (void) cached_has_bits;
  10249. if (!from._internal_data().empty()) {
  10250. _internal_set_data(from._internal_data());
  10251. }
  10252. if (from._internal_dlc() != 0) {
  10253. _internal_set_dlc(from._internal_dlc());
  10254. }
  10255. if (from._internal_canid() != 0) {
  10256. _internal_set_canid(from._internal_canid());
  10257. }
  10258. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10259. }
  10260. void can_net_frame::CopyFrom(const can_net_frame& from) {
  10261. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  10262. if (&from == this) return;
  10263. Clear();
  10264. MergeFrom(from);
  10265. }
  10266. bool can_net_frame::IsInitialized() const {
  10267. return true;
  10268. }
  10269. void can_net_frame::InternalSwap(can_net_frame* other) {
  10270. using std::swap;
  10271. auto* lhs_arena = GetArenaForAllocation();
  10272. auto* rhs_arena = other->GetArenaForAllocation();
  10273. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10274. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10275. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10276. &data_, lhs_arena,
  10277. &other->data_, rhs_arena
  10278. );
  10279. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10280. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  10281. + sizeof(can_net_frame::canid_)
  10282. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  10283. reinterpret_cast<char*>(&dlc_),
  10284. reinterpret_cast<char*>(&other->dlc_));
  10285. }
  10286. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  10287. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10288. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10289. file_level_metadata_protocol_2eproto[39]);
  10290. }
  10291. // ===================================================================
  10292. class CCCanMsg::_Internal {
  10293. public:
  10294. };
  10295. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10296. bool is_message_owned)
  10297. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  10298. frams_(arena) {
  10299. SharedCtor();
  10300. if (!is_message_owned) {
  10301. RegisterArenaDtor(arena);
  10302. }
  10303. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  10304. }
  10305. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  10306. : ::PROTOBUF_NAMESPACE_ID::Message(),
  10307. frams_(from.frams_) {
  10308. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10309. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  10310. }
  10311. inline void CCCanMsg::SharedCtor() {
  10312. }
  10313. CCCanMsg::~CCCanMsg() {
  10314. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  10315. if (GetArenaForAllocation() != nullptr) return;
  10316. SharedDtor();
  10317. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10318. }
  10319. inline void CCCanMsg::SharedDtor() {
  10320. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10321. }
  10322. void CCCanMsg::ArenaDtor(void* object) {
  10323. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  10324. (void)_this;
  10325. }
  10326. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10327. }
  10328. void CCCanMsg::SetCachedSize(int size) const {
  10329. _cached_size_.Set(size);
  10330. }
  10331. void CCCanMsg::Clear() {
  10332. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  10333. uint32_t cached_has_bits = 0;
  10334. // Prevent compiler warnings about cached_has_bits being unused
  10335. (void) cached_has_bits;
  10336. frams_.Clear();
  10337. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10338. }
  10339. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10340. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10341. while (!ctx->Done(&ptr)) {
  10342. uint32_t tag;
  10343. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10344. switch (tag >> 3) {
  10345. // repeated .RemoNet.can_net_frame frams = 1;
  10346. case 1:
  10347. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10348. ptr -= 1;
  10349. do {
  10350. ptr += 1;
  10351. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  10352. CHK_(ptr);
  10353. if (!ctx->DataAvailable(ptr)) break;
  10354. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  10355. } else
  10356. goto handle_unusual;
  10357. continue;
  10358. default:
  10359. goto handle_unusual;
  10360. } // switch
  10361. handle_unusual:
  10362. if ((tag == 0) || ((tag & 7) == 4)) {
  10363. CHK_(ptr);
  10364. ctx->SetLastTag(tag);
  10365. goto message_done;
  10366. }
  10367. ptr = UnknownFieldParse(
  10368. tag,
  10369. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10370. ptr, ctx);
  10371. CHK_(ptr != nullptr);
  10372. } // while
  10373. message_done:
  10374. return ptr;
  10375. failure:
  10376. ptr = nullptr;
  10377. goto message_done;
  10378. #undef CHK_
  10379. }
  10380. uint8_t* CCCanMsg::_InternalSerialize(
  10381. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10382. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  10383. uint32_t cached_has_bits = 0;
  10384. (void) cached_has_bits;
  10385. // repeated .RemoNet.can_net_frame frams = 1;
  10386. for (unsigned int i = 0,
  10387. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  10388. target = stream->EnsureSpace(target);
  10389. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10390. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  10391. }
  10392. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10393. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10394. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10395. }
  10396. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  10397. return target;
  10398. }
  10399. size_t CCCanMsg::ByteSizeLong() const {
  10400. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  10401. size_t total_size = 0;
  10402. uint32_t cached_has_bits = 0;
  10403. // Prevent compiler warnings about cached_has_bits being unused
  10404. (void) cached_has_bits;
  10405. // repeated .RemoNet.can_net_frame frams = 1;
  10406. total_size += 1UL * this->_internal_frams_size();
  10407. for (const auto& msg : this->frams_) {
  10408. total_size +=
  10409. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10410. }
  10411. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10412. }
  10413. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  10414. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10415. CCCanMsg::MergeImpl
  10416. };
  10417. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  10418. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10419. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10420. static_cast<CCCanMsg *>(to)->MergeFrom(
  10421. static_cast<const CCCanMsg &>(from));
  10422. }
  10423. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  10424. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  10425. GOOGLE_DCHECK_NE(&from, this);
  10426. uint32_t cached_has_bits = 0;
  10427. (void) cached_has_bits;
  10428. frams_.MergeFrom(from.frams_);
  10429. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10430. }
  10431. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  10432. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  10433. if (&from == this) return;
  10434. Clear();
  10435. MergeFrom(from);
  10436. }
  10437. bool CCCanMsg::IsInitialized() const {
  10438. return true;
  10439. }
  10440. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  10441. using std::swap;
  10442. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10443. frams_.InternalSwap(&other->frams_);
  10444. }
  10445. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  10446. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10447. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10448. file_level_metadata_protocol_2eproto[40]);
  10449. }
  10450. // ===================================================================
  10451. class SCAddRobot::_Internal {
  10452. public:
  10453. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  10454. };
  10455. const ::RemoNet::Robot&
  10456. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  10457. return *msg->robot_;
  10458. }
  10459. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10460. bool is_message_owned)
  10461. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10462. SharedCtor();
  10463. if (!is_message_owned) {
  10464. RegisterArenaDtor(arena);
  10465. }
  10466. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  10467. }
  10468. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  10469. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10470. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10471. if (from._internal_has_robot()) {
  10472. robot_ = new ::RemoNet::Robot(*from.robot_);
  10473. } else {
  10474. robot_ = nullptr;
  10475. }
  10476. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  10477. }
  10478. inline void SCAddRobot::SharedCtor() {
  10479. robot_ = nullptr;
  10480. }
  10481. SCAddRobot::~SCAddRobot() {
  10482. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  10483. if (GetArenaForAllocation() != nullptr) return;
  10484. SharedDtor();
  10485. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10486. }
  10487. inline void SCAddRobot::SharedDtor() {
  10488. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10489. if (this != internal_default_instance()) delete robot_;
  10490. }
  10491. void SCAddRobot::ArenaDtor(void* object) {
  10492. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  10493. (void)_this;
  10494. }
  10495. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10496. }
  10497. void SCAddRobot::SetCachedSize(int size) const {
  10498. _cached_size_.Set(size);
  10499. }
  10500. void SCAddRobot::Clear() {
  10501. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  10502. uint32_t cached_has_bits = 0;
  10503. // Prevent compiler warnings about cached_has_bits being unused
  10504. (void) cached_has_bits;
  10505. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  10506. delete robot_;
  10507. }
  10508. robot_ = nullptr;
  10509. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10510. }
  10511. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10512. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10513. while (!ctx->Done(&ptr)) {
  10514. uint32_t tag;
  10515. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10516. switch (tag >> 3) {
  10517. // .RemoNet.Robot robot = 1;
  10518. case 1:
  10519. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10520. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  10521. CHK_(ptr);
  10522. } else
  10523. goto handle_unusual;
  10524. continue;
  10525. default:
  10526. goto handle_unusual;
  10527. } // switch
  10528. handle_unusual:
  10529. if ((tag == 0) || ((tag & 7) == 4)) {
  10530. CHK_(ptr);
  10531. ctx->SetLastTag(tag);
  10532. goto message_done;
  10533. }
  10534. ptr = UnknownFieldParse(
  10535. tag,
  10536. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10537. ptr, ctx);
  10538. CHK_(ptr != nullptr);
  10539. } // while
  10540. message_done:
  10541. return ptr;
  10542. failure:
  10543. ptr = nullptr;
  10544. goto message_done;
  10545. #undef CHK_
  10546. }
  10547. uint8_t* SCAddRobot::_InternalSerialize(
  10548. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10549. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  10550. uint32_t cached_has_bits = 0;
  10551. (void) cached_has_bits;
  10552. // .RemoNet.Robot robot = 1;
  10553. if (this->_internal_has_robot()) {
  10554. target = stream->EnsureSpace(target);
  10555. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10556. InternalWriteMessage(
  10557. 1, _Internal::robot(this), target, stream);
  10558. }
  10559. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10560. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10561. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10562. }
  10563. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  10564. return target;
  10565. }
  10566. size_t SCAddRobot::ByteSizeLong() const {
  10567. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  10568. size_t total_size = 0;
  10569. uint32_t cached_has_bits = 0;
  10570. // Prevent compiler warnings about cached_has_bits being unused
  10571. (void) cached_has_bits;
  10572. // .RemoNet.Robot robot = 1;
  10573. if (this->_internal_has_robot()) {
  10574. total_size += 1 +
  10575. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  10576. *robot_);
  10577. }
  10578. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10579. }
  10580. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  10581. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10582. SCAddRobot::MergeImpl
  10583. };
  10584. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  10585. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10586. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10587. static_cast<SCAddRobot *>(to)->MergeFrom(
  10588. static_cast<const SCAddRobot &>(from));
  10589. }
  10590. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  10591. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  10592. GOOGLE_DCHECK_NE(&from, this);
  10593. uint32_t cached_has_bits = 0;
  10594. (void) cached_has_bits;
  10595. if (from._internal_has_robot()) {
  10596. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  10597. }
  10598. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10599. }
  10600. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  10601. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  10602. if (&from == this) return;
  10603. Clear();
  10604. MergeFrom(from);
  10605. }
  10606. bool SCAddRobot::IsInitialized() const {
  10607. return true;
  10608. }
  10609. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  10610. using std::swap;
  10611. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10612. swap(robot_, other->robot_);
  10613. }
  10614. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  10615. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10616. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10617. file_level_metadata_protocol_2eproto[41]);
  10618. }
  10619. // ===================================================================
  10620. class SCDelRobot::_Internal {
  10621. public:
  10622. };
  10623. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10624. bool is_message_owned)
  10625. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10626. SharedCtor();
  10627. if (!is_message_owned) {
  10628. RegisterArenaDtor(arena);
  10629. }
  10630. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  10631. }
  10632. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  10633. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10634. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10635. ::memcpy(&peer_, &from.peer_,
  10636. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10637. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10638. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  10639. }
  10640. inline void SCDelRobot::SharedCtor() {
  10641. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10642. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  10643. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10644. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10645. }
  10646. SCDelRobot::~SCDelRobot() {
  10647. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  10648. if (GetArenaForAllocation() != nullptr) return;
  10649. SharedDtor();
  10650. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10651. }
  10652. inline void SCDelRobot::SharedDtor() {
  10653. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10654. }
  10655. void SCDelRobot::ArenaDtor(void* object) {
  10656. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  10657. (void)_this;
  10658. }
  10659. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10660. }
  10661. void SCDelRobot::SetCachedSize(int size) const {
  10662. _cached_size_.Set(size);
  10663. }
  10664. void SCDelRobot::Clear() {
  10665. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  10666. uint32_t cached_has_bits = 0;
  10667. // Prevent compiler warnings about cached_has_bits being unused
  10668. (void) cached_has_bits;
  10669. ::memset(&peer_, 0, static_cast<size_t>(
  10670. reinterpret_cast<char*>(&egotype_) -
  10671. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10672. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10673. }
  10674. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10675. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10676. while (!ctx->Done(&ptr)) {
  10677. uint32_t tag;
  10678. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10679. switch (tag >> 3) {
  10680. // int32 peer = 1;
  10681. case 1:
  10682. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10683. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10684. CHK_(ptr);
  10685. } else
  10686. goto handle_unusual;
  10687. continue;
  10688. // int32 egotype = 2;
  10689. case 2:
  10690. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10691. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10692. CHK_(ptr);
  10693. } else
  10694. goto handle_unusual;
  10695. continue;
  10696. default:
  10697. goto handle_unusual;
  10698. } // switch
  10699. handle_unusual:
  10700. if ((tag == 0) || ((tag & 7) == 4)) {
  10701. CHK_(ptr);
  10702. ctx->SetLastTag(tag);
  10703. goto message_done;
  10704. }
  10705. ptr = UnknownFieldParse(
  10706. tag,
  10707. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10708. ptr, ctx);
  10709. CHK_(ptr != nullptr);
  10710. } // while
  10711. message_done:
  10712. return ptr;
  10713. failure:
  10714. ptr = nullptr;
  10715. goto message_done;
  10716. #undef CHK_
  10717. }
  10718. uint8_t* SCDelRobot::_InternalSerialize(
  10719. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10720. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  10721. uint32_t cached_has_bits = 0;
  10722. (void) cached_has_bits;
  10723. // int32 peer = 1;
  10724. if (this->_internal_peer() != 0) {
  10725. target = stream->EnsureSpace(target);
  10726. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  10727. }
  10728. // int32 egotype = 2;
  10729. if (this->_internal_egotype() != 0) {
  10730. target = stream->EnsureSpace(target);
  10731. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  10732. }
  10733. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10734. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10735. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10736. }
  10737. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  10738. return target;
  10739. }
  10740. size_t SCDelRobot::ByteSizeLong() const {
  10741. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  10742. size_t total_size = 0;
  10743. uint32_t cached_has_bits = 0;
  10744. // Prevent compiler warnings about cached_has_bits being unused
  10745. (void) cached_has_bits;
  10746. // int32 peer = 1;
  10747. if (this->_internal_peer() != 0) {
  10748. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  10749. }
  10750. // int32 egotype = 2;
  10751. if (this->_internal_egotype() != 0) {
  10752. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  10753. }
  10754. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10755. }
  10756. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  10757. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10758. SCDelRobot::MergeImpl
  10759. };
  10760. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  10761. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10762. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10763. static_cast<SCDelRobot *>(to)->MergeFrom(
  10764. static_cast<const SCDelRobot &>(from));
  10765. }
  10766. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  10767. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  10768. GOOGLE_DCHECK_NE(&from, this);
  10769. uint32_t cached_has_bits = 0;
  10770. (void) cached_has_bits;
  10771. if (from._internal_peer() != 0) {
  10772. _internal_set_peer(from._internal_peer());
  10773. }
  10774. if (from._internal_egotype() != 0) {
  10775. _internal_set_egotype(from._internal_egotype());
  10776. }
  10777. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10778. }
  10779. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  10780. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  10781. if (&from == this) return;
  10782. Clear();
  10783. MergeFrom(from);
  10784. }
  10785. bool SCDelRobot::IsInitialized() const {
  10786. return true;
  10787. }
  10788. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  10789. using std::swap;
  10790. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10791. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10792. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  10793. + sizeof(SCDelRobot::egotype_)
  10794. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  10795. reinterpret_cast<char*>(&peer_),
  10796. reinterpret_cast<char*>(&other->peer_));
  10797. }
  10798. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  10799. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10800. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10801. file_level_metadata_protocol_2eproto[42]);
  10802. }
  10803. // @@protoc_insertion_point(namespace_scope)
  10804. } // namespace RemoNet
  10805. PROTOBUF_NAMESPACE_OPEN
  10806. template<> PROTOBUF_NOINLINE ::RemoNet::SwitchDriver* Arena::CreateMaybeMessage< ::RemoNet::SwitchDriver >(Arena* arena) {
  10807. return Arena::CreateMessageInternal< ::RemoNet::SwitchDriver >(arena);
  10808. }
  10809. template<> PROTOBUF_NOINLINE ::RemoNet::NDTPos* Arena::CreateMaybeMessage< ::RemoNet::NDTPos >(Arena* arena) {
  10810. return Arena::CreateMessageInternal< ::RemoNet::NDTPos >(arena);
  10811. }
  10812. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::CSMoveBegin >(Arena* arena) {
  10813. return Arena::CreateMessageInternal< ::RemoNet::CSMoveBegin >(arena);
  10814. }
  10815. template<> PROTOBUF_NOINLINE ::RemoNet::MoveRet* Arena::CreateMaybeMessage< ::RemoNet::MoveRet >(Arena* arena) {
  10816. return Arena::CreateMessageInternal< ::RemoNet::MoveRet >(arena);
  10817. }
  10818. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::CSMoveEnd >(Arena* arena) {
  10819. return Arena::CreateMessageInternal< ::RemoNet::CSMoveEnd >(arena);
  10820. }
  10821. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::SCMoveBegin >(Arena* arena) {
  10822. return Arena::CreateMessageInternal< ::RemoNet::SCMoveBegin >(arena);
  10823. }
  10824. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::SCMoveEnd >(Arena* arena) {
  10825. return Arena::CreateMessageInternal< ::RemoNet::SCMoveEnd >(arena);
  10826. }
  10827. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  10828. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  10829. }
  10830. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  10831. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  10832. }
  10833. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  10834. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  10835. }
  10836. template<> PROTOBUF_NOINLINE ::RemoNet::CSState* Arena::CreateMaybeMessage< ::RemoNet::CSState >(Arena* arena) {
  10837. return Arena::CreateMessageInternal< ::RemoNet::CSState >(arena);
  10838. }
  10839. template<> PROTOBUF_NOINLINE ::RemoNet::SCState* Arena::CreateMaybeMessage< ::RemoNet::SCState >(Arena* arena) {
  10840. return Arena::CreateMessageInternal< ::RemoNet::SCState >(arena);
  10841. }
  10842. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  10843. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  10844. }
  10845. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  10846. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  10847. }
  10848. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  10849. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  10850. }
  10851. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  10852. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  10853. }
  10854. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  10855. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  10856. }
  10857. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  10858. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  10859. }
  10860. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  10861. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  10862. }
  10863. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  10864. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  10865. }
  10866. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  10867. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  10868. }
  10869. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  10870. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  10871. }
  10872. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  10873. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  10874. }
  10875. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  10876. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  10877. }
  10878. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  10879. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  10880. }
  10881. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  10882. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  10883. }
  10884. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  10885. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  10886. }
  10887. template<> PROTOBUF_NOINLINE ::RemoNet::SyncTime* Arena::CreateMaybeMessage< ::RemoNet::SyncTime >(Arena* arena) {
  10888. return Arena::CreateMessageInternal< ::RemoNet::SyncTime >(arena);
  10889. }
  10890. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  10891. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  10892. }
  10893. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  10894. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  10895. }
  10896. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  10897. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  10898. }
  10899. template<> PROTOBUF_NOINLINE ::RemoNet::radar_node* Arena::CreateMaybeMessage< ::RemoNet::radar_node >(Arena* arena) {
  10900. return Arena::CreateMessageInternal< ::RemoNet::radar_node >(arena);
  10901. }
  10902. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  10903. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  10904. }
  10905. template<> PROTOBUF_NOINLINE ::RemoNet::CCSensor* Arena::CreateMaybeMessage< ::RemoNet::CCSensor >(Arena* arena) {
  10906. return Arena::CreateMessageInternal< ::RemoNet::CCSensor >(arena);
  10907. }
  10908. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  10909. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  10910. }
  10911. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  10912. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  10913. }
  10914. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  10915. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  10916. }
  10917. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  10918. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  10919. }
  10920. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  10921. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  10922. }
  10923. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  10924. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  10925. }
  10926. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  10927. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  10928. }
  10929. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  10930. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  10931. }
  10932. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  10933. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  10934. }
  10935. PROTOBUF_NAMESPACE_CLOSE
  10936. // @@protoc_insertion_point(global_scope)
  10937. #include <google/protobuf/port_undef.inc>