protocol.pb.cc 442 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: protocol.proto
  3. #include "protocol.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace RemoNet {
  16. constexpr SwitchDriver::SwitchDriver(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : peer_(0){}
  19. struct SwitchDriverDefaultTypeInternal {
  20. constexpr SwitchDriverDefaultTypeInternal()
  21. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  22. ~SwitchDriverDefaultTypeInternal() {}
  23. union {
  24. SwitchDriver _instance;
  25. };
  26. };
  27. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SwitchDriverDefaultTypeInternal _SwitchDriver_default_instance_;
  28. constexpr NDTPos::NDTPos(
  29. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  30. : x_(0)
  31. , y_(0)
  32. , z_(0)
  33. , rx_(0)
  34. , ry_(0)
  35. , rz_(0)
  36. , rw_(0){}
  37. struct NDTPosDefaultTypeInternal {
  38. constexpr NDTPosDefaultTypeInternal()
  39. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  40. ~NDTPosDefaultTypeInternal() {}
  41. union {
  42. NDTPos _instance;
  43. };
  44. };
  45. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NDTPosDefaultTypeInternal _NDTPos_default_instance_;
  46. constexpr CSMoveBegin::CSMoveBegin(
  47. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  48. : peer_(0)
  49. , area_(0)
  50. , no_(0){}
  51. struct CSMoveBeginDefaultTypeInternal {
  52. constexpr CSMoveBeginDefaultTypeInternal()
  53. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  54. ~CSMoveBeginDefaultTypeInternal() {}
  55. union {
  56. CSMoveBegin _instance;
  57. };
  58. };
  59. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveBeginDefaultTypeInternal _CSMoveBegin_default_instance_;
  60. constexpr MoveRet::MoveRet(
  61. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  62. : desc_(0)
  63. , peer_(0){}
  64. struct MoveRetDefaultTypeInternal {
  65. constexpr MoveRetDefaultTypeInternal()
  66. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  67. ~MoveRetDefaultTypeInternal() {}
  68. union {
  69. MoveRet _instance;
  70. };
  71. };
  72. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveRetDefaultTypeInternal _MoveRet_default_instance_;
  73. constexpr CSMoveEnd::CSMoveEnd(
  74. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  75. : area_(0)
  76. , no_(0)
  77. , uid_(0){}
  78. struct CSMoveEndDefaultTypeInternal {
  79. constexpr CSMoveEndDefaultTypeInternal()
  80. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  81. ~CSMoveEndDefaultTypeInternal() {}
  82. union {
  83. CSMoveEnd _instance;
  84. };
  85. };
  86. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSMoveEndDefaultTypeInternal _CSMoveEnd_default_instance_;
  87. constexpr SCMoveBegin::SCMoveBegin(
  88. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  89. : uid_(0)
  90. , area_(0)
  91. , no_(0)
  92. , x_(0)
  93. , y_(0){}
  94. struct SCMoveBeginDefaultTypeInternal {
  95. constexpr SCMoveBeginDefaultTypeInternal()
  96. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  97. ~SCMoveBeginDefaultTypeInternal() {}
  98. union {
  99. SCMoveBegin _instance;
  100. };
  101. };
  102. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveBeginDefaultTypeInternal _SCMoveBegin_default_instance_;
  103. constexpr SCMoveEnd::SCMoveEnd(
  104. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  105. : area_(0)
  106. , no_(0)
  107. , uid_(0){}
  108. struct SCMoveEndDefaultTypeInternal {
  109. constexpr SCMoveEndDefaultTypeInternal()
  110. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  111. ~SCMoveEndDefaultTypeInternal() {}
  112. union {
  113. SCMoveEnd _instance;
  114. };
  115. };
  116. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCMoveEndDefaultTypeInternal _SCMoveEnd_default_instance_;
  117. constexpr CSAdd::CSAdd(
  118. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  119. : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  120. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  121. , type_(0)
  122. , car_(0){}
  123. struct CSAddDefaultTypeInternal {
  124. constexpr CSAddDefaultTypeInternal()
  125. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  126. ~CSAddDefaultTypeInternal() {}
  127. union {
  128. CSAdd _instance;
  129. };
  130. };
  131. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_;
  132. constexpr SCAdd::SCAdd(
  133. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  134. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  135. , ret_(false)
  136. , uid_(0)
  137. , car_(0){}
  138. struct SCAddDefaultTypeInternal {
  139. constexpr SCAddDefaultTypeInternal()
  140. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  141. ~SCAddDefaultTypeInternal() {}
  142. union {
  143. SCAdd _instance;
  144. };
  145. };
  146. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_;
  147. constexpr SCKickOff::SCKickOff(
  148. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  149. struct SCKickOffDefaultTypeInternal {
  150. constexpr SCKickOffDefaultTypeInternal()
  151. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  152. ~SCKickOffDefaultTypeInternal() {}
  153. union {
  154. SCKickOff _instance;
  155. };
  156. };
  157. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCKickOffDefaultTypeInternal _SCKickOff_default_instance_;
  158. constexpr CSState::CSState(
  159. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  160. : state_(0)
  161. , uid_(0){}
  162. struct CSStateDefaultTypeInternal {
  163. constexpr CSStateDefaultTypeInternal()
  164. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  165. ~CSStateDefaultTypeInternal() {}
  166. union {
  167. CSState _instance;
  168. };
  169. };
  170. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSStateDefaultTypeInternal _CSState_default_instance_;
  171. constexpr SCState::SCState(
  172. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  173. : state_(0)
  174. , uid_(0){}
  175. struct SCStateDefaultTypeInternal {
  176. constexpr SCStateDefaultTypeInternal()
  177. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  178. ~SCStateDefaultTypeInternal() {}
  179. union {
  180. SCState _instance;
  181. };
  182. };
  183. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCStateDefaultTypeInternal _SCState_default_instance_;
  184. constexpr Robot::Robot(
  185. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  186. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  187. , rid_(0)
  188. , type_(0)
  189. , state_(0)
  190. , cartype_(0){}
  191. struct RobotDefaultTypeInternal {
  192. constexpr RobotDefaultTypeInternal()
  193. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  194. ~RobotDefaultTypeInternal() {}
  195. union {
  196. Robot _instance;
  197. };
  198. };
  199. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  200. constexpr CSRobot::CSRobot(
  201. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  202. struct CSRobotDefaultTypeInternal {
  203. constexpr CSRobotDefaultTypeInternal()
  204. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  205. ~CSRobotDefaultTypeInternal() {}
  206. union {
  207. CSRobot _instance;
  208. };
  209. };
  210. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  211. constexpr SCRobot::SCRobot(
  212. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  213. : robot_(){}
  214. struct SCRobotDefaultTypeInternal {
  215. constexpr SCRobotDefaultTypeInternal()
  216. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  217. ~SCRobotDefaultTypeInternal() {}
  218. union {
  219. SCRobot _instance;
  220. };
  221. };
  222. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  223. constexpr CSSign::CSSign(
  224. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  225. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  226. , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  227. struct CSSignDefaultTypeInternal {
  228. constexpr CSSignDefaultTypeInternal()
  229. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  230. ~CSSignDefaultTypeInternal() {}
  231. union {
  232. CSSign _instance;
  233. };
  234. };
  235. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSignDefaultTypeInternal _CSSign_default_instance_;
  236. constexpr SCSign::SCSign(
  237. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  238. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  239. , ret_(false)
  240. , uid_(0){}
  241. struct SCSignDefaultTypeInternal {
  242. constexpr SCSignDefaultTypeInternal()
  243. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  244. ~SCSignDefaultTypeInternal() {}
  245. union {
  246. SCSign _instance;
  247. };
  248. };
  249. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSignDefaultTypeInternal _SCSign_default_instance_;
  250. constexpr CSReq::CSReq(
  251. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  252. : peer_(0)
  253. , index_(0)
  254. , egotype_(0){}
  255. struct CSReqDefaultTypeInternal {
  256. constexpr CSReqDefaultTypeInternal()
  257. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  258. ~CSReqDefaultTypeInternal() {}
  259. union {
  260. CSReq _instance;
  261. };
  262. };
  263. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  264. constexpr SCReq::SCReq(
  265. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  266. : desc_(0)
  267. , peer_(0)
  268. , egotype_(0){}
  269. struct SCReqDefaultTypeInternal {
  270. constexpr SCReqDefaultTypeInternal()
  271. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  272. ~SCReqDefaultTypeInternal() {}
  273. union {
  274. SCReq _instance;
  275. };
  276. };
  277. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  278. constexpr CSRep::CSRep(
  279. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  280. : desc_(0)
  281. , peer_(0)
  282. , index_(0)
  283. , egotype_(0){}
  284. struct CSRepDefaultTypeInternal {
  285. constexpr CSRepDefaultTypeInternal()
  286. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  287. ~CSRepDefaultTypeInternal() {}
  288. union {
  289. CSRep _instance;
  290. };
  291. };
  292. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  293. constexpr SCRep::SCRep(
  294. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  295. : desc_(0)
  296. , index_(0)
  297. , egotype_(0)
  298. , peer_(0){}
  299. struct SCRepDefaultTypeInternal {
  300. constexpr SCRepDefaultTypeInternal()
  301. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  302. ~SCRepDefaultTypeInternal() {}
  303. union {
  304. SCRep _instance;
  305. };
  306. };
  307. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  308. constexpr Offer::Offer(
  309. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  310. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  311. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  312. , index_(0)
  313. , peer_(0){}
  314. struct OfferDefaultTypeInternal {
  315. constexpr OfferDefaultTypeInternal()
  316. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  317. ~OfferDefaultTypeInternal() {}
  318. union {
  319. Offer _instance;
  320. };
  321. };
  322. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  323. constexpr Answer::Answer(
  324. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  325. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  326. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  327. , index_(0)
  328. , peer_(0){}
  329. struct AnswerDefaultTypeInternal {
  330. constexpr AnswerDefaultTypeInternal()
  331. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  332. ~AnswerDefaultTypeInternal() {}
  333. union {
  334. Answer _instance;
  335. };
  336. };
  337. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  338. constexpr Candidate::Candidate(
  339. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  340. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  341. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  342. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  343. , index_(0)
  344. , peer_(0)
  345. , sdpmlineindex_(0)
  346. , egotype_(0){}
  347. struct CandidateDefaultTypeInternal {
  348. constexpr CandidateDefaultTypeInternal()
  349. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  350. ~CandidateDefaultTypeInternal() {}
  351. union {
  352. Candidate _instance;
  353. };
  354. };
  355. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  356. constexpr Leave::Leave(
  357. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  358. : peer_(0)
  359. , egotype_(0){}
  360. struct LeaveDefaultTypeInternal {
  361. constexpr LeaveDefaultTypeInternal()
  362. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  363. ~LeaveDefaultTypeInternal() {}
  364. union {
  365. Leave _instance;
  366. };
  367. };
  368. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  369. constexpr Close::Close(
  370. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  371. : peer_(0)
  372. , egotype_(0)
  373. , index_(0){}
  374. struct CloseDefaultTypeInternal {
  375. constexpr CloseDefaultTypeInternal()
  376. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  377. ~CloseDefaultTypeInternal() {}
  378. union {
  379. Close _instance;
  380. };
  381. };
  382. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloseDefaultTypeInternal _Close_default_instance_;
  383. constexpr TestTextReq::TestTextReq(
  384. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  385. : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  386. struct TestTextReqDefaultTypeInternal {
  387. constexpr TestTextReqDefaultTypeInternal()
  388. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  389. ~TestTextReqDefaultTypeInternal() {}
  390. union {
  391. TestTextReq _instance;
  392. };
  393. };
  394. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TestTextReqDefaultTypeInternal _TestTextReq_default_instance_;
  395. constexpr SyncTime::SyncTime(
  396. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  397. : tm_sec_(0)
  398. , tm_min_(0)
  399. , tm_hour_(0)
  400. , tm_mday_(0)
  401. , tm_mon_(0)
  402. , tm_year_(0)
  403. , tm_wday_(0)
  404. , tm_yday_(0)
  405. , tm_isdst_(0)
  406. , update_time_(false){}
  407. struct SyncTimeDefaultTypeInternal {
  408. constexpr SyncTimeDefaultTypeInternal()
  409. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  410. ~SyncTimeDefaultTypeInternal() {}
  411. union {
  412. SyncTime _instance;
  413. };
  414. };
  415. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SyncTimeDefaultTypeInternal _SyncTime_default_instance_;
  416. constexpr CCAskDataChannel::CCAskDataChannel(
  417. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  418. struct CCAskDataChannelDefaultTypeInternal {
  419. constexpr CCAskDataChannelDefaultTypeInternal()
  420. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  421. ~CCAskDataChannelDefaultTypeInternal() {}
  422. union {
  423. CCAskDataChannel _instance;
  424. };
  425. };
  426. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCAskDataChannelDefaultTypeInternal _CCAskDataChannel_default_instance_;
  427. constexpr IMuMessage::IMuMessage(
  428. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  429. : rx_(0)
  430. , ry_(0){}
  431. struct IMuMessageDefaultTypeInternal {
  432. constexpr IMuMessageDefaultTypeInternal()
  433. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  434. ~IMuMessageDefaultTypeInternal() {}
  435. union {
  436. IMuMessage _instance;
  437. };
  438. };
  439. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IMuMessageDefaultTypeInternal _IMuMessage_default_instance_;
  440. constexpr CCPing::CCPing(
  441. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  442. : tick_(int64_t{0})
  443. , temp_(0){}
  444. struct CCPingDefaultTypeInternal {
  445. constexpr CCPingDefaultTypeInternal()
  446. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  447. ~CCPingDefaultTypeInternal() {}
  448. union {
  449. CCPing _instance;
  450. };
  451. };
  452. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  453. constexpr radar_node::radar_node(
  454. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  455. : id_(0)
  456. , range_(0){}
  457. struct radar_nodeDefaultTypeInternal {
  458. constexpr radar_nodeDefaultTypeInternal()
  459. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  460. ~radar_nodeDefaultTypeInternal() {}
  461. union {
  462. radar_node _instance;
  463. };
  464. };
  465. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT radar_nodeDefaultTypeInternal _radar_node_default_instance_;
  466. constexpr CCRadarMessage::CCRadarMessage(
  467. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  468. : radar0_(0)
  469. , radar1_(0)
  470. , radar2_(0)
  471. , radar3_(0)
  472. , radar4_(0)
  473. , radar5_(0)
  474. , radar6_(0)
  475. , radar7_(0){}
  476. struct CCRadarMessageDefaultTypeInternal {
  477. constexpr CCRadarMessageDefaultTypeInternal()
  478. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  479. ~CCRadarMessageDefaultTypeInternal() {}
  480. union {
  481. CCRadarMessage _instance;
  482. };
  483. };
  484. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  485. constexpr CCSensor::CCSensor(
  486. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  487. : node_()
  488. , left_encode_(0)
  489. , right_encode_(0){}
  490. struct CCSensorDefaultTypeInternal {
  491. constexpr CCSensorDefaultTypeInternal()
  492. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  493. ~CCSensorDefaultTypeInternal() {}
  494. union {
  495. CCSensor _instance;
  496. };
  497. };
  498. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSensorDefaultTypeInternal _CCSensor_default_instance_;
  499. constexpr CCSwitch::CCSwitch(
  500. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  501. : front_(false){}
  502. struct CCSwitchDefaultTypeInternal {
  503. constexpr CCSwitchDefaultTypeInternal()
  504. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  505. ~CCSwitchDefaultTypeInternal() {}
  506. union {
  507. CCSwitch _instance;
  508. };
  509. };
  510. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  511. constexpr State::State(
  512. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  513. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  514. , all_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  515. , engine_speed_(0)
  516. , travel_speed_(0)
  517. , fuel_level_(0)
  518. , engine_temperature_(0)
  519. , hydraulic_oil_temperature_(0)
  520. , main_pump_1_pressure_(0)
  521. , main_pump_2_pressure_(0)
  522. , hand_gear_(0)
  523. , actual_gear_(0)
  524. , gripper_height_(0)
  525. , amplitude_(0)
  526. , boom_angle_(0)
  527. , stick_angle_(0)
  528. , idle_protection_(0)
  529. , front_toggle_(0)
  530. , back_toggle_(0)
  531. , interlock_(0)
  532. , safety_switch_(0)
  533. , arm_lift_pilot_(0)
  534. , arm_lowering_pilot_(0)
  535. , lever_lifting_pilot_(0)
  536. , rod_lowering_pilot_(0)
  537. , left_rotary_pilot_(0)
  538. , right_rotary_pilot_(0)
  539. , grab_open_pilot_(0)
  540. , grab_close_pilot_(0)
  541. , safety_valves_(0)
  542. , function_code_(0)
  543. , main_add_(0)
  544. , sub_add_(0)
  545. , paramter_(0)
  546. , engine_spn_(0)
  547. , engine_fmi_(0)
  548. , engine_num_(0){}
  549. struct StateDefaultTypeInternal {
  550. constexpr StateDefaultTypeInternal()
  551. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  552. ~StateDefaultTypeInternal() {}
  553. union {
  554. State _instance;
  555. };
  556. };
  557. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  558. constexpr LidarPoint::LidarPoint(
  559. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  560. : data_()
  561. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  562. , timestamp_(0)
  563. , seq_(0u)
  564. , height_(0u)
  565. , width_(0u)
  566. , is_dense_(false)
  567. , is_left_(false){}
  568. struct LidarPointDefaultTypeInternal {
  569. constexpr LidarPointDefaultTypeInternal()
  570. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  571. ~LidarPointDefaultTypeInternal() {}
  572. union {
  573. LidarPoint _instance;
  574. };
  575. };
  576. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  577. constexpr SensorStop::SensorStop(
  578. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  579. struct SensorStopDefaultTypeInternal {
  580. constexpr SensorStopDefaultTypeInternal()
  581. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  582. ~SensorStopDefaultTypeInternal() {}
  583. union {
  584. SensorStop _instance;
  585. };
  586. };
  587. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  588. constexpr StopAck::StopAck(
  589. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  590. struct StopAckDefaultTypeInternal {
  591. constexpr StopAckDefaultTypeInternal()
  592. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  593. ~StopAckDefaultTypeInternal() {}
  594. union {
  595. StopAck _instance;
  596. };
  597. };
  598. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  599. constexpr can_net_frame::can_net_frame(
  600. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  601. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  602. , dlc_(0)
  603. , canid_(0){}
  604. struct can_net_frameDefaultTypeInternal {
  605. constexpr can_net_frameDefaultTypeInternal()
  606. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  607. ~can_net_frameDefaultTypeInternal() {}
  608. union {
  609. can_net_frame _instance;
  610. };
  611. };
  612. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  613. constexpr CCCanMsg::CCCanMsg(
  614. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  615. : frams_(){}
  616. struct CCCanMsgDefaultTypeInternal {
  617. constexpr CCCanMsgDefaultTypeInternal()
  618. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  619. ~CCCanMsgDefaultTypeInternal() {}
  620. union {
  621. CCCanMsg _instance;
  622. };
  623. };
  624. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  625. constexpr SCAddRobot::SCAddRobot(
  626. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  627. : robot_(nullptr){}
  628. struct SCAddRobotDefaultTypeInternal {
  629. constexpr SCAddRobotDefaultTypeInternal()
  630. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  631. ~SCAddRobotDefaultTypeInternal() {}
  632. union {
  633. SCAddRobot _instance;
  634. };
  635. };
  636. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  637. constexpr SCDelRobot::SCDelRobot(
  638. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  639. : peer_(0)
  640. , egotype_(0){}
  641. struct SCDelRobotDefaultTypeInternal {
  642. constexpr SCDelRobotDefaultTypeInternal()
  643. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  644. ~SCDelRobotDefaultTypeInternal() {}
  645. union {
  646. SCDelRobot _instance;
  647. };
  648. };
  649. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  650. } // namespace RemoNet
  651. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[43];
  652. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[6];
  653. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  654. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  655. ~0u, // no _has_bits_
  656. PROTOBUF_FIELD_OFFSET(::RemoNet::SwitchDriver, _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::SwitchDriver, peer_),
  662. ~0u, // no _has_bits_
  663. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, _internal_metadata_),
  664. ~0u, // no _extensions_
  665. ~0u, // no _oneof_case_
  666. ~0u, // no _weak_field_map_
  667. ~0u, // no _inlined_string_donated_
  668. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, x_),
  669. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, y_),
  670. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, z_),
  671. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rx_),
  672. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, ry_),
  673. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rz_),
  674. PROTOBUF_FIELD_OFFSET(::RemoNet::NDTPos, rw_),
  675. ~0u, // no _has_bits_
  676. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, _internal_metadata_),
  677. ~0u, // no _extensions_
  678. ~0u, // no _oneof_case_
  679. ~0u, // no _weak_field_map_
  680. ~0u, // no _inlined_string_donated_
  681. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, peer_),
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, area_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveBegin, no_),
  684. ~0u, // no _has_bits_
  685. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, _internal_metadata_),
  686. ~0u, // no _extensions_
  687. ~0u, // no _oneof_case_
  688. ~0u, // no _weak_field_map_
  689. ~0u, // no _inlined_string_donated_
  690. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, desc_),
  691. PROTOBUF_FIELD_OFFSET(::RemoNet::MoveRet, peer_),
  692. ~0u, // no _has_bits_
  693. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, _internal_metadata_),
  694. ~0u, // no _extensions_
  695. ~0u, // no _oneof_case_
  696. ~0u, // no _weak_field_map_
  697. ~0u, // no _inlined_string_donated_
  698. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, area_),
  699. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, no_),
  700. PROTOBUF_FIELD_OFFSET(::RemoNet::CSMoveEnd, uid_),
  701. ~0u, // no _has_bits_
  702. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, _internal_metadata_),
  703. ~0u, // no _extensions_
  704. ~0u, // no _oneof_case_
  705. ~0u, // no _weak_field_map_
  706. ~0u, // no _inlined_string_donated_
  707. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, uid_),
  708. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, area_),
  709. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, no_),
  710. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, x_),
  711. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveBegin, y_),
  712. ~0u, // no _has_bits_
  713. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, _internal_metadata_),
  714. ~0u, // no _extensions_
  715. ~0u, // no _oneof_case_
  716. ~0u, // no _weak_field_map_
  717. ~0u, // no _inlined_string_donated_
  718. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, area_),
  719. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, no_),
  720. PROTOBUF_FIELD_OFFSET(::RemoNet::SCMoveEnd, uid_),
  721. ~0u, // no _has_bits_
  722. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  723. ~0u, // no _extensions_
  724. ~0u, // no _oneof_case_
  725. ~0u, // no _weak_field_map_
  726. ~0u, // no _inlined_string_donated_
  727. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  728. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  729. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  730. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, car_),
  731. ~0u, // no _has_bits_
  732. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  733. ~0u, // no _extensions_
  734. ~0u, // no _oneof_case_
  735. ~0u, // no _weak_field_map_
  736. ~0u, // no _inlined_string_donated_
  737. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  738. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  739. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  740. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, car_),
  741. ~0u, // no _has_bits_
  742. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  743. ~0u, // no _extensions_
  744. ~0u, // no _oneof_case_
  745. ~0u, // no _weak_field_map_
  746. ~0u, // no _inlined_string_donated_
  747. ~0u, // no _has_bits_
  748. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, _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::CSState, state_),
  754. PROTOBUF_FIELD_OFFSET(::RemoNet::CSState, uid_),
  755. ~0u, // no _has_bits_
  756. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, _internal_metadata_),
  757. ~0u, // no _extensions_
  758. ~0u, // no _oneof_case_
  759. ~0u, // no _weak_field_map_
  760. ~0u, // no _inlined_string_donated_
  761. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, state_),
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::SCState, uid_),
  763. ~0u, // no _has_bits_
  764. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _internal_metadata_),
  765. ~0u, // no _extensions_
  766. ~0u, // no _oneof_case_
  767. ~0u, // no _weak_field_map_
  768. ~0u, // no _inlined_string_donated_
  769. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, rid_),
  770. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  772. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, cartype_),
  774. ~0u, // no _has_bits_
  775. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  776. ~0u, // no _extensions_
  777. ~0u, // no _oneof_case_
  778. ~0u, // no _weak_field_map_
  779. ~0u, // no _inlined_string_donated_
  780. ~0u, // no _has_bits_
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  782. ~0u, // no _extensions_
  783. ~0u, // no _oneof_case_
  784. ~0u, // no _weak_field_map_
  785. ~0u, // no _inlined_string_donated_
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  787. ~0u, // no _has_bits_
  788. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  789. ~0u, // no _extensions_
  790. ~0u, // no _oneof_case_
  791. ~0u, // no _weak_field_map_
  792. ~0u, // no _inlined_string_donated_
  793. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  795. ~0u, // no _has_bits_
  796. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _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::SCSign, ret_),
  802. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  804. ~0u, // no _has_bits_
  805. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  806. ~0u, // no _extensions_
  807. ~0u, // no _oneof_case_
  808. ~0u, // no _weak_field_map_
  809. ~0u, // no _inlined_string_donated_
  810. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  811. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  812. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  813. ~0u, // no _has_bits_
  814. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  815. ~0u, // no _extensions_
  816. ~0u, // no _oneof_case_
  817. ~0u, // no _weak_field_map_
  818. ~0u, // no _inlined_string_donated_
  819. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  820. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  821. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  822. ~0u, // no _has_bits_
  823. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  824. ~0u, // no _extensions_
  825. ~0u, // no _oneof_case_
  826. ~0u, // no _weak_field_map_
  827. ~0u, // no _inlined_string_donated_
  828. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  829. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  830. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  831. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  832. ~0u, // no _has_bits_
  833. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  834. ~0u, // no _extensions_
  835. ~0u, // no _oneof_case_
  836. ~0u, // no _weak_field_map_
  837. ~0u, // no _inlined_string_donated_
  838. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  839. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  840. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  842. ~0u, // no _has_bits_
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _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::Offer, index_),
  849. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  851. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  852. ~0u, // no _has_bits_
  853. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  854. ~0u, // no _extensions_
  855. ~0u, // no _oneof_case_
  856. ~0u, // no _weak_field_map_
  857. ~0u, // no _inlined_string_donated_
  858. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  859. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  860. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  861. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  862. ~0u, // no _has_bits_
  863. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  864. ~0u, // no _extensions_
  865. ~0u, // no _oneof_case_
  866. ~0u, // no _weak_field_map_
  867. ~0u, // no _inlined_string_donated_
  868. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  869. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  870. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  871. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  872. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  873. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  874. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  875. ~0u, // no _has_bits_
  876. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _internal_metadata_),
  877. ~0u, // no _extensions_
  878. ~0u, // no _oneof_case_
  879. ~0u, // no _weak_field_map_
  880. ~0u, // no _inlined_string_donated_
  881. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, peer_),
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  883. ~0u, // no _has_bits_
  884. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _internal_metadata_),
  885. ~0u, // no _extensions_
  886. ~0u, // no _oneof_case_
  887. ~0u, // no _weak_field_map_
  888. ~0u, // no _inlined_string_donated_
  889. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, peer_),
  890. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  891. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  892. ~0u, // no _has_bits_
  893. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _internal_metadata_),
  894. ~0u, // no _extensions_
  895. ~0u, // no _oneof_case_
  896. ~0u, // no _weak_field_map_
  897. ~0u, // no _inlined_string_donated_
  898. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, text_),
  899. ~0u, // no _has_bits_
  900. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, _internal_metadata_),
  901. ~0u, // no _extensions_
  902. ~0u, // no _oneof_case_
  903. ~0u, // no _weak_field_map_
  904. ~0u, // no _inlined_string_donated_
  905. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_sec_),
  906. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_min_),
  907. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_hour_),
  908. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mday_),
  909. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_mon_),
  910. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_year_),
  911. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_wday_),
  912. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_yday_),
  913. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, tm_isdst_),
  914. PROTOBUF_FIELD_OFFSET(::RemoNet::SyncTime, update_time_),
  915. ~0u, // no _has_bits_
  916. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  917. ~0u, // no _extensions_
  918. ~0u, // no _oneof_case_
  919. ~0u, // no _weak_field_map_
  920. ~0u, // no _inlined_string_donated_
  921. ~0u, // no _has_bits_
  922. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  923. ~0u, // no _extensions_
  924. ~0u, // no _oneof_case_
  925. ~0u, // no _weak_field_map_
  926. ~0u, // no _inlined_string_donated_
  927. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  928. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  929. ~0u, // no _has_bits_
  930. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  931. ~0u, // no _extensions_
  932. ~0u, // no _oneof_case_
  933. ~0u, // no _weak_field_map_
  934. ~0u, // no _inlined_string_donated_
  935. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  936. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, temp_),
  937. ~0u, // no _has_bits_
  938. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, _internal_metadata_),
  939. ~0u, // no _extensions_
  940. ~0u, // no _oneof_case_
  941. ~0u, // no _weak_field_map_
  942. ~0u, // no _inlined_string_donated_
  943. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, id_),
  944. PROTOBUF_FIELD_OFFSET(::RemoNet::radar_node, range_),
  945. ~0u, // no _has_bits_
  946. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  947. ~0u, // no _extensions_
  948. ~0u, // no _oneof_case_
  949. ~0u, // no _weak_field_map_
  950. ~0u, // no _inlined_string_donated_
  951. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  952. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  953. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  954. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  955. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  956. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  957. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  958. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  959. ~0u, // no _has_bits_
  960. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, _internal_metadata_),
  961. ~0u, // no _extensions_
  962. ~0u, // no _oneof_case_
  963. ~0u, // no _weak_field_map_
  964. ~0u, // no _inlined_string_donated_
  965. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, node_),
  966. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, left_encode_),
  967. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSensor, right_encode_),
  968. ~0u, // no _has_bits_
  969. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  970. ~0u, // no _extensions_
  971. ~0u, // no _oneof_case_
  972. ~0u, // no _weak_field_map_
  973. ~0u, // no _inlined_string_donated_
  974. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  975. ~0u, // no _has_bits_
  976. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  977. ~0u, // no _extensions_
  978. ~0u, // no _oneof_case_
  979. ~0u, // no _weak_field_map_
  980. ~0u, // no _inlined_string_donated_
  981. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_speed_),
  982. PROTOBUF_FIELD_OFFSET(::RemoNet::State, travel_speed_),
  983. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  984. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_temperature_),
  985. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hydraulic_oil_temperature_),
  986. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_1_pressure_),
  987. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_2_pressure_),
  988. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hand_gear_),
  989. PROTOBUF_FIELD_OFFSET(::RemoNet::State, actual_gear_),
  990. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gripper_height_),
  991. PROTOBUF_FIELD_OFFSET(::RemoNet::State, amplitude_),
  992. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_angle_),
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::State, stick_angle_),
  994. PROTOBUF_FIELD_OFFSET(::RemoNet::State, idle_protection_),
  995. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_toggle_),
  996. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_toggle_),
  997. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  998. PROTOBUF_FIELD_OFFSET(::RemoNet::State, interlock_),
  999. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_switch_),
  1000. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lift_pilot_),
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lowering_pilot_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lever_lifting_pilot_),
  1003. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_lowering_pilot_),
  1004. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_rotary_pilot_),
  1005. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_rotary_pilot_),
  1006. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_open_pilot_),
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_close_pilot_),
  1008. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_valves_),
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::State, function_code_),
  1010. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_add_),
  1011. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sub_add_),
  1012. PROTOBUF_FIELD_OFFSET(::RemoNet::State, paramter_),
  1013. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_spn_),
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_fmi_),
  1015. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_num_),
  1016. PROTOBUF_FIELD_OFFSET(::RemoNet::State, all_buff_),
  1017. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  1018. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _internal_metadata_),
  1019. ~0u, // no _extensions_
  1020. ~0u, // no _oneof_case_
  1021. ~0u, // no _weak_field_map_
  1022. ~0u, // no _inlined_string_donated_
  1023. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, timestamp_),
  1024. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  1025. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  1026. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  1027. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  1028. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  1029. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  1031. 1,
  1032. 2,
  1033. 0,
  1034. 3,
  1035. 4,
  1036. 5,
  1037. 6,
  1038. ~0u,
  1039. ~0u, // no _has_bits_
  1040. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  1041. ~0u, // no _extensions_
  1042. ~0u, // no _oneof_case_
  1043. ~0u, // no _weak_field_map_
  1044. ~0u, // no _inlined_string_donated_
  1045. ~0u, // no _has_bits_
  1046. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  1047. ~0u, // no _extensions_
  1048. ~0u, // no _oneof_case_
  1049. ~0u, // no _weak_field_map_
  1050. ~0u, // no _inlined_string_donated_
  1051. ~0u, // no _has_bits_
  1052. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1053. ~0u, // no _extensions_
  1054. ~0u, // no _oneof_case_
  1055. ~0u, // no _weak_field_map_
  1056. ~0u, // no _inlined_string_donated_
  1057. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1058. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1059. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1060. ~0u, // no _has_bits_
  1061. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1062. ~0u, // no _extensions_
  1063. ~0u, // no _oneof_case_
  1064. ~0u, // no _weak_field_map_
  1065. ~0u, // no _inlined_string_donated_
  1066. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1067. ~0u, // no _has_bits_
  1068. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  1069. ~0u, // no _extensions_
  1070. ~0u, // no _oneof_case_
  1071. ~0u, // no _weak_field_map_
  1072. ~0u, // no _inlined_string_donated_
  1073. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  1074. ~0u, // no _has_bits_
  1075. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  1076. ~0u, // no _extensions_
  1077. ~0u, // no _oneof_case_
  1078. ~0u, // no _weak_field_map_
  1079. ~0u, // no _inlined_string_donated_
  1080. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  1081. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  1082. };
  1083. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1084. { 0, -1, -1, sizeof(::RemoNet::SwitchDriver)},
  1085. { 7, -1, -1, sizeof(::RemoNet::NDTPos)},
  1086. { 20, -1, -1, sizeof(::RemoNet::CSMoveBegin)},
  1087. { 29, -1, -1, sizeof(::RemoNet::MoveRet)},
  1088. { 37, -1, -1, sizeof(::RemoNet::CSMoveEnd)},
  1089. { 46, -1, -1, sizeof(::RemoNet::SCMoveBegin)},
  1090. { 57, -1, -1, sizeof(::RemoNet::SCMoveEnd)},
  1091. { 66, -1, -1, sizeof(::RemoNet::CSAdd)},
  1092. { 76, -1, -1, sizeof(::RemoNet::SCAdd)},
  1093. { 86, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1094. { 92, -1, -1, sizeof(::RemoNet::CSState)},
  1095. { 100, -1, -1, sizeof(::RemoNet::SCState)},
  1096. { 108, -1, -1, sizeof(::RemoNet::Robot)},
  1097. { 119, -1, -1, sizeof(::RemoNet::CSRobot)},
  1098. { 125, -1, -1, sizeof(::RemoNet::SCRobot)},
  1099. { 132, -1, -1, sizeof(::RemoNet::CSSign)},
  1100. { 140, -1, -1, sizeof(::RemoNet::SCSign)},
  1101. { 149, -1, -1, sizeof(::RemoNet::CSReq)},
  1102. { 158, -1, -1, sizeof(::RemoNet::SCReq)},
  1103. { 167, -1, -1, sizeof(::RemoNet::CSRep)},
  1104. { 177, -1, -1, sizeof(::RemoNet::SCRep)},
  1105. { 187, -1, -1, sizeof(::RemoNet::Offer)},
  1106. { 197, -1, -1, sizeof(::RemoNet::Answer)},
  1107. { 207, -1, -1, sizeof(::RemoNet::Candidate)},
  1108. { 220, -1, -1, sizeof(::RemoNet::Leave)},
  1109. { 228, -1, -1, sizeof(::RemoNet::Close)},
  1110. { 237, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1111. { 244, -1, -1, sizeof(::RemoNet::SyncTime)},
  1112. { 260, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1113. { 266, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1114. { 274, -1, -1, sizeof(::RemoNet::CCPing)},
  1115. { 282, -1, -1, sizeof(::RemoNet::radar_node)},
  1116. { 290, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1117. { 304, -1, -1, sizeof(::RemoNet::CCSensor)},
  1118. { 313, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1119. { 320, -1, -1, sizeof(::RemoNet::State)},
  1120. { 362, 376, -1, sizeof(::RemoNet::LidarPoint)},
  1121. { 384, -1, -1, sizeof(::RemoNet::SensorStop)},
  1122. { 390, -1, -1, sizeof(::RemoNet::StopAck)},
  1123. { 396, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1124. { 405, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1125. { 412, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1126. { 419, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1127. };
  1128. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1129. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SwitchDriver_default_instance_),
  1130. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_NDTPos_default_instance_),
  1131. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveBegin_default_instance_),
  1132. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_MoveRet_default_instance_),
  1133. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSMoveEnd_default_instance_),
  1134. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveBegin_default_instance_),
  1135. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCMoveEnd_default_instance_),
  1136. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1137. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1138. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1139. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSState_default_instance_),
  1140. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCState_default_instance_),
  1141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1142. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1143. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1144. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1145. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1146. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1147. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1148. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1149. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1150. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1151. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1152. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1153. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1154. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1155. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1156. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SyncTime_default_instance_),
  1157. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1158. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1159. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1160. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_radar_node_default_instance_),
  1161. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1162. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSensor_default_instance_),
  1163. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1164. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1165. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1166. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1167. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1168. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1169. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1170. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1171. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1172. };
  1173. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1174. "\n\016protocol.proto\022\007RemoNet\"\034\n\014SwitchDrive"
  1175. "r\022\014\n\004peer\030\001 \001(\005\"Y\n\006NDTPos\022\t\n\001x\030\001 \001(\002\022\t\n\001"
  1176. "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"
  1177. "(\002\022\n\n\002rz\030\006 \001(\002\022\n\n\002rw\030\007 \001(\002\"5\n\013CSMoveBegi"
  1178. "n\022\014\n\004peer\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030\003 \001("
  1179. "\005\"8\n\007MoveRet\022\037\n\004desc\030\001 \001(\0162\021.RemoNet.Mov"
  1180. "eDesc\022\014\n\004peer\030\002 \001(\005\"2\n\tCSMoveEnd\022\014\n\004area"
  1181. "\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\"J\n\013SCMov"
  1182. "eBegin\022\013\n\003uid\030\001 \001(\005\022\014\n\004area\030\002 \001(\005\022\n\n\002no\030"
  1183. "\003 \001(\005\022\t\n\001x\030\004 \001(\002\022\t\n\001y\030\005 \001(\002\"2\n\tSCMoveEnd"
  1184. "\022\014\n\004area\030\001 \001(\005\022\n\n\002no\030\002 \001(\005\022\013\n\003uid\030\003 \001(\005\""
  1185. "@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014"
  1186. "\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<\n\005SCAdd\022\013\n\003re"
  1187. "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"
  1188. "r\030\004 \001(\005\"\013\n\tSCKickOff\"9\n\007CSState\022!\n\005state"
  1189. "\030\001 \001(\0162\022.RemoNet.UserState\022\013\n\003uid\030\002 \001(\005\""
  1190. "9\n\007SCState\022!\n\005state\030\001 \001(\0162\022.RemoNet.User"
  1191. "State\022\013\n\003uid\030\002 \001(\005\"d\n\005Robot\022\013\n\003rid\030\001 \001(\005"
  1192. "\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022!\n\005state\030\004 "
  1193. "\001(\0162\022.RemoNet.UserState\022\017\n\007carType\030\005 \001(\005"
  1194. "\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005robot\030\001 \003(\0132\016."
  1195. "RemoNet.Robot\"+\n\006CSSign\022\017\n\007account\030\001 \001(\t"
  1196. "\022\020\n\010password\030\002 \001(\t\"0\n\006SCSign\022\013\n\003ret\030\001 \001("
  1197. "\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"5\n\005CSReq\022\014\n"
  1198. "\004peer\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 "
  1199. "\001(\005\"H\n\005SCReq\022 \n\004desc\030\001 \001(\0162\022.RemoNet.Vid"
  1200. "eoDesc\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n"
  1201. "\005CSRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc"
  1202. "\022\014\n\004peer\030\002 \001(\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype"
  1203. "\030\004 \001(\005\"W\n\005SCRep\022 \n\004desc\030\001 \001(\0162\022.RemoNet."
  1204. "VideoDesc\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001("
  1205. "\005\022\014\n\004peer\030\004 \001(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022"
  1206. "\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t"
  1207. "\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022"
  1208. "\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate"
  1209. "\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 "
  1210. "\001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030"
  1211. "\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&"
  1212. "\n\005Leave\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5"
  1213. "\n\005Close\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r"
  1214. "\n\005index\030\003 \001(\005\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001"
  1215. "(\t\"\266\001\n\010SyncTime\022\016\n\006tm_sec\030\001 \001(\005\022\016\n\006tm_mi"
  1216. "n\030\002 \001(\005\022\017\n\007tm_hour\030\003 \001(\005\022\017\n\007tm_mday\030\004 \001("
  1217. "\005\022\016\n\006tm_mon\030\005 \001(\005\022\017\n\007tm_year\030\006 \001(\005\022\017\n\007tm"
  1218. "_wday\030\007 \001(\005\022\017\n\007tm_yday\030\010 \001(\005\022\020\n\010tm_isdst"
  1219. "\030\t \001(\005\022\023\n\013update_time\030\n \001(\010\"\022\n\020CCAskData"
  1220. "Channel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n\n\002ry\030"
  1221. "\002 \001(\002\"$\n\006CCPing\022\014\n\004tick\030\001 \001(\003\022\014\n\004temp\030\002 "
  1222. "\001(\001\"\'\n\nradar_node\022\n\n\002id\030\001 \001(\005\022\r\n\005range\030\002"
  1223. " \001(\005\"\220\001\n\016CCRadarMessage\022\016\n\006radar0\030\001 \001(\005\022"
  1224. "\016\n\006radar1\030\002 \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar"
  1225. "3\030\004 \001(\005\022\016\n\006radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022"
  1226. "\016\n\006radar6\030\007 \001(\005\022\016\n\006radar7\030\010 \001(\005\"X\n\010CCSen"
  1227. "sor\022!\n\004node\030\001 \003(\0132\023.RemoNet.radar_node\022\023"
  1228. "\n\013left_encode\030\002 \001(\005\022\024\n\014right_encode\030\003 \001("
  1229. "\005\"\031\n\010CCSwitch\022\r\n\005front\030\001 \001(\010\"\310\006\n\005State\022\024"
  1230. "\n\014engine_speed\030\001 \001(\005\022\024\n\014travel_speed\030\002 \001"
  1231. "(\005\022\022\n\nfuel_level\030\003 \001(\005\022\032\n\022engine_tempera"
  1232. "ture\030\004 \001(\005\022!\n\031hydraulic_oil_temperature\030"
  1233. "\005 \001(\005\022\034\n\024main_pump_1_pressure\030\006 \001(\005\022\034\n\024m"
  1234. "ain_pump_2_pressure\030\007 \001(\005\022\021\n\thand_gear\030\010"
  1235. " \001(\005\022\023\n\013actual_gear\030\t \001(\005\022\026\n\016gripper_hei"
  1236. "ght\030\n \001(\002\022\021\n\tamplitude\030\013 \001(\002\022\022\n\nboom_ang"
  1237. "le\030\014 \001(\005\022\023\n\013stick_angle\030\r \001(\005\022\027\n\017idle_pr"
  1238. "otection\030\016 \001(\005\022\024\n\014front_toggle\030\017 \001(\005\022\023\n\013"
  1239. "back_toggle\030\020 \001(\005\022\022\n\nerror_Buff\030\021 \001(\014\022\021\n"
  1240. "\tinterlock\030\022 \001(\005\022\025\n\rsafety_switch\030\023 \001(\005\022"
  1241. "\026\n\016arm_lift_pilot\030\024 \001(\005\022\032\n\022arm_lowering_"
  1242. "pilot\030\025 \001(\005\022\033\n\023lever_lifting_pilot\030\026 \001(\005"
  1243. "\022\032\n\022rod_lowering_pilot\030\027 \001(\005\022\031\n\021left_rot"
  1244. "ary_pilot\030\030 \001(\005\022\032\n\022right_rotary_pilot\030\031 "
  1245. "\001(\005\022\027\n\017grab_open_pilot\030\032 \001(\005\022\030\n\020grab_clo"
  1246. "se_pilot\030\033 \001(\005\022\025\n\rsafety_valves\030\034 \001(\005\022\025\n"
  1247. "\rfunction_code\030\035 \001(\005\022\020\n\010main_add\030\036 \001(\005\022\017"
  1248. "\n\007sub_add\030\037 \001(\005\022\020\n\010paramter\030 \001(\005\022\022\n\neng"
  1249. "ine_spn\030! \001(\005\022\022\n\nengine_fmi\030\" \001(\005\022\022\n\neng"
  1250. "ine_num\030# \001(\005\022\020\n\010all_Buff\030$ \001(\014\"\202\002\n\nLida"
  1251. "rPoint\022\026\n\ttimestamp\030\001 \001(\001H\000\210\001\001\022\020\n\003seq\030\002 "
  1252. "\001(\rH\001\210\001\001\022\025\n\010frame_id\030\003 \001(\tH\002\210\001\001\022\023\n\006heigh"
  1253. "t\030\004 \001(\rH\003\210\001\001\022\022\n\005width\030\005 \001(\rH\004\210\001\001\022\025\n\010is_d"
  1254. "ense\030\006 \001(\010H\005\210\001\001\022\024\n\007is_left\030\007 \001(\010H\006\210\001\001\022\014\n"
  1255. "\004data\030\010 \003(\002B\014\n\n_timestampB\006\n\004_seqB\013\n\t_fr"
  1256. "ame_idB\t\n\007_heightB\010\n\006_widthB\013\n\t_is_dense"
  1257. "B\n\n\010_is_left\"\014\n\nSensorStop\"\t\n\007StopAck\"9\n"
  1258. "\rcan_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n\005canid\030\002 \001"
  1259. "(\005\022\014\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%\n\005frams\030\001 "
  1260. "\003(\0132\026.RemoNet.can_net_frame\"+\n\nSCAddRobo"
  1261. "t\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Robot\"+\n\nSCDe"
  1262. "lRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005*\303\002"
  1263. "\n\tCSMessage\022\013\n\007CS_NONE\020\000\022\014\n\007CS_Sign\020\320\017\022\013"
  1264. "\n\006CS_Req\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS_CancelReq"
  1265. "\020\323\017\022\r\n\010CS_Offer\020\324\017\022\016\n\tCS_Answer\020\325\017\022\021\n\014CS"
  1266. "_Candidate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014CS_KeepA"
  1267. "live\020\330\017\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Robot\020\332\017\022\022\n\rC"
  1268. "S_CloseVideo\020\333\017\022\021\n\014CS_MoveBegin\020\334\017\022\017\n\nCS"
  1269. "_MoveEnd\020\335\017\022\r\n\010CS_State\020\336\017\022\024\n\017CS_SwitchD"
  1270. "river\020\337\017\022\017\n\nCS_MoveRet\020\340\017\022\020\n\013CS_SyncTime"
  1271. "\020\341\017*\205\004\n\tSCMessage\022\013\n\007SC_NONE\020\000\022\014\n\007SC_Sig"
  1272. "n\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n\006SC_Rep\020\242\037\022\016\n\tSC_Can"
  1273. "cel\020\243\037\022\r\n\010SC_Offer\020\244\037\022\016\n\tSC_Answer\020\245\037\022\021\n"
  1274. "\014SC_Candidate\020\246\037\022\013\n\006SC_Add\020\247\037\022\r\n\010SC_Robo"
  1275. "t\020\250\037\022\021\n\014SC_NotifyReq\020\251\037\022\021\n\014SC_NotifyRep\020"
  1276. "\252\037\022\024\n\017SC_NotifyAnswer\020\253\037\022\023\n\016SC_NotifyOff"
  1277. "er\020\254\037\022\027\n\022SC_NotifyCandidate\020\255\037\022\023\n\016SC_Not"
  1278. "ifyLeave\020\256\037\022\024\n\017SC_NotifyCancel\020\257\037\022\021\n\014SC_"
  1279. "NotifyAdd\020\260\037\022\021\n\014SC_NotifyDel\020\261\037\022\030\n\023SC_No"
  1280. "tifyCloseVideo\020\262\037\022\017\n\nSC_KickOff\020\263\037\022\021\n\014SC"
  1281. "_MoveBegin\020\264\037\022\017\n\nSC_MoveEnd\020\265\037\022\r\n\010SC_Sta"
  1282. "te\020\266\037\022\024\n\017SC_SwitchDriver\020\267\037\022\017\n\nSC_MoveRe"
  1283. "t\020\270\037\022\023\n\016SC_NotifyState\020\271\037\022\020\n\013SC_SyncTime"
  1284. "\020\272\037*\376\001\n\tCCMessage\022\013\n\007CC_None\020\000\022\014\n\007CC_Tex"
  1285. "t\020\300>\022\013\n\006CC_CAN\020\301>\022\013\n\006CC_IMU\020\302>\022\026\n\021CC_ASK"
  1286. "DATACHANNEL\020\303>\022\024\n\017CC_Manipulation\020\304>\022\r\n\010"
  1287. "CC_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007CC_Ping\020\307"
  1288. ">\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_StopACK\020\311>\022\r"
  1289. "\n\010CC_Lidar\020\312>\022\016\n\tCC_CANMSG\020\313>\022\r\n\010CC_STAT"
  1290. "E\020\314>\022\016\n\tCC_NDTPOS\020\315>*F\n\tVideoDesc\022\006\n\002OK\020"
  1291. "\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007NoFound\020\003\022\016\n\n"
  1292. "IsVideoing\020\004*D\n\010MoveDesc\022\013\n\007Move_OK\020\000\022\024\n"
  1293. "\020Move_Encode_Fail\020\001\022\025\n\021Move_Unknow_Faile"
  1294. "\020\002*M\n\tUserState\022\013\n\007Offline\020\000\022\010\n\004Idle\020\001\022\n"
  1295. "\n\006Remote\020\002\022\016\n\nAutomotive\020\003\022\r\n\tAskRemote\020"
  1296. "\004b\006proto3"
  1297. ;
  1298. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1299. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1300. false, false, 4889, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1301. &descriptor_table_protocol_2eproto_once, nullptr, 0, 43,
  1302. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1303. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1304. };
  1305. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1306. return &descriptor_table_protocol_2eproto;
  1307. }
  1308. // Force running AddDescriptors() at dynamic initialization time.
  1309. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1310. namespace RemoNet {
  1311. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1312. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1313. return file_level_enum_descriptors_protocol_2eproto[0];
  1314. }
  1315. bool CSMessage_IsValid(int value) {
  1316. switch (value) {
  1317. case 0:
  1318. case 2000:
  1319. case 2001:
  1320. case 2002:
  1321. case 2003:
  1322. case 2004:
  1323. case 2005:
  1324. case 2006:
  1325. case 2007:
  1326. case 2008:
  1327. case 2009:
  1328. case 2010:
  1329. case 2011:
  1330. case 2012:
  1331. case 2013:
  1332. case 2014:
  1333. case 2015:
  1334. case 2016:
  1335. case 2017:
  1336. return true;
  1337. default:
  1338. return false;
  1339. }
  1340. }
  1341. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1342. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1343. return file_level_enum_descriptors_protocol_2eproto[1];
  1344. }
  1345. bool SCMessage_IsValid(int value) {
  1346. switch (value) {
  1347. case 0:
  1348. case 4000:
  1349. case 4001:
  1350. case 4002:
  1351. case 4003:
  1352. case 4004:
  1353. case 4005:
  1354. case 4006:
  1355. case 4007:
  1356. case 4008:
  1357. case 4009:
  1358. case 4010:
  1359. case 4011:
  1360. case 4012:
  1361. case 4013:
  1362. case 4014:
  1363. case 4015:
  1364. case 4016:
  1365. case 4017:
  1366. case 4018:
  1367. case 4019:
  1368. case 4020:
  1369. case 4021:
  1370. case 4022:
  1371. case 4023:
  1372. case 4024:
  1373. case 4025:
  1374. case 4026:
  1375. return true;
  1376. default:
  1377. return false;
  1378. }
  1379. }
  1380. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1381. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1382. return file_level_enum_descriptors_protocol_2eproto[2];
  1383. }
  1384. bool CCMessage_IsValid(int value) {
  1385. switch (value) {
  1386. case 0:
  1387. case 8000:
  1388. case 8001:
  1389. case 8002:
  1390. case 8003:
  1391. case 8004:
  1392. case 8005:
  1393. case 8006:
  1394. case 8007:
  1395. case 8008:
  1396. case 8009:
  1397. case 8010:
  1398. case 8011:
  1399. case 8012:
  1400. case 8013:
  1401. return true;
  1402. default:
  1403. return false;
  1404. }
  1405. }
  1406. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1407. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1408. return file_level_enum_descriptors_protocol_2eproto[3];
  1409. }
  1410. bool VideoDesc_IsValid(int value) {
  1411. switch (value) {
  1412. case 0:
  1413. case 1:
  1414. case 2:
  1415. case 3:
  1416. case 4:
  1417. return true;
  1418. default:
  1419. return false;
  1420. }
  1421. }
  1422. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MoveDesc_descriptor() {
  1423. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1424. return file_level_enum_descriptors_protocol_2eproto[4];
  1425. }
  1426. bool MoveDesc_IsValid(int value) {
  1427. switch (value) {
  1428. case 0:
  1429. case 1:
  1430. case 2:
  1431. return true;
  1432. default:
  1433. return false;
  1434. }
  1435. }
  1436. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UserState_descriptor() {
  1437. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1438. return file_level_enum_descriptors_protocol_2eproto[5];
  1439. }
  1440. bool UserState_IsValid(int value) {
  1441. switch (value) {
  1442. case 0:
  1443. case 1:
  1444. case 2:
  1445. case 3:
  1446. case 4:
  1447. return true;
  1448. default:
  1449. return false;
  1450. }
  1451. }
  1452. // ===================================================================
  1453. class SwitchDriver::_Internal {
  1454. public:
  1455. };
  1456. SwitchDriver::SwitchDriver(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1457. bool is_message_owned)
  1458. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1459. SharedCtor();
  1460. if (!is_message_owned) {
  1461. RegisterArenaDtor(arena);
  1462. }
  1463. // @@protoc_insertion_point(arena_constructor:RemoNet.SwitchDriver)
  1464. }
  1465. SwitchDriver::SwitchDriver(const SwitchDriver& from)
  1466. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1467. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1468. peer_ = from.peer_;
  1469. // @@protoc_insertion_point(copy_constructor:RemoNet.SwitchDriver)
  1470. }
  1471. inline void SwitchDriver::SharedCtor() {
  1472. peer_ = 0;
  1473. }
  1474. SwitchDriver::~SwitchDriver() {
  1475. // @@protoc_insertion_point(destructor:RemoNet.SwitchDriver)
  1476. if (GetArenaForAllocation() != nullptr) return;
  1477. SharedDtor();
  1478. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1479. }
  1480. inline void SwitchDriver::SharedDtor() {
  1481. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1482. }
  1483. void SwitchDriver::ArenaDtor(void* object) {
  1484. SwitchDriver* _this = reinterpret_cast< SwitchDriver* >(object);
  1485. (void)_this;
  1486. }
  1487. void SwitchDriver::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1488. }
  1489. void SwitchDriver::SetCachedSize(int size) const {
  1490. _cached_size_.Set(size);
  1491. }
  1492. void SwitchDriver::Clear() {
  1493. // @@protoc_insertion_point(message_clear_start:RemoNet.SwitchDriver)
  1494. uint32_t cached_has_bits = 0;
  1495. // Prevent compiler warnings about cached_has_bits being unused
  1496. (void) cached_has_bits;
  1497. peer_ = 0;
  1498. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1499. }
  1500. const char* SwitchDriver::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1501. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1502. while (!ctx->Done(&ptr)) {
  1503. uint32_t tag;
  1504. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1505. switch (tag >> 3) {
  1506. // int32 peer = 1;
  1507. case 1:
  1508. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1509. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1510. CHK_(ptr);
  1511. } else
  1512. goto handle_unusual;
  1513. continue;
  1514. default:
  1515. goto handle_unusual;
  1516. } // switch
  1517. handle_unusual:
  1518. if ((tag == 0) || ((tag & 7) == 4)) {
  1519. CHK_(ptr);
  1520. ctx->SetLastTag(tag);
  1521. goto message_done;
  1522. }
  1523. ptr = UnknownFieldParse(
  1524. tag,
  1525. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1526. ptr, ctx);
  1527. CHK_(ptr != nullptr);
  1528. } // while
  1529. message_done:
  1530. return ptr;
  1531. failure:
  1532. ptr = nullptr;
  1533. goto message_done;
  1534. #undef CHK_
  1535. }
  1536. uint8_t* SwitchDriver::_InternalSerialize(
  1537. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1538. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SwitchDriver)
  1539. uint32_t cached_has_bits = 0;
  1540. (void) cached_has_bits;
  1541. // int32 peer = 1;
  1542. if (this->_internal_peer() != 0) {
  1543. target = stream->EnsureSpace(target);
  1544. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1545. }
  1546. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1547. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1548. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1549. }
  1550. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SwitchDriver)
  1551. return target;
  1552. }
  1553. size_t SwitchDriver::ByteSizeLong() const {
  1554. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SwitchDriver)
  1555. size_t total_size = 0;
  1556. uint32_t cached_has_bits = 0;
  1557. // Prevent compiler warnings about cached_has_bits being unused
  1558. (void) cached_has_bits;
  1559. // int32 peer = 1;
  1560. if (this->_internal_peer() != 0) {
  1561. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1562. }
  1563. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1564. }
  1565. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SwitchDriver::_class_data_ = {
  1566. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1567. SwitchDriver::MergeImpl
  1568. };
  1569. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SwitchDriver::GetClassData() const { return &_class_data_; }
  1570. void SwitchDriver::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1571. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1572. static_cast<SwitchDriver *>(to)->MergeFrom(
  1573. static_cast<const SwitchDriver &>(from));
  1574. }
  1575. void SwitchDriver::MergeFrom(const SwitchDriver& from) {
  1576. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SwitchDriver)
  1577. GOOGLE_DCHECK_NE(&from, this);
  1578. uint32_t cached_has_bits = 0;
  1579. (void) cached_has_bits;
  1580. if (from._internal_peer() != 0) {
  1581. _internal_set_peer(from._internal_peer());
  1582. }
  1583. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1584. }
  1585. void SwitchDriver::CopyFrom(const SwitchDriver& from) {
  1586. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SwitchDriver)
  1587. if (&from == this) return;
  1588. Clear();
  1589. MergeFrom(from);
  1590. }
  1591. bool SwitchDriver::IsInitialized() const {
  1592. return true;
  1593. }
  1594. void SwitchDriver::InternalSwap(SwitchDriver* other) {
  1595. using std::swap;
  1596. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1597. swap(peer_, other->peer_);
  1598. }
  1599. ::PROTOBUF_NAMESPACE_ID::Metadata SwitchDriver::GetMetadata() const {
  1600. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1601. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1602. file_level_metadata_protocol_2eproto[0]);
  1603. }
  1604. // ===================================================================
  1605. class NDTPos::_Internal {
  1606. public:
  1607. };
  1608. NDTPos::NDTPos(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1609. bool is_message_owned)
  1610. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1611. SharedCtor();
  1612. if (!is_message_owned) {
  1613. RegisterArenaDtor(arena);
  1614. }
  1615. // @@protoc_insertion_point(arena_constructor:RemoNet.NDTPos)
  1616. }
  1617. NDTPos::NDTPos(const NDTPos& from)
  1618. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1619. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1620. ::memcpy(&x_, &from.x_,
  1621. static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1622. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1623. // @@protoc_insertion_point(copy_constructor:RemoNet.NDTPos)
  1624. }
  1625. inline void NDTPos::SharedCtor() {
  1626. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1627. reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
  1628. 0, static_cast<size_t>(reinterpret_cast<char*>(&rw_) -
  1629. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1630. }
  1631. NDTPos::~NDTPos() {
  1632. // @@protoc_insertion_point(destructor:RemoNet.NDTPos)
  1633. if (GetArenaForAllocation() != nullptr) return;
  1634. SharedDtor();
  1635. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1636. }
  1637. inline void NDTPos::SharedDtor() {
  1638. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1639. }
  1640. void NDTPos::ArenaDtor(void* object) {
  1641. NDTPos* _this = reinterpret_cast< NDTPos* >(object);
  1642. (void)_this;
  1643. }
  1644. void NDTPos::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1645. }
  1646. void NDTPos::SetCachedSize(int size) const {
  1647. _cached_size_.Set(size);
  1648. }
  1649. void NDTPos::Clear() {
  1650. // @@protoc_insertion_point(message_clear_start:RemoNet.NDTPos)
  1651. uint32_t cached_has_bits = 0;
  1652. // Prevent compiler warnings about cached_has_bits being unused
  1653. (void) cached_has_bits;
  1654. ::memset(&x_, 0, static_cast<size_t>(
  1655. reinterpret_cast<char*>(&rw_) -
  1656. reinterpret_cast<char*>(&x_)) + sizeof(rw_));
  1657. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1658. }
  1659. const char* NDTPos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1660. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1661. while (!ctx->Done(&ptr)) {
  1662. uint32_t tag;
  1663. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1664. switch (tag >> 3) {
  1665. // float x = 1;
  1666. case 1:
  1667. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  1668. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1669. ptr += sizeof(float);
  1670. } else
  1671. goto handle_unusual;
  1672. continue;
  1673. // float y = 2;
  1674. case 2:
  1675. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  1676. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1677. ptr += sizeof(float);
  1678. } else
  1679. goto handle_unusual;
  1680. continue;
  1681. // float z = 3;
  1682. case 3:
  1683. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 29)) {
  1684. z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1685. ptr += sizeof(float);
  1686. } else
  1687. goto handle_unusual;
  1688. continue;
  1689. // float rx = 4;
  1690. case 4:
  1691. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  1692. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1693. ptr += sizeof(float);
  1694. } else
  1695. goto handle_unusual;
  1696. continue;
  1697. // float ry = 5;
  1698. case 5:
  1699. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  1700. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1701. ptr += sizeof(float);
  1702. } else
  1703. goto handle_unusual;
  1704. continue;
  1705. // float rz = 6;
  1706. case 6:
  1707. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 53)) {
  1708. rz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1709. ptr += sizeof(float);
  1710. } else
  1711. goto handle_unusual;
  1712. continue;
  1713. // float rw = 7;
  1714. case 7:
  1715. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) {
  1716. rw_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1717. ptr += sizeof(float);
  1718. } else
  1719. goto handle_unusual;
  1720. continue;
  1721. default:
  1722. goto handle_unusual;
  1723. } // switch
  1724. handle_unusual:
  1725. if ((tag == 0) || ((tag & 7) == 4)) {
  1726. CHK_(ptr);
  1727. ctx->SetLastTag(tag);
  1728. goto message_done;
  1729. }
  1730. ptr = UnknownFieldParse(
  1731. tag,
  1732. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1733. ptr, ctx);
  1734. CHK_(ptr != nullptr);
  1735. } // while
  1736. message_done:
  1737. return ptr;
  1738. failure:
  1739. ptr = nullptr;
  1740. goto message_done;
  1741. #undef CHK_
  1742. }
  1743. uint8_t* NDTPos::_InternalSerialize(
  1744. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1745. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.NDTPos)
  1746. uint32_t cached_has_bits = 0;
  1747. (void) cached_has_bits;
  1748. // float x = 1;
  1749. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1750. float tmp_x = this->_internal_x();
  1751. uint32_t raw_x;
  1752. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1753. if (raw_x != 0) {
  1754. target = stream->EnsureSpace(target);
  1755. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
  1756. }
  1757. // float y = 2;
  1758. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1759. float tmp_y = this->_internal_y();
  1760. uint32_t raw_y;
  1761. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1762. if (raw_y != 0) {
  1763. target = stream->EnsureSpace(target);
  1764. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
  1765. }
  1766. // float z = 3;
  1767. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1768. float tmp_z = this->_internal_z();
  1769. uint32_t raw_z;
  1770. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1771. if (raw_z != 0) {
  1772. target = stream->EnsureSpace(target);
  1773. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_z(), target);
  1774. }
  1775. // float rx = 4;
  1776. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1777. float tmp_rx = this->_internal_rx();
  1778. uint32_t raw_rx;
  1779. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1780. if (raw_rx != 0) {
  1781. target = stream->EnsureSpace(target);
  1782. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_rx(), target);
  1783. }
  1784. // float ry = 5;
  1785. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1786. float tmp_ry = this->_internal_ry();
  1787. uint32_t raw_ry;
  1788. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1789. if (raw_ry != 0) {
  1790. target = stream->EnsureSpace(target);
  1791. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_ry(), target);
  1792. }
  1793. // float rz = 6;
  1794. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1795. float tmp_rz = this->_internal_rz();
  1796. uint32_t raw_rz;
  1797. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1798. if (raw_rz != 0) {
  1799. target = stream->EnsureSpace(target);
  1800. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_rz(), target);
  1801. }
  1802. // float rw = 7;
  1803. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1804. float tmp_rw = this->_internal_rw();
  1805. uint32_t raw_rw;
  1806. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1807. if (raw_rw != 0) {
  1808. target = stream->EnsureSpace(target);
  1809. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_rw(), target);
  1810. }
  1811. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1812. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1813. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1814. }
  1815. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.NDTPos)
  1816. return target;
  1817. }
  1818. size_t NDTPos::ByteSizeLong() const {
  1819. // @@protoc_insertion_point(message_byte_size_start:RemoNet.NDTPos)
  1820. size_t total_size = 0;
  1821. uint32_t cached_has_bits = 0;
  1822. // Prevent compiler warnings about cached_has_bits being unused
  1823. (void) cached_has_bits;
  1824. // float x = 1;
  1825. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1826. float tmp_x = this->_internal_x();
  1827. uint32_t raw_x;
  1828. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1829. if (raw_x != 0) {
  1830. total_size += 1 + 4;
  1831. }
  1832. // float y = 2;
  1833. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1834. float tmp_y = this->_internal_y();
  1835. uint32_t raw_y;
  1836. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1837. if (raw_y != 0) {
  1838. total_size += 1 + 4;
  1839. }
  1840. // float z = 3;
  1841. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1842. float tmp_z = this->_internal_z();
  1843. uint32_t raw_z;
  1844. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1845. if (raw_z != 0) {
  1846. total_size += 1 + 4;
  1847. }
  1848. // float rx = 4;
  1849. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1850. float tmp_rx = this->_internal_rx();
  1851. uint32_t raw_rx;
  1852. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1853. if (raw_rx != 0) {
  1854. total_size += 1 + 4;
  1855. }
  1856. // float ry = 5;
  1857. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1858. float tmp_ry = this->_internal_ry();
  1859. uint32_t raw_ry;
  1860. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1861. if (raw_ry != 0) {
  1862. total_size += 1 + 4;
  1863. }
  1864. // float rz = 6;
  1865. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1866. float tmp_rz = this->_internal_rz();
  1867. uint32_t raw_rz;
  1868. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1869. if (raw_rz != 0) {
  1870. total_size += 1 + 4;
  1871. }
  1872. // float rw = 7;
  1873. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1874. float tmp_rw = this->_internal_rw();
  1875. uint32_t raw_rw;
  1876. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1877. if (raw_rw != 0) {
  1878. total_size += 1 + 4;
  1879. }
  1880. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1881. }
  1882. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NDTPos::_class_data_ = {
  1883. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1884. NDTPos::MergeImpl
  1885. };
  1886. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NDTPos::GetClassData() const { return &_class_data_; }
  1887. void NDTPos::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1888. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1889. static_cast<NDTPos *>(to)->MergeFrom(
  1890. static_cast<const NDTPos &>(from));
  1891. }
  1892. void NDTPos::MergeFrom(const NDTPos& from) {
  1893. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.NDTPos)
  1894. GOOGLE_DCHECK_NE(&from, this);
  1895. uint32_t cached_has_bits = 0;
  1896. (void) cached_has_bits;
  1897. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1898. float tmp_x = from._internal_x();
  1899. uint32_t raw_x;
  1900. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1901. if (raw_x != 0) {
  1902. _internal_set_x(from._internal_x());
  1903. }
  1904. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1905. float tmp_y = from._internal_y();
  1906. uint32_t raw_y;
  1907. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1908. if (raw_y != 0) {
  1909. _internal_set_y(from._internal_y());
  1910. }
  1911. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1912. float tmp_z = from._internal_z();
  1913. uint32_t raw_z;
  1914. memcpy(&raw_z, &tmp_z, sizeof(tmp_z));
  1915. if (raw_z != 0) {
  1916. _internal_set_z(from._internal_z());
  1917. }
  1918. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1919. float tmp_rx = from._internal_rx();
  1920. uint32_t raw_rx;
  1921. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  1922. if (raw_rx != 0) {
  1923. _internal_set_rx(from._internal_rx());
  1924. }
  1925. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1926. float tmp_ry = from._internal_ry();
  1927. uint32_t raw_ry;
  1928. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  1929. if (raw_ry != 0) {
  1930. _internal_set_ry(from._internal_ry());
  1931. }
  1932. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1933. float tmp_rz = from._internal_rz();
  1934. uint32_t raw_rz;
  1935. memcpy(&raw_rz, &tmp_rz, sizeof(tmp_rz));
  1936. if (raw_rz != 0) {
  1937. _internal_set_rz(from._internal_rz());
  1938. }
  1939. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  1940. float tmp_rw = from._internal_rw();
  1941. uint32_t raw_rw;
  1942. memcpy(&raw_rw, &tmp_rw, sizeof(tmp_rw));
  1943. if (raw_rw != 0) {
  1944. _internal_set_rw(from._internal_rw());
  1945. }
  1946. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1947. }
  1948. void NDTPos::CopyFrom(const NDTPos& from) {
  1949. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.NDTPos)
  1950. if (&from == this) return;
  1951. Clear();
  1952. MergeFrom(from);
  1953. }
  1954. bool NDTPos::IsInitialized() const {
  1955. return true;
  1956. }
  1957. void NDTPos::InternalSwap(NDTPos* other) {
  1958. using std::swap;
  1959. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1960. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1961. PROTOBUF_FIELD_OFFSET(NDTPos, rw_)
  1962. + sizeof(NDTPos::rw_)
  1963. - PROTOBUF_FIELD_OFFSET(NDTPos, x_)>(
  1964. reinterpret_cast<char*>(&x_),
  1965. reinterpret_cast<char*>(&other->x_));
  1966. }
  1967. ::PROTOBUF_NAMESPACE_ID::Metadata NDTPos::GetMetadata() const {
  1968. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1969. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1970. file_level_metadata_protocol_2eproto[1]);
  1971. }
  1972. // ===================================================================
  1973. class CSMoveBegin::_Internal {
  1974. public:
  1975. };
  1976. CSMoveBegin::CSMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1977. bool is_message_owned)
  1978. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1979. SharedCtor();
  1980. if (!is_message_owned) {
  1981. RegisterArenaDtor(arena);
  1982. }
  1983. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveBegin)
  1984. }
  1985. CSMoveBegin::CSMoveBegin(const CSMoveBegin& from)
  1986. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1987. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1988. ::memcpy(&peer_, &from.peer_,
  1989. static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1990. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1991. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveBegin)
  1992. }
  1993. inline void CSMoveBegin::SharedCtor() {
  1994. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1995. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  1996. 0, static_cast<size_t>(reinterpret_cast<char*>(&no_) -
  1997. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  1998. }
  1999. CSMoveBegin::~CSMoveBegin() {
  2000. // @@protoc_insertion_point(destructor:RemoNet.CSMoveBegin)
  2001. if (GetArenaForAllocation() != nullptr) return;
  2002. SharedDtor();
  2003. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2004. }
  2005. inline void CSMoveBegin::SharedDtor() {
  2006. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2007. }
  2008. void CSMoveBegin::ArenaDtor(void* object) {
  2009. CSMoveBegin* _this = reinterpret_cast< CSMoveBegin* >(object);
  2010. (void)_this;
  2011. }
  2012. void CSMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2013. }
  2014. void CSMoveBegin::SetCachedSize(int size) const {
  2015. _cached_size_.Set(size);
  2016. }
  2017. void CSMoveBegin::Clear() {
  2018. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveBegin)
  2019. uint32_t cached_has_bits = 0;
  2020. // Prevent compiler warnings about cached_has_bits being unused
  2021. (void) cached_has_bits;
  2022. ::memset(&peer_, 0, static_cast<size_t>(
  2023. reinterpret_cast<char*>(&no_) -
  2024. reinterpret_cast<char*>(&peer_)) + sizeof(no_));
  2025. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2026. }
  2027. const char* CSMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2028. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2029. while (!ctx->Done(&ptr)) {
  2030. uint32_t tag;
  2031. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2032. switch (tag >> 3) {
  2033. // int32 peer = 1;
  2034. case 1:
  2035. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2036. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2037. CHK_(ptr);
  2038. } else
  2039. goto handle_unusual;
  2040. continue;
  2041. // int32 area = 2;
  2042. case 2:
  2043. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2044. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2045. CHK_(ptr);
  2046. } else
  2047. goto handle_unusual;
  2048. continue;
  2049. // int32 no = 3;
  2050. case 3:
  2051. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2052. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2053. CHK_(ptr);
  2054. } else
  2055. goto handle_unusual;
  2056. continue;
  2057. default:
  2058. goto handle_unusual;
  2059. } // switch
  2060. handle_unusual:
  2061. if ((tag == 0) || ((tag & 7) == 4)) {
  2062. CHK_(ptr);
  2063. ctx->SetLastTag(tag);
  2064. goto message_done;
  2065. }
  2066. ptr = UnknownFieldParse(
  2067. tag,
  2068. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2069. ptr, ctx);
  2070. CHK_(ptr != nullptr);
  2071. } // while
  2072. message_done:
  2073. return ptr;
  2074. failure:
  2075. ptr = nullptr;
  2076. goto message_done;
  2077. #undef CHK_
  2078. }
  2079. uint8_t* CSMoveBegin::_InternalSerialize(
  2080. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2081. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveBegin)
  2082. uint32_t cached_has_bits = 0;
  2083. (void) cached_has_bits;
  2084. // int32 peer = 1;
  2085. if (this->_internal_peer() != 0) {
  2086. target = stream->EnsureSpace(target);
  2087. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  2088. }
  2089. // int32 area = 2;
  2090. if (this->_internal_area() != 0) {
  2091. target = stream->EnsureSpace(target);
  2092. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2093. }
  2094. // int32 no = 3;
  2095. if (this->_internal_no() != 0) {
  2096. target = stream->EnsureSpace(target);
  2097. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2098. }
  2099. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2100. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2101. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2102. }
  2103. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveBegin)
  2104. return target;
  2105. }
  2106. size_t CSMoveBegin::ByteSizeLong() const {
  2107. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveBegin)
  2108. size_t total_size = 0;
  2109. uint32_t cached_has_bits = 0;
  2110. // Prevent compiler warnings about cached_has_bits being unused
  2111. (void) cached_has_bits;
  2112. // int32 peer = 1;
  2113. if (this->_internal_peer() != 0) {
  2114. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2115. }
  2116. // int32 area = 2;
  2117. if (this->_internal_area() != 0) {
  2118. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2119. }
  2120. // int32 no = 3;
  2121. if (this->_internal_no() != 0) {
  2122. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2123. }
  2124. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2125. }
  2126. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveBegin::_class_data_ = {
  2127. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2128. CSMoveBegin::MergeImpl
  2129. };
  2130. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveBegin::GetClassData() const { return &_class_data_; }
  2131. void CSMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2132. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2133. static_cast<CSMoveBegin *>(to)->MergeFrom(
  2134. static_cast<const CSMoveBegin &>(from));
  2135. }
  2136. void CSMoveBegin::MergeFrom(const CSMoveBegin& from) {
  2137. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveBegin)
  2138. GOOGLE_DCHECK_NE(&from, this);
  2139. uint32_t cached_has_bits = 0;
  2140. (void) cached_has_bits;
  2141. if (from._internal_peer() != 0) {
  2142. _internal_set_peer(from._internal_peer());
  2143. }
  2144. if (from._internal_area() != 0) {
  2145. _internal_set_area(from._internal_area());
  2146. }
  2147. if (from._internal_no() != 0) {
  2148. _internal_set_no(from._internal_no());
  2149. }
  2150. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2151. }
  2152. void CSMoveBegin::CopyFrom(const CSMoveBegin& from) {
  2153. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveBegin)
  2154. if (&from == this) return;
  2155. Clear();
  2156. MergeFrom(from);
  2157. }
  2158. bool CSMoveBegin::IsInitialized() const {
  2159. return true;
  2160. }
  2161. void CSMoveBegin::InternalSwap(CSMoveBegin* other) {
  2162. using std::swap;
  2163. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2164. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2165. PROTOBUF_FIELD_OFFSET(CSMoveBegin, no_)
  2166. + sizeof(CSMoveBegin::no_)
  2167. - PROTOBUF_FIELD_OFFSET(CSMoveBegin, peer_)>(
  2168. reinterpret_cast<char*>(&peer_),
  2169. reinterpret_cast<char*>(&other->peer_));
  2170. }
  2171. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveBegin::GetMetadata() const {
  2172. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2173. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2174. file_level_metadata_protocol_2eproto[2]);
  2175. }
  2176. // ===================================================================
  2177. class MoveRet::_Internal {
  2178. public:
  2179. };
  2180. MoveRet::MoveRet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2181. bool is_message_owned)
  2182. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2183. SharedCtor();
  2184. if (!is_message_owned) {
  2185. RegisterArenaDtor(arena);
  2186. }
  2187. // @@protoc_insertion_point(arena_constructor:RemoNet.MoveRet)
  2188. }
  2189. MoveRet::MoveRet(const MoveRet& from)
  2190. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2191. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2192. ::memcpy(&desc_, &from.desc_,
  2193. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2194. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2195. // @@protoc_insertion_point(copy_constructor:RemoNet.MoveRet)
  2196. }
  2197. inline void MoveRet::SharedCtor() {
  2198. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2199. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2200. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2201. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2202. }
  2203. MoveRet::~MoveRet() {
  2204. // @@protoc_insertion_point(destructor:RemoNet.MoveRet)
  2205. if (GetArenaForAllocation() != nullptr) return;
  2206. SharedDtor();
  2207. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2208. }
  2209. inline void MoveRet::SharedDtor() {
  2210. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2211. }
  2212. void MoveRet::ArenaDtor(void* object) {
  2213. MoveRet* _this = reinterpret_cast< MoveRet* >(object);
  2214. (void)_this;
  2215. }
  2216. void MoveRet::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2217. }
  2218. void MoveRet::SetCachedSize(int size) const {
  2219. _cached_size_.Set(size);
  2220. }
  2221. void MoveRet::Clear() {
  2222. // @@protoc_insertion_point(message_clear_start:RemoNet.MoveRet)
  2223. uint32_t cached_has_bits = 0;
  2224. // Prevent compiler warnings about cached_has_bits being unused
  2225. (void) cached_has_bits;
  2226. ::memset(&desc_, 0, static_cast<size_t>(
  2227. reinterpret_cast<char*>(&peer_) -
  2228. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2229. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2230. }
  2231. const char* MoveRet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2232. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2233. while (!ctx->Done(&ptr)) {
  2234. uint32_t tag;
  2235. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2236. switch (tag >> 3) {
  2237. // .RemoNet.MoveDesc desc = 1;
  2238. case 1:
  2239. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2240. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2241. CHK_(ptr);
  2242. _internal_set_desc(static_cast<::RemoNet::MoveDesc>(val));
  2243. } else
  2244. goto handle_unusual;
  2245. continue;
  2246. // int32 peer = 2;
  2247. case 2:
  2248. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2249. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2250. CHK_(ptr);
  2251. } else
  2252. goto handle_unusual;
  2253. continue;
  2254. default:
  2255. goto handle_unusual;
  2256. } // switch
  2257. handle_unusual:
  2258. if ((tag == 0) || ((tag & 7) == 4)) {
  2259. CHK_(ptr);
  2260. ctx->SetLastTag(tag);
  2261. goto message_done;
  2262. }
  2263. ptr = UnknownFieldParse(
  2264. tag,
  2265. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2266. ptr, ctx);
  2267. CHK_(ptr != nullptr);
  2268. } // while
  2269. message_done:
  2270. return ptr;
  2271. failure:
  2272. ptr = nullptr;
  2273. goto message_done;
  2274. #undef CHK_
  2275. }
  2276. uint8_t* MoveRet::_InternalSerialize(
  2277. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2278. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.MoveRet)
  2279. uint32_t cached_has_bits = 0;
  2280. (void) cached_has_bits;
  2281. // .RemoNet.MoveDesc desc = 1;
  2282. if (this->_internal_desc() != 0) {
  2283. target = stream->EnsureSpace(target);
  2284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2285. 1, this->_internal_desc(), target);
  2286. }
  2287. // int32 peer = 2;
  2288. if (this->_internal_peer() != 0) {
  2289. target = stream->EnsureSpace(target);
  2290. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  2291. }
  2292. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2293. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2294. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2295. }
  2296. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.MoveRet)
  2297. return target;
  2298. }
  2299. size_t MoveRet::ByteSizeLong() const {
  2300. // @@protoc_insertion_point(message_byte_size_start:RemoNet.MoveRet)
  2301. size_t total_size = 0;
  2302. uint32_t cached_has_bits = 0;
  2303. // Prevent compiler warnings about cached_has_bits being unused
  2304. (void) cached_has_bits;
  2305. // .RemoNet.MoveDesc desc = 1;
  2306. if (this->_internal_desc() != 0) {
  2307. total_size += 1 +
  2308. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  2309. }
  2310. // int32 peer = 2;
  2311. if (this->_internal_peer() != 0) {
  2312. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2313. }
  2314. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2315. }
  2316. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRet::_class_data_ = {
  2317. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2318. MoveRet::MergeImpl
  2319. };
  2320. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRet::GetClassData() const { return &_class_data_; }
  2321. void MoveRet::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2322. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2323. static_cast<MoveRet *>(to)->MergeFrom(
  2324. static_cast<const MoveRet &>(from));
  2325. }
  2326. void MoveRet::MergeFrom(const MoveRet& from) {
  2327. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.MoveRet)
  2328. GOOGLE_DCHECK_NE(&from, this);
  2329. uint32_t cached_has_bits = 0;
  2330. (void) cached_has_bits;
  2331. if (from._internal_desc() != 0) {
  2332. _internal_set_desc(from._internal_desc());
  2333. }
  2334. if (from._internal_peer() != 0) {
  2335. _internal_set_peer(from._internal_peer());
  2336. }
  2337. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2338. }
  2339. void MoveRet::CopyFrom(const MoveRet& from) {
  2340. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.MoveRet)
  2341. if (&from == this) return;
  2342. Clear();
  2343. MergeFrom(from);
  2344. }
  2345. bool MoveRet::IsInitialized() const {
  2346. return true;
  2347. }
  2348. void MoveRet::InternalSwap(MoveRet* other) {
  2349. using std::swap;
  2350. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2351. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2352. PROTOBUF_FIELD_OFFSET(MoveRet, peer_)
  2353. + sizeof(MoveRet::peer_)
  2354. - PROTOBUF_FIELD_OFFSET(MoveRet, desc_)>(
  2355. reinterpret_cast<char*>(&desc_),
  2356. reinterpret_cast<char*>(&other->desc_));
  2357. }
  2358. ::PROTOBUF_NAMESPACE_ID::Metadata MoveRet::GetMetadata() const {
  2359. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2360. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2361. file_level_metadata_protocol_2eproto[3]);
  2362. }
  2363. // ===================================================================
  2364. class CSMoveEnd::_Internal {
  2365. public:
  2366. };
  2367. CSMoveEnd::CSMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2368. bool is_message_owned)
  2369. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2370. SharedCtor();
  2371. if (!is_message_owned) {
  2372. RegisterArenaDtor(arena);
  2373. }
  2374. // @@protoc_insertion_point(arena_constructor:RemoNet.CSMoveEnd)
  2375. }
  2376. CSMoveEnd::CSMoveEnd(const CSMoveEnd& from)
  2377. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2378. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2379. ::memcpy(&area_, &from.area_,
  2380. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2381. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2382. // @@protoc_insertion_point(copy_constructor:RemoNet.CSMoveEnd)
  2383. }
  2384. inline void CSMoveEnd::SharedCtor() {
  2385. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2386. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2387. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2388. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2389. }
  2390. CSMoveEnd::~CSMoveEnd() {
  2391. // @@protoc_insertion_point(destructor:RemoNet.CSMoveEnd)
  2392. if (GetArenaForAllocation() != nullptr) return;
  2393. SharedDtor();
  2394. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2395. }
  2396. inline void CSMoveEnd::SharedDtor() {
  2397. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2398. }
  2399. void CSMoveEnd::ArenaDtor(void* object) {
  2400. CSMoveEnd* _this = reinterpret_cast< CSMoveEnd* >(object);
  2401. (void)_this;
  2402. }
  2403. void CSMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2404. }
  2405. void CSMoveEnd::SetCachedSize(int size) const {
  2406. _cached_size_.Set(size);
  2407. }
  2408. void CSMoveEnd::Clear() {
  2409. // @@protoc_insertion_point(message_clear_start:RemoNet.CSMoveEnd)
  2410. uint32_t cached_has_bits = 0;
  2411. // Prevent compiler warnings about cached_has_bits being unused
  2412. (void) cached_has_bits;
  2413. ::memset(&area_, 0, static_cast<size_t>(
  2414. reinterpret_cast<char*>(&uid_) -
  2415. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2416. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2417. }
  2418. const char* CSMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2419. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2420. while (!ctx->Done(&ptr)) {
  2421. uint32_t tag;
  2422. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2423. switch (tag >> 3) {
  2424. // int32 area = 1;
  2425. case 1:
  2426. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2427. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2428. CHK_(ptr);
  2429. } else
  2430. goto handle_unusual;
  2431. continue;
  2432. // int32 no = 2;
  2433. case 2:
  2434. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2435. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2436. CHK_(ptr);
  2437. } else
  2438. goto handle_unusual;
  2439. continue;
  2440. // int32 uid = 3;
  2441. case 3:
  2442. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2443. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2444. CHK_(ptr);
  2445. } else
  2446. goto handle_unusual;
  2447. continue;
  2448. default:
  2449. goto handle_unusual;
  2450. } // switch
  2451. handle_unusual:
  2452. if ((tag == 0) || ((tag & 7) == 4)) {
  2453. CHK_(ptr);
  2454. ctx->SetLastTag(tag);
  2455. goto message_done;
  2456. }
  2457. ptr = UnknownFieldParse(
  2458. tag,
  2459. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2460. ptr, ctx);
  2461. CHK_(ptr != nullptr);
  2462. } // while
  2463. message_done:
  2464. return ptr;
  2465. failure:
  2466. ptr = nullptr;
  2467. goto message_done;
  2468. #undef CHK_
  2469. }
  2470. uint8_t* CSMoveEnd::_InternalSerialize(
  2471. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2472. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSMoveEnd)
  2473. uint32_t cached_has_bits = 0;
  2474. (void) cached_has_bits;
  2475. // int32 area = 1;
  2476. if (this->_internal_area() != 0) {
  2477. target = stream->EnsureSpace(target);
  2478. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2479. }
  2480. // int32 no = 2;
  2481. if (this->_internal_no() != 0) {
  2482. target = stream->EnsureSpace(target);
  2483. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2484. }
  2485. // int32 uid = 3;
  2486. if (this->_internal_uid() != 0) {
  2487. target = stream->EnsureSpace(target);
  2488. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2489. }
  2490. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2491. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2492. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2493. }
  2494. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSMoveEnd)
  2495. return target;
  2496. }
  2497. size_t CSMoveEnd::ByteSizeLong() const {
  2498. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSMoveEnd)
  2499. size_t total_size = 0;
  2500. uint32_t cached_has_bits = 0;
  2501. // Prevent compiler warnings about cached_has_bits being unused
  2502. (void) cached_has_bits;
  2503. // int32 area = 1;
  2504. if (this->_internal_area() != 0) {
  2505. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2506. }
  2507. // int32 no = 2;
  2508. if (this->_internal_no() != 0) {
  2509. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2510. }
  2511. // int32 uid = 3;
  2512. if (this->_internal_uid() != 0) {
  2513. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2514. }
  2515. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2516. }
  2517. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSMoveEnd::_class_data_ = {
  2518. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2519. CSMoveEnd::MergeImpl
  2520. };
  2521. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSMoveEnd::GetClassData() const { return &_class_data_; }
  2522. void CSMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2523. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2524. static_cast<CSMoveEnd *>(to)->MergeFrom(
  2525. static_cast<const CSMoveEnd &>(from));
  2526. }
  2527. void CSMoveEnd::MergeFrom(const CSMoveEnd& from) {
  2528. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSMoveEnd)
  2529. GOOGLE_DCHECK_NE(&from, this);
  2530. uint32_t cached_has_bits = 0;
  2531. (void) cached_has_bits;
  2532. if (from._internal_area() != 0) {
  2533. _internal_set_area(from._internal_area());
  2534. }
  2535. if (from._internal_no() != 0) {
  2536. _internal_set_no(from._internal_no());
  2537. }
  2538. if (from._internal_uid() != 0) {
  2539. _internal_set_uid(from._internal_uid());
  2540. }
  2541. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2542. }
  2543. void CSMoveEnd::CopyFrom(const CSMoveEnd& from) {
  2544. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSMoveEnd)
  2545. if (&from == this) return;
  2546. Clear();
  2547. MergeFrom(from);
  2548. }
  2549. bool CSMoveEnd::IsInitialized() const {
  2550. return true;
  2551. }
  2552. void CSMoveEnd::InternalSwap(CSMoveEnd* other) {
  2553. using std::swap;
  2554. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2555. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2556. PROTOBUF_FIELD_OFFSET(CSMoveEnd, uid_)
  2557. + sizeof(CSMoveEnd::uid_)
  2558. - PROTOBUF_FIELD_OFFSET(CSMoveEnd, area_)>(
  2559. reinterpret_cast<char*>(&area_),
  2560. reinterpret_cast<char*>(&other->area_));
  2561. }
  2562. ::PROTOBUF_NAMESPACE_ID::Metadata CSMoveEnd::GetMetadata() const {
  2563. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2564. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2565. file_level_metadata_protocol_2eproto[4]);
  2566. }
  2567. // ===================================================================
  2568. class SCMoveBegin::_Internal {
  2569. public:
  2570. };
  2571. SCMoveBegin::SCMoveBegin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2572. bool is_message_owned)
  2573. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2574. SharedCtor();
  2575. if (!is_message_owned) {
  2576. RegisterArenaDtor(arena);
  2577. }
  2578. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveBegin)
  2579. }
  2580. SCMoveBegin::SCMoveBegin(const SCMoveBegin& from)
  2581. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2582. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2583. ::memcpy(&uid_, &from.uid_,
  2584. static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2585. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2586. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveBegin)
  2587. }
  2588. inline void SCMoveBegin::SharedCtor() {
  2589. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2590. reinterpret_cast<char*>(&uid_) - reinterpret_cast<char*>(this)),
  2591. 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
  2592. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2593. }
  2594. SCMoveBegin::~SCMoveBegin() {
  2595. // @@protoc_insertion_point(destructor:RemoNet.SCMoveBegin)
  2596. if (GetArenaForAllocation() != nullptr) return;
  2597. SharedDtor();
  2598. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2599. }
  2600. inline void SCMoveBegin::SharedDtor() {
  2601. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2602. }
  2603. void SCMoveBegin::ArenaDtor(void* object) {
  2604. SCMoveBegin* _this = reinterpret_cast< SCMoveBegin* >(object);
  2605. (void)_this;
  2606. }
  2607. void SCMoveBegin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2608. }
  2609. void SCMoveBegin::SetCachedSize(int size) const {
  2610. _cached_size_.Set(size);
  2611. }
  2612. void SCMoveBegin::Clear() {
  2613. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveBegin)
  2614. uint32_t cached_has_bits = 0;
  2615. // Prevent compiler warnings about cached_has_bits being unused
  2616. (void) cached_has_bits;
  2617. ::memset(&uid_, 0, static_cast<size_t>(
  2618. reinterpret_cast<char*>(&y_) -
  2619. reinterpret_cast<char*>(&uid_)) + sizeof(y_));
  2620. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2621. }
  2622. const char* SCMoveBegin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2623. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2624. while (!ctx->Done(&ptr)) {
  2625. uint32_t tag;
  2626. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2627. switch (tag >> 3) {
  2628. // int32 uid = 1;
  2629. case 1:
  2630. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2631. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2632. CHK_(ptr);
  2633. } else
  2634. goto handle_unusual;
  2635. continue;
  2636. // int32 area = 2;
  2637. case 2:
  2638. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2639. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2640. CHK_(ptr);
  2641. } else
  2642. goto handle_unusual;
  2643. continue;
  2644. // int32 no = 3;
  2645. case 3:
  2646. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2647. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2648. CHK_(ptr);
  2649. } else
  2650. goto handle_unusual;
  2651. continue;
  2652. // float x = 4;
  2653. case 4:
  2654. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) {
  2655. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2656. ptr += sizeof(float);
  2657. } else
  2658. goto handle_unusual;
  2659. continue;
  2660. // float y = 5;
  2661. case 5:
  2662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 45)) {
  2663. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2664. ptr += sizeof(float);
  2665. } else
  2666. goto handle_unusual;
  2667. continue;
  2668. default:
  2669. goto handle_unusual;
  2670. } // switch
  2671. handle_unusual:
  2672. if ((tag == 0) || ((tag & 7) == 4)) {
  2673. CHK_(ptr);
  2674. ctx->SetLastTag(tag);
  2675. goto message_done;
  2676. }
  2677. ptr = UnknownFieldParse(
  2678. tag,
  2679. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2680. ptr, ctx);
  2681. CHK_(ptr != nullptr);
  2682. } // while
  2683. message_done:
  2684. return ptr;
  2685. failure:
  2686. ptr = nullptr;
  2687. goto message_done;
  2688. #undef CHK_
  2689. }
  2690. uint8_t* SCMoveBegin::_InternalSerialize(
  2691. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2692. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveBegin)
  2693. uint32_t cached_has_bits = 0;
  2694. (void) cached_has_bits;
  2695. // int32 uid = 1;
  2696. if (this->_internal_uid() != 0) {
  2697. target = stream->EnsureSpace(target);
  2698. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_uid(), target);
  2699. }
  2700. // int32 area = 2;
  2701. if (this->_internal_area() != 0) {
  2702. target = stream->EnsureSpace(target);
  2703. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_area(), target);
  2704. }
  2705. // int32 no = 3;
  2706. if (this->_internal_no() != 0) {
  2707. target = stream->EnsureSpace(target);
  2708. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_no(), target);
  2709. }
  2710. // float x = 4;
  2711. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2712. float tmp_x = this->_internal_x();
  2713. uint32_t raw_x;
  2714. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2715. if (raw_x != 0) {
  2716. target = stream->EnsureSpace(target);
  2717. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_x(), target);
  2718. }
  2719. // float y = 5;
  2720. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2721. float tmp_y = this->_internal_y();
  2722. uint32_t raw_y;
  2723. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2724. if (raw_y != 0) {
  2725. target = stream->EnsureSpace(target);
  2726. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_y(), target);
  2727. }
  2728. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2729. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2730. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2731. }
  2732. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveBegin)
  2733. return target;
  2734. }
  2735. size_t SCMoveBegin::ByteSizeLong() const {
  2736. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveBegin)
  2737. size_t total_size = 0;
  2738. uint32_t cached_has_bits = 0;
  2739. // Prevent compiler warnings about cached_has_bits being unused
  2740. (void) cached_has_bits;
  2741. // int32 uid = 1;
  2742. if (this->_internal_uid() != 0) {
  2743. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2744. }
  2745. // int32 area = 2;
  2746. if (this->_internal_area() != 0) {
  2747. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2748. }
  2749. // int32 no = 3;
  2750. if (this->_internal_no() != 0) {
  2751. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2752. }
  2753. // float x = 4;
  2754. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2755. float tmp_x = this->_internal_x();
  2756. uint32_t raw_x;
  2757. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2758. if (raw_x != 0) {
  2759. total_size += 1 + 4;
  2760. }
  2761. // float y = 5;
  2762. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2763. float tmp_y = this->_internal_y();
  2764. uint32_t raw_y;
  2765. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2766. if (raw_y != 0) {
  2767. total_size += 1 + 4;
  2768. }
  2769. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2770. }
  2771. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveBegin::_class_data_ = {
  2772. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2773. SCMoveBegin::MergeImpl
  2774. };
  2775. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveBegin::GetClassData() const { return &_class_data_; }
  2776. void SCMoveBegin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2777. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2778. static_cast<SCMoveBegin *>(to)->MergeFrom(
  2779. static_cast<const SCMoveBegin &>(from));
  2780. }
  2781. void SCMoveBegin::MergeFrom(const SCMoveBegin& from) {
  2782. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveBegin)
  2783. GOOGLE_DCHECK_NE(&from, this);
  2784. uint32_t cached_has_bits = 0;
  2785. (void) cached_has_bits;
  2786. if (from._internal_uid() != 0) {
  2787. _internal_set_uid(from._internal_uid());
  2788. }
  2789. if (from._internal_area() != 0) {
  2790. _internal_set_area(from._internal_area());
  2791. }
  2792. if (from._internal_no() != 0) {
  2793. _internal_set_no(from._internal_no());
  2794. }
  2795. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2796. float tmp_x = from._internal_x();
  2797. uint32_t raw_x;
  2798. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2799. if (raw_x != 0) {
  2800. _internal_set_x(from._internal_x());
  2801. }
  2802. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  2803. float tmp_y = from._internal_y();
  2804. uint32_t raw_y;
  2805. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2806. if (raw_y != 0) {
  2807. _internal_set_y(from._internal_y());
  2808. }
  2809. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2810. }
  2811. void SCMoveBegin::CopyFrom(const SCMoveBegin& from) {
  2812. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveBegin)
  2813. if (&from == this) return;
  2814. Clear();
  2815. MergeFrom(from);
  2816. }
  2817. bool SCMoveBegin::IsInitialized() const {
  2818. return true;
  2819. }
  2820. void SCMoveBegin::InternalSwap(SCMoveBegin* other) {
  2821. using std::swap;
  2822. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2823. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2824. PROTOBUF_FIELD_OFFSET(SCMoveBegin, y_)
  2825. + sizeof(SCMoveBegin::y_)
  2826. - PROTOBUF_FIELD_OFFSET(SCMoveBegin, uid_)>(
  2827. reinterpret_cast<char*>(&uid_),
  2828. reinterpret_cast<char*>(&other->uid_));
  2829. }
  2830. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveBegin::GetMetadata() const {
  2831. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2832. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2833. file_level_metadata_protocol_2eproto[5]);
  2834. }
  2835. // ===================================================================
  2836. class SCMoveEnd::_Internal {
  2837. public:
  2838. };
  2839. SCMoveEnd::SCMoveEnd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2840. bool is_message_owned)
  2841. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2842. SharedCtor();
  2843. if (!is_message_owned) {
  2844. RegisterArenaDtor(arena);
  2845. }
  2846. // @@protoc_insertion_point(arena_constructor:RemoNet.SCMoveEnd)
  2847. }
  2848. SCMoveEnd::SCMoveEnd(const SCMoveEnd& from)
  2849. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2850. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2851. ::memcpy(&area_, &from.area_,
  2852. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2853. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2854. // @@protoc_insertion_point(copy_constructor:RemoNet.SCMoveEnd)
  2855. }
  2856. inline void SCMoveEnd::SharedCtor() {
  2857. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2858. reinterpret_cast<char*>(&area_) - reinterpret_cast<char*>(this)),
  2859. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2860. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2861. }
  2862. SCMoveEnd::~SCMoveEnd() {
  2863. // @@protoc_insertion_point(destructor:RemoNet.SCMoveEnd)
  2864. if (GetArenaForAllocation() != nullptr) return;
  2865. SharedDtor();
  2866. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2867. }
  2868. inline void SCMoveEnd::SharedDtor() {
  2869. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2870. }
  2871. void SCMoveEnd::ArenaDtor(void* object) {
  2872. SCMoveEnd* _this = reinterpret_cast< SCMoveEnd* >(object);
  2873. (void)_this;
  2874. }
  2875. void SCMoveEnd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2876. }
  2877. void SCMoveEnd::SetCachedSize(int size) const {
  2878. _cached_size_.Set(size);
  2879. }
  2880. void SCMoveEnd::Clear() {
  2881. // @@protoc_insertion_point(message_clear_start:RemoNet.SCMoveEnd)
  2882. uint32_t cached_has_bits = 0;
  2883. // Prevent compiler warnings about cached_has_bits being unused
  2884. (void) cached_has_bits;
  2885. ::memset(&area_, 0, static_cast<size_t>(
  2886. reinterpret_cast<char*>(&uid_) -
  2887. reinterpret_cast<char*>(&area_)) + sizeof(uid_));
  2888. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2889. }
  2890. const char* SCMoveEnd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2891. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2892. while (!ctx->Done(&ptr)) {
  2893. uint32_t tag;
  2894. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2895. switch (tag >> 3) {
  2896. // int32 area = 1;
  2897. case 1:
  2898. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2899. area_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2900. CHK_(ptr);
  2901. } else
  2902. goto handle_unusual;
  2903. continue;
  2904. // int32 no = 2;
  2905. case 2:
  2906. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2907. no_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2908. CHK_(ptr);
  2909. } else
  2910. goto handle_unusual;
  2911. continue;
  2912. // int32 uid = 3;
  2913. case 3:
  2914. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2915. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2916. CHK_(ptr);
  2917. } else
  2918. goto handle_unusual;
  2919. continue;
  2920. default:
  2921. goto handle_unusual;
  2922. } // switch
  2923. handle_unusual:
  2924. if ((tag == 0) || ((tag & 7) == 4)) {
  2925. CHK_(ptr);
  2926. ctx->SetLastTag(tag);
  2927. goto message_done;
  2928. }
  2929. ptr = UnknownFieldParse(
  2930. tag,
  2931. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2932. ptr, ctx);
  2933. CHK_(ptr != nullptr);
  2934. } // while
  2935. message_done:
  2936. return ptr;
  2937. failure:
  2938. ptr = nullptr;
  2939. goto message_done;
  2940. #undef CHK_
  2941. }
  2942. uint8_t* SCMoveEnd::_InternalSerialize(
  2943. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2944. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCMoveEnd)
  2945. uint32_t cached_has_bits = 0;
  2946. (void) cached_has_bits;
  2947. // int32 area = 1;
  2948. if (this->_internal_area() != 0) {
  2949. target = stream->EnsureSpace(target);
  2950. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_area(), target);
  2951. }
  2952. // int32 no = 2;
  2953. if (this->_internal_no() != 0) {
  2954. target = stream->EnsureSpace(target);
  2955. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_no(), target);
  2956. }
  2957. // int32 uid = 3;
  2958. if (this->_internal_uid() != 0) {
  2959. target = stream->EnsureSpace(target);
  2960. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_uid(), target);
  2961. }
  2962. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2963. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2964. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2965. }
  2966. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCMoveEnd)
  2967. return target;
  2968. }
  2969. size_t SCMoveEnd::ByteSizeLong() const {
  2970. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCMoveEnd)
  2971. size_t total_size = 0;
  2972. uint32_t cached_has_bits = 0;
  2973. // Prevent compiler warnings about cached_has_bits being unused
  2974. (void) cached_has_bits;
  2975. // int32 area = 1;
  2976. if (this->_internal_area() != 0) {
  2977. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_area());
  2978. }
  2979. // int32 no = 2;
  2980. if (this->_internal_no() != 0) {
  2981. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_no());
  2982. }
  2983. // int32 uid = 3;
  2984. if (this->_internal_uid() != 0) {
  2985. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2986. }
  2987. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2988. }
  2989. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCMoveEnd::_class_data_ = {
  2990. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2991. SCMoveEnd::MergeImpl
  2992. };
  2993. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCMoveEnd::GetClassData() const { return &_class_data_; }
  2994. void SCMoveEnd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2995. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2996. static_cast<SCMoveEnd *>(to)->MergeFrom(
  2997. static_cast<const SCMoveEnd &>(from));
  2998. }
  2999. void SCMoveEnd::MergeFrom(const SCMoveEnd& from) {
  3000. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCMoveEnd)
  3001. GOOGLE_DCHECK_NE(&from, this);
  3002. uint32_t cached_has_bits = 0;
  3003. (void) cached_has_bits;
  3004. if (from._internal_area() != 0) {
  3005. _internal_set_area(from._internal_area());
  3006. }
  3007. if (from._internal_no() != 0) {
  3008. _internal_set_no(from._internal_no());
  3009. }
  3010. if (from._internal_uid() != 0) {
  3011. _internal_set_uid(from._internal_uid());
  3012. }
  3013. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3014. }
  3015. void SCMoveEnd::CopyFrom(const SCMoveEnd& from) {
  3016. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCMoveEnd)
  3017. if (&from == this) return;
  3018. Clear();
  3019. MergeFrom(from);
  3020. }
  3021. bool SCMoveEnd::IsInitialized() const {
  3022. return true;
  3023. }
  3024. void SCMoveEnd::InternalSwap(SCMoveEnd* other) {
  3025. using std::swap;
  3026. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3027. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3028. PROTOBUF_FIELD_OFFSET(SCMoveEnd, uid_)
  3029. + sizeof(SCMoveEnd::uid_)
  3030. - PROTOBUF_FIELD_OFFSET(SCMoveEnd, area_)>(
  3031. reinterpret_cast<char*>(&area_),
  3032. reinterpret_cast<char*>(&other->area_));
  3033. }
  3034. ::PROTOBUF_NAMESPACE_ID::Metadata SCMoveEnd::GetMetadata() const {
  3035. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3036. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3037. file_level_metadata_protocol_2eproto[6]);
  3038. }
  3039. // ===================================================================
  3040. class CSAdd::_Internal {
  3041. public:
  3042. };
  3043. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3044. bool is_message_owned)
  3045. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3046. SharedCtor();
  3047. if (!is_message_owned) {
  3048. RegisterArenaDtor(arena);
  3049. }
  3050. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  3051. }
  3052. CSAdd::CSAdd(const CSAdd& from)
  3053. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3054. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3055. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3056. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3057. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3058. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3059. if (!from._internal_serial().empty()) {
  3060. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  3061. GetArenaForAllocation());
  3062. }
  3063. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3064. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3065. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3066. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3067. if (!from._internal_name().empty()) {
  3068. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3069. GetArenaForAllocation());
  3070. }
  3071. ::memcpy(&type_, &from.type_,
  3072. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3073. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3074. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  3075. }
  3076. inline void CSAdd::SharedCtor() {
  3077. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3078. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3079. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3080. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3081. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3082. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3083. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3084. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3085. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3086. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  3087. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3088. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3089. }
  3090. CSAdd::~CSAdd() {
  3091. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  3092. if (GetArenaForAllocation() != nullptr) return;
  3093. SharedDtor();
  3094. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3095. }
  3096. inline void CSAdd::SharedDtor() {
  3097. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3098. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3099. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3100. }
  3101. void CSAdd::ArenaDtor(void* object) {
  3102. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  3103. (void)_this;
  3104. }
  3105. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3106. }
  3107. void CSAdd::SetCachedSize(int size) const {
  3108. _cached_size_.Set(size);
  3109. }
  3110. void CSAdd::Clear() {
  3111. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  3112. uint32_t cached_has_bits = 0;
  3113. // Prevent compiler warnings about cached_has_bits being unused
  3114. (void) cached_has_bits;
  3115. serial_.ClearToEmpty();
  3116. name_.ClearToEmpty();
  3117. ::memset(&type_, 0, static_cast<size_t>(
  3118. reinterpret_cast<char*>(&car_) -
  3119. reinterpret_cast<char*>(&type_)) + sizeof(car_));
  3120. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3121. }
  3122. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3123. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3124. while (!ctx->Done(&ptr)) {
  3125. uint32_t tag;
  3126. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3127. switch (tag >> 3) {
  3128. // string serial = 1;
  3129. case 1:
  3130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3131. auto str = _internal_mutable_serial();
  3132. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3133. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  3134. CHK_(ptr);
  3135. } else
  3136. goto handle_unusual;
  3137. continue;
  3138. // int32 type = 2;
  3139. case 2:
  3140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3141. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3142. CHK_(ptr);
  3143. } else
  3144. goto handle_unusual;
  3145. continue;
  3146. // string name = 3;
  3147. case 3:
  3148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3149. auto str = _internal_mutable_name();
  3150. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3151. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  3152. CHK_(ptr);
  3153. } else
  3154. goto handle_unusual;
  3155. continue;
  3156. // int32 car = 4;
  3157. case 4:
  3158. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3159. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3160. CHK_(ptr);
  3161. } else
  3162. goto handle_unusual;
  3163. continue;
  3164. default:
  3165. goto handle_unusual;
  3166. } // switch
  3167. handle_unusual:
  3168. if ((tag == 0) || ((tag & 7) == 4)) {
  3169. CHK_(ptr);
  3170. ctx->SetLastTag(tag);
  3171. goto message_done;
  3172. }
  3173. ptr = UnknownFieldParse(
  3174. tag,
  3175. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3176. ptr, ctx);
  3177. CHK_(ptr != nullptr);
  3178. } // while
  3179. message_done:
  3180. return ptr;
  3181. failure:
  3182. ptr = nullptr;
  3183. goto message_done;
  3184. #undef CHK_
  3185. }
  3186. uint8_t* CSAdd::_InternalSerialize(
  3187. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3188. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  3189. uint32_t cached_has_bits = 0;
  3190. (void) cached_has_bits;
  3191. // string serial = 1;
  3192. if (!this->_internal_serial().empty()) {
  3193. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3194. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  3195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3196. "RemoNet.CSAdd.serial");
  3197. target = stream->WriteStringMaybeAliased(
  3198. 1, this->_internal_serial(), target);
  3199. }
  3200. // int32 type = 2;
  3201. if (this->_internal_type() != 0) {
  3202. target = stream->EnsureSpace(target);
  3203. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  3204. }
  3205. // string name = 3;
  3206. if (!this->_internal_name().empty()) {
  3207. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3208. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3209. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3210. "RemoNet.CSAdd.name");
  3211. target = stream->WriteStringMaybeAliased(
  3212. 3, this->_internal_name(), target);
  3213. }
  3214. // int32 car = 4;
  3215. if (this->_internal_car() != 0) {
  3216. target = stream->EnsureSpace(target);
  3217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3218. }
  3219. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3220. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3221. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3222. }
  3223. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  3224. return target;
  3225. }
  3226. size_t CSAdd::ByteSizeLong() const {
  3227. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  3228. size_t total_size = 0;
  3229. uint32_t cached_has_bits = 0;
  3230. // Prevent compiler warnings about cached_has_bits being unused
  3231. (void) cached_has_bits;
  3232. // string serial = 1;
  3233. if (!this->_internal_serial().empty()) {
  3234. total_size += 1 +
  3235. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3236. this->_internal_serial());
  3237. }
  3238. // string name = 3;
  3239. if (!this->_internal_name().empty()) {
  3240. total_size += 1 +
  3241. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3242. this->_internal_name());
  3243. }
  3244. // int32 type = 2;
  3245. if (this->_internal_type() != 0) {
  3246. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3247. }
  3248. // int32 car = 4;
  3249. if (this->_internal_car() != 0) {
  3250. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3251. }
  3252. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3253. }
  3254. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  3255. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3256. CSAdd::MergeImpl
  3257. };
  3258. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  3259. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3260. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3261. static_cast<CSAdd *>(to)->MergeFrom(
  3262. static_cast<const CSAdd &>(from));
  3263. }
  3264. void CSAdd::MergeFrom(const CSAdd& from) {
  3265. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  3266. GOOGLE_DCHECK_NE(&from, this);
  3267. uint32_t cached_has_bits = 0;
  3268. (void) cached_has_bits;
  3269. if (!from._internal_serial().empty()) {
  3270. _internal_set_serial(from._internal_serial());
  3271. }
  3272. if (!from._internal_name().empty()) {
  3273. _internal_set_name(from._internal_name());
  3274. }
  3275. if (from._internal_type() != 0) {
  3276. _internal_set_type(from._internal_type());
  3277. }
  3278. if (from._internal_car() != 0) {
  3279. _internal_set_car(from._internal_car());
  3280. }
  3281. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3282. }
  3283. void CSAdd::CopyFrom(const CSAdd& from) {
  3284. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  3285. if (&from == this) return;
  3286. Clear();
  3287. MergeFrom(from);
  3288. }
  3289. bool CSAdd::IsInitialized() const {
  3290. return true;
  3291. }
  3292. void CSAdd::InternalSwap(CSAdd* other) {
  3293. using std::swap;
  3294. auto* lhs_arena = GetArenaForAllocation();
  3295. auto* rhs_arena = other->GetArenaForAllocation();
  3296. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3297. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3298. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3299. &serial_, lhs_arena,
  3300. &other->serial_, rhs_arena
  3301. );
  3302. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3303. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3304. &name_, lhs_arena,
  3305. &other->name_, rhs_arena
  3306. );
  3307. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3308. PROTOBUF_FIELD_OFFSET(CSAdd, car_)
  3309. + sizeof(CSAdd::car_)
  3310. - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>(
  3311. reinterpret_cast<char*>(&type_),
  3312. reinterpret_cast<char*>(&other->type_));
  3313. }
  3314. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  3315. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3316. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3317. file_level_metadata_protocol_2eproto[7]);
  3318. }
  3319. // ===================================================================
  3320. class SCAdd::_Internal {
  3321. public:
  3322. };
  3323. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3324. bool is_message_owned)
  3325. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3326. SharedCtor();
  3327. if (!is_message_owned) {
  3328. RegisterArenaDtor(arena);
  3329. }
  3330. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  3331. }
  3332. SCAdd::SCAdd(const SCAdd& from)
  3333. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3334. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3335. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3336. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3337. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3338. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3339. if (!from._internal_name().empty()) {
  3340. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3341. GetArenaForAllocation());
  3342. }
  3343. ::memcpy(&ret_, &from.ret_,
  3344. static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3345. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3346. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  3347. }
  3348. inline void SCAdd::SharedCtor() {
  3349. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3350. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3351. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3352. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3353. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3354. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  3355. 0, static_cast<size_t>(reinterpret_cast<char*>(&car_) -
  3356. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3357. }
  3358. SCAdd::~SCAdd() {
  3359. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  3360. if (GetArenaForAllocation() != nullptr) return;
  3361. SharedDtor();
  3362. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3363. }
  3364. inline void SCAdd::SharedDtor() {
  3365. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3366. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3367. }
  3368. void SCAdd::ArenaDtor(void* object) {
  3369. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  3370. (void)_this;
  3371. }
  3372. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3373. }
  3374. void SCAdd::SetCachedSize(int size) const {
  3375. _cached_size_.Set(size);
  3376. }
  3377. void SCAdd::Clear() {
  3378. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  3379. uint32_t cached_has_bits = 0;
  3380. // Prevent compiler warnings about cached_has_bits being unused
  3381. (void) cached_has_bits;
  3382. name_.ClearToEmpty();
  3383. ::memset(&ret_, 0, static_cast<size_t>(
  3384. reinterpret_cast<char*>(&car_) -
  3385. reinterpret_cast<char*>(&ret_)) + sizeof(car_));
  3386. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3387. }
  3388. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3389. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3390. while (!ctx->Done(&ptr)) {
  3391. uint32_t tag;
  3392. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3393. switch (tag >> 3) {
  3394. // bool ret = 1;
  3395. case 1:
  3396. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3397. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3398. CHK_(ptr);
  3399. } else
  3400. goto handle_unusual;
  3401. continue;
  3402. // int32 uid = 2;
  3403. case 2:
  3404. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3405. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3406. CHK_(ptr);
  3407. } else
  3408. goto handle_unusual;
  3409. continue;
  3410. // string name = 3;
  3411. case 3:
  3412. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  3413. auto str = _internal_mutable_name();
  3414. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  3415. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  3416. CHK_(ptr);
  3417. } else
  3418. goto handle_unusual;
  3419. continue;
  3420. // int32 car = 4;
  3421. case 4:
  3422. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3423. car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3424. CHK_(ptr);
  3425. } else
  3426. goto handle_unusual;
  3427. continue;
  3428. default:
  3429. goto handle_unusual;
  3430. } // switch
  3431. handle_unusual:
  3432. if ((tag == 0) || ((tag & 7) == 4)) {
  3433. CHK_(ptr);
  3434. ctx->SetLastTag(tag);
  3435. goto message_done;
  3436. }
  3437. ptr = UnknownFieldParse(
  3438. tag,
  3439. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3440. ptr, ctx);
  3441. CHK_(ptr != nullptr);
  3442. } // while
  3443. message_done:
  3444. return ptr;
  3445. failure:
  3446. ptr = nullptr;
  3447. goto message_done;
  3448. #undef CHK_
  3449. }
  3450. uint8_t* SCAdd::_InternalSerialize(
  3451. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3452. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  3453. uint32_t cached_has_bits = 0;
  3454. (void) cached_has_bits;
  3455. // bool ret = 1;
  3456. if (this->_internal_ret() != 0) {
  3457. target = stream->EnsureSpace(target);
  3458. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3459. }
  3460. // int32 uid = 2;
  3461. if (this->_internal_uid() != 0) {
  3462. target = stream->EnsureSpace(target);
  3463. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3464. }
  3465. // string name = 3;
  3466. if (!this->_internal_name().empty()) {
  3467. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3468. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3469. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3470. "RemoNet.SCAdd.name");
  3471. target = stream->WriteStringMaybeAliased(
  3472. 3, this->_internal_name(), target);
  3473. }
  3474. // int32 car = 4;
  3475. if (this->_internal_car() != 0) {
  3476. target = stream->EnsureSpace(target);
  3477. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target);
  3478. }
  3479. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3480. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3481. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3482. }
  3483. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  3484. return target;
  3485. }
  3486. size_t SCAdd::ByteSizeLong() const {
  3487. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  3488. size_t total_size = 0;
  3489. uint32_t cached_has_bits = 0;
  3490. // Prevent compiler warnings about cached_has_bits being unused
  3491. (void) cached_has_bits;
  3492. // string name = 3;
  3493. if (!this->_internal_name().empty()) {
  3494. total_size += 1 +
  3495. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3496. this->_internal_name());
  3497. }
  3498. // bool ret = 1;
  3499. if (this->_internal_ret() != 0) {
  3500. total_size += 1 + 1;
  3501. }
  3502. // int32 uid = 2;
  3503. if (this->_internal_uid() != 0) {
  3504. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3505. }
  3506. // int32 car = 4;
  3507. if (this->_internal_car() != 0) {
  3508. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car());
  3509. }
  3510. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3511. }
  3512. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  3513. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3514. SCAdd::MergeImpl
  3515. };
  3516. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  3517. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3518. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3519. static_cast<SCAdd *>(to)->MergeFrom(
  3520. static_cast<const SCAdd &>(from));
  3521. }
  3522. void SCAdd::MergeFrom(const SCAdd& from) {
  3523. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  3524. GOOGLE_DCHECK_NE(&from, this);
  3525. uint32_t cached_has_bits = 0;
  3526. (void) cached_has_bits;
  3527. if (!from._internal_name().empty()) {
  3528. _internal_set_name(from._internal_name());
  3529. }
  3530. if (from._internal_ret() != 0) {
  3531. _internal_set_ret(from._internal_ret());
  3532. }
  3533. if (from._internal_uid() != 0) {
  3534. _internal_set_uid(from._internal_uid());
  3535. }
  3536. if (from._internal_car() != 0) {
  3537. _internal_set_car(from._internal_car());
  3538. }
  3539. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3540. }
  3541. void SCAdd::CopyFrom(const SCAdd& from) {
  3542. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  3543. if (&from == this) return;
  3544. Clear();
  3545. MergeFrom(from);
  3546. }
  3547. bool SCAdd::IsInitialized() const {
  3548. return true;
  3549. }
  3550. void SCAdd::InternalSwap(SCAdd* other) {
  3551. using std::swap;
  3552. auto* lhs_arena = GetArenaForAllocation();
  3553. auto* rhs_arena = other->GetArenaForAllocation();
  3554. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3555. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3556. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3557. &name_, lhs_arena,
  3558. &other->name_, rhs_arena
  3559. );
  3560. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3561. PROTOBUF_FIELD_OFFSET(SCAdd, car_)
  3562. + sizeof(SCAdd::car_)
  3563. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  3564. reinterpret_cast<char*>(&ret_),
  3565. reinterpret_cast<char*>(&other->ret_));
  3566. }
  3567. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  3568. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3569. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3570. file_level_metadata_protocol_2eproto[8]);
  3571. }
  3572. // ===================================================================
  3573. class SCKickOff::_Internal {
  3574. public:
  3575. };
  3576. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3577. bool is_message_owned)
  3578. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3579. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  3580. }
  3581. SCKickOff::SCKickOff(const SCKickOff& from)
  3582. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3583. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3584. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  3585. }
  3586. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  3587. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3588. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3589. };
  3590. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  3591. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  3592. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3593. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3594. file_level_metadata_protocol_2eproto[9]);
  3595. }
  3596. // ===================================================================
  3597. class CSState::_Internal {
  3598. public:
  3599. };
  3600. CSState::CSState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3601. bool is_message_owned)
  3602. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3603. SharedCtor();
  3604. if (!is_message_owned) {
  3605. RegisterArenaDtor(arena);
  3606. }
  3607. // @@protoc_insertion_point(arena_constructor:RemoNet.CSState)
  3608. }
  3609. CSState::CSState(const CSState& from)
  3610. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3611. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3612. ::memcpy(&state_, &from.state_,
  3613. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3614. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3615. // @@protoc_insertion_point(copy_constructor:RemoNet.CSState)
  3616. }
  3617. inline void CSState::SharedCtor() {
  3618. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3619. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3620. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3621. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3622. }
  3623. CSState::~CSState() {
  3624. // @@protoc_insertion_point(destructor:RemoNet.CSState)
  3625. if (GetArenaForAllocation() != nullptr) return;
  3626. SharedDtor();
  3627. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3628. }
  3629. inline void CSState::SharedDtor() {
  3630. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3631. }
  3632. void CSState::ArenaDtor(void* object) {
  3633. CSState* _this = reinterpret_cast< CSState* >(object);
  3634. (void)_this;
  3635. }
  3636. void CSState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3637. }
  3638. void CSState::SetCachedSize(int size) const {
  3639. _cached_size_.Set(size);
  3640. }
  3641. void CSState::Clear() {
  3642. // @@protoc_insertion_point(message_clear_start:RemoNet.CSState)
  3643. uint32_t cached_has_bits = 0;
  3644. // Prevent compiler warnings about cached_has_bits being unused
  3645. (void) cached_has_bits;
  3646. ::memset(&state_, 0, static_cast<size_t>(
  3647. reinterpret_cast<char*>(&uid_) -
  3648. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3649. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3650. }
  3651. const char* CSState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3652. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3653. while (!ctx->Done(&ptr)) {
  3654. uint32_t tag;
  3655. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3656. switch (tag >> 3) {
  3657. // .RemoNet.UserState state = 1;
  3658. case 1:
  3659. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3660. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3661. CHK_(ptr);
  3662. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3663. } else
  3664. goto handle_unusual;
  3665. continue;
  3666. // int32 uid = 2;
  3667. case 2:
  3668. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3669. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3670. CHK_(ptr);
  3671. } else
  3672. goto handle_unusual;
  3673. continue;
  3674. default:
  3675. goto handle_unusual;
  3676. } // switch
  3677. handle_unusual:
  3678. if ((tag == 0) || ((tag & 7) == 4)) {
  3679. CHK_(ptr);
  3680. ctx->SetLastTag(tag);
  3681. goto message_done;
  3682. }
  3683. ptr = UnknownFieldParse(
  3684. tag,
  3685. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3686. ptr, ctx);
  3687. CHK_(ptr != nullptr);
  3688. } // while
  3689. message_done:
  3690. return ptr;
  3691. failure:
  3692. ptr = nullptr;
  3693. goto message_done;
  3694. #undef CHK_
  3695. }
  3696. uint8_t* CSState::_InternalSerialize(
  3697. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3698. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSState)
  3699. uint32_t cached_has_bits = 0;
  3700. (void) cached_has_bits;
  3701. // .RemoNet.UserState state = 1;
  3702. if (this->_internal_state() != 0) {
  3703. target = stream->EnsureSpace(target);
  3704. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3705. 1, this->_internal_state(), target);
  3706. }
  3707. // int32 uid = 2;
  3708. if (this->_internal_uid() != 0) {
  3709. target = stream->EnsureSpace(target);
  3710. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3711. }
  3712. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3713. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3714. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3715. }
  3716. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSState)
  3717. return target;
  3718. }
  3719. size_t CSState::ByteSizeLong() const {
  3720. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSState)
  3721. size_t total_size = 0;
  3722. uint32_t cached_has_bits = 0;
  3723. // Prevent compiler warnings about cached_has_bits being unused
  3724. (void) cached_has_bits;
  3725. // .RemoNet.UserState state = 1;
  3726. if (this->_internal_state() != 0) {
  3727. total_size += 1 +
  3728. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3729. }
  3730. // int32 uid = 2;
  3731. if (this->_internal_uid() != 0) {
  3732. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3733. }
  3734. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3735. }
  3736. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSState::_class_data_ = {
  3737. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3738. CSState::MergeImpl
  3739. };
  3740. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSState::GetClassData() const { return &_class_data_; }
  3741. void CSState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3742. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3743. static_cast<CSState *>(to)->MergeFrom(
  3744. static_cast<const CSState &>(from));
  3745. }
  3746. void CSState::MergeFrom(const CSState& from) {
  3747. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSState)
  3748. GOOGLE_DCHECK_NE(&from, this);
  3749. uint32_t cached_has_bits = 0;
  3750. (void) cached_has_bits;
  3751. if (from._internal_state() != 0) {
  3752. _internal_set_state(from._internal_state());
  3753. }
  3754. if (from._internal_uid() != 0) {
  3755. _internal_set_uid(from._internal_uid());
  3756. }
  3757. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3758. }
  3759. void CSState::CopyFrom(const CSState& from) {
  3760. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSState)
  3761. if (&from == this) return;
  3762. Clear();
  3763. MergeFrom(from);
  3764. }
  3765. bool CSState::IsInitialized() const {
  3766. return true;
  3767. }
  3768. void CSState::InternalSwap(CSState* other) {
  3769. using std::swap;
  3770. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3771. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3772. PROTOBUF_FIELD_OFFSET(CSState, uid_)
  3773. + sizeof(CSState::uid_)
  3774. - PROTOBUF_FIELD_OFFSET(CSState, state_)>(
  3775. reinterpret_cast<char*>(&state_),
  3776. reinterpret_cast<char*>(&other->state_));
  3777. }
  3778. ::PROTOBUF_NAMESPACE_ID::Metadata CSState::GetMetadata() const {
  3779. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3780. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3781. file_level_metadata_protocol_2eproto[10]);
  3782. }
  3783. // ===================================================================
  3784. class SCState::_Internal {
  3785. public:
  3786. };
  3787. SCState::SCState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3788. bool is_message_owned)
  3789. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3790. SharedCtor();
  3791. if (!is_message_owned) {
  3792. RegisterArenaDtor(arena);
  3793. }
  3794. // @@protoc_insertion_point(arena_constructor:RemoNet.SCState)
  3795. }
  3796. SCState::SCState(const SCState& from)
  3797. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3798. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3799. ::memcpy(&state_, &from.state_,
  3800. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3801. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3802. // @@protoc_insertion_point(copy_constructor:RemoNet.SCState)
  3803. }
  3804. inline void SCState::SharedCtor() {
  3805. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3806. reinterpret_cast<char*>(&state_) - reinterpret_cast<char*>(this)),
  3807. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  3808. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3809. }
  3810. SCState::~SCState() {
  3811. // @@protoc_insertion_point(destructor:RemoNet.SCState)
  3812. if (GetArenaForAllocation() != nullptr) return;
  3813. SharedDtor();
  3814. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3815. }
  3816. inline void SCState::SharedDtor() {
  3817. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3818. }
  3819. void SCState::ArenaDtor(void* object) {
  3820. SCState* _this = reinterpret_cast< SCState* >(object);
  3821. (void)_this;
  3822. }
  3823. void SCState::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3824. }
  3825. void SCState::SetCachedSize(int size) const {
  3826. _cached_size_.Set(size);
  3827. }
  3828. void SCState::Clear() {
  3829. // @@protoc_insertion_point(message_clear_start:RemoNet.SCState)
  3830. uint32_t cached_has_bits = 0;
  3831. // Prevent compiler warnings about cached_has_bits being unused
  3832. (void) cached_has_bits;
  3833. ::memset(&state_, 0, static_cast<size_t>(
  3834. reinterpret_cast<char*>(&uid_) -
  3835. reinterpret_cast<char*>(&state_)) + sizeof(uid_));
  3836. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3837. }
  3838. const char* SCState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3839. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3840. while (!ctx->Done(&ptr)) {
  3841. uint32_t tag;
  3842. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3843. switch (tag >> 3) {
  3844. // .RemoNet.UserState state = 1;
  3845. case 1:
  3846. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3847. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3848. CHK_(ptr);
  3849. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  3850. } else
  3851. goto handle_unusual;
  3852. continue;
  3853. // int32 uid = 2;
  3854. case 2:
  3855. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3856. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3857. CHK_(ptr);
  3858. } else
  3859. goto handle_unusual;
  3860. continue;
  3861. default:
  3862. goto handle_unusual;
  3863. } // switch
  3864. handle_unusual:
  3865. if ((tag == 0) || ((tag & 7) == 4)) {
  3866. CHK_(ptr);
  3867. ctx->SetLastTag(tag);
  3868. goto message_done;
  3869. }
  3870. ptr = UnknownFieldParse(
  3871. tag,
  3872. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3873. ptr, ctx);
  3874. CHK_(ptr != nullptr);
  3875. } // while
  3876. message_done:
  3877. return ptr;
  3878. failure:
  3879. ptr = nullptr;
  3880. goto message_done;
  3881. #undef CHK_
  3882. }
  3883. uint8_t* SCState::_InternalSerialize(
  3884. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3885. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCState)
  3886. uint32_t cached_has_bits = 0;
  3887. (void) cached_has_bits;
  3888. // .RemoNet.UserState state = 1;
  3889. if (this->_internal_state() != 0) {
  3890. target = stream->EnsureSpace(target);
  3891. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3892. 1, this->_internal_state(), target);
  3893. }
  3894. // int32 uid = 2;
  3895. if (this->_internal_uid() != 0) {
  3896. target = stream->EnsureSpace(target);
  3897. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3898. }
  3899. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3900. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3901. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3902. }
  3903. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCState)
  3904. return target;
  3905. }
  3906. size_t SCState::ByteSizeLong() const {
  3907. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCState)
  3908. size_t total_size = 0;
  3909. uint32_t cached_has_bits = 0;
  3910. // Prevent compiler warnings about cached_has_bits being unused
  3911. (void) cached_has_bits;
  3912. // .RemoNet.UserState state = 1;
  3913. if (this->_internal_state() != 0) {
  3914. total_size += 1 +
  3915. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  3916. }
  3917. // int32 uid = 2;
  3918. if (this->_internal_uid() != 0) {
  3919. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3920. }
  3921. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3922. }
  3923. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCState::_class_data_ = {
  3924. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3925. SCState::MergeImpl
  3926. };
  3927. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCState::GetClassData() const { return &_class_data_; }
  3928. void SCState::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3929. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3930. static_cast<SCState *>(to)->MergeFrom(
  3931. static_cast<const SCState &>(from));
  3932. }
  3933. void SCState::MergeFrom(const SCState& from) {
  3934. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCState)
  3935. GOOGLE_DCHECK_NE(&from, this);
  3936. uint32_t cached_has_bits = 0;
  3937. (void) cached_has_bits;
  3938. if (from._internal_state() != 0) {
  3939. _internal_set_state(from._internal_state());
  3940. }
  3941. if (from._internal_uid() != 0) {
  3942. _internal_set_uid(from._internal_uid());
  3943. }
  3944. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3945. }
  3946. void SCState::CopyFrom(const SCState& from) {
  3947. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCState)
  3948. if (&from == this) return;
  3949. Clear();
  3950. MergeFrom(from);
  3951. }
  3952. bool SCState::IsInitialized() const {
  3953. return true;
  3954. }
  3955. void SCState::InternalSwap(SCState* other) {
  3956. using std::swap;
  3957. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3958. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3959. PROTOBUF_FIELD_OFFSET(SCState, uid_)
  3960. + sizeof(SCState::uid_)
  3961. - PROTOBUF_FIELD_OFFSET(SCState, state_)>(
  3962. reinterpret_cast<char*>(&state_),
  3963. reinterpret_cast<char*>(&other->state_));
  3964. }
  3965. ::PROTOBUF_NAMESPACE_ID::Metadata SCState::GetMetadata() const {
  3966. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3967. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3968. file_level_metadata_protocol_2eproto[11]);
  3969. }
  3970. // ===================================================================
  3971. class Robot::_Internal {
  3972. public:
  3973. };
  3974. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3975. bool is_message_owned)
  3976. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3977. SharedCtor();
  3978. if (!is_message_owned) {
  3979. RegisterArenaDtor(arena);
  3980. }
  3981. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  3982. }
  3983. Robot::Robot(const Robot& from)
  3984. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3985. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3986. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  3987. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3988. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3989. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3990. if (!from._internal_name().empty()) {
  3991. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  3992. GetArenaForAllocation());
  3993. }
  3994. ::memcpy(&rid_, &from.rid_,
  3995. static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  3996. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  3997. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  3998. }
  3999. inline void Robot::SharedCtor() {
  4000. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4001. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4002. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4003. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4004. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4005. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  4006. 0, static_cast<size_t>(reinterpret_cast<char*>(&cartype_) -
  4007. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4008. }
  4009. Robot::~Robot() {
  4010. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  4011. if (GetArenaForAllocation() != nullptr) return;
  4012. SharedDtor();
  4013. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4014. }
  4015. inline void Robot::SharedDtor() {
  4016. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4017. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4018. }
  4019. void Robot::ArenaDtor(void* object) {
  4020. Robot* _this = reinterpret_cast< Robot* >(object);
  4021. (void)_this;
  4022. }
  4023. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4024. }
  4025. void Robot::SetCachedSize(int size) const {
  4026. _cached_size_.Set(size);
  4027. }
  4028. void Robot::Clear() {
  4029. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  4030. uint32_t cached_has_bits = 0;
  4031. // Prevent compiler warnings about cached_has_bits being unused
  4032. (void) cached_has_bits;
  4033. name_.ClearToEmpty();
  4034. ::memset(&rid_, 0, static_cast<size_t>(
  4035. reinterpret_cast<char*>(&cartype_) -
  4036. reinterpret_cast<char*>(&rid_)) + sizeof(cartype_));
  4037. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4038. }
  4039. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4040. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4041. while (!ctx->Done(&ptr)) {
  4042. uint32_t tag;
  4043. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4044. switch (tag >> 3) {
  4045. // int32 rid = 1;
  4046. case 1:
  4047. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4048. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4049. CHK_(ptr);
  4050. } else
  4051. goto handle_unusual;
  4052. continue;
  4053. // string name = 2;
  4054. case 2:
  4055. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4056. auto str = _internal_mutable_name();
  4057. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4058. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  4059. CHK_(ptr);
  4060. } else
  4061. goto handle_unusual;
  4062. continue;
  4063. // int32 type = 3;
  4064. case 3:
  4065. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4066. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4067. CHK_(ptr);
  4068. } else
  4069. goto handle_unusual;
  4070. continue;
  4071. // .RemoNet.UserState state = 4;
  4072. case 4:
  4073. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  4074. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4075. CHK_(ptr);
  4076. _internal_set_state(static_cast<::RemoNet::UserState>(val));
  4077. } else
  4078. goto handle_unusual;
  4079. continue;
  4080. // int32 carType = 5;
  4081. case 5:
  4082. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4083. cartype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4084. CHK_(ptr);
  4085. } else
  4086. goto handle_unusual;
  4087. continue;
  4088. default:
  4089. goto handle_unusual;
  4090. } // switch
  4091. handle_unusual:
  4092. if ((tag == 0) || ((tag & 7) == 4)) {
  4093. CHK_(ptr);
  4094. ctx->SetLastTag(tag);
  4095. goto message_done;
  4096. }
  4097. ptr = UnknownFieldParse(
  4098. tag,
  4099. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4100. ptr, ctx);
  4101. CHK_(ptr != nullptr);
  4102. } // while
  4103. message_done:
  4104. return ptr;
  4105. failure:
  4106. ptr = nullptr;
  4107. goto message_done;
  4108. #undef CHK_
  4109. }
  4110. uint8_t* Robot::_InternalSerialize(
  4111. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4112. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  4113. uint32_t cached_has_bits = 0;
  4114. (void) cached_has_bits;
  4115. // int32 rid = 1;
  4116. if (this->_internal_rid() != 0) {
  4117. target = stream->EnsureSpace(target);
  4118. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  4119. }
  4120. // string name = 2;
  4121. if (!this->_internal_name().empty()) {
  4122. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4123. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4124. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4125. "RemoNet.Robot.name");
  4126. target = stream->WriteStringMaybeAliased(
  4127. 2, this->_internal_name(), target);
  4128. }
  4129. // int32 type = 3;
  4130. if (this->_internal_type() != 0) {
  4131. target = stream->EnsureSpace(target);
  4132. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  4133. }
  4134. // .RemoNet.UserState state = 4;
  4135. if (this->_internal_state() != 0) {
  4136. target = stream->EnsureSpace(target);
  4137. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  4138. 4, this->_internal_state(), target);
  4139. }
  4140. // int32 carType = 5;
  4141. if (this->_internal_cartype() != 0) {
  4142. target = stream->EnsureSpace(target);
  4143. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_cartype(), target);
  4144. }
  4145. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4146. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4147. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4148. }
  4149. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  4150. return target;
  4151. }
  4152. size_t Robot::ByteSizeLong() const {
  4153. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  4154. size_t total_size = 0;
  4155. uint32_t cached_has_bits = 0;
  4156. // Prevent compiler warnings about cached_has_bits being unused
  4157. (void) cached_has_bits;
  4158. // string name = 2;
  4159. if (!this->_internal_name().empty()) {
  4160. total_size += 1 +
  4161. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4162. this->_internal_name());
  4163. }
  4164. // int32 rid = 1;
  4165. if (this->_internal_rid() != 0) {
  4166. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  4167. }
  4168. // int32 type = 3;
  4169. if (this->_internal_type() != 0) {
  4170. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  4171. }
  4172. // .RemoNet.UserState state = 4;
  4173. if (this->_internal_state() != 0) {
  4174. total_size += 1 +
  4175. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  4176. }
  4177. // int32 carType = 5;
  4178. if (this->_internal_cartype() != 0) {
  4179. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cartype());
  4180. }
  4181. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4182. }
  4183. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  4184. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4185. Robot::MergeImpl
  4186. };
  4187. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  4188. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4189. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4190. static_cast<Robot *>(to)->MergeFrom(
  4191. static_cast<const Robot &>(from));
  4192. }
  4193. void Robot::MergeFrom(const Robot& from) {
  4194. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  4195. GOOGLE_DCHECK_NE(&from, this);
  4196. uint32_t cached_has_bits = 0;
  4197. (void) cached_has_bits;
  4198. if (!from._internal_name().empty()) {
  4199. _internal_set_name(from._internal_name());
  4200. }
  4201. if (from._internal_rid() != 0) {
  4202. _internal_set_rid(from._internal_rid());
  4203. }
  4204. if (from._internal_type() != 0) {
  4205. _internal_set_type(from._internal_type());
  4206. }
  4207. if (from._internal_state() != 0) {
  4208. _internal_set_state(from._internal_state());
  4209. }
  4210. if (from._internal_cartype() != 0) {
  4211. _internal_set_cartype(from._internal_cartype());
  4212. }
  4213. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4214. }
  4215. void Robot::CopyFrom(const Robot& from) {
  4216. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  4217. if (&from == this) return;
  4218. Clear();
  4219. MergeFrom(from);
  4220. }
  4221. bool Robot::IsInitialized() const {
  4222. return true;
  4223. }
  4224. void Robot::InternalSwap(Robot* other) {
  4225. using std::swap;
  4226. auto* lhs_arena = GetArenaForAllocation();
  4227. auto* rhs_arena = other->GetArenaForAllocation();
  4228. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4229. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4230. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4231. &name_, lhs_arena,
  4232. &other->name_, rhs_arena
  4233. );
  4234. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4235. PROTOBUF_FIELD_OFFSET(Robot, cartype_)
  4236. + sizeof(Robot::cartype_)
  4237. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  4238. reinterpret_cast<char*>(&rid_),
  4239. reinterpret_cast<char*>(&other->rid_));
  4240. }
  4241. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  4242. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4243. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4244. file_level_metadata_protocol_2eproto[12]);
  4245. }
  4246. // ===================================================================
  4247. class CSRobot::_Internal {
  4248. public:
  4249. };
  4250. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4251. bool is_message_owned)
  4252. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  4253. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  4254. }
  4255. CSRobot::CSRobot(const CSRobot& from)
  4256. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  4257. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4258. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  4259. }
  4260. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  4261. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  4262. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  4263. };
  4264. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  4265. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  4266. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4267. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4268. file_level_metadata_protocol_2eproto[13]);
  4269. }
  4270. // ===================================================================
  4271. class SCRobot::_Internal {
  4272. public:
  4273. };
  4274. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4275. bool is_message_owned)
  4276. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  4277. robot_(arena) {
  4278. SharedCtor();
  4279. if (!is_message_owned) {
  4280. RegisterArenaDtor(arena);
  4281. }
  4282. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  4283. }
  4284. SCRobot::SCRobot(const SCRobot& from)
  4285. : ::PROTOBUF_NAMESPACE_ID::Message(),
  4286. robot_(from.robot_) {
  4287. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4288. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  4289. }
  4290. inline void SCRobot::SharedCtor() {
  4291. }
  4292. SCRobot::~SCRobot() {
  4293. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  4294. if (GetArenaForAllocation() != nullptr) return;
  4295. SharedDtor();
  4296. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4297. }
  4298. inline void SCRobot::SharedDtor() {
  4299. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4300. }
  4301. void SCRobot::ArenaDtor(void* object) {
  4302. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  4303. (void)_this;
  4304. }
  4305. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4306. }
  4307. void SCRobot::SetCachedSize(int size) const {
  4308. _cached_size_.Set(size);
  4309. }
  4310. void SCRobot::Clear() {
  4311. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  4312. uint32_t cached_has_bits = 0;
  4313. // Prevent compiler warnings about cached_has_bits being unused
  4314. (void) cached_has_bits;
  4315. robot_.Clear();
  4316. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4317. }
  4318. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4319. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4320. while (!ctx->Done(&ptr)) {
  4321. uint32_t tag;
  4322. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4323. switch (tag >> 3) {
  4324. // repeated .RemoNet.Robot robot = 1;
  4325. case 1:
  4326. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4327. ptr -= 1;
  4328. do {
  4329. ptr += 1;
  4330. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  4331. CHK_(ptr);
  4332. if (!ctx->DataAvailable(ptr)) break;
  4333. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  4334. } else
  4335. goto handle_unusual;
  4336. continue;
  4337. default:
  4338. goto handle_unusual;
  4339. } // switch
  4340. handle_unusual:
  4341. if ((tag == 0) || ((tag & 7) == 4)) {
  4342. CHK_(ptr);
  4343. ctx->SetLastTag(tag);
  4344. goto message_done;
  4345. }
  4346. ptr = UnknownFieldParse(
  4347. tag,
  4348. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4349. ptr, ctx);
  4350. CHK_(ptr != nullptr);
  4351. } // while
  4352. message_done:
  4353. return ptr;
  4354. failure:
  4355. ptr = nullptr;
  4356. goto message_done;
  4357. #undef CHK_
  4358. }
  4359. uint8_t* SCRobot::_InternalSerialize(
  4360. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4361. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  4362. uint32_t cached_has_bits = 0;
  4363. (void) cached_has_bits;
  4364. // repeated .RemoNet.Robot robot = 1;
  4365. for (unsigned int i = 0,
  4366. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  4367. target = stream->EnsureSpace(target);
  4368. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4369. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  4370. }
  4371. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4373. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4374. }
  4375. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  4376. return target;
  4377. }
  4378. size_t SCRobot::ByteSizeLong() const {
  4379. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  4380. size_t total_size = 0;
  4381. uint32_t cached_has_bits = 0;
  4382. // Prevent compiler warnings about cached_has_bits being unused
  4383. (void) cached_has_bits;
  4384. // repeated .RemoNet.Robot robot = 1;
  4385. total_size += 1UL * this->_internal_robot_size();
  4386. for (const auto& msg : this->robot_) {
  4387. total_size +=
  4388. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  4389. }
  4390. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4391. }
  4392. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  4393. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4394. SCRobot::MergeImpl
  4395. };
  4396. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  4397. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4398. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4399. static_cast<SCRobot *>(to)->MergeFrom(
  4400. static_cast<const SCRobot &>(from));
  4401. }
  4402. void SCRobot::MergeFrom(const SCRobot& from) {
  4403. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  4404. GOOGLE_DCHECK_NE(&from, this);
  4405. uint32_t cached_has_bits = 0;
  4406. (void) cached_has_bits;
  4407. robot_.MergeFrom(from.robot_);
  4408. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4409. }
  4410. void SCRobot::CopyFrom(const SCRobot& from) {
  4411. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  4412. if (&from == this) return;
  4413. Clear();
  4414. MergeFrom(from);
  4415. }
  4416. bool SCRobot::IsInitialized() const {
  4417. return true;
  4418. }
  4419. void SCRobot::InternalSwap(SCRobot* other) {
  4420. using std::swap;
  4421. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4422. robot_.InternalSwap(&other->robot_);
  4423. }
  4424. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  4425. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4426. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4427. file_level_metadata_protocol_2eproto[14]);
  4428. }
  4429. // ===================================================================
  4430. class CSSign::_Internal {
  4431. public:
  4432. };
  4433. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4434. bool is_message_owned)
  4435. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4436. SharedCtor();
  4437. if (!is_message_owned) {
  4438. RegisterArenaDtor(arena);
  4439. }
  4440. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  4441. }
  4442. CSSign::CSSign(const CSSign& from)
  4443. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4444. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4445. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4446. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4447. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4448. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4449. if (!from._internal_account().empty()) {
  4450. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  4451. GetArenaForAllocation());
  4452. }
  4453. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4454. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4455. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4456. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4457. if (!from._internal_password().empty()) {
  4458. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  4459. GetArenaForAllocation());
  4460. }
  4461. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  4462. }
  4463. inline void CSSign::SharedCtor() {
  4464. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4465. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4466. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4467. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4468. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4469. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4470. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4471. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4472. }
  4473. CSSign::~CSSign() {
  4474. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  4475. if (GetArenaForAllocation() != nullptr) return;
  4476. SharedDtor();
  4477. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4478. }
  4479. inline void CSSign::SharedDtor() {
  4480. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4481. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4482. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4483. }
  4484. void CSSign::ArenaDtor(void* object) {
  4485. CSSign* _this = reinterpret_cast< CSSign* >(object);
  4486. (void)_this;
  4487. }
  4488. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4489. }
  4490. void CSSign::SetCachedSize(int size) const {
  4491. _cached_size_.Set(size);
  4492. }
  4493. void CSSign::Clear() {
  4494. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  4495. uint32_t cached_has_bits = 0;
  4496. // Prevent compiler warnings about cached_has_bits being unused
  4497. (void) cached_has_bits;
  4498. account_.ClearToEmpty();
  4499. password_.ClearToEmpty();
  4500. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4501. }
  4502. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4503. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4504. while (!ctx->Done(&ptr)) {
  4505. uint32_t tag;
  4506. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4507. switch (tag >> 3) {
  4508. // string account = 1;
  4509. case 1:
  4510. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  4511. auto str = _internal_mutable_account();
  4512. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4513. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  4514. CHK_(ptr);
  4515. } else
  4516. goto handle_unusual;
  4517. continue;
  4518. // string password = 2;
  4519. case 2:
  4520. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  4521. auto str = _internal_mutable_password();
  4522. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4523. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  4524. CHK_(ptr);
  4525. } else
  4526. goto handle_unusual;
  4527. continue;
  4528. default:
  4529. goto handle_unusual;
  4530. } // switch
  4531. handle_unusual:
  4532. if ((tag == 0) || ((tag & 7) == 4)) {
  4533. CHK_(ptr);
  4534. ctx->SetLastTag(tag);
  4535. goto message_done;
  4536. }
  4537. ptr = UnknownFieldParse(
  4538. tag,
  4539. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4540. ptr, ctx);
  4541. CHK_(ptr != nullptr);
  4542. } // while
  4543. message_done:
  4544. return ptr;
  4545. failure:
  4546. ptr = nullptr;
  4547. goto message_done;
  4548. #undef CHK_
  4549. }
  4550. uint8_t* CSSign::_InternalSerialize(
  4551. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4552. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  4553. uint32_t cached_has_bits = 0;
  4554. (void) cached_has_bits;
  4555. // string account = 1;
  4556. if (!this->_internal_account().empty()) {
  4557. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4558. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  4559. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4560. "RemoNet.CSSign.account");
  4561. target = stream->WriteStringMaybeAliased(
  4562. 1, this->_internal_account(), target);
  4563. }
  4564. // string password = 2;
  4565. if (!this->_internal_password().empty()) {
  4566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4567. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  4568. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4569. "RemoNet.CSSign.password");
  4570. target = stream->WriteStringMaybeAliased(
  4571. 2, this->_internal_password(), target);
  4572. }
  4573. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4574. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4575. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4576. }
  4577. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  4578. return target;
  4579. }
  4580. size_t CSSign::ByteSizeLong() const {
  4581. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  4582. size_t total_size = 0;
  4583. uint32_t cached_has_bits = 0;
  4584. // Prevent compiler warnings about cached_has_bits being unused
  4585. (void) cached_has_bits;
  4586. // string account = 1;
  4587. if (!this->_internal_account().empty()) {
  4588. total_size += 1 +
  4589. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4590. this->_internal_account());
  4591. }
  4592. // string password = 2;
  4593. if (!this->_internal_password().empty()) {
  4594. total_size += 1 +
  4595. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4596. this->_internal_password());
  4597. }
  4598. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4599. }
  4600. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  4601. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4602. CSSign::MergeImpl
  4603. };
  4604. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  4605. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4606. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4607. static_cast<CSSign *>(to)->MergeFrom(
  4608. static_cast<const CSSign &>(from));
  4609. }
  4610. void CSSign::MergeFrom(const CSSign& from) {
  4611. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  4612. GOOGLE_DCHECK_NE(&from, this);
  4613. uint32_t cached_has_bits = 0;
  4614. (void) cached_has_bits;
  4615. if (!from._internal_account().empty()) {
  4616. _internal_set_account(from._internal_account());
  4617. }
  4618. if (!from._internal_password().empty()) {
  4619. _internal_set_password(from._internal_password());
  4620. }
  4621. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4622. }
  4623. void CSSign::CopyFrom(const CSSign& from) {
  4624. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  4625. if (&from == this) return;
  4626. Clear();
  4627. MergeFrom(from);
  4628. }
  4629. bool CSSign::IsInitialized() const {
  4630. return true;
  4631. }
  4632. void CSSign::InternalSwap(CSSign* other) {
  4633. using std::swap;
  4634. auto* lhs_arena = GetArenaForAllocation();
  4635. auto* rhs_arena = other->GetArenaForAllocation();
  4636. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4637. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4638. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4639. &account_, lhs_arena,
  4640. &other->account_, rhs_arena
  4641. );
  4642. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4643. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4644. &password_, lhs_arena,
  4645. &other->password_, rhs_arena
  4646. );
  4647. }
  4648. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  4649. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4650. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4651. file_level_metadata_protocol_2eproto[15]);
  4652. }
  4653. // ===================================================================
  4654. class SCSign::_Internal {
  4655. public:
  4656. };
  4657. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4658. bool is_message_owned)
  4659. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4660. SharedCtor();
  4661. if (!is_message_owned) {
  4662. RegisterArenaDtor(arena);
  4663. }
  4664. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  4665. }
  4666. SCSign::SCSign(const SCSign& from)
  4667. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4668. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4669. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4670. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4671. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4672. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4673. if (!from._internal_name().empty()) {
  4674. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  4675. GetArenaForAllocation());
  4676. }
  4677. ::memcpy(&ret_, &from.ret_,
  4678. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4679. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4680. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  4681. }
  4682. inline void SCSign::SharedCtor() {
  4683. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4685. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4686. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4687. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4688. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  4689. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  4690. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4691. }
  4692. SCSign::~SCSign() {
  4693. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  4694. if (GetArenaForAllocation() != nullptr) return;
  4695. SharedDtor();
  4696. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4697. }
  4698. inline void SCSign::SharedDtor() {
  4699. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4700. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4701. }
  4702. void SCSign::ArenaDtor(void* object) {
  4703. SCSign* _this = reinterpret_cast< SCSign* >(object);
  4704. (void)_this;
  4705. }
  4706. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4707. }
  4708. void SCSign::SetCachedSize(int size) const {
  4709. _cached_size_.Set(size);
  4710. }
  4711. void SCSign::Clear() {
  4712. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  4713. uint32_t cached_has_bits = 0;
  4714. // Prevent compiler warnings about cached_has_bits being unused
  4715. (void) cached_has_bits;
  4716. name_.ClearToEmpty();
  4717. ::memset(&ret_, 0, static_cast<size_t>(
  4718. reinterpret_cast<char*>(&uid_) -
  4719. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  4720. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4721. }
  4722. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4723. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4724. while (!ctx->Done(&ptr)) {
  4725. uint32_t tag;
  4726. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4727. switch (tag >> 3) {
  4728. // bool ret = 1;
  4729. case 1:
  4730. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4731. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  4732. CHK_(ptr);
  4733. } else
  4734. goto handle_unusual;
  4735. continue;
  4736. // int32 uid = 2;
  4737. case 2:
  4738. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4739. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4740. CHK_(ptr);
  4741. } else
  4742. goto handle_unusual;
  4743. continue;
  4744. // string name = 3;
  4745. case 3:
  4746. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4747. auto str = _internal_mutable_name();
  4748. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4749. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  4750. CHK_(ptr);
  4751. } else
  4752. goto handle_unusual;
  4753. continue;
  4754. default:
  4755. goto handle_unusual;
  4756. } // switch
  4757. handle_unusual:
  4758. if ((tag == 0) || ((tag & 7) == 4)) {
  4759. CHK_(ptr);
  4760. ctx->SetLastTag(tag);
  4761. goto message_done;
  4762. }
  4763. ptr = UnknownFieldParse(
  4764. tag,
  4765. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4766. ptr, ctx);
  4767. CHK_(ptr != nullptr);
  4768. } // while
  4769. message_done:
  4770. return ptr;
  4771. failure:
  4772. ptr = nullptr;
  4773. goto message_done;
  4774. #undef CHK_
  4775. }
  4776. uint8_t* SCSign::_InternalSerialize(
  4777. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4778. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  4779. uint32_t cached_has_bits = 0;
  4780. (void) cached_has_bits;
  4781. // bool ret = 1;
  4782. if (this->_internal_ret() != 0) {
  4783. target = stream->EnsureSpace(target);
  4784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  4785. }
  4786. // int32 uid = 2;
  4787. if (this->_internal_uid() != 0) {
  4788. target = stream->EnsureSpace(target);
  4789. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  4790. }
  4791. // string name = 3;
  4792. if (!this->_internal_name().empty()) {
  4793. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4794. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  4795. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4796. "RemoNet.SCSign.name");
  4797. target = stream->WriteStringMaybeAliased(
  4798. 3, this->_internal_name(), target);
  4799. }
  4800. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4801. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4802. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4803. }
  4804. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  4805. return target;
  4806. }
  4807. size_t SCSign::ByteSizeLong() const {
  4808. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  4809. size_t total_size = 0;
  4810. uint32_t cached_has_bits = 0;
  4811. // Prevent compiler warnings about cached_has_bits being unused
  4812. (void) cached_has_bits;
  4813. // string name = 3;
  4814. if (!this->_internal_name().empty()) {
  4815. total_size += 1 +
  4816. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4817. this->_internal_name());
  4818. }
  4819. // bool ret = 1;
  4820. if (this->_internal_ret() != 0) {
  4821. total_size += 1 + 1;
  4822. }
  4823. // int32 uid = 2;
  4824. if (this->_internal_uid() != 0) {
  4825. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  4826. }
  4827. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4828. }
  4829. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  4830. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4831. SCSign::MergeImpl
  4832. };
  4833. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  4834. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4835. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4836. static_cast<SCSign *>(to)->MergeFrom(
  4837. static_cast<const SCSign &>(from));
  4838. }
  4839. void SCSign::MergeFrom(const SCSign& from) {
  4840. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  4841. GOOGLE_DCHECK_NE(&from, this);
  4842. uint32_t cached_has_bits = 0;
  4843. (void) cached_has_bits;
  4844. if (!from._internal_name().empty()) {
  4845. _internal_set_name(from._internal_name());
  4846. }
  4847. if (from._internal_ret() != 0) {
  4848. _internal_set_ret(from._internal_ret());
  4849. }
  4850. if (from._internal_uid() != 0) {
  4851. _internal_set_uid(from._internal_uid());
  4852. }
  4853. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4854. }
  4855. void SCSign::CopyFrom(const SCSign& from) {
  4856. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  4857. if (&from == this) return;
  4858. Clear();
  4859. MergeFrom(from);
  4860. }
  4861. bool SCSign::IsInitialized() const {
  4862. return true;
  4863. }
  4864. void SCSign::InternalSwap(SCSign* other) {
  4865. using std::swap;
  4866. auto* lhs_arena = GetArenaForAllocation();
  4867. auto* rhs_arena = other->GetArenaForAllocation();
  4868. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4869. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4870. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4871. &name_, lhs_arena,
  4872. &other->name_, rhs_arena
  4873. );
  4874. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4875. PROTOBUF_FIELD_OFFSET(SCSign, uid_)
  4876. + sizeof(SCSign::uid_)
  4877. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  4878. reinterpret_cast<char*>(&ret_),
  4879. reinterpret_cast<char*>(&other->ret_));
  4880. }
  4881. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  4882. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4883. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4884. file_level_metadata_protocol_2eproto[16]);
  4885. }
  4886. // ===================================================================
  4887. class CSReq::_Internal {
  4888. public:
  4889. };
  4890. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4891. bool is_message_owned)
  4892. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4893. SharedCtor();
  4894. if (!is_message_owned) {
  4895. RegisterArenaDtor(arena);
  4896. }
  4897. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  4898. }
  4899. CSReq::CSReq(const CSReq& from)
  4900. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4901. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4902. ::memcpy(&peer_, &from.peer_,
  4903. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4904. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4905. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  4906. }
  4907. inline void CSReq::SharedCtor() {
  4908. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4909. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4910. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4911. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4912. }
  4913. CSReq::~CSReq() {
  4914. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  4915. if (GetArenaForAllocation() != nullptr) return;
  4916. SharedDtor();
  4917. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4918. }
  4919. inline void CSReq::SharedDtor() {
  4920. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4921. }
  4922. void CSReq::ArenaDtor(void* object) {
  4923. CSReq* _this = reinterpret_cast< CSReq* >(object);
  4924. (void)_this;
  4925. }
  4926. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4927. }
  4928. void CSReq::SetCachedSize(int size) const {
  4929. _cached_size_.Set(size);
  4930. }
  4931. void CSReq::Clear() {
  4932. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  4933. uint32_t cached_has_bits = 0;
  4934. // Prevent compiler warnings about cached_has_bits being unused
  4935. (void) cached_has_bits;
  4936. ::memset(&peer_, 0, static_cast<size_t>(
  4937. reinterpret_cast<char*>(&egotype_) -
  4938. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4939. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4940. }
  4941. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4942. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4943. while (!ctx->Done(&ptr)) {
  4944. uint32_t tag;
  4945. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4946. switch (tag >> 3) {
  4947. // int32 peer = 1;
  4948. case 1:
  4949. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4950. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4951. CHK_(ptr);
  4952. } else
  4953. goto handle_unusual;
  4954. continue;
  4955. // int32 index = 2;
  4956. case 2:
  4957. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4958. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4959. CHK_(ptr);
  4960. } else
  4961. goto handle_unusual;
  4962. continue;
  4963. // int32 egotype = 3;
  4964. case 3:
  4965. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  4966. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4967. CHK_(ptr);
  4968. } else
  4969. goto handle_unusual;
  4970. continue;
  4971. default:
  4972. goto handle_unusual;
  4973. } // switch
  4974. handle_unusual:
  4975. if ((tag == 0) || ((tag & 7) == 4)) {
  4976. CHK_(ptr);
  4977. ctx->SetLastTag(tag);
  4978. goto message_done;
  4979. }
  4980. ptr = UnknownFieldParse(
  4981. tag,
  4982. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4983. ptr, ctx);
  4984. CHK_(ptr != nullptr);
  4985. } // while
  4986. message_done:
  4987. return ptr;
  4988. failure:
  4989. ptr = nullptr;
  4990. goto message_done;
  4991. #undef CHK_
  4992. }
  4993. uint8_t* CSReq::_InternalSerialize(
  4994. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4995. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  4996. uint32_t cached_has_bits = 0;
  4997. (void) cached_has_bits;
  4998. // int32 peer = 1;
  4999. if (this->_internal_peer() != 0) {
  5000. target = stream->EnsureSpace(target);
  5001. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  5002. }
  5003. // int32 index = 2;
  5004. if (this->_internal_index() != 0) {
  5005. target = stream->EnsureSpace(target);
  5006. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5007. }
  5008. // int32 egotype = 3;
  5009. if (this->_internal_egotype() != 0) {
  5010. target = stream->EnsureSpace(target);
  5011. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5012. }
  5013. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5014. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5015. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5016. }
  5017. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  5018. return target;
  5019. }
  5020. size_t CSReq::ByteSizeLong() const {
  5021. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  5022. size_t total_size = 0;
  5023. uint32_t cached_has_bits = 0;
  5024. // Prevent compiler warnings about cached_has_bits being unused
  5025. (void) cached_has_bits;
  5026. // int32 peer = 1;
  5027. if (this->_internal_peer() != 0) {
  5028. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5029. }
  5030. // int32 index = 2;
  5031. if (this->_internal_index() != 0) {
  5032. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5033. }
  5034. // int32 egotype = 3;
  5035. if (this->_internal_egotype() != 0) {
  5036. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5037. }
  5038. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5039. }
  5040. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  5041. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5042. CSReq::MergeImpl
  5043. };
  5044. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  5045. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5046. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5047. static_cast<CSReq *>(to)->MergeFrom(
  5048. static_cast<const CSReq &>(from));
  5049. }
  5050. void CSReq::MergeFrom(const CSReq& from) {
  5051. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  5052. GOOGLE_DCHECK_NE(&from, this);
  5053. uint32_t cached_has_bits = 0;
  5054. (void) cached_has_bits;
  5055. if (from._internal_peer() != 0) {
  5056. _internal_set_peer(from._internal_peer());
  5057. }
  5058. if (from._internal_index() != 0) {
  5059. _internal_set_index(from._internal_index());
  5060. }
  5061. if (from._internal_egotype() != 0) {
  5062. _internal_set_egotype(from._internal_egotype());
  5063. }
  5064. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5065. }
  5066. void CSReq::CopyFrom(const CSReq& from) {
  5067. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  5068. if (&from == this) return;
  5069. Clear();
  5070. MergeFrom(from);
  5071. }
  5072. bool CSReq::IsInitialized() const {
  5073. return true;
  5074. }
  5075. void CSReq::InternalSwap(CSReq* other) {
  5076. using std::swap;
  5077. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5078. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5079. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  5080. + sizeof(CSReq::egotype_)
  5081. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  5082. reinterpret_cast<char*>(&peer_),
  5083. reinterpret_cast<char*>(&other->peer_));
  5084. }
  5085. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  5086. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5087. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5088. file_level_metadata_protocol_2eproto[17]);
  5089. }
  5090. // ===================================================================
  5091. class SCReq::_Internal {
  5092. public:
  5093. };
  5094. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5095. bool is_message_owned)
  5096. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5097. SharedCtor();
  5098. if (!is_message_owned) {
  5099. RegisterArenaDtor(arena);
  5100. }
  5101. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  5102. }
  5103. SCReq::SCReq(const SCReq& from)
  5104. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5105. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5106. ::memcpy(&desc_, &from.desc_,
  5107. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5108. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5109. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  5110. }
  5111. inline void SCReq::SharedCtor() {
  5112. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5113. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5114. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5115. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5116. }
  5117. SCReq::~SCReq() {
  5118. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  5119. if (GetArenaForAllocation() != nullptr) return;
  5120. SharedDtor();
  5121. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5122. }
  5123. inline void SCReq::SharedDtor() {
  5124. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5125. }
  5126. void SCReq::ArenaDtor(void* object) {
  5127. SCReq* _this = reinterpret_cast< SCReq* >(object);
  5128. (void)_this;
  5129. }
  5130. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5131. }
  5132. void SCReq::SetCachedSize(int size) const {
  5133. _cached_size_.Set(size);
  5134. }
  5135. void SCReq::Clear() {
  5136. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  5137. uint32_t cached_has_bits = 0;
  5138. // Prevent compiler warnings about cached_has_bits being unused
  5139. (void) cached_has_bits;
  5140. ::memset(&desc_, 0, static_cast<size_t>(
  5141. reinterpret_cast<char*>(&egotype_) -
  5142. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5143. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5144. }
  5145. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5146. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5147. while (!ctx->Done(&ptr)) {
  5148. uint32_t tag;
  5149. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5150. switch (tag >> 3) {
  5151. // .RemoNet.VideoDesc desc = 1;
  5152. case 1:
  5153. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5154. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5155. CHK_(ptr);
  5156. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5157. } else
  5158. goto handle_unusual;
  5159. continue;
  5160. // int32 peer = 2;
  5161. case 2:
  5162. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5163. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5164. CHK_(ptr);
  5165. } else
  5166. goto handle_unusual;
  5167. continue;
  5168. // int32 egotype = 3;
  5169. case 3:
  5170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5171. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5172. CHK_(ptr);
  5173. } else
  5174. goto handle_unusual;
  5175. continue;
  5176. default:
  5177. goto handle_unusual;
  5178. } // switch
  5179. handle_unusual:
  5180. if ((tag == 0) || ((tag & 7) == 4)) {
  5181. CHK_(ptr);
  5182. ctx->SetLastTag(tag);
  5183. goto message_done;
  5184. }
  5185. ptr = UnknownFieldParse(
  5186. tag,
  5187. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5188. ptr, ctx);
  5189. CHK_(ptr != nullptr);
  5190. } // while
  5191. message_done:
  5192. return ptr;
  5193. failure:
  5194. ptr = nullptr;
  5195. goto message_done;
  5196. #undef CHK_
  5197. }
  5198. uint8_t* SCReq::_InternalSerialize(
  5199. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5200. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  5201. uint32_t cached_has_bits = 0;
  5202. (void) cached_has_bits;
  5203. // .RemoNet.VideoDesc desc = 1;
  5204. if (this->_internal_desc() != 0) {
  5205. target = stream->EnsureSpace(target);
  5206. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5207. 1, this->_internal_desc(), target);
  5208. }
  5209. // int32 peer = 2;
  5210. if (this->_internal_peer() != 0) {
  5211. target = stream->EnsureSpace(target);
  5212. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5213. }
  5214. // int32 egotype = 3;
  5215. if (this->_internal_egotype() != 0) {
  5216. target = stream->EnsureSpace(target);
  5217. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5218. }
  5219. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5220. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5221. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5222. }
  5223. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  5224. return target;
  5225. }
  5226. size_t SCReq::ByteSizeLong() const {
  5227. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  5228. size_t total_size = 0;
  5229. uint32_t cached_has_bits = 0;
  5230. // Prevent compiler warnings about cached_has_bits being unused
  5231. (void) cached_has_bits;
  5232. // .RemoNet.VideoDesc desc = 1;
  5233. if (this->_internal_desc() != 0) {
  5234. total_size += 1 +
  5235. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5236. }
  5237. // int32 peer = 2;
  5238. if (this->_internal_peer() != 0) {
  5239. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5240. }
  5241. // int32 egotype = 3;
  5242. if (this->_internal_egotype() != 0) {
  5243. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5244. }
  5245. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5246. }
  5247. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  5248. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5249. SCReq::MergeImpl
  5250. };
  5251. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  5252. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5253. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5254. static_cast<SCReq *>(to)->MergeFrom(
  5255. static_cast<const SCReq &>(from));
  5256. }
  5257. void SCReq::MergeFrom(const SCReq& from) {
  5258. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  5259. GOOGLE_DCHECK_NE(&from, this);
  5260. uint32_t cached_has_bits = 0;
  5261. (void) cached_has_bits;
  5262. if (from._internal_desc() != 0) {
  5263. _internal_set_desc(from._internal_desc());
  5264. }
  5265. if (from._internal_peer() != 0) {
  5266. _internal_set_peer(from._internal_peer());
  5267. }
  5268. if (from._internal_egotype() != 0) {
  5269. _internal_set_egotype(from._internal_egotype());
  5270. }
  5271. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5272. }
  5273. void SCReq::CopyFrom(const SCReq& from) {
  5274. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  5275. if (&from == this) return;
  5276. Clear();
  5277. MergeFrom(from);
  5278. }
  5279. bool SCReq::IsInitialized() const {
  5280. return true;
  5281. }
  5282. void SCReq::InternalSwap(SCReq* other) {
  5283. using std::swap;
  5284. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5285. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5286. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  5287. + sizeof(SCReq::egotype_)
  5288. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  5289. reinterpret_cast<char*>(&desc_),
  5290. reinterpret_cast<char*>(&other->desc_));
  5291. }
  5292. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  5293. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5294. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5295. file_level_metadata_protocol_2eproto[18]);
  5296. }
  5297. // ===================================================================
  5298. class CSRep::_Internal {
  5299. public:
  5300. };
  5301. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5302. bool is_message_owned)
  5303. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5304. SharedCtor();
  5305. if (!is_message_owned) {
  5306. RegisterArenaDtor(arena);
  5307. }
  5308. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  5309. }
  5310. CSRep::CSRep(const CSRep& from)
  5311. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5312. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5313. ::memcpy(&desc_, &from.desc_,
  5314. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5315. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5316. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  5317. }
  5318. inline void CSRep::SharedCtor() {
  5319. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5320. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5321. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  5322. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5323. }
  5324. CSRep::~CSRep() {
  5325. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  5326. if (GetArenaForAllocation() != nullptr) return;
  5327. SharedDtor();
  5328. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5329. }
  5330. inline void CSRep::SharedDtor() {
  5331. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5332. }
  5333. void CSRep::ArenaDtor(void* object) {
  5334. CSRep* _this = reinterpret_cast< CSRep* >(object);
  5335. (void)_this;
  5336. }
  5337. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5338. }
  5339. void CSRep::SetCachedSize(int size) const {
  5340. _cached_size_.Set(size);
  5341. }
  5342. void CSRep::Clear() {
  5343. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  5344. uint32_t cached_has_bits = 0;
  5345. // Prevent compiler warnings about cached_has_bits being unused
  5346. (void) cached_has_bits;
  5347. ::memset(&desc_, 0, static_cast<size_t>(
  5348. reinterpret_cast<char*>(&egotype_) -
  5349. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  5350. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5351. }
  5352. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5353. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5354. while (!ctx->Done(&ptr)) {
  5355. uint32_t tag;
  5356. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5357. switch (tag >> 3) {
  5358. // .RemoNet.VideoDesc desc = 1;
  5359. case 1:
  5360. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5361. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5362. CHK_(ptr);
  5363. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5364. } else
  5365. goto handle_unusual;
  5366. continue;
  5367. // int32 peer = 2;
  5368. case 2:
  5369. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5370. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5371. CHK_(ptr);
  5372. } else
  5373. goto handle_unusual;
  5374. continue;
  5375. // int32 index = 3;
  5376. case 3:
  5377. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5378. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5379. CHK_(ptr);
  5380. } else
  5381. goto handle_unusual;
  5382. continue;
  5383. // int32 egotype = 4;
  5384. case 4:
  5385. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5386. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5387. CHK_(ptr);
  5388. } else
  5389. goto handle_unusual;
  5390. continue;
  5391. default:
  5392. goto handle_unusual;
  5393. } // switch
  5394. handle_unusual:
  5395. if ((tag == 0) || ((tag & 7) == 4)) {
  5396. CHK_(ptr);
  5397. ctx->SetLastTag(tag);
  5398. goto message_done;
  5399. }
  5400. ptr = UnknownFieldParse(
  5401. tag,
  5402. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5403. ptr, ctx);
  5404. CHK_(ptr != nullptr);
  5405. } // while
  5406. message_done:
  5407. return ptr;
  5408. failure:
  5409. ptr = nullptr;
  5410. goto message_done;
  5411. #undef CHK_
  5412. }
  5413. uint8_t* CSRep::_InternalSerialize(
  5414. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5415. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  5416. uint32_t cached_has_bits = 0;
  5417. (void) cached_has_bits;
  5418. // .RemoNet.VideoDesc desc = 1;
  5419. if (this->_internal_desc() != 0) {
  5420. target = stream->EnsureSpace(target);
  5421. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5422. 1, this->_internal_desc(), target);
  5423. }
  5424. // int32 peer = 2;
  5425. if (this->_internal_peer() != 0) {
  5426. target = stream->EnsureSpace(target);
  5427. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5428. }
  5429. // int32 index = 3;
  5430. if (this->_internal_index() != 0) {
  5431. target = stream->EnsureSpace(target);
  5432. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5433. }
  5434. // int32 egotype = 4;
  5435. if (this->_internal_egotype() != 0) {
  5436. target = stream->EnsureSpace(target);
  5437. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  5438. }
  5439. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5440. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5441. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5442. }
  5443. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  5444. return target;
  5445. }
  5446. size_t CSRep::ByteSizeLong() const {
  5447. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  5448. size_t total_size = 0;
  5449. uint32_t cached_has_bits = 0;
  5450. // Prevent compiler warnings about cached_has_bits being unused
  5451. (void) cached_has_bits;
  5452. // .RemoNet.VideoDesc desc = 1;
  5453. if (this->_internal_desc() != 0) {
  5454. total_size += 1 +
  5455. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5456. }
  5457. // int32 peer = 2;
  5458. if (this->_internal_peer() != 0) {
  5459. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5460. }
  5461. // int32 index = 3;
  5462. if (this->_internal_index() != 0) {
  5463. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5464. }
  5465. // int32 egotype = 4;
  5466. if (this->_internal_egotype() != 0) {
  5467. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5468. }
  5469. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5470. }
  5471. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  5472. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5473. CSRep::MergeImpl
  5474. };
  5475. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  5476. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5477. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5478. static_cast<CSRep *>(to)->MergeFrom(
  5479. static_cast<const CSRep &>(from));
  5480. }
  5481. void CSRep::MergeFrom(const CSRep& from) {
  5482. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  5483. GOOGLE_DCHECK_NE(&from, this);
  5484. uint32_t cached_has_bits = 0;
  5485. (void) cached_has_bits;
  5486. if (from._internal_desc() != 0) {
  5487. _internal_set_desc(from._internal_desc());
  5488. }
  5489. if (from._internal_peer() != 0) {
  5490. _internal_set_peer(from._internal_peer());
  5491. }
  5492. if (from._internal_index() != 0) {
  5493. _internal_set_index(from._internal_index());
  5494. }
  5495. if (from._internal_egotype() != 0) {
  5496. _internal_set_egotype(from._internal_egotype());
  5497. }
  5498. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5499. }
  5500. void CSRep::CopyFrom(const CSRep& from) {
  5501. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  5502. if (&from == this) return;
  5503. Clear();
  5504. MergeFrom(from);
  5505. }
  5506. bool CSRep::IsInitialized() const {
  5507. return true;
  5508. }
  5509. void CSRep::InternalSwap(CSRep* other) {
  5510. using std::swap;
  5511. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5512. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5513. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  5514. + sizeof(CSRep::egotype_)
  5515. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  5516. reinterpret_cast<char*>(&desc_),
  5517. reinterpret_cast<char*>(&other->desc_));
  5518. }
  5519. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  5520. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5521. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5522. file_level_metadata_protocol_2eproto[19]);
  5523. }
  5524. // ===================================================================
  5525. class SCRep::_Internal {
  5526. public:
  5527. };
  5528. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5529. bool is_message_owned)
  5530. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5531. SharedCtor();
  5532. if (!is_message_owned) {
  5533. RegisterArenaDtor(arena);
  5534. }
  5535. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  5536. }
  5537. SCRep::SCRep(const SCRep& from)
  5538. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5539. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5540. ::memcpy(&desc_, &from.desc_,
  5541. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5542. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5543. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  5544. }
  5545. inline void SCRep::SharedCtor() {
  5546. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5547. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  5548. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5549. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5550. }
  5551. SCRep::~SCRep() {
  5552. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  5553. if (GetArenaForAllocation() != nullptr) return;
  5554. SharedDtor();
  5555. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5556. }
  5557. inline void SCRep::SharedDtor() {
  5558. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5559. }
  5560. void SCRep::ArenaDtor(void* object) {
  5561. SCRep* _this = reinterpret_cast< SCRep* >(object);
  5562. (void)_this;
  5563. }
  5564. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5565. }
  5566. void SCRep::SetCachedSize(int size) const {
  5567. _cached_size_.Set(size);
  5568. }
  5569. void SCRep::Clear() {
  5570. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  5571. uint32_t cached_has_bits = 0;
  5572. // Prevent compiler warnings about cached_has_bits being unused
  5573. (void) cached_has_bits;
  5574. ::memset(&desc_, 0, static_cast<size_t>(
  5575. reinterpret_cast<char*>(&peer_) -
  5576. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  5577. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5578. }
  5579. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5580. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5581. while (!ctx->Done(&ptr)) {
  5582. uint32_t tag;
  5583. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5584. switch (tag >> 3) {
  5585. // .RemoNet.VideoDesc desc = 1;
  5586. case 1:
  5587. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5588. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5589. CHK_(ptr);
  5590. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  5591. } else
  5592. goto handle_unusual;
  5593. continue;
  5594. // int32 index = 2;
  5595. case 2:
  5596. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5597. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5598. CHK_(ptr);
  5599. } else
  5600. goto handle_unusual;
  5601. continue;
  5602. // int32 egotype = 3;
  5603. case 3:
  5604. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5605. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5606. CHK_(ptr);
  5607. } else
  5608. goto handle_unusual;
  5609. continue;
  5610. // int32 peer = 4;
  5611. case 4:
  5612. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  5613. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5614. CHK_(ptr);
  5615. } else
  5616. goto handle_unusual;
  5617. continue;
  5618. default:
  5619. goto handle_unusual;
  5620. } // switch
  5621. handle_unusual:
  5622. if ((tag == 0) || ((tag & 7) == 4)) {
  5623. CHK_(ptr);
  5624. ctx->SetLastTag(tag);
  5625. goto message_done;
  5626. }
  5627. ptr = UnknownFieldParse(
  5628. tag,
  5629. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5630. ptr, ctx);
  5631. CHK_(ptr != nullptr);
  5632. } // while
  5633. message_done:
  5634. return ptr;
  5635. failure:
  5636. ptr = nullptr;
  5637. goto message_done;
  5638. #undef CHK_
  5639. }
  5640. uint8_t* SCRep::_InternalSerialize(
  5641. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5642. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  5643. uint32_t cached_has_bits = 0;
  5644. (void) cached_has_bits;
  5645. // .RemoNet.VideoDesc desc = 1;
  5646. if (this->_internal_desc() != 0) {
  5647. target = stream->EnsureSpace(target);
  5648. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  5649. 1, this->_internal_desc(), target);
  5650. }
  5651. // int32 index = 2;
  5652. if (this->_internal_index() != 0) {
  5653. target = stream->EnsureSpace(target);
  5654. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  5655. }
  5656. // int32 egotype = 3;
  5657. if (this->_internal_egotype() != 0) {
  5658. target = stream->EnsureSpace(target);
  5659. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  5660. }
  5661. // int32 peer = 4;
  5662. if (this->_internal_peer() != 0) {
  5663. target = stream->EnsureSpace(target);
  5664. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  5665. }
  5666. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5667. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5668. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5669. }
  5670. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  5671. return target;
  5672. }
  5673. size_t SCRep::ByteSizeLong() const {
  5674. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  5675. size_t total_size = 0;
  5676. uint32_t cached_has_bits = 0;
  5677. // Prevent compiler warnings about cached_has_bits being unused
  5678. (void) cached_has_bits;
  5679. // .RemoNet.VideoDesc desc = 1;
  5680. if (this->_internal_desc() != 0) {
  5681. total_size += 1 +
  5682. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  5683. }
  5684. // int32 index = 2;
  5685. if (this->_internal_index() != 0) {
  5686. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5687. }
  5688. // int32 egotype = 3;
  5689. if (this->_internal_egotype() != 0) {
  5690. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5691. }
  5692. // int32 peer = 4;
  5693. if (this->_internal_peer() != 0) {
  5694. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5695. }
  5696. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5697. }
  5698. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  5699. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5700. SCRep::MergeImpl
  5701. };
  5702. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  5703. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5704. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5705. static_cast<SCRep *>(to)->MergeFrom(
  5706. static_cast<const SCRep &>(from));
  5707. }
  5708. void SCRep::MergeFrom(const SCRep& from) {
  5709. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  5710. GOOGLE_DCHECK_NE(&from, this);
  5711. uint32_t cached_has_bits = 0;
  5712. (void) cached_has_bits;
  5713. if (from._internal_desc() != 0) {
  5714. _internal_set_desc(from._internal_desc());
  5715. }
  5716. if (from._internal_index() != 0) {
  5717. _internal_set_index(from._internal_index());
  5718. }
  5719. if (from._internal_egotype() != 0) {
  5720. _internal_set_egotype(from._internal_egotype());
  5721. }
  5722. if (from._internal_peer() != 0) {
  5723. _internal_set_peer(from._internal_peer());
  5724. }
  5725. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5726. }
  5727. void SCRep::CopyFrom(const SCRep& from) {
  5728. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  5729. if (&from == this) return;
  5730. Clear();
  5731. MergeFrom(from);
  5732. }
  5733. bool SCRep::IsInitialized() const {
  5734. return true;
  5735. }
  5736. void SCRep::InternalSwap(SCRep* other) {
  5737. using std::swap;
  5738. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5739. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5740. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  5741. + sizeof(SCRep::peer_)
  5742. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  5743. reinterpret_cast<char*>(&desc_),
  5744. reinterpret_cast<char*>(&other->desc_));
  5745. }
  5746. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  5747. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5748. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5749. file_level_metadata_protocol_2eproto[20]);
  5750. }
  5751. // ===================================================================
  5752. class Offer::_Internal {
  5753. public:
  5754. };
  5755. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5756. bool is_message_owned)
  5757. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5758. SharedCtor();
  5759. if (!is_message_owned) {
  5760. RegisterArenaDtor(arena);
  5761. }
  5762. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  5763. }
  5764. Offer::Offer(const Offer& from)
  5765. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5766. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5767. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5768. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5769. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5770. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5771. if (!from._internal_type().empty()) {
  5772. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  5773. GetArenaForAllocation());
  5774. }
  5775. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5776. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5777. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5778. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5779. if (!from._internal_sdp().empty()) {
  5780. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  5781. GetArenaForAllocation());
  5782. }
  5783. ::memcpy(&index_, &from.index_,
  5784. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5785. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5786. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  5787. }
  5788. inline void Offer::SharedCtor() {
  5789. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5790. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5791. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5792. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5793. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5794. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5795. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5796. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5797. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5798. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  5799. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  5800. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5801. }
  5802. Offer::~Offer() {
  5803. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  5804. if (GetArenaForAllocation() != nullptr) return;
  5805. SharedDtor();
  5806. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5807. }
  5808. inline void Offer::SharedDtor() {
  5809. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5810. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5811. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5812. }
  5813. void Offer::ArenaDtor(void* object) {
  5814. Offer* _this = reinterpret_cast< Offer* >(object);
  5815. (void)_this;
  5816. }
  5817. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5818. }
  5819. void Offer::SetCachedSize(int size) const {
  5820. _cached_size_.Set(size);
  5821. }
  5822. void Offer::Clear() {
  5823. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  5824. uint32_t cached_has_bits = 0;
  5825. // Prevent compiler warnings about cached_has_bits being unused
  5826. (void) cached_has_bits;
  5827. type_.ClearToEmpty();
  5828. sdp_.ClearToEmpty();
  5829. ::memset(&index_, 0, static_cast<size_t>(
  5830. reinterpret_cast<char*>(&peer_) -
  5831. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  5832. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5833. }
  5834. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5835. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5836. while (!ctx->Done(&ptr)) {
  5837. uint32_t tag;
  5838. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5839. switch (tag >> 3) {
  5840. // int32 index = 1;
  5841. case 1:
  5842. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5843. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5844. CHK_(ptr);
  5845. } else
  5846. goto handle_unusual;
  5847. continue;
  5848. // int32 peer = 2;
  5849. case 2:
  5850. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5851. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5852. CHK_(ptr);
  5853. } else
  5854. goto handle_unusual;
  5855. continue;
  5856. // string type = 3;
  5857. case 3:
  5858. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5859. auto str = _internal_mutable_type();
  5860. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5861. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  5862. CHK_(ptr);
  5863. } else
  5864. goto handle_unusual;
  5865. continue;
  5866. // string sdp = 4;
  5867. case 4:
  5868. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  5869. auto str = _internal_mutable_sdp();
  5870. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5871. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  5872. CHK_(ptr);
  5873. } else
  5874. goto handle_unusual;
  5875. continue;
  5876. default:
  5877. goto handle_unusual;
  5878. } // switch
  5879. handle_unusual:
  5880. if ((tag == 0) || ((tag & 7) == 4)) {
  5881. CHK_(ptr);
  5882. ctx->SetLastTag(tag);
  5883. goto message_done;
  5884. }
  5885. ptr = UnknownFieldParse(
  5886. tag,
  5887. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5888. ptr, ctx);
  5889. CHK_(ptr != nullptr);
  5890. } // while
  5891. message_done:
  5892. return ptr;
  5893. failure:
  5894. ptr = nullptr;
  5895. goto message_done;
  5896. #undef CHK_
  5897. }
  5898. uint8_t* Offer::_InternalSerialize(
  5899. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5900. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  5901. uint32_t cached_has_bits = 0;
  5902. (void) cached_has_bits;
  5903. // int32 index = 1;
  5904. if (this->_internal_index() != 0) {
  5905. target = stream->EnsureSpace(target);
  5906. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  5907. }
  5908. // int32 peer = 2;
  5909. if (this->_internal_peer() != 0) {
  5910. target = stream->EnsureSpace(target);
  5911. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  5912. }
  5913. // string type = 3;
  5914. if (!this->_internal_type().empty()) {
  5915. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5916. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  5917. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5918. "RemoNet.Offer.type");
  5919. target = stream->WriteStringMaybeAliased(
  5920. 3, this->_internal_type(), target);
  5921. }
  5922. // string sdp = 4;
  5923. if (!this->_internal_sdp().empty()) {
  5924. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5925. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  5926. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5927. "RemoNet.Offer.sdp");
  5928. target = stream->WriteStringMaybeAliased(
  5929. 4, this->_internal_sdp(), target);
  5930. }
  5931. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5932. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5933. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5934. }
  5935. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  5936. return target;
  5937. }
  5938. size_t Offer::ByteSizeLong() const {
  5939. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  5940. size_t total_size = 0;
  5941. uint32_t cached_has_bits = 0;
  5942. // Prevent compiler warnings about cached_has_bits being unused
  5943. (void) cached_has_bits;
  5944. // string type = 3;
  5945. if (!this->_internal_type().empty()) {
  5946. total_size += 1 +
  5947. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5948. this->_internal_type());
  5949. }
  5950. // string sdp = 4;
  5951. if (!this->_internal_sdp().empty()) {
  5952. total_size += 1 +
  5953. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5954. this->_internal_sdp());
  5955. }
  5956. // int32 index = 1;
  5957. if (this->_internal_index() != 0) {
  5958. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5959. }
  5960. // int32 peer = 2;
  5961. if (this->_internal_peer() != 0) {
  5962. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5963. }
  5964. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5965. }
  5966. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  5967. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5968. Offer::MergeImpl
  5969. };
  5970. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  5971. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5972. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5973. static_cast<Offer *>(to)->MergeFrom(
  5974. static_cast<const Offer &>(from));
  5975. }
  5976. void Offer::MergeFrom(const Offer& from) {
  5977. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  5978. GOOGLE_DCHECK_NE(&from, this);
  5979. uint32_t cached_has_bits = 0;
  5980. (void) cached_has_bits;
  5981. if (!from._internal_type().empty()) {
  5982. _internal_set_type(from._internal_type());
  5983. }
  5984. if (!from._internal_sdp().empty()) {
  5985. _internal_set_sdp(from._internal_sdp());
  5986. }
  5987. if (from._internal_index() != 0) {
  5988. _internal_set_index(from._internal_index());
  5989. }
  5990. if (from._internal_peer() != 0) {
  5991. _internal_set_peer(from._internal_peer());
  5992. }
  5993. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5994. }
  5995. void Offer::CopyFrom(const Offer& from) {
  5996. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  5997. if (&from == this) return;
  5998. Clear();
  5999. MergeFrom(from);
  6000. }
  6001. bool Offer::IsInitialized() const {
  6002. return true;
  6003. }
  6004. void Offer::InternalSwap(Offer* other) {
  6005. using std::swap;
  6006. auto* lhs_arena = GetArenaForAllocation();
  6007. auto* rhs_arena = other->GetArenaForAllocation();
  6008. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6009. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6010. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6011. &type_, lhs_arena,
  6012. &other->type_, rhs_arena
  6013. );
  6014. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6015. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6016. &sdp_, lhs_arena,
  6017. &other->sdp_, rhs_arena
  6018. );
  6019. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6020. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  6021. + sizeof(Offer::peer_)
  6022. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  6023. reinterpret_cast<char*>(&index_),
  6024. reinterpret_cast<char*>(&other->index_));
  6025. }
  6026. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  6027. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6028. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6029. file_level_metadata_protocol_2eproto[21]);
  6030. }
  6031. // ===================================================================
  6032. class Answer::_Internal {
  6033. public:
  6034. };
  6035. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6036. bool is_message_owned)
  6037. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6038. SharedCtor();
  6039. if (!is_message_owned) {
  6040. RegisterArenaDtor(arena);
  6041. }
  6042. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  6043. }
  6044. Answer::Answer(const Answer& from)
  6045. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6046. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6047. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6048. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6049. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6050. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6051. if (!from._internal_type().empty()) {
  6052. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6053. GetArenaForAllocation());
  6054. }
  6055. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6056. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6057. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6058. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6059. if (!from._internal_sdp().empty()) {
  6060. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  6061. GetArenaForAllocation());
  6062. }
  6063. ::memcpy(&index_, &from.index_,
  6064. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6065. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6066. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  6067. }
  6068. inline void Answer::SharedCtor() {
  6069. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6070. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6071. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6072. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6073. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6074. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6075. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6076. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6077. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6078. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6079. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  6080. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6081. }
  6082. Answer::~Answer() {
  6083. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  6084. if (GetArenaForAllocation() != nullptr) return;
  6085. SharedDtor();
  6086. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6087. }
  6088. inline void Answer::SharedDtor() {
  6089. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6090. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6091. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6092. }
  6093. void Answer::ArenaDtor(void* object) {
  6094. Answer* _this = reinterpret_cast< Answer* >(object);
  6095. (void)_this;
  6096. }
  6097. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6098. }
  6099. void Answer::SetCachedSize(int size) const {
  6100. _cached_size_.Set(size);
  6101. }
  6102. void Answer::Clear() {
  6103. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  6104. uint32_t cached_has_bits = 0;
  6105. // Prevent compiler warnings about cached_has_bits being unused
  6106. (void) cached_has_bits;
  6107. type_.ClearToEmpty();
  6108. sdp_.ClearToEmpty();
  6109. ::memset(&index_, 0, static_cast<size_t>(
  6110. reinterpret_cast<char*>(&peer_) -
  6111. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  6112. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6113. }
  6114. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6115. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6116. while (!ctx->Done(&ptr)) {
  6117. uint32_t tag;
  6118. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6119. switch (tag >> 3) {
  6120. // int32 index = 1;
  6121. case 1:
  6122. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6123. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6124. CHK_(ptr);
  6125. } else
  6126. goto handle_unusual;
  6127. continue;
  6128. // int32 peer = 2;
  6129. case 2:
  6130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6131. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6132. CHK_(ptr);
  6133. } else
  6134. goto handle_unusual;
  6135. continue;
  6136. // string type = 3;
  6137. case 3:
  6138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6139. auto str = _internal_mutable_type();
  6140. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6141. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  6142. CHK_(ptr);
  6143. } else
  6144. goto handle_unusual;
  6145. continue;
  6146. // string sdp = 4;
  6147. case 4:
  6148. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6149. auto str = _internal_mutable_sdp();
  6150. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6151. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  6152. CHK_(ptr);
  6153. } else
  6154. goto handle_unusual;
  6155. continue;
  6156. default:
  6157. goto handle_unusual;
  6158. } // switch
  6159. handle_unusual:
  6160. if ((tag == 0) || ((tag & 7) == 4)) {
  6161. CHK_(ptr);
  6162. ctx->SetLastTag(tag);
  6163. goto message_done;
  6164. }
  6165. ptr = UnknownFieldParse(
  6166. tag,
  6167. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6168. ptr, ctx);
  6169. CHK_(ptr != nullptr);
  6170. } // while
  6171. message_done:
  6172. return ptr;
  6173. failure:
  6174. ptr = nullptr;
  6175. goto message_done;
  6176. #undef CHK_
  6177. }
  6178. uint8_t* Answer::_InternalSerialize(
  6179. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6180. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  6181. uint32_t cached_has_bits = 0;
  6182. (void) cached_has_bits;
  6183. // int32 index = 1;
  6184. if (this->_internal_index() != 0) {
  6185. target = stream->EnsureSpace(target);
  6186. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6187. }
  6188. // int32 peer = 2;
  6189. if (this->_internal_peer() != 0) {
  6190. target = stream->EnsureSpace(target);
  6191. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6192. }
  6193. // string type = 3;
  6194. if (!this->_internal_type().empty()) {
  6195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6196. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6197. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6198. "RemoNet.Answer.type");
  6199. target = stream->WriteStringMaybeAliased(
  6200. 3, this->_internal_type(), target);
  6201. }
  6202. // string sdp = 4;
  6203. if (!this->_internal_sdp().empty()) {
  6204. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6205. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  6206. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6207. "RemoNet.Answer.sdp");
  6208. target = stream->WriteStringMaybeAliased(
  6209. 4, this->_internal_sdp(), target);
  6210. }
  6211. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6212. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6213. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6214. }
  6215. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  6216. return target;
  6217. }
  6218. size_t Answer::ByteSizeLong() const {
  6219. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  6220. size_t total_size = 0;
  6221. uint32_t cached_has_bits = 0;
  6222. // Prevent compiler warnings about cached_has_bits being unused
  6223. (void) cached_has_bits;
  6224. // string type = 3;
  6225. if (!this->_internal_type().empty()) {
  6226. total_size += 1 +
  6227. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6228. this->_internal_type());
  6229. }
  6230. // string sdp = 4;
  6231. if (!this->_internal_sdp().empty()) {
  6232. total_size += 1 +
  6233. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6234. this->_internal_sdp());
  6235. }
  6236. // int32 index = 1;
  6237. if (this->_internal_index() != 0) {
  6238. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6239. }
  6240. // int32 peer = 2;
  6241. if (this->_internal_peer() != 0) {
  6242. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6243. }
  6244. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6245. }
  6246. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  6247. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6248. Answer::MergeImpl
  6249. };
  6250. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  6251. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6252. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6253. static_cast<Answer *>(to)->MergeFrom(
  6254. static_cast<const Answer &>(from));
  6255. }
  6256. void Answer::MergeFrom(const Answer& from) {
  6257. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  6258. GOOGLE_DCHECK_NE(&from, this);
  6259. uint32_t cached_has_bits = 0;
  6260. (void) cached_has_bits;
  6261. if (!from._internal_type().empty()) {
  6262. _internal_set_type(from._internal_type());
  6263. }
  6264. if (!from._internal_sdp().empty()) {
  6265. _internal_set_sdp(from._internal_sdp());
  6266. }
  6267. if (from._internal_index() != 0) {
  6268. _internal_set_index(from._internal_index());
  6269. }
  6270. if (from._internal_peer() != 0) {
  6271. _internal_set_peer(from._internal_peer());
  6272. }
  6273. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6274. }
  6275. void Answer::CopyFrom(const Answer& from) {
  6276. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  6277. if (&from == this) return;
  6278. Clear();
  6279. MergeFrom(from);
  6280. }
  6281. bool Answer::IsInitialized() const {
  6282. return true;
  6283. }
  6284. void Answer::InternalSwap(Answer* other) {
  6285. using std::swap;
  6286. auto* lhs_arena = GetArenaForAllocation();
  6287. auto* rhs_arena = other->GetArenaForAllocation();
  6288. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6289. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6290. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6291. &type_, lhs_arena,
  6292. &other->type_, rhs_arena
  6293. );
  6294. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6295. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6296. &sdp_, lhs_arena,
  6297. &other->sdp_, rhs_arena
  6298. );
  6299. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6300. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  6301. + sizeof(Answer::peer_)
  6302. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  6303. reinterpret_cast<char*>(&index_),
  6304. reinterpret_cast<char*>(&other->index_));
  6305. }
  6306. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  6307. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6308. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6309. file_level_metadata_protocol_2eproto[22]);
  6310. }
  6311. // ===================================================================
  6312. class Candidate::_Internal {
  6313. public:
  6314. };
  6315. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6316. bool is_message_owned)
  6317. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6318. SharedCtor();
  6319. if (!is_message_owned) {
  6320. RegisterArenaDtor(arena);
  6321. }
  6322. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  6323. }
  6324. Candidate::Candidate(const Candidate& from)
  6325. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6326. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6327. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6328. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6329. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6330. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6331. if (!from._internal_type().empty()) {
  6332. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  6333. GetArenaForAllocation());
  6334. }
  6335. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6336. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6337. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6338. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6339. if (!from._internal_candidate().empty()) {
  6340. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  6341. GetArenaForAllocation());
  6342. }
  6343. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6345. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6346. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6347. if (!from._internal_sdpmid().empty()) {
  6348. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  6349. GetArenaForAllocation());
  6350. }
  6351. ::memcpy(&index_, &from.index_,
  6352. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6353. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6354. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  6355. }
  6356. inline void Candidate::SharedCtor() {
  6357. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6358. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6359. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6360. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6361. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6362. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6363. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6364. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6365. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6366. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6367. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6368. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6369. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6370. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  6371. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6372. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6373. }
  6374. Candidate::~Candidate() {
  6375. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  6376. if (GetArenaForAllocation() != nullptr) return;
  6377. SharedDtor();
  6378. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6379. }
  6380. inline void Candidate::SharedDtor() {
  6381. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6382. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6383. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6384. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6385. }
  6386. void Candidate::ArenaDtor(void* object) {
  6387. Candidate* _this = reinterpret_cast< Candidate* >(object);
  6388. (void)_this;
  6389. }
  6390. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6391. }
  6392. void Candidate::SetCachedSize(int size) const {
  6393. _cached_size_.Set(size);
  6394. }
  6395. void Candidate::Clear() {
  6396. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  6397. uint32_t cached_has_bits = 0;
  6398. // Prevent compiler warnings about cached_has_bits being unused
  6399. (void) cached_has_bits;
  6400. type_.ClearToEmpty();
  6401. candidate_.ClearToEmpty();
  6402. sdpmid_.ClearToEmpty();
  6403. ::memset(&index_, 0, static_cast<size_t>(
  6404. reinterpret_cast<char*>(&egotype_) -
  6405. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  6406. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6407. }
  6408. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6409. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6410. while (!ctx->Done(&ptr)) {
  6411. uint32_t tag;
  6412. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6413. switch (tag >> 3) {
  6414. // int32 index = 1;
  6415. case 1:
  6416. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6417. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6418. CHK_(ptr);
  6419. } else
  6420. goto handle_unusual;
  6421. continue;
  6422. // int32 peer = 2;
  6423. case 2:
  6424. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6425. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6426. CHK_(ptr);
  6427. } else
  6428. goto handle_unusual;
  6429. continue;
  6430. // string type = 3;
  6431. case 3:
  6432. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  6433. auto str = _internal_mutable_type();
  6434. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6435. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  6436. CHK_(ptr);
  6437. } else
  6438. goto handle_unusual;
  6439. continue;
  6440. // string candidate = 4;
  6441. case 4:
  6442. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  6443. auto str = _internal_mutable_candidate();
  6444. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6445. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  6446. CHK_(ptr);
  6447. } else
  6448. goto handle_unusual;
  6449. continue;
  6450. // int32 sdpMLineIndex = 5;
  6451. case 5:
  6452. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6453. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6454. CHK_(ptr);
  6455. } else
  6456. goto handle_unusual;
  6457. continue;
  6458. // string sdpMid = 6;
  6459. case 6:
  6460. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  6461. auto str = _internal_mutable_sdpmid();
  6462. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  6463. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  6464. CHK_(ptr);
  6465. } else
  6466. goto handle_unusual;
  6467. continue;
  6468. // int32 egotype = 7;
  6469. case 7:
  6470. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6471. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6472. CHK_(ptr);
  6473. } else
  6474. goto handle_unusual;
  6475. continue;
  6476. default:
  6477. goto handle_unusual;
  6478. } // switch
  6479. handle_unusual:
  6480. if ((tag == 0) || ((tag & 7) == 4)) {
  6481. CHK_(ptr);
  6482. ctx->SetLastTag(tag);
  6483. goto message_done;
  6484. }
  6485. ptr = UnknownFieldParse(
  6486. tag,
  6487. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6488. ptr, ctx);
  6489. CHK_(ptr != nullptr);
  6490. } // while
  6491. message_done:
  6492. return ptr;
  6493. failure:
  6494. ptr = nullptr;
  6495. goto message_done;
  6496. #undef CHK_
  6497. }
  6498. uint8_t* Candidate::_InternalSerialize(
  6499. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6500. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  6501. uint32_t cached_has_bits = 0;
  6502. (void) cached_has_bits;
  6503. // int32 index = 1;
  6504. if (this->_internal_index() != 0) {
  6505. target = stream->EnsureSpace(target);
  6506. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  6507. }
  6508. // int32 peer = 2;
  6509. if (this->_internal_peer() != 0) {
  6510. target = stream->EnsureSpace(target);
  6511. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  6512. }
  6513. // string type = 3;
  6514. if (!this->_internal_type().empty()) {
  6515. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6516. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  6517. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6518. "RemoNet.Candidate.type");
  6519. target = stream->WriteStringMaybeAliased(
  6520. 3, this->_internal_type(), target);
  6521. }
  6522. // string candidate = 4;
  6523. if (!this->_internal_candidate().empty()) {
  6524. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6525. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  6526. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6527. "RemoNet.Candidate.candidate");
  6528. target = stream->WriteStringMaybeAliased(
  6529. 4, this->_internal_candidate(), target);
  6530. }
  6531. // int32 sdpMLineIndex = 5;
  6532. if (this->_internal_sdpmlineindex() != 0) {
  6533. target = stream->EnsureSpace(target);
  6534. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  6535. }
  6536. // string sdpMid = 6;
  6537. if (!this->_internal_sdpmid().empty()) {
  6538. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  6539. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  6540. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  6541. "RemoNet.Candidate.sdpMid");
  6542. target = stream->WriteStringMaybeAliased(
  6543. 6, this->_internal_sdpmid(), target);
  6544. }
  6545. // int32 egotype = 7;
  6546. if (this->_internal_egotype() != 0) {
  6547. target = stream->EnsureSpace(target);
  6548. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  6549. }
  6550. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6551. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6552. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6553. }
  6554. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  6555. return target;
  6556. }
  6557. size_t Candidate::ByteSizeLong() const {
  6558. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  6559. size_t total_size = 0;
  6560. uint32_t cached_has_bits = 0;
  6561. // Prevent compiler warnings about cached_has_bits being unused
  6562. (void) cached_has_bits;
  6563. // string type = 3;
  6564. if (!this->_internal_type().empty()) {
  6565. total_size += 1 +
  6566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6567. this->_internal_type());
  6568. }
  6569. // string candidate = 4;
  6570. if (!this->_internal_candidate().empty()) {
  6571. total_size += 1 +
  6572. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6573. this->_internal_candidate());
  6574. }
  6575. // string sdpMid = 6;
  6576. if (!this->_internal_sdpmid().empty()) {
  6577. total_size += 1 +
  6578. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  6579. this->_internal_sdpmid());
  6580. }
  6581. // int32 index = 1;
  6582. if (this->_internal_index() != 0) {
  6583. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  6584. }
  6585. // int32 peer = 2;
  6586. if (this->_internal_peer() != 0) {
  6587. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6588. }
  6589. // int32 sdpMLineIndex = 5;
  6590. if (this->_internal_sdpmlineindex() != 0) {
  6591. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  6592. }
  6593. // int32 egotype = 7;
  6594. if (this->_internal_egotype() != 0) {
  6595. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6596. }
  6597. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6598. }
  6599. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  6600. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6601. Candidate::MergeImpl
  6602. };
  6603. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  6604. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6605. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6606. static_cast<Candidate *>(to)->MergeFrom(
  6607. static_cast<const Candidate &>(from));
  6608. }
  6609. void Candidate::MergeFrom(const Candidate& from) {
  6610. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  6611. GOOGLE_DCHECK_NE(&from, this);
  6612. uint32_t cached_has_bits = 0;
  6613. (void) cached_has_bits;
  6614. if (!from._internal_type().empty()) {
  6615. _internal_set_type(from._internal_type());
  6616. }
  6617. if (!from._internal_candidate().empty()) {
  6618. _internal_set_candidate(from._internal_candidate());
  6619. }
  6620. if (!from._internal_sdpmid().empty()) {
  6621. _internal_set_sdpmid(from._internal_sdpmid());
  6622. }
  6623. if (from._internal_index() != 0) {
  6624. _internal_set_index(from._internal_index());
  6625. }
  6626. if (from._internal_peer() != 0) {
  6627. _internal_set_peer(from._internal_peer());
  6628. }
  6629. if (from._internal_sdpmlineindex() != 0) {
  6630. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  6631. }
  6632. if (from._internal_egotype() != 0) {
  6633. _internal_set_egotype(from._internal_egotype());
  6634. }
  6635. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6636. }
  6637. void Candidate::CopyFrom(const Candidate& from) {
  6638. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  6639. if (&from == this) return;
  6640. Clear();
  6641. MergeFrom(from);
  6642. }
  6643. bool Candidate::IsInitialized() const {
  6644. return true;
  6645. }
  6646. void Candidate::InternalSwap(Candidate* other) {
  6647. using std::swap;
  6648. auto* lhs_arena = GetArenaForAllocation();
  6649. auto* rhs_arena = other->GetArenaForAllocation();
  6650. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6651. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6652. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6653. &type_, lhs_arena,
  6654. &other->type_, rhs_arena
  6655. );
  6656. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6657. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6658. &candidate_, lhs_arena,
  6659. &other->candidate_, rhs_arena
  6660. );
  6661. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  6662. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6663. &sdpmid_, lhs_arena,
  6664. &other->sdpmid_, rhs_arena
  6665. );
  6666. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6667. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  6668. + sizeof(Candidate::egotype_)
  6669. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  6670. reinterpret_cast<char*>(&index_),
  6671. reinterpret_cast<char*>(&other->index_));
  6672. }
  6673. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  6674. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6675. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6676. file_level_metadata_protocol_2eproto[23]);
  6677. }
  6678. // ===================================================================
  6679. class Leave::_Internal {
  6680. public:
  6681. };
  6682. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6683. bool is_message_owned)
  6684. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6685. SharedCtor();
  6686. if (!is_message_owned) {
  6687. RegisterArenaDtor(arena);
  6688. }
  6689. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  6690. }
  6691. Leave::Leave(const Leave& from)
  6692. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6693. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6694. ::memcpy(&peer_, &from.peer_,
  6695. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6696. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6697. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  6698. }
  6699. inline void Leave::SharedCtor() {
  6700. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6701. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6702. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  6703. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6704. }
  6705. Leave::~Leave() {
  6706. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  6707. if (GetArenaForAllocation() != nullptr) return;
  6708. SharedDtor();
  6709. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6710. }
  6711. inline void Leave::SharedDtor() {
  6712. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6713. }
  6714. void Leave::ArenaDtor(void* object) {
  6715. Leave* _this = reinterpret_cast< Leave* >(object);
  6716. (void)_this;
  6717. }
  6718. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6719. }
  6720. void Leave::SetCachedSize(int size) const {
  6721. _cached_size_.Set(size);
  6722. }
  6723. void Leave::Clear() {
  6724. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  6725. uint32_t cached_has_bits = 0;
  6726. // Prevent compiler warnings about cached_has_bits being unused
  6727. (void) cached_has_bits;
  6728. ::memset(&peer_, 0, static_cast<size_t>(
  6729. reinterpret_cast<char*>(&egotype_) -
  6730. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  6731. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6732. }
  6733. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6734. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6735. while (!ctx->Done(&ptr)) {
  6736. uint32_t tag;
  6737. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6738. switch (tag >> 3) {
  6739. // int32 peer = 1;
  6740. case 1:
  6741. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6742. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6743. CHK_(ptr);
  6744. } else
  6745. goto handle_unusual;
  6746. continue;
  6747. // int32 egotype = 2;
  6748. case 2:
  6749. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6750. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6751. CHK_(ptr);
  6752. } else
  6753. goto handle_unusual;
  6754. continue;
  6755. default:
  6756. goto handle_unusual;
  6757. } // switch
  6758. handle_unusual:
  6759. if ((tag == 0) || ((tag & 7) == 4)) {
  6760. CHK_(ptr);
  6761. ctx->SetLastTag(tag);
  6762. goto message_done;
  6763. }
  6764. ptr = UnknownFieldParse(
  6765. tag,
  6766. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6767. ptr, ctx);
  6768. CHK_(ptr != nullptr);
  6769. } // while
  6770. message_done:
  6771. return ptr;
  6772. failure:
  6773. ptr = nullptr;
  6774. goto message_done;
  6775. #undef CHK_
  6776. }
  6777. uint8_t* Leave::_InternalSerialize(
  6778. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6779. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  6780. uint32_t cached_has_bits = 0;
  6781. (void) cached_has_bits;
  6782. // int32 peer = 1;
  6783. if (this->_internal_peer() != 0) {
  6784. target = stream->EnsureSpace(target);
  6785. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6786. }
  6787. // int32 egotype = 2;
  6788. if (this->_internal_egotype() != 0) {
  6789. target = stream->EnsureSpace(target);
  6790. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6791. }
  6792. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6793. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6794. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6795. }
  6796. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  6797. return target;
  6798. }
  6799. size_t Leave::ByteSizeLong() const {
  6800. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  6801. size_t total_size = 0;
  6802. uint32_t cached_has_bits = 0;
  6803. // Prevent compiler warnings about cached_has_bits being unused
  6804. (void) cached_has_bits;
  6805. // int32 peer = 1;
  6806. if (this->_internal_peer() != 0) {
  6807. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  6808. }
  6809. // int32 egotype = 2;
  6810. if (this->_internal_egotype() != 0) {
  6811. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  6812. }
  6813. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6814. }
  6815. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  6816. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6817. Leave::MergeImpl
  6818. };
  6819. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  6820. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6821. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6822. static_cast<Leave *>(to)->MergeFrom(
  6823. static_cast<const Leave &>(from));
  6824. }
  6825. void Leave::MergeFrom(const Leave& from) {
  6826. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  6827. GOOGLE_DCHECK_NE(&from, this);
  6828. uint32_t cached_has_bits = 0;
  6829. (void) cached_has_bits;
  6830. if (from._internal_peer() != 0) {
  6831. _internal_set_peer(from._internal_peer());
  6832. }
  6833. if (from._internal_egotype() != 0) {
  6834. _internal_set_egotype(from._internal_egotype());
  6835. }
  6836. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6837. }
  6838. void Leave::CopyFrom(const Leave& from) {
  6839. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  6840. if (&from == this) return;
  6841. Clear();
  6842. MergeFrom(from);
  6843. }
  6844. bool Leave::IsInitialized() const {
  6845. return true;
  6846. }
  6847. void Leave::InternalSwap(Leave* other) {
  6848. using std::swap;
  6849. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6850. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6851. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  6852. + sizeof(Leave::egotype_)
  6853. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  6854. reinterpret_cast<char*>(&peer_),
  6855. reinterpret_cast<char*>(&other->peer_));
  6856. }
  6857. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  6858. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6859. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6860. file_level_metadata_protocol_2eproto[24]);
  6861. }
  6862. // ===================================================================
  6863. class Close::_Internal {
  6864. public:
  6865. };
  6866. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6867. bool is_message_owned)
  6868. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6869. SharedCtor();
  6870. if (!is_message_owned) {
  6871. RegisterArenaDtor(arena);
  6872. }
  6873. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  6874. }
  6875. Close::Close(const Close& from)
  6876. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6877. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6878. ::memcpy(&peer_, &from.peer_,
  6879. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6880. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6881. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  6882. }
  6883. inline void Close::SharedCtor() {
  6884. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6885. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  6886. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  6887. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6888. }
  6889. Close::~Close() {
  6890. // @@protoc_insertion_point(destructor:RemoNet.Close)
  6891. if (GetArenaForAllocation() != nullptr) return;
  6892. SharedDtor();
  6893. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6894. }
  6895. inline void Close::SharedDtor() {
  6896. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6897. }
  6898. void Close::ArenaDtor(void* object) {
  6899. Close* _this = reinterpret_cast< Close* >(object);
  6900. (void)_this;
  6901. }
  6902. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6903. }
  6904. void Close::SetCachedSize(int size) const {
  6905. _cached_size_.Set(size);
  6906. }
  6907. void Close::Clear() {
  6908. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  6909. uint32_t cached_has_bits = 0;
  6910. // Prevent compiler warnings about cached_has_bits being unused
  6911. (void) cached_has_bits;
  6912. ::memset(&peer_, 0, static_cast<size_t>(
  6913. reinterpret_cast<char*>(&index_) -
  6914. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  6915. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6916. }
  6917. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6918. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6919. while (!ctx->Done(&ptr)) {
  6920. uint32_t tag;
  6921. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6922. switch (tag >> 3) {
  6923. // int32 peer = 1;
  6924. case 1:
  6925. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6926. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6927. CHK_(ptr);
  6928. } else
  6929. goto handle_unusual;
  6930. continue;
  6931. // int32 egotype = 2;
  6932. case 2:
  6933. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6934. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6935. CHK_(ptr);
  6936. } else
  6937. goto handle_unusual;
  6938. continue;
  6939. // int32 index = 3;
  6940. case 3:
  6941. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6942. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6943. CHK_(ptr);
  6944. } else
  6945. goto handle_unusual;
  6946. continue;
  6947. default:
  6948. goto handle_unusual;
  6949. } // switch
  6950. handle_unusual:
  6951. if ((tag == 0) || ((tag & 7) == 4)) {
  6952. CHK_(ptr);
  6953. ctx->SetLastTag(tag);
  6954. goto message_done;
  6955. }
  6956. ptr = UnknownFieldParse(
  6957. tag,
  6958. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6959. ptr, ctx);
  6960. CHK_(ptr != nullptr);
  6961. } // while
  6962. message_done:
  6963. return ptr;
  6964. failure:
  6965. ptr = nullptr;
  6966. goto message_done;
  6967. #undef CHK_
  6968. }
  6969. uint8_t* Close::_InternalSerialize(
  6970. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6971. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  6972. uint32_t cached_has_bits = 0;
  6973. (void) cached_has_bits;
  6974. // int32 peer = 1;
  6975. if (this->_internal_peer() != 0) {
  6976. target = stream->EnsureSpace(target);
  6977. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  6978. }
  6979. // int32 egotype = 2;
  6980. if (this->_internal_egotype() != 0) {
  6981. target = stream->EnsureSpace(target);
  6982. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  6983. }
  6984. // int32 index = 3;
  6985. if (this->_internal_index() != 0) {
  6986. target = stream->EnsureSpace(target);
  6987. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  6988. }
  6989. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6990. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6991. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6992. }
  6993. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  6994. return target;
  6995. }
  6996. size_t Close::ByteSizeLong() const {
  6997. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  6998. size_t total_size = 0;
  6999. uint32_t cached_has_bits = 0;
  7000. // Prevent compiler warnings about cached_has_bits being unused
  7001. (void) cached_has_bits;
  7002. // int32 peer = 1;
  7003. if (this->_internal_peer() != 0) {
  7004. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  7005. }
  7006. // int32 egotype = 2;
  7007. if (this->_internal_egotype() != 0) {
  7008. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  7009. }
  7010. // int32 index = 3;
  7011. if (this->_internal_index() != 0) {
  7012. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  7013. }
  7014. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7015. }
  7016. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  7017. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7018. Close::MergeImpl
  7019. };
  7020. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  7021. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7022. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7023. static_cast<Close *>(to)->MergeFrom(
  7024. static_cast<const Close &>(from));
  7025. }
  7026. void Close::MergeFrom(const Close& from) {
  7027. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  7028. GOOGLE_DCHECK_NE(&from, this);
  7029. uint32_t cached_has_bits = 0;
  7030. (void) cached_has_bits;
  7031. if (from._internal_peer() != 0) {
  7032. _internal_set_peer(from._internal_peer());
  7033. }
  7034. if (from._internal_egotype() != 0) {
  7035. _internal_set_egotype(from._internal_egotype());
  7036. }
  7037. if (from._internal_index() != 0) {
  7038. _internal_set_index(from._internal_index());
  7039. }
  7040. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7041. }
  7042. void Close::CopyFrom(const Close& from) {
  7043. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  7044. if (&from == this) return;
  7045. Clear();
  7046. MergeFrom(from);
  7047. }
  7048. bool Close::IsInitialized() const {
  7049. return true;
  7050. }
  7051. void Close::InternalSwap(Close* other) {
  7052. using std::swap;
  7053. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7054. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7055. PROTOBUF_FIELD_OFFSET(Close, index_)
  7056. + sizeof(Close::index_)
  7057. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  7058. reinterpret_cast<char*>(&peer_),
  7059. reinterpret_cast<char*>(&other->peer_));
  7060. }
  7061. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  7062. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7063. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7064. file_level_metadata_protocol_2eproto[25]);
  7065. }
  7066. // ===================================================================
  7067. class TestTextReq::_Internal {
  7068. public:
  7069. };
  7070. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7071. bool is_message_owned)
  7072. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7073. SharedCtor();
  7074. if (!is_message_owned) {
  7075. RegisterArenaDtor(arena);
  7076. }
  7077. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  7078. }
  7079. TestTextReq::TestTextReq(const TestTextReq& from)
  7080. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7081. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7082. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7083. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7084. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7085. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7086. if (!from._internal_text().empty()) {
  7087. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  7088. GetArenaForAllocation());
  7089. }
  7090. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  7091. }
  7092. inline void TestTextReq::SharedCtor() {
  7093. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7094. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7095. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7096. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7097. }
  7098. TestTextReq::~TestTextReq() {
  7099. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  7100. if (GetArenaForAllocation() != nullptr) return;
  7101. SharedDtor();
  7102. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7103. }
  7104. inline void TestTextReq::SharedDtor() {
  7105. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7106. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  7107. }
  7108. void TestTextReq::ArenaDtor(void* object) {
  7109. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  7110. (void)_this;
  7111. }
  7112. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7113. }
  7114. void TestTextReq::SetCachedSize(int size) const {
  7115. _cached_size_.Set(size);
  7116. }
  7117. void TestTextReq::Clear() {
  7118. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  7119. uint32_t cached_has_bits = 0;
  7120. // Prevent compiler warnings about cached_has_bits being unused
  7121. (void) cached_has_bits;
  7122. text_.ClearToEmpty();
  7123. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7124. }
  7125. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7126. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7127. while (!ctx->Done(&ptr)) {
  7128. uint32_t tag;
  7129. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7130. switch (tag >> 3) {
  7131. // string text = 1;
  7132. case 1:
  7133. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  7134. auto str = _internal_mutable_text();
  7135. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  7136. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  7137. CHK_(ptr);
  7138. } else
  7139. goto handle_unusual;
  7140. continue;
  7141. default:
  7142. goto handle_unusual;
  7143. } // switch
  7144. handle_unusual:
  7145. if ((tag == 0) || ((tag & 7) == 4)) {
  7146. CHK_(ptr);
  7147. ctx->SetLastTag(tag);
  7148. goto message_done;
  7149. }
  7150. ptr = UnknownFieldParse(
  7151. tag,
  7152. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7153. ptr, ctx);
  7154. CHK_(ptr != nullptr);
  7155. } // while
  7156. message_done:
  7157. return ptr;
  7158. failure:
  7159. ptr = nullptr;
  7160. goto message_done;
  7161. #undef CHK_
  7162. }
  7163. uint8_t* TestTextReq::_InternalSerialize(
  7164. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7165. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  7166. uint32_t cached_has_bits = 0;
  7167. (void) cached_has_bits;
  7168. // string text = 1;
  7169. if (!this->_internal_text().empty()) {
  7170. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  7171. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  7172. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  7173. "RemoNet.TestTextReq.text");
  7174. target = stream->WriteStringMaybeAliased(
  7175. 1, this->_internal_text(), target);
  7176. }
  7177. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7178. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7179. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7180. }
  7181. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  7182. return target;
  7183. }
  7184. size_t TestTextReq::ByteSizeLong() const {
  7185. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  7186. size_t total_size = 0;
  7187. uint32_t cached_has_bits = 0;
  7188. // Prevent compiler warnings about cached_has_bits being unused
  7189. (void) cached_has_bits;
  7190. // string text = 1;
  7191. if (!this->_internal_text().empty()) {
  7192. total_size += 1 +
  7193. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  7194. this->_internal_text());
  7195. }
  7196. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7197. }
  7198. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  7199. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7200. TestTextReq::MergeImpl
  7201. };
  7202. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  7203. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7204. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7205. static_cast<TestTextReq *>(to)->MergeFrom(
  7206. static_cast<const TestTextReq &>(from));
  7207. }
  7208. void TestTextReq::MergeFrom(const TestTextReq& from) {
  7209. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  7210. GOOGLE_DCHECK_NE(&from, this);
  7211. uint32_t cached_has_bits = 0;
  7212. (void) cached_has_bits;
  7213. if (!from._internal_text().empty()) {
  7214. _internal_set_text(from._internal_text());
  7215. }
  7216. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7217. }
  7218. void TestTextReq::CopyFrom(const TestTextReq& from) {
  7219. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  7220. if (&from == this) return;
  7221. Clear();
  7222. MergeFrom(from);
  7223. }
  7224. bool TestTextReq::IsInitialized() const {
  7225. return true;
  7226. }
  7227. void TestTextReq::InternalSwap(TestTextReq* other) {
  7228. using std::swap;
  7229. auto* lhs_arena = GetArenaForAllocation();
  7230. auto* rhs_arena = other->GetArenaForAllocation();
  7231. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7232. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  7233. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7234. &text_, lhs_arena,
  7235. &other->text_, rhs_arena
  7236. );
  7237. }
  7238. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  7239. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7240. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7241. file_level_metadata_protocol_2eproto[26]);
  7242. }
  7243. // ===================================================================
  7244. class SyncTime::_Internal {
  7245. public:
  7246. };
  7247. SyncTime::SyncTime(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7248. bool is_message_owned)
  7249. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7250. SharedCtor();
  7251. if (!is_message_owned) {
  7252. RegisterArenaDtor(arena);
  7253. }
  7254. // @@protoc_insertion_point(arena_constructor:RemoNet.SyncTime)
  7255. }
  7256. SyncTime::SyncTime(const SyncTime& from)
  7257. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7258. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7259. ::memcpy(&tm_sec_, &from.tm_sec_,
  7260. static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7261. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7262. // @@protoc_insertion_point(copy_constructor:RemoNet.SyncTime)
  7263. }
  7264. inline void SyncTime::SharedCtor() {
  7265. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7266. reinterpret_cast<char*>(&tm_sec_) - reinterpret_cast<char*>(this)),
  7267. 0, static_cast<size_t>(reinterpret_cast<char*>(&update_time_) -
  7268. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7269. }
  7270. SyncTime::~SyncTime() {
  7271. // @@protoc_insertion_point(destructor:RemoNet.SyncTime)
  7272. if (GetArenaForAllocation() != nullptr) return;
  7273. SharedDtor();
  7274. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7275. }
  7276. inline void SyncTime::SharedDtor() {
  7277. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7278. }
  7279. void SyncTime::ArenaDtor(void* object) {
  7280. SyncTime* _this = reinterpret_cast< SyncTime* >(object);
  7281. (void)_this;
  7282. }
  7283. void SyncTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7284. }
  7285. void SyncTime::SetCachedSize(int size) const {
  7286. _cached_size_.Set(size);
  7287. }
  7288. void SyncTime::Clear() {
  7289. // @@protoc_insertion_point(message_clear_start:RemoNet.SyncTime)
  7290. uint32_t cached_has_bits = 0;
  7291. // Prevent compiler warnings about cached_has_bits being unused
  7292. (void) cached_has_bits;
  7293. ::memset(&tm_sec_, 0, static_cast<size_t>(
  7294. reinterpret_cast<char*>(&update_time_) -
  7295. reinterpret_cast<char*>(&tm_sec_)) + sizeof(update_time_));
  7296. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7297. }
  7298. const char* SyncTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7299. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7300. while (!ctx->Done(&ptr)) {
  7301. uint32_t tag;
  7302. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7303. switch (tag >> 3) {
  7304. // int32 tm_sec = 1;
  7305. case 1:
  7306. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7307. tm_sec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7308. CHK_(ptr);
  7309. } else
  7310. goto handle_unusual;
  7311. continue;
  7312. // int32 tm_min = 2;
  7313. case 2:
  7314. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7315. tm_min_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7316. CHK_(ptr);
  7317. } else
  7318. goto handle_unusual;
  7319. continue;
  7320. // int32 tm_hour = 3;
  7321. case 3:
  7322. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7323. tm_hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7324. CHK_(ptr);
  7325. } else
  7326. goto handle_unusual;
  7327. continue;
  7328. // int32 tm_mday = 4;
  7329. case 4:
  7330. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7331. tm_mday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7332. CHK_(ptr);
  7333. } else
  7334. goto handle_unusual;
  7335. continue;
  7336. // int32 tm_mon = 5;
  7337. case 5:
  7338. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7339. tm_mon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7340. CHK_(ptr);
  7341. } else
  7342. goto handle_unusual;
  7343. continue;
  7344. // int32 tm_year = 6;
  7345. case 6:
  7346. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  7347. tm_year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7348. CHK_(ptr);
  7349. } else
  7350. goto handle_unusual;
  7351. continue;
  7352. // int32 tm_wday = 7;
  7353. case 7:
  7354. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  7355. tm_wday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7356. CHK_(ptr);
  7357. } else
  7358. goto handle_unusual;
  7359. continue;
  7360. // int32 tm_yday = 8;
  7361. case 8:
  7362. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7363. tm_yday_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7364. CHK_(ptr);
  7365. } else
  7366. goto handle_unusual;
  7367. continue;
  7368. // int32 tm_isdst = 9;
  7369. case 9:
  7370. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7371. tm_isdst_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7372. CHK_(ptr);
  7373. } else
  7374. goto handle_unusual;
  7375. continue;
  7376. // bool update_time = 10;
  7377. case 10:
  7378. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7379. update_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7380. CHK_(ptr);
  7381. } else
  7382. goto handle_unusual;
  7383. continue;
  7384. default:
  7385. goto handle_unusual;
  7386. } // switch
  7387. handle_unusual:
  7388. if ((tag == 0) || ((tag & 7) == 4)) {
  7389. CHK_(ptr);
  7390. ctx->SetLastTag(tag);
  7391. goto message_done;
  7392. }
  7393. ptr = UnknownFieldParse(
  7394. tag,
  7395. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7396. ptr, ctx);
  7397. CHK_(ptr != nullptr);
  7398. } // while
  7399. message_done:
  7400. return ptr;
  7401. failure:
  7402. ptr = nullptr;
  7403. goto message_done;
  7404. #undef CHK_
  7405. }
  7406. uint8_t* SyncTime::_InternalSerialize(
  7407. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7408. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SyncTime)
  7409. uint32_t cached_has_bits = 0;
  7410. (void) cached_has_bits;
  7411. // int32 tm_sec = 1;
  7412. if (this->_internal_tm_sec() != 0) {
  7413. target = stream->EnsureSpace(target);
  7414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_tm_sec(), target);
  7415. }
  7416. // int32 tm_min = 2;
  7417. if (this->_internal_tm_min() != 0) {
  7418. target = stream->EnsureSpace(target);
  7419. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_tm_min(), target);
  7420. }
  7421. // int32 tm_hour = 3;
  7422. if (this->_internal_tm_hour() != 0) {
  7423. target = stream->EnsureSpace(target);
  7424. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_tm_hour(), target);
  7425. }
  7426. // int32 tm_mday = 4;
  7427. if (this->_internal_tm_mday() != 0) {
  7428. target = stream->EnsureSpace(target);
  7429. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_tm_mday(), target);
  7430. }
  7431. // int32 tm_mon = 5;
  7432. if (this->_internal_tm_mon() != 0) {
  7433. target = stream->EnsureSpace(target);
  7434. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_tm_mon(), target);
  7435. }
  7436. // int32 tm_year = 6;
  7437. if (this->_internal_tm_year() != 0) {
  7438. target = stream->EnsureSpace(target);
  7439. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_tm_year(), target);
  7440. }
  7441. // int32 tm_wday = 7;
  7442. if (this->_internal_tm_wday() != 0) {
  7443. target = stream->EnsureSpace(target);
  7444. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_tm_wday(), target);
  7445. }
  7446. // int32 tm_yday = 8;
  7447. if (this->_internal_tm_yday() != 0) {
  7448. target = stream->EnsureSpace(target);
  7449. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_tm_yday(), target);
  7450. }
  7451. // int32 tm_isdst = 9;
  7452. if (this->_internal_tm_isdst() != 0) {
  7453. target = stream->EnsureSpace(target);
  7454. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_tm_isdst(), target);
  7455. }
  7456. // bool update_time = 10;
  7457. if (this->_internal_update_time() != 0) {
  7458. target = stream->EnsureSpace(target);
  7459. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_update_time(), target);
  7460. }
  7461. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7462. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7463. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7464. }
  7465. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SyncTime)
  7466. return target;
  7467. }
  7468. size_t SyncTime::ByteSizeLong() const {
  7469. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SyncTime)
  7470. size_t total_size = 0;
  7471. uint32_t cached_has_bits = 0;
  7472. // Prevent compiler warnings about cached_has_bits being unused
  7473. (void) cached_has_bits;
  7474. // int32 tm_sec = 1;
  7475. if (this->_internal_tm_sec() != 0) {
  7476. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_sec());
  7477. }
  7478. // int32 tm_min = 2;
  7479. if (this->_internal_tm_min() != 0) {
  7480. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_min());
  7481. }
  7482. // int32 tm_hour = 3;
  7483. if (this->_internal_tm_hour() != 0) {
  7484. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_hour());
  7485. }
  7486. // int32 tm_mday = 4;
  7487. if (this->_internal_tm_mday() != 0) {
  7488. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mday());
  7489. }
  7490. // int32 tm_mon = 5;
  7491. if (this->_internal_tm_mon() != 0) {
  7492. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_mon());
  7493. }
  7494. // int32 tm_year = 6;
  7495. if (this->_internal_tm_year() != 0) {
  7496. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_year());
  7497. }
  7498. // int32 tm_wday = 7;
  7499. if (this->_internal_tm_wday() != 0) {
  7500. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_wday());
  7501. }
  7502. // int32 tm_yday = 8;
  7503. if (this->_internal_tm_yday() != 0) {
  7504. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_yday());
  7505. }
  7506. // int32 tm_isdst = 9;
  7507. if (this->_internal_tm_isdst() != 0) {
  7508. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_tm_isdst());
  7509. }
  7510. // bool update_time = 10;
  7511. if (this->_internal_update_time() != 0) {
  7512. total_size += 1 + 1;
  7513. }
  7514. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7515. }
  7516. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SyncTime::_class_data_ = {
  7517. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7518. SyncTime::MergeImpl
  7519. };
  7520. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SyncTime::GetClassData() const { return &_class_data_; }
  7521. void SyncTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7522. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7523. static_cast<SyncTime *>(to)->MergeFrom(
  7524. static_cast<const SyncTime &>(from));
  7525. }
  7526. void SyncTime::MergeFrom(const SyncTime& from) {
  7527. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SyncTime)
  7528. GOOGLE_DCHECK_NE(&from, this);
  7529. uint32_t cached_has_bits = 0;
  7530. (void) cached_has_bits;
  7531. if (from._internal_tm_sec() != 0) {
  7532. _internal_set_tm_sec(from._internal_tm_sec());
  7533. }
  7534. if (from._internal_tm_min() != 0) {
  7535. _internal_set_tm_min(from._internal_tm_min());
  7536. }
  7537. if (from._internal_tm_hour() != 0) {
  7538. _internal_set_tm_hour(from._internal_tm_hour());
  7539. }
  7540. if (from._internal_tm_mday() != 0) {
  7541. _internal_set_tm_mday(from._internal_tm_mday());
  7542. }
  7543. if (from._internal_tm_mon() != 0) {
  7544. _internal_set_tm_mon(from._internal_tm_mon());
  7545. }
  7546. if (from._internal_tm_year() != 0) {
  7547. _internal_set_tm_year(from._internal_tm_year());
  7548. }
  7549. if (from._internal_tm_wday() != 0) {
  7550. _internal_set_tm_wday(from._internal_tm_wday());
  7551. }
  7552. if (from._internal_tm_yday() != 0) {
  7553. _internal_set_tm_yday(from._internal_tm_yday());
  7554. }
  7555. if (from._internal_tm_isdst() != 0) {
  7556. _internal_set_tm_isdst(from._internal_tm_isdst());
  7557. }
  7558. if (from._internal_update_time() != 0) {
  7559. _internal_set_update_time(from._internal_update_time());
  7560. }
  7561. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7562. }
  7563. void SyncTime::CopyFrom(const SyncTime& from) {
  7564. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SyncTime)
  7565. if (&from == this) return;
  7566. Clear();
  7567. MergeFrom(from);
  7568. }
  7569. bool SyncTime::IsInitialized() const {
  7570. return true;
  7571. }
  7572. void SyncTime::InternalSwap(SyncTime* other) {
  7573. using std::swap;
  7574. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7575. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7576. PROTOBUF_FIELD_OFFSET(SyncTime, update_time_)
  7577. + sizeof(SyncTime::update_time_)
  7578. - PROTOBUF_FIELD_OFFSET(SyncTime, tm_sec_)>(
  7579. reinterpret_cast<char*>(&tm_sec_),
  7580. reinterpret_cast<char*>(&other->tm_sec_));
  7581. }
  7582. ::PROTOBUF_NAMESPACE_ID::Metadata SyncTime::GetMetadata() const {
  7583. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7584. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7585. file_level_metadata_protocol_2eproto[27]);
  7586. }
  7587. // ===================================================================
  7588. class CCAskDataChannel::_Internal {
  7589. public:
  7590. };
  7591. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7592. bool is_message_owned)
  7593. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7594. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  7595. }
  7596. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  7597. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7598. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7599. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  7600. }
  7601. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  7602. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7603. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7604. };
  7605. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  7606. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  7607. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7608. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7609. file_level_metadata_protocol_2eproto[28]);
  7610. }
  7611. // ===================================================================
  7612. class IMuMessage::_Internal {
  7613. public:
  7614. };
  7615. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7616. bool is_message_owned)
  7617. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7618. SharedCtor();
  7619. if (!is_message_owned) {
  7620. RegisterArenaDtor(arena);
  7621. }
  7622. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  7623. }
  7624. IMuMessage::IMuMessage(const IMuMessage& from)
  7625. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7626. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7627. ::memcpy(&rx_, &from.rx_,
  7628. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7629. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7630. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  7631. }
  7632. inline void IMuMessage::SharedCtor() {
  7633. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7634. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  7635. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  7636. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7637. }
  7638. IMuMessage::~IMuMessage() {
  7639. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  7640. if (GetArenaForAllocation() != nullptr) return;
  7641. SharedDtor();
  7642. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7643. }
  7644. inline void IMuMessage::SharedDtor() {
  7645. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7646. }
  7647. void IMuMessage::ArenaDtor(void* object) {
  7648. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  7649. (void)_this;
  7650. }
  7651. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7652. }
  7653. void IMuMessage::SetCachedSize(int size) const {
  7654. _cached_size_.Set(size);
  7655. }
  7656. void IMuMessage::Clear() {
  7657. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  7658. uint32_t cached_has_bits = 0;
  7659. // Prevent compiler warnings about cached_has_bits being unused
  7660. (void) cached_has_bits;
  7661. ::memset(&rx_, 0, static_cast<size_t>(
  7662. reinterpret_cast<char*>(&ry_) -
  7663. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  7664. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7665. }
  7666. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7667. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7668. while (!ctx->Done(&ptr)) {
  7669. uint32_t tag;
  7670. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7671. switch (tag >> 3) {
  7672. // float rx = 1;
  7673. case 1:
  7674. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  7675. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7676. ptr += sizeof(float);
  7677. } else
  7678. goto handle_unusual;
  7679. continue;
  7680. // float ry = 2;
  7681. case 2:
  7682. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  7683. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  7684. ptr += sizeof(float);
  7685. } else
  7686. goto handle_unusual;
  7687. continue;
  7688. default:
  7689. goto handle_unusual;
  7690. } // switch
  7691. handle_unusual:
  7692. if ((tag == 0) || ((tag & 7) == 4)) {
  7693. CHK_(ptr);
  7694. ctx->SetLastTag(tag);
  7695. goto message_done;
  7696. }
  7697. ptr = UnknownFieldParse(
  7698. tag,
  7699. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7700. ptr, ctx);
  7701. CHK_(ptr != nullptr);
  7702. } // while
  7703. message_done:
  7704. return ptr;
  7705. failure:
  7706. ptr = nullptr;
  7707. goto message_done;
  7708. #undef CHK_
  7709. }
  7710. uint8_t* IMuMessage::_InternalSerialize(
  7711. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7712. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  7713. uint32_t cached_has_bits = 0;
  7714. (void) cached_has_bits;
  7715. // float rx = 1;
  7716. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7717. float tmp_rx = this->_internal_rx();
  7718. uint32_t raw_rx;
  7719. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7720. if (raw_rx != 0) {
  7721. target = stream->EnsureSpace(target);
  7722. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  7723. }
  7724. // float ry = 2;
  7725. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7726. float tmp_ry = this->_internal_ry();
  7727. uint32_t raw_ry;
  7728. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7729. if (raw_ry != 0) {
  7730. target = stream->EnsureSpace(target);
  7731. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  7732. }
  7733. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7734. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7735. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7736. }
  7737. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  7738. return target;
  7739. }
  7740. size_t IMuMessage::ByteSizeLong() const {
  7741. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  7742. size_t total_size = 0;
  7743. uint32_t cached_has_bits = 0;
  7744. // Prevent compiler warnings about cached_has_bits being unused
  7745. (void) cached_has_bits;
  7746. // float rx = 1;
  7747. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7748. float tmp_rx = this->_internal_rx();
  7749. uint32_t raw_rx;
  7750. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7751. if (raw_rx != 0) {
  7752. total_size += 1 + 4;
  7753. }
  7754. // float ry = 2;
  7755. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7756. float tmp_ry = this->_internal_ry();
  7757. uint32_t raw_ry;
  7758. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7759. if (raw_ry != 0) {
  7760. total_size += 1 + 4;
  7761. }
  7762. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7763. }
  7764. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  7765. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7766. IMuMessage::MergeImpl
  7767. };
  7768. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  7769. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7770. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7771. static_cast<IMuMessage *>(to)->MergeFrom(
  7772. static_cast<const IMuMessage &>(from));
  7773. }
  7774. void IMuMessage::MergeFrom(const IMuMessage& from) {
  7775. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  7776. GOOGLE_DCHECK_NE(&from, this);
  7777. uint32_t cached_has_bits = 0;
  7778. (void) cached_has_bits;
  7779. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7780. float tmp_rx = from._internal_rx();
  7781. uint32_t raw_rx;
  7782. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  7783. if (raw_rx != 0) {
  7784. _internal_set_rx(from._internal_rx());
  7785. }
  7786. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  7787. float tmp_ry = from._internal_ry();
  7788. uint32_t raw_ry;
  7789. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  7790. if (raw_ry != 0) {
  7791. _internal_set_ry(from._internal_ry());
  7792. }
  7793. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7794. }
  7795. void IMuMessage::CopyFrom(const IMuMessage& from) {
  7796. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  7797. if (&from == this) return;
  7798. Clear();
  7799. MergeFrom(from);
  7800. }
  7801. bool IMuMessage::IsInitialized() const {
  7802. return true;
  7803. }
  7804. void IMuMessage::InternalSwap(IMuMessage* other) {
  7805. using std::swap;
  7806. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7807. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7808. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  7809. + sizeof(IMuMessage::ry_)
  7810. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  7811. reinterpret_cast<char*>(&rx_),
  7812. reinterpret_cast<char*>(&other->rx_));
  7813. }
  7814. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  7815. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7816. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7817. file_level_metadata_protocol_2eproto[29]);
  7818. }
  7819. // ===================================================================
  7820. class CCPing::_Internal {
  7821. public:
  7822. };
  7823. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7824. bool is_message_owned)
  7825. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7826. SharedCtor();
  7827. if (!is_message_owned) {
  7828. RegisterArenaDtor(arena);
  7829. }
  7830. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  7831. }
  7832. CCPing::CCPing(const CCPing& from)
  7833. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7834. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7835. ::memcpy(&tick_, &from.tick_,
  7836. static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7837. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7838. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  7839. }
  7840. inline void CCPing::SharedCtor() {
  7841. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7842. reinterpret_cast<char*>(&tick_) - reinterpret_cast<char*>(this)),
  7843. 0, static_cast<size_t>(reinterpret_cast<char*>(&temp_) -
  7844. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7845. }
  7846. CCPing::~CCPing() {
  7847. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  7848. if (GetArenaForAllocation() != nullptr) return;
  7849. SharedDtor();
  7850. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7851. }
  7852. inline void CCPing::SharedDtor() {
  7853. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7854. }
  7855. void CCPing::ArenaDtor(void* object) {
  7856. CCPing* _this = reinterpret_cast< CCPing* >(object);
  7857. (void)_this;
  7858. }
  7859. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7860. }
  7861. void CCPing::SetCachedSize(int size) const {
  7862. _cached_size_.Set(size);
  7863. }
  7864. void CCPing::Clear() {
  7865. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  7866. uint32_t cached_has_bits = 0;
  7867. // Prevent compiler warnings about cached_has_bits being unused
  7868. (void) cached_has_bits;
  7869. ::memset(&tick_, 0, static_cast<size_t>(
  7870. reinterpret_cast<char*>(&temp_) -
  7871. reinterpret_cast<char*>(&tick_)) + sizeof(temp_));
  7872. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7873. }
  7874. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7875. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7876. while (!ctx->Done(&ptr)) {
  7877. uint32_t tag;
  7878. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7879. switch (tag >> 3) {
  7880. // int64 tick = 1;
  7881. case 1:
  7882. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7883. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7884. CHK_(ptr);
  7885. } else
  7886. goto handle_unusual;
  7887. continue;
  7888. // double temp = 2;
  7889. case 2:
  7890. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
  7891. temp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  7892. ptr += sizeof(double);
  7893. } else
  7894. goto handle_unusual;
  7895. continue;
  7896. default:
  7897. goto handle_unusual;
  7898. } // switch
  7899. handle_unusual:
  7900. if ((tag == 0) || ((tag & 7) == 4)) {
  7901. CHK_(ptr);
  7902. ctx->SetLastTag(tag);
  7903. goto message_done;
  7904. }
  7905. ptr = UnknownFieldParse(
  7906. tag,
  7907. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7908. ptr, ctx);
  7909. CHK_(ptr != nullptr);
  7910. } // while
  7911. message_done:
  7912. return ptr;
  7913. failure:
  7914. ptr = nullptr;
  7915. goto message_done;
  7916. #undef CHK_
  7917. }
  7918. uint8_t* CCPing::_InternalSerialize(
  7919. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7920. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  7921. uint32_t cached_has_bits = 0;
  7922. (void) cached_has_bits;
  7923. // int64 tick = 1;
  7924. if (this->_internal_tick() != 0) {
  7925. target = stream->EnsureSpace(target);
  7926. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  7927. }
  7928. // double temp = 2;
  7929. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7930. double tmp_temp = this->_internal_temp();
  7931. uint64_t raw_temp;
  7932. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7933. if (raw_temp != 0) {
  7934. target = stream->EnsureSpace(target);
  7935. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_temp(), target);
  7936. }
  7937. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7938. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7939. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7940. }
  7941. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  7942. return target;
  7943. }
  7944. size_t CCPing::ByteSizeLong() const {
  7945. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  7946. size_t total_size = 0;
  7947. uint32_t cached_has_bits = 0;
  7948. // Prevent compiler warnings about cached_has_bits being unused
  7949. (void) cached_has_bits;
  7950. // int64 tick = 1;
  7951. if (this->_internal_tick() != 0) {
  7952. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  7953. }
  7954. // double temp = 2;
  7955. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7956. double tmp_temp = this->_internal_temp();
  7957. uint64_t raw_temp;
  7958. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7959. if (raw_temp != 0) {
  7960. total_size += 1 + 8;
  7961. }
  7962. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7963. }
  7964. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  7965. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7966. CCPing::MergeImpl
  7967. };
  7968. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  7969. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7970. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7971. static_cast<CCPing *>(to)->MergeFrom(
  7972. static_cast<const CCPing &>(from));
  7973. }
  7974. void CCPing::MergeFrom(const CCPing& from) {
  7975. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  7976. GOOGLE_DCHECK_NE(&from, this);
  7977. uint32_t cached_has_bits = 0;
  7978. (void) cached_has_bits;
  7979. if (from._internal_tick() != 0) {
  7980. _internal_set_tick(from._internal_tick());
  7981. }
  7982. static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  7983. double tmp_temp = from._internal_temp();
  7984. uint64_t raw_temp;
  7985. memcpy(&raw_temp, &tmp_temp, sizeof(tmp_temp));
  7986. if (raw_temp != 0) {
  7987. _internal_set_temp(from._internal_temp());
  7988. }
  7989. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7990. }
  7991. void CCPing::CopyFrom(const CCPing& from) {
  7992. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  7993. if (&from == this) return;
  7994. Clear();
  7995. MergeFrom(from);
  7996. }
  7997. bool CCPing::IsInitialized() const {
  7998. return true;
  7999. }
  8000. void CCPing::InternalSwap(CCPing* other) {
  8001. using std::swap;
  8002. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8003. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8004. PROTOBUF_FIELD_OFFSET(CCPing, temp_)
  8005. + sizeof(CCPing::temp_)
  8006. - PROTOBUF_FIELD_OFFSET(CCPing, tick_)>(
  8007. reinterpret_cast<char*>(&tick_),
  8008. reinterpret_cast<char*>(&other->tick_));
  8009. }
  8010. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  8011. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8012. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8013. file_level_metadata_protocol_2eproto[30]);
  8014. }
  8015. // ===================================================================
  8016. class radar_node::_Internal {
  8017. public:
  8018. };
  8019. radar_node::radar_node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8020. bool is_message_owned)
  8021. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8022. SharedCtor();
  8023. if (!is_message_owned) {
  8024. RegisterArenaDtor(arena);
  8025. }
  8026. // @@protoc_insertion_point(arena_constructor:RemoNet.radar_node)
  8027. }
  8028. radar_node::radar_node(const radar_node& from)
  8029. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8030. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8031. ::memcpy(&id_, &from.id_,
  8032. static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8033. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8034. // @@protoc_insertion_point(copy_constructor:RemoNet.radar_node)
  8035. }
  8036. inline void radar_node::SharedCtor() {
  8037. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8038. reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)),
  8039. 0, static_cast<size_t>(reinterpret_cast<char*>(&range_) -
  8040. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8041. }
  8042. radar_node::~radar_node() {
  8043. // @@protoc_insertion_point(destructor:RemoNet.radar_node)
  8044. if (GetArenaForAllocation() != nullptr) return;
  8045. SharedDtor();
  8046. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8047. }
  8048. inline void radar_node::SharedDtor() {
  8049. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8050. }
  8051. void radar_node::ArenaDtor(void* object) {
  8052. radar_node* _this = reinterpret_cast< radar_node* >(object);
  8053. (void)_this;
  8054. }
  8055. void radar_node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8056. }
  8057. void radar_node::SetCachedSize(int size) const {
  8058. _cached_size_.Set(size);
  8059. }
  8060. void radar_node::Clear() {
  8061. // @@protoc_insertion_point(message_clear_start:RemoNet.radar_node)
  8062. uint32_t cached_has_bits = 0;
  8063. // Prevent compiler warnings about cached_has_bits being unused
  8064. (void) cached_has_bits;
  8065. ::memset(&id_, 0, static_cast<size_t>(
  8066. reinterpret_cast<char*>(&range_) -
  8067. reinterpret_cast<char*>(&id_)) + sizeof(range_));
  8068. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8069. }
  8070. const char* radar_node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8071. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8072. while (!ctx->Done(&ptr)) {
  8073. uint32_t tag;
  8074. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8075. switch (tag >> 3) {
  8076. // int32 id = 1;
  8077. case 1:
  8078. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8079. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8080. CHK_(ptr);
  8081. } else
  8082. goto handle_unusual;
  8083. continue;
  8084. // int32 range = 2;
  8085. case 2:
  8086. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8087. range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8088. CHK_(ptr);
  8089. } else
  8090. goto handle_unusual;
  8091. continue;
  8092. default:
  8093. goto handle_unusual;
  8094. } // switch
  8095. handle_unusual:
  8096. if ((tag == 0) || ((tag & 7) == 4)) {
  8097. CHK_(ptr);
  8098. ctx->SetLastTag(tag);
  8099. goto message_done;
  8100. }
  8101. ptr = UnknownFieldParse(
  8102. tag,
  8103. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8104. ptr, ctx);
  8105. CHK_(ptr != nullptr);
  8106. } // while
  8107. message_done:
  8108. return ptr;
  8109. failure:
  8110. ptr = nullptr;
  8111. goto message_done;
  8112. #undef CHK_
  8113. }
  8114. uint8_t* radar_node::_InternalSerialize(
  8115. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8116. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.radar_node)
  8117. uint32_t cached_has_bits = 0;
  8118. (void) cached_has_bits;
  8119. // int32 id = 1;
  8120. if (this->_internal_id() != 0) {
  8121. target = stream->EnsureSpace(target);
  8122. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target);
  8123. }
  8124. // int32 range = 2;
  8125. if (this->_internal_range() != 0) {
  8126. target = stream->EnsureSpace(target);
  8127. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_range(), target);
  8128. }
  8129. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8130. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8131. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8132. }
  8133. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.radar_node)
  8134. return target;
  8135. }
  8136. size_t radar_node::ByteSizeLong() const {
  8137. // @@protoc_insertion_point(message_byte_size_start:RemoNet.radar_node)
  8138. size_t total_size = 0;
  8139. uint32_t cached_has_bits = 0;
  8140. // Prevent compiler warnings about cached_has_bits being unused
  8141. (void) cached_has_bits;
  8142. // int32 id = 1;
  8143. if (this->_internal_id() != 0) {
  8144. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_id());
  8145. }
  8146. // int32 range = 2;
  8147. if (this->_internal_range() != 0) {
  8148. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_range());
  8149. }
  8150. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8151. }
  8152. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData radar_node::_class_data_ = {
  8153. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8154. radar_node::MergeImpl
  8155. };
  8156. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*radar_node::GetClassData() const { return &_class_data_; }
  8157. void radar_node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8158. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8159. static_cast<radar_node *>(to)->MergeFrom(
  8160. static_cast<const radar_node &>(from));
  8161. }
  8162. void radar_node::MergeFrom(const radar_node& from) {
  8163. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.radar_node)
  8164. GOOGLE_DCHECK_NE(&from, this);
  8165. uint32_t cached_has_bits = 0;
  8166. (void) cached_has_bits;
  8167. if (from._internal_id() != 0) {
  8168. _internal_set_id(from._internal_id());
  8169. }
  8170. if (from._internal_range() != 0) {
  8171. _internal_set_range(from._internal_range());
  8172. }
  8173. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8174. }
  8175. void radar_node::CopyFrom(const radar_node& from) {
  8176. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.radar_node)
  8177. if (&from == this) return;
  8178. Clear();
  8179. MergeFrom(from);
  8180. }
  8181. bool radar_node::IsInitialized() const {
  8182. return true;
  8183. }
  8184. void radar_node::InternalSwap(radar_node* other) {
  8185. using std::swap;
  8186. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8187. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8188. PROTOBUF_FIELD_OFFSET(radar_node, range_)
  8189. + sizeof(radar_node::range_)
  8190. - PROTOBUF_FIELD_OFFSET(radar_node, id_)>(
  8191. reinterpret_cast<char*>(&id_),
  8192. reinterpret_cast<char*>(&other->id_));
  8193. }
  8194. ::PROTOBUF_NAMESPACE_ID::Metadata radar_node::GetMetadata() const {
  8195. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8196. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8197. file_level_metadata_protocol_2eproto[31]);
  8198. }
  8199. // ===================================================================
  8200. class CCRadarMessage::_Internal {
  8201. public:
  8202. };
  8203. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8204. bool is_message_owned)
  8205. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8206. SharedCtor();
  8207. if (!is_message_owned) {
  8208. RegisterArenaDtor(arena);
  8209. }
  8210. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  8211. }
  8212. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  8213. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8214. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8215. ::memcpy(&radar0_, &from.radar0_,
  8216. static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8217. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8218. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  8219. }
  8220. inline void CCRadarMessage::SharedCtor() {
  8221. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8222. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  8223. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  8224. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8225. }
  8226. CCRadarMessage::~CCRadarMessage() {
  8227. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  8228. if (GetArenaForAllocation() != nullptr) return;
  8229. SharedDtor();
  8230. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8231. }
  8232. inline void CCRadarMessage::SharedDtor() {
  8233. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8234. }
  8235. void CCRadarMessage::ArenaDtor(void* object) {
  8236. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  8237. (void)_this;
  8238. }
  8239. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8240. }
  8241. void CCRadarMessage::SetCachedSize(int size) const {
  8242. _cached_size_.Set(size);
  8243. }
  8244. void CCRadarMessage::Clear() {
  8245. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  8246. uint32_t cached_has_bits = 0;
  8247. // Prevent compiler warnings about cached_has_bits being unused
  8248. (void) cached_has_bits;
  8249. ::memset(&radar0_, 0, static_cast<size_t>(
  8250. reinterpret_cast<char*>(&radar7_) -
  8251. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  8252. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8253. }
  8254. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8255. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8256. while (!ctx->Done(&ptr)) {
  8257. uint32_t tag;
  8258. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8259. switch (tag >> 3) {
  8260. // int32 radar0 = 1;
  8261. case 1:
  8262. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8263. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8264. CHK_(ptr);
  8265. } else
  8266. goto handle_unusual;
  8267. continue;
  8268. // int32 radar1 = 2;
  8269. case 2:
  8270. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8271. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8272. CHK_(ptr);
  8273. } else
  8274. goto handle_unusual;
  8275. continue;
  8276. // int32 radar2 = 3;
  8277. case 3:
  8278. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8279. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8280. CHK_(ptr);
  8281. } else
  8282. goto handle_unusual;
  8283. continue;
  8284. // int32 radar3 = 4;
  8285. case 4:
  8286. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8287. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8288. CHK_(ptr);
  8289. } else
  8290. goto handle_unusual;
  8291. continue;
  8292. // int32 radar4 = 5;
  8293. case 5:
  8294. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8295. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8296. CHK_(ptr);
  8297. } else
  8298. goto handle_unusual;
  8299. continue;
  8300. // int32 radar5 = 6;
  8301. case 6:
  8302. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8303. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8304. CHK_(ptr);
  8305. } else
  8306. goto handle_unusual;
  8307. continue;
  8308. // int32 radar6 = 7;
  8309. case 7:
  8310. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8311. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8312. CHK_(ptr);
  8313. } else
  8314. goto handle_unusual;
  8315. continue;
  8316. // int32 radar7 = 8;
  8317. case 8:
  8318. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  8319. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8320. CHK_(ptr);
  8321. } else
  8322. goto handle_unusual;
  8323. continue;
  8324. default:
  8325. goto handle_unusual;
  8326. } // switch
  8327. handle_unusual:
  8328. if ((tag == 0) || ((tag & 7) == 4)) {
  8329. CHK_(ptr);
  8330. ctx->SetLastTag(tag);
  8331. goto message_done;
  8332. }
  8333. ptr = UnknownFieldParse(
  8334. tag,
  8335. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8336. ptr, ctx);
  8337. CHK_(ptr != nullptr);
  8338. } // while
  8339. message_done:
  8340. return ptr;
  8341. failure:
  8342. ptr = nullptr;
  8343. goto message_done;
  8344. #undef CHK_
  8345. }
  8346. uint8_t* CCRadarMessage::_InternalSerialize(
  8347. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8348. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  8349. uint32_t cached_has_bits = 0;
  8350. (void) cached_has_bits;
  8351. // int32 radar0 = 1;
  8352. if (this->_internal_radar0() != 0) {
  8353. target = stream->EnsureSpace(target);
  8354. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  8355. }
  8356. // int32 radar1 = 2;
  8357. if (this->_internal_radar1() != 0) {
  8358. target = stream->EnsureSpace(target);
  8359. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  8360. }
  8361. // int32 radar2 = 3;
  8362. if (this->_internal_radar2() != 0) {
  8363. target = stream->EnsureSpace(target);
  8364. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  8365. }
  8366. // int32 radar3 = 4;
  8367. if (this->_internal_radar3() != 0) {
  8368. target = stream->EnsureSpace(target);
  8369. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  8370. }
  8371. // int32 radar4 = 5;
  8372. if (this->_internal_radar4() != 0) {
  8373. target = stream->EnsureSpace(target);
  8374. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  8375. }
  8376. // int32 radar5 = 6;
  8377. if (this->_internal_radar5() != 0) {
  8378. target = stream->EnsureSpace(target);
  8379. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  8380. }
  8381. // int32 radar6 = 7;
  8382. if (this->_internal_radar6() != 0) {
  8383. target = stream->EnsureSpace(target);
  8384. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  8385. }
  8386. // int32 radar7 = 8;
  8387. if (this->_internal_radar7() != 0) {
  8388. target = stream->EnsureSpace(target);
  8389. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  8390. }
  8391. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8392. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8393. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8394. }
  8395. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  8396. return target;
  8397. }
  8398. size_t CCRadarMessage::ByteSizeLong() const {
  8399. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  8400. size_t total_size = 0;
  8401. uint32_t cached_has_bits = 0;
  8402. // Prevent compiler warnings about cached_has_bits being unused
  8403. (void) cached_has_bits;
  8404. // int32 radar0 = 1;
  8405. if (this->_internal_radar0() != 0) {
  8406. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  8407. }
  8408. // int32 radar1 = 2;
  8409. if (this->_internal_radar1() != 0) {
  8410. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  8411. }
  8412. // int32 radar2 = 3;
  8413. if (this->_internal_radar2() != 0) {
  8414. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  8415. }
  8416. // int32 radar3 = 4;
  8417. if (this->_internal_radar3() != 0) {
  8418. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  8419. }
  8420. // int32 radar4 = 5;
  8421. if (this->_internal_radar4() != 0) {
  8422. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  8423. }
  8424. // int32 radar5 = 6;
  8425. if (this->_internal_radar5() != 0) {
  8426. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  8427. }
  8428. // int32 radar6 = 7;
  8429. if (this->_internal_radar6() != 0) {
  8430. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  8431. }
  8432. // int32 radar7 = 8;
  8433. if (this->_internal_radar7() != 0) {
  8434. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  8435. }
  8436. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8437. }
  8438. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  8439. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8440. CCRadarMessage::MergeImpl
  8441. };
  8442. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  8443. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8444. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8445. static_cast<CCRadarMessage *>(to)->MergeFrom(
  8446. static_cast<const CCRadarMessage &>(from));
  8447. }
  8448. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  8449. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  8450. GOOGLE_DCHECK_NE(&from, this);
  8451. uint32_t cached_has_bits = 0;
  8452. (void) cached_has_bits;
  8453. if (from._internal_radar0() != 0) {
  8454. _internal_set_radar0(from._internal_radar0());
  8455. }
  8456. if (from._internal_radar1() != 0) {
  8457. _internal_set_radar1(from._internal_radar1());
  8458. }
  8459. if (from._internal_radar2() != 0) {
  8460. _internal_set_radar2(from._internal_radar2());
  8461. }
  8462. if (from._internal_radar3() != 0) {
  8463. _internal_set_radar3(from._internal_radar3());
  8464. }
  8465. if (from._internal_radar4() != 0) {
  8466. _internal_set_radar4(from._internal_radar4());
  8467. }
  8468. if (from._internal_radar5() != 0) {
  8469. _internal_set_radar5(from._internal_radar5());
  8470. }
  8471. if (from._internal_radar6() != 0) {
  8472. _internal_set_radar6(from._internal_radar6());
  8473. }
  8474. if (from._internal_radar7() != 0) {
  8475. _internal_set_radar7(from._internal_radar7());
  8476. }
  8477. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8478. }
  8479. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  8480. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  8481. if (&from == this) return;
  8482. Clear();
  8483. MergeFrom(from);
  8484. }
  8485. bool CCRadarMessage::IsInitialized() const {
  8486. return true;
  8487. }
  8488. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  8489. using std::swap;
  8490. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8491. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8492. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar7_)
  8493. + sizeof(CCRadarMessage::radar7_)
  8494. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  8495. reinterpret_cast<char*>(&radar0_),
  8496. reinterpret_cast<char*>(&other->radar0_));
  8497. }
  8498. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  8499. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8500. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8501. file_level_metadata_protocol_2eproto[32]);
  8502. }
  8503. // ===================================================================
  8504. class CCSensor::_Internal {
  8505. public:
  8506. };
  8507. CCSensor::CCSensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8508. bool is_message_owned)
  8509. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8510. node_(arena) {
  8511. SharedCtor();
  8512. if (!is_message_owned) {
  8513. RegisterArenaDtor(arena);
  8514. }
  8515. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSensor)
  8516. }
  8517. CCSensor::CCSensor(const CCSensor& from)
  8518. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8519. node_(from.node_) {
  8520. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8521. ::memcpy(&left_encode_, &from.left_encode_,
  8522. static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8523. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8524. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSensor)
  8525. }
  8526. inline void CCSensor::SharedCtor() {
  8527. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8528. reinterpret_cast<char*>(&left_encode_) - reinterpret_cast<char*>(this)),
  8529. 0, static_cast<size_t>(reinterpret_cast<char*>(&right_encode_) -
  8530. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8531. }
  8532. CCSensor::~CCSensor() {
  8533. // @@protoc_insertion_point(destructor:RemoNet.CCSensor)
  8534. if (GetArenaForAllocation() != nullptr) return;
  8535. SharedDtor();
  8536. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8537. }
  8538. inline void CCSensor::SharedDtor() {
  8539. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8540. }
  8541. void CCSensor::ArenaDtor(void* object) {
  8542. CCSensor* _this = reinterpret_cast< CCSensor* >(object);
  8543. (void)_this;
  8544. }
  8545. void CCSensor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8546. }
  8547. void CCSensor::SetCachedSize(int size) const {
  8548. _cached_size_.Set(size);
  8549. }
  8550. void CCSensor::Clear() {
  8551. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSensor)
  8552. uint32_t cached_has_bits = 0;
  8553. // Prevent compiler warnings about cached_has_bits being unused
  8554. (void) cached_has_bits;
  8555. node_.Clear();
  8556. ::memset(&left_encode_, 0, static_cast<size_t>(
  8557. reinterpret_cast<char*>(&right_encode_) -
  8558. reinterpret_cast<char*>(&left_encode_)) + sizeof(right_encode_));
  8559. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8560. }
  8561. const char* CCSensor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8562. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8563. while (!ctx->Done(&ptr)) {
  8564. uint32_t tag;
  8565. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8566. switch (tag >> 3) {
  8567. // repeated .RemoNet.radar_node node = 1;
  8568. case 1:
  8569. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8570. ptr -= 1;
  8571. do {
  8572. ptr += 1;
  8573. ptr = ctx->ParseMessage(_internal_add_node(), ptr);
  8574. CHK_(ptr);
  8575. if (!ctx->DataAvailable(ptr)) break;
  8576. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  8577. } else
  8578. goto handle_unusual;
  8579. continue;
  8580. // int32 left_encode = 2;
  8581. case 2:
  8582. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8583. left_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8584. CHK_(ptr);
  8585. } else
  8586. goto handle_unusual;
  8587. continue;
  8588. // int32 right_encode = 3;
  8589. case 3:
  8590. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8591. right_encode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8592. CHK_(ptr);
  8593. } else
  8594. goto handle_unusual;
  8595. continue;
  8596. default:
  8597. goto handle_unusual;
  8598. } // switch
  8599. handle_unusual:
  8600. if ((tag == 0) || ((tag & 7) == 4)) {
  8601. CHK_(ptr);
  8602. ctx->SetLastTag(tag);
  8603. goto message_done;
  8604. }
  8605. ptr = UnknownFieldParse(
  8606. tag,
  8607. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8608. ptr, ctx);
  8609. CHK_(ptr != nullptr);
  8610. } // while
  8611. message_done:
  8612. return ptr;
  8613. failure:
  8614. ptr = nullptr;
  8615. goto message_done;
  8616. #undef CHK_
  8617. }
  8618. uint8_t* CCSensor::_InternalSerialize(
  8619. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8620. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSensor)
  8621. uint32_t cached_has_bits = 0;
  8622. (void) cached_has_bits;
  8623. // repeated .RemoNet.radar_node node = 1;
  8624. for (unsigned int i = 0,
  8625. n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
  8626. target = stream->EnsureSpace(target);
  8627. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8628. InternalWriteMessage(1, this->_internal_node(i), target, stream);
  8629. }
  8630. // int32 left_encode = 2;
  8631. if (this->_internal_left_encode() != 0) {
  8632. target = stream->EnsureSpace(target);
  8633. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_left_encode(), target);
  8634. }
  8635. // int32 right_encode = 3;
  8636. if (this->_internal_right_encode() != 0) {
  8637. target = stream->EnsureSpace(target);
  8638. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right_encode(), target);
  8639. }
  8640. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8641. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8642. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8643. }
  8644. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSensor)
  8645. return target;
  8646. }
  8647. size_t CCSensor::ByteSizeLong() const {
  8648. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSensor)
  8649. size_t total_size = 0;
  8650. uint32_t cached_has_bits = 0;
  8651. // Prevent compiler warnings about cached_has_bits being unused
  8652. (void) cached_has_bits;
  8653. // repeated .RemoNet.radar_node node = 1;
  8654. total_size += 1UL * this->_internal_node_size();
  8655. for (const auto& msg : this->node_) {
  8656. total_size +=
  8657. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  8658. }
  8659. // int32 left_encode = 2;
  8660. if (this->_internal_left_encode() != 0) {
  8661. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_left_encode());
  8662. }
  8663. // int32 right_encode = 3;
  8664. if (this->_internal_right_encode() != 0) {
  8665. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_right_encode());
  8666. }
  8667. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8668. }
  8669. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSensor::_class_data_ = {
  8670. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8671. CCSensor::MergeImpl
  8672. };
  8673. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSensor::GetClassData() const { return &_class_data_; }
  8674. void CCSensor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8675. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8676. static_cast<CCSensor *>(to)->MergeFrom(
  8677. static_cast<const CCSensor &>(from));
  8678. }
  8679. void CCSensor::MergeFrom(const CCSensor& from) {
  8680. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSensor)
  8681. GOOGLE_DCHECK_NE(&from, this);
  8682. uint32_t cached_has_bits = 0;
  8683. (void) cached_has_bits;
  8684. node_.MergeFrom(from.node_);
  8685. if (from._internal_left_encode() != 0) {
  8686. _internal_set_left_encode(from._internal_left_encode());
  8687. }
  8688. if (from._internal_right_encode() != 0) {
  8689. _internal_set_right_encode(from._internal_right_encode());
  8690. }
  8691. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8692. }
  8693. void CCSensor::CopyFrom(const CCSensor& from) {
  8694. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSensor)
  8695. if (&from == this) return;
  8696. Clear();
  8697. MergeFrom(from);
  8698. }
  8699. bool CCSensor::IsInitialized() const {
  8700. return true;
  8701. }
  8702. void CCSensor::InternalSwap(CCSensor* other) {
  8703. using std::swap;
  8704. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8705. node_.InternalSwap(&other->node_);
  8706. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8707. PROTOBUF_FIELD_OFFSET(CCSensor, right_encode_)
  8708. + sizeof(CCSensor::right_encode_)
  8709. - PROTOBUF_FIELD_OFFSET(CCSensor, left_encode_)>(
  8710. reinterpret_cast<char*>(&left_encode_),
  8711. reinterpret_cast<char*>(&other->left_encode_));
  8712. }
  8713. ::PROTOBUF_NAMESPACE_ID::Metadata CCSensor::GetMetadata() const {
  8714. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8715. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8716. file_level_metadata_protocol_2eproto[33]);
  8717. }
  8718. // ===================================================================
  8719. class CCSwitch::_Internal {
  8720. public:
  8721. };
  8722. CCSwitch::CCSwitch(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8723. bool is_message_owned)
  8724. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8725. SharedCtor();
  8726. if (!is_message_owned) {
  8727. RegisterArenaDtor(arena);
  8728. }
  8729. // @@protoc_insertion_point(arena_constructor:RemoNet.CCSwitch)
  8730. }
  8731. CCSwitch::CCSwitch(const CCSwitch& from)
  8732. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8733. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8734. front_ = from.front_;
  8735. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  8736. }
  8737. inline void CCSwitch::SharedCtor() {
  8738. front_ = false;
  8739. }
  8740. CCSwitch::~CCSwitch() {
  8741. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  8742. if (GetArenaForAllocation() != nullptr) return;
  8743. SharedDtor();
  8744. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8745. }
  8746. inline void CCSwitch::SharedDtor() {
  8747. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8748. }
  8749. void CCSwitch::ArenaDtor(void* object) {
  8750. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  8751. (void)_this;
  8752. }
  8753. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8754. }
  8755. void CCSwitch::SetCachedSize(int size) const {
  8756. _cached_size_.Set(size);
  8757. }
  8758. void CCSwitch::Clear() {
  8759. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  8760. uint32_t cached_has_bits = 0;
  8761. // Prevent compiler warnings about cached_has_bits being unused
  8762. (void) cached_has_bits;
  8763. front_ = false;
  8764. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8765. }
  8766. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8767. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8768. while (!ctx->Done(&ptr)) {
  8769. uint32_t tag;
  8770. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8771. switch (tag >> 3) {
  8772. // bool front = 1;
  8773. case 1:
  8774. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8775. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8776. CHK_(ptr);
  8777. } else
  8778. goto handle_unusual;
  8779. continue;
  8780. default:
  8781. goto handle_unusual;
  8782. } // switch
  8783. handle_unusual:
  8784. if ((tag == 0) || ((tag & 7) == 4)) {
  8785. CHK_(ptr);
  8786. ctx->SetLastTag(tag);
  8787. goto message_done;
  8788. }
  8789. ptr = UnknownFieldParse(
  8790. tag,
  8791. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8792. ptr, ctx);
  8793. CHK_(ptr != nullptr);
  8794. } // while
  8795. message_done:
  8796. return ptr;
  8797. failure:
  8798. ptr = nullptr;
  8799. goto message_done;
  8800. #undef CHK_
  8801. }
  8802. uint8_t* CCSwitch::_InternalSerialize(
  8803. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8804. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  8805. uint32_t cached_has_bits = 0;
  8806. (void) cached_has_bits;
  8807. // bool front = 1;
  8808. if (this->_internal_front() != 0) {
  8809. target = stream->EnsureSpace(target);
  8810. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  8811. }
  8812. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8813. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8814. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8815. }
  8816. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  8817. return target;
  8818. }
  8819. size_t CCSwitch::ByteSizeLong() const {
  8820. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  8821. size_t total_size = 0;
  8822. uint32_t cached_has_bits = 0;
  8823. // Prevent compiler warnings about cached_has_bits being unused
  8824. (void) cached_has_bits;
  8825. // bool front = 1;
  8826. if (this->_internal_front() != 0) {
  8827. total_size += 1 + 1;
  8828. }
  8829. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8830. }
  8831. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  8832. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8833. CCSwitch::MergeImpl
  8834. };
  8835. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  8836. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8837. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8838. static_cast<CCSwitch *>(to)->MergeFrom(
  8839. static_cast<const CCSwitch &>(from));
  8840. }
  8841. void CCSwitch::MergeFrom(const CCSwitch& from) {
  8842. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  8843. GOOGLE_DCHECK_NE(&from, this);
  8844. uint32_t cached_has_bits = 0;
  8845. (void) cached_has_bits;
  8846. if (from._internal_front() != 0) {
  8847. _internal_set_front(from._internal_front());
  8848. }
  8849. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8850. }
  8851. void CCSwitch::CopyFrom(const CCSwitch& from) {
  8852. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  8853. if (&from == this) return;
  8854. Clear();
  8855. MergeFrom(from);
  8856. }
  8857. bool CCSwitch::IsInitialized() const {
  8858. return true;
  8859. }
  8860. void CCSwitch::InternalSwap(CCSwitch* other) {
  8861. using std::swap;
  8862. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8863. swap(front_, other->front_);
  8864. }
  8865. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  8866. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8867. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8868. file_level_metadata_protocol_2eproto[34]);
  8869. }
  8870. // ===================================================================
  8871. class State::_Internal {
  8872. public:
  8873. };
  8874. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8875. bool is_message_owned)
  8876. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8877. SharedCtor();
  8878. if (!is_message_owned) {
  8879. RegisterArenaDtor(arena);
  8880. }
  8881. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8882. }
  8883. State::State(const State& from)
  8884. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8885. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8886. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8887. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8888. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8889. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8890. if (!from._internal_error_buff().empty()) {
  8891. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  8892. GetArenaForAllocation());
  8893. }
  8894. all_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8895. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8896. all_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8897. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8898. if (!from._internal_all_buff().empty()) {
  8899. all_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_all_buff(),
  8900. GetArenaForAllocation());
  8901. }
  8902. ::memcpy(&engine_speed_, &from.engine_speed_,
  8903. static_cast<size_t>(reinterpret_cast<char*>(&engine_num_) -
  8904. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  8905. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  8906. }
  8907. inline void State::SharedCtor() {
  8908. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8909. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8910. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8911. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8912. all_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8913. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8914. all_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8915. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8916. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8917. reinterpret_cast<char*>(&engine_speed_) - reinterpret_cast<char*>(this)),
  8918. 0, static_cast<size_t>(reinterpret_cast<char*>(&engine_num_) -
  8919. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  8920. }
  8921. State::~State() {
  8922. // @@protoc_insertion_point(destructor:RemoNet.State)
  8923. if (GetArenaForAllocation() != nullptr) return;
  8924. SharedDtor();
  8925. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8926. }
  8927. inline void State::SharedDtor() {
  8928. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8929. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8930. all_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8931. }
  8932. void State::ArenaDtor(void* object) {
  8933. State* _this = reinterpret_cast< State* >(object);
  8934. (void)_this;
  8935. }
  8936. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8937. }
  8938. void State::SetCachedSize(int size) const {
  8939. _cached_size_.Set(size);
  8940. }
  8941. void State::Clear() {
  8942. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  8943. uint32_t cached_has_bits = 0;
  8944. // Prevent compiler warnings about cached_has_bits being unused
  8945. (void) cached_has_bits;
  8946. error_buff_.ClearToEmpty();
  8947. all_buff_.ClearToEmpty();
  8948. ::memset(&engine_speed_, 0, static_cast<size_t>(
  8949. reinterpret_cast<char*>(&engine_num_) -
  8950. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  8951. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8952. }
  8953. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8954. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8955. while (!ctx->Done(&ptr)) {
  8956. uint32_t tag;
  8957. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8958. switch (tag >> 3) {
  8959. // int32 engine_speed = 1;
  8960. case 1:
  8961. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8962. engine_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8963. CHK_(ptr);
  8964. } else
  8965. goto handle_unusual;
  8966. continue;
  8967. // int32 travel_speed = 2;
  8968. case 2:
  8969. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8970. travel_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8971. CHK_(ptr);
  8972. } else
  8973. goto handle_unusual;
  8974. continue;
  8975. // int32 fuel_level = 3;
  8976. case 3:
  8977. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  8978. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8979. CHK_(ptr);
  8980. } else
  8981. goto handle_unusual;
  8982. continue;
  8983. // int32 engine_temperature = 4;
  8984. case 4:
  8985. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8986. engine_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8987. CHK_(ptr);
  8988. } else
  8989. goto handle_unusual;
  8990. continue;
  8991. // int32 hydraulic_oil_temperature = 5;
  8992. case 5:
  8993. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8994. hydraulic_oil_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8995. CHK_(ptr);
  8996. } else
  8997. goto handle_unusual;
  8998. continue;
  8999. // int32 main_pump_1_pressure = 6;
  9000. case 6:
  9001. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9002. main_pump_1_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9003. CHK_(ptr);
  9004. } else
  9005. goto handle_unusual;
  9006. continue;
  9007. // int32 main_pump_2_pressure = 7;
  9008. case 7:
  9009. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9010. main_pump_2_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9011. CHK_(ptr);
  9012. } else
  9013. goto handle_unusual;
  9014. continue;
  9015. // int32 hand_gear = 8;
  9016. case 8:
  9017. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9018. hand_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9019. CHK_(ptr);
  9020. } else
  9021. goto handle_unusual;
  9022. continue;
  9023. // int32 actual_gear = 9;
  9024. case 9:
  9025. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9026. actual_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9027. CHK_(ptr);
  9028. } else
  9029. goto handle_unusual;
  9030. continue;
  9031. // float gripper_height = 10;
  9032. case 10:
  9033. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  9034. gripper_height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9035. ptr += sizeof(float);
  9036. } else
  9037. goto handle_unusual;
  9038. continue;
  9039. // float amplitude = 11;
  9040. case 11:
  9041. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 93)) {
  9042. amplitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9043. ptr += sizeof(float);
  9044. } else
  9045. goto handle_unusual;
  9046. continue;
  9047. // int32 boom_angle = 12;
  9048. case 12:
  9049. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9050. boom_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9051. CHK_(ptr);
  9052. } else
  9053. goto handle_unusual;
  9054. continue;
  9055. // int32 stick_angle = 13;
  9056. case 13:
  9057. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9058. stick_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9059. CHK_(ptr);
  9060. } else
  9061. goto handle_unusual;
  9062. continue;
  9063. // int32 idle_protection = 14;
  9064. case 14:
  9065. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9066. idle_protection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9067. CHK_(ptr);
  9068. } else
  9069. goto handle_unusual;
  9070. continue;
  9071. // int32 front_toggle = 15;
  9072. case 15:
  9073. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9074. front_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9075. CHK_(ptr);
  9076. } else
  9077. goto handle_unusual;
  9078. continue;
  9079. // int32 back_toggle = 16;
  9080. case 16:
  9081. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9082. back_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9083. CHK_(ptr);
  9084. } else
  9085. goto handle_unusual;
  9086. continue;
  9087. // bytes error_Buff = 17;
  9088. case 17:
  9089. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
  9090. auto str = _internal_mutable_error_buff();
  9091. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9092. CHK_(ptr);
  9093. } else
  9094. goto handle_unusual;
  9095. continue;
  9096. // int32 interlock = 18;
  9097. case 18:
  9098. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9099. interlock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9100. CHK_(ptr);
  9101. } else
  9102. goto handle_unusual;
  9103. continue;
  9104. // int32 safety_switch = 19;
  9105. case 19:
  9106. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9107. safety_switch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9108. CHK_(ptr);
  9109. } else
  9110. goto handle_unusual;
  9111. continue;
  9112. // int32 arm_lift_pilot = 20;
  9113. case 20:
  9114. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9115. arm_lift_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9116. CHK_(ptr);
  9117. } else
  9118. goto handle_unusual;
  9119. continue;
  9120. // int32 arm_lowering_pilot = 21;
  9121. case 21:
  9122. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9123. arm_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9124. CHK_(ptr);
  9125. } else
  9126. goto handle_unusual;
  9127. continue;
  9128. // int32 lever_lifting_pilot = 22;
  9129. case 22:
  9130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9131. lever_lifting_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9132. CHK_(ptr);
  9133. } else
  9134. goto handle_unusual;
  9135. continue;
  9136. // int32 rod_lowering_pilot = 23;
  9137. case 23:
  9138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9139. rod_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9140. CHK_(ptr);
  9141. } else
  9142. goto handle_unusual;
  9143. continue;
  9144. // int32 left_rotary_pilot = 24;
  9145. case 24:
  9146. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9147. left_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9148. CHK_(ptr);
  9149. } else
  9150. goto handle_unusual;
  9151. continue;
  9152. // int32 right_rotary_pilot = 25;
  9153. case 25:
  9154. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9155. right_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9156. CHK_(ptr);
  9157. } else
  9158. goto handle_unusual;
  9159. continue;
  9160. // int32 grab_open_pilot = 26;
  9161. case 26:
  9162. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9163. grab_open_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9164. CHK_(ptr);
  9165. } else
  9166. goto handle_unusual;
  9167. continue;
  9168. // int32 grab_close_pilot = 27;
  9169. case 27:
  9170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9171. grab_close_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9172. CHK_(ptr);
  9173. } else
  9174. goto handle_unusual;
  9175. continue;
  9176. // int32 safety_valves = 28;
  9177. case 28:
  9178. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9179. safety_valves_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9180. CHK_(ptr);
  9181. } else
  9182. goto handle_unusual;
  9183. continue;
  9184. // int32 function_code = 29;
  9185. case 29:
  9186. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9187. function_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9188. CHK_(ptr);
  9189. } else
  9190. goto handle_unusual;
  9191. continue;
  9192. // int32 main_add = 30;
  9193. case 30:
  9194. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9195. main_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9196. CHK_(ptr);
  9197. } else
  9198. goto handle_unusual;
  9199. continue;
  9200. // int32 sub_add = 31;
  9201. case 31:
  9202. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
  9203. sub_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9204. CHK_(ptr);
  9205. } else
  9206. goto handle_unusual;
  9207. continue;
  9208. // int32 paramter = 32;
  9209. case 32:
  9210. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9211. paramter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9212. CHK_(ptr);
  9213. } else
  9214. goto handle_unusual;
  9215. continue;
  9216. // int32 engine_spn = 33;
  9217. case 33:
  9218. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9219. engine_spn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9220. CHK_(ptr);
  9221. } else
  9222. goto handle_unusual;
  9223. continue;
  9224. // int32 engine_fmi = 34;
  9225. case 34:
  9226. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9227. engine_fmi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9228. CHK_(ptr);
  9229. } else
  9230. goto handle_unusual;
  9231. continue;
  9232. // int32 engine_num = 35;
  9233. case 35:
  9234. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9235. engine_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9236. CHK_(ptr);
  9237. } else
  9238. goto handle_unusual;
  9239. continue;
  9240. // bytes all_Buff = 36;
  9241. case 36:
  9242. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  9243. auto str = _internal_mutable_all_buff();
  9244. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9245. CHK_(ptr);
  9246. } else
  9247. goto handle_unusual;
  9248. continue;
  9249. default:
  9250. goto handle_unusual;
  9251. } // switch
  9252. handle_unusual:
  9253. if ((tag == 0) || ((tag & 7) == 4)) {
  9254. CHK_(ptr);
  9255. ctx->SetLastTag(tag);
  9256. goto message_done;
  9257. }
  9258. ptr = UnknownFieldParse(
  9259. tag,
  9260. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9261. ptr, ctx);
  9262. CHK_(ptr != nullptr);
  9263. } // while
  9264. message_done:
  9265. return ptr;
  9266. failure:
  9267. ptr = nullptr;
  9268. goto message_done;
  9269. #undef CHK_
  9270. }
  9271. uint8_t* State::_InternalSerialize(
  9272. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9273. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9274. uint32_t cached_has_bits = 0;
  9275. (void) cached_has_bits;
  9276. // int32 engine_speed = 1;
  9277. if (this->_internal_engine_speed() != 0) {
  9278. target = stream->EnsureSpace(target);
  9279. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_engine_speed(), target);
  9280. }
  9281. // int32 travel_speed = 2;
  9282. if (this->_internal_travel_speed() != 0) {
  9283. target = stream->EnsureSpace(target);
  9284. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_travel_speed(), target);
  9285. }
  9286. // int32 fuel_level = 3;
  9287. if (this->_internal_fuel_level() != 0) {
  9288. target = stream->EnsureSpace(target);
  9289. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_fuel_level(), target);
  9290. }
  9291. // int32 engine_temperature = 4;
  9292. if (this->_internal_engine_temperature() != 0) {
  9293. target = stream->EnsureSpace(target);
  9294. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_engine_temperature(), target);
  9295. }
  9296. // int32 hydraulic_oil_temperature = 5;
  9297. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9298. target = stream->EnsureSpace(target);
  9299. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hydraulic_oil_temperature(), target);
  9300. }
  9301. // int32 main_pump_1_pressure = 6;
  9302. if (this->_internal_main_pump_1_pressure() != 0) {
  9303. target = stream->EnsureSpace(target);
  9304. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_main_pump_1_pressure(), target);
  9305. }
  9306. // int32 main_pump_2_pressure = 7;
  9307. if (this->_internal_main_pump_2_pressure() != 0) {
  9308. target = stream->EnsureSpace(target);
  9309. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_main_pump_2_pressure(), target);
  9310. }
  9311. // int32 hand_gear = 8;
  9312. if (this->_internal_hand_gear() != 0) {
  9313. target = stream->EnsureSpace(target);
  9314. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_hand_gear(), target);
  9315. }
  9316. // int32 actual_gear = 9;
  9317. if (this->_internal_actual_gear() != 0) {
  9318. target = stream->EnsureSpace(target);
  9319. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_actual_gear(), target);
  9320. }
  9321. // float gripper_height = 10;
  9322. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9323. float tmp_gripper_height = this->_internal_gripper_height();
  9324. uint32_t raw_gripper_height;
  9325. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9326. if (raw_gripper_height != 0) {
  9327. target = stream->EnsureSpace(target);
  9328. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_gripper_height(), target);
  9329. }
  9330. // float amplitude = 11;
  9331. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9332. float tmp_amplitude = this->_internal_amplitude();
  9333. uint32_t raw_amplitude;
  9334. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9335. if (raw_amplitude != 0) {
  9336. target = stream->EnsureSpace(target);
  9337. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->_internal_amplitude(), target);
  9338. }
  9339. // int32 boom_angle = 12;
  9340. if (this->_internal_boom_angle() != 0) {
  9341. target = stream->EnsureSpace(target);
  9342. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_boom_angle(), target);
  9343. }
  9344. // int32 stick_angle = 13;
  9345. if (this->_internal_stick_angle() != 0) {
  9346. target = stream->EnsureSpace(target);
  9347. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_stick_angle(), target);
  9348. }
  9349. // int32 idle_protection = 14;
  9350. if (this->_internal_idle_protection() != 0) {
  9351. target = stream->EnsureSpace(target);
  9352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_idle_protection(), target);
  9353. }
  9354. // int32 front_toggle = 15;
  9355. if (this->_internal_front_toggle() != 0) {
  9356. target = stream->EnsureSpace(target);
  9357. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_front_toggle(), target);
  9358. }
  9359. // int32 back_toggle = 16;
  9360. if (this->_internal_back_toggle() != 0) {
  9361. target = stream->EnsureSpace(target);
  9362. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_back_toggle(), target);
  9363. }
  9364. // bytes error_Buff = 17;
  9365. if (!this->_internal_error_buff().empty()) {
  9366. target = stream->WriteBytesMaybeAliased(
  9367. 17, this->_internal_error_buff(), target);
  9368. }
  9369. // int32 interlock = 18;
  9370. if (this->_internal_interlock() != 0) {
  9371. target = stream->EnsureSpace(target);
  9372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_interlock(), target);
  9373. }
  9374. // int32 safety_switch = 19;
  9375. if (this->_internal_safety_switch() != 0) {
  9376. target = stream->EnsureSpace(target);
  9377. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_safety_switch(), target);
  9378. }
  9379. // int32 arm_lift_pilot = 20;
  9380. if (this->_internal_arm_lift_pilot() != 0) {
  9381. target = stream->EnsureSpace(target);
  9382. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_arm_lift_pilot(), target);
  9383. }
  9384. // int32 arm_lowering_pilot = 21;
  9385. if (this->_internal_arm_lowering_pilot() != 0) {
  9386. target = stream->EnsureSpace(target);
  9387. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_arm_lowering_pilot(), target);
  9388. }
  9389. // int32 lever_lifting_pilot = 22;
  9390. if (this->_internal_lever_lifting_pilot() != 0) {
  9391. target = stream->EnsureSpace(target);
  9392. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_lever_lifting_pilot(), target);
  9393. }
  9394. // int32 rod_lowering_pilot = 23;
  9395. if (this->_internal_rod_lowering_pilot() != 0) {
  9396. target = stream->EnsureSpace(target);
  9397. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_rod_lowering_pilot(), target);
  9398. }
  9399. // int32 left_rotary_pilot = 24;
  9400. if (this->_internal_left_rotary_pilot() != 0) {
  9401. target = stream->EnsureSpace(target);
  9402. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_left_rotary_pilot(), target);
  9403. }
  9404. // int32 right_rotary_pilot = 25;
  9405. if (this->_internal_right_rotary_pilot() != 0) {
  9406. target = stream->EnsureSpace(target);
  9407. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_right_rotary_pilot(), target);
  9408. }
  9409. // int32 grab_open_pilot = 26;
  9410. if (this->_internal_grab_open_pilot() != 0) {
  9411. target = stream->EnsureSpace(target);
  9412. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_grab_open_pilot(), target);
  9413. }
  9414. // int32 grab_close_pilot = 27;
  9415. if (this->_internal_grab_close_pilot() != 0) {
  9416. target = stream->EnsureSpace(target);
  9417. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_grab_close_pilot(), target);
  9418. }
  9419. // int32 safety_valves = 28;
  9420. if (this->_internal_safety_valves() != 0) {
  9421. target = stream->EnsureSpace(target);
  9422. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_safety_valves(), target);
  9423. }
  9424. // int32 function_code = 29;
  9425. if (this->_internal_function_code() != 0) {
  9426. target = stream->EnsureSpace(target);
  9427. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(29, this->_internal_function_code(), target);
  9428. }
  9429. // int32 main_add = 30;
  9430. if (this->_internal_main_add() != 0) {
  9431. target = stream->EnsureSpace(target);
  9432. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(30, this->_internal_main_add(), target);
  9433. }
  9434. // int32 sub_add = 31;
  9435. if (this->_internal_sub_add() != 0) {
  9436. target = stream->EnsureSpace(target);
  9437. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(31, this->_internal_sub_add(), target);
  9438. }
  9439. // int32 paramter = 32;
  9440. if (this->_internal_paramter() != 0) {
  9441. target = stream->EnsureSpace(target);
  9442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(32, this->_internal_paramter(), target);
  9443. }
  9444. // int32 engine_spn = 33;
  9445. if (this->_internal_engine_spn() != 0) {
  9446. target = stream->EnsureSpace(target);
  9447. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(33, this->_internal_engine_spn(), target);
  9448. }
  9449. // int32 engine_fmi = 34;
  9450. if (this->_internal_engine_fmi() != 0) {
  9451. target = stream->EnsureSpace(target);
  9452. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(34, this->_internal_engine_fmi(), target);
  9453. }
  9454. // int32 engine_num = 35;
  9455. if (this->_internal_engine_num() != 0) {
  9456. target = stream->EnsureSpace(target);
  9457. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(35, this->_internal_engine_num(), target);
  9458. }
  9459. // bytes all_Buff = 36;
  9460. if (!this->_internal_all_buff().empty()) {
  9461. target = stream->WriteBytesMaybeAliased(
  9462. 36, this->_internal_all_buff(), target);
  9463. }
  9464. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9465. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9466. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9467. }
  9468. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  9469. return target;
  9470. }
  9471. size_t State::ByteSizeLong() const {
  9472. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  9473. size_t total_size = 0;
  9474. uint32_t cached_has_bits = 0;
  9475. // Prevent compiler warnings about cached_has_bits being unused
  9476. (void) cached_has_bits;
  9477. // bytes error_Buff = 17;
  9478. if (!this->_internal_error_buff().empty()) {
  9479. total_size += 2 +
  9480. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9481. this->_internal_error_buff());
  9482. }
  9483. // bytes all_Buff = 36;
  9484. if (!this->_internal_all_buff().empty()) {
  9485. total_size += 2 +
  9486. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9487. this->_internal_all_buff());
  9488. }
  9489. // int32 engine_speed = 1;
  9490. if (this->_internal_engine_speed() != 0) {
  9491. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_speed());
  9492. }
  9493. // int32 travel_speed = 2;
  9494. if (this->_internal_travel_speed() != 0) {
  9495. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_travel_speed());
  9496. }
  9497. // int32 fuel_level = 3;
  9498. if (this->_internal_fuel_level() != 0) {
  9499. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_fuel_level());
  9500. }
  9501. // int32 engine_temperature = 4;
  9502. if (this->_internal_engine_temperature() != 0) {
  9503. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_temperature());
  9504. }
  9505. // int32 hydraulic_oil_temperature = 5;
  9506. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9507. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hydraulic_oil_temperature());
  9508. }
  9509. // int32 main_pump_1_pressure = 6;
  9510. if (this->_internal_main_pump_1_pressure() != 0) {
  9511. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_1_pressure());
  9512. }
  9513. // int32 main_pump_2_pressure = 7;
  9514. if (this->_internal_main_pump_2_pressure() != 0) {
  9515. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_2_pressure());
  9516. }
  9517. // int32 hand_gear = 8;
  9518. if (this->_internal_hand_gear() != 0) {
  9519. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hand_gear());
  9520. }
  9521. // int32 actual_gear = 9;
  9522. if (this->_internal_actual_gear() != 0) {
  9523. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_actual_gear());
  9524. }
  9525. // float gripper_height = 10;
  9526. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9527. float tmp_gripper_height = this->_internal_gripper_height();
  9528. uint32_t raw_gripper_height;
  9529. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9530. if (raw_gripper_height != 0) {
  9531. total_size += 1 + 4;
  9532. }
  9533. // float amplitude = 11;
  9534. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9535. float tmp_amplitude = this->_internal_amplitude();
  9536. uint32_t raw_amplitude;
  9537. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9538. if (raw_amplitude != 0) {
  9539. total_size += 1 + 4;
  9540. }
  9541. // int32 boom_angle = 12;
  9542. if (this->_internal_boom_angle() != 0) {
  9543. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_boom_angle());
  9544. }
  9545. // int32 stick_angle = 13;
  9546. if (this->_internal_stick_angle() != 0) {
  9547. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_stick_angle());
  9548. }
  9549. // int32 idle_protection = 14;
  9550. if (this->_internal_idle_protection() != 0) {
  9551. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_idle_protection());
  9552. }
  9553. // int32 front_toggle = 15;
  9554. if (this->_internal_front_toggle() != 0) {
  9555. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_front_toggle());
  9556. }
  9557. // int32 back_toggle = 16;
  9558. if (this->_internal_back_toggle() != 0) {
  9559. total_size += 2 +
  9560. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9561. this->_internal_back_toggle());
  9562. }
  9563. // int32 interlock = 18;
  9564. if (this->_internal_interlock() != 0) {
  9565. total_size += 2 +
  9566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9567. this->_internal_interlock());
  9568. }
  9569. // int32 safety_switch = 19;
  9570. if (this->_internal_safety_switch() != 0) {
  9571. total_size += 2 +
  9572. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9573. this->_internal_safety_switch());
  9574. }
  9575. // int32 arm_lift_pilot = 20;
  9576. if (this->_internal_arm_lift_pilot() != 0) {
  9577. total_size += 2 +
  9578. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9579. this->_internal_arm_lift_pilot());
  9580. }
  9581. // int32 arm_lowering_pilot = 21;
  9582. if (this->_internal_arm_lowering_pilot() != 0) {
  9583. total_size += 2 +
  9584. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9585. this->_internal_arm_lowering_pilot());
  9586. }
  9587. // int32 lever_lifting_pilot = 22;
  9588. if (this->_internal_lever_lifting_pilot() != 0) {
  9589. total_size += 2 +
  9590. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9591. this->_internal_lever_lifting_pilot());
  9592. }
  9593. // int32 rod_lowering_pilot = 23;
  9594. if (this->_internal_rod_lowering_pilot() != 0) {
  9595. total_size += 2 +
  9596. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9597. this->_internal_rod_lowering_pilot());
  9598. }
  9599. // int32 left_rotary_pilot = 24;
  9600. if (this->_internal_left_rotary_pilot() != 0) {
  9601. total_size += 2 +
  9602. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9603. this->_internal_left_rotary_pilot());
  9604. }
  9605. // int32 right_rotary_pilot = 25;
  9606. if (this->_internal_right_rotary_pilot() != 0) {
  9607. total_size += 2 +
  9608. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9609. this->_internal_right_rotary_pilot());
  9610. }
  9611. // int32 grab_open_pilot = 26;
  9612. if (this->_internal_grab_open_pilot() != 0) {
  9613. total_size += 2 +
  9614. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9615. this->_internal_grab_open_pilot());
  9616. }
  9617. // int32 grab_close_pilot = 27;
  9618. if (this->_internal_grab_close_pilot() != 0) {
  9619. total_size += 2 +
  9620. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9621. this->_internal_grab_close_pilot());
  9622. }
  9623. // int32 safety_valves = 28;
  9624. if (this->_internal_safety_valves() != 0) {
  9625. total_size += 2 +
  9626. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9627. this->_internal_safety_valves());
  9628. }
  9629. // int32 function_code = 29;
  9630. if (this->_internal_function_code() != 0) {
  9631. total_size += 2 +
  9632. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9633. this->_internal_function_code());
  9634. }
  9635. // int32 main_add = 30;
  9636. if (this->_internal_main_add() != 0) {
  9637. total_size += 2 +
  9638. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9639. this->_internal_main_add());
  9640. }
  9641. // int32 sub_add = 31;
  9642. if (this->_internal_sub_add() != 0) {
  9643. total_size += 2 +
  9644. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9645. this->_internal_sub_add());
  9646. }
  9647. // int32 paramter = 32;
  9648. if (this->_internal_paramter() != 0) {
  9649. total_size += 2 +
  9650. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9651. this->_internal_paramter());
  9652. }
  9653. // int32 engine_spn = 33;
  9654. if (this->_internal_engine_spn() != 0) {
  9655. total_size += 2 +
  9656. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9657. this->_internal_engine_spn());
  9658. }
  9659. // int32 engine_fmi = 34;
  9660. if (this->_internal_engine_fmi() != 0) {
  9661. total_size += 2 +
  9662. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9663. this->_internal_engine_fmi());
  9664. }
  9665. // int32 engine_num = 35;
  9666. if (this->_internal_engine_num() != 0) {
  9667. total_size += 2 +
  9668. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9669. this->_internal_engine_num());
  9670. }
  9671. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9672. }
  9673. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  9674. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9675. State::MergeImpl
  9676. };
  9677. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  9678. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9679. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9680. static_cast<State *>(to)->MergeFrom(
  9681. static_cast<const State &>(from));
  9682. }
  9683. void State::MergeFrom(const State& from) {
  9684. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  9685. GOOGLE_DCHECK_NE(&from, this);
  9686. uint32_t cached_has_bits = 0;
  9687. (void) cached_has_bits;
  9688. if (!from._internal_error_buff().empty()) {
  9689. _internal_set_error_buff(from._internal_error_buff());
  9690. }
  9691. if (!from._internal_all_buff().empty()) {
  9692. _internal_set_all_buff(from._internal_all_buff());
  9693. }
  9694. if (from._internal_engine_speed() != 0) {
  9695. _internal_set_engine_speed(from._internal_engine_speed());
  9696. }
  9697. if (from._internal_travel_speed() != 0) {
  9698. _internal_set_travel_speed(from._internal_travel_speed());
  9699. }
  9700. if (from._internal_fuel_level() != 0) {
  9701. _internal_set_fuel_level(from._internal_fuel_level());
  9702. }
  9703. if (from._internal_engine_temperature() != 0) {
  9704. _internal_set_engine_temperature(from._internal_engine_temperature());
  9705. }
  9706. if (from._internal_hydraulic_oil_temperature() != 0) {
  9707. _internal_set_hydraulic_oil_temperature(from._internal_hydraulic_oil_temperature());
  9708. }
  9709. if (from._internal_main_pump_1_pressure() != 0) {
  9710. _internal_set_main_pump_1_pressure(from._internal_main_pump_1_pressure());
  9711. }
  9712. if (from._internal_main_pump_2_pressure() != 0) {
  9713. _internal_set_main_pump_2_pressure(from._internal_main_pump_2_pressure());
  9714. }
  9715. if (from._internal_hand_gear() != 0) {
  9716. _internal_set_hand_gear(from._internal_hand_gear());
  9717. }
  9718. if (from._internal_actual_gear() != 0) {
  9719. _internal_set_actual_gear(from._internal_actual_gear());
  9720. }
  9721. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9722. float tmp_gripper_height = from._internal_gripper_height();
  9723. uint32_t raw_gripper_height;
  9724. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9725. if (raw_gripper_height != 0) {
  9726. _internal_set_gripper_height(from._internal_gripper_height());
  9727. }
  9728. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9729. float tmp_amplitude = from._internal_amplitude();
  9730. uint32_t raw_amplitude;
  9731. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9732. if (raw_amplitude != 0) {
  9733. _internal_set_amplitude(from._internal_amplitude());
  9734. }
  9735. if (from._internal_boom_angle() != 0) {
  9736. _internal_set_boom_angle(from._internal_boom_angle());
  9737. }
  9738. if (from._internal_stick_angle() != 0) {
  9739. _internal_set_stick_angle(from._internal_stick_angle());
  9740. }
  9741. if (from._internal_idle_protection() != 0) {
  9742. _internal_set_idle_protection(from._internal_idle_protection());
  9743. }
  9744. if (from._internal_front_toggle() != 0) {
  9745. _internal_set_front_toggle(from._internal_front_toggle());
  9746. }
  9747. if (from._internal_back_toggle() != 0) {
  9748. _internal_set_back_toggle(from._internal_back_toggle());
  9749. }
  9750. if (from._internal_interlock() != 0) {
  9751. _internal_set_interlock(from._internal_interlock());
  9752. }
  9753. if (from._internal_safety_switch() != 0) {
  9754. _internal_set_safety_switch(from._internal_safety_switch());
  9755. }
  9756. if (from._internal_arm_lift_pilot() != 0) {
  9757. _internal_set_arm_lift_pilot(from._internal_arm_lift_pilot());
  9758. }
  9759. if (from._internal_arm_lowering_pilot() != 0) {
  9760. _internal_set_arm_lowering_pilot(from._internal_arm_lowering_pilot());
  9761. }
  9762. if (from._internal_lever_lifting_pilot() != 0) {
  9763. _internal_set_lever_lifting_pilot(from._internal_lever_lifting_pilot());
  9764. }
  9765. if (from._internal_rod_lowering_pilot() != 0) {
  9766. _internal_set_rod_lowering_pilot(from._internal_rod_lowering_pilot());
  9767. }
  9768. if (from._internal_left_rotary_pilot() != 0) {
  9769. _internal_set_left_rotary_pilot(from._internal_left_rotary_pilot());
  9770. }
  9771. if (from._internal_right_rotary_pilot() != 0) {
  9772. _internal_set_right_rotary_pilot(from._internal_right_rotary_pilot());
  9773. }
  9774. if (from._internal_grab_open_pilot() != 0) {
  9775. _internal_set_grab_open_pilot(from._internal_grab_open_pilot());
  9776. }
  9777. if (from._internal_grab_close_pilot() != 0) {
  9778. _internal_set_grab_close_pilot(from._internal_grab_close_pilot());
  9779. }
  9780. if (from._internal_safety_valves() != 0) {
  9781. _internal_set_safety_valves(from._internal_safety_valves());
  9782. }
  9783. if (from._internal_function_code() != 0) {
  9784. _internal_set_function_code(from._internal_function_code());
  9785. }
  9786. if (from._internal_main_add() != 0) {
  9787. _internal_set_main_add(from._internal_main_add());
  9788. }
  9789. if (from._internal_sub_add() != 0) {
  9790. _internal_set_sub_add(from._internal_sub_add());
  9791. }
  9792. if (from._internal_paramter() != 0) {
  9793. _internal_set_paramter(from._internal_paramter());
  9794. }
  9795. if (from._internal_engine_spn() != 0) {
  9796. _internal_set_engine_spn(from._internal_engine_spn());
  9797. }
  9798. if (from._internal_engine_fmi() != 0) {
  9799. _internal_set_engine_fmi(from._internal_engine_fmi());
  9800. }
  9801. if (from._internal_engine_num() != 0) {
  9802. _internal_set_engine_num(from._internal_engine_num());
  9803. }
  9804. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9805. }
  9806. void State::CopyFrom(const State& from) {
  9807. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  9808. if (&from == this) return;
  9809. Clear();
  9810. MergeFrom(from);
  9811. }
  9812. bool State::IsInitialized() const {
  9813. return true;
  9814. }
  9815. void State::InternalSwap(State* other) {
  9816. using std::swap;
  9817. auto* lhs_arena = GetArenaForAllocation();
  9818. auto* rhs_arena = other->GetArenaForAllocation();
  9819. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9820. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9821. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9822. &error_buff_, lhs_arena,
  9823. &other->error_buff_, rhs_arena
  9824. );
  9825. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9826. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9827. &all_buff_, lhs_arena,
  9828. &other->all_buff_, rhs_arena
  9829. );
  9830. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9831. PROTOBUF_FIELD_OFFSET(State, engine_num_)
  9832. + sizeof(State::engine_num_)
  9833. - PROTOBUF_FIELD_OFFSET(State, engine_speed_)>(
  9834. reinterpret_cast<char*>(&engine_speed_),
  9835. reinterpret_cast<char*>(&other->engine_speed_));
  9836. }
  9837. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  9838. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9839. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9840. file_level_metadata_protocol_2eproto[35]);
  9841. }
  9842. // ===================================================================
  9843. class LidarPoint::_Internal {
  9844. public:
  9845. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  9846. static void set_has_timestamp(HasBits* has_bits) {
  9847. (*has_bits)[0] |= 2u;
  9848. }
  9849. static void set_has_seq(HasBits* has_bits) {
  9850. (*has_bits)[0] |= 4u;
  9851. }
  9852. static void set_has_frame_id(HasBits* has_bits) {
  9853. (*has_bits)[0] |= 1u;
  9854. }
  9855. static void set_has_height(HasBits* has_bits) {
  9856. (*has_bits)[0] |= 8u;
  9857. }
  9858. static void set_has_width(HasBits* has_bits) {
  9859. (*has_bits)[0] |= 16u;
  9860. }
  9861. static void set_has_is_dense(HasBits* has_bits) {
  9862. (*has_bits)[0] |= 32u;
  9863. }
  9864. static void set_has_is_left(HasBits* has_bits) {
  9865. (*has_bits)[0] |= 64u;
  9866. }
  9867. };
  9868. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9869. bool is_message_owned)
  9870. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  9871. data_(arena) {
  9872. SharedCtor();
  9873. if (!is_message_owned) {
  9874. RegisterArenaDtor(arena);
  9875. }
  9876. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  9877. }
  9878. LidarPoint::LidarPoint(const LidarPoint& from)
  9879. : ::PROTOBUF_NAMESPACE_ID::Message(),
  9880. _has_bits_(from._has_bits_),
  9881. data_(from.data_) {
  9882. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9883. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9884. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9885. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9886. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9887. if (from._internal_has_frame_id()) {
  9888. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  9889. GetArenaForAllocation());
  9890. }
  9891. ::memcpy(&timestamp_, &from.timestamp_,
  9892. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9893. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9894. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  9895. }
  9896. inline void LidarPoint::SharedCtor() {
  9897. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9898. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9899. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9900. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9901. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9902. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  9903. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  9904. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9905. }
  9906. LidarPoint::~LidarPoint() {
  9907. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  9908. if (GetArenaForAllocation() != nullptr) return;
  9909. SharedDtor();
  9910. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9911. }
  9912. inline void LidarPoint::SharedDtor() {
  9913. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9914. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9915. }
  9916. void LidarPoint::ArenaDtor(void* object) {
  9917. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  9918. (void)_this;
  9919. }
  9920. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9921. }
  9922. void LidarPoint::SetCachedSize(int size) const {
  9923. _cached_size_.Set(size);
  9924. }
  9925. void LidarPoint::Clear() {
  9926. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  9927. uint32_t cached_has_bits = 0;
  9928. // Prevent compiler warnings about cached_has_bits being unused
  9929. (void) cached_has_bits;
  9930. data_.Clear();
  9931. cached_has_bits = _has_bits_[0];
  9932. if (cached_has_bits & 0x00000001u) {
  9933. frame_id_.ClearNonDefaultToEmpty();
  9934. }
  9935. if (cached_has_bits & 0x0000007eu) {
  9936. ::memset(&timestamp_, 0, static_cast<size_t>(
  9937. reinterpret_cast<char*>(&is_left_) -
  9938. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  9939. }
  9940. _has_bits_.Clear();
  9941. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9942. }
  9943. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9944. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9945. _Internal::HasBits has_bits{};
  9946. while (!ctx->Done(&ptr)) {
  9947. uint32_t tag;
  9948. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9949. switch (tag >> 3) {
  9950. // optional double timestamp = 1;
  9951. case 1:
  9952. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  9953. _Internal::set_has_timestamp(&has_bits);
  9954. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  9955. ptr += sizeof(double);
  9956. } else
  9957. goto handle_unusual;
  9958. continue;
  9959. // optional uint32 seq = 2;
  9960. case 2:
  9961. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9962. _Internal::set_has_seq(&has_bits);
  9963. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9964. CHK_(ptr);
  9965. } else
  9966. goto handle_unusual;
  9967. continue;
  9968. // optional string frame_id = 3;
  9969. case 3:
  9970. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  9971. auto str = _internal_mutable_frame_id();
  9972. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9973. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  9974. CHK_(ptr);
  9975. } else
  9976. goto handle_unusual;
  9977. continue;
  9978. // optional uint32 height = 4;
  9979. case 4:
  9980. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9981. _Internal::set_has_height(&has_bits);
  9982. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9983. CHK_(ptr);
  9984. } else
  9985. goto handle_unusual;
  9986. continue;
  9987. // optional uint32 width = 5;
  9988. case 5:
  9989. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9990. _Internal::set_has_width(&has_bits);
  9991. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9992. CHK_(ptr);
  9993. } else
  9994. goto handle_unusual;
  9995. continue;
  9996. // optional bool is_dense = 6;
  9997. case 6:
  9998. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9999. _Internal::set_has_is_dense(&has_bits);
  10000. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  10001. CHK_(ptr);
  10002. } else
  10003. goto handle_unusual;
  10004. continue;
  10005. // optional bool is_left = 7;
  10006. case 7:
  10007. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  10008. _Internal::set_has_is_left(&has_bits);
  10009. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  10010. CHK_(ptr);
  10011. } else
  10012. goto handle_unusual;
  10013. continue;
  10014. // repeated float data = 8;
  10015. case 8:
  10016. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  10017. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  10018. CHK_(ptr);
  10019. } else if (static_cast<uint8_t>(tag) == 69) {
  10020. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  10021. ptr += sizeof(float);
  10022. } else
  10023. goto handle_unusual;
  10024. continue;
  10025. default:
  10026. goto handle_unusual;
  10027. } // switch
  10028. handle_unusual:
  10029. if ((tag == 0) || ((tag & 7) == 4)) {
  10030. CHK_(ptr);
  10031. ctx->SetLastTag(tag);
  10032. goto message_done;
  10033. }
  10034. ptr = UnknownFieldParse(
  10035. tag,
  10036. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10037. ptr, ctx);
  10038. CHK_(ptr != nullptr);
  10039. } // while
  10040. message_done:
  10041. _has_bits_.Or(has_bits);
  10042. return ptr;
  10043. failure:
  10044. ptr = nullptr;
  10045. goto message_done;
  10046. #undef CHK_
  10047. }
  10048. uint8_t* LidarPoint::_InternalSerialize(
  10049. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10050. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  10051. uint32_t cached_has_bits = 0;
  10052. (void) cached_has_bits;
  10053. // optional double timestamp = 1;
  10054. if (_internal_has_timestamp()) {
  10055. target = stream->EnsureSpace(target);
  10056. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  10057. }
  10058. // optional uint32 seq = 2;
  10059. if (_internal_has_seq()) {
  10060. target = stream->EnsureSpace(target);
  10061. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  10062. }
  10063. // optional string frame_id = 3;
  10064. if (_internal_has_frame_id()) {
  10065. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  10066. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  10067. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  10068. "RemoNet.LidarPoint.frame_id");
  10069. target = stream->WriteStringMaybeAliased(
  10070. 3, this->_internal_frame_id(), target);
  10071. }
  10072. // optional uint32 height = 4;
  10073. if (_internal_has_height()) {
  10074. target = stream->EnsureSpace(target);
  10075. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  10076. }
  10077. // optional uint32 width = 5;
  10078. if (_internal_has_width()) {
  10079. target = stream->EnsureSpace(target);
  10080. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  10081. }
  10082. // optional bool is_dense = 6;
  10083. if (_internal_has_is_dense()) {
  10084. target = stream->EnsureSpace(target);
  10085. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  10086. }
  10087. // optional bool is_left = 7;
  10088. if (_internal_has_is_left()) {
  10089. target = stream->EnsureSpace(target);
  10090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  10091. }
  10092. // repeated float data = 8;
  10093. if (this->_internal_data_size() > 0) {
  10094. target = stream->WriteFixedPacked(8, _internal_data(), target);
  10095. }
  10096. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10097. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10098. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10099. }
  10100. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  10101. return target;
  10102. }
  10103. size_t LidarPoint::ByteSizeLong() const {
  10104. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  10105. size_t total_size = 0;
  10106. uint32_t cached_has_bits = 0;
  10107. // Prevent compiler warnings about cached_has_bits being unused
  10108. (void) cached_has_bits;
  10109. // repeated float data = 8;
  10110. {
  10111. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  10112. size_t data_size = 4UL * count;
  10113. if (data_size > 0) {
  10114. total_size += 1 +
  10115. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  10116. static_cast<int32_t>(data_size));
  10117. }
  10118. total_size += data_size;
  10119. }
  10120. cached_has_bits = _has_bits_[0];
  10121. if (cached_has_bits & 0x0000007fu) {
  10122. // optional string frame_id = 3;
  10123. if (cached_has_bits & 0x00000001u) {
  10124. total_size += 1 +
  10125. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  10126. this->_internal_frame_id());
  10127. }
  10128. // optional double timestamp = 1;
  10129. if (cached_has_bits & 0x00000002u) {
  10130. total_size += 1 + 8;
  10131. }
  10132. // optional uint32 seq = 2;
  10133. if (cached_has_bits & 0x00000004u) {
  10134. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  10135. }
  10136. // optional uint32 height = 4;
  10137. if (cached_has_bits & 0x00000008u) {
  10138. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  10139. }
  10140. // optional uint32 width = 5;
  10141. if (cached_has_bits & 0x00000010u) {
  10142. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  10143. }
  10144. // optional bool is_dense = 6;
  10145. if (cached_has_bits & 0x00000020u) {
  10146. total_size += 1 + 1;
  10147. }
  10148. // optional bool is_left = 7;
  10149. if (cached_has_bits & 0x00000040u) {
  10150. total_size += 1 + 1;
  10151. }
  10152. }
  10153. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10154. }
  10155. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  10156. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10157. LidarPoint::MergeImpl
  10158. };
  10159. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  10160. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10161. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10162. static_cast<LidarPoint *>(to)->MergeFrom(
  10163. static_cast<const LidarPoint &>(from));
  10164. }
  10165. void LidarPoint::MergeFrom(const LidarPoint& from) {
  10166. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  10167. GOOGLE_DCHECK_NE(&from, this);
  10168. uint32_t cached_has_bits = 0;
  10169. (void) cached_has_bits;
  10170. data_.MergeFrom(from.data_);
  10171. cached_has_bits = from._has_bits_[0];
  10172. if (cached_has_bits & 0x0000007fu) {
  10173. if (cached_has_bits & 0x00000001u) {
  10174. _internal_set_frame_id(from._internal_frame_id());
  10175. }
  10176. if (cached_has_bits & 0x00000002u) {
  10177. timestamp_ = from.timestamp_;
  10178. }
  10179. if (cached_has_bits & 0x00000004u) {
  10180. seq_ = from.seq_;
  10181. }
  10182. if (cached_has_bits & 0x00000008u) {
  10183. height_ = from.height_;
  10184. }
  10185. if (cached_has_bits & 0x00000010u) {
  10186. width_ = from.width_;
  10187. }
  10188. if (cached_has_bits & 0x00000020u) {
  10189. is_dense_ = from.is_dense_;
  10190. }
  10191. if (cached_has_bits & 0x00000040u) {
  10192. is_left_ = from.is_left_;
  10193. }
  10194. _has_bits_[0] |= cached_has_bits;
  10195. }
  10196. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10197. }
  10198. void LidarPoint::CopyFrom(const LidarPoint& from) {
  10199. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  10200. if (&from == this) return;
  10201. Clear();
  10202. MergeFrom(from);
  10203. }
  10204. bool LidarPoint::IsInitialized() const {
  10205. return true;
  10206. }
  10207. void LidarPoint::InternalSwap(LidarPoint* other) {
  10208. using std::swap;
  10209. auto* lhs_arena = GetArenaForAllocation();
  10210. auto* rhs_arena = other->GetArenaForAllocation();
  10211. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10212. swap(_has_bits_[0], other->_has_bits_[0]);
  10213. data_.InternalSwap(&other->data_);
  10214. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10215. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10216. &frame_id_, lhs_arena,
  10217. &other->frame_id_, rhs_arena
  10218. );
  10219. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10220. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  10221. + sizeof(LidarPoint::is_left_)
  10222. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  10223. reinterpret_cast<char*>(&timestamp_),
  10224. reinterpret_cast<char*>(&other->timestamp_));
  10225. }
  10226. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  10227. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10228. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10229. file_level_metadata_protocol_2eproto[36]);
  10230. }
  10231. // ===================================================================
  10232. class SensorStop::_Internal {
  10233. public:
  10234. };
  10235. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10236. bool is_message_owned)
  10237. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10238. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  10239. }
  10240. SensorStop::SensorStop(const SensorStop& from)
  10241. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10242. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10243. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  10244. }
  10245. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  10246. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10247. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10248. };
  10249. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  10250. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  10251. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10252. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10253. file_level_metadata_protocol_2eproto[37]);
  10254. }
  10255. // ===================================================================
  10256. class StopAck::_Internal {
  10257. public:
  10258. };
  10259. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10260. bool is_message_owned)
  10261. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  10262. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  10263. }
  10264. StopAck::StopAck(const StopAck& from)
  10265. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  10266. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10267. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  10268. }
  10269. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  10270. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  10271. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  10272. };
  10273. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  10274. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  10275. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10276. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10277. file_level_metadata_protocol_2eproto[38]);
  10278. }
  10279. // ===================================================================
  10280. class can_net_frame::_Internal {
  10281. public:
  10282. };
  10283. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10284. bool is_message_owned)
  10285. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10286. SharedCtor();
  10287. if (!is_message_owned) {
  10288. RegisterArenaDtor(arena);
  10289. }
  10290. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  10291. }
  10292. can_net_frame::can_net_frame(const can_net_frame& from)
  10293. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10294. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10295. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10296. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10297. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10298. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10299. if (!from._internal_data().empty()) {
  10300. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  10301. GetArenaForAllocation());
  10302. }
  10303. ::memcpy(&dlc_, &from.dlc_,
  10304. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10305. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10306. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  10307. }
  10308. inline void can_net_frame::SharedCtor() {
  10309. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10310. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10311. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10312. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10313. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10314. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  10315. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  10316. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10317. }
  10318. can_net_frame::~can_net_frame() {
  10319. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  10320. if (GetArenaForAllocation() != nullptr) return;
  10321. SharedDtor();
  10322. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10323. }
  10324. inline void can_net_frame::SharedDtor() {
  10325. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10326. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  10327. }
  10328. void can_net_frame::ArenaDtor(void* object) {
  10329. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  10330. (void)_this;
  10331. }
  10332. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10333. }
  10334. void can_net_frame::SetCachedSize(int size) const {
  10335. _cached_size_.Set(size);
  10336. }
  10337. void can_net_frame::Clear() {
  10338. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  10339. uint32_t cached_has_bits = 0;
  10340. // Prevent compiler warnings about cached_has_bits being unused
  10341. (void) cached_has_bits;
  10342. data_.ClearToEmpty();
  10343. ::memset(&dlc_, 0, static_cast<size_t>(
  10344. reinterpret_cast<char*>(&canid_) -
  10345. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10346. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10347. }
  10348. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10349. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10350. while (!ctx->Done(&ptr)) {
  10351. uint32_t tag;
  10352. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10353. switch (tag >> 3) {
  10354. // sint32 dlc = 1;
  10355. case 1:
  10356. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10357. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  10358. CHK_(ptr);
  10359. } else
  10360. goto handle_unusual;
  10361. continue;
  10362. // int32 canid = 2;
  10363. case 2:
  10364. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10365. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10366. CHK_(ptr);
  10367. } else
  10368. goto handle_unusual;
  10369. continue;
  10370. // bytes data = 3;
  10371. case 3:
  10372. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  10373. auto str = _internal_mutable_data();
  10374. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  10375. CHK_(ptr);
  10376. } else
  10377. goto handle_unusual;
  10378. continue;
  10379. default:
  10380. goto handle_unusual;
  10381. } // switch
  10382. handle_unusual:
  10383. if ((tag == 0) || ((tag & 7) == 4)) {
  10384. CHK_(ptr);
  10385. ctx->SetLastTag(tag);
  10386. goto message_done;
  10387. }
  10388. ptr = UnknownFieldParse(
  10389. tag,
  10390. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10391. ptr, ctx);
  10392. CHK_(ptr != nullptr);
  10393. } // while
  10394. message_done:
  10395. return ptr;
  10396. failure:
  10397. ptr = nullptr;
  10398. goto message_done;
  10399. #undef CHK_
  10400. }
  10401. uint8_t* can_net_frame::_InternalSerialize(
  10402. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10403. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  10404. uint32_t cached_has_bits = 0;
  10405. (void) cached_has_bits;
  10406. // sint32 dlc = 1;
  10407. if (this->_internal_dlc() != 0) {
  10408. target = stream->EnsureSpace(target);
  10409. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  10410. }
  10411. // int32 canid = 2;
  10412. if (this->_internal_canid() != 0) {
  10413. target = stream->EnsureSpace(target);
  10414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  10415. }
  10416. // bytes data = 3;
  10417. if (!this->_internal_data().empty()) {
  10418. target = stream->WriteBytesMaybeAliased(
  10419. 3, this->_internal_data(), target);
  10420. }
  10421. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10422. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10423. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10424. }
  10425. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  10426. return target;
  10427. }
  10428. size_t can_net_frame::ByteSizeLong() const {
  10429. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  10430. size_t total_size = 0;
  10431. uint32_t cached_has_bits = 0;
  10432. // Prevent compiler warnings about cached_has_bits being unused
  10433. (void) cached_has_bits;
  10434. // bytes data = 3;
  10435. if (!this->_internal_data().empty()) {
  10436. total_size += 1 +
  10437. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  10438. this->_internal_data());
  10439. }
  10440. // sint32 dlc = 1;
  10441. if (this->_internal_dlc() != 0) {
  10442. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  10443. }
  10444. // int32 canid = 2;
  10445. if (this->_internal_canid() != 0) {
  10446. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  10447. }
  10448. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10449. }
  10450. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  10451. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10452. can_net_frame::MergeImpl
  10453. };
  10454. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  10455. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10456. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10457. static_cast<can_net_frame *>(to)->MergeFrom(
  10458. static_cast<const can_net_frame &>(from));
  10459. }
  10460. void can_net_frame::MergeFrom(const can_net_frame& from) {
  10461. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  10462. GOOGLE_DCHECK_NE(&from, this);
  10463. uint32_t cached_has_bits = 0;
  10464. (void) cached_has_bits;
  10465. if (!from._internal_data().empty()) {
  10466. _internal_set_data(from._internal_data());
  10467. }
  10468. if (from._internal_dlc() != 0) {
  10469. _internal_set_dlc(from._internal_dlc());
  10470. }
  10471. if (from._internal_canid() != 0) {
  10472. _internal_set_canid(from._internal_canid());
  10473. }
  10474. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10475. }
  10476. void can_net_frame::CopyFrom(const can_net_frame& from) {
  10477. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  10478. if (&from == this) return;
  10479. Clear();
  10480. MergeFrom(from);
  10481. }
  10482. bool can_net_frame::IsInitialized() const {
  10483. return true;
  10484. }
  10485. void can_net_frame::InternalSwap(can_net_frame* other) {
  10486. using std::swap;
  10487. auto* lhs_arena = GetArenaForAllocation();
  10488. auto* rhs_arena = other->GetArenaForAllocation();
  10489. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10490. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10491. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10492. &data_, lhs_arena,
  10493. &other->data_, rhs_arena
  10494. );
  10495. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10496. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  10497. + sizeof(can_net_frame::canid_)
  10498. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  10499. reinterpret_cast<char*>(&dlc_),
  10500. reinterpret_cast<char*>(&other->dlc_));
  10501. }
  10502. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  10503. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10504. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10505. file_level_metadata_protocol_2eproto[39]);
  10506. }
  10507. // ===================================================================
  10508. class CCCanMsg::_Internal {
  10509. public:
  10510. };
  10511. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10512. bool is_message_owned)
  10513. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  10514. frams_(arena) {
  10515. SharedCtor();
  10516. if (!is_message_owned) {
  10517. RegisterArenaDtor(arena);
  10518. }
  10519. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  10520. }
  10521. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  10522. : ::PROTOBUF_NAMESPACE_ID::Message(),
  10523. frams_(from.frams_) {
  10524. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10525. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  10526. }
  10527. inline void CCCanMsg::SharedCtor() {
  10528. }
  10529. CCCanMsg::~CCCanMsg() {
  10530. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  10531. if (GetArenaForAllocation() != nullptr) return;
  10532. SharedDtor();
  10533. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10534. }
  10535. inline void CCCanMsg::SharedDtor() {
  10536. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10537. }
  10538. void CCCanMsg::ArenaDtor(void* object) {
  10539. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  10540. (void)_this;
  10541. }
  10542. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10543. }
  10544. void CCCanMsg::SetCachedSize(int size) const {
  10545. _cached_size_.Set(size);
  10546. }
  10547. void CCCanMsg::Clear() {
  10548. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  10549. uint32_t cached_has_bits = 0;
  10550. // Prevent compiler warnings about cached_has_bits being unused
  10551. (void) cached_has_bits;
  10552. frams_.Clear();
  10553. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10554. }
  10555. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10556. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10557. while (!ctx->Done(&ptr)) {
  10558. uint32_t tag;
  10559. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10560. switch (tag >> 3) {
  10561. // repeated .RemoNet.can_net_frame frams = 1;
  10562. case 1:
  10563. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10564. ptr -= 1;
  10565. do {
  10566. ptr += 1;
  10567. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  10568. CHK_(ptr);
  10569. if (!ctx->DataAvailable(ptr)) break;
  10570. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  10571. } else
  10572. goto handle_unusual;
  10573. continue;
  10574. default:
  10575. goto handle_unusual;
  10576. } // switch
  10577. handle_unusual:
  10578. if ((tag == 0) || ((tag & 7) == 4)) {
  10579. CHK_(ptr);
  10580. ctx->SetLastTag(tag);
  10581. goto message_done;
  10582. }
  10583. ptr = UnknownFieldParse(
  10584. tag,
  10585. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10586. ptr, ctx);
  10587. CHK_(ptr != nullptr);
  10588. } // while
  10589. message_done:
  10590. return ptr;
  10591. failure:
  10592. ptr = nullptr;
  10593. goto message_done;
  10594. #undef CHK_
  10595. }
  10596. uint8_t* CCCanMsg::_InternalSerialize(
  10597. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10598. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  10599. uint32_t cached_has_bits = 0;
  10600. (void) cached_has_bits;
  10601. // repeated .RemoNet.can_net_frame frams = 1;
  10602. for (unsigned int i = 0,
  10603. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  10604. target = stream->EnsureSpace(target);
  10605. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10606. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  10607. }
  10608. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10609. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10610. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10611. }
  10612. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  10613. return target;
  10614. }
  10615. size_t CCCanMsg::ByteSizeLong() const {
  10616. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  10617. size_t total_size = 0;
  10618. uint32_t cached_has_bits = 0;
  10619. // Prevent compiler warnings about cached_has_bits being unused
  10620. (void) cached_has_bits;
  10621. // repeated .RemoNet.can_net_frame frams = 1;
  10622. total_size += 1UL * this->_internal_frams_size();
  10623. for (const auto& msg : this->frams_) {
  10624. total_size +=
  10625. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10626. }
  10627. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10628. }
  10629. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  10630. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10631. CCCanMsg::MergeImpl
  10632. };
  10633. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  10634. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10635. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10636. static_cast<CCCanMsg *>(to)->MergeFrom(
  10637. static_cast<const CCCanMsg &>(from));
  10638. }
  10639. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  10640. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  10641. GOOGLE_DCHECK_NE(&from, this);
  10642. uint32_t cached_has_bits = 0;
  10643. (void) cached_has_bits;
  10644. frams_.MergeFrom(from.frams_);
  10645. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10646. }
  10647. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  10648. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  10649. if (&from == this) return;
  10650. Clear();
  10651. MergeFrom(from);
  10652. }
  10653. bool CCCanMsg::IsInitialized() const {
  10654. return true;
  10655. }
  10656. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  10657. using std::swap;
  10658. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10659. frams_.InternalSwap(&other->frams_);
  10660. }
  10661. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  10662. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10663. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10664. file_level_metadata_protocol_2eproto[40]);
  10665. }
  10666. // ===================================================================
  10667. class SCAddRobot::_Internal {
  10668. public:
  10669. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  10670. };
  10671. const ::RemoNet::Robot&
  10672. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  10673. return *msg->robot_;
  10674. }
  10675. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10676. bool is_message_owned)
  10677. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10678. SharedCtor();
  10679. if (!is_message_owned) {
  10680. RegisterArenaDtor(arena);
  10681. }
  10682. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  10683. }
  10684. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  10685. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10686. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10687. if (from._internal_has_robot()) {
  10688. robot_ = new ::RemoNet::Robot(*from.robot_);
  10689. } else {
  10690. robot_ = nullptr;
  10691. }
  10692. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  10693. }
  10694. inline void SCAddRobot::SharedCtor() {
  10695. robot_ = nullptr;
  10696. }
  10697. SCAddRobot::~SCAddRobot() {
  10698. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  10699. if (GetArenaForAllocation() != nullptr) return;
  10700. SharedDtor();
  10701. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10702. }
  10703. inline void SCAddRobot::SharedDtor() {
  10704. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10705. if (this != internal_default_instance()) delete robot_;
  10706. }
  10707. void SCAddRobot::ArenaDtor(void* object) {
  10708. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  10709. (void)_this;
  10710. }
  10711. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10712. }
  10713. void SCAddRobot::SetCachedSize(int size) const {
  10714. _cached_size_.Set(size);
  10715. }
  10716. void SCAddRobot::Clear() {
  10717. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  10718. uint32_t cached_has_bits = 0;
  10719. // Prevent compiler warnings about cached_has_bits being unused
  10720. (void) cached_has_bits;
  10721. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  10722. delete robot_;
  10723. }
  10724. robot_ = nullptr;
  10725. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10726. }
  10727. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10728. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10729. while (!ctx->Done(&ptr)) {
  10730. uint32_t tag;
  10731. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10732. switch (tag >> 3) {
  10733. // .RemoNet.Robot robot = 1;
  10734. case 1:
  10735. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10736. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  10737. CHK_(ptr);
  10738. } else
  10739. goto handle_unusual;
  10740. continue;
  10741. default:
  10742. goto handle_unusual;
  10743. } // switch
  10744. handle_unusual:
  10745. if ((tag == 0) || ((tag & 7) == 4)) {
  10746. CHK_(ptr);
  10747. ctx->SetLastTag(tag);
  10748. goto message_done;
  10749. }
  10750. ptr = UnknownFieldParse(
  10751. tag,
  10752. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10753. ptr, ctx);
  10754. CHK_(ptr != nullptr);
  10755. } // while
  10756. message_done:
  10757. return ptr;
  10758. failure:
  10759. ptr = nullptr;
  10760. goto message_done;
  10761. #undef CHK_
  10762. }
  10763. uint8_t* SCAddRobot::_InternalSerialize(
  10764. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10765. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  10766. uint32_t cached_has_bits = 0;
  10767. (void) cached_has_bits;
  10768. // .RemoNet.Robot robot = 1;
  10769. if (this->_internal_has_robot()) {
  10770. target = stream->EnsureSpace(target);
  10771. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10772. InternalWriteMessage(
  10773. 1, _Internal::robot(this), target, stream);
  10774. }
  10775. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10776. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10777. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10778. }
  10779. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  10780. return target;
  10781. }
  10782. size_t SCAddRobot::ByteSizeLong() const {
  10783. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  10784. size_t total_size = 0;
  10785. uint32_t cached_has_bits = 0;
  10786. // Prevent compiler warnings about cached_has_bits being unused
  10787. (void) cached_has_bits;
  10788. // .RemoNet.Robot robot = 1;
  10789. if (this->_internal_has_robot()) {
  10790. total_size += 1 +
  10791. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  10792. *robot_);
  10793. }
  10794. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10795. }
  10796. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  10797. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10798. SCAddRobot::MergeImpl
  10799. };
  10800. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  10801. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10802. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10803. static_cast<SCAddRobot *>(to)->MergeFrom(
  10804. static_cast<const SCAddRobot &>(from));
  10805. }
  10806. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  10807. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  10808. GOOGLE_DCHECK_NE(&from, this);
  10809. uint32_t cached_has_bits = 0;
  10810. (void) cached_has_bits;
  10811. if (from._internal_has_robot()) {
  10812. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  10813. }
  10814. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10815. }
  10816. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  10817. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  10818. if (&from == this) return;
  10819. Clear();
  10820. MergeFrom(from);
  10821. }
  10822. bool SCAddRobot::IsInitialized() const {
  10823. return true;
  10824. }
  10825. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  10826. using std::swap;
  10827. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10828. swap(robot_, other->robot_);
  10829. }
  10830. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  10831. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10832. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10833. file_level_metadata_protocol_2eproto[41]);
  10834. }
  10835. // ===================================================================
  10836. class SCDelRobot::_Internal {
  10837. public:
  10838. };
  10839. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10840. bool is_message_owned)
  10841. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  10842. SharedCtor();
  10843. if (!is_message_owned) {
  10844. RegisterArenaDtor(arena);
  10845. }
  10846. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  10847. }
  10848. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  10849. : ::PROTOBUF_NAMESPACE_ID::Message() {
  10850. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10851. ::memcpy(&peer_, &from.peer_,
  10852. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10853. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10854. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  10855. }
  10856. inline void SCDelRobot::SharedCtor() {
  10857. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  10858. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  10859. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  10860. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10861. }
  10862. SCDelRobot::~SCDelRobot() {
  10863. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  10864. if (GetArenaForAllocation() != nullptr) return;
  10865. SharedDtor();
  10866. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10867. }
  10868. inline void SCDelRobot::SharedDtor() {
  10869. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10870. }
  10871. void SCDelRobot::ArenaDtor(void* object) {
  10872. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  10873. (void)_this;
  10874. }
  10875. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10876. }
  10877. void SCDelRobot::SetCachedSize(int size) const {
  10878. _cached_size_.Set(size);
  10879. }
  10880. void SCDelRobot::Clear() {
  10881. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  10882. uint32_t cached_has_bits = 0;
  10883. // Prevent compiler warnings about cached_has_bits being unused
  10884. (void) cached_has_bits;
  10885. ::memset(&peer_, 0, static_cast<size_t>(
  10886. reinterpret_cast<char*>(&egotype_) -
  10887. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  10888. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10889. }
  10890. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10891. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10892. while (!ctx->Done(&ptr)) {
  10893. uint32_t tag;
  10894. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10895. switch (tag >> 3) {
  10896. // int32 peer = 1;
  10897. case 1:
  10898. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10899. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10900. CHK_(ptr);
  10901. } else
  10902. goto handle_unusual;
  10903. continue;
  10904. // int32 egotype = 2;
  10905. case 2:
  10906. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10907. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10908. CHK_(ptr);
  10909. } else
  10910. goto handle_unusual;
  10911. continue;
  10912. default:
  10913. goto handle_unusual;
  10914. } // switch
  10915. handle_unusual:
  10916. if ((tag == 0) || ((tag & 7) == 4)) {
  10917. CHK_(ptr);
  10918. ctx->SetLastTag(tag);
  10919. goto message_done;
  10920. }
  10921. ptr = UnknownFieldParse(
  10922. tag,
  10923. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10924. ptr, ctx);
  10925. CHK_(ptr != nullptr);
  10926. } // while
  10927. message_done:
  10928. return ptr;
  10929. failure:
  10930. ptr = nullptr;
  10931. goto message_done;
  10932. #undef CHK_
  10933. }
  10934. uint8_t* SCDelRobot::_InternalSerialize(
  10935. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10936. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  10937. uint32_t cached_has_bits = 0;
  10938. (void) cached_has_bits;
  10939. // int32 peer = 1;
  10940. if (this->_internal_peer() != 0) {
  10941. target = stream->EnsureSpace(target);
  10942. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  10943. }
  10944. // int32 egotype = 2;
  10945. if (this->_internal_egotype() != 0) {
  10946. target = stream->EnsureSpace(target);
  10947. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  10948. }
  10949. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10950. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10951. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10952. }
  10953. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  10954. return target;
  10955. }
  10956. size_t SCDelRobot::ByteSizeLong() const {
  10957. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  10958. size_t total_size = 0;
  10959. uint32_t cached_has_bits = 0;
  10960. // Prevent compiler warnings about cached_has_bits being unused
  10961. (void) cached_has_bits;
  10962. // int32 peer = 1;
  10963. if (this->_internal_peer() != 0) {
  10964. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  10965. }
  10966. // int32 egotype = 2;
  10967. if (this->_internal_egotype() != 0) {
  10968. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  10969. }
  10970. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10971. }
  10972. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  10973. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10974. SCDelRobot::MergeImpl
  10975. };
  10976. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  10977. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10978. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10979. static_cast<SCDelRobot *>(to)->MergeFrom(
  10980. static_cast<const SCDelRobot &>(from));
  10981. }
  10982. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  10983. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  10984. GOOGLE_DCHECK_NE(&from, this);
  10985. uint32_t cached_has_bits = 0;
  10986. (void) cached_has_bits;
  10987. if (from._internal_peer() != 0) {
  10988. _internal_set_peer(from._internal_peer());
  10989. }
  10990. if (from._internal_egotype() != 0) {
  10991. _internal_set_egotype(from._internal_egotype());
  10992. }
  10993. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10994. }
  10995. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  10996. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  10997. if (&from == this) return;
  10998. Clear();
  10999. MergeFrom(from);
  11000. }
  11001. bool SCDelRobot::IsInitialized() const {
  11002. return true;
  11003. }
  11004. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  11005. using std::swap;
  11006. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  11007. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  11008. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  11009. + sizeof(SCDelRobot::egotype_)
  11010. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  11011. reinterpret_cast<char*>(&peer_),
  11012. reinterpret_cast<char*>(&other->peer_));
  11013. }
  11014. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  11015. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  11016. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  11017. file_level_metadata_protocol_2eproto[42]);
  11018. }
  11019. // @@protoc_insertion_point(namespace_scope)
  11020. } // namespace RemoNet
  11021. PROTOBUF_NAMESPACE_OPEN
  11022. template<> PROTOBUF_NOINLINE ::RemoNet::SwitchDriver* Arena::CreateMaybeMessage< ::RemoNet::SwitchDriver >(Arena* arena) {
  11023. return Arena::CreateMessageInternal< ::RemoNet::SwitchDriver >(arena);
  11024. }
  11025. template<> PROTOBUF_NOINLINE ::RemoNet::NDTPos* Arena::CreateMaybeMessage< ::RemoNet::NDTPos >(Arena* arena) {
  11026. return Arena::CreateMessageInternal< ::RemoNet::NDTPos >(arena);
  11027. }
  11028. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::CSMoveBegin >(Arena* arena) {
  11029. return Arena::CreateMessageInternal< ::RemoNet::CSMoveBegin >(arena);
  11030. }
  11031. template<> PROTOBUF_NOINLINE ::RemoNet::MoveRet* Arena::CreateMaybeMessage< ::RemoNet::MoveRet >(Arena* arena) {
  11032. return Arena::CreateMessageInternal< ::RemoNet::MoveRet >(arena);
  11033. }
  11034. template<> PROTOBUF_NOINLINE ::RemoNet::CSMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::CSMoveEnd >(Arena* arena) {
  11035. return Arena::CreateMessageInternal< ::RemoNet::CSMoveEnd >(arena);
  11036. }
  11037. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveBegin* Arena::CreateMaybeMessage< ::RemoNet::SCMoveBegin >(Arena* arena) {
  11038. return Arena::CreateMessageInternal< ::RemoNet::SCMoveBegin >(arena);
  11039. }
  11040. template<> PROTOBUF_NOINLINE ::RemoNet::SCMoveEnd* Arena::CreateMaybeMessage< ::RemoNet::SCMoveEnd >(Arena* arena) {
  11041. return Arena::CreateMessageInternal< ::RemoNet::SCMoveEnd >(arena);
  11042. }
  11043. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  11044. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  11045. }
  11046. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  11047. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  11048. }
  11049. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  11050. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  11051. }
  11052. template<> PROTOBUF_NOINLINE ::RemoNet::CSState* Arena::CreateMaybeMessage< ::RemoNet::CSState >(Arena* arena) {
  11053. return Arena::CreateMessageInternal< ::RemoNet::CSState >(arena);
  11054. }
  11055. template<> PROTOBUF_NOINLINE ::RemoNet::SCState* Arena::CreateMaybeMessage< ::RemoNet::SCState >(Arena* arena) {
  11056. return Arena::CreateMessageInternal< ::RemoNet::SCState >(arena);
  11057. }
  11058. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  11059. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  11060. }
  11061. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  11062. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  11063. }
  11064. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  11065. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  11066. }
  11067. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  11068. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  11069. }
  11070. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  11071. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  11072. }
  11073. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  11074. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  11075. }
  11076. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  11077. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  11078. }
  11079. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  11080. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  11081. }
  11082. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  11083. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  11084. }
  11085. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  11086. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  11087. }
  11088. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  11089. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  11090. }
  11091. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  11092. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  11093. }
  11094. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  11095. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  11096. }
  11097. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  11098. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  11099. }
  11100. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  11101. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  11102. }
  11103. template<> PROTOBUF_NOINLINE ::RemoNet::SyncTime* Arena::CreateMaybeMessage< ::RemoNet::SyncTime >(Arena* arena) {
  11104. return Arena::CreateMessageInternal< ::RemoNet::SyncTime >(arena);
  11105. }
  11106. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  11107. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  11108. }
  11109. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  11110. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  11111. }
  11112. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  11113. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  11114. }
  11115. template<> PROTOBUF_NOINLINE ::RemoNet::radar_node* Arena::CreateMaybeMessage< ::RemoNet::radar_node >(Arena* arena) {
  11116. return Arena::CreateMessageInternal< ::RemoNet::radar_node >(arena);
  11117. }
  11118. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  11119. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  11120. }
  11121. template<> PROTOBUF_NOINLINE ::RemoNet::CCSensor* Arena::CreateMaybeMessage< ::RemoNet::CCSensor >(Arena* arena) {
  11122. return Arena::CreateMessageInternal< ::RemoNet::CCSensor >(arena);
  11123. }
  11124. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  11125. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  11126. }
  11127. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  11128. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  11129. }
  11130. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  11131. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  11132. }
  11133. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  11134. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  11135. }
  11136. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  11137. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  11138. }
  11139. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  11140. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  11141. }
  11142. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  11143. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  11144. }
  11145. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  11146. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  11147. }
  11148. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  11149. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  11150. }
  11151. PROTOBUF_NAMESPACE_CLOSE
  11152. // @@protoc_insertion_point(global_scope)
  11153. #include <google/protobuf/port_undef.inc>