protocol.pb.cc 391 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111
  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 CCPing::CCPing(
  428. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  429. : tick_(int64_t{0})
  430. , temp_(0){}
  431. struct CCPingDefaultTypeInternal {
  432. constexpr CCPingDefaultTypeInternal()
  433. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  434. ~CCPingDefaultTypeInternal() {}
  435. union {
  436. CCPing _instance;
  437. };
  438. };
  439. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  440. constexpr radar_node::radar_node(
  441. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  442. : id_(0)
  443. , range_(0){}
  444. struct radar_nodeDefaultTypeInternal {
  445. constexpr radar_nodeDefaultTypeInternal()
  446. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  447. ~radar_nodeDefaultTypeInternal() {}
  448. union {
  449. radar_node _instance;
  450. };
  451. };
  452. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT radar_nodeDefaultTypeInternal _radar_node_default_instance_;
  453. constexpr CCSensor::CCSensor(
  454. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  455. : node_()
  456. , left_encode_(0)
  457. , right_encode_(0){}
  458. struct CCSensorDefaultTypeInternal {
  459. constexpr CCSensorDefaultTypeInternal()
  460. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  461. ~CCSensorDefaultTypeInternal() {}
  462. union {
  463. CCSensor _instance;
  464. };
  465. };
  466. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSensorDefaultTypeInternal _CCSensor_default_instance_;
  467. constexpr CCSwitch::CCSwitch(
  468. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  469. : front_(false){}
  470. struct CCSwitchDefaultTypeInternal {
  471. constexpr CCSwitchDefaultTypeInternal()
  472. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  473. ~CCSwitchDefaultTypeInternal() {}
  474. union {
  475. CCSwitch _instance;
  476. };
  477. };
  478. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  479. constexpr State::State(
  480. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  481. : work_pressure_(0)
  482. , brake_pressure_(0)
  483. , gearbox_oil_temp_(0)
  484. , gearbox_oil_pressure_(0)
  485. , engine_rpm_(0)
  486. , speed_(0)
  487. , engine_pressure_(0)
  488. , cold_water_(0)
  489. , steer_angle_(0)
  490. , left_lock_(0)
  491. , right_lock_(0){}
  492. struct StateDefaultTypeInternal {
  493. constexpr StateDefaultTypeInternal()
  494. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  495. ~StateDefaultTypeInternal() {}
  496. union {
  497. State _instance;
  498. };
  499. };
  500. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  501. constexpr LidarPoint::LidarPoint(
  502. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  503. : data_()
  504. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  505. , timestamp_(0)
  506. , seq_(0u)
  507. , height_(0u)
  508. , width_(0u)
  509. , is_dense_(false)
  510. , is_left_(false){}
  511. struct LidarPointDefaultTypeInternal {
  512. constexpr LidarPointDefaultTypeInternal()
  513. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  514. ~LidarPointDefaultTypeInternal() {}
  515. union {
  516. LidarPoint _instance;
  517. };
  518. };
  519. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  520. constexpr SensorStop::SensorStop(
  521. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  522. struct SensorStopDefaultTypeInternal {
  523. constexpr SensorStopDefaultTypeInternal()
  524. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  525. ~SensorStopDefaultTypeInternal() {}
  526. union {
  527. SensorStop _instance;
  528. };
  529. };
  530. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  531. constexpr StopAck::StopAck(
  532. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  533. struct StopAckDefaultTypeInternal {
  534. constexpr StopAckDefaultTypeInternal()
  535. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  536. ~StopAckDefaultTypeInternal() {}
  537. union {
  538. StopAck _instance;
  539. };
  540. };
  541. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  542. constexpr can_net_frame::can_net_frame(
  543. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  544. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  545. , dlc_(0)
  546. , canid_(0){}
  547. struct can_net_frameDefaultTypeInternal {
  548. constexpr can_net_frameDefaultTypeInternal()
  549. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  550. ~can_net_frameDefaultTypeInternal() {}
  551. union {
  552. can_net_frame _instance;
  553. };
  554. };
  555. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  556. constexpr CCCanMsg::CCCanMsg(
  557. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  558. : frams_(){}
  559. struct CCCanMsgDefaultTypeInternal {
  560. constexpr CCCanMsgDefaultTypeInternal()
  561. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  562. ~CCCanMsgDefaultTypeInternal() {}
  563. union {
  564. CCCanMsg _instance;
  565. };
  566. };
  567. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  568. constexpr SCAddRobot::SCAddRobot(
  569. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  570. : robot_(nullptr){}
  571. struct SCAddRobotDefaultTypeInternal {
  572. constexpr SCAddRobotDefaultTypeInternal()
  573. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  574. ~SCAddRobotDefaultTypeInternal() {}
  575. union {
  576. SCAddRobot _instance;
  577. };
  578. };
  579. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  580. constexpr SCDelRobot::SCDelRobot(
  581. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  582. : peer_(0)
  583. , egotype_(0){}
  584. struct SCDelRobotDefaultTypeInternal {
  585. constexpr SCDelRobotDefaultTypeInternal()
  586. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  587. ~SCDelRobotDefaultTypeInternal() {}
  588. union {
  589. SCDelRobot _instance;
  590. };
  591. };
  592. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  593. } // namespace RemoNet
  594. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[41];
  595. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  596. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  597. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  598. ~0u, // no _has_bits_
  599. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, _internal_metadata_),
  600. ~0u, // no _extensions_
  601. ~0u, // no _oneof_case_
  602. ~0u, // no _weak_field_map_
  603. ~0u, // no _inlined_string_donated_
  604. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, peer_),
  605. ~0u, // no _has_bits_
  606. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, _internal_metadata_),
  607. ~0u, // no _extensions_
  608. ~0u, // no _oneof_case_
  609. ~0u, // no _weak_field_map_
  610. ~0u, // no _inlined_string_donated_
  611. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, x_),
  612. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, y_),
  613. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, z_),
  614. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rx_),
  615. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, ry_),
  616. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rz_),
  617. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rw_),
  618. ~0u, // no _has_bits_
  619. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, _internal_metadata_),
  620. ~0u, // no _extensions_
  621. ~0u, // no _oneof_case_
  622. ~0u, // no _weak_field_map_
  623. ~0u, // no _inlined_string_donated_
  624. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, peer_),
  625. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, area_),
  626. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, no_),
  627. ~0u, // no _has_bits_
  628. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, _internal_metadata_),
  629. ~0u, // no _extensions_
  630. ~0u, // no _oneof_case_
  631. ~0u, // no _weak_field_map_
  632. ~0u, // no _inlined_string_donated_
  633. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, desc_),
  634. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, peer_),
  635. ~0u, // no _has_bits_
  636. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, _internal_metadata_),
  637. ~0u, // no _extensions_
  638. ~0u, // no _oneof_case_
  639. ~0u, // no _weak_field_map_
  640. ~0u, // no _inlined_string_donated_
  641. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, area_),
  642. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, no_),
  643. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, uid_),
  644. ~0u, // no _has_bits_
  645. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, _internal_metadata_),
  646. ~0u, // no _extensions_
  647. ~0u, // no _oneof_case_
  648. ~0u, // no _weak_field_map_
  649. ~0u, // no _inlined_string_donated_
  650. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, uid_),
  651. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, area_),
  652. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, no_),
  653. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, x_),
  654. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, y_),
  655. ~0u, // no _has_bits_
  656. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, _internal_metadata_),
  657. ~0u, // no _extensions_
  658. ~0u, // no _oneof_case_
  659. ~0u, // no _weak_field_map_
  660. ~0u, // no _inlined_string_donated_
  661. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, area_),
  662. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, no_),
  663. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, uid_),
  664. ~0u, // no _has_bits_
  665. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  666. ~0u, // no _extensions_
  667. ~0u, // no _oneof_case_
  668. ~0u, // no _weak_field_map_
  669. ~0u, // no _inlined_string_donated_
  670. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  671. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  672. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  673. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, car_),
  674. ~0u, // no _has_bits_
  675. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  676. ~0u, // no _extensions_
  677. ~0u, // no _oneof_case_
  678. ~0u, // no _weak_field_map_
  679. ~0u, // no _inlined_string_donated_
  680. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  681. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, car_),
  684. ~0u, // no _has_bits_
  685. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  686. ~0u, // no _extensions_
  687. ~0u, // no _oneof_case_
  688. ~0u, // no _weak_field_map_
  689. ~0u, // no _inlined_string_donated_
  690. ~0u, // no _has_bits_
  691. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, _internal_metadata_),
  692. ~0u, // no _extensions_
  693. ~0u, // no _oneof_case_
  694. ~0u, // no _weak_field_map_
  695. ~0u, // no _inlined_string_donated_
  696. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, state_),
  697. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, uid_),
  698. ~0u, // no _has_bits_
  699. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, _internal_metadata_),
  700. ~0u, // no _extensions_
  701. ~0u, // no _oneof_case_
  702. ~0u, // no _weak_field_map_
  703. ~0u, // no _inlined_string_donated_
  704. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, state_),
  705. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, uid_),
  706. ~0u, // no _has_bits_
  707. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  708. ~0u, // no _extensions_
  709. ~0u, // no _oneof_case_
  710. ~0u, // no _weak_field_map_
  711. ~0u, // no _inlined_string_donated_
  712. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  713. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  714. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  715. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  716. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, cartype_),
  717. ~0u, // no _has_bits_
  718. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  719. ~0u, // no _extensions_
  720. ~0u, // no _oneof_case_
  721. ~0u, // no _weak_field_map_
  722. ~0u, // no _inlined_string_donated_
  723. ~0u, // no _has_bits_
  724. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _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::SCRobot, robot_),
  730. ~0u, // no _has_bits_
  731. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  732. ~0u, // no _extensions_
  733. ~0u, // no _oneof_case_
  734. ~0u, // no _weak_field_map_
  735. ~0u, // no _inlined_string_donated_
  736. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  737. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  738. ~0u, // no _has_bits_
  739. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  740. ~0u, // no _extensions_
  741. ~0u, // no _oneof_case_
  742. ~0u, // no _weak_field_map_
  743. ~0u, // no _inlined_string_donated_
  744. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  745. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  746. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  747. ~0u, // no _has_bits_
  748. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _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::CSReq, peer_),
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  755. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  756. ~0u, // no _has_bits_
  757. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  758. ~0u, // no _extensions_
  759. ~0u, // no _oneof_case_
  760. ~0u, // no _weak_field_map_
  761. ~0u, // no _inlined_string_donated_
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  763. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  764. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  765. ~0u, // no _has_bits_
  766. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  767. ~0u, // no _extensions_
  768. ~0u, // no _oneof_case_
  769. ~0u, // no _weak_field_map_
  770. ~0u, // no _inlined_string_donated_
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  772. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  774. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  775. ~0u, // no _has_bits_
  776. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  777. ~0u, // no _extensions_
  778. ~0u, // no _oneof_case_
  779. ~0u, // no _weak_field_map_
  780. ~0u, // no _inlined_string_donated_
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  782. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  783. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  784. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  785. ~0u, // no _has_bits_
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  787. ~0u, // no _extensions_
  788. ~0u, // no _oneof_case_
  789. ~0u, // no _weak_field_map_
  790. ~0u, // no _inlined_string_donated_
  791. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  792. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  793. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  795. ~0u, // no _has_bits_
  796. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  797. ~0u, // no _extensions_
  798. ~0u, // no _oneof_case_
  799. ~0u, // no _weak_field_map_
  800. ~0u, // no _inlined_string_donated_
  801. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  802. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  804. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  805. ~0u, // no _has_bits_
  806. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _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::Candidate, index_),
  812. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  813. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  814. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  815. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  816. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  817. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  818. ~0u, // no _has_bits_
  819. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  820. ~0u, // no _extensions_
  821. ~0u, // no _oneof_case_
  822. ~0u, // no _weak_field_map_
  823. ~0u, // no _inlined_string_donated_
  824. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  825. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  826. ~0u, // no _has_bits_
  827. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  828. ~0u, // no _extensions_
  829. ~0u, // no _oneof_case_
  830. ~0u, // no _weak_field_map_
  831. ~0u, // no _inlined_string_donated_
  832. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  833. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  834. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  835. ~0u, // no _has_bits_
  836. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  837. ~0u, // no _extensions_
  838. ~0u, // no _oneof_case_
  839. ~0u, // no _weak_field_map_
  840. ~0u, // no _inlined_string_donated_
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  842. ~0u, // no _has_bits_
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, _internal_metadata_),
  844. ~0u, // no _extensions_
  845. ~0u, // no _oneof_case_
  846. ~0u, // no _weak_field_map_
  847. ~0u, // no _inlined_string_donated_
  848. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_sec_),
  849. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_min_),
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_hour_),
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mday_),
  852. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mon_),
  853. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_year_),
  854. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_wday_),
  855. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_yday_),
  856. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_isdst_),
  857. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, update_time_),
  858. ~0u, // no _has_bits_
  859. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  860. ~0u, // no _extensions_
  861. ~0u, // no _oneof_case_
  862. ~0u, // no _weak_field_map_
  863. ~0u, // no _inlined_string_donated_
  864. ~0u, // no _has_bits_
  865. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  866. ~0u, // no _extensions_
  867. ~0u, // no _oneof_case_
  868. ~0u, // no _weak_field_map_
  869. ~0u, // no _inlined_string_donated_
  870. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  871. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, temp_),
  872. ~0u, // no _has_bits_
  873. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, _internal_metadata_),
  874. ~0u, // no _extensions_
  875. ~0u, // no _oneof_case_
  876. ~0u, // no _weak_field_map_
  877. ~0u, // no _inlined_string_donated_
  878. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, id_),
  879. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, range_),
  880. ~0u, // no _has_bits_
  881. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, _internal_metadata_),
  882. ~0u, // no _extensions_
  883. ~0u, // no _oneof_case_
  884. ~0u, // no _weak_field_map_
  885. ~0u, // no _inlined_string_donated_
  886. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, node_),
  887. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, left_encode_),
  888. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, right_encode_),
  889. ~0u, // no _has_bits_
  890. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  891. ~0u, // no _extensions_
  892. ~0u, // no _oneof_case_
  893. ~0u, // no _weak_field_map_
  894. ~0u, // no _inlined_string_donated_
  895. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  896. ~0u, // no _has_bits_
  897. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  898. ~0u, // no _extensions_
  899. ~0u, // no _oneof_case_
  900. ~0u, // no _weak_field_map_
  901. ~0u, // no _inlined_string_donated_
  902. PROTOBUF_FIELD_OFFSET(::RemoNet::State, work_pressure_),
  903. PROTOBUF_FIELD_OFFSET(::RemoNet::State, brake_pressure_),
  904. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_temp_),
  905. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gearbox_oil_pressure_),
  906. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_rpm_),
  907. PROTOBUF_FIELD_OFFSET(::RemoNet::State, speed_),
  908. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_pressure_),
  909. PROTOBUF_FIELD_OFFSET(::RemoNet::State, cold_water_),
  910. PROTOBUF_FIELD_OFFSET(::RemoNet::State, steer_angle_),
  911. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_lock_),
  912. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_lock_),
  913. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  914. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _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::LidarPoint, timestamp_),
  920. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  921. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  922. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  923. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  924. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  925. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  926. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  927. 1,
  928. 2,
  929. 0,
  930. 3,
  931. 4,
  932. 5,
  933. 6,
  934. ~0u,
  935. ~0u, // no _has_bits_
  936. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  937. ~0u, // no _extensions_
  938. ~0u, // no _oneof_case_
  939. ~0u, // no _weak_field_map_
  940. ~0u, // no _inlined_string_donated_
  941. ~0u, // no _has_bits_
  942. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  943. ~0u, // no _extensions_
  944. ~0u, // no _oneof_case_
  945. ~0u, // no _weak_field_map_
  946. ~0u, // no _inlined_string_donated_
  947. ~0u, // no _has_bits_
  948. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  949. ~0u, // no _extensions_
  950. ~0u, // no _oneof_case_
  951. ~0u, // no _weak_field_map_
  952. ~0u, // no _inlined_string_donated_
  953. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  954. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  955. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  956. ~0u, // no _has_bits_
  957. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  958. ~0u, // no _extensions_
  959. ~0u, // no _oneof_case_
  960. ~0u, // no _weak_field_map_
  961. ~0u, // no _inlined_string_donated_
  962. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  963. ~0u, // no _has_bits_
  964. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  965. ~0u, // no _extensions_
  966. ~0u, // no _oneof_case_
  967. ~0u, // no _weak_field_map_
  968. ~0u, // no _inlined_string_donated_
  969. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  970. ~0u, // no _has_bits_
  971. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  972. ~0u, // no _extensions_
  973. ~0u, // no _oneof_case_
  974. ~0u, // no _weak_field_map_
  975. ~0u, // no _inlined_string_donated_
  976. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  977. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  978. };
  979. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  980. { 0, -1, -1, sizeof(::RemoNet::SwitchDriver)},
  981. { 7, -1, -1, sizeof(::RemoNet::NDTPos)},
  982. { 20, -1, -1, sizeof(::RemoNet::CSMoveBegin)},
  983. { 29, -1, -1, sizeof(::RemoNet::MoveRet)},
  984. { 37, -1, -1, sizeof(::RemoNet::CSMoveEnd)},
  985. { 46, -1, -1, sizeof(::RemoNet::SCMoveBegin)},
  986. { 57, -1, -1, sizeof(::RemoNet::SCMoveEnd)},
  987. { 66, -1, -1, sizeof(::RemoNet::CSAdd)},
  988. { 76, -1, -1, sizeof(::RemoNet::SCAdd)},
  989. { 86, -1, -1, sizeof(::RemoNet::SCKickOff)},
  990. { 92, -1, -1, sizeof(::RemoNet::CSState)},
  991. { 100, -1, -1, sizeof(::RemoNet::SCState)},
  992. { 108, -1, -1, sizeof(::RemoNet::Robot)},
  993. { 119, -1, -1, sizeof(::RemoNet::CSRobot)},
  994. { 125, -1, -1, sizeof(::RemoNet::SCRobot)},
  995. { 132, -1, -1, sizeof(::RemoNet::CSSign)},
  996. { 140, -1, -1, sizeof(::RemoNet::SCSign)},
  997. { 149, -1, -1, sizeof(::RemoNet::CSReq)},
  998. { 158, -1, -1, sizeof(::RemoNet::SCReq)},
  999. { 167, -1, -1, sizeof(::RemoNet::CSRep)},
  1000. { 177, -1, -1, sizeof(::RemoNet::SCRep)},
  1001. { 187, -1, -1, sizeof(::RemoNet::Offer)},
  1002. { 197, -1, -1, sizeof(::RemoNet::Answer)},
  1003. { 207, -1, -1, sizeof(::RemoNet::Candidate)},
  1004. { 220, -1, -1, sizeof(::RemoNet::Leave)},
  1005. { 228, -1, -1, sizeof(::RemoNet::Close)},
  1006. { 237, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1007. { 244, -1, -1, sizeof(::RemoNet::SyncTime)},
  1008. { 260, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1009. { 266, -1, -1, sizeof(::RemoNet::CCPing)},
  1010. { 274, -1, -1, sizeof(::RemoNet::radar_node)},
  1011. { 282, -1, -1, sizeof(::RemoNet::CCSensor)},
  1012. { 291, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1013. { 298, -1, -1, sizeof(::RemoNet::State)},
  1014. { 315, 329, -1, sizeof(::RemoNet::LidarPoint)},
  1015. { 337, -1, -1, sizeof(::RemoNet::SensorStop)},
  1016. { 343, -1, -1, sizeof(::RemoNet::StopAck)},
  1017. { 349, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1018. { 358, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1019. { 365, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1020. { 372, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1021. };
  1022. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1023. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SwitchDriver_default_instance_),
  1024. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_NDTPos_default_instance_),
  1025. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveBegin_default_instance_),
  1026. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_MoveRet_default_instance_),
  1027. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveEnd_default_instance_),
  1028. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveBegin_default_instance_),
  1029. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveEnd_default_instance_),
  1030. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1031. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1032. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1033. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSState_default_instance_),
  1034. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCState_default_instance_),
  1035. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1036. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1037. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1038. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1039. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1040. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1041. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1042. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1043. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1044. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1045. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1046. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1047. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1048. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1049. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1050. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SyncTime_default_instance_),
  1051. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1052. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1053. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_radar_node_default_instance_),
  1054. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSensor_default_instance_),
  1055. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1056. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1057. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1058. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1059. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1060. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1061. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1062. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1063. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1064. };
  1065. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1066. "\n\016protocol.proto\022\007RemoNet\"\034\n\014SwitchDrive"
  1067. "r\022\014\n\004peer\030\001 \001(\005\"Y\n\006NDTPos\022\t\n\001x\030\001 \001(\002\022\t\n\001"
  1068. "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"
  1069. "(\002\022\n\n\002rz\030\006 \001(\002\022\n\n\002rw\030\007 \001(\002\"5\n\013CSMoveBegi"
  1070. "n\022\014\n\004peer\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030\003 \001("
  1071. "\005\"8\n\007MoveRet\022\037\n\004desc\030\001 \001(\0162\021.RemoNet.Mov"
  1072. "eDesc\022\014\n\004peer\030\002 \001(\005\"2\n\tCSMoveEnd\022\014\n\004area"
  1073. "\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\"J\n\013SCMov"
  1074. "eBegin\022\013\n\003uid\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030"
  1075. "\003 \001(\005\022\t\n\001x\030\004 \001(\002\022\t\n\001y\030\005 \001(\002\"2\n\tSCMoveEnd"
  1076. "\022\014\n\004area\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\""
  1077. "@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014"
  1078. "\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<\n\005SCAdd\022\013\n\003re"
  1079. "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"
  1080. "r\030\004 \001(\005\"\013\n\tSCKickOff\"9\n\007CSState\022!\n\005state"
  1081. "\030\001 \001(\0162\022.RemoNet.UserState\022\013\n\003uid\030\002 \001(\005\""
  1082. "9\n\007SCState\022!\n\005state\030\001 \001(\0162\022.RemoNet.User"
  1083. "State\022\013\n\003uid\030\002 \001(\005\"d\n\005Robot\022\013\n\003rid\030\001 \001(\005"
  1084. "\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022!\n\005state\030\004 "
  1085. "\001(\0162\022.RemoNet.UserState\022\017\n\007carType\030\005 \001(\005"
  1086. "\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005robot\030\001 \003(\0132\016."
  1087. "RemoNet.Robot\"+\n\006CSSign\022\017\n\007account\030\001 \001(\t"
  1088. "\022\020\n\010password\030\002 \001(\t\"0\n\006SCSign\022\013\n\003ret\030\001 \001("
  1089. "\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"5\n\005CSReq\022\014\n"
  1090. "\004peer\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 "
  1091. "\001(\005\"H\n\005SCReq\022 \n\004desc\030\001 \001(\0162\022.RemoNet.Vid"
  1092. "eoDesc\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n"
  1093. "\005CSRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc"
  1094. "\022\014\n\004peer\030\002 \001(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype"
  1095. "\030\004 \001(\005\"W\n\005SCRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet."
  1096. "VideoDesc\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001("
  1097. "\005\022\014\n\004peer\030\004 \001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022"
  1098. "\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t"
  1099. "\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022"
  1100. "\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate"
  1101. "\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 "
  1102. "\001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030"
  1103. "\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&"
  1104. "\n\005Leave\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5"
  1105. "\n\005Close\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r"
  1106. "\n\005index\030\003 \001(\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001"
  1107. "(\t\"\266\001\n\010SyncTime\022\016\n\006tm_sec\030\001 \001(\005\022\016\n\006tm_mi"
  1108. "n\030\002 \001(\005\022\017\n\007tm_hour\030\003 \001(\005\022\017\n\007tm_mday\030\004 \001("
  1109. "\005\022\016\n\006tm_mon\030\005 \001(\005\022\017\n\007tm_year\030\006 \001(\005\022\017\n\007tm"
  1110. "_wday\030\007 \001(\005\022\017\n\007tm_yday\030\010 \001(\005\022\020\n\010tm_isdst"
  1111. "\030\t \001(\005\022\023\n\013update_time\030\n \001(\010\"\022\n\020CCAskData"
  1112. "Channel\"$\n\006CCPing\022\014\n\004tick\030\001 \001(\003\022\014\n\004temp\030"
  1113. "\002 \001(\001\"\'\n\nradar_node\022\n\n\002id\030\001 \001(\005\022\r\n\005range"
  1114. "\030\002 \001(\005\"X\n\010CCSensor\022!\n\004node\030\001 \003(\0132\023.RemoN"
  1115. "et.radar_node\022\023\n\013left_encode\030\002 \001(\005\022\024\n\014ri"
  1116. "ght_encode\030\003 \001(\005\"\031\n\010CCSwitch\022\r\n\005front\030\001 "
  1117. "\001(\010\"\372\001\n\005State\022\025\n\rwork_pressure\030\001 \001(\005\022\026\n\016"
  1118. "brake_pressure\030\002 \001(\005\022\030\n\020gearbox_oil_temp"
  1119. "\030\003 \001(\005\022\034\n\024gearbox_oil_pressure\030\004 \001(\005\022\022\n\n"
  1120. "engine_rpm\030\005 \001(\005\022\r\n\005speed\030\006 \001(\005\022\027\n\017engin"
  1121. "e_pressure\030\010 \001(\005\022\022\n\ncold_water\030\t \001(\005\022\023\n\013"
  1122. "steer_angle\030\n \001(\005\022\021\n\tleft_lock\030\013 \001(\005\022\022\n\n"
  1123. "right_lock\030\014 \001(\005\"\202\002\n\nLidarPoint\022\026\n\ttimes"
  1124. "tamp\030\001 \001(\001H\000\210\001\001\022\020\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010fra"
  1125. "me_id\030\003 \001(\tH\002\210\001\001\022\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n"
  1126. "\005width\030\005 \001(\rH\004\210\001\001\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001"
  1127. "\022\024\n\007is_left\030\007 \001(\010H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n"
  1128. "_timestampB\006\n\004_seqB\013\n\t_frame_idB\t\n\007_heig"
  1129. "htB\010\n\006_widthB\013\n\t_is_denseB\n\n\010_is_left\"\014\n"
  1130. "\nSensorStop\"\t\n\007StopAck\"9\n\rcan_net_frame\022"
  1131. "\013\n\003dlc\030\001 \001(\021\022\r\n\005canid\030\002 \001(\005\022\014\n\004data\030\003 \001("
  1132. "\014\"1\n\010CCCanMsg\022%\n\005frams\030\001 \003(\0132\026.RemoNet.c"
  1133. "an_net_frame\"+\n\nSCAddRobot\022\035\n\005robot\030\001 \001("
  1134. "\0132\016.RemoNet.Robot\"+\n\nSCDelRobot\022\014\n\004peer\030"
  1135. "\001 \001(\005\022\017\n\007egotype\030\002 \001(\005*\303\002\n\tCSMessage\022\013\n\007"
  1136. "CS_NONE\020\000\022\014\n\007CS_Sign\020\320\017\022\013\n\006CS_Req\020\321\017\022\013\n\006"
  1137. "CS_Rep\020\322\017\022\021\n\014CS_CancelReq\020\323\017\022\r\n\010CS_Offer"
  1138. "\020\324\017\022\016\n\tCS_Answer\020\325\017\022\021\n\014CS_Candidate\020\326\017\022\r"
  1139. "\n\010CS_Leave\020\327\017\022\021\n\014CS_KeepAlive\020\330\017\022\013\n\006CS_A"
  1140. "dd\020\331\017\022\r\n\010CS_Robot\020\332\017\022\022\n\rCS_CloseVideo\020\333\017"
  1141. "\022\021\n\014CS_MoveBegin\020\334\017\022\017\n\nCS_MoveEnd\020\335\017\022\r\n\010"
  1142. "CS_State\020\336\017\022\024\n\017CS_SwitchDriver\020\337\017\022\017\n\nCS_"
  1143. "MoveRet\020\340\017\022\020\n\013CS_SyncTime\020\341\017*\205\004\n\tSCMessa"
  1144. "ge\022\013\n\007SC_NONE\020\000\022\014\n\007SC_Sign\020\240\037\022\013\n\006SC_Req\020"
  1145. "\241\037\022\013\n\006SC_Rep\020\242\037\022\016\n\tSC_Cancel\020\243\037\022\r\n\010SC_Of"
  1146. "fer\020\244\037\022\016\n\tSC_Answer\020\245\037\022\021\n\014SC_Candidate\020\246"
  1147. "\037\022\013\n\006SC_Add\020\247\037\022\r\n\010SC_Robot\020\250\037\022\021\n\014SC_Noti"
  1148. "fyReq\020\251\037\022\021\n\014SC_NotifyRep\020\252\037\022\024\n\017SC_Notify"
  1149. "Answer\020\253\037\022\023\n\016SC_NotifyOffer\020\254\037\022\027\n\022SC_Not"
  1150. "ifyCandidate\020\255\037\022\023\n\016SC_NotifyLeave\020\256\037\022\024\n\017"
  1151. "SC_NotifyCancel\020\257\037\022\021\n\014SC_NotifyAdd\020\260\037\022\021\n"
  1152. "\014SC_NotifyDel\020\261\037\022\030\n\023SC_NotifyCloseVideo\020"
  1153. "\262\037\022\017\n\nSC_KickOff\020\263\037\022\021\n\014SC_MoveBegin\020\264\037\022\017"
  1154. "\n\nSC_MoveEnd\020\265\037\022\r\n\010SC_State\020\266\037\022\024\n\017SC_Swi"
  1155. "tchDriver\020\267\037\022\017\n\nSC_MoveRet\020\270\037\022\023\n\016SC_Noti"
  1156. "fyState\020\271\037\022\020\n\013SC_SyncTime\020\272\037*\344\001\n\tCCMessa"
  1157. "ge\022\013\n\007CC_None\020\000\022\014\n\007CC_Text\020\300>\022\026\n\021CC_ASKD"
  1158. "ATACHANNEL\020\303>\022\024\n\017CC_Manipulation\020\304>\022\r\n\010C"
  1159. "C_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007CC_Ping\020\307>"
  1160. "\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_StopACK\020\311>\022\r\n"
  1161. "\010CC_Lidar\020\312>\022\016\n\tCC_CANMSG\020\313>\022\r\n\010CC_STATE"
  1162. "\020\314>\022\016\n\tCC_NDTPOS\020\315>*F\n\tVideoDesc\022\006\n\002OK\020\000"
  1163. "\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFound\020\003\022\016\n\nI"
  1164. "sVideoing\020\004*D\n\010MoveDesc\022\013\n\007Move_OK\020\000\022\024\n\020"
  1165. "Move_Encode_Fail\020\001\022\025\n\021Move_Unknow_Faile\020"
  1166. "\002*M\n\tUserState\022\013\n\007Offline\020\000\022\010\n\004Idle\020\001\022\n\n"
  1167. "\006Remote\020\002\022\016\n\nAutomotive\020\003\022\r\n\tAskRemote\020\004"
  1168. "b\006proto3"
  1169. ;
  1170. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1171. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1172. false, false, 4088, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1173. &descriptor_table_protocol_2eproto_once, nullptr, 0, 41,
  1174. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1175. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1176. };
  1177. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1178. return &descriptor_table_protocol_2eproto;
  1179. }
  1180. // Force running AddDescriptors() at dynamic initialization time.
  1181. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1182. namespace RemoNet {
  1183. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1184. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1185. return file_level_enum_descriptors_protocol_2eproto[0];
  1186. }
  1187. bool CSMessage_IsValid(int value) {
  1188. switch (value) {
  1189. case 0:
  1190. case 2000:
  1191. case 2001:
  1192. case 2002:
  1193. case 2003:
  1194. case 2004:
  1195. case 2005:
  1196. case 2006:
  1197. case 2007:
  1198. case 2008:
  1199. case 2009:
  1200. case 2010:
  1201. case 2011:
  1202. case 2012:
  1203. case 2013:
  1204. case 2014:
  1205. case 2015:
  1206. case 2016:
  1207. case 2017:
  1208. return true;
  1209. default:
  1210. return false;
  1211. }
  1212. }
  1213. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1214. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1215. return file_level_enum_descriptors_protocol_2eproto[1];
  1216. }
  1217. bool SCMessage_IsValid(int value) {
  1218. switch (value) {
  1219. case 0:
  1220. case 4000:
  1221. case 4001:
  1222. case 4002:
  1223. case 4003:
  1224. case 4004:
  1225. case 4005:
  1226. case 4006:
  1227. case 4007:
  1228. case 4008:
  1229. case 4009:
  1230. case 4010:
  1231. case 4011:
  1232. case 4012:
  1233. case 4013:
  1234. case 4014:
  1235. case 4015:
  1236. case 4016:
  1237. case 4017:
  1238. case 4018:
  1239. case 4019:
  1240. case 4020:
  1241. case 4021:
  1242. case 4022:
  1243. case 4023:
  1244. case 4024:
  1245. case 4025:
  1246. case 4026:
  1247. return true;
  1248. default:
  1249. return false;
  1250. }
  1251. }
  1252. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1253. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1254. return file_level_enum_descriptors_protocol_2eproto[2];
  1255. }
  1256. bool CCMessage_IsValid(int value) {
  1257. switch (value) {
  1258. case 0:
  1259. case 8000:
  1260. case 8003:
  1261. case 8004:
  1262. case 8005:
  1263. case 8006:
  1264. case 8007:
  1265. case 8008:
  1266. case 8009:
  1267. case 8010:
  1268. case 8011:
  1269. case 8012:
  1270. case 8013:
  1271. return true;
  1272. default:
  1273. return false;
  1274. }
  1275. }
  1276. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1277. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1278. return file_level_enum_descriptors_protocol_2eproto[3];
  1279. }
  1280. bool VideoDesc_IsValid(int value) {
  1281. switch (value) {
  1282. case 0:
  1283. case 1:
  1284. case 2:
  1285. case 3:
  1286. case 4:
  1287. return true;
  1288. default:
  1289. return false;
  1290. }
  1291. }
  1292. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MoveDesc_descriptor() {
  1293. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1294. return file_level_enum_descriptors_protocol_2eproto[4];
  1295. }
  1296. bool MoveDesc_IsValid(int value) {
  1297. switch (value) {
  1298. case 0:
  1299. case 1:
  1300. case 2:
  1301. return true;
  1302. default:
  1303. return false;
  1304. }
  1305. }
  1306. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserState_descriptor() {
  1307. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1308. return file_level_enum_descriptors_protocol_2eproto[5];
  1309. }
  1310. bool UserState_IsValid(int value) {
  1311. switch (value) {
  1312. case 0:
  1313. case 1:
  1314. case 2:
  1315. case 3:
  1316. case 4:
  1317. return true;
  1318. default:
  1319. return false;
  1320. }
  1321. }
  1322. // ===================================================================
  1323. class SwitchDriver::_Internal {
  1324. public:
  1325. };
  1326. SwitchDriver::SwitchDriver(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1327. bool is_message_owned)
  1328. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1329. SharedCtor();
  1330. if (!is_message_owned) {
  1331. RegisterArenaDtor(arena);
  1332. }
  1333. // @@protoc_insertion_point(arena_constructor:RemoNet.SwitchDriver)
  1334. }
  1335. SwitchDriver::SwitchDriver(const SwitchDriver& from)
  1336. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1337. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1338. peer_ = from.peer_;
  1339. // @@protoc_insertion_point(copy_constructor:RemoNet.SwitchDriver)
  1340. }
  1341. inline void SwitchDriver::SharedCtor() {
  1342. peer_ = 0;
  1343. }
  1344. SwitchDriver::~SwitchDriver() {
  1345. // @@protoc_insertion_point(destructor:RemoNet.SwitchDriver)
  1346. if (GetArenaForAllocation() != nullptr) return;
  1347. SharedDtor();
  1348. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1349. }
  1350. inline void SwitchDriver::SharedDtor() {
  1351. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1352. }
  1353. void SwitchDriver::ArenaDtor(void* object) {
  1354. SwitchDriver* _this = reinterpret_cast< SwitchDriver* >(object);
  1355. (void)_this;
  1356. }
  1357. void SwitchDriver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1358. }
  1359. void SwitchDriver::SetCachedSize(int size) const {
  1360. _cached_size_.Set(size);
  1361. }
  1362. void SwitchDriver::Clear() {
  1363. // @@protoc_insertion_point(message_clear_start:RemoNet.SwitchDriver)
  1364. uint32_t cached_has_bits = 0;
  1365. // Prevent compiler warnings about cached_has_bits being unused
  1366. (void) cached_has_bits;
  1367. peer_ = 0;
  1368. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1369. }
  1370. const char* SwitchDriver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1371. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1372. while (!ctx->Done(&ptr)) {
  1373. uint32_t tag;
  1374. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1375. switch (tag >> 3) {
  1376. // int32 peer = 1;
  1377. case 1:
  1378. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1379. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1380. CHK_(ptr);
  1381. } else
  1382. goto handle_unusual;
  1383. continue;
  1384. default:
  1385. goto handle_unusual;
  1386. } // switch
  1387. handle_unusual:
  1388. if ((tag == 0) || ((tag & 7) == 4)) {
  1389. CHK_(ptr);
  1390. ctx->SetLastTag(tag);
  1391. goto message_done;
  1392. }
  1393. ptr = UnknownFieldParse(
  1394. tag,
  1395. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1396. ptr, ctx);
  1397. CHK_(ptr != nullptr);
  1398. } // while
  1399. message_done:
  1400. return ptr;
  1401. failure:
  1402. ptr = nullptr;
  1403. goto message_done;
  1404. #undef CHK_
  1405. }
  1406. uint8_t* SwitchDriver::_InternalSerialize(
  1407. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1408. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SwitchDriver)
  1409. uint32_t cached_has_bits = 0;
  1410. (void) cached_has_bits;
  1411. // int32 peer = 1;
  1412. if (this->_internal_peer() != 0) {
  1413. target = stream->EnsureSpace(target);
  1414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1415. }
  1416. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1417. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1418. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1419. }
  1420. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SwitchDriver)
  1421. return target;
  1422. }
  1423. size_t SwitchDriver::ByteSizeLong() const {
  1424. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SwitchDriver)
  1425. size_t total_size = 0;
  1426. uint32_t cached_has_bits = 0;
  1427. // Prevent compiler warnings about cached_has_bits being unused
  1428. (void) cached_has_bits;
  1429. // int32 peer = 1;
  1430. if (this->_internal_peer() != 0) {
  1431. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1432. }
  1433. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1434. }
  1435. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SwitchDriver::_class_data_ = {
  1436. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1437. SwitchDriver::MergeImpl
  1438. };
  1439. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SwitchDriver::GetClassData() const { return &_class_data_; }
  1440. void SwitchDriver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1441. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1442. static_cast<SwitchDriver *>(to)->MergeFrom(
  1443. static_cast<const SwitchDriver &>(from));
  1444. }
  1445. void SwitchDriver::MergeFrom(const SwitchDriver& from) {
  1446. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SwitchDriver)
  1447. GOOGLE_DCHECK_NE(&from, this);
  1448. uint32_t cached_has_bits = 0;
  1449. (void) cached_has_bits;
  1450. if (from._internal_peer() != 0) {
  1451. _internal_set_peer(from._internal_peer());
  1452. }
  1453. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1454. }
  1455. void SwitchDriver::CopyFrom(const SwitchDriver& from) {
  1456. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SwitchDriver)
  1457. if (&from == this) return;
  1458. Clear();
  1459. MergeFrom(from);
  1460. }
  1461. bool SwitchDriver::IsInitialized() const {
  1462. return true;
  1463. }
  1464. void SwitchDriver::InternalSwap(SwitchDriver* other) {
  1465. using std::swap;
  1466. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1467. swap(peer_, other->peer_);
  1468. }
  1469. ::PROTOBUF_NAMESPACE_ID::Metadata SwitchDriver::GetMetadata() const {
  1470. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1471. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1472. file_level_metadata_protocol_2eproto[0]);
  1473. }
  1474. // ===================================================================
  1475. class NDTPos::_Internal {
  1476. public:
  1477. };
  1478. NDTPos::NDTPos(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1479. bool is_message_owned)
  1480. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1481. SharedCtor();
  1482. if (!is_message_owned) {
  1483. RegisterArenaDtor(arena);
  1484. }
  1485. // @@protoc_insertion_point(arena_constructor:RemoNet.NDTPos)
  1486. }
  1487. NDTPos::NDTPos(const NDTPos& from)
  1488. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1489. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1490. ::memcpy(&x_, &from.x_,
  1491. static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1492. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1493. // @@protoc_insertion_point(copy_constructor:RemoNet.NDTPos)
  1494. }
  1495. inline void NDTPos::SharedCtor() {
  1496. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1497. reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
  1498. 0, static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1499. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1500. }
  1501. NDTPos::~NDTPos() {
  1502. // @@protoc_insertion_point(destructor:RemoNet.NDTPos)
  1503. if (GetArenaForAllocation() != nullptr) return;
  1504. SharedDtor();
  1505. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1506. }
  1507. inline void NDTPos::SharedDtor() {
  1508. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1509. }
  1510. void NDTPos::ArenaDtor(void* object) {
  1511. NDTPos* _this = reinterpret_cast< NDTPos* >(object);
  1512. (void)_this;
  1513. }
  1514. void NDTPos::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1515. }
  1516. void NDTPos::SetCachedSize(int size) const {
  1517. _cached_size_.Set(size);
  1518. }
  1519. void NDTPos::Clear() {
  1520. // @@protoc_insertion_point(message_clear_start:RemoNet.NDTPos)
  1521. uint32_t cached_has_bits = 0;
  1522. // Prevent compiler warnings about cached_has_bits being unused
  1523. (void) cached_has_bits;
  1524. ::memset(&x_, 0, static_cast<size_t>(
  1525. reinterpret_cast<char*>(&rw_) -
  1526. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1527. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1528. }
  1529. const char* NDTPos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1530. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1531. while (!ctx->Done(&ptr)) {
  1532. uint32_t tag;
  1533. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1534. switch (tag >> 3) {
  1535. // float x = 1;
  1536. case 1:
  1537. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  1538. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1539. ptr += sizeof(float);
  1540. } else
  1541. goto handle_unusual;
  1542. continue;
  1543. // float y = 2;
  1544. case 2:
  1545. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  1546. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1547. ptr += sizeof(float);
  1548. } else
  1549. goto handle_unusual;
  1550. continue;
  1551. // float z = 3;
  1552. case 3:
  1553. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
  1554. z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1555. ptr += sizeof(float);
  1556. } else
  1557. goto handle_unusual;
  1558. continue;
  1559. // float rx = 4;
  1560. case 4:
  1561. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  1562. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1563. ptr += sizeof(float);
  1564. } else
  1565. goto handle_unusual;
  1566. continue;
  1567. // float ry = 5;
  1568. case 5:
  1569. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  1570. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1571. ptr += sizeof(float);
  1572. } else
  1573. goto handle_unusual;
  1574. continue;
  1575. // float rz = 6;
  1576. case 6:
  1577. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
  1578. rz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1579. ptr += sizeof(float);
  1580. } else
  1581. goto handle_unusual;
  1582. continue;
  1583. // float rw = 7;
  1584. case 7:
  1585. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
  1586. rw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1587. ptr += sizeof(float);
  1588. } else
  1589. goto handle_unusual;
  1590. continue;
  1591. default:
  1592. goto handle_unusual;
  1593. } // switch
  1594. handle_unusual:
  1595. if ((tag == 0) || ((tag & 7) == 4)) {
  1596. CHK_(ptr);
  1597. ctx->SetLastTag(tag);
  1598. goto message_done;
  1599. }
  1600. ptr = UnknownFieldParse(
  1601. tag,
  1602. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1603. ptr, ctx);
  1604. CHK_(ptr != nullptr);
  1605. } // while
  1606. message_done:
  1607. return ptr;
  1608. failure:
  1609. ptr = nullptr;
  1610. goto message_done;
  1611. #undef CHK_
  1612. }
  1613. uint8_t* NDTPos::_InternalSerialize(
  1614. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1615. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.NDTPos)
  1616. uint32_t cached_has_bits = 0;
  1617. (void) cached_has_bits;
  1618. // float x = 1;
  1619. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1620. float tmp_x = this->_internal_x();
  1621. uint32_t raw_x;
  1622. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1623. if (raw_x != 0) {
  1624. target = stream->EnsureSpace(target);
  1625. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1626. }
  1627. // float y = 2;
  1628. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1629. float tmp_y = this->_internal_y();
  1630. uint32_t raw_y;
  1631. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1632. if (raw_y != 0) {
  1633. target = stream->EnsureSpace(target);
  1634. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1635. }
  1636. // float z = 3;
  1637. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1638. float tmp_z = this->_internal_z();
  1639. uint32_t raw_z;
  1640. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1641. if (raw_z != 0) {
  1642. target = stream->EnsureSpace(target);
  1643. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target);
  1644. }
  1645. // float rx = 4;
  1646. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1647. float tmp_rx = this->_internal_rx();
  1648. uint32_t raw_rx;
  1649. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1650. if (raw_rx != 0) {
  1651. target = stream->EnsureSpace(target);
  1652. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_rx(), target);
  1653. }
  1654. // float ry = 5;
  1655. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1656. float tmp_ry = this->_internal_ry();
  1657. uint32_t raw_ry;
  1658. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1659. if (raw_ry != 0) {
  1660. target = stream->EnsureSpace(target);
  1661. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_ry(), target);
  1662. }
  1663. // float rz = 6;
  1664. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1665. float tmp_rz = this->_internal_rz();
  1666. uint32_t raw_rz;
  1667. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1668. if (raw_rz != 0) {
  1669. target = stream->EnsureSpace(target);
  1670. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_rz(), target);
  1671. }
  1672. // float rw = 7;
  1673. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1674. float tmp_rw = this->_internal_rw();
  1675. uint32_t raw_rw;
  1676. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1677. if (raw_rw != 0) {
  1678. target = stream->EnsureSpace(target);
  1679. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_rw(), target);
  1680. }
  1681. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1682. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1683. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1684. }
  1685. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.NDTPos)
  1686. return target;
  1687. }
  1688. size_t NDTPos::ByteSizeLong() const {
  1689. // @@protoc_insertion_point(message_byte_size_start:RemoNet.NDTPos)
  1690. size_t total_size = 0;
  1691. uint32_t cached_has_bits = 0;
  1692. // Prevent compiler warnings about cached_has_bits being unused
  1693. (void) cached_has_bits;
  1694. // float x = 1;
  1695. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1696. float tmp_x = this->_internal_x();
  1697. uint32_t raw_x;
  1698. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1699. if (raw_x != 0) {
  1700. total_size += 1 + 4;
  1701. }
  1702. // float y = 2;
  1703. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1704. float tmp_y = this->_internal_y();
  1705. uint32_t raw_y;
  1706. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1707. if (raw_y != 0) {
  1708. total_size += 1 + 4;
  1709. }
  1710. // float z = 3;
  1711. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1712. float tmp_z = this->_internal_z();
  1713. uint32_t raw_z;
  1714. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1715. if (raw_z != 0) {
  1716. total_size += 1 + 4;
  1717. }
  1718. // float rx = 4;
  1719. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1720. float tmp_rx = this->_internal_rx();
  1721. uint32_t raw_rx;
  1722. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1723. if (raw_rx != 0) {
  1724. total_size += 1 + 4;
  1725. }
  1726. // float ry = 5;
  1727. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1728. float tmp_ry = this->_internal_ry();
  1729. uint32_t raw_ry;
  1730. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1731. if (raw_ry != 0) {
  1732. total_size += 1 + 4;
  1733. }
  1734. // float rz = 6;
  1735. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1736. float tmp_rz = this->_internal_rz();
  1737. uint32_t raw_rz;
  1738. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1739. if (raw_rz != 0) {
  1740. total_size += 1 + 4;
  1741. }
  1742. // float rw = 7;
  1743. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1744. float tmp_rw = this->_internal_rw();
  1745. uint32_t raw_rw;
  1746. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1747. if (raw_rw != 0) {
  1748. total_size += 1 + 4;
  1749. }
  1750. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1751. }
  1752. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NDTPos::_class_data_ = {
  1753. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1754. NDTPos::MergeImpl
  1755. };
  1756. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NDTPos::GetClassData() const { return &_class_data_; }
  1757. void NDTPos::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1758. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1759. static_cast<NDTPos *>(to)->MergeFrom(
  1760. static_cast<const NDTPos &>(from));
  1761. }
  1762. void NDTPos::MergeFrom(const NDTPos& from) {
  1763. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.NDTPos)
  1764. GOOGLE_DCHECK_NE(&from, this);
  1765. uint32_t cached_has_bits = 0;
  1766. (void) cached_has_bits;
  1767. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1768. float tmp_x = from._internal_x();
  1769. uint32_t raw_x;
  1770. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1771. if (raw_x != 0) {
  1772. _internal_set_x(from._internal_x());
  1773. }
  1774. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1775. float tmp_y = from._internal_y();
  1776. uint32_t raw_y;
  1777. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1778. if (raw_y != 0) {
  1779. _internal_set_y(from._internal_y());
  1780. }
  1781. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1782. float tmp_z = from._internal_z();
  1783. uint32_t raw_z;
  1784. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1785. if (raw_z != 0) {
  1786. _internal_set_z(from._internal_z());
  1787. }
  1788. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1789. float tmp_rx = from._internal_rx();
  1790. uint32_t raw_rx;
  1791. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1792. if (raw_rx != 0) {
  1793. _internal_set_rx(from._internal_rx());
  1794. }
  1795. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1796. float tmp_ry = from._internal_ry();
  1797. uint32_t raw_ry;
  1798. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1799. if (raw_ry != 0) {
  1800. _internal_set_ry(from._internal_ry());
  1801. }
  1802. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1803. float tmp_rz = from._internal_rz();
  1804. uint32_t raw_rz;
  1805. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1806. if (raw_rz != 0) {
  1807. _internal_set_rz(from._internal_rz());
  1808. }
  1809. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1810. float tmp_rw = from._internal_rw();
  1811. uint32_t raw_rw;
  1812. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1813. if (raw_rw != 0) {
  1814. _internal_set_rw(from._internal_rw());
  1815. }
  1816. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1817. }
  1818. void NDTPos::CopyFrom(const NDTPos& from) {
  1819. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.NDTPos)
  1820. if (&from == this) return;
  1821. Clear();
  1822. MergeFrom(from);
  1823. }
  1824. bool NDTPos::IsInitialized() const {
  1825. return true;
  1826. }
  1827. void NDTPos::InternalSwap(NDTPos* other) {
  1828. using std::swap;
  1829. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1830. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1831. PROTOBUF_FIELD_OFFSET(NDTPos, rw_)
  1832. + sizeof(NDTPos::rw_)
  1833. - PROTOBUF_FIELD_OFFSET(NDTPos, x_)>(
  1834. reinterpret_cast<char*>(&x_),
  1835. reinterpret_cast<char*>(&other->x_));
  1836. }
  1837. ::PROTOBUF_NAMESPACE_ID::Metadata NDTPos::GetMetadata() const {
  1838. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1839. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1840. file_level_metadata_protocol_2eproto[1]);
  1841. }
  1842. // ===================================================================
  1843. class CSMoveBegin::_Internal {
  1844. public:
  1845. };
  1846. CSMoveBegin::CSMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1847. bool is_message_owned)
  1848. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1849. SharedCtor();
  1850. if (!is_message_owned) {
  1851. RegisterArenaDtor(arena);
  1852. }
  1853. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveBegin)
  1854. }
  1855. CSMoveBegin::CSMoveBegin(const CSMoveBegin& from)
  1856. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1857. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1858. ::memcpy(&peer_, &from.peer_,
  1859. static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1860. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1861. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveBegin)
  1862. }
  1863. inline void CSMoveBegin::SharedCtor() {
  1864. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1865. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  1866. 0, static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1867. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1868. }
  1869. CSMoveBegin::~CSMoveBegin() {
  1870. // @@protoc_insertion_point(destructor:RemoNet.CSMoveBegin)
  1871. if (GetArenaForAllocation() != nullptr) return;
  1872. SharedDtor();
  1873. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1874. }
  1875. inline void CSMoveBegin::SharedDtor() {
  1876. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1877. }
  1878. void CSMoveBegin::ArenaDtor(void* object) {
  1879. CSMoveBegin* _this = reinterpret_cast< CSMoveBegin* >(object);
  1880. (void)_this;
  1881. }
  1882. void CSMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1883. }
  1884. void CSMoveBegin::SetCachedSize(int size) const {
  1885. _cached_size_.Set(size);
  1886. }
  1887. void CSMoveBegin::Clear() {
  1888. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveBegin)
  1889. uint32_t cached_has_bits = 0;
  1890. // Prevent compiler warnings about cached_has_bits being unused
  1891. (void) cached_has_bits;
  1892. ::memset(&peer_, 0, static_cast<size_t>(
  1893. reinterpret_cast<char*>(&no_) -
  1894. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1895. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1896. }
  1897. const char* CSMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1898. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1899. while (!ctx->Done(&ptr)) {
  1900. uint32_t tag;
  1901. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1902. switch (tag >> 3) {
  1903. // int32 peer = 1;
  1904. case 1:
  1905. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1906. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1907. CHK_(ptr);
  1908. } else
  1909. goto handle_unusual;
  1910. continue;
  1911. // int32 area = 2;
  1912. case 2:
  1913. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1914. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1915. CHK_(ptr);
  1916. } else
  1917. goto handle_unusual;
  1918. continue;
  1919. // int32 no = 3;
  1920. case 3:
  1921. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1922. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1923. CHK_(ptr);
  1924. } else
  1925. goto handle_unusual;
  1926. continue;
  1927. default:
  1928. goto handle_unusual;
  1929. } // switch
  1930. handle_unusual:
  1931. if ((tag == 0) || ((tag & 7) == 4)) {
  1932. CHK_(ptr);
  1933. ctx->SetLastTag(tag);
  1934. goto message_done;
  1935. }
  1936. ptr = UnknownFieldParse(
  1937. tag,
  1938. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1939. ptr, ctx);
  1940. CHK_(ptr != nullptr);
  1941. } // while
  1942. message_done:
  1943. return ptr;
  1944. failure:
  1945. ptr = nullptr;
  1946. goto message_done;
  1947. #undef CHK_
  1948. }
  1949. uint8_t* CSMoveBegin::_InternalSerialize(
  1950. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1951. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveBegin)
  1952. uint32_t cached_has_bits = 0;
  1953. (void) cached_has_bits;
  1954. // int32 peer = 1;
  1955. if (this->_internal_peer() != 0) {
  1956. target = stream->EnsureSpace(target);
  1957. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1958. }
  1959. // int32 area = 2;
  1960. if (this->_internal_area() != 0) {
  1961. target = stream->EnsureSpace(target);
  1962. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  1963. }
  1964. // int32 no = 3;
  1965. if (this->_internal_no() != 0) {
  1966. target = stream->EnsureSpace(target);
  1967. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  1968. }
  1969. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1970. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1971. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1972. }
  1973. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveBegin)
  1974. return target;
  1975. }
  1976. size_t CSMoveBegin::ByteSizeLong() const {
  1977. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveBegin)
  1978. size_t total_size = 0;
  1979. uint32_t cached_has_bits = 0;
  1980. // Prevent compiler warnings about cached_has_bits being unused
  1981. (void) cached_has_bits;
  1982. // int32 peer = 1;
  1983. if (this->_internal_peer() != 0) {
  1984. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1985. }
  1986. // int32 area = 2;
  1987. if (this->_internal_area() != 0) {
  1988. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  1989. }
  1990. // int32 no = 3;
  1991. if (this->_internal_no() != 0) {
  1992. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  1993. }
  1994. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1995. }
  1996. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveBegin::_class_data_ = {
  1997. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1998. CSMoveBegin::MergeImpl
  1999. };
  2000. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveBegin::GetClassData() const { return &_class_data_; }
  2001. void CSMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2002. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2003. static_cast<CSMoveBegin *>(to)->MergeFrom(
  2004. static_cast<const CSMoveBegin &>(from));
  2005. }
  2006. void CSMoveBegin::MergeFrom(const CSMoveBegin& from) {
  2007. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveBegin)
  2008. GOOGLE_DCHECK_NE(&from, this);
  2009. uint32_t cached_has_bits = 0;
  2010. (void) cached_has_bits;
  2011. if (from._internal_peer() != 0) {
  2012. _internal_set_peer(from._internal_peer());
  2013. }
  2014. if (from._internal_area() != 0) {
  2015. _internal_set_area(from._internal_area());
  2016. }
  2017. if (from._internal_no() != 0) {
  2018. _internal_set_no(from._internal_no());
  2019. }
  2020. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2021. }
  2022. void CSMoveBegin::CopyFrom(const CSMoveBegin& from) {
  2023. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveBegin)
  2024. if (&from == this) return;
  2025. Clear();
  2026. MergeFrom(from);
  2027. }
  2028. bool CSMoveBegin::IsInitialized() const {
  2029. return true;
  2030. }
  2031. void CSMoveBegin::InternalSwap(CSMoveBegin* other) {
  2032. using std::swap;
  2033. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2034. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2035. PROTOBUF_FIELD_OFFSET(CSMoveBegin, no_)
  2036. + sizeof(CSMoveBegin::no_)
  2037. - PROTOBUF_FIELD_OFFSET(CSMoveBegin, peer_)>(
  2038. reinterpret_cast<char*>(&peer_),
  2039. reinterpret_cast<char*>(&other->peer_));
  2040. }
  2041. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveBegin::GetMetadata() const {
  2042. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2043. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2044. file_level_metadata_protocol_2eproto[2]);
  2045. }
  2046. // ===================================================================
  2047. class MoveRet::_Internal {
  2048. public:
  2049. };
  2050. MoveRet::MoveRet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2051. bool is_message_owned)
  2052. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2053. SharedCtor();
  2054. if (!is_message_owned) {
  2055. RegisterArenaDtor(arena);
  2056. }
  2057. // @@protoc_insertion_point(arena_constructor:RemoNet.MoveRet)
  2058. }
  2059. MoveRet::MoveRet(const MoveRet& from)
  2060. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2061. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2062. ::memcpy(&desc_, &from.desc_,
  2063. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2064. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2065. // @@protoc_insertion_point(copy_constructor:RemoNet.MoveRet)
  2066. }
  2067. inline void MoveRet::SharedCtor() {
  2068. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2069. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2070. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2071. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2072. }
  2073. MoveRet::~MoveRet() {
  2074. // @@protoc_insertion_point(destructor:RemoNet.MoveRet)
  2075. if (GetArenaForAllocation() != nullptr) return;
  2076. SharedDtor();
  2077. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2078. }
  2079. inline void MoveRet::SharedDtor() {
  2080. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2081. }
  2082. void MoveRet::ArenaDtor(void* object) {
  2083. MoveRet* _this = reinterpret_cast< MoveRet* >(object);
  2084. (void)_this;
  2085. }
  2086. void MoveRet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2087. }
  2088. void MoveRet::SetCachedSize(int size) const {
  2089. _cached_size_.Set(size);
  2090. }
  2091. void MoveRet::Clear() {
  2092. // @@protoc_insertion_point(message_clear_start:RemoNet.MoveRet)
  2093. uint32_t cached_has_bits = 0;
  2094. // Prevent compiler warnings about cached_has_bits being unused
  2095. (void) cached_has_bits;
  2096. ::memset(&desc_, 0, static_cast<size_t>(
  2097. reinterpret_cast<char*>(&peer_) -
  2098. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2099. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2100. }
  2101. const char* MoveRet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2102. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2103. while (!ctx->Done(&ptr)) {
  2104. uint32_t tag;
  2105. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2106. switch (tag >> 3) {
  2107. // .RemoNet.MoveDesc desc = 1;
  2108. case 1:
  2109. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2110. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2111. CHK_(ptr);
  2112. _internal_set_desc(static_cast<::RemoNet::MoveDesc>(val));
  2113. } else
  2114. goto handle_unusual;
  2115. continue;
  2116. // int32 peer = 2;
  2117. case 2:
  2118. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2119. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2120. CHK_(ptr);
  2121. } else
  2122. goto handle_unusual;
  2123. continue;
  2124. default:
  2125. goto handle_unusual;
  2126. } // switch
  2127. handle_unusual:
  2128. if ((tag == 0) || ((tag & 7) == 4)) {
  2129. CHK_(ptr);
  2130. ctx->SetLastTag(tag);
  2131. goto message_done;
  2132. }
  2133. ptr = UnknownFieldParse(
  2134. tag,
  2135. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2136. ptr, ctx);
  2137. CHK_(ptr != nullptr);
  2138. } // while
  2139. message_done:
  2140. return ptr;
  2141. failure:
  2142. ptr = nullptr;
  2143. goto message_done;
  2144. #undef CHK_
  2145. }
  2146. uint8_t* MoveRet::_InternalSerialize(
  2147. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2148. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.MoveRet)
  2149. uint32_t cached_has_bits = 0;
  2150. (void) cached_has_bits;
  2151. // .RemoNet.MoveDesc desc = 1;
  2152. if (this->_internal_desc() != 0) {
  2153. target = stream->EnsureSpace(target);
  2154. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2155. 1, this->_internal_desc(), target);
  2156. }
  2157. // int32 peer = 2;
  2158. if (this->_internal_peer() != 0) {
  2159. target = stream->EnsureSpace(target);
  2160. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2161. }
  2162. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2163. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2164. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2165. }
  2166. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.MoveRet)
  2167. return target;
  2168. }
  2169. size_t MoveRet::ByteSizeLong() const {
  2170. // @@protoc_insertion_point(message_byte_size_start:RemoNet.MoveRet)
  2171. size_t total_size = 0;
  2172. uint32_t cached_has_bits = 0;
  2173. // Prevent compiler warnings about cached_has_bits being unused
  2174. (void) cached_has_bits;
  2175. // .RemoNet.MoveDesc desc = 1;
  2176. if (this->_internal_desc() != 0) {
  2177. total_size += 1 +
  2178. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2179. }
  2180. // int32 peer = 2;
  2181. if (this->_internal_peer() != 0) {
  2182. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2183. }
  2184. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2185. }
  2186. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRet::_class_data_ = {
  2187. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2188. MoveRet::MergeImpl
  2189. };
  2190. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRet::GetClassData() const { return &_class_data_; }
  2191. void MoveRet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2192. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2193. static_cast<MoveRet *>(to)->MergeFrom(
  2194. static_cast<const MoveRet &>(from));
  2195. }
  2196. void MoveRet::MergeFrom(const MoveRet& from) {
  2197. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.MoveRet)
  2198. GOOGLE_DCHECK_NE(&from, this);
  2199. uint32_t cached_has_bits = 0;
  2200. (void) cached_has_bits;
  2201. if (from._internal_desc() != 0) {
  2202. _internal_set_desc(from._internal_desc());
  2203. }
  2204. if (from._internal_peer() != 0) {
  2205. _internal_set_peer(from._internal_peer());
  2206. }
  2207. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2208. }
  2209. void MoveRet::CopyFrom(const MoveRet& from) {
  2210. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.MoveRet)
  2211. if (&from == this) return;
  2212. Clear();
  2213. MergeFrom(from);
  2214. }
  2215. bool MoveRet::IsInitialized() const {
  2216. return true;
  2217. }
  2218. void MoveRet::InternalSwap(MoveRet* other) {
  2219. using std::swap;
  2220. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2221. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2222. PROTOBUF_FIELD_OFFSET(MoveRet, peer_)
  2223. + sizeof(MoveRet::peer_)
  2224. - PROTOBUF_FIELD_OFFSET(MoveRet, desc_)>(
  2225. reinterpret_cast<char*>(&desc_),
  2226. reinterpret_cast<char*>(&other->desc_));
  2227. }
  2228. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRet::GetMetadata() const {
  2229. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2230. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2231. file_level_metadata_protocol_2eproto[3]);
  2232. }
  2233. // ===================================================================
  2234. class CSMoveEnd::_Internal {
  2235. public:
  2236. };
  2237. CSMoveEnd::CSMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2238. bool is_message_owned)
  2239. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2240. SharedCtor();
  2241. if (!is_message_owned) {
  2242. RegisterArenaDtor(arena);
  2243. }
  2244. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveEnd)
  2245. }
  2246. CSMoveEnd::CSMoveEnd(const CSMoveEnd& from)
  2247. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2248. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2249. ::memcpy(&area_, &from.area_,
  2250. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2251. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2252. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveEnd)
  2253. }
  2254. inline void CSMoveEnd::SharedCtor() {
  2255. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2256. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2257. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2258. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2259. }
  2260. CSMoveEnd::~CSMoveEnd() {
  2261. // @@protoc_insertion_point(destructor:RemoNet.CSMoveEnd)
  2262. if (GetArenaForAllocation() != nullptr) return;
  2263. SharedDtor();
  2264. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2265. }
  2266. inline void CSMoveEnd::SharedDtor() {
  2267. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2268. }
  2269. void CSMoveEnd::ArenaDtor(void* object) {
  2270. CSMoveEnd* _this = reinterpret_cast< CSMoveEnd* >(object);
  2271. (void)_this;
  2272. }
  2273. void CSMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2274. }
  2275. void CSMoveEnd::SetCachedSize(int size) const {
  2276. _cached_size_.Set(size);
  2277. }
  2278. void CSMoveEnd::Clear() {
  2279. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveEnd)
  2280. uint32_t cached_has_bits = 0;
  2281. // Prevent compiler warnings about cached_has_bits being unused
  2282. (void) cached_has_bits;
  2283. ::memset(&area_, 0, static_cast<size_t>(
  2284. reinterpret_cast<char*>(&uid_) -
  2285. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2286. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2287. }
  2288. const char* CSMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2289. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2290. while (!ctx->Done(&ptr)) {
  2291. uint32_t tag;
  2292. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2293. switch (tag >> 3) {
  2294. // int32 area = 1;
  2295. case 1:
  2296. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2297. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2298. CHK_(ptr);
  2299. } else
  2300. goto handle_unusual;
  2301. continue;
  2302. // int32 no = 2;
  2303. case 2:
  2304. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2305. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2306. CHK_(ptr);
  2307. } else
  2308. goto handle_unusual;
  2309. continue;
  2310. // int32 uid = 3;
  2311. case 3:
  2312. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2313. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2314. CHK_(ptr);
  2315. } else
  2316. goto handle_unusual;
  2317. continue;
  2318. default:
  2319. goto handle_unusual;
  2320. } // switch
  2321. handle_unusual:
  2322. if ((tag == 0) || ((tag & 7) == 4)) {
  2323. CHK_(ptr);
  2324. ctx->SetLastTag(tag);
  2325. goto message_done;
  2326. }
  2327. ptr = UnknownFieldParse(
  2328. tag,
  2329. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2330. ptr, ctx);
  2331. CHK_(ptr != nullptr);
  2332. } // while
  2333. message_done:
  2334. return ptr;
  2335. failure:
  2336. ptr = nullptr;
  2337. goto message_done;
  2338. #undef CHK_
  2339. }
  2340. uint8_t* CSMoveEnd::_InternalSerialize(
  2341. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2342. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveEnd)
  2343. uint32_t cached_has_bits = 0;
  2344. (void) cached_has_bits;
  2345. // int32 area = 1;
  2346. if (this->_internal_area() != 0) {
  2347. target = stream->EnsureSpace(target);
  2348. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2349. }
  2350. // int32 no = 2;
  2351. if (this->_internal_no() != 0) {
  2352. target = stream->EnsureSpace(target);
  2353. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2354. }
  2355. // int32 uid = 3;
  2356. if (this->_internal_uid() != 0) {
  2357. target = stream->EnsureSpace(target);
  2358. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2359. }
  2360. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2361. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2362. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2363. }
  2364. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveEnd)
  2365. return target;
  2366. }
  2367. size_t CSMoveEnd::ByteSizeLong() const {
  2368. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveEnd)
  2369. size_t total_size = 0;
  2370. uint32_t cached_has_bits = 0;
  2371. // Prevent compiler warnings about cached_has_bits being unused
  2372. (void) cached_has_bits;
  2373. // int32 area = 1;
  2374. if (this->_internal_area() != 0) {
  2375. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2376. }
  2377. // int32 no = 2;
  2378. if (this->_internal_no() != 0) {
  2379. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2380. }
  2381. // int32 uid = 3;
  2382. if (this->_internal_uid() != 0) {
  2383. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2384. }
  2385. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2386. }
  2387. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveEnd::_class_data_ = {
  2388. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2389. CSMoveEnd::MergeImpl
  2390. };
  2391. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveEnd::GetClassData() const { return &_class_data_; }
  2392. void CSMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2393. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2394. static_cast<CSMoveEnd *>(to)->MergeFrom(
  2395. static_cast<const CSMoveEnd &>(from));
  2396. }
  2397. void CSMoveEnd::MergeFrom(const CSMoveEnd& from) {
  2398. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveEnd)
  2399. GOOGLE_DCHECK_NE(&from, this);
  2400. uint32_t cached_has_bits = 0;
  2401. (void) cached_has_bits;
  2402. if (from._internal_area() != 0) {
  2403. _internal_set_area(from._internal_area());
  2404. }
  2405. if (from._internal_no() != 0) {
  2406. _internal_set_no(from._internal_no());
  2407. }
  2408. if (from._internal_uid() != 0) {
  2409. _internal_set_uid(from._internal_uid());
  2410. }
  2411. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2412. }
  2413. void CSMoveEnd::CopyFrom(const CSMoveEnd& from) {
  2414. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveEnd)
  2415. if (&from == this) return;
  2416. Clear();
  2417. MergeFrom(from);
  2418. }
  2419. bool CSMoveEnd::IsInitialized() const {
  2420. return true;
  2421. }
  2422. void CSMoveEnd::InternalSwap(CSMoveEnd* other) {
  2423. using std::swap;
  2424. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2425. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2426. PROTOBUF_FIELD_OFFSET(CSMoveEnd, uid_)
  2427. + sizeof(CSMoveEnd::uid_)
  2428. - PROTOBUF_FIELD_OFFSET(CSMoveEnd, area_)>(
  2429. reinterpret_cast<char*>(&area_),
  2430. reinterpret_cast<char*>(&other->area_));
  2431. }
  2432. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveEnd::GetMetadata() const {
  2433. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2434. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2435. file_level_metadata_protocol_2eproto[4]);
  2436. }
  2437. // ===================================================================
  2438. class SCMoveBegin::_Internal {
  2439. public:
  2440. };
  2441. SCMoveBegin::SCMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2442. bool is_message_owned)
  2443. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2444. SharedCtor();
  2445. if (!is_message_owned) {
  2446. RegisterArenaDtor(arena);
  2447. }
  2448. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveBegin)
  2449. }
  2450. SCMoveBegin::SCMoveBegin(const SCMoveBegin& from)
  2451. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2452. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2453. ::memcpy(&uid_, &from.uid_,
  2454. static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2455. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2456. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveBegin)
  2457. }
  2458. inline void SCMoveBegin::SharedCtor() {
  2459. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2460. reinterpret_cast<char*>(&uid_) - reinterpret_cast<char*>(this)),
  2461. 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2462. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2463. }
  2464. SCMoveBegin::~SCMoveBegin() {
  2465. // @@protoc_insertion_point(destructor:RemoNet.SCMoveBegin)
  2466. if (GetArenaForAllocation() != nullptr) return;
  2467. SharedDtor();
  2468. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2469. }
  2470. inline void SCMoveBegin::SharedDtor() {
  2471. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2472. }
  2473. void SCMoveBegin::ArenaDtor(void* object) {
  2474. SCMoveBegin* _this = reinterpret_cast< SCMoveBegin* >(object);
  2475. (void)_this;
  2476. }
  2477. void SCMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2478. }
  2479. void SCMoveBegin::SetCachedSize(int size) const {
  2480. _cached_size_.Set(size);
  2481. }
  2482. void SCMoveBegin::Clear() {
  2483. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveBegin)
  2484. uint32_t cached_has_bits = 0;
  2485. // Prevent compiler warnings about cached_has_bits being unused
  2486. (void) cached_has_bits;
  2487. ::memset(&uid_, 0, static_cast<size_t>(
  2488. reinterpret_cast<char*>(&y_) -
  2489. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2490. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2491. }
  2492. const char* SCMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2493. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2494. while (!ctx->Done(&ptr)) {
  2495. uint32_t tag;
  2496. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2497. switch (tag >> 3) {
  2498. // int32 uid = 1;
  2499. case 1:
  2500. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2501. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2502. CHK_(ptr);
  2503. } else
  2504. goto handle_unusual;
  2505. continue;
  2506. // int32 area = 2;
  2507. case 2:
  2508. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2509. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2510. CHK_(ptr);
  2511. } else
  2512. goto handle_unusual;
  2513. continue;
  2514. // int32 no = 3;
  2515. case 3:
  2516. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2517. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2518. CHK_(ptr);
  2519. } else
  2520. goto handle_unusual;
  2521. continue;
  2522. // float x = 4;
  2523. case 4:
  2524. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  2525. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2526. ptr += sizeof(float);
  2527. } else
  2528. goto handle_unusual;
  2529. continue;
  2530. // float y = 5;
  2531. case 5:
  2532. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  2533. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2534. ptr += sizeof(float);
  2535. } else
  2536. goto handle_unusual;
  2537. continue;
  2538. default:
  2539. goto handle_unusual;
  2540. } // switch
  2541. handle_unusual:
  2542. if ((tag == 0) || ((tag & 7) == 4)) {
  2543. CHK_(ptr);
  2544. ctx->SetLastTag(tag);
  2545. goto message_done;
  2546. }
  2547. ptr = UnknownFieldParse(
  2548. tag,
  2549. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2550. ptr, ctx);
  2551. CHK_(ptr != nullptr);
  2552. } // while
  2553. message_done:
  2554. return ptr;
  2555. failure:
  2556. ptr = nullptr;
  2557. goto message_done;
  2558. #undef CHK_
  2559. }
  2560. uint8_t* SCMoveBegin::_InternalSerialize(
  2561. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2562. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveBegin)
  2563. uint32_t cached_has_bits = 0;
  2564. (void) cached_has_bits;
  2565. // int32 uid = 1;
  2566. if (this->_internal_uid() != 0) {
  2567. target = stream->EnsureSpace(target);
  2568. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_uid(), target);
  2569. }
  2570. // int32 area = 2;
  2571. if (this->_internal_area() != 0) {
  2572. target = stream->EnsureSpace(target);
  2573. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2574. }
  2575. // int32 no = 3;
  2576. if (this->_internal_no() != 0) {
  2577. target = stream->EnsureSpace(target);
  2578. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2579. }
  2580. // float x = 4;
  2581. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2582. float tmp_x = this->_internal_x();
  2583. uint32_t raw_x;
  2584. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2585. if (raw_x != 0) {
  2586. target = stream->EnsureSpace(target);
  2587. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_x(), target);
  2588. }
  2589. // float y = 5;
  2590. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2591. float tmp_y = this->_internal_y();
  2592. uint32_t raw_y;
  2593. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2594. if (raw_y != 0) {
  2595. target = stream->EnsureSpace(target);
  2596. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_y(), target);
  2597. }
  2598. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2599. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2600. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2601. }
  2602. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveBegin)
  2603. return target;
  2604. }
  2605. size_t SCMoveBegin::ByteSizeLong() const {
  2606. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveBegin)
  2607. size_t total_size = 0;
  2608. uint32_t cached_has_bits = 0;
  2609. // Prevent compiler warnings about cached_has_bits being unused
  2610. (void) cached_has_bits;
  2611. // int32 uid = 1;
  2612. if (this->_internal_uid() != 0) {
  2613. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2614. }
  2615. // int32 area = 2;
  2616. if (this->_internal_area() != 0) {
  2617. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2618. }
  2619. // int32 no = 3;
  2620. if (this->_internal_no() != 0) {
  2621. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2622. }
  2623. // float x = 4;
  2624. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2625. float tmp_x = this->_internal_x();
  2626. uint32_t raw_x;
  2627. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2628. if (raw_x != 0) {
  2629. total_size += 1 + 4;
  2630. }
  2631. // float y = 5;
  2632. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2633. float tmp_y = this->_internal_y();
  2634. uint32_t raw_y;
  2635. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2636. if (raw_y != 0) {
  2637. total_size += 1 + 4;
  2638. }
  2639. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2640. }
  2641. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveBegin::_class_data_ = {
  2642. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2643. SCMoveBegin::MergeImpl
  2644. };
  2645. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveBegin::GetClassData() const { return &_class_data_; }
  2646. void SCMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2647. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2648. static_cast<SCMoveBegin *>(to)->MergeFrom(
  2649. static_cast<const SCMoveBegin &>(from));
  2650. }
  2651. void SCMoveBegin::MergeFrom(const SCMoveBegin& from) {
  2652. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveBegin)
  2653. GOOGLE_DCHECK_NE(&from, this);
  2654. uint32_t cached_has_bits = 0;
  2655. (void) cached_has_bits;
  2656. if (from._internal_uid() != 0) {
  2657. _internal_set_uid(from._internal_uid());
  2658. }
  2659. if (from._internal_area() != 0) {
  2660. _internal_set_area(from._internal_area());
  2661. }
  2662. if (from._internal_no() != 0) {
  2663. _internal_set_no(from._internal_no());
  2664. }
  2665. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2666. float tmp_x = from._internal_x();
  2667. uint32_t raw_x;
  2668. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2669. if (raw_x != 0) {
  2670. _internal_set_x(from._internal_x());
  2671. }
  2672. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2673. float tmp_y = from._internal_y();
  2674. uint32_t raw_y;
  2675. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2676. if (raw_y != 0) {
  2677. _internal_set_y(from._internal_y());
  2678. }
  2679. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2680. }
  2681. void SCMoveBegin::CopyFrom(const SCMoveBegin& from) {
  2682. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveBegin)
  2683. if (&from == this) return;
  2684. Clear();
  2685. MergeFrom(from);
  2686. }
  2687. bool SCMoveBegin::IsInitialized() const {
  2688. return true;
  2689. }
  2690. void SCMoveBegin::InternalSwap(SCMoveBegin* other) {
  2691. using std::swap;
  2692. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2693. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2694. PROTOBUF_FIELD_OFFSET(SCMoveBegin, y_)
  2695. + sizeof(SCMoveBegin::y_)
  2696. - PROTOBUF_FIELD_OFFSET(SCMoveBegin, uid_)>(
  2697. reinterpret_cast<char*>(&uid_),
  2698. reinterpret_cast<char*>(&other->uid_));
  2699. }
  2700. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveBegin::GetMetadata() const {
  2701. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2702. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2703. file_level_metadata_protocol_2eproto[5]);
  2704. }
  2705. // ===================================================================
  2706. class SCMoveEnd::_Internal {
  2707. public:
  2708. };
  2709. SCMoveEnd::SCMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2710. bool is_message_owned)
  2711. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2712. SharedCtor();
  2713. if (!is_message_owned) {
  2714. RegisterArenaDtor(arena);
  2715. }
  2716. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveEnd)
  2717. }
  2718. SCMoveEnd::SCMoveEnd(const SCMoveEnd& from)
  2719. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2720. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2721. ::memcpy(&area_, &from.area_,
  2722. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2723. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2724. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveEnd)
  2725. }
  2726. inline void SCMoveEnd::SharedCtor() {
  2727. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2728. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2729. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2730. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2731. }
  2732. SCMoveEnd::~SCMoveEnd() {
  2733. // @@protoc_insertion_point(destructor:RemoNet.SCMoveEnd)
  2734. if (GetArenaForAllocation() != nullptr) return;
  2735. SharedDtor();
  2736. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2737. }
  2738. inline void SCMoveEnd::SharedDtor() {
  2739. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2740. }
  2741. void SCMoveEnd::ArenaDtor(void* object) {
  2742. SCMoveEnd* _this = reinterpret_cast< SCMoveEnd* >(object);
  2743. (void)_this;
  2744. }
  2745. void SCMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2746. }
  2747. void SCMoveEnd::SetCachedSize(int size) const {
  2748. _cached_size_.Set(size);
  2749. }
  2750. void SCMoveEnd::Clear() {
  2751. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveEnd)
  2752. uint32_t cached_has_bits = 0;
  2753. // Prevent compiler warnings about cached_has_bits being unused
  2754. (void) cached_has_bits;
  2755. ::memset(&area_, 0, static_cast<size_t>(
  2756. reinterpret_cast<char*>(&uid_) -
  2757. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2758. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2759. }
  2760. const char* SCMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2761. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2762. while (!ctx->Done(&ptr)) {
  2763. uint32_t tag;
  2764. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2765. switch (tag >> 3) {
  2766. // int32 area = 1;
  2767. case 1:
  2768. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2769. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2770. CHK_(ptr);
  2771. } else
  2772. goto handle_unusual;
  2773. continue;
  2774. // int32 no = 2;
  2775. case 2:
  2776. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2777. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2778. CHK_(ptr);
  2779. } else
  2780. goto handle_unusual;
  2781. continue;
  2782. // int32 uid = 3;
  2783. case 3:
  2784. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2785. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2786. CHK_(ptr);
  2787. } else
  2788. goto handle_unusual;
  2789. continue;
  2790. default:
  2791. goto handle_unusual;
  2792. } // switch
  2793. handle_unusual:
  2794. if ((tag == 0) || ((tag & 7) == 4)) {
  2795. CHK_(ptr);
  2796. ctx->SetLastTag(tag);
  2797. goto message_done;
  2798. }
  2799. ptr = UnknownFieldParse(
  2800. tag,
  2801. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2802. ptr, ctx);
  2803. CHK_(ptr != nullptr);
  2804. } // while
  2805. message_done:
  2806. return ptr;
  2807. failure:
  2808. ptr = nullptr;
  2809. goto message_done;
  2810. #undef CHK_
  2811. }
  2812. uint8_t* SCMoveEnd::_InternalSerialize(
  2813. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2814. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveEnd)
  2815. uint32_t cached_has_bits = 0;
  2816. (void) cached_has_bits;
  2817. // int32 area = 1;
  2818. if (this->_internal_area() != 0) {
  2819. target = stream->EnsureSpace(target);
  2820. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2821. }
  2822. // int32 no = 2;
  2823. if (this->_internal_no() != 0) {
  2824. target = stream->EnsureSpace(target);
  2825. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2826. }
  2827. // int32 uid = 3;
  2828. if (this->_internal_uid() != 0) {
  2829. target = stream->EnsureSpace(target);
  2830. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2831. }
  2832. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2833. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2834. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2835. }
  2836. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveEnd)
  2837. return target;
  2838. }
  2839. size_t SCMoveEnd::ByteSizeLong() const {
  2840. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveEnd)
  2841. size_t total_size = 0;
  2842. uint32_t cached_has_bits = 0;
  2843. // Prevent compiler warnings about cached_has_bits being unused
  2844. (void) cached_has_bits;
  2845. // int32 area = 1;
  2846. if (this->_internal_area() != 0) {
  2847. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2848. }
  2849. // int32 no = 2;
  2850. if (this->_internal_no() != 0) {
  2851. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2852. }
  2853. // int32 uid = 3;
  2854. if (this->_internal_uid() != 0) {
  2855. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2856. }
  2857. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2858. }
  2859. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveEnd::_class_data_ = {
  2860. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2861. SCMoveEnd::MergeImpl
  2862. };
  2863. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveEnd::GetClassData() const { return &_class_data_; }
  2864. void SCMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2865. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2866. static_cast<SCMoveEnd *>(to)->MergeFrom(
  2867. static_cast<const SCMoveEnd &>(from));
  2868. }
  2869. void SCMoveEnd::MergeFrom(const SCMoveEnd& from) {
  2870. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveEnd)
  2871. GOOGLE_DCHECK_NE(&from, this);
  2872. uint32_t cached_has_bits = 0;
  2873. (void) cached_has_bits;
  2874. if (from._internal_area() != 0) {
  2875. _internal_set_area(from._internal_area());
  2876. }
  2877. if (from._internal_no() != 0) {
  2878. _internal_set_no(from._internal_no());
  2879. }
  2880. if (from._internal_uid() != 0) {
  2881. _internal_set_uid(from._internal_uid());
  2882. }
  2883. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2884. }
  2885. void SCMoveEnd::CopyFrom(const SCMoveEnd& from) {
  2886. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveEnd)
  2887. if (&from == this) return;
  2888. Clear();
  2889. MergeFrom(from);
  2890. }
  2891. bool SCMoveEnd::IsInitialized() const {
  2892. return true;
  2893. }
  2894. void SCMoveEnd::InternalSwap(SCMoveEnd* other) {
  2895. using std::swap;
  2896. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2897. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2898. PROTOBUF_FIELD_OFFSET(SCMoveEnd, uid_)
  2899. + sizeof(SCMoveEnd::uid_)
  2900. - PROTOBUF_FIELD_OFFSET(SCMoveEnd, area_)>(
  2901. reinterpret_cast<char*>(&area_),
  2902. reinterpret_cast<char*>(&other->area_));
  2903. }
  2904. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveEnd::GetMetadata() const {
  2905. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2906. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2907. file_level_metadata_protocol_2eproto[6]);
  2908. }
  2909. // ===================================================================
  2910. class CSAdd::_Internal {
  2911. public:
  2912. };
  2913. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2914. bool is_message_owned)
  2915. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2916. SharedCtor();
  2917. if (!is_message_owned) {
  2918. RegisterArenaDtor(arena);
  2919. }
  2920. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  2921. }
  2922. CSAdd::CSAdd(const CSAdd& from)
  2923. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2924. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2925. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2926. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2927. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2928. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2929. if (!from._internal_serial().empty()) {
  2930. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  2931. GetArenaForAllocation());
  2932. }
  2933. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2934. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2935. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2936. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2937. if (!from._internal_name().empty()) {
  2938. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2939. GetArenaForAllocation());
  2940. }
  2941. ::memcpy(&type_, &from.type_,
  2942. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  2943. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  2944. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  2945. }
  2946. inline void CSAdd::SharedCtor() {
  2947. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2948. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2949. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2950. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2951. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2952. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2953. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2954. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2955. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2956. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  2957. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  2958. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  2959. }
  2960. CSAdd::~CSAdd() {
  2961. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  2962. if (GetArenaForAllocation() != nullptr) return;
  2963. SharedDtor();
  2964. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2965. }
  2966. inline void CSAdd::SharedDtor() {
  2967. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2968. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2969. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2970. }
  2971. void CSAdd::ArenaDtor(void* object) {
  2972. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  2973. (void)_this;
  2974. }
  2975. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2976. }
  2977. void CSAdd::SetCachedSize(int size) const {
  2978. _cached_size_.Set(size);
  2979. }
  2980. void CSAdd::Clear() {
  2981. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  2982. uint32_t cached_has_bits = 0;
  2983. // Prevent compiler warnings about cached_has_bits being unused
  2984. (void) cached_has_bits;
  2985. serial_.ClearToEmpty();
  2986. name_.ClearToEmpty();
  2987. ::memset(&type_, 0, static_cast<size_t>(
  2988. reinterpret_cast<char*>(&car_) -
  2989. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  2990. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2991. }
  2992. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2993. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2994. while (!ctx->Done(&ptr)) {
  2995. uint32_t tag;
  2996. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2997. switch (tag >> 3) {
  2998. // string serial = 1;
  2999. case 1:
  3000. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3001. auto str = _internal_mutable_serial();
  3002. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3003. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  3004. CHK_(ptr);
  3005. } else
  3006. goto handle_unusual;
  3007. continue;
  3008. // int32 type = 2;
  3009. case 2:
  3010. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3011. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3012. CHK_(ptr);
  3013. } else
  3014. goto handle_unusual;
  3015. continue;
  3016. // string name = 3;
  3017. case 3:
  3018. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3019. auto str = _internal_mutable_name();
  3020. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3021. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  3022. CHK_(ptr);
  3023. } else
  3024. goto handle_unusual;
  3025. continue;
  3026. // int32 car = 4;
  3027. case 4:
  3028. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3029. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3030. CHK_(ptr);
  3031. } else
  3032. goto handle_unusual;
  3033. continue;
  3034. default:
  3035. goto handle_unusual;
  3036. } // switch
  3037. handle_unusual:
  3038. if ((tag == 0) || ((tag & 7) == 4)) {
  3039. CHK_(ptr);
  3040. ctx->SetLastTag(tag);
  3041. goto message_done;
  3042. }
  3043. ptr = UnknownFieldParse(
  3044. tag,
  3045. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3046. ptr, ctx);
  3047. CHK_(ptr != nullptr);
  3048. } // while
  3049. message_done:
  3050. return ptr;
  3051. failure:
  3052. ptr = nullptr;
  3053. goto message_done;
  3054. #undef CHK_
  3055. }
  3056. uint8_t* CSAdd::_InternalSerialize(
  3057. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3058. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  3059. uint32_t cached_has_bits = 0;
  3060. (void) cached_has_bits;
  3061. // string serial = 1;
  3062. if (!this->_internal_serial().empty()) {
  3063. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3064. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  3065. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3066. "RemoNet.CSAdd.serial");
  3067. target = stream->WriteStringMaybeAliased(
  3068. 1, this->_internal_serial(), target);
  3069. }
  3070. // int32 type = 2;
  3071. if (this->_internal_type() != 0) {
  3072. target = stream->EnsureSpace(target);
  3073. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  3074. }
  3075. // string name = 3;
  3076. if (!this->_internal_name().empty()) {
  3077. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3078. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3079. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3080. "RemoNet.CSAdd.name");
  3081. target = stream->WriteStringMaybeAliased(
  3082. 3, this->_internal_name(), target);
  3083. }
  3084. // int32 car = 4;
  3085. if (this->_internal_car() != 0) {
  3086. target = stream->EnsureSpace(target);
  3087. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3088. }
  3089. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3091. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3092. }
  3093. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  3094. return target;
  3095. }
  3096. size_t CSAdd::ByteSizeLong() const {
  3097. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  3098. size_t total_size = 0;
  3099. uint32_t cached_has_bits = 0;
  3100. // Prevent compiler warnings about cached_has_bits being unused
  3101. (void) cached_has_bits;
  3102. // string serial = 1;
  3103. if (!this->_internal_serial().empty()) {
  3104. total_size += 1 +
  3105. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3106. this->_internal_serial());
  3107. }
  3108. // string name = 3;
  3109. if (!this->_internal_name().empty()) {
  3110. total_size += 1 +
  3111. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3112. this->_internal_name());
  3113. }
  3114. // int32 type = 2;
  3115. if (this->_internal_type() != 0) {
  3116. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3117. }
  3118. // int32 car = 4;
  3119. if (this->_internal_car() != 0) {
  3120. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3121. }
  3122. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3123. }
  3124. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  3125. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3126. CSAdd::MergeImpl
  3127. };
  3128. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  3129. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3130. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3131. static_cast<CSAdd *>(to)->MergeFrom(
  3132. static_cast<const CSAdd &>(from));
  3133. }
  3134. void CSAdd::MergeFrom(const CSAdd& from) {
  3135. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  3136. GOOGLE_DCHECK_NE(&from, this);
  3137. uint32_t cached_has_bits = 0;
  3138. (void) cached_has_bits;
  3139. if (!from._internal_serial().empty()) {
  3140. _internal_set_serial(from._internal_serial());
  3141. }
  3142. if (!from._internal_name().empty()) {
  3143. _internal_set_name(from._internal_name());
  3144. }
  3145. if (from._internal_type() != 0) {
  3146. _internal_set_type(from._internal_type());
  3147. }
  3148. if (from._internal_car() != 0) {
  3149. _internal_set_car(from._internal_car());
  3150. }
  3151. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3152. }
  3153. void CSAdd::CopyFrom(const CSAdd& from) {
  3154. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  3155. if (&from == this) return;
  3156. Clear();
  3157. MergeFrom(from);
  3158. }
  3159. bool CSAdd::IsInitialized() const {
  3160. return true;
  3161. }
  3162. void CSAdd::InternalSwap(CSAdd* other) {
  3163. using std::swap;
  3164. auto* lhs_arena = GetArenaForAllocation();
  3165. auto* rhs_arena = other->GetArenaForAllocation();
  3166. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3167. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3168. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3169. &serial_, lhs_arena,
  3170. &other->serial_, rhs_arena
  3171. );
  3172. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3173. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3174. &name_, lhs_arena,
  3175. &other->name_, rhs_arena
  3176. );
  3177. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3178. PROTOBUF_FIELD_OFFSET(CSAdd, car_)
  3179. + sizeof(CSAdd::car_)
  3180. - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>(
  3181. reinterpret_cast<char*>(&type_),
  3182. reinterpret_cast<char*>(&other->type_));
  3183. }
  3184. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  3185. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3186. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3187. file_level_metadata_protocol_2eproto[7]);
  3188. }
  3189. // ===================================================================
  3190. class SCAdd::_Internal {
  3191. public:
  3192. };
  3193. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3194. bool is_message_owned)
  3195. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3196. SharedCtor();
  3197. if (!is_message_owned) {
  3198. RegisterArenaDtor(arena);
  3199. }
  3200. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  3201. }
  3202. SCAdd::SCAdd(const SCAdd& from)
  3203. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3204. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3205. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3206. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3207. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3209. if (!from._internal_name().empty()) {
  3210. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3211. GetArenaForAllocation());
  3212. }
  3213. ::memcpy(&ret_, &from.ret_,
  3214. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3215. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3216. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  3217. }
  3218. inline void SCAdd::SharedCtor() {
  3219. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3220. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3221. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3222. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3223. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3224. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  3225. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3226. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3227. }
  3228. SCAdd::~SCAdd() {
  3229. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  3230. if (GetArenaForAllocation() != nullptr) return;
  3231. SharedDtor();
  3232. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3233. }
  3234. inline void SCAdd::SharedDtor() {
  3235. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3236. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3237. }
  3238. void SCAdd::ArenaDtor(void* object) {
  3239. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  3240. (void)_this;
  3241. }
  3242. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3243. }
  3244. void SCAdd::SetCachedSize(int size) const {
  3245. _cached_size_.Set(size);
  3246. }
  3247. void SCAdd::Clear() {
  3248. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  3249. uint32_t cached_has_bits = 0;
  3250. // Prevent compiler warnings about cached_has_bits being unused
  3251. (void) cached_has_bits;
  3252. name_.ClearToEmpty();
  3253. ::memset(&ret_, 0, static_cast<size_t>(
  3254. reinterpret_cast<char*>(&car_) -
  3255. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3256. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3257. }
  3258. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3259. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3260. while (!ctx->Done(&ptr)) {
  3261. uint32_t tag;
  3262. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3263. switch (tag >> 3) {
  3264. // bool ret = 1;
  3265. case 1:
  3266. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3267. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3268. CHK_(ptr);
  3269. } else
  3270. goto handle_unusual;
  3271. continue;
  3272. // int32 uid = 2;
  3273. case 2:
  3274. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3275. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3276. CHK_(ptr);
  3277. } else
  3278. goto handle_unusual;
  3279. continue;
  3280. // string name = 3;
  3281. case 3:
  3282. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3283. auto str = _internal_mutable_name();
  3284. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3285. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  3286. CHK_(ptr);
  3287. } else
  3288. goto handle_unusual;
  3289. continue;
  3290. // int32 car = 4;
  3291. case 4:
  3292. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3293. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3294. CHK_(ptr);
  3295. } else
  3296. goto handle_unusual;
  3297. continue;
  3298. default:
  3299. goto handle_unusual;
  3300. } // switch
  3301. handle_unusual:
  3302. if ((tag == 0) || ((tag & 7) == 4)) {
  3303. CHK_(ptr);
  3304. ctx->SetLastTag(tag);
  3305. goto message_done;
  3306. }
  3307. ptr = UnknownFieldParse(
  3308. tag,
  3309. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3310. ptr, ctx);
  3311. CHK_(ptr != nullptr);
  3312. } // while
  3313. message_done:
  3314. return ptr;
  3315. failure:
  3316. ptr = nullptr;
  3317. goto message_done;
  3318. #undef CHK_
  3319. }
  3320. uint8_t* SCAdd::_InternalSerialize(
  3321. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3322. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  3323. uint32_t cached_has_bits = 0;
  3324. (void) cached_has_bits;
  3325. // bool ret = 1;
  3326. if (this->_internal_ret() != 0) {
  3327. target = stream->EnsureSpace(target);
  3328. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3329. }
  3330. // int32 uid = 2;
  3331. if (this->_internal_uid() != 0) {
  3332. target = stream->EnsureSpace(target);
  3333. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3334. }
  3335. // string name = 3;
  3336. if (!this->_internal_name().empty()) {
  3337. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3338. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3339. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3340. "RemoNet.SCAdd.name");
  3341. target = stream->WriteStringMaybeAliased(
  3342. 3, this->_internal_name(), target);
  3343. }
  3344. // int32 car = 4;
  3345. if (this->_internal_car() != 0) {
  3346. target = stream->EnsureSpace(target);
  3347. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3348. }
  3349. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3350. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3351. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3352. }
  3353. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  3354. return target;
  3355. }
  3356. size_t SCAdd::ByteSizeLong() const {
  3357. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  3358. size_t total_size = 0;
  3359. uint32_t cached_has_bits = 0;
  3360. // Prevent compiler warnings about cached_has_bits being unused
  3361. (void) cached_has_bits;
  3362. // string name = 3;
  3363. if (!this->_internal_name().empty()) {
  3364. total_size += 1 +
  3365. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3366. this->_internal_name());
  3367. }
  3368. // bool ret = 1;
  3369. if (this->_internal_ret() != 0) {
  3370. total_size += 1 + 1;
  3371. }
  3372. // int32 uid = 2;
  3373. if (this->_internal_uid() != 0) {
  3374. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3375. }
  3376. // int32 car = 4;
  3377. if (this->_internal_car() != 0) {
  3378. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3379. }
  3380. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3381. }
  3382. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  3383. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3384. SCAdd::MergeImpl
  3385. };
  3386. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  3387. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3388. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3389. static_cast<SCAdd *>(to)->MergeFrom(
  3390. static_cast<const SCAdd &>(from));
  3391. }
  3392. void SCAdd::MergeFrom(const SCAdd& from) {
  3393. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  3394. GOOGLE_DCHECK_NE(&from, this);
  3395. uint32_t cached_has_bits = 0;
  3396. (void) cached_has_bits;
  3397. if (!from._internal_name().empty()) {
  3398. _internal_set_name(from._internal_name());
  3399. }
  3400. if (from._internal_ret() != 0) {
  3401. _internal_set_ret(from._internal_ret());
  3402. }
  3403. if (from._internal_uid() != 0) {
  3404. _internal_set_uid(from._internal_uid());
  3405. }
  3406. if (from._internal_car() != 0) {
  3407. _internal_set_car(from._internal_car());
  3408. }
  3409. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3410. }
  3411. void SCAdd::CopyFrom(const SCAdd& from) {
  3412. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  3413. if (&from == this) return;
  3414. Clear();
  3415. MergeFrom(from);
  3416. }
  3417. bool SCAdd::IsInitialized() const {
  3418. return true;
  3419. }
  3420. void SCAdd::InternalSwap(SCAdd* other) {
  3421. using std::swap;
  3422. auto* lhs_arena = GetArenaForAllocation();
  3423. auto* rhs_arena = other->GetArenaForAllocation();
  3424. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3425. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3426. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3427. &name_, lhs_arena,
  3428. &other->name_, rhs_arena
  3429. );
  3430. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3431. PROTOBUF_FIELD_OFFSET(SCAdd, car_)
  3432. + sizeof(SCAdd::car_)
  3433. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  3434. reinterpret_cast<char*>(&ret_),
  3435. reinterpret_cast<char*>(&other->ret_));
  3436. }
  3437. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  3438. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3439. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3440. file_level_metadata_protocol_2eproto[8]);
  3441. }
  3442. // ===================================================================
  3443. class SCKickOff::_Internal {
  3444. public:
  3445. };
  3446. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3447. bool is_message_owned)
  3448. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3449. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  3450. }
  3451. SCKickOff::SCKickOff(const SCKickOff& from)
  3452. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3453. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3454. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  3455. }
  3456. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  3457. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3458. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3459. };
  3460. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  3461. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  3462. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3463. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3464. file_level_metadata_protocol_2eproto[9]);
  3465. }
  3466. // ===================================================================
  3467. class CSState::_Internal {
  3468. public:
  3469. };
  3470. CSState::CSState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3471. bool is_message_owned)
  3472. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3473. SharedCtor();
  3474. if (!is_message_owned) {
  3475. RegisterArenaDtor(arena);
  3476. }
  3477. // @@protoc_insertion_point(arena_constructor:RemoNet.CSState)
  3478. }
  3479. CSState::CSState(const CSState& from)
  3480. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3481. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3482. ::memcpy(&state_, &from.state_,
  3483. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3484. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3485. // @@protoc_insertion_point(copy_constructor:RemoNet.CSState)
  3486. }
  3487. inline void CSState::SharedCtor() {
  3488. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3489. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3490. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3491. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3492. }
  3493. CSState::~CSState() {
  3494. // @@protoc_insertion_point(destructor:RemoNet.CSState)
  3495. if (GetArenaForAllocation() != nullptr) return;
  3496. SharedDtor();
  3497. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3498. }
  3499. inline void CSState::SharedDtor() {
  3500. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3501. }
  3502. void CSState::ArenaDtor(void* object) {
  3503. CSState* _this = reinterpret_cast< CSState* >(object);
  3504. (void)_this;
  3505. }
  3506. void CSState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3507. }
  3508. void CSState::SetCachedSize(int size) const {
  3509. _cached_size_.Set(size);
  3510. }
  3511. void CSState::Clear() {
  3512. // @@protoc_insertion_point(message_clear_start:RemoNet.CSState)
  3513. uint32_t cached_has_bits = 0;
  3514. // Prevent compiler warnings about cached_has_bits being unused
  3515. (void) cached_has_bits;
  3516. ::memset(&state_, 0, static_cast<size_t>(
  3517. reinterpret_cast<char*>(&uid_) -
  3518. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3519. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3520. }
  3521. const char* CSState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3522. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3523. while (!ctx->Done(&ptr)) {
  3524. uint32_t tag;
  3525. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3526. switch (tag >> 3) {
  3527. // .RemoNet.UserState state = 1;
  3528. case 1:
  3529. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3530. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3531. CHK_(ptr);
  3532. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3533. } else
  3534. goto handle_unusual;
  3535. continue;
  3536. // int32 uid = 2;
  3537. case 2:
  3538. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3539. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3540. CHK_(ptr);
  3541. } else
  3542. goto handle_unusual;
  3543. continue;
  3544. default:
  3545. goto handle_unusual;
  3546. } // switch
  3547. handle_unusual:
  3548. if ((tag == 0) || ((tag & 7) == 4)) {
  3549. CHK_(ptr);
  3550. ctx->SetLastTag(tag);
  3551. goto message_done;
  3552. }
  3553. ptr = UnknownFieldParse(
  3554. tag,
  3555. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3556. ptr, ctx);
  3557. CHK_(ptr != nullptr);
  3558. } // while
  3559. message_done:
  3560. return ptr;
  3561. failure:
  3562. ptr = nullptr;
  3563. goto message_done;
  3564. #undef CHK_
  3565. }
  3566. uint8_t* CSState::_InternalSerialize(
  3567. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3568. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSState)
  3569. uint32_t cached_has_bits = 0;
  3570. (void) cached_has_bits;
  3571. // .RemoNet.UserState state = 1;
  3572. if (this->_internal_state() != 0) {
  3573. target = stream->EnsureSpace(target);
  3574. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3575. 1, this->_internal_state(), target);
  3576. }
  3577. // int32 uid = 2;
  3578. if (this->_internal_uid() != 0) {
  3579. target = stream->EnsureSpace(target);
  3580. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3581. }
  3582. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3583. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3584. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3585. }
  3586. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSState)
  3587. return target;
  3588. }
  3589. size_t CSState::ByteSizeLong() const {
  3590. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSState)
  3591. size_t total_size = 0;
  3592. uint32_t cached_has_bits = 0;
  3593. // Prevent compiler warnings about cached_has_bits being unused
  3594. (void) cached_has_bits;
  3595. // .RemoNet.UserState state = 1;
  3596. if (this->_internal_state() != 0) {
  3597. total_size += 1 +
  3598. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3599. }
  3600. // int32 uid = 2;
  3601. if (this->_internal_uid() != 0) {
  3602. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3603. }
  3604. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3605. }
  3606. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSState::_class_data_ = {
  3607. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3608. CSState::MergeImpl
  3609. };
  3610. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSState::GetClassData() const { return &_class_data_; }
  3611. void CSState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3612. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3613. static_cast<CSState *>(to)->MergeFrom(
  3614. static_cast<const CSState &>(from));
  3615. }
  3616. void CSState::MergeFrom(const CSState& from) {
  3617. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSState)
  3618. GOOGLE_DCHECK_NE(&from, this);
  3619. uint32_t cached_has_bits = 0;
  3620. (void) cached_has_bits;
  3621. if (from._internal_state() != 0) {
  3622. _internal_set_state(from._internal_state());
  3623. }
  3624. if (from._internal_uid() != 0) {
  3625. _internal_set_uid(from._internal_uid());
  3626. }
  3627. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3628. }
  3629. void CSState::CopyFrom(const CSState& from) {
  3630. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSState)
  3631. if (&from == this) return;
  3632. Clear();
  3633. MergeFrom(from);
  3634. }
  3635. bool CSState::IsInitialized() const {
  3636. return true;
  3637. }
  3638. void CSState::InternalSwap(CSState* other) {
  3639. using std::swap;
  3640. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3641. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3642. PROTOBUF_FIELD_OFFSET(CSState, uid_)
  3643. + sizeof(CSState::uid_)
  3644. - PROTOBUF_FIELD_OFFSET(CSState, state_)>(
  3645. reinterpret_cast<char*>(&state_),
  3646. reinterpret_cast<char*>(&other->state_));
  3647. }
  3648. ::PROTOBUF_NAMESPACE_ID::Metadata CSState::GetMetadata() const {
  3649. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3650. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3651. file_level_metadata_protocol_2eproto[10]);
  3652. }
  3653. // ===================================================================
  3654. class SCState::_Internal {
  3655. public:
  3656. };
  3657. SCState::SCState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3658. bool is_message_owned)
  3659. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3660. SharedCtor();
  3661. if (!is_message_owned) {
  3662. RegisterArenaDtor(arena);
  3663. }
  3664. // @@protoc_insertion_point(arena_constructor:RemoNet.SCState)
  3665. }
  3666. SCState::SCState(const SCState& from)
  3667. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3668. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3669. ::memcpy(&state_, &from.state_,
  3670. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3671. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3672. // @@protoc_insertion_point(copy_constructor:RemoNet.SCState)
  3673. }
  3674. inline void SCState::SharedCtor() {
  3675. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3676. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3677. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3678. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3679. }
  3680. SCState::~SCState() {
  3681. // @@protoc_insertion_point(destructor:RemoNet.SCState)
  3682. if (GetArenaForAllocation() != nullptr) return;
  3683. SharedDtor();
  3684. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3685. }
  3686. inline void SCState::SharedDtor() {
  3687. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3688. }
  3689. void SCState::ArenaDtor(void* object) {
  3690. SCState* _this = reinterpret_cast< SCState* >(object);
  3691. (void)_this;
  3692. }
  3693. void SCState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3694. }
  3695. void SCState::SetCachedSize(int size) const {
  3696. _cached_size_.Set(size);
  3697. }
  3698. void SCState::Clear() {
  3699. // @@protoc_insertion_point(message_clear_start:RemoNet.SCState)
  3700. uint32_t cached_has_bits = 0;
  3701. // Prevent compiler warnings about cached_has_bits being unused
  3702. (void) cached_has_bits;
  3703. ::memset(&state_, 0, static_cast<size_t>(
  3704. reinterpret_cast<char*>(&uid_) -
  3705. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3706. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3707. }
  3708. const char* SCState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3709. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3710. while (!ctx->Done(&ptr)) {
  3711. uint32_t tag;
  3712. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3713. switch (tag >> 3) {
  3714. // .RemoNet.UserState state = 1;
  3715. case 1:
  3716. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3717. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3718. CHK_(ptr);
  3719. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3720. } else
  3721. goto handle_unusual;
  3722. continue;
  3723. // int32 uid = 2;
  3724. case 2:
  3725. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3726. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3727. CHK_(ptr);
  3728. } else
  3729. goto handle_unusual;
  3730. continue;
  3731. default:
  3732. goto handle_unusual;
  3733. } // switch
  3734. handle_unusual:
  3735. if ((tag == 0) || ((tag & 7) == 4)) {
  3736. CHK_(ptr);
  3737. ctx->SetLastTag(tag);
  3738. goto message_done;
  3739. }
  3740. ptr = UnknownFieldParse(
  3741. tag,
  3742. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3743. ptr, ctx);
  3744. CHK_(ptr != nullptr);
  3745. } // while
  3746. message_done:
  3747. return ptr;
  3748. failure:
  3749. ptr = nullptr;
  3750. goto message_done;
  3751. #undef CHK_
  3752. }
  3753. uint8_t* SCState::_InternalSerialize(
  3754. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3755. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCState)
  3756. uint32_t cached_has_bits = 0;
  3757. (void) cached_has_bits;
  3758. // .RemoNet.UserState state = 1;
  3759. if (this->_internal_state() != 0) {
  3760. target = stream->EnsureSpace(target);
  3761. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3762. 1, this->_internal_state(), target);
  3763. }
  3764. // int32 uid = 2;
  3765. if (this->_internal_uid() != 0) {
  3766. target = stream->EnsureSpace(target);
  3767. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3768. }
  3769. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3770. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3771. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3772. }
  3773. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCState)
  3774. return target;
  3775. }
  3776. size_t SCState::ByteSizeLong() const {
  3777. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCState)
  3778. size_t total_size = 0;
  3779. uint32_t cached_has_bits = 0;
  3780. // Prevent compiler warnings about cached_has_bits being unused
  3781. (void) cached_has_bits;
  3782. // .RemoNet.UserState state = 1;
  3783. if (this->_internal_state() != 0) {
  3784. total_size += 1 +
  3785. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3786. }
  3787. // int32 uid = 2;
  3788. if (this->_internal_uid() != 0) {
  3789. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3790. }
  3791. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3792. }
  3793. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCState::_class_data_ = {
  3794. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3795. SCState::MergeImpl
  3796. };
  3797. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCState::GetClassData() const { return &_class_data_; }
  3798. void SCState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3799. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3800. static_cast<SCState *>(to)->MergeFrom(
  3801. static_cast<const SCState &>(from));
  3802. }
  3803. void SCState::MergeFrom(const SCState& from) {
  3804. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCState)
  3805. GOOGLE_DCHECK_NE(&from, this);
  3806. uint32_t cached_has_bits = 0;
  3807. (void) cached_has_bits;
  3808. if (from._internal_state() != 0) {
  3809. _internal_set_state(from._internal_state());
  3810. }
  3811. if (from._internal_uid() != 0) {
  3812. _internal_set_uid(from._internal_uid());
  3813. }
  3814. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3815. }
  3816. void SCState::CopyFrom(const SCState& from) {
  3817. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCState)
  3818. if (&from == this) return;
  3819. Clear();
  3820. MergeFrom(from);
  3821. }
  3822. bool SCState::IsInitialized() const {
  3823. return true;
  3824. }
  3825. void SCState::InternalSwap(SCState* other) {
  3826. using std::swap;
  3827. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3828. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3829. PROTOBUF_FIELD_OFFSET(SCState, uid_)
  3830. + sizeof(SCState::uid_)
  3831. - PROTOBUF_FIELD_OFFSET(SCState, state_)>(
  3832. reinterpret_cast<char*>(&state_),
  3833. reinterpret_cast<char*>(&other->state_));
  3834. }
  3835. ::PROTOBUF_NAMESPACE_ID::Metadata SCState::GetMetadata() const {
  3836. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3837. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3838. file_level_metadata_protocol_2eproto[11]);
  3839. }
  3840. // ===================================================================
  3841. class Robot::_Internal {
  3842. public:
  3843. };
  3844. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3845. bool is_message_owned)
  3846. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3847. SharedCtor();
  3848. if (!is_message_owned) {
  3849. RegisterArenaDtor(arena);
  3850. }
  3851. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  3852. }
  3853. Robot::Robot(const Robot& from)
  3854. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3855. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3856. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3857. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3858. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3859. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3860. if (!from._internal_name().empty()) {
  3861. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3862. GetArenaForAllocation());
  3863. }
  3864. ::memcpy(&rid_, &from.rid_,
  3865. static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3866. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3867. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  3868. }
  3869. inline void Robot::SharedCtor() {
  3870. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3871. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3872. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3873. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3874. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3875. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  3876. 0, static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3877. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3878. }
  3879. Robot::~Robot() {
  3880. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  3881. if (GetArenaForAllocation() != nullptr) return;
  3882. SharedDtor();
  3883. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3884. }
  3885. inline void Robot::SharedDtor() {
  3886. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3887. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3888. }
  3889. void Robot::ArenaDtor(void* object) {
  3890. Robot* _this = reinterpret_cast< Robot* >(object);
  3891. (void)_this;
  3892. }
  3893. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3894. }
  3895. void Robot::SetCachedSize(int size) const {
  3896. _cached_size_.Set(size);
  3897. }
  3898. void Robot::Clear() {
  3899. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  3900. uint32_t cached_has_bits = 0;
  3901. // Prevent compiler warnings about cached_has_bits being unused
  3902. (void) cached_has_bits;
  3903. name_.ClearToEmpty();
  3904. ::memset(&rid_, 0, static_cast<size_t>(
  3905. reinterpret_cast<char*>(&cartype_) -
  3906. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3907. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3908. }
  3909. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3910. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3911. while (!ctx->Done(&ptr)) {
  3912. uint32_t tag;
  3913. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3914. switch (tag >> 3) {
  3915. // int32 rid = 1;
  3916. case 1:
  3917. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3918. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3919. CHK_(ptr);
  3920. } else
  3921. goto handle_unusual;
  3922. continue;
  3923. // string name = 2;
  3924. case 2:
  3925. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  3926. auto str = _internal_mutable_name();
  3927. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3928. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  3929. CHK_(ptr);
  3930. } else
  3931. goto handle_unusual;
  3932. continue;
  3933. // int32 type = 3;
  3934. case 3:
  3935. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3936. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3937. CHK_(ptr);
  3938. } else
  3939. goto handle_unusual;
  3940. continue;
  3941. // .RemoNet.UserState state = 4;
  3942. case 4:
  3943. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3944. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3945. CHK_(ptr);
  3946. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3947. } else
  3948. goto handle_unusual;
  3949. continue;
  3950. // int32 carType = 5;
  3951. case 5:
  3952. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  3953. cartype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3954. CHK_(ptr);
  3955. } else
  3956. goto handle_unusual;
  3957. continue;
  3958. default:
  3959. goto handle_unusual;
  3960. } // switch
  3961. handle_unusual:
  3962. if ((tag == 0) || ((tag & 7) == 4)) {
  3963. CHK_(ptr);
  3964. ctx->SetLastTag(tag);
  3965. goto message_done;
  3966. }
  3967. ptr = UnknownFieldParse(
  3968. tag,
  3969. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3970. ptr, ctx);
  3971. CHK_(ptr != nullptr);
  3972. } // while
  3973. message_done:
  3974. return ptr;
  3975. failure:
  3976. ptr = nullptr;
  3977. goto message_done;
  3978. #undef CHK_
  3979. }
  3980. uint8_t* Robot::_InternalSerialize(
  3981. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3982. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  3983. uint32_t cached_has_bits = 0;
  3984. (void) cached_has_bits;
  3985. // int32 rid = 1;
  3986. if (this->_internal_rid() != 0) {
  3987. target = stream->EnsureSpace(target);
  3988. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  3989. }
  3990. // string name = 2;
  3991. if (!this->_internal_name().empty()) {
  3992. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3993. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3994. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3995. "RemoNet.Robot.name");
  3996. target = stream->WriteStringMaybeAliased(
  3997. 2, this->_internal_name(), target);
  3998. }
  3999. // int32 type = 3;
  4000. if (this->_internal_type() != 0) {
  4001. target = stream->EnsureSpace(target);
  4002. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  4003. }
  4004. // .RemoNet.UserState state = 4;
  4005. if (this->_internal_state() != 0) {
  4006. target = stream->EnsureSpace(target);
  4007. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4008. 4, this->_internal_state(), target);
  4009. }
  4010. // int32 carType = 5;
  4011. if (this->_internal_cartype() != 0) {
  4012. target = stream->EnsureSpace(target);
  4013. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_cartype(), target);
  4014. }
  4015. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4016. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4017. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4018. }
  4019. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  4020. return target;
  4021. }
  4022. size_t Robot::ByteSizeLong() const {
  4023. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  4024. size_t total_size = 0;
  4025. uint32_t cached_has_bits = 0;
  4026. // Prevent compiler warnings about cached_has_bits being unused
  4027. (void) cached_has_bits;
  4028. // string name = 2;
  4029. if (!this->_internal_name().empty()) {
  4030. total_size += 1 +
  4031. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4032. this->_internal_name());
  4033. }
  4034. // int32 rid = 1;
  4035. if (this->_internal_rid() != 0) {
  4036. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  4037. }
  4038. // int32 type = 3;
  4039. if (this->_internal_type() != 0) {
  4040. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  4041. }
  4042. // .RemoNet.UserState state = 4;
  4043. if (this->_internal_state() != 0) {
  4044. total_size += 1 +
  4045. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4046. }
  4047. // int32 carType = 5;
  4048. if (this->_internal_cartype() != 0) {
  4049. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cartype());
  4050. }
  4051. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4052. }
  4053. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  4054. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4055. Robot::MergeImpl
  4056. };
  4057. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  4058. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4059. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4060. static_cast<Robot *>(to)->MergeFrom(
  4061. static_cast<const Robot &>(from));
  4062. }
  4063. void Robot::MergeFrom(const Robot& from) {
  4064. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  4065. GOOGLE_DCHECK_NE(&from, this);
  4066. uint32_t cached_has_bits = 0;
  4067. (void) cached_has_bits;
  4068. if (!from._internal_name().empty()) {
  4069. _internal_set_name(from._internal_name());
  4070. }
  4071. if (from._internal_rid() != 0) {
  4072. _internal_set_rid(from._internal_rid());
  4073. }
  4074. if (from._internal_type() != 0) {
  4075. _internal_set_type(from._internal_type());
  4076. }
  4077. if (from._internal_state() != 0) {
  4078. _internal_set_state(from._internal_state());
  4079. }
  4080. if (from._internal_cartype() != 0) {
  4081. _internal_set_cartype(from._internal_cartype());
  4082. }
  4083. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4084. }
  4085. void Robot::CopyFrom(const Robot& from) {
  4086. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  4087. if (&from == this) return;
  4088. Clear();
  4089. MergeFrom(from);
  4090. }
  4091. bool Robot::IsInitialized() const {
  4092. return true;
  4093. }
  4094. void Robot::InternalSwap(Robot* other) {
  4095. using std::swap;
  4096. auto* lhs_arena = GetArenaForAllocation();
  4097. auto* rhs_arena = other->GetArenaForAllocation();
  4098. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4099. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4100. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4101. &name_, lhs_arena,
  4102. &other->name_, rhs_arena
  4103. );
  4104. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4105. PROTOBUF_FIELD_OFFSET(Robot, cartype_)
  4106. + sizeof(Robot::cartype_)
  4107. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  4108. reinterpret_cast<char*>(&rid_),
  4109. reinterpret_cast<char*>(&other->rid_));
  4110. }
  4111. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  4112. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4113. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4114. file_level_metadata_protocol_2eproto[12]);
  4115. }
  4116. // ===================================================================
  4117. class CSRobot::_Internal {
  4118. public:
  4119. };
  4120. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4121. bool is_message_owned)
  4122. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  4123. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  4124. }
  4125. CSRobot::CSRobot(const CSRobot& from)
  4126. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  4127. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4128. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  4129. }
  4130. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  4131. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  4132. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  4133. };
  4134. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  4135. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  4136. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4137. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4138. file_level_metadata_protocol_2eproto[13]);
  4139. }
  4140. // ===================================================================
  4141. class SCRobot::_Internal {
  4142. public:
  4143. };
  4144. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4145. bool is_message_owned)
  4146. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  4147. robot_(arena) {
  4148. SharedCtor();
  4149. if (!is_message_owned) {
  4150. RegisterArenaDtor(arena);
  4151. }
  4152. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  4153. }
  4154. SCRobot::SCRobot(const SCRobot& from)
  4155. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4156. robot_(from.robot_) {
  4157. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4158. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  4159. }
  4160. inline void SCRobot::SharedCtor() {
  4161. }
  4162. SCRobot::~SCRobot() {
  4163. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  4164. if (GetArenaForAllocation() != nullptr) return;
  4165. SharedDtor();
  4166. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4167. }
  4168. inline void SCRobot::SharedDtor() {
  4169. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4170. }
  4171. void SCRobot::ArenaDtor(void* object) {
  4172. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  4173. (void)_this;
  4174. }
  4175. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4176. }
  4177. void SCRobot::SetCachedSize(int size) const {
  4178. _cached_size_.Set(size);
  4179. }
  4180. void SCRobot::Clear() {
  4181. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  4182. uint32_t cached_has_bits = 0;
  4183. // Prevent compiler warnings about cached_has_bits being unused
  4184. (void) cached_has_bits;
  4185. robot_.Clear();
  4186. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4187. }
  4188. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4189. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4190. while (!ctx->Done(&ptr)) {
  4191. uint32_t tag;
  4192. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4193. switch (tag >> 3) {
  4194. // repeated .RemoNet.Robot robot = 1;
  4195. case 1:
  4196. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4197. ptr -= 1;
  4198. do {
  4199. ptr += 1;
  4200. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  4201. CHK_(ptr);
  4202. if (!ctx->DataAvailable(ptr)) break;
  4203. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  4204. } else
  4205. goto handle_unusual;
  4206. continue;
  4207. default:
  4208. goto handle_unusual;
  4209. } // switch
  4210. handle_unusual:
  4211. if ((tag == 0) || ((tag & 7) == 4)) {
  4212. CHK_(ptr);
  4213. ctx->SetLastTag(tag);
  4214. goto message_done;
  4215. }
  4216. ptr = UnknownFieldParse(
  4217. tag,
  4218. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4219. ptr, ctx);
  4220. CHK_(ptr != nullptr);
  4221. } // while
  4222. message_done:
  4223. return ptr;
  4224. failure:
  4225. ptr = nullptr;
  4226. goto message_done;
  4227. #undef CHK_
  4228. }
  4229. uint8_t* SCRobot::_InternalSerialize(
  4230. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4231. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  4232. uint32_t cached_has_bits = 0;
  4233. (void) cached_has_bits;
  4234. // repeated .RemoNet.Robot robot = 1;
  4235. for (unsigned int i = 0,
  4236. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  4237. target = stream->EnsureSpace(target);
  4238. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4239. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  4240. }
  4241. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4242. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4243. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4244. }
  4245. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  4246. return target;
  4247. }
  4248. size_t SCRobot::ByteSizeLong() const {
  4249. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  4250. size_t total_size = 0;
  4251. uint32_t cached_has_bits = 0;
  4252. // Prevent compiler warnings about cached_has_bits being unused
  4253. (void) cached_has_bits;
  4254. // repeated .RemoNet.Robot robot = 1;
  4255. total_size += 1UL * this->_internal_robot_size();
  4256. for (const auto& msg : this->robot_) {
  4257. total_size +=
  4258. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  4259. }
  4260. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4261. }
  4262. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  4263. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4264. SCRobot::MergeImpl
  4265. };
  4266. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  4267. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4268. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4269. static_cast<SCRobot *>(to)->MergeFrom(
  4270. static_cast<const SCRobot &>(from));
  4271. }
  4272. void SCRobot::MergeFrom(const SCRobot& from) {
  4273. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  4274. GOOGLE_DCHECK_NE(&from, this);
  4275. uint32_t cached_has_bits = 0;
  4276. (void) cached_has_bits;
  4277. robot_.MergeFrom(from.robot_);
  4278. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4279. }
  4280. void SCRobot::CopyFrom(const SCRobot& from) {
  4281. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  4282. if (&from == this) return;
  4283. Clear();
  4284. MergeFrom(from);
  4285. }
  4286. bool SCRobot::IsInitialized() const {
  4287. return true;
  4288. }
  4289. void SCRobot::InternalSwap(SCRobot* other) {
  4290. using std::swap;
  4291. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4292. robot_.InternalSwap(&other->robot_);
  4293. }
  4294. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  4295. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4296. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4297. file_level_metadata_protocol_2eproto[14]);
  4298. }
  4299. // ===================================================================
  4300. class CSSign::_Internal {
  4301. public:
  4302. };
  4303. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4304. bool is_message_owned)
  4305. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4306. SharedCtor();
  4307. if (!is_message_owned) {
  4308. RegisterArenaDtor(arena);
  4309. }
  4310. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  4311. }
  4312. CSSign::CSSign(const CSSign& from)
  4313. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4314. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4315. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4316. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4317. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4318. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4319. if (!from._internal_account().empty()) {
  4320. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  4321. GetArenaForAllocation());
  4322. }
  4323. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4324. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4325. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4326. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4327. if (!from._internal_password().empty()) {
  4328. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  4329. GetArenaForAllocation());
  4330. }
  4331. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  4332. }
  4333. inline void CSSign::SharedCtor() {
  4334. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4335. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4336. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4337. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4338. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4339. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4340. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4341. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4342. }
  4343. CSSign::~CSSign() {
  4344. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  4345. if (GetArenaForAllocation() != nullptr) return;
  4346. SharedDtor();
  4347. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4348. }
  4349. inline void CSSign::SharedDtor() {
  4350. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4351. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4352. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4353. }
  4354. void CSSign::ArenaDtor(void* object) {
  4355. CSSign* _this = reinterpret_cast< CSSign* >(object);
  4356. (void)_this;
  4357. }
  4358. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4359. }
  4360. void CSSign::SetCachedSize(int size) const {
  4361. _cached_size_.Set(size);
  4362. }
  4363. void CSSign::Clear() {
  4364. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  4365. uint32_t cached_has_bits = 0;
  4366. // Prevent compiler warnings about cached_has_bits being unused
  4367. (void) cached_has_bits;
  4368. account_.ClearToEmpty();
  4369. password_.ClearToEmpty();
  4370. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4371. }
  4372. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4373. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4374. while (!ctx->Done(&ptr)) {
  4375. uint32_t tag;
  4376. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4377. switch (tag >> 3) {
  4378. // string account = 1;
  4379. case 1:
  4380. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4381. auto str = _internal_mutable_account();
  4382. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4383. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  4384. CHK_(ptr);
  4385. } else
  4386. goto handle_unusual;
  4387. continue;
  4388. // string password = 2;
  4389. case 2:
  4390. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4391. auto str = _internal_mutable_password();
  4392. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4393. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  4394. CHK_(ptr);
  4395. } else
  4396. goto handle_unusual;
  4397. continue;
  4398. default:
  4399. goto handle_unusual;
  4400. } // switch
  4401. handle_unusual:
  4402. if ((tag == 0) || ((tag & 7) == 4)) {
  4403. CHK_(ptr);
  4404. ctx->SetLastTag(tag);
  4405. goto message_done;
  4406. }
  4407. ptr = UnknownFieldParse(
  4408. tag,
  4409. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4410. ptr, ctx);
  4411. CHK_(ptr != nullptr);
  4412. } // while
  4413. message_done:
  4414. return ptr;
  4415. failure:
  4416. ptr = nullptr;
  4417. goto message_done;
  4418. #undef CHK_
  4419. }
  4420. uint8_t* CSSign::_InternalSerialize(
  4421. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4422. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  4423. uint32_t cached_has_bits = 0;
  4424. (void) cached_has_bits;
  4425. // string account = 1;
  4426. if (!this->_internal_account().empty()) {
  4427. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4428. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  4429. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4430. "RemoNet.CSSign.account");
  4431. target = stream->WriteStringMaybeAliased(
  4432. 1, this->_internal_account(), target);
  4433. }
  4434. // string password = 2;
  4435. if (!this->_internal_password().empty()) {
  4436. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4437. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  4438. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4439. "RemoNet.CSSign.password");
  4440. target = stream->WriteStringMaybeAliased(
  4441. 2, this->_internal_password(), target);
  4442. }
  4443. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4444. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4445. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4446. }
  4447. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  4448. return target;
  4449. }
  4450. size_t CSSign::ByteSizeLong() const {
  4451. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  4452. size_t total_size = 0;
  4453. uint32_t cached_has_bits = 0;
  4454. // Prevent compiler warnings about cached_has_bits being unused
  4455. (void) cached_has_bits;
  4456. // string account = 1;
  4457. if (!this->_internal_account().empty()) {
  4458. total_size += 1 +
  4459. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4460. this->_internal_account());
  4461. }
  4462. // string password = 2;
  4463. if (!this->_internal_password().empty()) {
  4464. total_size += 1 +
  4465. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4466. this->_internal_password());
  4467. }
  4468. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4469. }
  4470. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  4471. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4472. CSSign::MergeImpl
  4473. };
  4474. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  4475. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4476. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4477. static_cast<CSSign *>(to)->MergeFrom(
  4478. static_cast<const CSSign &>(from));
  4479. }
  4480. void CSSign::MergeFrom(const CSSign& from) {
  4481. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  4482. GOOGLE_DCHECK_NE(&from, this);
  4483. uint32_t cached_has_bits = 0;
  4484. (void) cached_has_bits;
  4485. if (!from._internal_account().empty()) {
  4486. _internal_set_account(from._internal_account());
  4487. }
  4488. if (!from._internal_password().empty()) {
  4489. _internal_set_password(from._internal_password());
  4490. }
  4491. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4492. }
  4493. void CSSign::CopyFrom(const CSSign& from) {
  4494. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  4495. if (&from == this) return;
  4496. Clear();
  4497. MergeFrom(from);
  4498. }
  4499. bool CSSign::IsInitialized() const {
  4500. return true;
  4501. }
  4502. void CSSign::InternalSwap(CSSign* other) {
  4503. using std::swap;
  4504. auto* lhs_arena = GetArenaForAllocation();
  4505. auto* rhs_arena = other->GetArenaForAllocation();
  4506. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4507. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4508. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4509. &account_, lhs_arena,
  4510. &other->account_, rhs_arena
  4511. );
  4512. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4513. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4514. &password_, lhs_arena,
  4515. &other->password_, rhs_arena
  4516. );
  4517. }
  4518. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  4519. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4520. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4521. file_level_metadata_protocol_2eproto[15]);
  4522. }
  4523. // ===================================================================
  4524. class SCSign::_Internal {
  4525. public:
  4526. };
  4527. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4528. bool is_message_owned)
  4529. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4530. SharedCtor();
  4531. if (!is_message_owned) {
  4532. RegisterArenaDtor(arena);
  4533. }
  4534. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  4535. }
  4536. SCSign::SCSign(const SCSign& from)
  4537. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4538. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4539. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4540. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4541. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4542. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4543. if (!from._internal_name().empty()) {
  4544. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4545. GetArenaForAllocation());
  4546. }
  4547. ::memcpy(&ret_, &from.ret_,
  4548. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4549. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4550. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  4551. }
  4552. inline void SCSign::SharedCtor() {
  4553. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4554. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4555. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4556. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4557. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4558. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  4559. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4560. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4561. }
  4562. SCSign::~SCSign() {
  4563. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  4564. if (GetArenaForAllocation() != nullptr) return;
  4565. SharedDtor();
  4566. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4567. }
  4568. inline void SCSign::SharedDtor() {
  4569. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4570. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4571. }
  4572. void SCSign::ArenaDtor(void* object) {
  4573. SCSign* _this = reinterpret_cast< SCSign* >(object);
  4574. (void)_this;
  4575. }
  4576. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4577. }
  4578. void SCSign::SetCachedSize(int size) const {
  4579. _cached_size_.Set(size);
  4580. }
  4581. void SCSign::Clear() {
  4582. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  4583. uint32_t cached_has_bits = 0;
  4584. // Prevent compiler warnings about cached_has_bits being unused
  4585. (void) cached_has_bits;
  4586. name_.ClearToEmpty();
  4587. ::memset(&ret_, 0, static_cast<size_t>(
  4588. reinterpret_cast<char*>(&uid_) -
  4589. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4590. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4591. }
  4592. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4593. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4594. while (!ctx->Done(&ptr)) {
  4595. uint32_t tag;
  4596. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4597. switch (tag >> 3) {
  4598. // bool ret = 1;
  4599. case 1:
  4600. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4601. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4602. CHK_(ptr);
  4603. } else
  4604. goto handle_unusual;
  4605. continue;
  4606. // int32 uid = 2;
  4607. case 2:
  4608. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4609. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4610. CHK_(ptr);
  4611. } else
  4612. goto handle_unusual;
  4613. continue;
  4614. // string name = 3;
  4615. case 3:
  4616. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4617. auto str = _internal_mutable_name();
  4618. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4619. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  4620. CHK_(ptr);
  4621. } else
  4622. goto handle_unusual;
  4623. continue;
  4624. default:
  4625. goto handle_unusual;
  4626. } // switch
  4627. handle_unusual:
  4628. if ((tag == 0) || ((tag & 7) == 4)) {
  4629. CHK_(ptr);
  4630. ctx->SetLastTag(tag);
  4631. goto message_done;
  4632. }
  4633. ptr = UnknownFieldParse(
  4634. tag,
  4635. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4636. ptr, ctx);
  4637. CHK_(ptr != nullptr);
  4638. } // while
  4639. message_done:
  4640. return ptr;
  4641. failure:
  4642. ptr = nullptr;
  4643. goto message_done;
  4644. #undef CHK_
  4645. }
  4646. uint8_t* SCSign::_InternalSerialize(
  4647. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4648. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  4649. uint32_t cached_has_bits = 0;
  4650. (void) cached_has_bits;
  4651. // bool ret = 1;
  4652. if (this->_internal_ret() != 0) {
  4653. target = stream->EnsureSpace(target);
  4654. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  4655. }
  4656. // int32 uid = 2;
  4657. if (this->_internal_uid() != 0) {
  4658. target = stream->EnsureSpace(target);
  4659. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4660. }
  4661. // string name = 3;
  4662. if (!this->_internal_name().empty()) {
  4663. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4664. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4665. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4666. "RemoNet.SCSign.name");
  4667. target = stream->WriteStringMaybeAliased(
  4668. 3, this->_internal_name(), target);
  4669. }
  4670. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4671. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4672. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4673. }
  4674. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  4675. return target;
  4676. }
  4677. size_t SCSign::ByteSizeLong() const {
  4678. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  4679. size_t total_size = 0;
  4680. uint32_t cached_has_bits = 0;
  4681. // Prevent compiler warnings about cached_has_bits being unused
  4682. (void) cached_has_bits;
  4683. // string name = 3;
  4684. if (!this->_internal_name().empty()) {
  4685. total_size += 1 +
  4686. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4687. this->_internal_name());
  4688. }
  4689. // bool ret = 1;
  4690. if (this->_internal_ret() != 0) {
  4691. total_size += 1 + 1;
  4692. }
  4693. // int32 uid = 2;
  4694. if (this->_internal_uid() != 0) {
  4695. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4696. }
  4697. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4698. }
  4699. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  4700. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4701. SCSign::MergeImpl
  4702. };
  4703. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  4704. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4705. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4706. static_cast<SCSign *>(to)->MergeFrom(
  4707. static_cast<const SCSign &>(from));
  4708. }
  4709. void SCSign::MergeFrom(const SCSign& from) {
  4710. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  4711. GOOGLE_DCHECK_NE(&from, this);
  4712. uint32_t cached_has_bits = 0;
  4713. (void) cached_has_bits;
  4714. if (!from._internal_name().empty()) {
  4715. _internal_set_name(from._internal_name());
  4716. }
  4717. if (from._internal_ret() != 0) {
  4718. _internal_set_ret(from._internal_ret());
  4719. }
  4720. if (from._internal_uid() != 0) {
  4721. _internal_set_uid(from._internal_uid());
  4722. }
  4723. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4724. }
  4725. void SCSign::CopyFrom(const SCSign& from) {
  4726. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  4727. if (&from == this) return;
  4728. Clear();
  4729. MergeFrom(from);
  4730. }
  4731. bool SCSign::IsInitialized() const {
  4732. return true;
  4733. }
  4734. void SCSign::InternalSwap(SCSign* other) {
  4735. using std::swap;
  4736. auto* lhs_arena = GetArenaForAllocation();
  4737. auto* rhs_arena = other->GetArenaForAllocation();
  4738. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4739. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4740. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4741. &name_, lhs_arena,
  4742. &other->name_, rhs_arena
  4743. );
  4744. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4745. PROTOBUF_FIELD_OFFSET(SCSign, uid_)
  4746. + sizeof(SCSign::uid_)
  4747. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  4748. reinterpret_cast<char*>(&ret_),
  4749. reinterpret_cast<char*>(&other->ret_));
  4750. }
  4751. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  4752. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4753. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4754. file_level_metadata_protocol_2eproto[16]);
  4755. }
  4756. // ===================================================================
  4757. class CSReq::_Internal {
  4758. public:
  4759. };
  4760. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4761. bool is_message_owned)
  4762. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4763. SharedCtor();
  4764. if (!is_message_owned) {
  4765. RegisterArenaDtor(arena);
  4766. }
  4767. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  4768. }
  4769. CSReq::CSReq(const CSReq& from)
  4770. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4771. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4772. ::memcpy(&peer_, &from.peer_,
  4773. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4774. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4775. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  4776. }
  4777. inline void CSReq::SharedCtor() {
  4778. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4779. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4780. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4781. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4782. }
  4783. CSReq::~CSReq() {
  4784. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  4785. if (GetArenaForAllocation() != nullptr) return;
  4786. SharedDtor();
  4787. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4788. }
  4789. inline void CSReq::SharedDtor() {
  4790. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4791. }
  4792. void CSReq::ArenaDtor(void* object) {
  4793. CSReq* _this = reinterpret_cast< CSReq* >(object);
  4794. (void)_this;
  4795. }
  4796. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4797. }
  4798. void CSReq::SetCachedSize(int size) const {
  4799. _cached_size_.Set(size);
  4800. }
  4801. void CSReq::Clear() {
  4802. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  4803. uint32_t cached_has_bits = 0;
  4804. // Prevent compiler warnings about cached_has_bits being unused
  4805. (void) cached_has_bits;
  4806. ::memset(&peer_, 0, static_cast<size_t>(
  4807. reinterpret_cast<char*>(&egotype_) -
  4808. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4809. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4810. }
  4811. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4812. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4813. while (!ctx->Done(&ptr)) {
  4814. uint32_t tag;
  4815. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4816. switch (tag >> 3) {
  4817. // int32 peer = 1;
  4818. case 1:
  4819. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4820. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4821. CHK_(ptr);
  4822. } else
  4823. goto handle_unusual;
  4824. continue;
  4825. // int32 index = 2;
  4826. case 2:
  4827. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4828. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4829. CHK_(ptr);
  4830. } else
  4831. goto handle_unusual;
  4832. continue;
  4833. // int32 egotype = 3;
  4834. case 3:
  4835. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4836. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4837. CHK_(ptr);
  4838. } else
  4839. goto handle_unusual;
  4840. continue;
  4841. default:
  4842. goto handle_unusual;
  4843. } // switch
  4844. handle_unusual:
  4845. if ((tag == 0) || ((tag & 7) == 4)) {
  4846. CHK_(ptr);
  4847. ctx->SetLastTag(tag);
  4848. goto message_done;
  4849. }
  4850. ptr = UnknownFieldParse(
  4851. tag,
  4852. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4853. ptr, ctx);
  4854. CHK_(ptr != nullptr);
  4855. } // while
  4856. message_done:
  4857. return ptr;
  4858. failure:
  4859. ptr = nullptr;
  4860. goto message_done;
  4861. #undef CHK_
  4862. }
  4863. uint8_t* CSReq::_InternalSerialize(
  4864. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4865. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  4866. uint32_t cached_has_bits = 0;
  4867. (void) cached_has_bits;
  4868. // int32 peer = 1;
  4869. if (this->_internal_peer() != 0) {
  4870. target = stream->EnsureSpace(target);
  4871. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  4872. }
  4873. // int32 index = 2;
  4874. if (this->_internal_index() != 0) {
  4875. target = stream->EnsureSpace(target);
  4876. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  4877. }
  4878. // int32 egotype = 3;
  4879. if (this->_internal_egotype() != 0) {
  4880. target = stream->EnsureSpace(target);
  4881. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  4882. }
  4883. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4884. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4885. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4886. }
  4887. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  4888. return target;
  4889. }
  4890. size_t CSReq::ByteSizeLong() const {
  4891. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  4892. size_t total_size = 0;
  4893. uint32_t cached_has_bits = 0;
  4894. // Prevent compiler warnings about cached_has_bits being unused
  4895. (void) cached_has_bits;
  4896. // int32 peer = 1;
  4897. if (this->_internal_peer() != 0) {
  4898. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4899. }
  4900. // int32 index = 2;
  4901. if (this->_internal_index() != 0) {
  4902. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4903. }
  4904. // int32 egotype = 3;
  4905. if (this->_internal_egotype() != 0) {
  4906. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4907. }
  4908. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4909. }
  4910. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  4911. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4912. CSReq::MergeImpl
  4913. };
  4914. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  4915. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4916. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4917. static_cast<CSReq *>(to)->MergeFrom(
  4918. static_cast<const CSReq &>(from));
  4919. }
  4920. void CSReq::MergeFrom(const CSReq& from) {
  4921. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  4922. GOOGLE_DCHECK_NE(&from, this);
  4923. uint32_t cached_has_bits = 0;
  4924. (void) cached_has_bits;
  4925. if (from._internal_peer() != 0) {
  4926. _internal_set_peer(from._internal_peer());
  4927. }
  4928. if (from._internal_index() != 0) {
  4929. _internal_set_index(from._internal_index());
  4930. }
  4931. if (from._internal_egotype() != 0) {
  4932. _internal_set_egotype(from._internal_egotype());
  4933. }
  4934. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4935. }
  4936. void CSReq::CopyFrom(const CSReq& from) {
  4937. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  4938. if (&from == this) return;
  4939. Clear();
  4940. MergeFrom(from);
  4941. }
  4942. bool CSReq::IsInitialized() const {
  4943. return true;
  4944. }
  4945. void CSReq::InternalSwap(CSReq* other) {
  4946. using std::swap;
  4947. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4948. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4949. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  4950. + sizeof(CSReq::egotype_)
  4951. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  4952. reinterpret_cast<char*>(&peer_),
  4953. reinterpret_cast<char*>(&other->peer_));
  4954. }
  4955. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  4956. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4957. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4958. file_level_metadata_protocol_2eproto[17]);
  4959. }
  4960. // ===================================================================
  4961. class SCReq::_Internal {
  4962. public:
  4963. };
  4964. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4965. bool is_message_owned)
  4966. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4967. SharedCtor();
  4968. if (!is_message_owned) {
  4969. RegisterArenaDtor(arena);
  4970. }
  4971. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  4972. }
  4973. SCReq::SCReq(const SCReq& from)
  4974. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4975. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4976. ::memcpy(&desc_, &from.desc_,
  4977. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4978. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  4979. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  4980. }
  4981. inline void SCReq::SharedCtor() {
  4982. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4983. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  4984. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4985. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  4986. }
  4987. SCReq::~SCReq() {
  4988. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  4989. if (GetArenaForAllocation() != nullptr) return;
  4990. SharedDtor();
  4991. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4992. }
  4993. inline void SCReq::SharedDtor() {
  4994. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4995. }
  4996. void SCReq::ArenaDtor(void* object) {
  4997. SCReq* _this = reinterpret_cast< SCReq* >(object);
  4998. (void)_this;
  4999. }
  5000. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5001. }
  5002. void SCReq::SetCachedSize(int size) const {
  5003. _cached_size_.Set(size);
  5004. }
  5005. void SCReq::Clear() {
  5006. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  5007. uint32_t cached_has_bits = 0;
  5008. // Prevent compiler warnings about cached_has_bits being unused
  5009. (void) cached_has_bits;
  5010. ::memset(&desc_, 0, static_cast<size_t>(
  5011. reinterpret_cast<char*>(&egotype_) -
  5012. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5013. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5014. }
  5015. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5016. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5017. while (!ctx->Done(&ptr)) {
  5018. uint32_t tag;
  5019. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5020. switch (tag >> 3) {
  5021. // .RemoNet.VideoDesc desc = 1;
  5022. case 1:
  5023. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5024. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5025. CHK_(ptr);
  5026. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5027. } else
  5028. goto handle_unusual;
  5029. continue;
  5030. // int32 peer = 2;
  5031. case 2:
  5032. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5033. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5034. CHK_(ptr);
  5035. } else
  5036. goto handle_unusual;
  5037. continue;
  5038. // int32 egotype = 3;
  5039. case 3:
  5040. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5041. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5042. CHK_(ptr);
  5043. } else
  5044. goto handle_unusual;
  5045. continue;
  5046. default:
  5047. goto handle_unusual;
  5048. } // switch
  5049. handle_unusual:
  5050. if ((tag == 0) || ((tag & 7) == 4)) {
  5051. CHK_(ptr);
  5052. ctx->SetLastTag(tag);
  5053. goto message_done;
  5054. }
  5055. ptr = UnknownFieldParse(
  5056. tag,
  5057. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5058. ptr, ctx);
  5059. CHK_(ptr != nullptr);
  5060. } // while
  5061. message_done:
  5062. return ptr;
  5063. failure:
  5064. ptr = nullptr;
  5065. goto message_done;
  5066. #undef CHK_
  5067. }
  5068. uint8_t* SCReq::_InternalSerialize(
  5069. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5070. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  5071. uint32_t cached_has_bits = 0;
  5072. (void) cached_has_bits;
  5073. // .RemoNet.VideoDesc desc = 1;
  5074. if (this->_internal_desc() != 0) {
  5075. target = stream->EnsureSpace(target);
  5076. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5077. 1, this->_internal_desc(), target);
  5078. }
  5079. // int32 peer = 2;
  5080. if (this->_internal_peer() != 0) {
  5081. target = stream->EnsureSpace(target);
  5082. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5083. }
  5084. // int32 egotype = 3;
  5085. if (this->_internal_egotype() != 0) {
  5086. target = stream->EnsureSpace(target);
  5087. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5088. }
  5089. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5091. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5092. }
  5093. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  5094. return target;
  5095. }
  5096. size_t SCReq::ByteSizeLong() const {
  5097. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  5098. size_t total_size = 0;
  5099. uint32_t cached_has_bits = 0;
  5100. // Prevent compiler warnings about cached_has_bits being unused
  5101. (void) cached_has_bits;
  5102. // .RemoNet.VideoDesc desc = 1;
  5103. if (this->_internal_desc() != 0) {
  5104. total_size += 1 +
  5105. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5106. }
  5107. // int32 peer = 2;
  5108. if (this->_internal_peer() != 0) {
  5109. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5110. }
  5111. // int32 egotype = 3;
  5112. if (this->_internal_egotype() != 0) {
  5113. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5114. }
  5115. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5116. }
  5117. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  5118. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5119. SCReq::MergeImpl
  5120. };
  5121. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  5122. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5123. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5124. static_cast<SCReq *>(to)->MergeFrom(
  5125. static_cast<const SCReq &>(from));
  5126. }
  5127. void SCReq::MergeFrom(const SCReq& from) {
  5128. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  5129. GOOGLE_DCHECK_NE(&from, this);
  5130. uint32_t cached_has_bits = 0;
  5131. (void) cached_has_bits;
  5132. if (from._internal_desc() != 0) {
  5133. _internal_set_desc(from._internal_desc());
  5134. }
  5135. if (from._internal_peer() != 0) {
  5136. _internal_set_peer(from._internal_peer());
  5137. }
  5138. if (from._internal_egotype() != 0) {
  5139. _internal_set_egotype(from._internal_egotype());
  5140. }
  5141. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5142. }
  5143. void SCReq::CopyFrom(const SCReq& from) {
  5144. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  5145. if (&from == this) return;
  5146. Clear();
  5147. MergeFrom(from);
  5148. }
  5149. bool SCReq::IsInitialized() const {
  5150. return true;
  5151. }
  5152. void SCReq::InternalSwap(SCReq* other) {
  5153. using std::swap;
  5154. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5155. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5156. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  5157. + sizeof(SCReq::egotype_)
  5158. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  5159. reinterpret_cast<char*>(&desc_),
  5160. reinterpret_cast<char*>(&other->desc_));
  5161. }
  5162. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  5163. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5164. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5165. file_level_metadata_protocol_2eproto[18]);
  5166. }
  5167. // ===================================================================
  5168. class CSRep::_Internal {
  5169. public:
  5170. };
  5171. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5172. bool is_message_owned)
  5173. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5174. SharedCtor();
  5175. if (!is_message_owned) {
  5176. RegisterArenaDtor(arena);
  5177. }
  5178. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  5179. }
  5180. CSRep::CSRep(const CSRep& from)
  5181. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5182. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5183. ::memcpy(&desc_, &from.desc_,
  5184. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5185. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5186. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  5187. }
  5188. inline void CSRep::SharedCtor() {
  5189. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5190. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5191. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5192. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5193. }
  5194. CSRep::~CSRep() {
  5195. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  5196. if (GetArenaForAllocation() != nullptr) return;
  5197. SharedDtor();
  5198. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5199. }
  5200. inline void CSRep::SharedDtor() {
  5201. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5202. }
  5203. void CSRep::ArenaDtor(void* object) {
  5204. CSRep* _this = reinterpret_cast< CSRep* >(object);
  5205. (void)_this;
  5206. }
  5207. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5208. }
  5209. void CSRep::SetCachedSize(int size) const {
  5210. _cached_size_.Set(size);
  5211. }
  5212. void CSRep::Clear() {
  5213. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  5214. uint32_t cached_has_bits = 0;
  5215. // Prevent compiler warnings about cached_has_bits being unused
  5216. (void) cached_has_bits;
  5217. ::memset(&desc_, 0, static_cast<size_t>(
  5218. reinterpret_cast<char*>(&egotype_) -
  5219. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5220. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5221. }
  5222. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5223. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5224. while (!ctx->Done(&ptr)) {
  5225. uint32_t tag;
  5226. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5227. switch (tag >> 3) {
  5228. // .RemoNet.VideoDesc desc = 1;
  5229. case 1:
  5230. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5231. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5232. CHK_(ptr);
  5233. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5234. } else
  5235. goto handle_unusual;
  5236. continue;
  5237. // int32 peer = 2;
  5238. case 2:
  5239. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5240. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5241. CHK_(ptr);
  5242. } else
  5243. goto handle_unusual;
  5244. continue;
  5245. // int32 index = 3;
  5246. case 3:
  5247. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5248. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5249. CHK_(ptr);
  5250. } else
  5251. goto handle_unusual;
  5252. continue;
  5253. // int32 egotype = 4;
  5254. case 4:
  5255. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5256. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5257. CHK_(ptr);
  5258. } else
  5259. goto handle_unusual;
  5260. continue;
  5261. default:
  5262. goto handle_unusual;
  5263. } // switch
  5264. handle_unusual:
  5265. if ((tag == 0) || ((tag & 7) == 4)) {
  5266. CHK_(ptr);
  5267. ctx->SetLastTag(tag);
  5268. goto message_done;
  5269. }
  5270. ptr = UnknownFieldParse(
  5271. tag,
  5272. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5273. ptr, ctx);
  5274. CHK_(ptr != nullptr);
  5275. } // while
  5276. message_done:
  5277. return ptr;
  5278. failure:
  5279. ptr = nullptr;
  5280. goto message_done;
  5281. #undef CHK_
  5282. }
  5283. uint8_t* CSRep::_InternalSerialize(
  5284. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5285. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  5286. uint32_t cached_has_bits = 0;
  5287. (void) cached_has_bits;
  5288. // .RemoNet.VideoDesc desc = 1;
  5289. if (this->_internal_desc() != 0) {
  5290. target = stream->EnsureSpace(target);
  5291. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5292. 1, this->_internal_desc(), target);
  5293. }
  5294. // int32 peer = 2;
  5295. if (this->_internal_peer() != 0) {
  5296. target = stream->EnsureSpace(target);
  5297. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5298. }
  5299. // int32 index = 3;
  5300. if (this->_internal_index() != 0) {
  5301. target = stream->EnsureSpace(target);
  5302. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5303. }
  5304. // int32 egotype = 4;
  5305. if (this->_internal_egotype() != 0) {
  5306. target = stream->EnsureSpace(target);
  5307. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  5308. }
  5309. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5310. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5311. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5312. }
  5313. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  5314. return target;
  5315. }
  5316. size_t CSRep::ByteSizeLong() const {
  5317. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  5318. size_t total_size = 0;
  5319. uint32_t cached_has_bits = 0;
  5320. // Prevent compiler warnings about cached_has_bits being unused
  5321. (void) cached_has_bits;
  5322. // .RemoNet.VideoDesc desc = 1;
  5323. if (this->_internal_desc() != 0) {
  5324. total_size += 1 +
  5325. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5326. }
  5327. // int32 peer = 2;
  5328. if (this->_internal_peer() != 0) {
  5329. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5330. }
  5331. // int32 index = 3;
  5332. if (this->_internal_index() != 0) {
  5333. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5334. }
  5335. // int32 egotype = 4;
  5336. if (this->_internal_egotype() != 0) {
  5337. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5338. }
  5339. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5340. }
  5341. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  5342. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5343. CSRep::MergeImpl
  5344. };
  5345. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  5346. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5347. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5348. static_cast<CSRep *>(to)->MergeFrom(
  5349. static_cast<const CSRep &>(from));
  5350. }
  5351. void CSRep::MergeFrom(const CSRep& from) {
  5352. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  5353. GOOGLE_DCHECK_NE(&from, this);
  5354. uint32_t cached_has_bits = 0;
  5355. (void) cached_has_bits;
  5356. if (from._internal_desc() != 0) {
  5357. _internal_set_desc(from._internal_desc());
  5358. }
  5359. if (from._internal_peer() != 0) {
  5360. _internal_set_peer(from._internal_peer());
  5361. }
  5362. if (from._internal_index() != 0) {
  5363. _internal_set_index(from._internal_index());
  5364. }
  5365. if (from._internal_egotype() != 0) {
  5366. _internal_set_egotype(from._internal_egotype());
  5367. }
  5368. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5369. }
  5370. void CSRep::CopyFrom(const CSRep& from) {
  5371. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  5372. if (&from == this) return;
  5373. Clear();
  5374. MergeFrom(from);
  5375. }
  5376. bool CSRep::IsInitialized() const {
  5377. return true;
  5378. }
  5379. void CSRep::InternalSwap(CSRep* other) {
  5380. using std::swap;
  5381. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5382. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5383. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  5384. + sizeof(CSRep::egotype_)
  5385. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  5386. reinterpret_cast<char*>(&desc_),
  5387. reinterpret_cast<char*>(&other->desc_));
  5388. }
  5389. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  5390. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5391. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5392. file_level_metadata_protocol_2eproto[19]);
  5393. }
  5394. // ===================================================================
  5395. class SCRep::_Internal {
  5396. public:
  5397. };
  5398. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5399. bool is_message_owned)
  5400. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5401. SharedCtor();
  5402. if (!is_message_owned) {
  5403. RegisterArenaDtor(arena);
  5404. }
  5405. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  5406. }
  5407. SCRep::SCRep(const SCRep& from)
  5408. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5409. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5410. ::memcpy(&desc_, &from.desc_,
  5411. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5412. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5413. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  5414. }
  5415. inline void SCRep::SharedCtor() {
  5416. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5417. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5418. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5419. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5420. }
  5421. SCRep::~SCRep() {
  5422. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  5423. if (GetArenaForAllocation() != nullptr) return;
  5424. SharedDtor();
  5425. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5426. }
  5427. inline void SCRep::SharedDtor() {
  5428. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5429. }
  5430. void SCRep::ArenaDtor(void* object) {
  5431. SCRep* _this = reinterpret_cast< SCRep* >(object);
  5432. (void)_this;
  5433. }
  5434. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5435. }
  5436. void SCRep::SetCachedSize(int size) const {
  5437. _cached_size_.Set(size);
  5438. }
  5439. void SCRep::Clear() {
  5440. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  5441. uint32_t cached_has_bits = 0;
  5442. // Prevent compiler warnings about cached_has_bits being unused
  5443. (void) cached_has_bits;
  5444. ::memset(&desc_, 0, static_cast<size_t>(
  5445. reinterpret_cast<char*>(&peer_) -
  5446. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5447. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5448. }
  5449. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5450. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5451. while (!ctx->Done(&ptr)) {
  5452. uint32_t tag;
  5453. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5454. switch (tag >> 3) {
  5455. // .RemoNet.VideoDesc desc = 1;
  5456. case 1:
  5457. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5458. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5459. CHK_(ptr);
  5460. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5461. } else
  5462. goto handle_unusual;
  5463. continue;
  5464. // int32 index = 2;
  5465. case 2:
  5466. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5467. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5468. CHK_(ptr);
  5469. } else
  5470. goto handle_unusual;
  5471. continue;
  5472. // int32 egotype = 3;
  5473. case 3:
  5474. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5475. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5476. CHK_(ptr);
  5477. } else
  5478. goto handle_unusual;
  5479. continue;
  5480. // int32 peer = 4;
  5481. case 4:
  5482. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5483. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5484. CHK_(ptr);
  5485. } else
  5486. goto handle_unusual;
  5487. continue;
  5488. default:
  5489. goto handle_unusual;
  5490. } // switch
  5491. handle_unusual:
  5492. if ((tag == 0) || ((tag & 7) == 4)) {
  5493. CHK_(ptr);
  5494. ctx->SetLastTag(tag);
  5495. goto message_done;
  5496. }
  5497. ptr = UnknownFieldParse(
  5498. tag,
  5499. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5500. ptr, ctx);
  5501. CHK_(ptr != nullptr);
  5502. } // while
  5503. message_done:
  5504. return ptr;
  5505. failure:
  5506. ptr = nullptr;
  5507. goto message_done;
  5508. #undef CHK_
  5509. }
  5510. uint8_t* SCRep::_InternalSerialize(
  5511. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5512. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  5513. uint32_t cached_has_bits = 0;
  5514. (void) cached_has_bits;
  5515. // .RemoNet.VideoDesc desc = 1;
  5516. if (this->_internal_desc() != 0) {
  5517. target = stream->EnsureSpace(target);
  5518. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5519. 1, this->_internal_desc(), target);
  5520. }
  5521. // int32 index = 2;
  5522. if (this->_internal_index() != 0) {
  5523. target = stream->EnsureSpace(target);
  5524. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5525. }
  5526. // int32 egotype = 3;
  5527. if (this->_internal_egotype() != 0) {
  5528. target = stream->EnsureSpace(target);
  5529. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5530. }
  5531. // int32 peer = 4;
  5532. if (this->_internal_peer() != 0) {
  5533. target = stream->EnsureSpace(target);
  5534. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  5535. }
  5536. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5537. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5538. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5539. }
  5540. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  5541. return target;
  5542. }
  5543. size_t SCRep::ByteSizeLong() const {
  5544. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  5545. size_t total_size = 0;
  5546. uint32_t cached_has_bits = 0;
  5547. // Prevent compiler warnings about cached_has_bits being unused
  5548. (void) cached_has_bits;
  5549. // .RemoNet.VideoDesc desc = 1;
  5550. if (this->_internal_desc() != 0) {
  5551. total_size += 1 +
  5552. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5553. }
  5554. // int32 index = 2;
  5555. if (this->_internal_index() != 0) {
  5556. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5557. }
  5558. // int32 egotype = 3;
  5559. if (this->_internal_egotype() != 0) {
  5560. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5561. }
  5562. // int32 peer = 4;
  5563. if (this->_internal_peer() != 0) {
  5564. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5565. }
  5566. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5567. }
  5568. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  5569. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5570. SCRep::MergeImpl
  5571. };
  5572. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  5573. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5574. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5575. static_cast<SCRep *>(to)->MergeFrom(
  5576. static_cast<const SCRep &>(from));
  5577. }
  5578. void SCRep::MergeFrom(const SCRep& from) {
  5579. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  5580. GOOGLE_DCHECK_NE(&from, this);
  5581. uint32_t cached_has_bits = 0;
  5582. (void) cached_has_bits;
  5583. if (from._internal_desc() != 0) {
  5584. _internal_set_desc(from._internal_desc());
  5585. }
  5586. if (from._internal_index() != 0) {
  5587. _internal_set_index(from._internal_index());
  5588. }
  5589. if (from._internal_egotype() != 0) {
  5590. _internal_set_egotype(from._internal_egotype());
  5591. }
  5592. if (from._internal_peer() != 0) {
  5593. _internal_set_peer(from._internal_peer());
  5594. }
  5595. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5596. }
  5597. void SCRep::CopyFrom(const SCRep& from) {
  5598. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  5599. if (&from == this) return;
  5600. Clear();
  5601. MergeFrom(from);
  5602. }
  5603. bool SCRep::IsInitialized() const {
  5604. return true;
  5605. }
  5606. void SCRep::InternalSwap(SCRep* other) {
  5607. using std::swap;
  5608. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5609. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5610. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  5611. + sizeof(SCRep::peer_)
  5612. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  5613. reinterpret_cast<char*>(&desc_),
  5614. reinterpret_cast<char*>(&other->desc_));
  5615. }
  5616. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  5617. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5618. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5619. file_level_metadata_protocol_2eproto[20]);
  5620. }
  5621. // ===================================================================
  5622. class Offer::_Internal {
  5623. public:
  5624. };
  5625. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5626. bool is_message_owned)
  5627. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5628. SharedCtor();
  5629. if (!is_message_owned) {
  5630. RegisterArenaDtor(arena);
  5631. }
  5632. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  5633. }
  5634. Offer::Offer(const Offer& from)
  5635. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5636. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5637. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5638. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5639. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5640. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5641. if (!from._internal_type().empty()) {
  5642. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5643. GetArenaForAllocation());
  5644. }
  5645. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5646. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5647. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5648. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5649. if (!from._internal_sdp().empty()) {
  5650. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5651. GetArenaForAllocation());
  5652. }
  5653. ::memcpy(&index_, &from.index_,
  5654. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5655. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5656. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  5657. }
  5658. inline void Offer::SharedCtor() {
  5659. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5660. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5661. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5662. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5663. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5664. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5665. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5666. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5667. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5668. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5669. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5670. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5671. }
  5672. Offer::~Offer() {
  5673. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  5674. if (GetArenaForAllocation() != nullptr) return;
  5675. SharedDtor();
  5676. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5677. }
  5678. inline void Offer::SharedDtor() {
  5679. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5680. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5681. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5682. }
  5683. void Offer::ArenaDtor(void* object) {
  5684. Offer* _this = reinterpret_cast< Offer* >(object);
  5685. (void)_this;
  5686. }
  5687. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5688. }
  5689. void Offer::SetCachedSize(int size) const {
  5690. _cached_size_.Set(size);
  5691. }
  5692. void Offer::Clear() {
  5693. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  5694. uint32_t cached_has_bits = 0;
  5695. // Prevent compiler warnings about cached_has_bits being unused
  5696. (void) cached_has_bits;
  5697. type_.ClearToEmpty();
  5698. sdp_.ClearToEmpty();
  5699. ::memset(&index_, 0, static_cast<size_t>(
  5700. reinterpret_cast<char*>(&peer_) -
  5701. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5702. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5703. }
  5704. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5705. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5706. while (!ctx->Done(&ptr)) {
  5707. uint32_t tag;
  5708. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5709. switch (tag >> 3) {
  5710. // int32 index = 1;
  5711. case 1:
  5712. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5713. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5714. CHK_(ptr);
  5715. } else
  5716. goto handle_unusual;
  5717. continue;
  5718. // int32 peer = 2;
  5719. case 2:
  5720. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5721. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5722. CHK_(ptr);
  5723. } else
  5724. goto handle_unusual;
  5725. continue;
  5726. // string type = 3;
  5727. case 3:
  5728. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5729. auto str = _internal_mutable_type();
  5730. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5731. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  5732. CHK_(ptr);
  5733. } else
  5734. goto handle_unusual;
  5735. continue;
  5736. // string sdp = 4;
  5737. case 4:
  5738. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  5739. auto str = _internal_mutable_sdp();
  5740. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5741. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  5742. CHK_(ptr);
  5743. } else
  5744. goto handle_unusual;
  5745. continue;
  5746. default:
  5747. goto handle_unusual;
  5748. } // switch
  5749. handle_unusual:
  5750. if ((tag == 0) || ((tag & 7) == 4)) {
  5751. CHK_(ptr);
  5752. ctx->SetLastTag(tag);
  5753. goto message_done;
  5754. }
  5755. ptr = UnknownFieldParse(
  5756. tag,
  5757. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5758. ptr, ctx);
  5759. CHK_(ptr != nullptr);
  5760. } // while
  5761. message_done:
  5762. return ptr;
  5763. failure:
  5764. ptr = nullptr;
  5765. goto message_done;
  5766. #undef CHK_
  5767. }
  5768. uint8_t* Offer::_InternalSerialize(
  5769. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5770. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  5771. uint32_t cached_has_bits = 0;
  5772. (void) cached_has_bits;
  5773. // int32 index = 1;
  5774. if (this->_internal_index() != 0) {
  5775. target = stream->EnsureSpace(target);
  5776. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  5777. }
  5778. // int32 peer = 2;
  5779. if (this->_internal_peer() != 0) {
  5780. target = stream->EnsureSpace(target);
  5781. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5782. }
  5783. // string type = 3;
  5784. if (!this->_internal_type().empty()) {
  5785. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5786. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  5787. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5788. "RemoNet.Offer.type");
  5789. target = stream->WriteStringMaybeAliased(
  5790. 3, this->_internal_type(), target);
  5791. }
  5792. // string sdp = 4;
  5793. if (!this->_internal_sdp().empty()) {
  5794. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5795. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  5796. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5797. "RemoNet.Offer.sdp");
  5798. target = stream->WriteStringMaybeAliased(
  5799. 4, this->_internal_sdp(), target);
  5800. }
  5801. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5802. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5803. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5804. }
  5805. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  5806. return target;
  5807. }
  5808. size_t Offer::ByteSizeLong() const {
  5809. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  5810. size_t total_size = 0;
  5811. uint32_t cached_has_bits = 0;
  5812. // Prevent compiler warnings about cached_has_bits being unused
  5813. (void) cached_has_bits;
  5814. // string type = 3;
  5815. if (!this->_internal_type().empty()) {
  5816. total_size += 1 +
  5817. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5818. this->_internal_type());
  5819. }
  5820. // string sdp = 4;
  5821. if (!this->_internal_sdp().empty()) {
  5822. total_size += 1 +
  5823. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5824. this->_internal_sdp());
  5825. }
  5826. // int32 index = 1;
  5827. if (this->_internal_index() != 0) {
  5828. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5829. }
  5830. // int32 peer = 2;
  5831. if (this->_internal_peer() != 0) {
  5832. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5833. }
  5834. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5835. }
  5836. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  5837. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5838. Offer::MergeImpl
  5839. };
  5840. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  5841. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5842. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5843. static_cast<Offer *>(to)->MergeFrom(
  5844. static_cast<const Offer &>(from));
  5845. }
  5846. void Offer::MergeFrom(const Offer& from) {
  5847. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  5848. GOOGLE_DCHECK_NE(&from, this);
  5849. uint32_t cached_has_bits = 0;
  5850. (void) cached_has_bits;
  5851. if (!from._internal_type().empty()) {
  5852. _internal_set_type(from._internal_type());
  5853. }
  5854. if (!from._internal_sdp().empty()) {
  5855. _internal_set_sdp(from._internal_sdp());
  5856. }
  5857. if (from._internal_index() != 0) {
  5858. _internal_set_index(from._internal_index());
  5859. }
  5860. if (from._internal_peer() != 0) {
  5861. _internal_set_peer(from._internal_peer());
  5862. }
  5863. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5864. }
  5865. void Offer::CopyFrom(const Offer& from) {
  5866. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  5867. if (&from == this) return;
  5868. Clear();
  5869. MergeFrom(from);
  5870. }
  5871. bool Offer::IsInitialized() const {
  5872. return true;
  5873. }
  5874. void Offer::InternalSwap(Offer* other) {
  5875. using std::swap;
  5876. auto* lhs_arena = GetArenaForAllocation();
  5877. auto* rhs_arena = other->GetArenaForAllocation();
  5878. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5879. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5880. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5881. &type_, lhs_arena,
  5882. &other->type_, rhs_arena
  5883. );
  5884. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5885. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5886. &sdp_, lhs_arena,
  5887. &other->sdp_, rhs_arena
  5888. );
  5889. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5890. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  5891. + sizeof(Offer::peer_)
  5892. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  5893. reinterpret_cast<char*>(&index_),
  5894. reinterpret_cast<char*>(&other->index_));
  5895. }
  5896. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  5897. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5898. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5899. file_level_metadata_protocol_2eproto[21]);
  5900. }
  5901. // ===================================================================
  5902. class Answer::_Internal {
  5903. public:
  5904. };
  5905. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5906. bool is_message_owned)
  5907. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5908. SharedCtor();
  5909. if (!is_message_owned) {
  5910. RegisterArenaDtor(arena);
  5911. }
  5912. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  5913. }
  5914. Answer::Answer(const Answer& from)
  5915. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5916. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5917. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5918. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5919. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5920. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5921. if (!from._internal_type().empty()) {
  5922. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5923. GetArenaForAllocation());
  5924. }
  5925. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5926. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5927. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5928. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5929. if (!from._internal_sdp().empty()) {
  5930. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5931. GetArenaForAllocation());
  5932. }
  5933. ::memcpy(&index_, &from.index_,
  5934. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5935. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5936. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  5937. }
  5938. inline void Answer::SharedCtor() {
  5939. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5940. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5941. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5942. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5943. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5944. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5945. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5946. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5947. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5948. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5949. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5950. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5951. }
  5952. Answer::~Answer() {
  5953. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  5954. if (GetArenaForAllocation() != nullptr) return;
  5955. SharedDtor();
  5956. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5957. }
  5958. inline void Answer::SharedDtor() {
  5959. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5960. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5961. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5962. }
  5963. void Answer::ArenaDtor(void* object) {
  5964. Answer* _this = reinterpret_cast< Answer* >(object);
  5965. (void)_this;
  5966. }
  5967. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5968. }
  5969. void Answer::SetCachedSize(int size) const {
  5970. _cached_size_.Set(size);
  5971. }
  5972. void Answer::Clear() {
  5973. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  5974. uint32_t cached_has_bits = 0;
  5975. // Prevent compiler warnings about cached_has_bits being unused
  5976. (void) cached_has_bits;
  5977. type_.ClearToEmpty();
  5978. sdp_.ClearToEmpty();
  5979. ::memset(&index_, 0, static_cast<size_t>(
  5980. reinterpret_cast<char*>(&peer_) -
  5981. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5982. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5983. }
  5984. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5985. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5986. while (!ctx->Done(&ptr)) {
  5987. uint32_t tag;
  5988. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5989. switch (tag >> 3) {
  5990. // int32 index = 1;
  5991. case 1:
  5992. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5993. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5994. CHK_(ptr);
  5995. } else
  5996. goto handle_unusual;
  5997. continue;
  5998. // int32 peer = 2;
  5999. case 2:
  6000. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6001. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6002. CHK_(ptr);
  6003. } else
  6004. goto handle_unusual;
  6005. continue;
  6006. // string type = 3;
  6007. case 3:
  6008. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6009. auto str = _internal_mutable_type();
  6010. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6011. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  6012. CHK_(ptr);
  6013. } else
  6014. goto handle_unusual;
  6015. continue;
  6016. // string sdp = 4;
  6017. case 4:
  6018. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6019. auto str = _internal_mutable_sdp();
  6020. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6021. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  6022. CHK_(ptr);
  6023. } else
  6024. goto handle_unusual;
  6025. continue;
  6026. default:
  6027. goto handle_unusual;
  6028. } // switch
  6029. handle_unusual:
  6030. if ((tag == 0) || ((tag & 7) == 4)) {
  6031. CHK_(ptr);
  6032. ctx->SetLastTag(tag);
  6033. goto message_done;
  6034. }
  6035. ptr = UnknownFieldParse(
  6036. tag,
  6037. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6038. ptr, ctx);
  6039. CHK_(ptr != nullptr);
  6040. } // while
  6041. message_done:
  6042. return ptr;
  6043. failure:
  6044. ptr = nullptr;
  6045. goto message_done;
  6046. #undef CHK_
  6047. }
  6048. uint8_t* Answer::_InternalSerialize(
  6049. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6050. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  6051. uint32_t cached_has_bits = 0;
  6052. (void) cached_has_bits;
  6053. // int32 index = 1;
  6054. if (this->_internal_index() != 0) {
  6055. target = stream->EnsureSpace(target);
  6056. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6057. }
  6058. // int32 peer = 2;
  6059. if (this->_internal_peer() != 0) {
  6060. target = stream->EnsureSpace(target);
  6061. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6062. }
  6063. // string type = 3;
  6064. if (!this->_internal_type().empty()) {
  6065. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6066. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6067. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6068. "RemoNet.Answer.type");
  6069. target = stream->WriteStringMaybeAliased(
  6070. 3, this->_internal_type(), target);
  6071. }
  6072. // string sdp = 4;
  6073. if (!this->_internal_sdp().empty()) {
  6074. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6075. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6076. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6077. "RemoNet.Answer.sdp");
  6078. target = stream->WriteStringMaybeAliased(
  6079. 4, this->_internal_sdp(), target);
  6080. }
  6081. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6082. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6083. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6084. }
  6085. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  6086. return target;
  6087. }
  6088. size_t Answer::ByteSizeLong() const {
  6089. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  6090. size_t total_size = 0;
  6091. uint32_t cached_has_bits = 0;
  6092. // Prevent compiler warnings about cached_has_bits being unused
  6093. (void) cached_has_bits;
  6094. // string type = 3;
  6095. if (!this->_internal_type().empty()) {
  6096. total_size += 1 +
  6097. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6098. this->_internal_type());
  6099. }
  6100. // string sdp = 4;
  6101. if (!this->_internal_sdp().empty()) {
  6102. total_size += 1 +
  6103. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6104. this->_internal_sdp());
  6105. }
  6106. // int32 index = 1;
  6107. if (this->_internal_index() != 0) {
  6108. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6109. }
  6110. // int32 peer = 2;
  6111. if (this->_internal_peer() != 0) {
  6112. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6113. }
  6114. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6115. }
  6116. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  6117. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6118. Answer::MergeImpl
  6119. };
  6120. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  6121. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6122. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6123. static_cast<Answer *>(to)->MergeFrom(
  6124. static_cast<const Answer &>(from));
  6125. }
  6126. void Answer::MergeFrom(const Answer& from) {
  6127. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  6128. GOOGLE_DCHECK_NE(&from, this);
  6129. uint32_t cached_has_bits = 0;
  6130. (void) cached_has_bits;
  6131. if (!from._internal_type().empty()) {
  6132. _internal_set_type(from._internal_type());
  6133. }
  6134. if (!from._internal_sdp().empty()) {
  6135. _internal_set_sdp(from._internal_sdp());
  6136. }
  6137. if (from._internal_index() != 0) {
  6138. _internal_set_index(from._internal_index());
  6139. }
  6140. if (from._internal_peer() != 0) {
  6141. _internal_set_peer(from._internal_peer());
  6142. }
  6143. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6144. }
  6145. void Answer::CopyFrom(const Answer& from) {
  6146. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  6147. if (&from == this) return;
  6148. Clear();
  6149. MergeFrom(from);
  6150. }
  6151. bool Answer::IsInitialized() const {
  6152. return true;
  6153. }
  6154. void Answer::InternalSwap(Answer* other) {
  6155. using std::swap;
  6156. auto* lhs_arena = GetArenaForAllocation();
  6157. auto* rhs_arena = other->GetArenaForAllocation();
  6158. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6159. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6160. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6161. &type_, lhs_arena,
  6162. &other->type_, rhs_arena
  6163. );
  6164. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6165. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6166. &sdp_, lhs_arena,
  6167. &other->sdp_, rhs_arena
  6168. );
  6169. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6170. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  6171. + sizeof(Answer::peer_)
  6172. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  6173. reinterpret_cast<char*>(&index_),
  6174. reinterpret_cast<char*>(&other->index_));
  6175. }
  6176. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  6177. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6178. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6179. file_level_metadata_protocol_2eproto[22]);
  6180. }
  6181. // ===================================================================
  6182. class Candidate::_Internal {
  6183. public:
  6184. };
  6185. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6186. bool is_message_owned)
  6187. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6188. SharedCtor();
  6189. if (!is_message_owned) {
  6190. RegisterArenaDtor(arena);
  6191. }
  6192. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  6193. }
  6194. Candidate::Candidate(const Candidate& from)
  6195. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6196. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6197. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6198. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6199. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6200. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6201. if (!from._internal_type().empty()) {
  6202. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6203. GetArenaForAllocation());
  6204. }
  6205. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6206. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6207. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6209. if (!from._internal_candidate().empty()) {
  6210. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  6211. GetArenaForAllocation());
  6212. }
  6213. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6214. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6215. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6216. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6217. if (!from._internal_sdpmid().empty()) {
  6218. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  6219. GetArenaForAllocation());
  6220. }
  6221. ::memcpy(&index_, &from.index_,
  6222. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6223. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6224. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  6225. }
  6226. inline void Candidate::SharedCtor() {
  6227. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6228. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6229. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6230. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6231. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6232. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6233. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6234. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6235. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6236. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6237. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6238. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6239. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6240. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6241. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6242. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6243. }
  6244. Candidate::~Candidate() {
  6245. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  6246. if (GetArenaForAllocation() != nullptr) return;
  6247. SharedDtor();
  6248. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6249. }
  6250. inline void Candidate::SharedDtor() {
  6251. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6252. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6253. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6254. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6255. }
  6256. void Candidate::ArenaDtor(void* object) {
  6257. Candidate* _this = reinterpret_cast< Candidate* >(object);
  6258. (void)_this;
  6259. }
  6260. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6261. }
  6262. void Candidate::SetCachedSize(int size) const {
  6263. _cached_size_.Set(size);
  6264. }
  6265. void Candidate::Clear() {
  6266. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  6267. uint32_t cached_has_bits = 0;
  6268. // Prevent compiler warnings about cached_has_bits being unused
  6269. (void) cached_has_bits;
  6270. type_.ClearToEmpty();
  6271. candidate_.ClearToEmpty();
  6272. sdpmid_.ClearToEmpty();
  6273. ::memset(&index_, 0, static_cast<size_t>(
  6274. reinterpret_cast<char*>(&egotype_) -
  6275. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6276. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6277. }
  6278. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6279. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6280. while (!ctx->Done(&ptr)) {
  6281. uint32_t tag;
  6282. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6283. switch (tag >> 3) {
  6284. // int32 index = 1;
  6285. case 1:
  6286. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6287. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6288. CHK_(ptr);
  6289. } else
  6290. goto handle_unusual;
  6291. continue;
  6292. // int32 peer = 2;
  6293. case 2:
  6294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6295. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6296. CHK_(ptr);
  6297. } else
  6298. goto handle_unusual;
  6299. continue;
  6300. // string type = 3;
  6301. case 3:
  6302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6303. auto str = _internal_mutable_type();
  6304. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6305. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  6306. CHK_(ptr);
  6307. } else
  6308. goto handle_unusual;
  6309. continue;
  6310. // string candidate = 4;
  6311. case 4:
  6312. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6313. auto str = _internal_mutable_candidate();
  6314. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6315. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  6316. CHK_(ptr);
  6317. } else
  6318. goto handle_unusual;
  6319. continue;
  6320. // int32 sdpMLineIndex = 5;
  6321. case 5:
  6322. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6323. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6324. CHK_(ptr);
  6325. } else
  6326. goto handle_unusual;
  6327. continue;
  6328. // string sdpMid = 6;
  6329. case 6:
  6330. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  6331. auto str = _internal_mutable_sdpmid();
  6332. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6333. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  6334. CHK_(ptr);
  6335. } else
  6336. goto handle_unusual;
  6337. continue;
  6338. // int32 egotype = 7;
  6339. case 7:
  6340. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6341. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6342. CHK_(ptr);
  6343. } else
  6344. goto handle_unusual;
  6345. continue;
  6346. default:
  6347. goto handle_unusual;
  6348. } // switch
  6349. handle_unusual:
  6350. if ((tag == 0) || ((tag & 7) == 4)) {
  6351. CHK_(ptr);
  6352. ctx->SetLastTag(tag);
  6353. goto message_done;
  6354. }
  6355. ptr = UnknownFieldParse(
  6356. tag,
  6357. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6358. ptr, ctx);
  6359. CHK_(ptr != nullptr);
  6360. } // while
  6361. message_done:
  6362. return ptr;
  6363. failure:
  6364. ptr = nullptr;
  6365. goto message_done;
  6366. #undef CHK_
  6367. }
  6368. uint8_t* Candidate::_InternalSerialize(
  6369. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6370. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  6371. uint32_t cached_has_bits = 0;
  6372. (void) cached_has_bits;
  6373. // int32 index = 1;
  6374. if (this->_internal_index() != 0) {
  6375. target = stream->EnsureSpace(target);
  6376. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6377. }
  6378. // int32 peer = 2;
  6379. if (this->_internal_peer() != 0) {
  6380. target = stream->EnsureSpace(target);
  6381. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6382. }
  6383. // string type = 3;
  6384. if (!this->_internal_type().empty()) {
  6385. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6386. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6387. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6388. "RemoNet.Candidate.type");
  6389. target = stream->WriteStringMaybeAliased(
  6390. 3, this->_internal_type(), target);
  6391. }
  6392. // string candidate = 4;
  6393. if (!this->_internal_candidate().empty()) {
  6394. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6395. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  6396. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6397. "RemoNet.Candidate.candidate");
  6398. target = stream->WriteStringMaybeAliased(
  6399. 4, this->_internal_candidate(), target);
  6400. }
  6401. // int32 sdpMLineIndex = 5;
  6402. if (this->_internal_sdpmlineindex() != 0) {
  6403. target = stream->EnsureSpace(target);
  6404. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  6405. }
  6406. // string sdpMid = 6;
  6407. if (!this->_internal_sdpmid().empty()) {
  6408. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6409. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  6410. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6411. "RemoNet.Candidate.sdpMid");
  6412. target = stream->WriteStringMaybeAliased(
  6413. 6, this->_internal_sdpmid(), target);
  6414. }
  6415. // int32 egotype = 7;
  6416. if (this->_internal_egotype() != 0) {
  6417. target = stream->EnsureSpace(target);
  6418. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  6419. }
  6420. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6421. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6422. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6423. }
  6424. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  6425. return target;
  6426. }
  6427. size_t Candidate::ByteSizeLong() const {
  6428. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  6429. size_t total_size = 0;
  6430. uint32_t cached_has_bits = 0;
  6431. // Prevent compiler warnings about cached_has_bits being unused
  6432. (void) cached_has_bits;
  6433. // string type = 3;
  6434. if (!this->_internal_type().empty()) {
  6435. total_size += 1 +
  6436. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6437. this->_internal_type());
  6438. }
  6439. // string candidate = 4;
  6440. if (!this->_internal_candidate().empty()) {
  6441. total_size += 1 +
  6442. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6443. this->_internal_candidate());
  6444. }
  6445. // string sdpMid = 6;
  6446. if (!this->_internal_sdpmid().empty()) {
  6447. total_size += 1 +
  6448. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6449. this->_internal_sdpmid());
  6450. }
  6451. // int32 index = 1;
  6452. if (this->_internal_index() != 0) {
  6453. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6454. }
  6455. // int32 peer = 2;
  6456. if (this->_internal_peer() != 0) {
  6457. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6458. }
  6459. // int32 sdpMLineIndex = 5;
  6460. if (this->_internal_sdpmlineindex() != 0) {
  6461. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  6462. }
  6463. // int32 egotype = 7;
  6464. if (this->_internal_egotype() != 0) {
  6465. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6466. }
  6467. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6468. }
  6469. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  6470. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6471. Candidate::MergeImpl
  6472. };
  6473. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  6474. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6475. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6476. static_cast<Candidate *>(to)->MergeFrom(
  6477. static_cast<const Candidate &>(from));
  6478. }
  6479. void Candidate::MergeFrom(const Candidate& from) {
  6480. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  6481. GOOGLE_DCHECK_NE(&from, this);
  6482. uint32_t cached_has_bits = 0;
  6483. (void) cached_has_bits;
  6484. if (!from._internal_type().empty()) {
  6485. _internal_set_type(from._internal_type());
  6486. }
  6487. if (!from._internal_candidate().empty()) {
  6488. _internal_set_candidate(from._internal_candidate());
  6489. }
  6490. if (!from._internal_sdpmid().empty()) {
  6491. _internal_set_sdpmid(from._internal_sdpmid());
  6492. }
  6493. if (from._internal_index() != 0) {
  6494. _internal_set_index(from._internal_index());
  6495. }
  6496. if (from._internal_peer() != 0) {
  6497. _internal_set_peer(from._internal_peer());
  6498. }
  6499. if (from._internal_sdpmlineindex() != 0) {
  6500. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  6501. }
  6502. if (from._internal_egotype() != 0) {
  6503. _internal_set_egotype(from._internal_egotype());
  6504. }
  6505. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6506. }
  6507. void Candidate::CopyFrom(const Candidate& from) {
  6508. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  6509. if (&from == this) return;
  6510. Clear();
  6511. MergeFrom(from);
  6512. }
  6513. bool Candidate::IsInitialized() const {
  6514. return true;
  6515. }
  6516. void Candidate::InternalSwap(Candidate* other) {
  6517. using std::swap;
  6518. auto* lhs_arena = GetArenaForAllocation();
  6519. auto* rhs_arena = other->GetArenaForAllocation();
  6520. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6521. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6522. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6523. &type_, lhs_arena,
  6524. &other->type_, rhs_arena
  6525. );
  6526. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6527. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6528. &candidate_, lhs_arena,
  6529. &other->candidate_, rhs_arena
  6530. );
  6531. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6532. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6533. &sdpmid_, lhs_arena,
  6534. &other->sdpmid_, rhs_arena
  6535. );
  6536. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6537. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  6538. + sizeof(Candidate::egotype_)
  6539. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  6540. reinterpret_cast<char*>(&index_),
  6541. reinterpret_cast<char*>(&other->index_));
  6542. }
  6543. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  6544. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6545. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6546. file_level_metadata_protocol_2eproto[23]);
  6547. }
  6548. // ===================================================================
  6549. class Leave::_Internal {
  6550. public:
  6551. };
  6552. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6553. bool is_message_owned)
  6554. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6555. SharedCtor();
  6556. if (!is_message_owned) {
  6557. RegisterArenaDtor(arena);
  6558. }
  6559. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  6560. }
  6561. Leave::Leave(const Leave& from)
  6562. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6563. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6564. ::memcpy(&peer_, &from.peer_,
  6565. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6566. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6567. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  6568. }
  6569. inline void Leave::SharedCtor() {
  6570. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6571. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6572. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6573. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6574. }
  6575. Leave::~Leave() {
  6576. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  6577. if (GetArenaForAllocation() != nullptr) return;
  6578. SharedDtor();
  6579. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6580. }
  6581. inline void Leave::SharedDtor() {
  6582. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6583. }
  6584. void Leave::ArenaDtor(void* object) {
  6585. Leave* _this = reinterpret_cast< Leave* >(object);
  6586. (void)_this;
  6587. }
  6588. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6589. }
  6590. void Leave::SetCachedSize(int size) const {
  6591. _cached_size_.Set(size);
  6592. }
  6593. void Leave::Clear() {
  6594. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  6595. uint32_t cached_has_bits = 0;
  6596. // Prevent compiler warnings about cached_has_bits being unused
  6597. (void) cached_has_bits;
  6598. ::memset(&peer_, 0, static_cast<size_t>(
  6599. reinterpret_cast<char*>(&egotype_) -
  6600. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6601. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6602. }
  6603. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6604. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6605. while (!ctx->Done(&ptr)) {
  6606. uint32_t tag;
  6607. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6608. switch (tag >> 3) {
  6609. // int32 peer = 1;
  6610. case 1:
  6611. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6612. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6613. CHK_(ptr);
  6614. } else
  6615. goto handle_unusual;
  6616. continue;
  6617. // int32 egotype = 2;
  6618. case 2:
  6619. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6620. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6621. CHK_(ptr);
  6622. } else
  6623. goto handle_unusual;
  6624. continue;
  6625. default:
  6626. goto handle_unusual;
  6627. } // switch
  6628. handle_unusual:
  6629. if ((tag == 0) || ((tag & 7) == 4)) {
  6630. CHK_(ptr);
  6631. ctx->SetLastTag(tag);
  6632. goto message_done;
  6633. }
  6634. ptr = UnknownFieldParse(
  6635. tag,
  6636. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6637. ptr, ctx);
  6638. CHK_(ptr != nullptr);
  6639. } // while
  6640. message_done:
  6641. return ptr;
  6642. failure:
  6643. ptr = nullptr;
  6644. goto message_done;
  6645. #undef CHK_
  6646. }
  6647. uint8_t* Leave::_InternalSerialize(
  6648. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6649. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  6650. uint32_t cached_has_bits = 0;
  6651. (void) cached_has_bits;
  6652. // int32 peer = 1;
  6653. if (this->_internal_peer() != 0) {
  6654. target = stream->EnsureSpace(target);
  6655. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6656. }
  6657. // int32 egotype = 2;
  6658. if (this->_internal_egotype() != 0) {
  6659. target = stream->EnsureSpace(target);
  6660. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6661. }
  6662. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6663. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6664. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6665. }
  6666. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  6667. return target;
  6668. }
  6669. size_t Leave::ByteSizeLong() const {
  6670. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  6671. size_t total_size = 0;
  6672. uint32_t cached_has_bits = 0;
  6673. // Prevent compiler warnings about cached_has_bits being unused
  6674. (void) cached_has_bits;
  6675. // int32 peer = 1;
  6676. if (this->_internal_peer() != 0) {
  6677. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6678. }
  6679. // int32 egotype = 2;
  6680. if (this->_internal_egotype() != 0) {
  6681. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6682. }
  6683. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6684. }
  6685. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  6686. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6687. Leave::MergeImpl
  6688. };
  6689. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  6690. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6691. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6692. static_cast<Leave *>(to)->MergeFrom(
  6693. static_cast<const Leave &>(from));
  6694. }
  6695. void Leave::MergeFrom(const Leave& from) {
  6696. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  6697. GOOGLE_DCHECK_NE(&from, this);
  6698. uint32_t cached_has_bits = 0;
  6699. (void) cached_has_bits;
  6700. if (from._internal_peer() != 0) {
  6701. _internal_set_peer(from._internal_peer());
  6702. }
  6703. if (from._internal_egotype() != 0) {
  6704. _internal_set_egotype(from._internal_egotype());
  6705. }
  6706. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6707. }
  6708. void Leave::CopyFrom(const Leave& from) {
  6709. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  6710. if (&from == this) return;
  6711. Clear();
  6712. MergeFrom(from);
  6713. }
  6714. bool Leave::IsInitialized() const {
  6715. return true;
  6716. }
  6717. void Leave::InternalSwap(Leave* other) {
  6718. using std::swap;
  6719. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6720. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6721. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  6722. + sizeof(Leave::egotype_)
  6723. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  6724. reinterpret_cast<char*>(&peer_),
  6725. reinterpret_cast<char*>(&other->peer_));
  6726. }
  6727. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  6728. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6729. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6730. file_level_metadata_protocol_2eproto[24]);
  6731. }
  6732. // ===================================================================
  6733. class Close::_Internal {
  6734. public:
  6735. };
  6736. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6737. bool is_message_owned)
  6738. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6739. SharedCtor();
  6740. if (!is_message_owned) {
  6741. RegisterArenaDtor(arena);
  6742. }
  6743. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  6744. }
  6745. Close::Close(const Close& from)
  6746. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6747. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6748. ::memcpy(&peer_, &from.peer_,
  6749. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6750. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6751. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  6752. }
  6753. inline void Close::SharedCtor() {
  6754. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6755. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6756. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6757. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6758. }
  6759. Close::~Close() {
  6760. // @@protoc_insertion_point(destructor:RemoNet.Close)
  6761. if (GetArenaForAllocation() != nullptr) return;
  6762. SharedDtor();
  6763. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6764. }
  6765. inline void Close::SharedDtor() {
  6766. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6767. }
  6768. void Close::ArenaDtor(void* object) {
  6769. Close* _this = reinterpret_cast< Close* >(object);
  6770. (void)_this;
  6771. }
  6772. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6773. }
  6774. void Close::SetCachedSize(int size) const {
  6775. _cached_size_.Set(size);
  6776. }
  6777. void Close::Clear() {
  6778. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  6779. uint32_t cached_has_bits = 0;
  6780. // Prevent compiler warnings about cached_has_bits being unused
  6781. (void) cached_has_bits;
  6782. ::memset(&peer_, 0, static_cast<size_t>(
  6783. reinterpret_cast<char*>(&index_) -
  6784. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6785. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6786. }
  6787. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6788. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6789. while (!ctx->Done(&ptr)) {
  6790. uint32_t tag;
  6791. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6792. switch (tag >> 3) {
  6793. // int32 peer = 1;
  6794. case 1:
  6795. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6796. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6797. CHK_(ptr);
  6798. } else
  6799. goto handle_unusual;
  6800. continue;
  6801. // int32 egotype = 2;
  6802. case 2:
  6803. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6804. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6805. CHK_(ptr);
  6806. } else
  6807. goto handle_unusual;
  6808. continue;
  6809. // int32 index = 3;
  6810. case 3:
  6811. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6812. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6813. CHK_(ptr);
  6814. } else
  6815. goto handle_unusual;
  6816. continue;
  6817. default:
  6818. goto handle_unusual;
  6819. } // switch
  6820. handle_unusual:
  6821. if ((tag == 0) || ((tag & 7) == 4)) {
  6822. CHK_(ptr);
  6823. ctx->SetLastTag(tag);
  6824. goto message_done;
  6825. }
  6826. ptr = UnknownFieldParse(
  6827. tag,
  6828. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6829. ptr, ctx);
  6830. CHK_(ptr != nullptr);
  6831. } // while
  6832. message_done:
  6833. return ptr;
  6834. failure:
  6835. ptr = nullptr;
  6836. goto message_done;
  6837. #undef CHK_
  6838. }
  6839. uint8_t* Close::_InternalSerialize(
  6840. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6841. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  6842. uint32_t cached_has_bits = 0;
  6843. (void) cached_has_bits;
  6844. // int32 peer = 1;
  6845. if (this->_internal_peer() != 0) {
  6846. target = stream->EnsureSpace(target);
  6847. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6848. }
  6849. // int32 egotype = 2;
  6850. if (this->_internal_egotype() != 0) {
  6851. target = stream->EnsureSpace(target);
  6852. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6853. }
  6854. // int32 index = 3;
  6855. if (this->_internal_index() != 0) {
  6856. target = stream->EnsureSpace(target);
  6857. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  6858. }
  6859. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6860. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6861. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6862. }
  6863. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  6864. return target;
  6865. }
  6866. size_t Close::ByteSizeLong() const {
  6867. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  6868. size_t total_size = 0;
  6869. uint32_t cached_has_bits = 0;
  6870. // Prevent compiler warnings about cached_has_bits being unused
  6871. (void) cached_has_bits;
  6872. // int32 peer = 1;
  6873. if (this->_internal_peer() != 0) {
  6874. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6875. }
  6876. // int32 egotype = 2;
  6877. if (this->_internal_egotype() != 0) {
  6878. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6879. }
  6880. // int32 index = 3;
  6881. if (this->_internal_index() != 0) {
  6882. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6883. }
  6884. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6885. }
  6886. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  6887. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6888. Close::MergeImpl
  6889. };
  6890. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  6891. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6892. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6893. static_cast<Close *>(to)->MergeFrom(
  6894. static_cast<const Close &>(from));
  6895. }
  6896. void Close::MergeFrom(const Close& from) {
  6897. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  6898. GOOGLE_DCHECK_NE(&from, this);
  6899. uint32_t cached_has_bits = 0;
  6900. (void) cached_has_bits;
  6901. if (from._internal_peer() != 0) {
  6902. _internal_set_peer(from._internal_peer());
  6903. }
  6904. if (from._internal_egotype() != 0) {
  6905. _internal_set_egotype(from._internal_egotype());
  6906. }
  6907. if (from._internal_index() != 0) {
  6908. _internal_set_index(from._internal_index());
  6909. }
  6910. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6911. }
  6912. void Close::CopyFrom(const Close& from) {
  6913. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  6914. if (&from == this) return;
  6915. Clear();
  6916. MergeFrom(from);
  6917. }
  6918. bool Close::IsInitialized() const {
  6919. return true;
  6920. }
  6921. void Close::InternalSwap(Close* other) {
  6922. using std::swap;
  6923. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6924. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6925. PROTOBUF_FIELD_OFFSET(Close, index_)
  6926. + sizeof(Close::index_)
  6927. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  6928. reinterpret_cast<char*>(&peer_),
  6929. reinterpret_cast<char*>(&other->peer_));
  6930. }
  6931. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  6932. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6933. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6934. file_level_metadata_protocol_2eproto[25]);
  6935. }
  6936. // ===================================================================
  6937. class TestTextReq::_Internal {
  6938. public:
  6939. };
  6940. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6941. bool is_message_owned)
  6942. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6943. SharedCtor();
  6944. if (!is_message_owned) {
  6945. RegisterArenaDtor(arena);
  6946. }
  6947. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  6948. }
  6949. TestTextReq::TestTextReq(const TestTextReq& from)
  6950. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6951. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6952. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6953. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6954. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6955. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6956. if (!from._internal_text().empty()) {
  6957. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  6958. GetArenaForAllocation());
  6959. }
  6960. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  6961. }
  6962. inline void TestTextReq::SharedCtor() {
  6963. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6964. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6965. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6966. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6967. }
  6968. TestTextReq::~TestTextReq() {
  6969. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  6970. if (GetArenaForAllocation() != nullptr) return;
  6971. SharedDtor();
  6972. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6973. }
  6974. inline void TestTextReq::SharedDtor() {
  6975. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6976. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6977. }
  6978. void TestTextReq::ArenaDtor(void* object) {
  6979. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  6980. (void)_this;
  6981. }
  6982. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6983. }
  6984. void TestTextReq::SetCachedSize(int size) const {
  6985. _cached_size_.Set(size);
  6986. }
  6987. void TestTextReq::Clear() {
  6988. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  6989. uint32_t cached_has_bits = 0;
  6990. // Prevent compiler warnings about cached_has_bits being unused
  6991. (void) cached_has_bits;
  6992. text_.ClearToEmpty();
  6993. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6994. }
  6995. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6996. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6997. while (!ctx->Done(&ptr)) {
  6998. uint32_t tag;
  6999. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7000. switch (tag >> 3) {
  7001. // string text = 1;
  7002. case 1:
  7003. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7004. auto str = _internal_mutable_text();
  7005. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7006. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  7007. CHK_(ptr);
  7008. } else
  7009. goto handle_unusual;
  7010. continue;
  7011. default:
  7012. goto handle_unusual;
  7013. } // switch
  7014. handle_unusual:
  7015. if ((tag == 0) || ((tag & 7) == 4)) {
  7016. CHK_(ptr);
  7017. ctx->SetLastTag(tag);
  7018. goto message_done;
  7019. }
  7020. ptr = UnknownFieldParse(
  7021. tag,
  7022. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7023. ptr, ctx);
  7024. CHK_(ptr != nullptr);
  7025. } // while
  7026. message_done:
  7027. return ptr;
  7028. failure:
  7029. ptr = nullptr;
  7030. goto message_done;
  7031. #undef CHK_
  7032. }
  7033. uint8_t* TestTextReq::_InternalSerialize(
  7034. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7035. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  7036. uint32_t cached_has_bits = 0;
  7037. (void) cached_has_bits;
  7038. // string text = 1;
  7039. if (!this->_internal_text().empty()) {
  7040. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7041. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  7042. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7043. "RemoNet.TestTextReq.text");
  7044. target = stream->WriteStringMaybeAliased(
  7045. 1, this->_internal_text(), target);
  7046. }
  7047. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7048. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7049. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7050. }
  7051. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  7052. return target;
  7053. }
  7054. size_t TestTextReq::ByteSizeLong() const {
  7055. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  7056. size_t total_size = 0;
  7057. uint32_t cached_has_bits = 0;
  7058. // Prevent compiler warnings about cached_has_bits being unused
  7059. (void) cached_has_bits;
  7060. // string text = 1;
  7061. if (!this->_internal_text().empty()) {
  7062. total_size += 1 +
  7063. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7064. this->_internal_text());
  7065. }
  7066. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7067. }
  7068. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  7069. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7070. TestTextReq::MergeImpl
  7071. };
  7072. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  7073. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7074. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7075. static_cast<TestTextReq *>(to)->MergeFrom(
  7076. static_cast<const TestTextReq &>(from));
  7077. }
  7078. void TestTextReq::MergeFrom(const TestTextReq& from) {
  7079. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  7080. GOOGLE_DCHECK_NE(&from, this);
  7081. uint32_t cached_has_bits = 0;
  7082. (void) cached_has_bits;
  7083. if (!from._internal_text().empty()) {
  7084. _internal_set_text(from._internal_text());
  7085. }
  7086. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7087. }
  7088. void TestTextReq::CopyFrom(const TestTextReq& from) {
  7089. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  7090. if (&from == this) return;
  7091. Clear();
  7092. MergeFrom(from);
  7093. }
  7094. bool TestTextReq::IsInitialized() const {
  7095. return true;
  7096. }
  7097. void TestTextReq::InternalSwap(TestTextReq* other) {
  7098. using std::swap;
  7099. auto* lhs_arena = GetArenaForAllocation();
  7100. auto* rhs_arena = other->GetArenaForAllocation();
  7101. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7102. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7103. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7104. &text_, lhs_arena,
  7105. &other->text_, rhs_arena
  7106. );
  7107. }
  7108. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  7109. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7110. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7111. file_level_metadata_protocol_2eproto[26]);
  7112. }
  7113. // ===================================================================
  7114. class SyncTime::_Internal {
  7115. public:
  7116. };
  7117. SyncTime::SyncTime(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7118. bool is_message_owned)
  7119. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7120. SharedCtor();
  7121. if (!is_message_owned) {
  7122. RegisterArenaDtor(arena);
  7123. }
  7124. // @@protoc_insertion_point(arena_constructor:RemoNet.SyncTime)
  7125. }
  7126. SyncTime::SyncTime(const SyncTime& from)
  7127. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7128. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7129. ::memcpy(&tm_sec_, &from.tm_sec_,
  7130. static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7131. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7132. // @@protoc_insertion_point(copy_constructor:RemoNet.SyncTime)
  7133. }
  7134. inline void SyncTime::SharedCtor() {
  7135. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7136. reinterpret_cast<char*>(&tm_sec_) - reinterpret_cast<char*>(this)),
  7137. 0, static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7138. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7139. }
  7140. SyncTime::~SyncTime() {
  7141. // @@protoc_insertion_point(destructor:RemoNet.SyncTime)
  7142. if (GetArenaForAllocation() != nullptr) return;
  7143. SharedDtor();
  7144. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7145. }
  7146. inline void SyncTime::SharedDtor() {
  7147. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7148. }
  7149. void SyncTime::ArenaDtor(void* object) {
  7150. SyncTime* _this = reinterpret_cast< SyncTime* >(object);
  7151. (void)_this;
  7152. }
  7153. void SyncTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7154. }
  7155. void SyncTime::SetCachedSize(int size) const {
  7156. _cached_size_.Set(size);
  7157. }
  7158. void SyncTime::Clear() {
  7159. // @@protoc_insertion_point(message_clear_start:RemoNet.SyncTime)
  7160. uint32_t cached_has_bits = 0;
  7161. // Prevent compiler warnings about cached_has_bits being unused
  7162. (void) cached_has_bits;
  7163. ::memset(&tm_sec_, 0, static_cast<size_t>(
  7164. reinterpret_cast<char*>(&update_time_) -
  7165. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7166. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7167. }
  7168. const char* SyncTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7169. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7170. while (!ctx->Done(&ptr)) {
  7171. uint32_t tag;
  7172. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7173. switch (tag >> 3) {
  7174. // int32 tm_sec = 1;
  7175. case 1:
  7176. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7177. tm_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7178. CHK_(ptr);
  7179. } else
  7180. goto handle_unusual;
  7181. continue;
  7182. // int32 tm_min = 2;
  7183. case 2:
  7184. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7185. tm_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7186. CHK_(ptr);
  7187. } else
  7188. goto handle_unusual;
  7189. continue;
  7190. // int32 tm_hour = 3;
  7191. case 3:
  7192. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7193. tm_hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7194. CHK_(ptr);
  7195. } else
  7196. goto handle_unusual;
  7197. continue;
  7198. // int32 tm_mday = 4;
  7199. case 4:
  7200. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7201. tm_mday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7202. CHK_(ptr);
  7203. } else
  7204. goto handle_unusual;
  7205. continue;
  7206. // int32 tm_mon = 5;
  7207. case 5:
  7208. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7209. tm_mon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7210. CHK_(ptr);
  7211. } else
  7212. goto handle_unusual;
  7213. continue;
  7214. // int32 tm_year = 6;
  7215. case 6:
  7216. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7217. tm_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7218. CHK_(ptr);
  7219. } else
  7220. goto handle_unusual;
  7221. continue;
  7222. // int32 tm_wday = 7;
  7223. case 7:
  7224. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7225. tm_wday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7226. CHK_(ptr);
  7227. } else
  7228. goto handle_unusual;
  7229. continue;
  7230. // int32 tm_yday = 8;
  7231. case 8:
  7232. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7233. tm_yday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7234. CHK_(ptr);
  7235. } else
  7236. goto handle_unusual;
  7237. continue;
  7238. // int32 tm_isdst = 9;
  7239. case 9:
  7240. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7241. tm_isdst_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7242. CHK_(ptr);
  7243. } else
  7244. goto handle_unusual;
  7245. continue;
  7246. // bool update_time = 10;
  7247. case 10:
  7248. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7249. update_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7250. CHK_(ptr);
  7251. } else
  7252. goto handle_unusual;
  7253. continue;
  7254. default:
  7255. goto handle_unusual;
  7256. } // switch
  7257. handle_unusual:
  7258. if ((tag == 0) || ((tag & 7) == 4)) {
  7259. CHK_(ptr);
  7260. ctx->SetLastTag(tag);
  7261. goto message_done;
  7262. }
  7263. ptr = UnknownFieldParse(
  7264. tag,
  7265. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7266. ptr, ctx);
  7267. CHK_(ptr != nullptr);
  7268. } // while
  7269. message_done:
  7270. return ptr;
  7271. failure:
  7272. ptr = nullptr;
  7273. goto message_done;
  7274. #undef CHK_
  7275. }
  7276. uint8_t* SyncTime::_InternalSerialize(
  7277. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7278. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SyncTime)
  7279. uint32_t cached_has_bits = 0;
  7280. (void) cached_has_bits;
  7281. // int32 tm_sec = 1;
  7282. if (this->_internal_tm_sec() != 0) {
  7283. target = stream->EnsureSpace(target);
  7284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_tm_sec(), target);
  7285. }
  7286. // int32 tm_min = 2;
  7287. if (this->_internal_tm_min() != 0) {
  7288. target = stream->EnsureSpace(target);
  7289. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_tm_min(), target);
  7290. }
  7291. // int32 tm_hour = 3;
  7292. if (this->_internal_tm_hour() != 0) {
  7293. target = stream->EnsureSpace(target);
  7294. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_tm_hour(), target);
  7295. }
  7296. // int32 tm_mday = 4;
  7297. if (this->_internal_tm_mday() != 0) {
  7298. target = stream->EnsureSpace(target);
  7299. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_tm_mday(), target);
  7300. }
  7301. // int32 tm_mon = 5;
  7302. if (this->_internal_tm_mon() != 0) {
  7303. target = stream->EnsureSpace(target);
  7304. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_tm_mon(), target);
  7305. }
  7306. // int32 tm_year = 6;
  7307. if (this->_internal_tm_year() != 0) {
  7308. target = stream->EnsureSpace(target);
  7309. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tm_year(), target);
  7310. }
  7311. // int32 tm_wday = 7;
  7312. if (this->_internal_tm_wday() != 0) {
  7313. target = stream->EnsureSpace(target);
  7314. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_tm_wday(), target);
  7315. }
  7316. // int32 tm_yday = 8;
  7317. if (this->_internal_tm_yday() != 0) {
  7318. target = stream->EnsureSpace(target);
  7319. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_tm_yday(), target);
  7320. }
  7321. // int32 tm_isdst = 9;
  7322. if (this->_internal_tm_isdst() != 0) {
  7323. target = stream->EnsureSpace(target);
  7324. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tm_isdst(), target);
  7325. }
  7326. // bool update_time = 10;
  7327. if (this->_internal_update_time() != 0) {
  7328. target = stream->EnsureSpace(target);
  7329. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_update_time(), target);
  7330. }
  7331. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7332. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7333. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7334. }
  7335. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SyncTime)
  7336. return target;
  7337. }
  7338. size_t SyncTime::ByteSizeLong() const {
  7339. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SyncTime)
  7340. size_t total_size = 0;
  7341. uint32_t cached_has_bits = 0;
  7342. // Prevent compiler warnings about cached_has_bits being unused
  7343. (void) cached_has_bits;
  7344. // int32 tm_sec = 1;
  7345. if (this->_internal_tm_sec() != 0) {
  7346. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_sec());
  7347. }
  7348. // int32 tm_min = 2;
  7349. if (this->_internal_tm_min() != 0) {
  7350. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_min());
  7351. }
  7352. // int32 tm_hour = 3;
  7353. if (this->_internal_tm_hour() != 0) {
  7354. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_hour());
  7355. }
  7356. // int32 tm_mday = 4;
  7357. if (this->_internal_tm_mday() != 0) {
  7358. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mday());
  7359. }
  7360. // int32 tm_mon = 5;
  7361. if (this->_internal_tm_mon() != 0) {
  7362. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mon());
  7363. }
  7364. // int32 tm_year = 6;
  7365. if (this->_internal_tm_year() != 0) {
  7366. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_year());
  7367. }
  7368. // int32 tm_wday = 7;
  7369. if (this->_internal_tm_wday() != 0) {
  7370. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_wday());
  7371. }
  7372. // int32 tm_yday = 8;
  7373. if (this->_internal_tm_yday() != 0) {
  7374. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_yday());
  7375. }
  7376. // int32 tm_isdst = 9;
  7377. if (this->_internal_tm_isdst() != 0) {
  7378. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_isdst());
  7379. }
  7380. // bool update_time = 10;
  7381. if (this->_internal_update_time() != 0) {
  7382. total_size += 1 + 1;
  7383. }
  7384. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7385. }
  7386. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncTime::_class_data_ = {
  7387. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7388. SyncTime::MergeImpl
  7389. };
  7390. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncTime::GetClassData() const { return &_class_data_; }
  7391. void SyncTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7392. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7393. static_cast<SyncTime *>(to)->MergeFrom(
  7394. static_cast<const SyncTime &>(from));
  7395. }
  7396. void SyncTime::MergeFrom(const SyncTime& from) {
  7397. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SyncTime)
  7398. GOOGLE_DCHECK_NE(&from, this);
  7399. uint32_t cached_has_bits = 0;
  7400. (void) cached_has_bits;
  7401. if (from._internal_tm_sec() != 0) {
  7402. _internal_set_tm_sec(from._internal_tm_sec());
  7403. }
  7404. if (from._internal_tm_min() != 0) {
  7405. _internal_set_tm_min(from._internal_tm_min());
  7406. }
  7407. if (from._internal_tm_hour() != 0) {
  7408. _internal_set_tm_hour(from._internal_tm_hour());
  7409. }
  7410. if (from._internal_tm_mday() != 0) {
  7411. _internal_set_tm_mday(from._internal_tm_mday());
  7412. }
  7413. if (from._internal_tm_mon() != 0) {
  7414. _internal_set_tm_mon(from._internal_tm_mon());
  7415. }
  7416. if (from._internal_tm_year() != 0) {
  7417. _internal_set_tm_year(from._internal_tm_year());
  7418. }
  7419. if (from._internal_tm_wday() != 0) {
  7420. _internal_set_tm_wday(from._internal_tm_wday());
  7421. }
  7422. if (from._internal_tm_yday() != 0) {
  7423. _internal_set_tm_yday(from._internal_tm_yday());
  7424. }
  7425. if (from._internal_tm_isdst() != 0) {
  7426. _internal_set_tm_isdst(from._internal_tm_isdst());
  7427. }
  7428. if (from._internal_update_time() != 0) {
  7429. _internal_set_update_time(from._internal_update_time());
  7430. }
  7431. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7432. }
  7433. void SyncTime::CopyFrom(const SyncTime& from) {
  7434. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SyncTime)
  7435. if (&from == this) return;
  7436. Clear();
  7437. MergeFrom(from);
  7438. }
  7439. bool SyncTime::IsInitialized() const {
  7440. return true;
  7441. }
  7442. void SyncTime::InternalSwap(SyncTime* other) {
  7443. using std::swap;
  7444. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7445. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7446. PROTOBUF_FIELD_OFFSET(SyncTime, update_time_)
  7447. + sizeof(SyncTime::update_time_)
  7448. - PROTOBUF_FIELD_OFFSET(SyncTime, tm_sec_)>(
  7449. reinterpret_cast<char*>(&tm_sec_),
  7450. reinterpret_cast<char*>(&other->tm_sec_));
  7451. }
  7452. ::PROTOBUF_NAMESPACE_ID::Metadata SyncTime::GetMetadata() const {
  7453. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7454. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7455. file_level_metadata_protocol_2eproto[27]);
  7456. }
  7457. // ===================================================================
  7458. class CCAskDataChannel::_Internal {
  7459. public:
  7460. };
  7461. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7462. bool is_message_owned)
  7463. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7464. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  7465. }
  7466. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  7467. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7468. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7469. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  7470. }
  7471. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  7472. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7473. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7474. };
  7475. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  7476. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  7477. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7478. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7479. file_level_metadata_protocol_2eproto[28]);
  7480. }
  7481. // ===================================================================
  7482. class CCPing::_Internal {
  7483. public:
  7484. };
  7485. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7486. bool is_message_owned)
  7487. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7488. SharedCtor();
  7489. if (!is_message_owned) {
  7490. RegisterArenaDtor(arena);
  7491. }
  7492. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  7493. }
  7494. CCPing::CCPing(const CCPing& from)
  7495. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7496. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7497. ::memcpy(&tick_, &from.tick_,
  7498. static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7499. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7500. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  7501. }
  7502. inline void CCPing::SharedCtor() {
  7503. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7504. reinterpret_cast<char*>(&tick_) - reinterpret_cast<char*>(this)),
  7505. 0, static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7506. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7507. }
  7508. CCPing::~CCPing() {
  7509. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  7510. if (GetArenaForAllocation() != nullptr) return;
  7511. SharedDtor();
  7512. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7513. }
  7514. inline void CCPing::SharedDtor() {
  7515. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7516. }
  7517. void CCPing::ArenaDtor(void* object) {
  7518. CCPing* _this = reinterpret_cast< CCPing* >(object);
  7519. (void)_this;
  7520. }
  7521. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7522. }
  7523. void CCPing::SetCachedSize(int size) const {
  7524. _cached_size_.Set(size);
  7525. }
  7526. void CCPing::Clear() {
  7527. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  7528. uint32_t cached_has_bits = 0;
  7529. // Prevent compiler warnings about cached_has_bits being unused
  7530. (void) cached_has_bits;
  7531. ::memset(&tick_, 0, static_cast<size_t>(
  7532. reinterpret_cast<char*>(&temp_) -
  7533. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7534. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7535. }
  7536. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7537. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7538. while (!ctx->Done(&ptr)) {
  7539. uint32_t tag;
  7540. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7541. switch (tag >> 3) {
  7542. // int64 tick = 1;
  7543. case 1:
  7544. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7545. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7546. CHK_(ptr);
  7547. } else
  7548. goto handle_unusual;
  7549. continue;
  7550. // double temp = 2;
  7551. case 2:
  7552. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
  7553. temp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7554. ptr += sizeof(double);
  7555. } else
  7556. goto handle_unusual;
  7557. continue;
  7558. default:
  7559. goto handle_unusual;
  7560. } // switch
  7561. handle_unusual:
  7562. if ((tag == 0) || ((tag & 7) == 4)) {
  7563. CHK_(ptr);
  7564. ctx->SetLastTag(tag);
  7565. goto message_done;
  7566. }
  7567. ptr = UnknownFieldParse(
  7568. tag,
  7569. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7570. ptr, ctx);
  7571. CHK_(ptr != nullptr);
  7572. } // while
  7573. message_done:
  7574. return ptr;
  7575. failure:
  7576. ptr = nullptr;
  7577. goto message_done;
  7578. #undef CHK_
  7579. }
  7580. uint8_t* CCPing::_InternalSerialize(
  7581. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7582. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  7583. uint32_t cached_has_bits = 0;
  7584. (void) cached_has_bits;
  7585. // int64 tick = 1;
  7586. if (this->_internal_tick() != 0) {
  7587. target = stream->EnsureSpace(target);
  7588. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  7589. }
  7590. // double temp = 2;
  7591. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7592. double tmp_temp = this->_internal_temp();
  7593. uint64_t raw_temp;
  7594. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7595. if (raw_temp != 0) {
  7596. target = stream->EnsureSpace(target);
  7597. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_temp(), target);
  7598. }
  7599. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7600. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7601. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7602. }
  7603. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  7604. return target;
  7605. }
  7606. size_t CCPing::ByteSizeLong() const {
  7607. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  7608. size_t total_size = 0;
  7609. uint32_t cached_has_bits = 0;
  7610. // Prevent compiler warnings about cached_has_bits being unused
  7611. (void) cached_has_bits;
  7612. // int64 tick = 1;
  7613. if (this->_internal_tick() != 0) {
  7614. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  7615. }
  7616. // double temp = 2;
  7617. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7618. double tmp_temp = this->_internal_temp();
  7619. uint64_t raw_temp;
  7620. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7621. if (raw_temp != 0) {
  7622. total_size += 1 + 8;
  7623. }
  7624. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7625. }
  7626. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  7627. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7628. CCPing::MergeImpl
  7629. };
  7630. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  7631. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7632. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7633. static_cast<CCPing *>(to)->MergeFrom(
  7634. static_cast<const CCPing &>(from));
  7635. }
  7636. void CCPing::MergeFrom(const CCPing& from) {
  7637. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  7638. GOOGLE_DCHECK_NE(&from, this);
  7639. uint32_t cached_has_bits = 0;
  7640. (void) cached_has_bits;
  7641. if (from._internal_tick() != 0) {
  7642. _internal_set_tick(from._internal_tick());
  7643. }
  7644. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7645. double tmp_temp = from._internal_temp();
  7646. uint64_t raw_temp;
  7647. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7648. if (raw_temp != 0) {
  7649. _internal_set_temp(from._internal_temp());
  7650. }
  7651. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7652. }
  7653. void CCPing::CopyFrom(const CCPing& from) {
  7654. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  7655. if (&from == this) return;
  7656. Clear();
  7657. MergeFrom(from);
  7658. }
  7659. bool CCPing::IsInitialized() const {
  7660. return true;
  7661. }
  7662. void CCPing::InternalSwap(CCPing* other) {
  7663. using std::swap;
  7664. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7665. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7666. PROTOBUF_FIELD_OFFSET(CCPing, temp_)
  7667. + sizeof(CCPing::temp_)
  7668. - PROTOBUF_FIELD_OFFSET(CCPing, tick_)>(
  7669. reinterpret_cast<char*>(&tick_),
  7670. reinterpret_cast<char*>(&other->tick_));
  7671. }
  7672. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  7673. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7674. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7675. file_level_metadata_protocol_2eproto[29]);
  7676. }
  7677. // ===================================================================
  7678. class radar_node::_Internal {
  7679. public:
  7680. };
  7681. radar_node::radar_node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7682. bool is_message_owned)
  7683. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7684. SharedCtor();
  7685. if (!is_message_owned) {
  7686. RegisterArenaDtor(arena);
  7687. }
  7688. // @@protoc_insertion_point(arena_constructor:RemoNet.radar_node)
  7689. }
  7690. radar_node::radar_node(const radar_node& from)
  7691. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7692. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7693. ::memcpy(&id_, &from.id_,
  7694. static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  7695. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  7696. // @@protoc_insertion_point(copy_constructor:RemoNet.radar_node)
  7697. }
  7698. inline void radar_node::SharedCtor() {
  7699. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7700. reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
  7701. 0, static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  7702. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  7703. }
  7704. radar_node::~radar_node() {
  7705. // @@protoc_insertion_point(destructor:RemoNet.radar_node)
  7706. if (GetArenaForAllocation() != nullptr) return;
  7707. SharedDtor();
  7708. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7709. }
  7710. inline void radar_node::SharedDtor() {
  7711. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7712. }
  7713. void radar_node::ArenaDtor(void* object) {
  7714. radar_node* _this = reinterpret_cast< radar_node* >(object);
  7715. (void)_this;
  7716. }
  7717. void radar_node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7718. }
  7719. void radar_node::SetCachedSize(int size) const {
  7720. _cached_size_.Set(size);
  7721. }
  7722. void radar_node::Clear() {
  7723. // @@protoc_insertion_point(message_clear_start:RemoNet.radar_node)
  7724. uint32_t cached_has_bits = 0;
  7725. // Prevent compiler warnings about cached_has_bits being unused
  7726. (void) cached_has_bits;
  7727. ::memset(&id_, 0, static_cast<size_t>(
  7728. reinterpret_cast<char*>(&range_) -
  7729. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  7730. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7731. }
  7732. const char* radar_node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7733. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7734. while (!ctx->Done(&ptr)) {
  7735. uint32_t tag;
  7736. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7737. switch (tag >> 3) {
  7738. // int32 id = 1;
  7739. case 1:
  7740. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7741. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7742. CHK_(ptr);
  7743. } else
  7744. goto handle_unusual;
  7745. continue;
  7746. // int32 range = 2;
  7747. case 2:
  7748. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7749. range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7750. CHK_(ptr);
  7751. } else
  7752. goto handle_unusual;
  7753. continue;
  7754. default:
  7755. goto handle_unusual;
  7756. } // switch
  7757. handle_unusual:
  7758. if ((tag == 0) || ((tag & 7) == 4)) {
  7759. CHK_(ptr);
  7760. ctx->SetLastTag(tag);
  7761. goto message_done;
  7762. }
  7763. ptr = UnknownFieldParse(
  7764. tag,
  7765. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7766. ptr, ctx);
  7767. CHK_(ptr != nullptr);
  7768. } // while
  7769. message_done:
  7770. return ptr;
  7771. failure:
  7772. ptr = nullptr;
  7773. goto message_done;
  7774. #undef CHK_
  7775. }
  7776. uint8_t* radar_node::_InternalSerialize(
  7777. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7778. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.radar_node)
  7779. uint32_t cached_has_bits = 0;
  7780. (void) cached_has_bits;
  7781. // int32 id = 1;
  7782. if (this->_internal_id() != 0) {
  7783. target = stream->EnsureSpace(target);
  7784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  7785. }
  7786. // int32 range = 2;
  7787. if (this->_internal_range() != 0) {
  7788. target = stream->EnsureSpace(target);
  7789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_range(), target);
  7790. }
  7791. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7792. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7793. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7794. }
  7795. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.radar_node)
  7796. return target;
  7797. }
  7798. size_t radar_node::ByteSizeLong() const {
  7799. // @@protoc_insertion_point(message_byte_size_start:RemoNet.radar_node)
  7800. size_t total_size = 0;
  7801. uint32_t cached_has_bits = 0;
  7802. // Prevent compiler warnings about cached_has_bits being unused
  7803. (void) cached_has_bits;
  7804. // int32 id = 1;
  7805. if (this->_internal_id() != 0) {
  7806. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  7807. }
  7808. // int32 range = 2;
  7809. if (this->_internal_range() != 0) {
  7810. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_range());
  7811. }
  7812. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7813. }
  7814. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData radar_node::_class_data_ = {
  7815. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7816. radar_node::MergeImpl
  7817. };
  7818. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*radar_node::GetClassData() const { return &_class_data_; }
  7819. void radar_node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7820. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7821. static_cast<radar_node *>(to)->MergeFrom(
  7822. static_cast<const radar_node &>(from));
  7823. }
  7824. void radar_node::MergeFrom(const radar_node& from) {
  7825. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.radar_node)
  7826. GOOGLE_DCHECK_NE(&from, this);
  7827. uint32_t cached_has_bits = 0;
  7828. (void) cached_has_bits;
  7829. if (from._internal_id() != 0) {
  7830. _internal_set_id(from._internal_id());
  7831. }
  7832. if (from._internal_range() != 0) {
  7833. _internal_set_range(from._internal_range());
  7834. }
  7835. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7836. }
  7837. void radar_node::CopyFrom(const radar_node& from) {
  7838. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.radar_node)
  7839. if (&from == this) return;
  7840. Clear();
  7841. MergeFrom(from);
  7842. }
  7843. bool radar_node::IsInitialized() const {
  7844. return true;
  7845. }
  7846. void radar_node::InternalSwap(radar_node* other) {
  7847. using std::swap;
  7848. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7849. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7850. PROTOBUF_FIELD_OFFSET(radar_node, range_)
  7851. + sizeof(radar_node::range_)
  7852. - PROTOBUF_FIELD_OFFSET(radar_node, id_)>(
  7853. reinterpret_cast<char*>(&id_),
  7854. reinterpret_cast<char*>(&other->id_));
  7855. }
  7856. ::PROTOBUF_NAMESPACE_ID::Metadata radar_node::GetMetadata() const {
  7857. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7858. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7859. file_level_metadata_protocol_2eproto[30]);
  7860. }
  7861. // ===================================================================
  7862. class CCSensor::_Internal {
  7863. public:
  7864. };
  7865. CCSensor::CCSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7866. bool is_message_owned)
  7867. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  7868. node_(arena) {
  7869. SharedCtor();
  7870. if (!is_message_owned) {
  7871. RegisterArenaDtor(arena);
  7872. }
  7873. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSensor)
  7874. }
  7875. CCSensor::CCSensor(const CCSensor& from)
  7876. : ::PROTOBUF_NAMESPACE_ID::Message(),
  7877. node_(from.node_) {
  7878. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7879. ::memcpy(&left_encode_, &from.left_encode_,
  7880. static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  7881. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  7882. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSensor)
  7883. }
  7884. inline void CCSensor::SharedCtor() {
  7885. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7886. reinterpret_cast<char*>(&left_encode_) - reinterpret_cast<char*>(this)),
  7887. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  7888. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  7889. }
  7890. CCSensor::~CCSensor() {
  7891. // @@protoc_insertion_point(destructor:RemoNet.CCSensor)
  7892. if (GetArenaForAllocation() != nullptr) return;
  7893. SharedDtor();
  7894. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7895. }
  7896. inline void CCSensor::SharedDtor() {
  7897. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7898. }
  7899. void CCSensor::ArenaDtor(void* object) {
  7900. CCSensor* _this = reinterpret_cast< CCSensor* >(object);
  7901. (void)_this;
  7902. }
  7903. void CCSensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7904. }
  7905. void CCSensor::SetCachedSize(int size) const {
  7906. _cached_size_.Set(size);
  7907. }
  7908. void CCSensor::Clear() {
  7909. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSensor)
  7910. uint32_t cached_has_bits = 0;
  7911. // Prevent compiler warnings about cached_has_bits being unused
  7912. (void) cached_has_bits;
  7913. node_.Clear();
  7914. ::memset(&left_encode_, 0, static_cast<size_t>(
  7915. reinterpret_cast<char*>(&right_encode_) -
  7916. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  7917. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7918. }
  7919. const char* CCSensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7920. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7921. while (!ctx->Done(&ptr)) {
  7922. uint32_t tag;
  7923. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7924. switch (tag >> 3) {
  7925. // repeated .RemoNet.radar_node node = 1;
  7926. case 1:
  7927. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7928. ptr -= 1;
  7929. do {
  7930. ptr += 1;
  7931. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  7932. CHK_(ptr);
  7933. if (!ctx->DataAvailable(ptr)) break;
  7934. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  7935. } else
  7936. goto handle_unusual;
  7937. continue;
  7938. // int32 left_encode = 2;
  7939. case 2:
  7940. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7941. left_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7942. CHK_(ptr);
  7943. } else
  7944. goto handle_unusual;
  7945. continue;
  7946. // int32 right_encode = 3;
  7947. case 3:
  7948. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7949. right_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7950. CHK_(ptr);
  7951. } else
  7952. goto handle_unusual;
  7953. continue;
  7954. default:
  7955. goto handle_unusual;
  7956. } // switch
  7957. handle_unusual:
  7958. if ((tag == 0) || ((tag & 7) == 4)) {
  7959. CHK_(ptr);
  7960. ctx->SetLastTag(tag);
  7961. goto message_done;
  7962. }
  7963. ptr = UnknownFieldParse(
  7964. tag,
  7965. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7966. ptr, ctx);
  7967. CHK_(ptr != nullptr);
  7968. } // while
  7969. message_done:
  7970. return ptr;
  7971. failure:
  7972. ptr = nullptr;
  7973. goto message_done;
  7974. #undef CHK_
  7975. }
  7976. uint8_t* CCSensor::_InternalSerialize(
  7977. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7978. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSensor)
  7979. uint32_t cached_has_bits = 0;
  7980. (void) cached_has_bits;
  7981. // repeated .RemoNet.radar_node node = 1;
  7982. for (unsigned int i = 0,
  7983. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  7984. target = stream->EnsureSpace(target);
  7985. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  7986. InternalWriteMessage(1, this->_internal_node(i), target, stream);
  7987. }
  7988. // int32 left_encode = 2;
  7989. if (this->_internal_left_encode() != 0) {
  7990. target = stream->EnsureSpace(target);
  7991. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_left_encode(), target);
  7992. }
  7993. // int32 right_encode = 3;
  7994. if (this->_internal_right_encode() != 0) {
  7995. target = stream->EnsureSpace(target);
  7996. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right_encode(), target);
  7997. }
  7998. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7999. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8000. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8001. }
  8002. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSensor)
  8003. return target;
  8004. }
  8005. size_t CCSensor::ByteSizeLong() const {
  8006. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSensor)
  8007. size_t total_size = 0;
  8008. uint32_t cached_has_bits = 0;
  8009. // Prevent compiler warnings about cached_has_bits being unused
  8010. (void) cached_has_bits;
  8011. // repeated .RemoNet.radar_node node = 1;
  8012. total_size += 1UL * this->_internal_node_size();
  8013. for (const auto& msg : this->node_) {
  8014. total_size +=
  8015. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  8016. }
  8017. // int32 left_encode = 2;
  8018. if (this->_internal_left_encode() != 0) {
  8019. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_encode());
  8020. }
  8021. // int32 right_encode = 3;
  8022. if (this->_internal_right_encode() != 0) {
  8023. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_encode());
  8024. }
  8025. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8026. }
  8027. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSensor::_class_data_ = {
  8028. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8029. CCSensor::MergeImpl
  8030. };
  8031. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSensor::GetClassData() const { return &_class_data_; }
  8032. void CCSensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8033. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8034. static_cast<CCSensor *>(to)->MergeFrom(
  8035. static_cast<const CCSensor &>(from));
  8036. }
  8037. void CCSensor::MergeFrom(const CCSensor& from) {
  8038. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSensor)
  8039. GOOGLE_DCHECK_NE(&from, this);
  8040. uint32_t cached_has_bits = 0;
  8041. (void) cached_has_bits;
  8042. node_.MergeFrom(from.node_);
  8043. if (from._internal_left_encode() != 0) {
  8044. _internal_set_left_encode(from._internal_left_encode());
  8045. }
  8046. if (from._internal_right_encode() != 0) {
  8047. _internal_set_right_encode(from._internal_right_encode());
  8048. }
  8049. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8050. }
  8051. void CCSensor::CopyFrom(const CCSensor& from) {
  8052. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSensor)
  8053. if (&from == this) return;
  8054. Clear();
  8055. MergeFrom(from);
  8056. }
  8057. bool CCSensor::IsInitialized() const {
  8058. return true;
  8059. }
  8060. void CCSensor::InternalSwap(CCSensor* other) {
  8061. using std::swap;
  8062. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8063. node_.InternalSwap(&other->node_);
  8064. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8065. PROTOBUF_FIELD_OFFSET(CCSensor, right_encode_)
  8066. + sizeof(CCSensor::right_encode_)
  8067. - PROTOBUF_FIELD_OFFSET(CCSensor, left_encode_)>(
  8068. reinterpret_cast<char*>(&left_encode_),
  8069. reinterpret_cast<char*>(&other->left_encode_));
  8070. }
  8071. ::PROTOBUF_NAMESPACE_ID::Metadata CCSensor::GetMetadata() const {
  8072. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8073. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8074. file_level_metadata_protocol_2eproto[31]);
  8075. }
  8076. // ===================================================================
  8077. class CCSwitch::_Internal {
  8078. public:
  8079. };
  8080. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8081. bool is_message_owned)
  8082. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8083. SharedCtor();
  8084. if (!is_message_owned) {
  8085. RegisterArenaDtor(arena);
  8086. }
  8087. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  8088. }
  8089. CCSwitch::CCSwitch(const CCSwitch& from)
  8090. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8091. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8092. front_ = from.front_;
  8093. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  8094. }
  8095. inline void CCSwitch::SharedCtor() {
  8096. front_ = false;
  8097. }
  8098. CCSwitch::~CCSwitch() {
  8099. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  8100. if (GetArenaForAllocation() != nullptr) return;
  8101. SharedDtor();
  8102. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8103. }
  8104. inline void CCSwitch::SharedDtor() {
  8105. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8106. }
  8107. void CCSwitch::ArenaDtor(void* object) {
  8108. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  8109. (void)_this;
  8110. }
  8111. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8112. }
  8113. void CCSwitch::SetCachedSize(int size) const {
  8114. _cached_size_.Set(size);
  8115. }
  8116. void CCSwitch::Clear() {
  8117. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  8118. uint32_t cached_has_bits = 0;
  8119. // Prevent compiler warnings about cached_has_bits being unused
  8120. (void) cached_has_bits;
  8121. front_ = false;
  8122. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8123. }
  8124. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8125. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8126. while (!ctx->Done(&ptr)) {
  8127. uint32_t tag;
  8128. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8129. switch (tag >> 3) {
  8130. // bool front = 1;
  8131. case 1:
  8132. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8133. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8134. CHK_(ptr);
  8135. } else
  8136. goto handle_unusual;
  8137. continue;
  8138. default:
  8139. goto handle_unusual;
  8140. } // switch
  8141. handle_unusual:
  8142. if ((tag == 0) || ((tag & 7) == 4)) {
  8143. CHK_(ptr);
  8144. ctx->SetLastTag(tag);
  8145. goto message_done;
  8146. }
  8147. ptr = UnknownFieldParse(
  8148. tag,
  8149. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8150. ptr, ctx);
  8151. CHK_(ptr != nullptr);
  8152. } // while
  8153. message_done:
  8154. return ptr;
  8155. failure:
  8156. ptr = nullptr;
  8157. goto message_done;
  8158. #undef CHK_
  8159. }
  8160. uint8_t* CCSwitch::_InternalSerialize(
  8161. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8162. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  8163. uint32_t cached_has_bits = 0;
  8164. (void) cached_has_bits;
  8165. // bool front = 1;
  8166. if (this->_internal_front() != 0) {
  8167. target = stream->EnsureSpace(target);
  8168. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  8169. }
  8170. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8171. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8172. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8173. }
  8174. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  8175. return target;
  8176. }
  8177. size_t CCSwitch::ByteSizeLong() const {
  8178. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  8179. size_t total_size = 0;
  8180. uint32_t cached_has_bits = 0;
  8181. // Prevent compiler warnings about cached_has_bits being unused
  8182. (void) cached_has_bits;
  8183. // bool front = 1;
  8184. if (this->_internal_front() != 0) {
  8185. total_size += 1 + 1;
  8186. }
  8187. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8188. }
  8189. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  8190. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8191. CCSwitch::MergeImpl
  8192. };
  8193. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  8194. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8195. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8196. static_cast<CCSwitch *>(to)->MergeFrom(
  8197. static_cast<const CCSwitch &>(from));
  8198. }
  8199. void CCSwitch::MergeFrom(const CCSwitch& from) {
  8200. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  8201. GOOGLE_DCHECK_NE(&from, this);
  8202. uint32_t cached_has_bits = 0;
  8203. (void) cached_has_bits;
  8204. if (from._internal_front() != 0) {
  8205. _internal_set_front(from._internal_front());
  8206. }
  8207. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8208. }
  8209. void CCSwitch::CopyFrom(const CCSwitch& from) {
  8210. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  8211. if (&from == this) return;
  8212. Clear();
  8213. MergeFrom(from);
  8214. }
  8215. bool CCSwitch::IsInitialized() const {
  8216. return true;
  8217. }
  8218. void CCSwitch::InternalSwap(CCSwitch* other) {
  8219. using std::swap;
  8220. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8221. swap(front_, other->front_);
  8222. }
  8223. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  8224. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8225. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8226. file_level_metadata_protocol_2eproto[32]);
  8227. }
  8228. // ===================================================================
  8229. class State::_Internal {
  8230. public:
  8231. };
  8232. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8233. bool is_message_owned)
  8234. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8235. SharedCtor();
  8236. if (!is_message_owned) {
  8237. RegisterArenaDtor(arena);
  8238. }
  8239. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8240. }
  8241. State::State(const State& from)
  8242. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8243. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8244. ::memcpy(&work_pressure_, &from.work_pressure_,
  8245. static_cast<size_t>(reinterpret_cast<char*>(&right_lock_) -
  8246. reinterpret_cast<char*>(&work_pressure_)) + sizeof(right_lock_));
  8247. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  8248. }
  8249. inline void State::SharedCtor() {
  8250. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8251. reinterpret_cast<char*>(&work_pressure_) - reinterpret_cast<char*>(this)),
  8252. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_lock_) -
  8253. reinterpret_cast<char*>(&work_pressure_)) + sizeof(right_lock_));
  8254. }
  8255. State::~State() {
  8256. // @@protoc_insertion_point(destructor:RemoNet.State)
  8257. if (GetArenaForAllocation() != nullptr) return;
  8258. SharedDtor();
  8259. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8260. }
  8261. inline void State::SharedDtor() {
  8262. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8263. }
  8264. void State::ArenaDtor(void* object) {
  8265. State* _this = reinterpret_cast< State* >(object);
  8266. (void)_this;
  8267. }
  8268. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8269. }
  8270. void State::SetCachedSize(int size) const {
  8271. _cached_size_.Set(size);
  8272. }
  8273. void State::Clear() {
  8274. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  8275. uint32_t cached_has_bits = 0;
  8276. // Prevent compiler warnings about cached_has_bits being unused
  8277. (void) cached_has_bits;
  8278. ::memset(&work_pressure_, 0, static_cast<size_t>(
  8279. reinterpret_cast<char*>(&right_lock_) -
  8280. reinterpret_cast<char*>(&work_pressure_)) + sizeof(right_lock_));
  8281. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8282. }
  8283. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8284. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8285. while (!ctx->Done(&ptr)) {
  8286. uint32_t tag;
  8287. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8288. switch (tag >> 3) {
  8289. // int32 work_pressure = 1;
  8290. case 1:
  8291. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8292. work_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8293. CHK_(ptr);
  8294. } else
  8295. goto handle_unusual;
  8296. continue;
  8297. // int32 brake_pressure = 2;
  8298. case 2:
  8299. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8300. brake_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8301. CHK_(ptr);
  8302. } else
  8303. goto handle_unusual;
  8304. continue;
  8305. // int32 gearbox_oil_temp = 3;
  8306. case 3:
  8307. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8308. gearbox_oil_temp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8309. CHK_(ptr);
  8310. } else
  8311. goto handle_unusual;
  8312. continue;
  8313. // int32 gearbox_oil_pressure = 4;
  8314. case 4:
  8315. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8316. gearbox_oil_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8317. CHK_(ptr);
  8318. } else
  8319. goto handle_unusual;
  8320. continue;
  8321. // int32 engine_rpm = 5;
  8322. case 5:
  8323. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8324. engine_rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8325. CHK_(ptr);
  8326. } else
  8327. goto handle_unusual;
  8328. continue;
  8329. // int32 speed = 6;
  8330. case 6:
  8331. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8332. speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8333. CHK_(ptr);
  8334. } else
  8335. goto handle_unusual;
  8336. continue;
  8337. // int32 engine_pressure = 8;
  8338. case 8:
  8339. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8340. engine_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8341. CHK_(ptr);
  8342. } else
  8343. goto handle_unusual;
  8344. continue;
  8345. // int32 cold_water = 9;
  8346. case 9:
  8347. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  8348. cold_water_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8349. CHK_(ptr);
  8350. } else
  8351. goto handle_unusual;
  8352. continue;
  8353. // int32 steer_angle = 10;
  8354. case 10:
  8355. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  8356. steer_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8357. CHK_(ptr);
  8358. } else
  8359. goto handle_unusual;
  8360. continue;
  8361. // int32 left_lock = 11;
  8362. case 11:
  8363. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  8364. left_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8365. CHK_(ptr);
  8366. } else
  8367. goto handle_unusual;
  8368. continue;
  8369. // int32 right_lock = 12;
  8370. case 12:
  8371. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  8372. right_lock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8373. CHK_(ptr);
  8374. } else
  8375. goto handle_unusual;
  8376. continue;
  8377. default:
  8378. goto handle_unusual;
  8379. } // switch
  8380. handle_unusual:
  8381. if ((tag == 0) || ((tag & 7) == 4)) {
  8382. CHK_(ptr);
  8383. ctx->SetLastTag(tag);
  8384. goto message_done;
  8385. }
  8386. ptr = UnknownFieldParse(
  8387. tag,
  8388. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8389. ptr, ctx);
  8390. CHK_(ptr != nullptr);
  8391. } // while
  8392. message_done:
  8393. return ptr;
  8394. failure:
  8395. ptr = nullptr;
  8396. goto message_done;
  8397. #undef CHK_
  8398. }
  8399. uint8_t* State::_InternalSerialize(
  8400. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8401. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  8402. uint32_t cached_has_bits = 0;
  8403. (void) cached_has_bits;
  8404. // int32 work_pressure = 1;
  8405. if (this->_internal_work_pressure() != 0) {
  8406. target = stream->EnsureSpace(target);
  8407. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_work_pressure(), target);
  8408. }
  8409. // int32 brake_pressure = 2;
  8410. if (this->_internal_brake_pressure() != 0) {
  8411. target = stream->EnsureSpace(target);
  8412. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_brake_pressure(), target);
  8413. }
  8414. // int32 gearbox_oil_temp = 3;
  8415. if (this->_internal_gearbox_oil_temp() != 0) {
  8416. target = stream->EnsureSpace(target);
  8417. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_gearbox_oil_temp(), target);
  8418. }
  8419. // int32 gearbox_oil_pressure = 4;
  8420. if (this->_internal_gearbox_oil_pressure() != 0) {
  8421. target = stream->EnsureSpace(target);
  8422. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_gearbox_oil_pressure(), target);
  8423. }
  8424. // int32 engine_rpm = 5;
  8425. if (this->_internal_engine_rpm() != 0) {
  8426. target = stream->EnsureSpace(target);
  8427. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_engine_rpm(), target);
  8428. }
  8429. // int32 speed = 6;
  8430. if (this->_internal_speed() != 0) {
  8431. target = stream->EnsureSpace(target);
  8432. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_speed(), target);
  8433. }
  8434. // int32 engine_pressure = 8;
  8435. if (this->_internal_engine_pressure() != 0) {
  8436. target = stream->EnsureSpace(target);
  8437. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_engine_pressure(), target);
  8438. }
  8439. // int32 cold_water = 9;
  8440. if (this->_internal_cold_water() != 0) {
  8441. target = stream->EnsureSpace(target);
  8442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_cold_water(), target);
  8443. }
  8444. // int32 steer_angle = 10;
  8445. if (this->_internal_steer_angle() != 0) {
  8446. target = stream->EnsureSpace(target);
  8447. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_steer_angle(), target);
  8448. }
  8449. // int32 left_lock = 11;
  8450. if (this->_internal_left_lock() != 0) {
  8451. target = stream->EnsureSpace(target);
  8452. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_left_lock(), target);
  8453. }
  8454. // int32 right_lock = 12;
  8455. if (this->_internal_right_lock() != 0) {
  8456. target = stream->EnsureSpace(target);
  8457. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_right_lock(), target);
  8458. }
  8459. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8460. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8461. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8462. }
  8463. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  8464. return target;
  8465. }
  8466. size_t State::ByteSizeLong() const {
  8467. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  8468. size_t total_size = 0;
  8469. uint32_t cached_has_bits = 0;
  8470. // Prevent compiler warnings about cached_has_bits being unused
  8471. (void) cached_has_bits;
  8472. // int32 work_pressure = 1;
  8473. if (this->_internal_work_pressure() != 0) {
  8474. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_work_pressure());
  8475. }
  8476. // int32 brake_pressure = 2;
  8477. if (this->_internal_brake_pressure() != 0) {
  8478. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake_pressure());
  8479. }
  8480. // int32 gearbox_oil_temp = 3;
  8481. if (this->_internal_gearbox_oil_temp() != 0) {
  8482. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_temp());
  8483. }
  8484. // int32 gearbox_oil_pressure = 4;
  8485. if (this->_internal_gearbox_oil_pressure() != 0) {
  8486. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_gearbox_oil_pressure());
  8487. }
  8488. // int32 engine_rpm = 5;
  8489. if (this->_internal_engine_rpm() != 0) {
  8490. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_rpm());
  8491. }
  8492. // int32 speed = 6;
  8493. if (this->_internal_speed() != 0) {
  8494. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed());
  8495. }
  8496. // int32 engine_pressure = 8;
  8497. if (this->_internal_engine_pressure() != 0) {
  8498. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_pressure());
  8499. }
  8500. // int32 cold_water = 9;
  8501. if (this->_internal_cold_water() != 0) {
  8502. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cold_water());
  8503. }
  8504. // int32 steer_angle = 10;
  8505. if (this->_internal_steer_angle() != 0) {
  8506. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_steer_angle());
  8507. }
  8508. // int32 left_lock = 11;
  8509. if (this->_internal_left_lock() != 0) {
  8510. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_lock());
  8511. }
  8512. // int32 right_lock = 12;
  8513. if (this->_internal_right_lock() != 0) {
  8514. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_lock());
  8515. }
  8516. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8517. }
  8518. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  8519. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8520. State::MergeImpl
  8521. };
  8522. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  8523. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8524. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8525. static_cast<State *>(to)->MergeFrom(
  8526. static_cast<const State &>(from));
  8527. }
  8528. void State::MergeFrom(const State& from) {
  8529. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  8530. GOOGLE_DCHECK_NE(&from, this);
  8531. uint32_t cached_has_bits = 0;
  8532. (void) cached_has_bits;
  8533. if (from._internal_work_pressure() != 0) {
  8534. _internal_set_work_pressure(from._internal_work_pressure());
  8535. }
  8536. if (from._internal_brake_pressure() != 0) {
  8537. _internal_set_brake_pressure(from._internal_brake_pressure());
  8538. }
  8539. if (from._internal_gearbox_oil_temp() != 0) {
  8540. _internal_set_gearbox_oil_temp(from._internal_gearbox_oil_temp());
  8541. }
  8542. if (from._internal_gearbox_oil_pressure() != 0) {
  8543. _internal_set_gearbox_oil_pressure(from._internal_gearbox_oil_pressure());
  8544. }
  8545. if (from._internal_engine_rpm() != 0) {
  8546. _internal_set_engine_rpm(from._internal_engine_rpm());
  8547. }
  8548. if (from._internal_speed() != 0) {
  8549. _internal_set_speed(from._internal_speed());
  8550. }
  8551. if (from._internal_engine_pressure() != 0) {
  8552. _internal_set_engine_pressure(from._internal_engine_pressure());
  8553. }
  8554. if (from._internal_cold_water() != 0) {
  8555. _internal_set_cold_water(from._internal_cold_water());
  8556. }
  8557. if (from._internal_steer_angle() != 0) {
  8558. _internal_set_steer_angle(from._internal_steer_angle());
  8559. }
  8560. if (from._internal_left_lock() != 0) {
  8561. _internal_set_left_lock(from._internal_left_lock());
  8562. }
  8563. if (from._internal_right_lock() != 0) {
  8564. _internal_set_right_lock(from._internal_right_lock());
  8565. }
  8566. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8567. }
  8568. void State::CopyFrom(const State& from) {
  8569. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  8570. if (&from == this) return;
  8571. Clear();
  8572. MergeFrom(from);
  8573. }
  8574. bool State::IsInitialized() const {
  8575. return true;
  8576. }
  8577. void State::InternalSwap(State* other) {
  8578. using std::swap;
  8579. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8580. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8581. PROTOBUF_FIELD_OFFSET(State, right_lock_)
  8582. + sizeof(State::right_lock_)
  8583. - PROTOBUF_FIELD_OFFSET(State, work_pressure_)>(
  8584. reinterpret_cast<char*>(&work_pressure_),
  8585. reinterpret_cast<char*>(&other->work_pressure_));
  8586. }
  8587. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  8588. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8589. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8590. file_level_metadata_protocol_2eproto[33]);
  8591. }
  8592. // ===================================================================
  8593. class LidarPoint::_Internal {
  8594. public:
  8595. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  8596. static void set_has_timestamp(HasBits* has_bits) {
  8597. (*has_bits)[0] |= 2u;
  8598. }
  8599. static void set_has_seq(HasBits* has_bits) {
  8600. (*has_bits)[0] |= 4u;
  8601. }
  8602. static void set_has_frame_id(HasBits* has_bits) {
  8603. (*has_bits)[0] |= 1u;
  8604. }
  8605. static void set_has_height(HasBits* has_bits) {
  8606. (*has_bits)[0] |= 8u;
  8607. }
  8608. static void set_has_width(HasBits* has_bits) {
  8609. (*has_bits)[0] |= 16u;
  8610. }
  8611. static void set_has_is_dense(HasBits* has_bits) {
  8612. (*has_bits)[0] |= 32u;
  8613. }
  8614. static void set_has_is_left(HasBits* has_bits) {
  8615. (*has_bits)[0] |= 64u;
  8616. }
  8617. };
  8618. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8619. bool is_message_owned)
  8620. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8621. data_(arena) {
  8622. SharedCtor();
  8623. if (!is_message_owned) {
  8624. RegisterArenaDtor(arena);
  8625. }
  8626. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  8627. }
  8628. LidarPoint::LidarPoint(const LidarPoint& from)
  8629. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8630. _has_bits_(from._has_bits_),
  8631. data_(from.data_) {
  8632. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8633. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8634. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8635. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8636. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8637. if (from._internal_has_frame_id()) {
  8638. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  8639. GetArenaForAllocation());
  8640. }
  8641. ::memcpy(&timestamp_, &from.timestamp_,
  8642. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  8643. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8644. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  8645. }
  8646. inline void LidarPoint::SharedCtor() {
  8647. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8648. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8649. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8650. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8651. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8652. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  8653. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  8654. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8655. }
  8656. LidarPoint::~LidarPoint() {
  8657. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  8658. if (GetArenaForAllocation() != nullptr) return;
  8659. SharedDtor();
  8660. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8661. }
  8662. inline void LidarPoint::SharedDtor() {
  8663. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8664. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8665. }
  8666. void LidarPoint::ArenaDtor(void* object) {
  8667. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  8668. (void)_this;
  8669. }
  8670. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8671. }
  8672. void LidarPoint::SetCachedSize(int size) const {
  8673. _cached_size_.Set(size);
  8674. }
  8675. void LidarPoint::Clear() {
  8676. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  8677. uint32_t cached_has_bits = 0;
  8678. // Prevent compiler warnings about cached_has_bits being unused
  8679. (void) cached_has_bits;
  8680. data_.Clear();
  8681. cached_has_bits = _has_bits_[0];
  8682. if (cached_has_bits & 0x00000001u) {
  8683. frame_id_.ClearNonDefaultToEmpty();
  8684. }
  8685. if (cached_has_bits & 0x0000007eu) {
  8686. ::memset(&timestamp_, 0, static_cast<size_t>(
  8687. reinterpret_cast<char*>(&is_left_) -
  8688. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8689. }
  8690. _has_bits_.Clear();
  8691. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8692. }
  8693. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8694. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8695. _Internal::HasBits has_bits{};
  8696. while (!ctx->Done(&ptr)) {
  8697. uint32_t tag;
  8698. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8699. switch (tag >> 3) {
  8700. // optional double timestamp = 1;
  8701. case 1:
  8702. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  8703. _Internal::set_has_timestamp(&has_bits);
  8704. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  8705. ptr += sizeof(double);
  8706. } else
  8707. goto handle_unusual;
  8708. continue;
  8709. // optional uint32 seq = 2;
  8710. case 2:
  8711. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8712. _Internal::set_has_seq(&has_bits);
  8713. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8714. CHK_(ptr);
  8715. } else
  8716. goto handle_unusual;
  8717. continue;
  8718. // optional string frame_id = 3;
  8719. case 3:
  8720. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  8721. auto str = _internal_mutable_frame_id();
  8722. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8723. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  8724. CHK_(ptr);
  8725. } else
  8726. goto handle_unusual;
  8727. continue;
  8728. // optional uint32 height = 4;
  8729. case 4:
  8730. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8731. _Internal::set_has_height(&has_bits);
  8732. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8733. CHK_(ptr);
  8734. } else
  8735. goto handle_unusual;
  8736. continue;
  8737. // optional uint32 width = 5;
  8738. case 5:
  8739. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8740. _Internal::set_has_width(&has_bits);
  8741. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8742. CHK_(ptr);
  8743. } else
  8744. goto handle_unusual;
  8745. continue;
  8746. // optional bool is_dense = 6;
  8747. case 6:
  8748. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8749. _Internal::set_has_is_dense(&has_bits);
  8750. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8751. CHK_(ptr);
  8752. } else
  8753. goto handle_unusual;
  8754. continue;
  8755. // optional bool is_left = 7;
  8756. case 7:
  8757. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8758. _Internal::set_has_is_left(&has_bits);
  8759. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8760. CHK_(ptr);
  8761. } else
  8762. goto handle_unusual;
  8763. continue;
  8764. // repeated float data = 8;
  8765. case 8:
  8766. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  8767. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  8768. CHK_(ptr);
  8769. } else if (static_cast<uint8_t>(tag) == 69) {
  8770. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  8771. ptr += sizeof(float);
  8772. } else
  8773. goto handle_unusual;
  8774. continue;
  8775. default:
  8776. goto handle_unusual;
  8777. } // switch
  8778. handle_unusual:
  8779. if ((tag == 0) || ((tag & 7) == 4)) {
  8780. CHK_(ptr);
  8781. ctx->SetLastTag(tag);
  8782. goto message_done;
  8783. }
  8784. ptr = UnknownFieldParse(
  8785. tag,
  8786. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8787. ptr, ctx);
  8788. CHK_(ptr != nullptr);
  8789. } // while
  8790. message_done:
  8791. _has_bits_.Or(has_bits);
  8792. return ptr;
  8793. failure:
  8794. ptr = nullptr;
  8795. goto message_done;
  8796. #undef CHK_
  8797. }
  8798. uint8_t* LidarPoint::_InternalSerialize(
  8799. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8800. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  8801. uint32_t cached_has_bits = 0;
  8802. (void) cached_has_bits;
  8803. // optional double timestamp = 1;
  8804. if (_internal_has_timestamp()) {
  8805. target = stream->EnsureSpace(target);
  8806. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  8807. }
  8808. // optional uint32 seq = 2;
  8809. if (_internal_has_seq()) {
  8810. target = stream->EnsureSpace(target);
  8811. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  8812. }
  8813. // optional string frame_id = 3;
  8814. if (_internal_has_frame_id()) {
  8815. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  8816. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  8817. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  8818. "RemoNet.LidarPoint.frame_id");
  8819. target = stream->WriteStringMaybeAliased(
  8820. 3, this->_internal_frame_id(), target);
  8821. }
  8822. // optional uint32 height = 4;
  8823. if (_internal_has_height()) {
  8824. target = stream->EnsureSpace(target);
  8825. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  8826. }
  8827. // optional uint32 width = 5;
  8828. if (_internal_has_width()) {
  8829. target = stream->EnsureSpace(target);
  8830. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  8831. }
  8832. // optional bool is_dense = 6;
  8833. if (_internal_has_is_dense()) {
  8834. target = stream->EnsureSpace(target);
  8835. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  8836. }
  8837. // optional bool is_left = 7;
  8838. if (_internal_has_is_left()) {
  8839. target = stream->EnsureSpace(target);
  8840. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  8841. }
  8842. // repeated float data = 8;
  8843. if (this->_internal_data_size() > 0) {
  8844. target = stream->WriteFixedPacked(8, _internal_data(), target);
  8845. }
  8846. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8847. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8848. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8849. }
  8850. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  8851. return target;
  8852. }
  8853. size_t LidarPoint::ByteSizeLong() const {
  8854. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  8855. size_t total_size = 0;
  8856. uint32_t cached_has_bits = 0;
  8857. // Prevent compiler warnings about cached_has_bits being unused
  8858. (void) cached_has_bits;
  8859. // repeated float data = 8;
  8860. {
  8861. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  8862. size_t data_size = 4UL * count;
  8863. if (data_size > 0) {
  8864. total_size += 1 +
  8865. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  8866. static_cast<int32_t>(data_size));
  8867. }
  8868. total_size += data_size;
  8869. }
  8870. cached_has_bits = _has_bits_[0];
  8871. if (cached_has_bits & 0x0000007fu) {
  8872. // optional string frame_id = 3;
  8873. if (cached_has_bits & 0x00000001u) {
  8874. total_size += 1 +
  8875. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  8876. this->_internal_frame_id());
  8877. }
  8878. // optional double timestamp = 1;
  8879. if (cached_has_bits & 0x00000002u) {
  8880. total_size += 1 + 8;
  8881. }
  8882. // optional uint32 seq = 2;
  8883. if (cached_has_bits & 0x00000004u) {
  8884. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  8885. }
  8886. // optional uint32 height = 4;
  8887. if (cached_has_bits & 0x00000008u) {
  8888. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  8889. }
  8890. // optional uint32 width = 5;
  8891. if (cached_has_bits & 0x00000010u) {
  8892. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  8893. }
  8894. // optional bool is_dense = 6;
  8895. if (cached_has_bits & 0x00000020u) {
  8896. total_size += 1 + 1;
  8897. }
  8898. // optional bool is_left = 7;
  8899. if (cached_has_bits & 0x00000040u) {
  8900. total_size += 1 + 1;
  8901. }
  8902. }
  8903. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8904. }
  8905. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  8906. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8907. LidarPoint::MergeImpl
  8908. };
  8909. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  8910. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8911. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8912. static_cast<LidarPoint *>(to)->MergeFrom(
  8913. static_cast<const LidarPoint &>(from));
  8914. }
  8915. void LidarPoint::MergeFrom(const LidarPoint& from) {
  8916. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  8917. GOOGLE_DCHECK_NE(&from, this);
  8918. uint32_t cached_has_bits = 0;
  8919. (void) cached_has_bits;
  8920. data_.MergeFrom(from.data_);
  8921. cached_has_bits = from._has_bits_[0];
  8922. if (cached_has_bits & 0x0000007fu) {
  8923. if (cached_has_bits & 0x00000001u) {
  8924. _internal_set_frame_id(from._internal_frame_id());
  8925. }
  8926. if (cached_has_bits & 0x00000002u) {
  8927. timestamp_ = from.timestamp_;
  8928. }
  8929. if (cached_has_bits & 0x00000004u) {
  8930. seq_ = from.seq_;
  8931. }
  8932. if (cached_has_bits & 0x00000008u) {
  8933. height_ = from.height_;
  8934. }
  8935. if (cached_has_bits & 0x00000010u) {
  8936. width_ = from.width_;
  8937. }
  8938. if (cached_has_bits & 0x00000020u) {
  8939. is_dense_ = from.is_dense_;
  8940. }
  8941. if (cached_has_bits & 0x00000040u) {
  8942. is_left_ = from.is_left_;
  8943. }
  8944. _has_bits_[0] |= cached_has_bits;
  8945. }
  8946. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8947. }
  8948. void LidarPoint::CopyFrom(const LidarPoint& from) {
  8949. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  8950. if (&from == this) return;
  8951. Clear();
  8952. MergeFrom(from);
  8953. }
  8954. bool LidarPoint::IsInitialized() const {
  8955. return true;
  8956. }
  8957. void LidarPoint::InternalSwap(LidarPoint* other) {
  8958. using std::swap;
  8959. auto* lhs_arena = GetArenaForAllocation();
  8960. auto* rhs_arena = other->GetArenaForAllocation();
  8961. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8962. swap(_has_bits_[0], other->_has_bits_[0]);
  8963. data_.InternalSwap(&other->data_);
  8964. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8965. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8966. &frame_id_, lhs_arena,
  8967. &other->frame_id_, rhs_arena
  8968. );
  8969. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8970. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  8971. + sizeof(LidarPoint::is_left_)
  8972. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  8973. reinterpret_cast<char*>(&timestamp_),
  8974. reinterpret_cast<char*>(&other->timestamp_));
  8975. }
  8976. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  8977. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8978. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8979. file_level_metadata_protocol_2eproto[34]);
  8980. }
  8981. // ===================================================================
  8982. class SensorStop::_Internal {
  8983. public:
  8984. };
  8985. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8986. bool is_message_owned)
  8987. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  8988. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  8989. }
  8990. SensorStop::SensorStop(const SensorStop& from)
  8991. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  8992. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8993. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  8994. }
  8995. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  8996. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  8997. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  8998. };
  8999. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  9000. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  9001. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9002. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9003. file_level_metadata_protocol_2eproto[35]);
  9004. }
  9005. // ===================================================================
  9006. class StopAck::_Internal {
  9007. public:
  9008. };
  9009. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9010. bool is_message_owned)
  9011. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  9012. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  9013. }
  9014. StopAck::StopAck(const StopAck& from)
  9015. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  9016. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9017. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  9018. }
  9019. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  9020. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  9021. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  9022. };
  9023. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  9024. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  9025. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9026. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9027. file_level_metadata_protocol_2eproto[36]);
  9028. }
  9029. // ===================================================================
  9030. class can_net_frame::_Internal {
  9031. public:
  9032. };
  9033. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9034. bool is_message_owned)
  9035. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9036. SharedCtor();
  9037. if (!is_message_owned) {
  9038. RegisterArenaDtor(arena);
  9039. }
  9040. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  9041. }
  9042. can_net_frame::can_net_frame(const can_net_frame& from)
  9043. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9044. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9045. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9046. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9047. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9048. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9049. if (!from._internal_data().empty()) {
  9050. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  9051. GetArenaForAllocation());
  9052. }
  9053. ::memcpy(&dlc_, &from.dlc_,
  9054. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9055. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9056. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  9057. }
  9058. inline void can_net_frame::SharedCtor() {
  9059. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9060. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9061. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9062. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9063. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9064. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  9065. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9066. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9067. }
  9068. can_net_frame::~can_net_frame() {
  9069. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  9070. if (GetArenaForAllocation() != nullptr) return;
  9071. SharedDtor();
  9072. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9073. }
  9074. inline void can_net_frame::SharedDtor() {
  9075. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9076. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9077. }
  9078. void can_net_frame::ArenaDtor(void* object) {
  9079. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  9080. (void)_this;
  9081. }
  9082. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9083. }
  9084. void can_net_frame::SetCachedSize(int size) const {
  9085. _cached_size_.Set(size);
  9086. }
  9087. void can_net_frame::Clear() {
  9088. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  9089. uint32_t cached_has_bits = 0;
  9090. // Prevent compiler warnings about cached_has_bits being unused
  9091. (void) cached_has_bits;
  9092. data_.ClearToEmpty();
  9093. ::memset(&dlc_, 0, static_cast<size_t>(
  9094. reinterpret_cast<char*>(&canid_) -
  9095. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9096. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9097. }
  9098. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9099. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9100. while (!ctx->Done(&ptr)) {
  9101. uint32_t tag;
  9102. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9103. switch (tag >> 3) {
  9104. // sint32 dlc = 1;
  9105. case 1:
  9106. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9107. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  9108. CHK_(ptr);
  9109. } else
  9110. goto handle_unusual;
  9111. continue;
  9112. // int32 canid = 2;
  9113. case 2:
  9114. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9115. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9116. CHK_(ptr);
  9117. } else
  9118. goto handle_unusual;
  9119. continue;
  9120. // bytes data = 3;
  9121. case 3:
  9122. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  9123. auto str = _internal_mutable_data();
  9124. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9125. CHK_(ptr);
  9126. } else
  9127. goto handle_unusual;
  9128. continue;
  9129. default:
  9130. goto handle_unusual;
  9131. } // switch
  9132. handle_unusual:
  9133. if ((tag == 0) || ((tag & 7) == 4)) {
  9134. CHK_(ptr);
  9135. ctx->SetLastTag(tag);
  9136. goto message_done;
  9137. }
  9138. ptr = UnknownFieldParse(
  9139. tag,
  9140. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9141. ptr, ctx);
  9142. CHK_(ptr != nullptr);
  9143. } // while
  9144. message_done:
  9145. return ptr;
  9146. failure:
  9147. ptr = nullptr;
  9148. goto message_done;
  9149. #undef CHK_
  9150. }
  9151. uint8_t* can_net_frame::_InternalSerialize(
  9152. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9153. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  9154. uint32_t cached_has_bits = 0;
  9155. (void) cached_has_bits;
  9156. // sint32 dlc = 1;
  9157. if (this->_internal_dlc() != 0) {
  9158. target = stream->EnsureSpace(target);
  9159. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  9160. }
  9161. // int32 canid = 2;
  9162. if (this->_internal_canid() != 0) {
  9163. target = stream->EnsureSpace(target);
  9164. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  9165. }
  9166. // bytes data = 3;
  9167. if (!this->_internal_data().empty()) {
  9168. target = stream->WriteBytesMaybeAliased(
  9169. 3, this->_internal_data(), target);
  9170. }
  9171. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9172. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9173. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9174. }
  9175. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  9176. return target;
  9177. }
  9178. size_t can_net_frame::ByteSizeLong() const {
  9179. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  9180. size_t total_size = 0;
  9181. uint32_t cached_has_bits = 0;
  9182. // Prevent compiler warnings about cached_has_bits being unused
  9183. (void) cached_has_bits;
  9184. // bytes data = 3;
  9185. if (!this->_internal_data().empty()) {
  9186. total_size += 1 +
  9187. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9188. this->_internal_data());
  9189. }
  9190. // sint32 dlc = 1;
  9191. if (this->_internal_dlc() != 0) {
  9192. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  9193. }
  9194. // int32 canid = 2;
  9195. if (this->_internal_canid() != 0) {
  9196. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  9197. }
  9198. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9199. }
  9200. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  9201. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9202. can_net_frame::MergeImpl
  9203. };
  9204. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  9205. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9206. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9207. static_cast<can_net_frame *>(to)->MergeFrom(
  9208. static_cast<const can_net_frame &>(from));
  9209. }
  9210. void can_net_frame::MergeFrom(const can_net_frame& from) {
  9211. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  9212. GOOGLE_DCHECK_NE(&from, this);
  9213. uint32_t cached_has_bits = 0;
  9214. (void) cached_has_bits;
  9215. if (!from._internal_data().empty()) {
  9216. _internal_set_data(from._internal_data());
  9217. }
  9218. if (from._internal_dlc() != 0) {
  9219. _internal_set_dlc(from._internal_dlc());
  9220. }
  9221. if (from._internal_canid() != 0) {
  9222. _internal_set_canid(from._internal_canid());
  9223. }
  9224. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9225. }
  9226. void can_net_frame::CopyFrom(const can_net_frame& from) {
  9227. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  9228. if (&from == this) return;
  9229. Clear();
  9230. MergeFrom(from);
  9231. }
  9232. bool can_net_frame::IsInitialized() const {
  9233. return true;
  9234. }
  9235. void can_net_frame::InternalSwap(can_net_frame* other) {
  9236. using std::swap;
  9237. auto* lhs_arena = GetArenaForAllocation();
  9238. auto* rhs_arena = other->GetArenaForAllocation();
  9239. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9240. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9241. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9242. &data_, lhs_arena,
  9243. &other->data_, rhs_arena
  9244. );
  9245. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9246. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  9247. + sizeof(can_net_frame::canid_)
  9248. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  9249. reinterpret_cast<char*>(&dlc_),
  9250. reinterpret_cast<char*>(&other->dlc_));
  9251. }
  9252. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  9253. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9254. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9255. file_level_metadata_protocol_2eproto[37]);
  9256. }
  9257. // ===================================================================
  9258. class CCCanMsg::_Internal {
  9259. public:
  9260. };
  9261. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9262. bool is_message_owned)
  9263. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  9264. frams_(arena) {
  9265. SharedCtor();
  9266. if (!is_message_owned) {
  9267. RegisterArenaDtor(arena);
  9268. }
  9269. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  9270. }
  9271. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  9272. : ::PROTOBUF_NAMESPACE_ID::Message(),
  9273. frams_(from.frams_) {
  9274. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9275. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  9276. }
  9277. inline void CCCanMsg::SharedCtor() {
  9278. }
  9279. CCCanMsg::~CCCanMsg() {
  9280. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  9281. if (GetArenaForAllocation() != nullptr) return;
  9282. SharedDtor();
  9283. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9284. }
  9285. inline void CCCanMsg::SharedDtor() {
  9286. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9287. }
  9288. void CCCanMsg::ArenaDtor(void* object) {
  9289. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  9290. (void)_this;
  9291. }
  9292. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9293. }
  9294. void CCCanMsg::SetCachedSize(int size) const {
  9295. _cached_size_.Set(size);
  9296. }
  9297. void CCCanMsg::Clear() {
  9298. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  9299. uint32_t cached_has_bits = 0;
  9300. // Prevent compiler warnings about cached_has_bits being unused
  9301. (void) cached_has_bits;
  9302. frams_.Clear();
  9303. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9304. }
  9305. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9306. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9307. while (!ctx->Done(&ptr)) {
  9308. uint32_t tag;
  9309. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9310. switch (tag >> 3) {
  9311. // repeated .RemoNet.can_net_frame frams = 1;
  9312. case 1:
  9313. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  9314. ptr -= 1;
  9315. do {
  9316. ptr += 1;
  9317. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  9318. CHK_(ptr);
  9319. if (!ctx->DataAvailable(ptr)) break;
  9320. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  9321. } else
  9322. goto handle_unusual;
  9323. continue;
  9324. default:
  9325. goto handle_unusual;
  9326. } // switch
  9327. handle_unusual:
  9328. if ((tag == 0) || ((tag & 7) == 4)) {
  9329. CHK_(ptr);
  9330. ctx->SetLastTag(tag);
  9331. goto message_done;
  9332. }
  9333. ptr = UnknownFieldParse(
  9334. tag,
  9335. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9336. ptr, ctx);
  9337. CHK_(ptr != nullptr);
  9338. } // while
  9339. message_done:
  9340. return ptr;
  9341. failure:
  9342. ptr = nullptr;
  9343. goto message_done;
  9344. #undef CHK_
  9345. }
  9346. uint8_t* CCCanMsg::_InternalSerialize(
  9347. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9348. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  9349. uint32_t cached_has_bits = 0;
  9350. (void) cached_has_bits;
  9351. // repeated .RemoNet.can_net_frame frams = 1;
  9352. for (unsigned int i = 0,
  9353. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  9354. target = stream->EnsureSpace(target);
  9355. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  9356. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  9357. }
  9358. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9359. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9360. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9361. }
  9362. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  9363. return target;
  9364. }
  9365. size_t CCCanMsg::ByteSizeLong() const {
  9366. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  9367. size_t total_size = 0;
  9368. uint32_t cached_has_bits = 0;
  9369. // Prevent compiler warnings about cached_has_bits being unused
  9370. (void) cached_has_bits;
  9371. // repeated .RemoNet.can_net_frame frams = 1;
  9372. total_size += 1UL * this->_internal_frams_size();
  9373. for (const auto& msg : this->frams_) {
  9374. total_size +=
  9375. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  9376. }
  9377. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9378. }
  9379. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  9380. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9381. CCCanMsg::MergeImpl
  9382. };
  9383. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  9384. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9385. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9386. static_cast<CCCanMsg *>(to)->MergeFrom(
  9387. static_cast<const CCCanMsg &>(from));
  9388. }
  9389. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  9390. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  9391. GOOGLE_DCHECK_NE(&from, this);
  9392. uint32_t cached_has_bits = 0;
  9393. (void) cached_has_bits;
  9394. frams_.MergeFrom(from.frams_);
  9395. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9396. }
  9397. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  9398. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  9399. if (&from == this) return;
  9400. Clear();
  9401. MergeFrom(from);
  9402. }
  9403. bool CCCanMsg::IsInitialized() const {
  9404. return true;
  9405. }
  9406. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  9407. using std::swap;
  9408. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9409. frams_.InternalSwap(&other->frams_);
  9410. }
  9411. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  9412. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9413. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9414. file_level_metadata_protocol_2eproto[38]);
  9415. }
  9416. // ===================================================================
  9417. class SCAddRobot::_Internal {
  9418. public:
  9419. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  9420. };
  9421. const ::RemoNet::Robot&
  9422. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  9423. return *msg->robot_;
  9424. }
  9425. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9426. bool is_message_owned)
  9427. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9428. SharedCtor();
  9429. if (!is_message_owned) {
  9430. RegisterArenaDtor(arena);
  9431. }
  9432. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  9433. }
  9434. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  9435. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9436. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9437. if (from._internal_has_robot()) {
  9438. robot_ = new ::RemoNet::Robot(*from.robot_);
  9439. } else {
  9440. robot_ = nullptr;
  9441. }
  9442. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  9443. }
  9444. inline void SCAddRobot::SharedCtor() {
  9445. robot_ = nullptr;
  9446. }
  9447. SCAddRobot::~SCAddRobot() {
  9448. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  9449. if (GetArenaForAllocation() != nullptr) return;
  9450. SharedDtor();
  9451. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9452. }
  9453. inline void SCAddRobot::SharedDtor() {
  9454. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9455. if (this != internal_default_instance()) delete robot_;
  9456. }
  9457. void SCAddRobot::ArenaDtor(void* object) {
  9458. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  9459. (void)_this;
  9460. }
  9461. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9462. }
  9463. void SCAddRobot::SetCachedSize(int size) const {
  9464. _cached_size_.Set(size);
  9465. }
  9466. void SCAddRobot::Clear() {
  9467. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  9468. uint32_t cached_has_bits = 0;
  9469. // Prevent compiler warnings about cached_has_bits being unused
  9470. (void) cached_has_bits;
  9471. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  9472. delete robot_;
  9473. }
  9474. robot_ = nullptr;
  9475. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9476. }
  9477. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9478. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9479. while (!ctx->Done(&ptr)) {
  9480. uint32_t tag;
  9481. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9482. switch (tag >> 3) {
  9483. // .RemoNet.Robot robot = 1;
  9484. case 1:
  9485. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  9486. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  9487. CHK_(ptr);
  9488. } else
  9489. goto handle_unusual;
  9490. continue;
  9491. default:
  9492. goto handle_unusual;
  9493. } // switch
  9494. handle_unusual:
  9495. if ((tag == 0) || ((tag & 7) == 4)) {
  9496. CHK_(ptr);
  9497. ctx->SetLastTag(tag);
  9498. goto message_done;
  9499. }
  9500. ptr = UnknownFieldParse(
  9501. tag,
  9502. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9503. ptr, ctx);
  9504. CHK_(ptr != nullptr);
  9505. } // while
  9506. message_done:
  9507. return ptr;
  9508. failure:
  9509. ptr = nullptr;
  9510. goto message_done;
  9511. #undef CHK_
  9512. }
  9513. uint8_t* SCAddRobot::_InternalSerialize(
  9514. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9515. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  9516. uint32_t cached_has_bits = 0;
  9517. (void) cached_has_bits;
  9518. // .RemoNet.Robot robot = 1;
  9519. if (this->_internal_has_robot()) {
  9520. target = stream->EnsureSpace(target);
  9521. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  9522. InternalWriteMessage(
  9523. 1, _Internal::robot(this), target, stream);
  9524. }
  9525. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9526. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9527. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9528. }
  9529. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  9530. return target;
  9531. }
  9532. size_t SCAddRobot::ByteSizeLong() const {
  9533. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  9534. size_t total_size = 0;
  9535. uint32_t cached_has_bits = 0;
  9536. // Prevent compiler warnings about cached_has_bits being unused
  9537. (void) cached_has_bits;
  9538. // .RemoNet.Robot robot = 1;
  9539. if (this->_internal_has_robot()) {
  9540. total_size += 1 +
  9541. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  9542. *robot_);
  9543. }
  9544. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9545. }
  9546. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  9547. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9548. SCAddRobot::MergeImpl
  9549. };
  9550. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  9551. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9552. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9553. static_cast<SCAddRobot *>(to)->MergeFrom(
  9554. static_cast<const SCAddRobot &>(from));
  9555. }
  9556. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  9557. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  9558. GOOGLE_DCHECK_NE(&from, this);
  9559. uint32_t cached_has_bits = 0;
  9560. (void) cached_has_bits;
  9561. if (from._internal_has_robot()) {
  9562. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  9563. }
  9564. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9565. }
  9566. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  9567. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  9568. if (&from == this) return;
  9569. Clear();
  9570. MergeFrom(from);
  9571. }
  9572. bool SCAddRobot::IsInitialized() const {
  9573. return true;
  9574. }
  9575. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  9576. using std::swap;
  9577. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9578. swap(robot_, other->robot_);
  9579. }
  9580. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  9581. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9582. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9583. file_level_metadata_protocol_2eproto[39]);
  9584. }
  9585. // ===================================================================
  9586. class SCDelRobot::_Internal {
  9587. public:
  9588. };
  9589. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9590. bool is_message_owned)
  9591. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9592. SharedCtor();
  9593. if (!is_message_owned) {
  9594. RegisterArenaDtor(arena);
  9595. }
  9596. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  9597. }
  9598. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  9599. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9600. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9601. ::memcpy(&peer_, &from.peer_,
  9602. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  9603. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  9604. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  9605. }
  9606. inline void SCDelRobot::SharedCtor() {
  9607. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9608. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  9609. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  9610. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  9611. }
  9612. SCDelRobot::~SCDelRobot() {
  9613. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  9614. if (GetArenaForAllocation() != nullptr) return;
  9615. SharedDtor();
  9616. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9617. }
  9618. inline void SCDelRobot::SharedDtor() {
  9619. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9620. }
  9621. void SCDelRobot::ArenaDtor(void* object) {
  9622. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  9623. (void)_this;
  9624. }
  9625. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9626. }
  9627. void SCDelRobot::SetCachedSize(int size) const {
  9628. _cached_size_.Set(size);
  9629. }
  9630. void SCDelRobot::Clear() {
  9631. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  9632. uint32_t cached_has_bits = 0;
  9633. // Prevent compiler warnings about cached_has_bits being unused
  9634. (void) cached_has_bits;
  9635. ::memset(&peer_, 0, static_cast<size_t>(
  9636. reinterpret_cast<char*>(&egotype_) -
  9637. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  9638. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9639. }
  9640. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9641. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9642. while (!ctx->Done(&ptr)) {
  9643. uint32_t tag;
  9644. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9645. switch (tag >> 3) {
  9646. // int32 peer = 1;
  9647. case 1:
  9648. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9649. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9650. CHK_(ptr);
  9651. } else
  9652. goto handle_unusual;
  9653. continue;
  9654. // int32 egotype = 2;
  9655. case 2:
  9656. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9657. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9658. CHK_(ptr);
  9659. } else
  9660. goto handle_unusual;
  9661. continue;
  9662. default:
  9663. goto handle_unusual;
  9664. } // switch
  9665. handle_unusual:
  9666. if ((tag == 0) || ((tag & 7) == 4)) {
  9667. CHK_(ptr);
  9668. ctx->SetLastTag(tag);
  9669. goto message_done;
  9670. }
  9671. ptr = UnknownFieldParse(
  9672. tag,
  9673. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9674. ptr, ctx);
  9675. CHK_(ptr != nullptr);
  9676. } // while
  9677. message_done:
  9678. return ptr;
  9679. failure:
  9680. ptr = nullptr;
  9681. goto message_done;
  9682. #undef CHK_
  9683. }
  9684. uint8_t* SCDelRobot::_InternalSerialize(
  9685. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9686. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  9687. uint32_t cached_has_bits = 0;
  9688. (void) cached_has_bits;
  9689. // int32 peer = 1;
  9690. if (this->_internal_peer() != 0) {
  9691. target = stream->EnsureSpace(target);
  9692. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  9693. }
  9694. // int32 egotype = 2;
  9695. if (this->_internal_egotype() != 0) {
  9696. target = stream->EnsureSpace(target);
  9697. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  9698. }
  9699. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9700. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9701. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9702. }
  9703. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  9704. return target;
  9705. }
  9706. size_t SCDelRobot::ByteSizeLong() const {
  9707. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  9708. size_t total_size = 0;
  9709. uint32_t cached_has_bits = 0;
  9710. // Prevent compiler warnings about cached_has_bits being unused
  9711. (void) cached_has_bits;
  9712. // int32 peer = 1;
  9713. if (this->_internal_peer() != 0) {
  9714. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  9715. }
  9716. // int32 egotype = 2;
  9717. if (this->_internal_egotype() != 0) {
  9718. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  9719. }
  9720. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9721. }
  9722. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  9723. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9724. SCDelRobot::MergeImpl
  9725. };
  9726. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  9727. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9728. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9729. static_cast<SCDelRobot *>(to)->MergeFrom(
  9730. static_cast<const SCDelRobot &>(from));
  9731. }
  9732. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  9733. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  9734. GOOGLE_DCHECK_NE(&from, this);
  9735. uint32_t cached_has_bits = 0;
  9736. (void) cached_has_bits;
  9737. if (from._internal_peer() != 0) {
  9738. _internal_set_peer(from._internal_peer());
  9739. }
  9740. if (from._internal_egotype() != 0) {
  9741. _internal_set_egotype(from._internal_egotype());
  9742. }
  9743. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9744. }
  9745. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  9746. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  9747. if (&from == this) return;
  9748. Clear();
  9749. MergeFrom(from);
  9750. }
  9751. bool SCDelRobot::IsInitialized() const {
  9752. return true;
  9753. }
  9754. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  9755. using std::swap;
  9756. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9757. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9758. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  9759. + sizeof(SCDelRobot::egotype_)
  9760. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  9761. reinterpret_cast<char*>(&peer_),
  9762. reinterpret_cast<char*>(&other->peer_));
  9763. }
  9764. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  9765. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9766. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9767. file_level_metadata_protocol_2eproto[40]);
  9768. }
  9769. // @@protoc_insertion_point(namespace_scope)
  9770. } // namespace RemoNet
  9771. PROTOBUF_NAMESPACE_OPEN
  9772. template<> PROTOBUF_NOINLINE ::RemoNet::SwitchDriver* Arena::CreateMaybeMessage< ::RemoNet::SwitchDriver >(Arena* arena) {
  9773. return Arena::CreateMessageInternal< ::RemoNet::SwitchDriver >(arena);
  9774. }
  9775. template<> PROTOBUF_NOINLINE ::RemoNet::NDTPos* Arena::CreateMaybeMessage< ::RemoNet::NDTPos >(Arena* arena) {
  9776. return Arena::CreateMessageInternal< ::RemoNet::NDTPos >(arena);
  9777. }
  9778. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::CSMoveBegin >(Arena* arena) {
  9779. return Arena::CreateMessageInternal< ::RemoNet::CSMoveBegin >(arena);
  9780. }
  9781. template<> PROTOBUF_NOINLINE ::RemoNet::MoveRet* Arena::CreateMaybeMessage< ::RemoNet::MoveRet >(Arena* arena) {
  9782. return Arena::CreateMessageInternal< ::RemoNet::MoveRet >(arena);
  9783. }
  9784. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::CSMoveEnd >(Arena* arena) {
  9785. return Arena::CreateMessageInternal< ::RemoNet::CSMoveEnd >(arena);
  9786. }
  9787. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::SCMoveBegin >(Arena* arena) {
  9788. return Arena::CreateMessageInternal< ::RemoNet::SCMoveBegin >(arena);
  9789. }
  9790. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::SCMoveEnd >(Arena* arena) {
  9791. return Arena::CreateMessageInternal< ::RemoNet::SCMoveEnd >(arena);
  9792. }
  9793. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  9794. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  9795. }
  9796. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  9797. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  9798. }
  9799. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  9800. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  9801. }
  9802. template<> PROTOBUF_NOINLINE ::RemoNet::CSState* Arena::CreateMaybeMessage< ::RemoNet::CSState >(Arena* arena) {
  9803. return Arena::CreateMessageInternal< ::RemoNet::CSState >(arena);
  9804. }
  9805. template<> PROTOBUF_NOINLINE ::RemoNet::SCState* Arena::CreateMaybeMessage< ::RemoNet::SCState >(Arena* arena) {
  9806. return Arena::CreateMessageInternal< ::RemoNet::SCState >(arena);
  9807. }
  9808. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  9809. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  9810. }
  9811. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  9812. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  9813. }
  9814. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  9815. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  9816. }
  9817. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  9818. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  9819. }
  9820. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  9821. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  9822. }
  9823. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  9824. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  9825. }
  9826. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  9827. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  9828. }
  9829. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  9830. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  9831. }
  9832. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  9833. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  9834. }
  9835. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  9836. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  9837. }
  9838. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  9839. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  9840. }
  9841. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  9842. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  9843. }
  9844. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  9845. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  9846. }
  9847. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  9848. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  9849. }
  9850. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  9851. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  9852. }
  9853. template<> PROTOBUF_NOINLINE ::RemoNet::SyncTime* Arena::CreateMaybeMessage< ::RemoNet::SyncTime >(Arena* arena) {
  9854. return Arena::CreateMessageInternal< ::RemoNet::SyncTime >(arena);
  9855. }
  9856. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  9857. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  9858. }
  9859. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  9860. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  9861. }
  9862. template<> PROTOBUF_NOINLINE ::RemoNet::radar_node* Arena::CreateMaybeMessage< ::RemoNet::radar_node >(Arena* arena) {
  9863. return Arena::CreateMessageInternal< ::RemoNet::radar_node >(arena);
  9864. }
  9865. template<> PROTOBUF_NOINLINE ::RemoNet::CCSensor* Arena::CreateMaybeMessage< ::RemoNet::CCSensor >(Arena* arena) {
  9866. return Arena::CreateMessageInternal< ::RemoNet::CCSensor >(arena);
  9867. }
  9868. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  9869. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  9870. }
  9871. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  9872. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  9873. }
  9874. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  9875. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  9876. }
  9877. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  9878. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  9879. }
  9880. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  9881. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  9882. }
  9883. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  9884. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  9885. }
  9886. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  9887. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  9888. }
  9889. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  9890. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  9891. }
  9892. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  9893. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  9894. }
  9895. PROTOBUF_NAMESPACE_CLOSE
  9896. // @@protoc_insertion_point(global_scope)
  9897. #include <google/protobuf/port_undef.inc>