protocol.pb.cc 418 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750
  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 UserActivityInfo::UserActivityInfo(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : user_uuid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  19. , cockpit_id_(0)
  20. , vehicle_id_(0){}
  21. struct UserActivityInfoDefaultTypeInternal {
  22. constexpr UserActivityInfoDefaultTypeInternal()
  23. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  24. ~UserActivityInfoDefaultTypeInternal() {}
  25. union {
  26. UserActivityInfo _instance;
  27. };
  28. };
  29. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserActivityInfoDefaultTypeInternal _UserActivityInfo_default_instance_;
  30. constexpr CSAdd::CSAdd(
  31. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  32. : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  33. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  34. , type_(0){}
  35. struct CSAddDefaultTypeInternal {
  36. constexpr CSAddDefaultTypeInternal()
  37. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  38. ~CSAddDefaultTypeInternal() {}
  39. union {
  40. CSAdd _instance;
  41. };
  42. };
  43. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_;
  44. constexpr SCAdd::SCAdd(
  45. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  46. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  47. , ret_(false)
  48. , uid_(0)
  49. , cid_(0){}
  50. struct SCAddDefaultTypeInternal {
  51. constexpr SCAddDefaultTypeInternal()
  52. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  53. ~SCAddDefaultTypeInternal() {}
  54. union {
  55. SCAdd _instance;
  56. };
  57. };
  58. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_;
  59. constexpr SCKickOff::SCKickOff(
  60. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  61. struct SCKickOffDefaultTypeInternal {
  62. constexpr SCKickOffDefaultTypeInternal()
  63. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  64. ~SCKickOffDefaultTypeInternal() {}
  65. union {
  66. SCKickOff _instance;
  67. };
  68. };
  69. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCKickOffDefaultTypeInternal _SCKickOff_default_instance_;
  70. constexpr Robot::Robot(
  71. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  72. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  73. , rid_(0)
  74. , type_(0)
  75. , state_(0)
  76. {}
  77. struct RobotDefaultTypeInternal {
  78. constexpr RobotDefaultTypeInternal()
  79. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  80. ~RobotDefaultTypeInternal() {}
  81. union {
  82. Robot _instance;
  83. };
  84. };
  85. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  86. constexpr CSRobot::CSRobot(
  87. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  88. struct CSRobotDefaultTypeInternal {
  89. constexpr CSRobotDefaultTypeInternal()
  90. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  91. ~CSRobotDefaultTypeInternal() {}
  92. union {
  93. CSRobot _instance;
  94. };
  95. };
  96. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  97. constexpr SCRobot::SCRobot(
  98. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  99. : robot_(){}
  100. struct SCRobotDefaultTypeInternal {
  101. constexpr SCRobotDefaultTypeInternal()
  102. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  103. ~SCRobotDefaultTypeInternal() {}
  104. union {
  105. SCRobot _instance;
  106. };
  107. };
  108. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  109. constexpr CSSign::CSSign(
  110. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  111. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  112. , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  113. struct CSSignDefaultTypeInternal {
  114. constexpr CSSignDefaultTypeInternal()
  115. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  116. ~CSSignDefaultTypeInternal() {}
  117. union {
  118. CSSign _instance;
  119. };
  120. };
  121. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSignDefaultTypeInternal _CSSign_default_instance_;
  122. constexpr SCSign::SCSign(
  123. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  124. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  125. , ret_(false)
  126. , uid_(0)
  127. , cid_(0){}
  128. struct SCSignDefaultTypeInternal {
  129. constexpr SCSignDefaultTypeInternal()
  130. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  131. ~SCSignDefaultTypeInternal() {}
  132. union {
  133. SCSign _instance;
  134. };
  135. };
  136. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSignDefaultTypeInternal _SCSign_default_instance_;
  137. constexpr CSReq::CSReq(
  138. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  139. : peer_(0)
  140. , index_(0)
  141. , egotype_(0){}
  142. struct CSReqDefaultTypeInternal {
  143. constexpr CSReqDefaultTypeInternal()
  144. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  145. ~CSReqDefaultTypeInternal() {}
  146. union {
  147. CSReq _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  151. constexpr SCReq::SCReq(
  152. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  153. : desc_(0)
  154. , peer_(0)
  155. , egotype_(0){}
  156. struct SCReqDefaultTypeInternal {
  157. constexpr SCReqDefaultTypeInternal()
  158. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  159. ~SCReqDefaultTypeInternal() {}
  160. union {
  161. SCReq _instance;
  162. };
  163. };
  164. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  165. constexpr CSRep::CSRep(
  166. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  167. : desc_(0)
  168. , peer_(0)
  169. , index_(0)
  170. , egotype_(0){}
  171. struct CSRepDefaultTypeInternal {
  172. constexpr CSRepDefaultTypeInternal()
  173. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  174. ~CSRepDefaultTypeInternal() {}
  175. union {
  176. CSRep _instance;
  177. };
  178. };
  179. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  180. constexpr SCRep::SCRep(
  181. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  182. : desc_(0)
  183. , index_(0)
  184. , egotype_(0)
  185. , peer_(0){}
  186. struct SCRepDefaultTypeInternal {
  187. constexpr SCRepDefaultTypeInternal()
  188. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  189. ~SCRepDefaultTypeInternal() {}
  190. union {
  191. SCRep _instance;
  192. };
  193. };
  194. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  195. constexpr Offer::Offer(
  196. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  197. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  198. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  199. , index_(0)
  200. , peer_(0){}
  201. struct OfferDefaultTypeInternal {
  202. constexpr OfferDefaultTypeInternal()
  203. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  204. ~OfferDefaultTypeInternal() {}
  205. union {
  206. Offer _instance;
  207. };
  208. };
  209. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  210. constexpr Answer::Answer(
  211. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  212. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  213. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  214. , index_(0)
  215. , peer_(0){}
  216. struct AnswerDefaultTypeInternal {
  217. constexpr AnswerDefaultTypeInternal()
  218. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  219. ~AnswerDefaultTypeInternal() {}
  220. union {
  221. Answer _instance;
  222. };
  223. };
  224. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  225. constexpr Candidate::Candidate(
  226. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  227. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  228. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  229. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  230. , index_(0)
  231. , peer_(0)
  232. , sdpmlineindex_(0)
  233. , egotype_(0){}
  234. struct CandidateDefaultTypeInternal {
  235. constexpr CandidateDefaultTypeInternal()
  236. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  237. ~CandidateDefaultTypeInternal() {}
  238. union {
  239. Candidate _instance;
  240. };
  241. };
  242. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  243. constexpr Leave::Leave(
  244. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  245. : peer_(0)
  246. , egotype_(0){}
  247. struct LeaveDefaultTypeInternal {
  248. constexpr LeaveDefaultTypeInternal()
  249. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  250. ~LeaveDefaultTypeInternal() {}
  251. union {
  252. Leave _instance;
  253. };
  254. };
  255. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  256. constexpr Close::Close(
  257. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  258. : peer_(0)
  259. , egotype_(0)
  260. , index_(0){}
  261. struct CloseDefaultTypeInternal {
  262. constexpr CloseDefaultTypeInternal()
  263. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  264. ~CloseDefaultTypeInternal() {}
  265. union {
  266. Close _instance;
  267. };
  268. };
  269. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloseDefaultTypeInternal _Close_default_instance_;
  270. constexpr TestTextReq::TestTextReq(
  271. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  272. : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  273. struct TestTextReqDefaultTypeInternal {
  274. constexpr TestTextReqDefaultTypeInternal()
  275. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  276. ~TestTextReqDefaultTypeInternal() {}
  277. union {
  278. TestTextReq _instance;
  279. };
  280. };
  281. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TestTextReqDefaultTypeInternal _TestTextReq_default_instance_;
  282. constexpr CanMessage::CanMessage(
  283. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  284. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  285. , head_(0)
  286. , canid_(0){}
  287. struct CanMessageDefaultTypeInternal {
  288. constexpr CanMessageDefaultTypeInternal()
  289. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  290. ~CanMessageDefaultTypeInternal() {}
  291. union {
  292. CanMessage _instance;
  293. };
  294. };
  295. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CanMessageDefaultTypeInternal _CanMessage_default_instance_;
  296. constexpr CCCanMesage::CCCanMesage(
  297. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  298. : message_()
  299. , islidar_(false){}
  300. struct CCCanMesageDefaultTypeInternal {
  301. constexpr CCCanMesageDefaultTypeInternal()
  302. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  303. ~CCCanMesageDefaultTypeInternal() {}
  304. union {
  305. CCCanMesage _instance;
  306. };
  307. };
  308. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMesageDefaultTypeInternal _CCCanMesage_default_instance_;
  309. constexpr Wiper::Wiper(
  310. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  311. : ret_(false){}
  312. struct WiperDefaultTypeInternal {
  313. constexpr WiperDefaultTypeInternal()
  314. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  315. ~WiperDefaultTypeInternal() {}
  316. union {
  317. Wiper _instance;
  318. };
  319. };
  320. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WiperDefaultTypeInternal _Wiper_default_instance_;
  321. constexpr FrontLight::FrontLight(
  322. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  323. : ret_(false){}
  324. struct FrontLightDefaultTypeInternal {
  325. constexpr FrontLightDefaultTypeInternal()
  326. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  327. ~FrontLightDefaultTypeInternal() {}
  328. union {
  329. FrontLight _instance;
  330. };
  331. };
  332. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FrontLightDefaultTypeInternal _FrontLight_default_instance_;
  333. constexpr BackLight::BackLight(
  334. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  335. : ret_(false){}
  336. struct BackLightDefaultTypeInternal {
  337. constexpr BackLightDefaultTypeInternal()
  338. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  339. ~BackLightDefaultTypeInternal() {}
  340. union {
  341. BackLight _instance;
  342. };
  343. };
  344. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BackLightDefaultTypeInternal _BackLight_default_instance_;
  345. constexpr CCAskDataChannel::CCAskDataChannel(
  346. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  347. struct CCAskDataChannelDefaultTypeInternal {
  348. constexpr CCAskDataChannelDefaultTypeInternal()
  349. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  350. ~CCAskDataChannelDefaultTypeInternal() {}
  351. union {
  352. CCAskDataChannel _instance;
  353. };
  354. };
  355. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCAskDataChannelDefaultTypeInternal _CCAskDataChannel_default_instance_;
  356. constexpr IMuMessage::IMuMessage(
  357. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  358. : rx_(0)
  359. , ry_(0){}
  360. struct IMuMessageDefaultTypeInternal {
  361. constexpr IMuMessageDefaultTypeInternal()
  362. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  363. ~IMuMessageDefaultTypeInternal() {}
  364. union {
  365. IMuMessage _instance;
  366. };
  367. };
  368. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IMuMessageDefaultTypeInternal _IMuMessage_default_instance_;
  369. constexpr CCPing::CCPing(
  370. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  371. : tick_(int64_t{0}){}
  372. struct CCPingDefaultTypeInternal {
  373. constexpr CCPingDefaultTypeInternal()
  374. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  375. ~CCPingDefaultTypeInternal() {}
  376. union {
  377. CCPing _instance;
  378. };
  379. };
  380. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCPingDefaultTypeInternal _CCPing_default_instance_;
  381. constexpr CCRadarMessage::CCRadarMessage(
  382. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  383. : radar0_(0)
  384. , radar1_(0)
  385. , radar2_(0)
  386. , radar3_(0)
  387. , radar4_(0)
  388. , radar5_(0)
  389. , radar6_(0)
  390. , radar7_(0){}
  391. struct CCRadarMessageDefaultTypeInternal {
  392. constexpr CCRadarMessageDefaultTypeInternal()
  393. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  394. ~CCRadarMessageDefaultTypeInternal() {}
  395. union {
  396. CCRadarMessage _instance;
  397. };
  398. };
  399. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRadarMessageDefaultTypeInternal _CCRadarMessage_default_instance_;
  400. constexpr CCRobotAnalog::CCRobotAnalog(
  401. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  402. : steer_(0)
  403. , arm_(0)
  404. , bucket_(0)
  405. , throttle_(0)
  406. , brake_(0)
  407. , gears_(0)
  408. , emergency_(false)
  409. , resume_(false)
  410. , frontlight_(false)
  411. , backlight_(false)
  412. , directionlight_(0)
  413. , wipe_(false)
  414. , buzzer_(false)
  415. , gears_d_(0)
  416. {}
  417. struct CCRobotAnalogDefaultTypeInternal {
  418. constexpr CCRobotAnalogDefaultTypeInternal()
  419. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  420. ~CCRobotAnalogDefaultTypeInternal() {}
  421. union {
  422. CCRobotAnalog _instance;
  423. };
  424. };
  425. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCRobotAnalogDefaultTypeInternal _CCRobotAnalog_default_instance_;
  426. constexpr CCBootStrapReq::CCBootStrapReq(
  427. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  428. struct CCBootStrapReqDefaultTypeInternal {
  429. constexpr CCBootStrapReqDefaultTypeInternal()
  430. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  431. ~CCBootStrapReqDefaultTypeInternal() {}
  432. union {
  433. CCBootStrapReq _instance;
  434. };
  435. };
  436. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBootStrapReqDefaultTypeInternal _CCBootStrapReq_default_instance_;
  437. constexpr CCBooStrapRep::CCBooStrapRep(
  438. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  439. : ret_(false){}
  440. struct CCBooStrapRepDefaultTypeInternal {
  441. constexpr CCBooStrapRepDefaultTypeInternal()
  442. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  443. ~CCBooStrapRepDefaultTypeInternal() {}
  444. union {
  445. CCBooStrapRep _instance;
  446. };
  447. };
  448. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCBooStrapRepDefaultTypeInternal _CCBooStrapRep_default_instance_;
  449. constexpr CCStartupReq::CCStartupReq(
  450. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  451. struct CCStartupReqDefaultTypeInternal {
  452. constexpr CCStartupReqDefaultTypeInternal()
  453. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  454. ~CCStartupReqDefaultTypeInternal() {}
  455. union {
  456. CCStartupReq _instance;
  457. };
  458. };
  459. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupReqDefaultTypeInternal _CCStartupReq_default_instance_;
  460. constexpr CCStartupRep::CCStartupRep(
  461. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  462. : ret_(false){}
  463. struct CCStartupRepDefaultTypeInternal {
  464. constexpr CCStartupRepDefaultTypeInternal()
  465. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  466. ~CCStartupRepDefaultTypeInternal() {}
  467. union {
  468. CCStartupRep _instance;
  469. };
  470. };
  471. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCStartupRepDefaultTypeInternal _CCStartupRep_default_instance_;
  472. constexpr CCSwitch::CCSwitch(
  473. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  474. : front_(false){}
  475. struct CCSwitchDefaultTypeInternal {
  476. constexpr CCSwitchDefaultTypeInternal()
  477. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  478. ~CCSwitchDefaultTypeInternal() {}
  479. union {
  480. CCSwitch _instance;
  481. };
  482. };
  483. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCSwitchDefaultTypeInternal _CCSwitch_default_instance_;
  484. constexpr LidarPoint::LidarPoint(
  485. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  486. : data_()
  487. , frame_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  488. , timestamp_(0)
  489. , seq_(0u)
  490. , height_(0u)
  491. , width_(0u)
  492. , is_dense_(false)
  493. , is_left_(false){}
  494. struct LidarPointDefaultTypeInternal {
  495. constexpr LidarPointDefaultTypeInternal()
  496. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  497. ~LidarPointDefaultTypeInternal() {}
  498. union {
  499. LidarPoint _instance;
  500. };
  501. };
  502. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LidarPointDefaultTypeInternal _LidarPoint_default_instance_;
  503. constexpr SensorStop::SensorStop(
  504. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  505. struct SensorStopDefaultTypeInternal {
  506. constexpr SensorStopDefaultTypeInternal()
  507. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  508. ~SensorStopDefaultTypeInternal() {}
  509. union {
  510. SensorStop _instance;
  511. };
  512. };
  513. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SensorStopDefaultTypeInternal _SensorStop_default_instance_;
  514. constexpr StopAck::StopAck(
  515. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  516. struct StopAckDefaultTypeInternal {
  517. constexpr StopAckDefaultTypeInternal()
  518. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  519. ~StopAckDefaultTypeInternal() {}
  520. union {
  521. StopAck _instance;
  522. };
  523. };
  524. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StopAckDefaultTypeInternal _StopAck_default_instance_;
  525. constexpr CCManipulation::CCManipulation(
  526. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  527. : sensor_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  528. , car_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
  529. struct CCManipulationDefaultTypeInternal {
  530. constexpr CCManipulationDefaultTypeInternal()
  531. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  532. ~CCManipulationDefaultTypeInternal() {}
  533. union {
  534. CCManipulation _instance;
  535. };
  536. };
  537. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCManipulationDefaultTypeInternal _CCManipulation_default_instance_;
  538. constexpr SCAddRobot::SCAddRobot(
  539. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  540. : robot_(nullptr){}
  541. struct SCAddRobotDefaultTypeInternal {
  542. constexpr SCAddRobotDefaultTypeInternal()
  543. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  544. ~SCAddRobotDefaultTypeInternal() {}
  545. union {
  546. SCAddRobot _instance;
  547. };
  548. };
  549. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  550. constexpr SCDelRobot::SCDelRobot(
  551. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  552. : peer_(0)
  553. , egotype_(0){}
  554. struct SCDelRobotDefaultTypeInternal {
  555. constexpr SCDelRobotDefaultTypeInternal()
  556. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  557. ~SCDelRobotDefaultTypeInternal() {}
  558. union {
  559. SCDelRobot _instance;
  560. };
  561. };
  562. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  563. constexpr State::State(
  564. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  565. : error_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  566. , all_buff_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  567. , engine_speed_(0)
  568. , travel_speed_(0)
  569. , fuel_level_(0)
  570. , engine_temperature_(0)
  571. , hydraulic_oil_temperature_(0)
  572. , main_pump_1_pressure_(0)
  573. , main_pump_2_pressure_(0)
  574. , hand_gear_(0)
  575. , actual_gear_(0)
  576. , gripper_height_(0)
  577. , amplitude_(0)
  578. , boom_angle_(0)
  579. , stick_angle_(0)
  580. , idle_protection_(0)
  581. , front_toggle_(0)
  582. , back_toggle_(0)
  583. , interlock_(0)
  584. , safety_switch_(0)
  585. , arm_lift_pilot_(0)
  586. , arm_lowering_pilot_(0)
  587. , lever_lifting_pilot_(0)
  588. , rod_lowering_pilot_(0)
  589. , left_rotary_pilot_(0)
  590. , right_rotary_pilot_(0)
  591. , grab_open_pilot_(0)
  592. , grab_close_pilot_(0)
  593. , safety_valves_(0)
  594. , function_code_(0)
  595. , main_add_(0)
  596. , sub_add_(0)
  597. , paramter_(0)
  598. , engine_spn_(0)
  599. , engine_fmi_(0)
  600. , engine_num_(0){}
  601. struct StateDefaultTypeInternal {
  602. constexpr StateDefaultTypeInternal()
  603. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  604. ~StateDefaultTypeInternal() {}
  605. union {
  606. State _instance;
  607. };
  608. };
  609. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StateDefaultTypeInternal _State_default_instance_;
  610. constexpr can_net_frame::can_net_frame(
  611. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  612. : data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  613. , dlc_(0)
  614. , canid_(0){}
  615. struct can_net_frameDefaultTypeInternal {
  616. constexpr can_net_frameDefaultTypeInternal()
  617. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  618. ~can_net_frameDefaultTypeInternal() {}
  619. union {
  620. can_net_frame _instance;
  621. };
  622. };
  623. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT can_net_frameDefaultTypeInternal _can_net_frame_default_instance_;
  624. constexpr CCCanMsg::CCCanMsg(
  625. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  626. : frams_(){}
  627. struct CCCanMsgDefaultTypeInternal {
  628. constexpr CCCanMsgDefaultTypeInternal()
  629. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  630. ~CCCanMsgDefaultTypeInternal() {}
  631. union {
  632. CCCanMsg _instance;
  633. };
  634. };
  635. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CCCanMsgDefaultTypeInternal _CCCanMsg_default_instance_;
  636. } // namespace RemoNet
  637. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protocol_2eproto[43];
  638. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protocol_2eproto[8];
  639. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protocol_2eproto = nullptr;
  640. const uint32_t TableStruct_protocol_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  641. ~0u, // no _has_bits_
  642. PROTOBUF_FIELD_OFFSET(::RemoNet::UserActivityInfo, _internal_metadata_),
  643. ~0u, // no _extensions_
  644. ~0u, // no _oneof_case_
  645. ~0u, // no _weak_field_map_
  646. ~0u, // no _inlined_string_donated_
  647. PROTOBUF_FIELD_OFFSET(::RemoNet::UserActivityInfo, user_uuid_),
  648. PROTOBUF_FIELD_OFFSET(::RemoNet::UserActivityInfo, cockpit_id_),
  649. PROTOBUF_FIELD_OFFSET(::RemoNet::UserActivityInfo, vehicle_id_),
  650. ~0u, // no _has_bits_
  651. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, _internal_metadata_),
  652. ~0u, // no _extensions_
  653. ~0u, // no _oneof_case_
  654. ~0u, // no _weak_field_map_
  655. ~0u, // no _inlined_string_donated_
  656. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, serial_),
  657. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, type_),
  658. PROTOBUF_FIELD_OFFSET(::RemoNet::CSAdd, name_),
  659. ~0u, // no _has_bits_
  660. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, _internal_metadata_),
  661. ~0u, // no _extensions_
  662. ~0u, // no _oneof_case_
  663. ~0u, // no _weak_field_map_
  664. ~0u, // no _inlined_string_donated_
  665. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, ret_),
  666. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, uid_),
  667. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, cid_),
  668. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAdd, name_),
  669. ~0u, // no _has_bits_
  670. PROTOBUF_FIELD_OFFSET(::RemoNet::SCKickOff, _internal_metadata_),
  671. ~0u, // no _extensions_
  672. ~0u, // no _oneof_case_
  673. ~0u, // no _weak_field_map_
  674. ~0u, // no _inlined_string_donated_
  675. ~0u, // no _has_bits_
  676. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, _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::Robot, rid_),
  682. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, name_),
  683. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, type_),
  684. PROTOBUF_FIELD_OFFSET(::RemoNet::Robot, state_),
  685. ~0u, // no _has_bits_
  686. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRobot, _internal_metadata_),
  687. ~0u, // no _extensions_
  688. ~0u, // no _oneof_case_
  689. ~0u, // no _weak_field_map_
  690. ~0u, // no _inlined_string_donated_
  691. ~0u, // no _has_bits_
  692. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, _internal_metadata_),
  693. ~0u, // no _extensions_
  694. ~0u, // no _oneof_case_
  695. ~0u, // no _weak_field_map_
  696. ~0u, // no _inlined_string_donated_
  697. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRobot, robot_),
  698. ~0u, // no _has_bits_
  699. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, _internal_metadata_),
  700. ~0u, // no _extensions_
  701. ~0u, // no _oneof_case_
  702. ~0u, // no _weak_field_map_
  703. ~0u, // no _inlined_string_donated_
  704. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, account_),
  705. PROTOBUF_FIELD_OFFSET(::RemoNet::CSSign, password_),
  706. ~0u, // no _has_bits_
  707. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, _internal_metadata_),
  708. ~0u, // no _extensions_
  709. ~0u, // no _oneof_case_
  710. ~0u, // no _weak_field_map_
  711. ~0u, // no _inlined_string_donated_
  712. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, ret_),
  713. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, uid_),
  714. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, cid_),
  715. PROTOBUF_FIELD_OFFSET(::RemoNet::SCSign, name_),
  716. ~0u, // no _has_bits_
  717. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, _internal_metadata_),
  718. ~0u, // no _extensions_
  719. ~0u, // no _oneof_case_
  720. ~0u, // no _weak_field_map_
  721. ~0u, // no _inlined_string_donated_
  722. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, peer_),
  723. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, index_),
  724. PROTOBUF_FIELD_OFFSET(::RemoNet::CSReq, egotype_),
  725. ~0u, // no _has_bits_
  726. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, _internal_metadata_),
  727. ~0u, // no _extensions_
  728. ~0u, // no _oneof_case_
  729. ~0u, // no _weak_field_map_
  730. ~0u, // no _inlined_string_donated_
  731. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, desc_),
  732. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, peer_),
  733. PROTOBUF_FIELD_OFFSET(::RemoNet::SCReq, egotype_),
  734. ~0u, // no _has_bits_
  735. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, _internal_metadata_),
  736. ~0u, // no _extensions_
  737. ~0u, // no _oneof_case_
  738. ~0u, // no _weak_field_map_
  739. ~0u, // no _inlined_string_donated_
  740. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, desc_),
  741. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, peer_),
  742. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, index_),
  743. PROTOBUF_FIELD_OFFSET(::RemoNet::CSRep, egotype_),
  744. ~0u, // no _has_bits_
  745. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, _internal_metadata_),
  746. ~0u, // no _extensions_
  747. ~0u, // no _oneof_case_
  748. ~0u, // no _weak_field_map_
  749. ~0u, // no _inlined_string_donated_
  750. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, desc_),
  751. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, index_),
  752. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, egotype_),
  753. PROTOBUF_FIELD_OFFSET(::RemoNet::SCRep, peer_),
  754. ~0u, // no _has_bits_
  755. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, _internal_metadata_),
  756. ~0u, // no _extensions_
  757. ~0u, // no _oneof_case_
  758. ~0u, // no _weak_field_map_
  759. ~0u, // no _inlined_string_donated_
  760. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, index_),
  761. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, peer_),
  762. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, type_),
  763. PROTOBUF_FIELD_OFFSET(::RemoNet::Offer, sdp_),
  764. ~0u, // no _has_bits_
  765. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, _internal_metadata_),
  766. ~0u, // no _extensions_
  767. ~0u, // no _oneof_case_
  768. ~0u, // no _weak_field_map_
  769. ~0u, // no _inlined_string_donated_
  770. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, index_),
  771. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, peer_),
  772. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, type_),
  773. PROTOBUF_FIELD_OFFSET(::RemoNet::Answer, sdp_),
  774. ~0u, // no _has_bits_
  775. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, _internal_metadata_),
  776. ~0u, // no _extensions_
  777. ~0u, // no _oneof_case_
  778. ~0u, // no _weak_field_map_
  779. ~0u, // no _inlined_string_donated_
  780. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, index_),
  781. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, peer_),
  782. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, type_),
  783. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, candidate_),
  784. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmlineindex_),
  785. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, sdpmid_),
  786. PROTOBUF_FIELD_OFFSET(::RemoNet::Candidate, egotype_),
  787. ~0u, // no _has_bits_
  788. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, _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::Leave, peer_),
  794. PROTOBUF_FIELD_OFFSET(::RemoNet::Leave, egotype_),
  795. ~0u, // no _has_bits_
  796. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, _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::Close, peer_),
  802. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, egotype_),
  803. PROTOBUF_FIELD_OFFSET(::RemoNet::Close, index_),
  804. ~0u, // no _has_bits_
  805. PROTOBUF_FIELD_OFFSET(::RemoNet::TestTextReq, _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::TestTextReq, text_),
  811. ~0u, // no _has_bits_
  812. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, _internal_metadata_),
  813. ~0u, // no _extensions_
  814. ~0u, // no _oneof_case_
  815. ~0u, // no _weak_field_map_
  816. ~0u, // no _inlined_string_donated_
  817. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, head_),
  818. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, canid_),
  819. PROTOBUF_FIELD_OFFSET(::RemoNet::CanMessage, data_),
  820. ~0u, // no _has_bits_
  821. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, _internal_metadata_),
  822. ~0u, // no _extensions_
  823. ~0u, // no _oneof_case_
  824. ~0u, // no _weak_field_map_
  825. ~0u, // no _inlined_string_donated_
  826. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, islidar_),
  827. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMesage, message_),
  828. ~0u, // no _has_bits_
  829. PROTOBUF_FIELD_OFFSET(::RemoNet::Wiper, _internal_metadata_),
  830. ~0u, // no _extensions_
  831. ~0u, // no _oneof_case_
  832. ~0u, // no _weak_field_map_
  833. ~0u, // no _inlined_string_donated_
  834. PROTOBUF_FIELD_OFFSET(::RemoNet::Wiper, ret_),
  835. ~0u, // no _has_bits_
  836. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, _internal_metadata_),
  837. ~0u, // no _extensions_
  838. ~0u, // no _oneof_case_
  839. ~0u, // no _weak_field_map_
  840. ~0u, // no _inlined_string_donated_
  841. PROTOBUF_FIELD_OFFSET(::RemoNet::FrontLight, ret_),
  842. ~0u, // no _has_bits_
  843. PROTOBUF_FIELD_OFFSET(::RemoNet::BackLight, _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::BackLight, ret_),
  849. ~0u, // no _has_bits_
  850. PROTOBUF_FIELD_OFFSET(::RemoNet::CCAskDataChannel, _internal_metadata_),
  851. ~0u, // no _extensions_
  852. ~0u, // no _oneof_case_
  853. ~0u, // no _weak_field_map_
  854. ~0u, // no _inlined_string_donated_
  855. ~0u, // no _has_bits_
  856. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, _internal_metadata_),
  857. ~0u, // no _extensions_
  858. ~0u, // no _oneof_case_
  859. ~0u, // no _weak_field_map_
  860. ~0u, // no _inlined_string_donated_
  861. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, rx_),
  862. PROTOBUF_FIELD_OFFSET(::RemoNet::IMuMessage, ry_),
  863. ~0u, // no _has_bits_
  864. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, _internal_metadata_),
  865. ~0u, // no _extensions_
  866. ~0u, // no _oneof_case_
  867. ~0u, // no _weak_field_map_
  868. ~0u, // no _inlined_string_donated_
  869. PROTOBUF_FIELD_OFFSET(::RemoNet::CCPing, tick_),
  870. ~0u, // no _has_bits_
  871. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, _internal_metadata_),
  872. ~0u, // no _extensions_
  873. ~0u, // no _oneof_case_
  874. ~0u, // no _weak_field_map_
  875. ~0u, // no _inlined_string_donated_
  876. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar0_),
  877. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar1_),
  878. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar2_),
  879. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar3_),
  880. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar4_),
  881. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar5_),
  882. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar6_),
  883. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRadarMessage, radar7_),
  884. ~0u, // no _has_bits_
  885. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, _internal_metadata_),
  886. ~0u, // no _extensions_
  887. ~0u, // no _oneof_case_
  888. ~0u, // no _weak_field_map_
  889. ~0u, // no _inlined_string_donated_
  890. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, steer_),
  891. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, arm_),
  892. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, bucket_),
  893. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, throttle_),
  894. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, brake_),
  895. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, emergency_),
  896. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, resume_),
  897. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, gears_),
  898. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, frontlight_),
  899. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, backlight_),
  900. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, wipe_),
  901. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, directionlight_),
  902. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, buzzer_),
  903. PROTOBUF_FIELD_OFFSET(::RemoNet::CCRobotAnalog, gears_d_),
  904. ~0u, // no _has_bits_
  905. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBootStrapReq, _internal_metadata_),
  906. ~0u, // no _extensions_
  907. ~0u, // no _oneof_case_
  908. ~0u, // no _weak_field_map_
  909. ~0u, // no _inlined_string_donated_
  910. ~0u, // no _has_bits_
  911. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, _internal_metadata_),
  912. ~0u, // no _extensions_
  913. ~0u, // no _oneof_case_
  914. ~0u, // no _weak_field_map_
  915. ~0u, // no _inlined_string_donated_
  916. PROTOBUF_FIELD_OFFSET(::RemoNet::CCBooStrapRep, ret_),
  917. ~0u, // no _has_bits_
  918. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupReq, _internal_metadata_),
  919. ~0u, // no _extensions_
  920. ~0u, // no _oneof_case_
  921. ~0u, // no _weak_field_map_
  922. ~0u, // no _inlined_string_donated_
  923. ~0u, // no _has_bits_
  924. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, _internal_metadata_),
  925. ~0u, // no _extensions_
  926. ~0u, // no _oneof_case_
  927. ~0u, // no _weak_field_map_
  928. ~0u, // no _inlined_string_donated_
  929. PROTOBUF_FIELD_OFFSET(::RemoNet::CCStartupRep, ret_),
  930. ~0u, // no _has_bits_
  931. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, _internal_metadata_),
  932. ~0u, // no _extensions_
  933. ~0u, // no _oneof_case_
  934. ~0u, // no _weak_field_map_
  935. ~0u, // no _inlined_string_donated_
  936. PROTOBUF_FIELD_OFFSET(::RemoNet::CCSwitch, front_),
  937. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _has_bits_),
  938. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, _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::LidarPoint, timestamp_),
  944. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, seq_),
  945. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, frame_id_),
  946. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, height_),
  947. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, width_),
  948. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_dense_),
  949. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, is_left_),
  950. PROTOBUF_FIELD_OFFSET(::RemoNet::LidarPoint, data_),
  951. 1,
  952. 2,
  953. 0,
  954. 3,
  955. 4,
  956. 5,
  957. 6,
  958. ~0u,
  959. ~0u, // no _has_bits_
  960. PROTOBUF_FIELD_OFFSET(::RemoNet::SensorStop, _internal_metadata_),
  961. ~0u, // no _extensions_
  962. ~0u, // no _oneof_case_
  963. ~0u, // no _weak_field_map_
  964. ~0u, // no _inlined_string_donated_
  965. ~0u, // no _has_bits_
  966. PROTOBUF_FIELD_OFFSET(::RemoNet::StopAck, _internal_metadata_),
  967. ~0u, // no _extensions_
  968. ~0u, // no _oneof_case_
  969. ~0u, // no _weak_field_map_
  970. ~0u, // no _inlined_string_donated_
  971. ~0u, // no _has_bits_
  972. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, _internal_metadata_),
  973. ~0u, // no _extensions_
  974. ~0u, // no _oneof_case_
  975. ~0u, // no _weak_field_map_
  976. ~0u, // no _inlined_string_donated_
  977. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, sensor_),
  978. PROTOBUF_FIELD_OFFSET(::RemoNet::CCManipulation, car_),
  979. ~0u, // no _has_bits_
  980. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, _internal_metadata_),
  981. ~0u, // no _extensions_
  982. ~0u, // no _oneof_case_
  983. ~0u, // no _weak_field_map_
  984. ~0u, // no _inlined_string_donated_
  985. PROTOBUF_FIELD_OFFSET(::RemoNet::SCAddRobot, robot_),
  986. ~0u, // no _has_bits_
  987. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, _internal_metadata_),
  988. ~0u, // no _extensions_
  989. ~0u, // no _oneof_case_
  990. ~0u, // no _weak_field_map_
  991. ~0u, // no _inlined_string_donated_
  992. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, peer_),
  993. PROTOBUF_FIELD_OFFSET(::RemoNet::SCDelRobot, egotype_),
  994. ~0u, // no _has_bits_
  995. PROTOBUF_FIELD_OFFSET(::RemoNet::State, _internal_metadata_),
  996. ~0u, // no _extensions_
  997. ~0u, // no _oneof_case_
  998. ~0u, // no _weak_field_map_
  999. ~0u, // no _inlined_string_donated_
  1000. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_speed_),
  1001. PROTOBUF_FIELD_OFFSET(::RemoNet::State, travel_speed_),
  1002. PROTOBUF_FIELD_OFFSET(::RemoNet::State, fuel_level_),
  1003. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_temperature_),
  1004. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hydraulic_oil_temperature_),
  1005. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_1_pressure_),
  1006. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_pump_2_pressure_),
  1007. PROTOBUF_FIELD_OFFSET(::RemoNet::State, hand_gear_),
  1008. PROTOBUF_FIELD_OFFSET(::RemoNet::State, actual_gear_),
  1009. PROTOBUF_FIELD_OFFSET(::RemoNet::State, gripper_height_),
  1010. PROTOBUF_FIELD_OFFSET(::RemoNet::State, amplitude_),
  1011. PROTOBUF_FIELD_OFFSET(::RemoNet::State, boom_angle_),
  1012. PROTOBUF_FIELD_OFFSET(::RemoNet::State, stick_angle_),
  1013. PROTOBUF_FIELD_OFFSET(::RemoNet::State, idle_protection_),
  1014. PROTOBUF_FIELD_OFFSET(::RemoNet::State, front_toggle_),
  1015. PROTOBUF_FIELD_OFFSET(::RemoNet::State, back_toggle_),
  1016. PROTOBUF_FIELD_OFFSET(::RemoNet::State, error_buff_),
  1017. PROTOBUF_FIELD_OFFSET(::RemoNet::State, interlock_),
  1018. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_switch_),
  1019. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lift_pilot_),
  1020. PROTOBUF_FIELD_OFFSET(::RemoNet::State, arm_lowering_pilot_),
  1021. PROTOBUF_FIELD_OFFSET(::RemoNet::State, lever_lifting_pilot_),
  1022. PROTOBUF_FIELD_OFFSET(::RemoNet::State, rod_lowering_pilot_),
  1023. PROTOBUF_FIELD_OFFSET(::RemoNet::State, left_rotary_pilot_),
  1024. PROTOBUF_FIELD_OFFSET(::RemoNet::State, right_rotary_pilot_),
  1025. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_open_pilot_),
  1026. PROTOBUF_FIELD_OFFSET(::RemoNet::State, grab_close_pilot_),
  1027. PROTOBUF_FIELD_OFFSET(::RemoNet::State, safety_valves_),
  1028. PROTOBUF_FIELD_OFFSET(::RemoNet::State, function_code_),
  1029. PROTOBUF_FIELD_OFFSET(::RemoNet::State, main_add_),
  1030. PROTOBUF_FIELD_OFFSET(::RemoNet::State, sub_add_),
  1031. PROTOBUF_FIELD_OFFSET(::RemoNet::State, paramter_),
  1032. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_spn_),
  1033. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_fmi_),
  1034. PROTOBUF_FIELD_OFFSET(::RemoNet::State, engine_num_),
  1035. PROTOBUF_FIELD_OFFSET(::RemoNet::State, all_buff_),
  1036. ~0u, // no _has_bits_
  1037. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, _internal_metadata_),
  1038. ~0u, // no _extensions_
  1039. ~0u, // no _oneof_case_
  1040. ~0u, // no _weak_field_map_
  1041. ~0u, // no _inlined_string_donated_
  1042. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, dlc_),
  1043. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, canid_),
  1044. PROTOBUF_FIELD_OFFSET(::RemoNet::can_net_frame, data_),
  1045. ~0u, // no _has_bits_
  1046. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, _internal_metadata_),
  1047. ~0u, // no _extensions_
  1048. ~0u, // no _oneof_case_
  1049. ~0u, // no _weak_field_map_
  1050. ~0u, // no _inlined_string_donated_
  1051. PROTOBUF_FIELD_OFFSET(::RemoNet::CCCanMsg, frams_),
  1052. };
  1053. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  1054. { 0, -1, -1, sizeof(::RemoNet::UserActivityInfo)},
  1055. { 9, -1, -1, sizeof(::RemoNet::CSAdd)},
  1056. { 18, -1, -1, sizeof(::RemoNet::SCAdd)},
  1057. { 28, -1, -1, sizeof(::RemoNet::SCKickOff)},
  1058. { 34, -1, -1, sizeof(::RemoNet::Robot)},
  1059. { 44, -1, -1, sizeof(::RemoNet::CSRobot)},
  1060. { 50, -1, -1, sizeof(::RemoNet::SCRobot)},
  1061. { 57, -1, -1, sizeof(::RemoNet::CSSign)},
  1062. { 65, -1, -1, sizeof(::RemoNet::SCSign)},
  1063. { 75, -1, -1, sizeof(::RemoNet::CSReq)},
  1064. { 84, -1, -1, sizeof(::RemoNet::SCReq)},
  1065. { 93, -1, -1, sizeof(::RemoNet::CSRep)},
  1066. { 103, -1, -1, sizeof(::RemoNet::SCRep)},
  1067. { 113, -1, -1, sizeof(::RemoNet::Offer)},
  1068. { 123, -1, -1, sizeof(::RemoNet::Answer)},
  1069. { 133, -1, -1, sizeof(::RemoNet::Candidate)},
  1070. { 146, -1, -1, sizeof(::RemoNet::Leave)},
  1071. { 154, -1, -1, sizeof(::RemoNet::Close)},
  1072. { 163, -1, -1, sizeof(::RemoNet::TestTextReq)},
  1073. { 170, -1, -1, sizeof(::RemoNet::CanMessage)},
  1074. { 179, -1, -1, sizeof(::RemoNet::CCCanMesage)},
  1075. { 187, -1, -1, sizeof(::RemoNet::Wiper)},
  1076. { 194, -1, -1, sizeof(::RemoNet::FrontLight)},
  1077. { 201, -1, -1, sizeof(::RemoNet::BackLight)},
  1078. { 208, -1, -1, sizeof(::RemoNet::CCAskDataChannel)},
  1079. { 214, -1, -1, sizeof(::RemoNet::IMuMessage)},
  1080. { 222, -1, -1, sizeof(::RemoNet::CCPing)},
  1081. { 229, -1, -1, sizeof(::RemoNet::CCRadarMessage)},
  1082. { 243, -1, -1, sizeof(::RemoNet::CCRobotAnalog)},
  1083. { 263, -1, -1, sizeof(::RemoNet::CCBootStrapReq)},
  1084. { 269, -1, -1, sizeof(::RemoNet::CCBooStrapRep)},
  1085. { 276, -1, -1, sizeof(::RemoNet::CCStartupReq)},
  1086. { 282, -1, -1, sizeof(::RemoNet::CCStartupRep)},
  1087. { 289, -1, -1, sizeof(::RemoNet::CCSwitch)},
  1088. { 296, 310, -1, sizeof(::RemoNet::LidarPoint)},
  1089. { 318, -1, -1, sizeof(::RemoNet::SensorStop)},
  1090. { 324, -1, -1, sizeof(::RemoNet::StopAck)},
  1091. { 330, -1, -1, sizeof(::RemoNet::CCManipulation)},
  1092. { 338, -1, -1, sizeof(::RemoNet::SCAddRobot)},
  1093. { 345, -1, -1, sizeof(::RemoNet::SCDelRobot)},
  1094. { 353, -1, -1, sizeof(::RemoNet::State)},
  1095. { 395, -1, -1, sizeof(::RemoNet::can_net_frame)},
  1096. { 404, -1, -1, sizeof(::RemoNet::CCCanMsg)},
  1097. };
  1098. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  1099. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_UserActivityInfo_default_instance_),
  1100. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSAdd_default_instance_),
  1101. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAdd_default_instance_),
  1102. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCKickOff_default_instance_),
  1103. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Robot_default_instance_),
  1104. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRobot_default_instance_),
  1105. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRobot_default_instance_),
  1106. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSSign_default_instance_),
  1107. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCSign_default_instance_),
  1108. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSReq_default_instance_),
  1109. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCReq_default_instance_),
  1110. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CSRep_default_instance_),
  1111. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCRep_default_instance_),
  1112. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Offer_default_instance_),
  1113. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Answer_default_instance_),
  1114. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Candidate_default_instance_),
  1115. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Leave_default_instance_),
  1116. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Close_default_instance_),
  1117. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_TestTextReq_default_instance_),
  1118. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CanMessage_default_instance_),
  1119. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMesage_default_instance_),
  1120. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_Wiper_default_instance_),
  1121. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_FrontLight_default_instance_),
  1122. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_BackLight_default_instance_),
  1123. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCAskDataChannel_default_instance_),
  1124. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_IMuMessage_default_instance_),
  1125. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCPing_default_instance_),
  1126. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRadarMessage_default_instance_),
  1127. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCRobotAnalog_default_instance_),
  1128. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBootStrapReq_default_instance_),
  1129. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCBooStrapRep_default_instance_),
  1130. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupReq_default_instance_),
  1131. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCStartupRep_default_instance_),
  1132. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCSwitch_default_instance_),
  1133. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_LidarPoint_default_instance_),
  1134. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SensorStop_default_instance_),
  1135. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_StopAck_default_instance_),
  1136. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCManipulation_default_instance_),
  1137. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCAddRobot_default_instance_),
  1138. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_SCDelRobot_default_instance_),
  1139. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_State_default_instance_),
  1140. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_can_net_frame_default_instance_),
  1141. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::RemoNet::_CCCanMsg_default_instance_),
  1142. };
  1143. const char descriptor_table_protodef_protocol_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  1144. "\n\016protocol.proto\022\007RemoNet\"M\n\020UserActivit"
  1145. "yInfo\022\021\n\tuser_uuid\030\001 \001(\t\022\022\n\ncockpit_id\030\002"
  1146. " \001(\005\022\022\n\nvehicle_id\030\003 \001(\005\"3\n\005CSAdd\022\016\n\006ser"
  1147. "ial\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"<\n"
  1148. "\005SCAdd\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid\030"
  1149. "\003 \001(\005\022\014\n\004name\030\004 \001(\t\"\013\n\tSCKickOff\"\213\001\n\005Rob"
  1150. "ot\022\013\n\003rid\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 "
  1151. "\001(\005\022(\n\005state\030\004 \001(\0162\031.RemoNet.Robot.Robot"
  1152. "State\"/\n\nRobotState\022\013\n\007Offline\020\000\022\n\n\006Onli"
  1153. "ne\020\001\022\010\n\004Busy\020\002\"\t\n\007CSRobot\"(\n\007SCRobot\022\035\n\005"
  1154. "robot\030\001 \003(\0132\016.RemoNet.Robot\"+\n\006CSSign\022\017\n"
  1155. "\007account\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"=\n\006SCSi"
  1156. "gn\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\013\n\003cid\030\003 \001("
  1157. "\005\022\014\n\004name\030\004 \001(\t\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022\r"
  1158. "\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"H\n\005SCReq\022"
  1159. " \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004pee"
  1160. "r\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"W\n\005CSRep\022 \n\004des"
  1161. "c\030\001 \001(\0162\022.RemoNet.VideoDesc\022\014\n\004peer\030\002 \001("
  1162. "\005\022\r\n\005index\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"W\n\005SCR"
  1163. "ep\022 \n\004desc\030\001 \001(\0162\022.RemoNet.VideoDesc\022\r\n\005"
  1164. "index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014\n\004peer\030\004 \001"
  1165. "(\005\"\?\n\005Offer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005"
  1166. "\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"@\n\006Answer\022\r\n"
  1167. "\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t"
  1168. "\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCandidate\022\r\n\005index\030\001 \001"
  1169. "(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\021\n\tcandid"
  1170. "ate\030\004 \001(\t\022\025\n\rsdpMLineIndex\030\005 \001(\005\022\016\n\006sdpM"
  1171. "id\030\006 \001(\t\022\017\n\007egotype\030\007 \001(\005\"&\n\005Leave\022\014\n\004pe"
  1172. "er\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"5\n\005Close\022\014\n\004pe"
  1173. "er\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\022\r\n\005index\030\003 \001(\005"
  1174. "\"\033\n\013TestTextReq\022\014\n\004text\030\001 \001(\t\"7\n\nCanMess"
  1175. "age\022\014\n\004head\030\001 \001(\005\022\r\n\005canid\030\002 \001(\005\022\014\n\004data"
  1176. "\030\003 \001(\014\"D\n\013CCCanMesage\022\017\n\007islidar\030\001 \001(\010\022$"
  1177. "\n\007message\030\002 \003(\0132\023.RemoNet.CanMessage\"\024\n\005"
  1178. "Wiper\022\013\n\003ret\030\001 \001(\010\"\031\n\nFrontLight\022\013\n\003ret\030"
  1179. "\001 \001(\010\"\030\n\tBackLight\022\013\n\003ret\030\001 \001(\010\"\022\n\020CCAsk"
  1180. "DataChannel\"$\n\nIMuMessage\022\n\n\002rx\030\001 \001(\002\022\n\n"
  1181. "\002ry\030\002 \001(\002\"\026\n\006CCPing\022\014\n\004tick\030\001 \001(\003\"\220\001\n\016CC"
  1182. "RadarMessage\022\016\n\006radar0\030\001 \001(\005\022\016\n\006radar1\030\002"
  1183. " \001(\005\022\016\n\006radar2\030\003 \001(\005\022\016\n\006radar3\030\004 \001(\005\022\016\n\006"
  1184. "radar4\030\005 \001(\005\022\016\n\006radar5\030\006 \001(\005\022\016\n\006radar6\030\007"
  1185. " \001(\005\022\016\n\006radar7\030\010 \001(\005\"\267\002\n\rCCRobotAnalog\022\r"
  1186. "\n\005steer\030\001 \001(\005\022\013\n\003arm\030\002 \001(\005\022\016\n\006bucket\030\003 \001"
  1187. "(\005\022\020\n\010throttle\030\004 \001(\005\022\r\n\005brake\030\005 \001(\005\022\021\n\te"
  1188. "mergency\030\010 \001(\010\022\016\n\006resume\030\t \001(\010\022\035\n\005gears\030"
  1189. "\n \001(\0162\016.RemoNet.Gears\022\022\n\nfrontlight\030\013 \001("
  1190. "\010\022\021\n\tbacklight\030\014 \001(\010\022\014\n\004wipe\030\r \001(\010\022/\n\016di"
  1191. "rectionlight\030\016 \001(\0162\027.RemoNet.DirectionLi"
  1192. "ght\022\016\n\006buzzer\030\017 \001(\010\022!\n\007gears_d\030\020 \001(\0162\020.R"
  1193. "emoNet.Gears_D\"\020\n\016CCBootStrapReq\"\034\n\rCCBo"
  1194. "oStrapRep\022\013\n\003ret\030\001 \001(\010\"\016\n\014CCStartupReq\"\033"
  1195. "\n\014CCStartupRep\022\013\n\003ret\030\001 \001(\010\"\031\n\010CCSwitch\022"
  1196. "\r\n\005front\030\001 \001(\010\"\202\002\n\nLidarPoint\022\026\n\ttimesta"
  1197. "mp\030\001 \001(\001H\000\210\001\001\022\020\n\003seq\030\002 \001(\rH\001\210\001\001\022\025\n\010frame"
  1198. "_id\030\003 \001(\tH\002\210\001\001\022\023\n\006height\030\004 \001(\rH\003\210\001\001\022\022\n\005w"
  1199. "idth\030\005 \001(\rH\004\210\001\001\022\025\n\010is_dense\030\006 \001(\010H\005\210\001\001\022\024"
  1200. "\n\007is_left\030\007 \001(\010H\006\210\001\001\022\014\n\004data\030\010 \003(\002B\014\n\n_t"
  1201. "imestampB\006\n\004_seqB\013\n\t_frame_idB\t\n\007_height"
  1202. "B\010\n\006_widthB\013\n\t_is_denseB\n\n\010_is_left\"\014\n\nS"
  1203. "ensorStop\"\t\n\007StopAck\"-\n\016CCManipulation\022\016"
  1204. "\n\006sensor\030\001 \001(\014\022\013\n\003car\030\002 \001(\014\"+\n\nSCAddRobo"
  1205. "t\022\035\n\005robot\030\001 \001(\0132\016.RemoNet.Robot\"+\n\nSCDe"
  1206. "lRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005\"\310\006"
  1207. "\n\005State\022\024\n\014engine_speed\030\001 \001(\005\022\024\n\014travel_"
  1208. "speed\030\002 \001(\005\022\022\n\nfuel_level\030\003 \001(\005\022\032\n\022engin"
  1209. "e_temperature\030\004 \001(\005\022!\n\031hydraulic_oil_tem"
  1210. "perature\030\005 \001(\005\022\034\n\024main_pump_1_pressure\030\006"
  1211. " \001(\005\022\034\n\024main_pump_2_pressure\030\007 \001(\005\022\021\n\tha"
  1212. "nd_gear\030\010 \001(\005\022\023\n\013actual_gear\030\t \001(\005\022\026\n\016gr"
  1213. "ipper_height\030\n \001(\002\022\021\n\tamplitude\030\013 \001(\002\022\022\n"
  1214. "\nboom_angle\030\014 \001(\005\022\023\n\013stick_angle\030\r \001(\005\022\027"
  1215. "\n\017idle_protection\030\016 \001(\005\022\024\n\014front_toggle\030"
  1216. "\017 \001(\005\022\023\n\013back_toggle\030\020 \001(\005\022\022\n\nerror_Buff"
  1217. "\030\021 \001(\014\022\021\n\tinterlock\030\022 \001(\005\022\025\n\rsafety_swit"
  1218. "ch\030\023 \001(\005\022\026\n\016arm_lift_pilot\030\024 \001(\005\022\032\n\022arm_"
  1219. "lowering_pilot\030\025 \001(\005\022\033\n\023lever_lifting_pi"
  1220. "lot\030\026 \001(\005\022\032\n\022rod_lowering_pilot\030\027 \001(\005\022\031\n"
  1221. "\021left_rotary_pilot\030\030 \001(\005\022\032\n\022right_rotary"
  1222. "_pilot\030\031 \001(\005\022\027\n\017grab_open_pilot\030\032 \001(\005\022\030\n"
  1223. "\020grab_close_pilot\030\033 \001(\005\022\025\n\rsafety_valves"
  1224. "\030\034 \001(\005\022\025\n\rfunction_code\030\035 \001(\005\022\020\n\010main_ad"
  1225. "d\030\036 \001(\005\022\017\n\007sub_add\030\037 \001(\005\022\020\n\010paramter\030 \001"
  1226. "(\005\022\022\n\nengine_spn\030! \001(\005\022\022\n\nengine_fmi\030\" \001"
  1227. "(\005\022\022\n\nengine_num\030# \001(\005\022\020\n\010all_Buff\030$ \001(\014"
  1228. "\"9\n\rcan_net_frame\022\013\n\003dlc\030\001 \001(\021\022\r\n\005canid\030"
  1229. "\002 \001(\005\022\014\n\004data\030\003 \001(\014\"1\n\010CCCanMsg\022%\n\005frams"
  1230. "\030\001 \003(\0132\026.RemoNet.can_net_frame*\346\001\n\tCSMes"
  1231. "sage\022\013\n\007CS_NONE\020\000\022\014\n\007CS_Sign\020\320\017\022\013\n\006CS_Re"
  1232. "q\020\321\017\022\013\n\006CS_Rep\020\322\017\022\021\n\014CS_CancelReq\020\323\017\022\r\n\010"
  1233. "CS_Offer\020\324\017\022\016\n\tCS_Answer\020\325\017\022\021\n\014CS_Candid"
  1234. "ate\020\326\017\022\r\n\010CS_Leave\020\327\017\022\021\n\014CS_KeepAlive\020\330\017"
  1235. "\022\013\n\006CS_Add\020\331\017\022\r\n\010CS_Robot\020\332\017\022\022\n\rCS_Close"
  1236. "Video\020\333\017\022\r\n\010CS_State\020\336\017*\252\003\n\tSCMessage\022\013\n"
  1237. "\007SC_NONE\020\000\022\014\n\007SC_Sign\020\240\037\022\013\n\006SC_Req\020\241\037\022\013\n"
  1238. "\006SC_Rep\020\242\037\022\016\n\tSC_Cancel\020\243\037\022\r\n\010SC_Offer\020\244"
  1239. "\037\022\016\n\tSC_Answer\020\245\037\022\021\n\014SC_Candidate\020\246\037\022\013\n\006"
  1240. "SC_Add\020\247\037\022\r\n\010SC_Robot\020\250\037\022\021\n\014SC_NotifyReq"
  1241. "\020\251\037\022\021\n\014SC_NotifyRep\020\252\037\022\024\n\017SC_NotifyAnswe"
  1242. "r\020\253\037\022\023\n\016SC_NotifyOffer\020\254\037\022\027\n\022SC_NotifyCa"
  1243. "ndidate\020\255\037\022\023\n\016SC_NotifyLeave\020\256\037\022\024\n\017SC_No"
  1244. "tifyCancel\020\257\037\022\021\n\014SC_NotifyAdd\020\260\037\022\021\n\014SC_N"
  1245. "otifyDel\020\261\037\022\030\n\023SC_NotifyCloseVideo\020\262\037\022\017\n"
  1246. "\nSC_KickOff\020\263\037\022\r\n\010SC_State\020\266\037\022\025\n\020S2V_Sen"
  1247. "dUserInfo\020\373.*\321\002\n\tCCMessage\022\013\n\007CC_None\020\000\022"
  1248. "\014\n\007CC_Text\020\300>\022\013\n\006CC_CAN\020\301>\022\013\n\006CC_IMU\020\302>\022"
  1249. "\026\n\021CC_ASKDATACHANNEL\020\303>\022\024\n\017CC_Manipulati"
  1250. "on\020\304>\022\r\n\010CC_Radar\020\305>\022\016\n\tCC_Switch\020\306>\022\014\n\007"
  1251. "CC_Ping\020\307>\022\022\n\rCC_SensorStop\020\310>\022\017\n\nCC_Sto"
  1252. "pACK\020\311>\022\021\n\014CC_LIDARDATA\020\312>\022\016\n\tCC_CANMSG\020"
  1253. "\313>\022\r\n\010CC_STATE\020\314>\022\023\n\016CC_RobotAnalog\020\321>\022\017"
  1254. "\n\nCC_BootReq\020\315>\022\022\n\rCC_StartupReq\020\316>\022\017\n\nC"
  1255. "C_BootRep\020\317>\022\022\n\rCC_StartupRep\020\320>*F\n\tVide"
  1256. "oDesc\022\006\n\002OK\020\000\022\010\n\004Busy\020\001\022\n\n\006Reject\020\002\022\013\n\007N"
  1257. "oFound\020\003\022\016\n\nIsVideoing\020\004*&\n\005Gears\022\010\n\004Non"
  1258. "e\020\000\022\005\n\001N\020\001\022\005\n\001D\020\002\022\005\n\001R\020\003*9\n\007Gears_D\022\n\n\006N"
  1259. "one_d\020\000\022\007\n\003D_1\020\001\022\007\n\003D_2\020\002\022\007\n\003D_3\020\003\022\007\n\003D_"
  1260. "4\020\004*=\n\016DirectionLight\022\016\n\nRightLight\020\000\022\r\n"
  1261. "\tLeftLight\020\001\022\014\n\010OffLight\020\002b\006proto3"
  1262. ;
  1263. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protocol_2eproto_once;
  1264. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protocol_2eproto = {
  1265. false, false, 4714, descriptor_table_protodef_protocol_2eproto, "protocol.proto",
  1266. &descriptor_table_protocol_2eproto_once, nullptr, 0, 43,
  1267. schemas, file_default_instances, TableStruct_protocol_2eproto::offsets,
  1268. file_level_metadata_protocol_2eproto, file_level_enum_descriptors_protocol_2eproto, file_level_service_descriptors_protocol_2eproto,
  1269. };
  1270. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_protocol_2eproto_getter() {
  1271. return &descriptor_table_protocol_2eproto;
  1272. }
  1273. // Force running AddDescriptors() at dynamic initialization time.
  1274. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_protocol_2eproto(&descriptor_table_protocol_2eproto);
  1275. namespace RemoNet {
  1276. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Robot_RobotState_descriptor() {
  1277. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1278. return file_level_enum_descriptors_protocol_2eproto[0];
  1279. }
  1280. bool Robot_RobotState_IsValid(int value) {
  1281. switch (value) {
  1282. case 0:
  1283. case 1:
  1284. case 2:
  1285. return true;
  1286. default:
  1287. return false;
  1288. }
  1289. }
  1290. #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1291. constexpr Robot_RobotState Robot::Offline;
  1292. constexpr Robot_RobotState Robot::Online;
  1293. constexpr Robot_RobotState Robot::Busy;
  1294. constexpr Robot_RobotState Robot::RobotState_MIN;
  1295. constexpr Robot_RobotState Robot::RobotState_MAX;
  1296. constexpr int Robot::RobotState_ARRAYSIZE;
  1297. #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
  1298. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CSMessage_descriptor() {
  1299. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1300. return file_level_enum_descriptors_protocol_2eproto[1];
  1301. }
  1302. bool CSMessage_IsValid(int value) {
  1303. switch (value) {
  1304. case 0:
  1305. case 2000:
  1306. case 2001:
  1307. case 2002:
  1308. case 2003:
  1309. case 2004:
  1310. case 2005:
  1311. case 2006:
  1312. case 2007:
  1313. case 2008:
  1314. case 2009:
  1315. case 2010:
  1316. case 2011:
  1317. case 2014:
  1318. return true;
  1319. default:
  1320. return false;
  1321. }
  1322. }
  1323. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SCMessage_descriptor() {
  1324. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1325. return file_level_enum_descriptors_protocol_2eproto[2];
  1326. }
  1327. bool SCMessage_IsValid(int value) {
  1328. switch (value) {
  1329. case 0:
  1330. case 4000:
  1331. case 4001:
  1332. case 4002:
  1333. case 4003:
  1334. case 4004:
  1335. case 4005:
  1336. case 4006:
  1337. case 4007:
  1338. case 4008:
  1339. case 4009:
  1340. case 4010:
  1341. case 4011:
  1342. case 4012:
  1343. case 4013:
  1344. case 4014:
  1345. case 4015:
  1346. case 4016:
  1347. case 4017:
  1348. case 4018:
  1349. case 4019:
  1350. case 4022:
  1351. case 6011:
  1352. return true;
  1353. default:
  1354. return false;
  1355. }
  1356. }
  1357. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CCMessage_descriptor() {
  1358. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1359. return file_level_enum_descriptors_protocol_2eproto[3];
  1360. }
  1361. bool CCMessage_IsValid(int value) {
  1362. switch (value) {
  1363. case 0:
  1364. case 8000:
  1365. case 8001:
  1366. case 8002:
  1367. case 8003:
  1368. case 8004:
  1369. case 8005:
  1370. case 8006:
  1371. case 8007:
  1372. case 8008:
  1373. case 8009:
  1374. case 8010:
  1375. case 8011:
  1376. case 8012:
  1377. case 8013:
  1378. case 8014:
  1379. case 8015:
  1380. case 8016:
  1381. case 8017:
  1382. return true;
  1383. default:
  1384. return false;
  1385. }
  1386. }
  1387. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoDesc_descriptor() {
  1388. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1389. return file_level_enum_descriptors_protocol_2eproto[4];
  1390. }
  1391. bool VideoDesc_IsValid(int value) {
  1392. switch (value) {
  1393. case 0:
  1394. case 1:
  1395. case 2:
  1396. case 3:
  1397. case 4:
  1398. return true;
  1399. default:
  1400. return false;
  1401. }
  1402. }
  1403. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Gears_descriptor() {
  1404. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1405. return file_level_enum_descriptors_protocol_2eproto[5];
  1406. }
  1407. bool Gears_IsValid(int value) {
  1408. switch (value) {
  1409. case 0:
  1410. case 1:
  1411. case 2:
  1412. case 3:
  1413. return true;
  1414. default:
  1415. return false;
  1416. }
  1417. }
  1418. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Gears_D_descriptor() {
  1419. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1420. return file_level_enum_descriptors_protocol_2eproto[6];
  1421. }
  1422. bool Gears_D_IsValid(int value) {
  1423. switch (value) {
  1424. case 0:
  1425. case 1:
  1426. case 2:
  1427. case 3:
  1428. case 4:
  1429. return true;
  1430. default:
  1431. return false;
  1432. }
  1433. }
  1434. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DirectionLight_descriptor() {
  1435. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protocol_2eproto);
  1436. return file_level_enum_descriptors_protocol_2eproto[7];
  1437. }
  1438. bool DirectionLight_IsValid(int value) {
  1439. switch (value) {
  1440. case 0:
  1441. case 1:
  1442. case 2:
  1443. return true;
  1444. default:
  1445. return false;
  1446. }
  1447. }
  1448. // ===================================================================
  1449. class UserActivityInfo::_Internal {
  1450. public:
  1451. };
  1452. UserActivityInfo::UserActivityInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1453. bool is_message_owned)
  1454. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1455. SharedCtor();
  1456. if (!is_message_owned) {
  1457. RegisterArenaDtor(arena);
  1458. }
  1459. // @@protoc_insertion_point(arena_constructor:RemoNet.UserActivityInfo)
  1460. }
  1461. UserActivityInfo::UserActivityInfo(const UserActivityInfo& from)
  1462. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1463. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1464. user_uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1465. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1466. user_uuid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1467. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1468. if (!from._internal_user_uuid().empty()) {
  1469. user_uuid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_user_uuid(),
  1470. GetArenaForAllocation());
  1471. }
  1472. ::memcpy(&cockpit_id_, &from.cockpit_id_,
  1473. static_cast<size_t>(reinterpret_cast<char*>(&vehicle_id_) -
  1474. reinterpret_cast<char*>(&cockpit_id_)) + sizeof(vehicle_id_));
  1475. // @@protoc_insertion_point(copy_constructor:RemoNet.UserActivityInfo)
  1476. }
  1477. inline void UserActivityInfo::SharedCtor() {
  1478. user_uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1479. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1480. user_uuid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1481. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1482. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1483. reinterpret_cast<char*>(&cockpit_id_) - reinterpret_cast<char*>(this)),
  1484. 0, static_cast<size_t>(reinterpret_cast<char*>(&vehicle_id_) -
  1485. reinterpret_cast<char*>(&cockpit_id_)) + sizeof(vehicle_id_));
  1486. }
  1487. UserActivityInfo::~UserActivityInfo() {
  1488. // @@protoc_insertion_point(destructor:RemoNet.UserActivityInfo)
  1489. if (GetArenaForAllocation() != nullptr) return;
  1490. SharedDtor();
  1491. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1492. }
  1493. inline void UserActivityInfo::SharedDtor() {
  1494. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1495. user_uuid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1496. }
  1497. void UserActivityInfo::ArenaDtor(void* object) {
  1498. UserActivityInfo* _this = reinterpret_cast< UserActivityInfo* >(object);
  1499. (void)_this;
  1500. }
  1501. void UserActivityInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1502. }
  1503. void UserActivityInfo::SetCachedSize(int size) const {
  1504. _cached_size_.Set(size);
  1505. }
  1506. void UserActivityInfo::Clear() {
  1507. // @@protoc_insertion_point(message_clear_start:RemoNet.UserActivityInfo)
  1508. uint32_t cached_has_bits = 0;
  1509. // Prevent compiler warnings about cached_has_bits being unused
  1510. (void) cached_has_bits;
  1511. user_uuid_.ClearToEmpty();
  1512. ::memset(&cockpit_id_, 0, static_cast<size_t>(
  1513. reinterpret_cast<char*>(&vehicle_id_) -
  1514. reinterpret_cast<char*>(&cockpit_id_)) + sizeof(vehicle_id_));
  1515. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1516. }
  1517. const char* UserActivityInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1518. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1519. while (!ctx->Done(&ptr)) {
  1520. uint32_t tag;
  1521. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1522. switch (tag >> 3) {
  1523. // string user_uuid = 1;
  1524. case 1:
  1525. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1526. auto str = _internal_mutable_user_uuid();
  1527. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1528. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.UserActivityInfo.user_uuid"));
  1529. CHK_(ptr);
  1530. } else
  1531. goto handle_unusual;
  1532. continue;
  1533. // int32 cockpit_id = 2;
  1534. case 2:
  1535. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1536. cockpit_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1537. CHK_(ptr);
  1538. } else
  1539. goto handle_unusual;
  1540. continue;
  1541. // int32 vehicle_id = 3;
  1542. case 3:
  1543. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1544. vehicle_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1545. CHK_(ptr);
  1546. } else
  1547. goto handle_unusual;
  1548. continue;
  1549. default:
  1550. goto handle_unusual;
  1551. } // switch
  1552. handle_unusual:
  1553. if ((tag == 0) || ((tag & 7) == 4)) {
  1554. CHK_(ptr);
  1555. ctx->SetLastTag(tag);
  1556. goto message_done;
  1557. }
  1558. ptr = UnknownFieldParse(
  1559. tag,
  1560. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1561. ptr, ctx);
  1562. CHK_(ptr != nullptr);
  1563. } // while
  1564. message_done:
  1565. return ptr;
  1566. failure:
  1567. ptr = nullptr;
  1568. goto message_done;
  1569. #undef CHK_
  1570. }
  1571. uint8_t* UserActivityInfo::_InternalSerialize(
  1572. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1573. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.UserActivityInfo)
  1574. uint32_t cached_has_bits = 0;
  1575. (void) cached_has_bits;
  1576. // string user_uuid = 1;
  1577. if (!this->_internal_user_uuid().empty()) {
  1578. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1579. this->_internal_user_uuid().data(), static_cast<int>(this->_internal_user_uuid().length()),
  1580. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1581. "RemoNet.UserActivityInfo.user_uuid");
  1582. target = stream->WriteStringMaybeAliased(
  1583. 1, this->_internal_user_uuid(), target);
  1584. }
  1585. // int32 cockpit_id = 2;
  1586. if (this->_internal_cockpit_id() != 0) {
  1587. target = stream->EnsureSpace(target);
  1588. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_cockpit_id(), target);
  1589. }
  1590. // int32 vehicle_id = 3;
  1591. if (this->_internal_vehicle_id() != 0) {
  1592. target = stream->EnsureSpace(target);
  1593. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_vehicle_id(), target);
  1594. }
  1595. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1596. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1597. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1598. }
  1599. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.UserActivityInfo)
  1600. return target;
  1601. }
  1602. size_t UserActivityInfo::ByteSizeLong() const {
  1603. // @@protoc_insertion_point(message_byte_size_start:RemoNet.UserActivityInfo)
  1604. size_t total_size = 0;
  1605. uint32_t cached_has_bits = 0;
  1606. // Prevent compiler warnings about cached_has_bits being unused
  1607. (void) cached_has_bits;
  1608. // string user_uuid = 1;
  1609. if (!this->_internal_user_uuid().empty()) {
  1610. total_size += 1 +
  1611. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1612. this->_internal_user_uuid());
  1613. }
  1614. // int32 cockpit_id = 2;
  1615. if (this->_internal_cockpit_id() != 0) {
  1616. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cockpit_id());
  1617. }
  1618. // int32 vehicle_id = 3;
  1619. if (this->_internal_vehicle_id() != 0) {
  1620. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_vehicle_id());
  1621. }
  1622. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1623. }
  1624. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UserActivityInfo::_class_data_ = {
  1625. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1626. UserActivityInfo::MergeImpl
  1627. };
  1628. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UserActivityInfo::GetClassData() const { return &_class_data_; }
  1629. void UserActivityInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1630. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1631. static_cast<UserActivityInfo *>(to)->MergeFrom(
  1632. static_cast<const UserActivityInfo &>(from));
  1633. }
  1634. void UserActivityInfo::MergeFrom(const UserActivityInfo& from) {
  1635. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.UserActivityInfo)
  1636. GOOGLE_DCHECK_NE(&from, this);
  1637. uint32_t cached_has_bits = 0;
  1638. (void) cached_has_bits;
  1639. if (!from._internal_user_uuid().empty()) {
  1640. _internal_set_user_uuid(from._internal_user_uuid());
  1641. }
  1642. if (from._internal_cockpit_id() != 0) {
  1643. _internal_set_cockpit_id(from._internal_cockpit_id());
  1644. }
  1645. if (from._internal_vehicle_id() != 0) {
  1646. _internal_set_vehicle_id(from._internal_vehicle_id());
  1647. }
  1648. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1649. }
  1650. void UserActivityInfo::CopyFrom(const UserActivityInfo& from) {
  1651. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.UserActivityInfo)
  1652. if (&from == this) return;
  1653. Clear();
  1654. MergeFrom(from);
  1655. }
  1656. bool UserActivityInfo::IsInitialized() const {
  1657. return true;
  1658. }
  1659. void UserActivityInfo::InternalSwap(UserActivityInfo* other) {
  1660. using std::swap;
  1661. auto* lhs_arena = GetArenaForAllocation();
  1662. auto* rhs_arena = other->GetArenaForAllocation();
  1663. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1664. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1665. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1666. &user_uuid_, lhs_arena,
  1667. &other->user_uuid_, rhs_arena
  1668. );
  1669. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1670. PROTOBUF_FIELD_OFFSET(UserActivityInfo, vehicle_id_)
  1671. + sizeof(UserActivityInfo::vehicle_id_)
  1672. - PROTOBUF_FIELD_OFFSET(UserActivityInfo, cockpit_id_)>(
  1673. reinterpret_cast<char*>(&cockpit_id_),
  1674. reinterpret_cast<char*>(&other->cockpit_id_));
  1675. }
  1676. ::PROTOBUF_NAMESPACE_ID::Metadata UserActivityInfo::GetMetadata() const {
  1677. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1678. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1679. file_level_metadata_protocol_2eproto[0]);
  1680. }
  1681. // ===================================================================
  1682. class CSAdd::_Internal {
  1683. public:
  1684. };
  1685. CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1686. bool is_message_owned)
  1687. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1688. SharedCtor();
  1689. if (!is_message_owned) {
  1690. RegisterArenaDtor(arena);
  1691. }
  1692. // @@protoc_insertion_point(arena_constructor:RemoNet.CSAdd)
  1693. }
  1694. CSAdd::CSAdd(const CSAdd& from)
  1695. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1696. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1697. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1698. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1699. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1700. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1701. if (!from._internal_serial().empty()) {
  1702. serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(),
  1703. GetArenaForAllocation());
  1704. }
  1705. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1706. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1707. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1708. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1709. if (!from._internal_name().empty()) {
  1710. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1711. GetArenaForAllocation());
  1712. }
  1713. type_ = from.type_;
  1714. // @@protoc_insertion_point(copy_constructor:RemoNet.CSAdd)
  1715. }
  1716. inline void CSAdd::SharedCtor() {
  1717. serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1718. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1719. serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1720. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1721. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1722. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1723. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1724. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1725. type_ = 0;
  1726. }
  1727. CSAdd::~CSAdd() {
  1728. // @@protoc_insertion_point(destructor:RemoNet.CSAdd)
  1729. if (GetArenaForAllocation() != nullptr) return;
  1730. SharedDtor();
  1731. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1732. }
  1733. inline void CSAdd::SharedDtor() {
  1734. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1735. serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1736. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1737. }
  1738. void CSAdd::ArenaDtor(void* object) {
  1739. CSAdd* _this = reinterpret_cast< CSAdd* >(object);
  1740. (void)_this;
  1741. }
  1742. void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1743. }
  1744. void CSAdd::SetCachedSize(int size) const {
  1745. _cached_size_.Set(size);
  1746. }
  1747. void CSAdd::Clear() {
  1748. // @@protoc_insertion_point(message_clear_start:RemoNet.CSAdd)
  1749. uint32_t cached_has_bits = 0;
  1750. // Prevent compiler warnings about cached_has_bits being unused
  1751. (void) cached_has_bits;
  1752. serial_.ClearToEmpty();
  1753. name_.ClearToEmpty();
  1754. type_ = 0;
  1755. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1756. }
  1757. const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1758. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1759. while (!ctx->Done(&ptr)) {
  1760. uint32_t tag;
  1761. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1762. switch (tag >> 3) {
  1763. // string serial = 1;
  1764. case 1:
  1765. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1766. auto str = _internal_mutable_serial();
  1767. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1768. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.serial"));
  1769. CHK_(ptr);
  1770. } else
  1771. goto handle_unusual;
  1772. continue;
  1773. // int32 type = 2;
  1774. case 2:
  1775. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1776. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1777. CHK_(ptr);
  1778. } else
  1779. goto handle_unusual;
  1780. continue;
  1781. // string name = 3;
  1782. case 3:
  1783. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  1784. auto str = _internal_mutable_name();
  1785. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1786. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSAdd.name"));
  1787. CHK_(ptr);
  1788. } else
  1789. goto handle_unusual;
  1790. continue;
  1791. default:
  1792. goto handle_unusual;
  1793. } // switch
  1794. handle_unusual:
  1795. if ((tag == 0) || ((tag & 7) == 4)) {
  1796. CHK_(ptr);
  1797. ctx->SetLastTag(tag);
  1798. goto message_done;
  1799. }
  1800. ptr = UnknownFieldParse(
  1801. tag,
  1802. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1803. ptr, ctx);
  1804. CHK_(ptr != nullptr);
  1805. } // while
  1806. message_done:
  1807. return ptr;
  1808. failure:
  1809. ptr = nullptr;
  1810. goto message_done;
  1811. #undef CHK_
  1812. }
  1813. uint8_t* CSAdd::_InternalSerialize(
  1814. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1815. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSAdd)
  1816. uint32_t cached_has_bits = 0;
  1817. (void) cached_has_bits;
  1818. // string serial = 1;
  1819. if (!this->_internal_serial().empty()) {
  1820. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1821. this->_internal_serial().data(), static_cast<int>(this->_internal_serial().length()),
  1822. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1823. "RemoNet.CSAdd.serial");
  1824. target = stream->WriteStringMaybeAliased(
  1825. 1, this->_internal_serial(), target);
  1826. }
  1827. // int32 type = 2;
  1828. if (this->_internal_type() != 0) {
  1829. target = stream->EnsureSpace(target);
  1830. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  1831. }
  1832. // string name = 3;
  1833. if (!this->_internal_name().empty()) {
  1834. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1835. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1836. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1837. "RemoNet.CSAdd.name");
  1838. target = stream->WriteStringMaybeAliased(
  1839. 3, this->_internal_name(), target);
  1840. }
  1841. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1842. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1843. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1844. }
  1845. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSAdd)
  1846. return target;
  1847. }
  1848. size_t CSAdd::ByteSizeLong() const {
  1849. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSAdd)
  1850. size_t total_size = 0;
  1851. uint32_t cached_has_bits = 0;
  1852. // Prevent compiler warnings about cached_has_bits being unused
  1853. (void) cached_has_bits;
  1854. // string serial = 1;
  1855. if (!this->_internal_serial().empty()) {
  1856. total_size += 1 +
  1857. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1858. this->_internal_serial());
  1859. }
  1860. // string name = 3;
  1861. if (!this->_internal_name().empty()) {
  1862. total_size += 1 +
  1863. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1864. this->_internal_name());
  1865. }
  1866. // int32 type = 2;
  1867. if (this->_internal_type() != 0) {
  1868. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  1869. }
  1870. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1871. }
  1872. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = {
  1873. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1874. CSAdd::MergeImpl
  1875. };
  1876. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; }
  1877. void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1878. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1879. static_cast<CSAdd *>(to)->MergeFrom(
  1880. static_cast<const CSAdd &>(from));
  1881. }
  1882. void CSAdd::MergeFrom(const CSAdd& from) {
  1883. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSAdd)
  1884. GOOGLE_DCHECK_NE(&from, this);
  1885. uint32_t cached_has_bits = 0;
  1886. (void) cached_has_bits;
  1887. if (!from._internal_serial().empty()) {
  1888. _internal_set_serial(from._internal_serial());
  1889. }
  1890. if (!from._internal_name().empty()) {
  1891. _internal_set_name(from._internal_name());
  1892. }
  1893. if (from._internal_type() != 0) {
  1894. _internal_set_type(from._internal_type());
  1895. }
  1896. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1897. }
  1898. void CSAdd::CopyFrom(const CSAdd& from) {
  1899. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSAdd)
  1900. if (&from == this) return;
  1901. Clear();
  1902. MergeFrom(from);
  1903. }
  1904. bool CSAdd::IsInitialized() const {
  1905. return true;
  1906. }
  1907. void CSAdd::InternalSwap(CSAdd* other) {
  1908. using std::swap;
  1909. auto* lhs_arena = GetArenaForAllocation();
  1910. auto* rhs_arena = other->GetArenaForAllocation();
  1911. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1912. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1913. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1914. &serial_, lhs_arena,
  1915. &other->serial_, rhs_arena
  1916. );
  1917. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1918. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1919. &name_, lhs_arena,
  1920. &other->name_, rhs_arena
  1921. );
  1922. swap(type_, other->type_);
  1923. }
  1924. ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const {
  1925. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1926. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  1927. file_level_metadata_protocol_2eproto[1]);
  1928. }
  1929. // ===================================================================
  1930. class SCAdd::_Internal {
  1931. public:
  1932. };
  1933. SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1934. bool is_message_owned)
  1935. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1936. SharedCtor();
  1937. if (!is_message_owned) {
  1938. RegisterArenaDtor(arena);
  1939. }
  1940. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAdd)
  1941. }
  1942. SCAdd::SCAdd(const SCAdd& from)
  1943. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1944. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1945. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1946. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1947. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1948. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1949. if (!from._internal_name().empty()) {
  1950. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1951. GetArenaForAllocation());
  1952. }
  1953. ::memcpy(&ret_, &from.ret_,
  1954. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1955. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1956. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAdd)
  1957. }
  1958. inline void SCAdd::SharedCtor() {
  1959. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1960. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1961. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1962. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1963. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1964. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  1965. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  1966. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1967. }
  1968. SCAdd::~SCAdd() {
  1969. // @@protoc_insertion_point(destructor:RemoNet.SCAdd)
  1970. if (GetArenaForAllocation() != nullptr) return;
  1971. SharedDtor();
  1972. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1973. }
  1974. inline void SCAdd::SharedDtor() {
  1975. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1976. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1977. }
  1978. void SCAdd::ArenaDtor(void* object) {
  1979. SCAdd* _this = reinterpret_cast< SCAdd* >(object);
  1980. (void)_this;
  1981. }
  1982. void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1983. }
  1984. void SCAdd::SetCachedSize(int size) const {
  1985. _cached_size_.Set(size);
  1986. }
  1987. void SCAdd::Clear() {
  1988. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAdd)
  1989. uint32_t cached_has_bits = 0;
  1990. // Prevent compiler warnings about cached_has_bits being unused
  1991. (void) cached_has_bits;
  1992. name_.ClearToEmpty();
  1993. ::memset(&ret_, 0, static_cast<size_t>(
  1994. reinterpret_cast<char*>(&cid_) -
  1995. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  1996. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1997. }
  1998. const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1999. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2000. while (!ctx->Done(&ptr)) {
  2001. uint32_t tag;
  2002. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2003. switch (tag >> 3) {
  2004. // bool ret = 1;
  2005. case 1:
  2006. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2007. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2008. CHK_(ptr);
  2009. } else
  2010. goto handle_unusual;
  2011. continue;
  2012. // int32 uid = 2;
  2013. case 2:
  2014. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2015. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2016. CHK_(ptr);
  2017. } else
  2018. goto handle_unusual;
  2019. continue;
  2020. // int32 cid = 3;
  2021. case 3:
  2022. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2023. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2024. CHK_(ptr);
  2025. } else
  2026. goto handle_unusual;
  2027. continue;
  2028. // string name = 4;
  2029. case 4:
  2030. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  2031. auto str = _internal_mutable_name();
  2032. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2033. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCAdd.name"));
  2034. CHK_(ptr);
  2035. } else
  2036. goto handle_unusual;
  2037. continue;
  2038. default:
  2039. goto handle_unusual;
  2040. } // switch
  2041. handle_unusual:
  2042. if ((tag == 0) || ((tag & 7) == 4)) {
  2043. CHK_(ptr);
  2044. ctx->SetLastTag(tag);
  2045. goto message_done;
  2046. }
  2047. ptr = UnknownFieldParse(
  2048. tag,
  2049. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2050. ptr, ctx);
  2051. CHK_(ptr != nullptr);
  2052. } // while
  2053. message_done:
  2054. return ptr;
  2055. failure:
  2056. ptr = nullptr;
  2057. goto message_done;
  2058. #undef CHK_
  2059. }
  2060. uint8_t* SCAdd::_InternalSerialize(
  2061. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2062. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAdd)
  2063. uint32_t cached_has_bits = 0;
  2064. (void) cached_has_bits;
  2065. // bool ret = 1;
  2066. if (this->_internal_ret() != 0) {
  2067. target = stream->EnsureSpace(target);
  2068. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  2069. }
  2070. // int32 uid = 2;
  2071. if (this->_internal_uid() != 0) {
  2072. target = stream->EnsureSpace(target);
  2073. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  2074. }
  2075. // int32 cid = 3;
  2076. if (this->_internal_cid() != 0) {
  2077. target = stream->EnsureSpace(target);
  2078. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  2079. }
  2080. // string name = 4;
  2081. if (!this->_internal_name().empty()) {
  2082. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2083. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2084. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2085. "RemoNet.SCAdd.name");
  2086. target = stream->WriteStringMaybeAliased(
  2087. 4, this->_internal_name(), target);
  2088. }
  2089. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2091. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2092. }
  2093. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAdd)
  2094. return target;
  2095. }
  2096. size_t SCAdd::ByteSizeLong() const {
  2097. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAdd)
  2098. size_t total_size = 0;
  2099. uint32_t cached_has_bits = 0;
  2100. // Prevent compiler warnings about cached_has_bits being unused
  2101. (void) cached_has_bits;
  2102. // string name = 4;
  2103. if (!this->_internal_name().empty()) {
  2104. total_size += 1 +
  2105. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2106. this->_internal_name());
  2107. }
  2108. // bool ret = 1;
  2109. if (this->_internal_ret() != 0) {
  2110. total_size += 1 + 1;
  2111. }
  2112. // int32 uid = 2;
  2113. if (this->_internal_uid() != 0) {
  2114. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2115. }
  2116. // int32 cid = 3;
  2117. if (this->_internal_cid() != 0) {
  2118. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  2119. }
  2120. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2121. }
  2122. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = {
  2123. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2124. SCAdd::MergeImpl
  2125. };
  2126. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; }
  2127. void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2128. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2129. static_cast<SCAdd *>(to)->MergeFrom(
  2130. static_cast<const SCAdd &>(from));
  2131. }
  2132. void SCAdd::MergeFrom(const SCAdd& from) {
  2133. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAdd)
  2134. GOOGLE_DCHECK_NE(&from, this);
  2135. uint32_t cached_has_bits = 0;
  2136. (void) cached_has_bits;
  2137. if (!from._internal_name().empty()) {
  2138. _internal_set_name(from._internal_name());
  2139. }
  2140. if (from._internal_ret() != 0) {
  2141. _internal_set_ret(from._internal_ret());
  2142. }
  2143. if (from._internal_uid() != 0) {
  2144. _internal_set_uid(from._internal_uid());
  2145. }
  2146. if (from._internal_cid() != 0) {
  2147. _internal_set_cid(from._internal_cid());
  2148. }
  2149. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2150. }
  2151. void SCAdd::CopyFrom(const SCAdd& from) {
  2152. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAdd)
  2153. if (&from == this) return;
  2154. Clear();
  2155. MergeFrom(from);
  2156. }
  2157. bool SCAdd::IsInitialized() const {
  2158. return true;
  2159. }
  2160. void SCAdd::InternalSwap(SCAdd* other) {
  2161. using std::swap;
  2162. auto* lhs_arena = GetArenaForAllocation();
  2163. auto* rhs_arena = other->GetArenaForAllocation();
  2164. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2165. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2166. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2167. &name_, lhs_arena,
  2168. &other->name_, rhs_arena
  2169. );
  2170. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2171. PROTOBUF_FIELD_OFFSET(SCAdd, cid_)
  2172. + sizeof(SCAdd::cid_)
  2173. - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>(
  2174. reinterpret_cast<char*>(&ret_),
  2175. reinterpret_cast<char*>(&other->ret_));
  2176. }
  2177. ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const {
  2178. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2179. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2180. file_level_metadata_protocol_2eproto[2]);
  2181. }
  2182. // ===================================================================
  2183. class SCKickOff::_Internal {
  2184. public:
  2185. };
  2186. SCKickOff::SCKickOff(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2187. bool is_message_owned)
  2188. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  2189. // @@protoc_insertion_point(arena_constructor:RemoNet.SCKickOff)
  2190. }
  2191. SCKickOff::SCKickOff(const SCKickOff& from)
  2192. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  2193. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2194. // @@protoc_insertion_point(copy_constructor:RemoNet.SCKickOff)
  2195. }
  2196. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCKickOff::_class_data_ = {
  2197. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  2198. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  2199. };
  2200. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCKickOff::GetClassData() const { return &_class_data_; }
  2201. ::PROTOBUF_NAMESPACE_ID::Metadata SCKickOff::GetMetadata() const {
  2202. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2203. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2204. file_level_metadata_protocol_2eproto[3]);
  2205. }
  2206. // ===================================================================
  2207. class Robot::_Internal {
  2208. public:
  2209. };
  2210. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2211. bool is_message_owned)
  2212. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2213. SharedCtor();
  2214. if (!is_message_owned) {
  2215. RegisterArenaDtor(arena);
  2216. }
  2217. // @@protoc_insertion_point(arena_constructor:RemoNet.Robot)
  2218. }
  2219. Robot::Robot(const Robot& from)
  2220. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2221. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2222. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2223. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2224. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2225. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2226. if (!from._internal_name().empty()) {
  2227. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2228. GetArenaForAllocation());
  2229. }
  2230. ::memcpy(&rid_, &from.rid_,
  2231. static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2232. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2233. // @@protoc_insertion_point(copy_constructor:RemoNet.Robot)
  2234. }
  2235. inline void Robot::SharedCtor() {
  2236. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2237. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2238. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2239. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2240. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2241. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  2242. 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2243. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2244. }
  2245. Robot::~Robot() {
  2246. // @@protoc_insertion_point(destructor:RemoNet.Robot)
  2247. if (GetArenaForAllocation() != nullptr) return;
  2248. SharedDtor();
  2249. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2250. }
  2251. inline void Robot::SharedDtor() {
  2252. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2253. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2254. }
  2255. void Robot::ArenaDtor(void* object) {
  2256. Robot* _this = reinterpret_cast< Robot* >(object);
  2257. (void)_this;
  2258. }
  2259. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2260. }
  2261. void Robot::SetCachedSize(int size) const {
  2262. _cached_size_.Set(size);
  2263. }
  2264. void Robot::Clear() {
  2265. // @@protoc_insertion_point(message_clear_start:RemoNet.Robot)
  2266. uint32_t cached_has_bits = 0;
  2267. // Prevent compiler warnings about cached_has_bits being unused
  2268. (void) cached_has_bits;
  2269. name_.ClearToEmpty();
  2270. ::memset(&rid_, 0, static_cast<size_t>(
  2271. reinterpret_cast<char*>(&state_) -
  2272. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2273. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2274. }
  2275. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2276. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2277. while (!ctx->Done(&ptr)) {
  2278. uint32_t tag;
  2279. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2280. switch (tag >> 3) {
  2281. // int32 rid = 1;
  2282. case 1:
  2283. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2284. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2285. CHK_(ptr);
  2286. } else
  2287. goto handle_unusual;
  2288. continue;
  2289. // string name = 2;
  2290. case 2:
  2291. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2292. auto str = _internal_mutable_name();
  2293. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2294. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Robot.name"));
  2295. CHK_(ptr);
  2296. } else
  2297. goto handle_unusual;
  2298. continue;
  2299. // int32 type = 3;
  2300. case 3:
  2301. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2302. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2303. CHK_(ptr);
  2304. } else
  2305. goto handle_unusual;
  2306. continue;
  2307. // .RemoNet.Robot.RobotState state = 4;
  2308. case 4:
  2309. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  2310. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2311. CHK_(ptr);
  2312. _internal_set_state(static_cast<::RemoNet::Robot_RobotState>(val));
  2313. } else
  2314. goto handle_unusual;
  2315. continue;
  2316. default:
  2317. goto handle_unusual;
  2318. } // switch
  2319. handle_unusual:
  2320. if ((tag == 0) || ((tag & 7) == 4)) {
  2321. CHK_(ptr);
  2322. ctx->SetLastTag(tag);
  2323. goto message_done;
  2324. }
  2325. ptr = UnknownFieldParse(
  2326. tag,
  2327. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2328. ptr, ctx);
  2329. CHK_(ptr != nullptr);
  2330. } // while
  2331. message_done:
  2332. return ptr;
  2333. failure:
  2334. ptr = nullptr;
  2335. goto message_done;
  2336. #undef CHK_
  2337. }
  2338. uint8_t* Robot::_InternalSerialize(
  2339. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2340. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Robot)
  2341. uint32_t cached_has_bits = 0;
  2342. (void) cached_has_bits;
  2343. // int32 rid = 1;
  2344. if (this->_internal_rid() != 0) {
  2345. target = stream->EnsureSpace(target);
  2346. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  2347. }
  2348. // string name = 2;
  2349. if (!this->_internal_name().empty()) {
  2350. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2351. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2352. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2353. "RemoNet.Robot.name");
  2354. target = stream->WriteStringMaybeAliased(
  2355. 2, this->_internal_name(), target);
  2356. }
  2357. // int32 type = 3;
  2358. if (this->_internal_type() != 0) {
  2359. target = stream->EnsureSpace(target);
  2360. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  2361. }
  2362. // .RemoNet.Robot.RobotState state = 4;
  2363. if (this->_internal_state() != 0) {
  2364. target = stream->EnsureSpace(target);
  2365. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2366. 4, this->_internal_state(), target);
  2367. }
  2368. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2369. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2370. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2371. }
  2372. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Robot)
  2373. return target;
  2374. }
  2375. size_t Robot::ByteSizeLong() const {
  2376. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Robot)
  2377. size_t total_size = 0;
  2378. uint32_t cached_has_bits = 0;
  2379. // Prevent compiler warnings about cached_has_bits being unused
  2380. (void) cached_has_bits;
  2381. // string name = 2;
  2382. if (!this->_internal_name().empty()) {
  2383. total_size += 1 +
  2384. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2385. this->_internal_name());
  2386. }
  2387. // int32 rid = 1;
  2388. if (this->_internal_rid() != 0) {
  2389. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  2390. }
  2391. // int32 type = 3;
  2392. if (this->_internal_type() != 0) {
  2393. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  2394. }
  2395. // .RemoNet.Robot.RobotState state = 4;
  2396. if (this->_internal_state() != 0) {
  2397. total_size += 1 +
  2398. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state());
  2399. }
  2400. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2401. }
  2402. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  2403. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2404. Robot::MergeImpl
  2405. };
  2406. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  2407. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2408. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2409. static_cast<Robot *>(to)->MergeFrom(
  2410. static_cast<const Robot &>(from));
  2411. }
  2412. void Robot::MergeFrom(const Robot& from) {
  2413. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Robot)
  2414. GOOGLE_DCHECK_NE(&from, this);
  2415. uint32_t cached_has_bits = 0;
  2416. (void) cached_has_bits;
  2417. if (!from._internal_name().empty()) {
  2418. _internal_set_name(from._internal_name());
  2419. }
  2420. if (from._internal_rid() != 0) {
  2421. _internal_set_rid(from._internal_rid());
  2422. }
  2423. if (from._internal_type() != 0) {
  2424. _internal_set_type(from._internal_type());
  2425. }
  2426. if (from._internal_state() != 0) {
  2427. _internal_set_state(from._internal_state());
  2428. }
  2429. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2430. }
  2431. void Robot::CopyFrom(const Robot& from) {
  2432. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Robot)
  2433. if (&from == this) return;
  2434. Clear();
  2435. MergeFrom(from);
  2436. }
  2437. bool Robot::IsInitialized() const {
  2438. return true;
  2439. }
  2440. void Robot::InternalSwap(Robot* other) {
  2441. using std::swap;
  2442. auto* lhs_arena = GetArenaForAllocation();
  2443. auto* rhs_arena = other->GetArenaForAllocation();
  2444. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2445. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2446. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2447. &name_, lhs_arena,
  2448. &other->name_, rhs_arena
  2449. );
  2450. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2451. PROTOBUF_FIELD_OFFSET(Robot, state_)
  2452. + sizeof(Robot::state_)
  2453. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  2454. reinterpret_cast<char*>(&rid_),
  2455. reinterpret_cast<char*>(&other->rid_));
  2456. }
  2457. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  2458. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2459. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2460. file_level_metadata_protocol_2eproto[4]);
  2461. }
  2462. // ===================================================================
  2463. class CSRobot::_Internal {
  2464. public:
  2465. };
  2466. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2467. bool is_message_owned)
  2468. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  2469. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRobot)
  2470. }
  2471. CSRobot::CSRobot(const CSRobot& from)
  2472. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  2473. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2474. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRobot)
  2475. }
  2476. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  2477. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  2478. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  2479. };
  2480. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  2481. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  2482. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2483. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2484. file_level_metadata_protocol_2eproto[5]);
  2485. }
  2486. // ===================================================================
  2487. class SCRobot::_Internal {
  2488. public:
  2489. };
  2490. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2491. bool is_message_owned)
  2492. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  2493. robot_(arena) {
  2494. SharedCtor();
  2495. if (!is_message_owned) {
  2496. RegisterArenaDtor(arena);
  2497. }
  2498. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRobot)
  2499. }
  2500. SCRobot::SCRobot(const SCRobot& from)
  2501. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2502. robot_(from.robot_) {
  2503. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2504. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRobot)
  2505. }
  2506. inline void SCRobot::SharedCtor() {
  2507. }
  2508. SCRobot::~SCRobot() {
  2509. // @@protoc_insertion_point(destructor:RemoNet.SCRobot)
  2510. if (GetArenaForAllocation() != nullptr) return;
  2511. SharedDtor();
  2512. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2513. }
  2514. inline void SCRobot::SharedDtor() {
  2515. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2516. }
  2517. void SCRobot::ArenaDtor(void* object) {
  2518. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  2519. (void)_this;
  2520. }
  2521. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2522. }
  2523. void SCRobot::SetCachedSize(int size) const {
  2524. _cached_size_.Set(size);
  2525. }
  2526. void SCRobot::Clear() {
  2527. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRobot)
  2528. uint32_t cached_has_bits = 0;
  2529. // Prevent compiler warnings about cached_has_bits being unused
  2530. (void) cached_has_bits;
  2531. robot_.Clear();
  2532. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2533. }
  2534. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2535. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2536. while (!ctx->Done(&ptr)) {
  2537. uint32_t tag;
  2538. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2539. switch (tag >> 3) {
  2540. // repeated .RemoNet.Robot robot = 1;
  2541. case 1:
  2542. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2543. ptr -= 1;
  2544. do {
  2545. ptr += 1;
  2546. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  2547. CHK_(ptr);
  2548. if (!ctx->DataAvailable(ptr)) break;
  2549. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2550. } else
  2551. goto handle_unusual;
  2552. continue;
  2553. default:
  2554. goto handle_unusual;
  2555. } // switch
  2556. handle_unusual:
  2557. if ((tag == 0) || ((tag & 7) == 4)) {
  2558. CHK_(ptr);
  2559. ctx->SetLastTag(tag);
  2560. goto message_done;
  2561. }
  2562. ptr = UnknownFieldParse(
  2563. tag,
  2564. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2565. ptr, ctx);
  2566. CHK_(ptr != nullptr);
  2567. } // while
  2568. message_done:
  2569. return ptr;
  2570. failure:
  2571. ptr = nullptr;
  2572. goto message_done;
  2573. #undef CHK_
  2574. }
  2575. uint8_t* SCRobot::_InternalSerialize(
  2576. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2577. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRobot)
  2578. uint32_t cached_has_bits = 0;
  2579. (void) cached_has_bits;
  2580. // repeated .RemoNet.Robot robot = 1;
  2581. for (unsigned int i = 0,
  2582. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  2583. target = stream->EnsureSpace(target);
  2584. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2585. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  2586. }
  2587. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2588. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2589. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2590. }
  2591. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRobot)
  2592. return target;
  2593. }
  2594. size_t SCRobot::ByteSizeLong() const {
  2595. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRobot)
  2596. size_t total_size = 0;
  2597. uint32_t cached_has_bits = 0;
  2598. // Prevent compiler warnings about cached_has_bits being unused
  2599. (void) cached_has_bits;
  2600. // repeated .RemoNet.Robot robot = 1;
  2601. total_size += 1UL * this->_internal_robot_size();
  2602. for (const auto& msg : this->robot_) {
  2603. total_size +=
  2604. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2605. }
  2606. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2607. }
  2608. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  2609. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2610. SCRobot::MergeImpl
  2611. };
  2612. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  2613. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2614. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2615. static_cast<SCRobot *>(to)->MergeFrom(
  2616. static_cast<const SCRobot &>(from));
  2617. }
  2618. void SCRobot::MergeFrom(const SCRobot& from) {
  2619. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRobot)
  2620. GOOGLE_DCHECK_NE(&from, this);
  2621. uint32_t cached_has_bits = 0;
  2622. (void) cached_has_bits;
  2623. robot_.MergeFrom(from.robot_);
  2624. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2625. }
  2626. void SCRobot::CopyFrom(const SCRobot& from) {
  2627. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRobot)
  2628. if (&from == this) return;
  2629. Clear();
  2630. MergeFrom(from);
  2631. }
  2632. bool SCRobot::IsInitialized() const {
  2633. return true;
  2634. }
  2635. void SCRobot::InternalSwap(SCRobot* other) {
  2636. using std::swap;
  2637. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2638. robot_.InternalSwap(&other->robot_);
  2639. }
  2640. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  2641. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2642. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2643. file_level_metadata_protocol_2eproto[6]);
  2644. }
  2645. // ===================================================================
  2646. class CSSign::_Internal {
  2647. public:
  2648. };
  2649. CSSign::CSSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2650. bool is_message_owned)
  2651. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2652. SharedCtor();
  2653. if (!is_message_owned) {
  2654. RegisterArenaDtor(arena);
  2655. }
  2656. // @@protoc_insertion_point(arena_constructor:RemoNet.CSSign)
  2657. }
  2658. CSSign::CSSign(const CSSign& from)
  2659. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2660. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2661. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2662. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2663. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2664. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2665. if (!from._internal_account().empty()) {
  2666. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  2667. GetArenaForAllocation());
  2668. }
  2669. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2670. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2671. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2672. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2673. if (!from._internal_password().empty()) {
  2674. password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
  2675. GetArenaForAllocation());
  2676. }
  2677. // @@protoc_insertion_point(copy_constructor:RemoNet.CSSign)
  2678. }
  2679. inline void CSSign::SharedCtor() {
  2680. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2681. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2682. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2683. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2684. password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2685. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2686. password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2687. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2688. }
  2689. CSSign::~CSSign() {
  2690. // @@protoc_insertion_point(destructor:RemoNet.CSSign)
  2691. if (GetArenaForAllocation() != nullptr) return;
  2692. SharedDtor();
  2693. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2694. }
  2695. inline void CSSign::SharedDtor() {
  2696. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2697. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2698. password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2699. }
  2700. void CSSign::ArenaDtor(void* object) {
  2701. CSSign* _this = reinterpret_cast< CSSign* >(object);
  2702. (void)_this;
  2703. }
  2704. void CSSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2705. }
  2706. void CSSign::SetCachedSize(int size) const {
  2707. _cached_size_.Set(size);
  2708. }
  2709. void CSSign::Clear() {
  2710. // @@protoc_insertion_point(message_clear_start:RemoNet.CSSign)
  2711. uint32_t cached_has_bits = 0;
  2712. // Prevent compiler warnings about cached_has_bits being unused
  2713. (void) cached_has_bits;
  2714. account_.ClearToEmpty();
  2715. password_.ClearToEmpty();
  2716. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2717. }
  2718. const char* CSSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2719. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2720. while (!ctx->Done(&ptr)) {
  2721. uint32_t tag;
  2722. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2723. switch (tag >> 3) {
  2724. // string account = 1;
  2725. case 1:
  2726. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2727. auto str = _internal_mutable_account();
  2728. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2729. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.account"));
  2730. CHK_(ptr);
  2731. } else
  2732. goto handle_unusual;
  2733. continue;
  2734. // string password = 2;
  2735. case 2:
  2736. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2737. auto str = _internal_mutable_password();
  2738. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2739. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.CSSign.password"));
  2740. CHK_(ptr);
  2741. } else
  2742. goto handle_unusual;
  2743. continue;
  2744. default:
  2745. goto handle_unusual;
  2746. } // switch
  2747. handle_unusual:
  2748. if ((tag == 0) || ((tag & 7) == 4)) {
  2749. CHK_(ptr);
  2750. ctx->SetLastTag(tag);
  2751. goto message_done;
  2752. }
  2753. ptr = UnknownFieldParse(
  2754. tag,
  2755. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2756. ptr, ctx);
  2757. CHK_(ptr != nullptr);
  2758. } // while
  2759. message_done:
  2760. return ptr;
  2761. failure:
  2762. ptr = nullptr;
  2763. goto message_done;
  2764. #undef CHK_
  2765. }
  2766. uint8_t* CSSign::_InternalSerialize(
  2767. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2768. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSSign)
  2769. uint32_t cached_has_bits = 0;
  2770. (void) cached_has_bits;
  2771. // string account = 1;
  2772. if (!this->_internal_account().empty()) {
  2773. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2774. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  2775. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2776. "RemoNet.CSSign.account");
  2777. target = stream->WriteStringMaybeAliased(
  2778. 1, this->_internal_account(), target);
  2779. }
  2780. // string password = 2;
  2781. if (!this->_internal_password().empty()) {
  2782. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2783. this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
  2784. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2785. "RemoNet.CSSign.password");
  2786. target = stream->WriteStringMaybeAliased(
  2787. 2, this->_internal_password(), target);
  2788. }
  2789. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2790. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2791. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2792. }
  2793. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSSign)
  2794. return target;
  2795. }
  2796. size_t CSSign::ByteSizeLong() const {
  2797. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSSign)
  2798. size_t total_size = 0;
  2799. uint32_t cached_has_bits = 0;
  2800. // Prevent compiler warnings about cached_has_bits being unused
  2801. (void) cached_has_bits;
  2802. // string account = 1;
  2803. if (!this->_internal_account().empty()) {
  2804. total_size += 1 +
  2805. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2806. this->_internal_account());
  2807. }
  2808. // string password = 2;
  2809. if (!this->_internal_password().empty()) {
  2810. total_size += 1 +
  2811. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2812. this->_internal_password());
  2813. }
  2814. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2815. }
  2816. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSign::_class_data_ = {
  2817. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2818. CSSign::MergeImpl
  2819. };
  2820. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSign::GetClassData() const { return &_class_data_; }
  2821. void CSSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2822. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2823. static_cast<CSSign *>(to)->MergeFrom(
  2824. static_cast<const CSSign &>(from));
  2825. }
  2826. void CSSign::MergeFrom(const CSSign& from) {
  2827. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSSign)
  2828. GOOGLE_DCHECK_NE(&from, this);
  2829. uint32_t cached_has_bits = 0;
  2830. (void) cached_has_bits;
  2831. if (!from._internal_account().empty()) {
  2832. _internal_set_account(from._internal_account());
  2833. }
  2834. if (!from._internal_password().empty()) {
  2835. _internal_set_password(from._internal_password());
  2836. }
  2837. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2838. }
  2839. void CSSign::CopyFrom(const CSSign& from) {
  2840. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSSign)
  2841. if (&from == this) return;
  2842. Clear();
  2843. MergeFrom(from);
  2844. }
  2845. bool CSSign::IsInitialized() const {
  2846. return true;
  2847. }
  2848. void CSSign::InternalSwap(CSSign* other) {
  2849. using std::swap;
  2850. auto* lhs_arena = GetArenaForAllocation();
  2851. auto* rhs_arena = other->GetArenaForAllocation();
  2852. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2853. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2854. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2855. &account_, lhs_arena,
  2856. &other->account_, rhs_arena
  2857. );
  2858. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2859. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2860. &password_, lhs_arena,
  2861. &other->password_, rhs_arena
  2862. );
  2863. }
  2864. ::PROTOBUF_NAMESPACE_ID::Metadata CSSign::GetMetadata() const {
  2865. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2866. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  2867. file_level_metadata_protocol_2eproto[7]);
  2868. }
  2869. // ===================================================================
  2870. class SCSign::_Internal {
  2871. public:
  2872. };
  2873. SCSign::SCSign(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2874. bool is_message_owned)
  2875. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2876. SharedCtor();
  2877. if (!is_message_owned) {
  2878. RegisterArenaDtor(arena);
  2879. }
  2880. // @@protoc_insertion_point(arena_constructor:RemoNet.SCSign)
  2881. }
  2882. SCSign::SCSign(const SCSign& from)
  2883. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2884. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2885. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2886. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2887. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2888. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2889. if (!from._internal_name().empty()) {
  2890. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2891. GetArenaForAllocation());
  2892. }
  2893. ::memcpy(&ret_, &from.ret_,
  2894. static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2895. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2896. // @@protoc_insertion_point(copy_constructor:RemoNet.SCSign)
  2897. }
  2898. inline void SCSign::SharedCtor() {
  2899. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2900. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2901. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2902. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2903. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2904. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  2905. 0, static_cast<size_t>(reinterpret_cast<char*>(&cid_) -
  2906. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2907. }
  2908. SCSign::~SCSign() {
  2909. // @@protoc_insertion_point(destructor:RemoNet.SCSign)
  2910. if (GetArenaForAllocation() != nullptr) return;
  2911. SharedDtor();
  2912. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2913. }
  2914. inline void SCSign::SharedDtor() {
  2915. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2916. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2917. }
  2918. void SCSign::ArenaDtor(void* object) {
  2919. SCSign* _this = reinterpret_cast< SCSign* >(object);
  2920. (void)_this;
  2921. }
  2922. void SCSign::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2923. }
  2924. void SCSign::SetCachedSize(int size) const {
  2925. _cached_size_.Set(size);
  2926. }
  2927. void SCSign::Clear() {
  2928. // @@protoc_insertion_point(message_clear_start:RemoNet.SCSign)
  2929. uint32_t cached_has_bits = 0;
  2930. // Prevent compiler warnings about cached_has_bits being unused
  2931. (void) cached_has_bits;
  2932. name_.ClearToEmpty();
  2933. ::memset(&ret_, 0, static_cast<size_t>(
  2934. reinterpret_cast<char*>(&cid_) -
  2935. reinterpret_cast<char*>(&ret_)) + sizeof(cid_));
  2936. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2937. }
  2938. const char* SCSign::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2939. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2940. while (!ctx->Done(&ptr)) {
  2941. uint32_t tag;
  2942. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2943. switch (tag >> 3) {
  2944. // bool ret = 1;
  2945. case 1:
  2946. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2947. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2948. CHK_(ptr);
  2949. } else
  2950. goto handle_unusual;
  2951. continue;
  2952. // int32 uid = 2;
  2953. case 2:
  2954. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2955. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2956. CHK_(ptr);
  2957. } else
  2958. goto handle_unusual;
  2959. continue;
  2960. // int32 cid = 3;
  2961. case 3:
  2962. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2963. cid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2964. CHK_(ptr);
  2965. } else
  2966. goto handle_unusual;
  2967. continue;
  2968. // string name = 4;
  2969. case 4:
  2970. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  2971. auto str = _internal_mutable_name();
  2972. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2973. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.SCSign.name"));
  2974. CHK_(ptr);
  2975. } else
  2976. goto handle_unusual;
  2977. continue;
  2978. default:
  2979. goto handle_unusual;
  2980. } // switch
  2981. handle_unusual:
  2982. if ((tag == 0) || ((tag & 7) == 4)) {
  2983. CHK_(ptr);
  2984. ctx->SetLastTag(tag);
  2985. goto message_done;
  2986. }
  2987. ptr = UnknownFieldParse(
  2988. tag,
  2989. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2990. ptr, ctx);
  2991. CHK_(ptr != nullptr);
  2992. } // while
  2993. message_done:
  2994. return ptr;
  2995. failure:
  2996. ptr = nullptr;
  2997. goto message_done;
  2998. #undef CHK_
  2999. }
  3000. uint8_t* SCSign::_InternalSerialize(
  3001. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3002. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCSign)
  3003. uint32_t cached_has_bits = 0;
  3004. (void) cached_has_bits;
  3005. // bool ret = 1;
  3006. if (this->_internal_ret() != 0) {
  3007. target = stream->EnsureSpace(target);
  3008. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  3009. }
  3010. // int32 uid = 2;
  3011. if (this->_internal_uid() != 0) {
  3012. target = stream->EnsureSpace(target);
  3013. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  3014. }
  3015. // int32 cid = 3;
  3016. if (this->_internal_cid() != 0) {
  3017. target = stream->EnsureSpace(target);
  3018. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cid(), target);
  3019. }
  3020. // string name = 4;
  3021. if (!this->_internal_name().empty()) {
  3022. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3023. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  3024. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  3025. "RemoNet.SCSign.name");
  3026. target = stream->WriteStringMaybeAliased(
  3027. 4, this->_internal_name(), target);
  3028. }
  3029. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3030. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3031. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3032. }
  3033. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCSign)
  3034. return target;
  3035. }
  3036. size_t SCSign::ByteSizeLong() const {
  3037. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCSign)
  3038. size_t total_size = 0;
  3039. uint32_t cached_has_bits = 0;
  3040. // Prevent compiler warnings about cached_has_bits being unused
  3041. (void) cached_has_bits;
  3042. // string name = 4;
  3043. if (!this->_internal_name().empty()) {
  3044. total_size += 1 +
  3045. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3046. this->_internal_name());
  3047. }
  3048. // bool ret = 1;
  3049. if (this->_internal_ret() != 0) {
  3050. total_size += 1 + 1;
  3051. }
  3052. // int32 uid = 2;
  3053. if (this->_internal_uid() != 0) {
  3054. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  3055. }
  3056. // int32 cid = 3;
  3057. if (this->_internal_cid() != 0) {
  3058. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_cid());
  3059. }
  3060. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3061. }
  3062. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSign::_class_data_ = {
  3063. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3064. SCSign::MergeImpl
  3065. };
  3066. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSign::GetClassData() const { return &_class_data_; }
  3067. void SCSign::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3068. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3069. static_cast<SCSign *>(to)->MergeFrom(
  3070. static_cast<const SCSign &>(from));
  3071. }
  3072. void SCSign::MergeFrom(const SCSign& from) {
  3073. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCSign)
  3074. GOOGLE_DCHECK_NE(&from, this);
  3075. uint32_t cached_has_bits = 0;
  3076. (void) cached_has_bits;
  3077. if (!from._internal_name().empty()) {
  3078. _internal_set_name(from._internal_name());
  3079. }
  3080. if (from._internal_ret() != 0) {
  3081. _internal_set_ret(from._internal_ret());
  3082. }
  3083. if (from._internal_uid() != 0) {
  3084. _internal_set_uid(from._internal_uid());
  3085. }
  3086. if (from._internal_cid() != 0) {
  3087. _internal_set_cid(from._internal_cid());
  3088. }
  3089. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3090. }
  3091. void SCSign::CopyFrom(const SCSign& from) {
  3092. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCSign)
  3093. if (&from == this) return;
  3094. Clear();
  3095. MergeFrom(from);
  3096. }
  3097. bool SCSign::IsInitialized() const {
  3098. return true;
  3099. }
  3100. void SCSign::InternalSwap(SCSign* other) {
  3101. using std::swap;
  3102. auto* lhs_arena = GetArenaForAllocation();
  3103. auto* rhs_arena = other->GetArenaForAllocation();
  3104. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3105. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3106. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3107. &name_, lhs_arena,
  3108. &other->name_, rhs_arena
  3109. );
  3110. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3111. PROTOBUF_FIELD_OFFSET(SCSign, cid_)
  3112. + sizeof(SCSign::cid_)
  3113. - PROTOBUF_FIELD_OFFSET(SCSign, ret_)>(
  3114. reinterpret_cast<char*>(&ret_),
  3115. reinterpret_cast<char*>(&other->ret_));
  3116. }
  3117. ::PROTOBUF_NAMESPACE_ID::Metadata SCSign::GetMetadata() const {
  3118. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3119. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3120. file_level_metadata_protocol_2eproto[8]);
  3121. }
  3122. // ===================================================================
  3123. class CSReq::_Internal {
  3124. public:
  3125. };
  3126. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3127. bool is_message_owned)
  3128. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3129. SharedCtor();
  3130. if (!is_message_owned) {
  3131. RegisterArenaDtor(arena);
  3132. }
  3133. // @@protoc_insertion_point(arena_constructor:RemoNet.CSReq)
  3134. }
  3135. CSReq::CSReq(const CSReq& from)
  3136. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3137. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3138. ::memcpy(&peer_, &from.peer_,
  3139. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3140. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3141. // @@protoc_insertion_point(copy_constructor:RemoNet.CSReq)
  3142. }
  3143. inline void CSReq::SharedCtor() {
  3144. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3145. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  3146. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3147. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3148. }
  3149. CSReq::~CSReq() {
  3150. // @@protoc_insertion_point(destructor:RemoNet.CSReq)
  3151. if (GetArenaForAllocation() != nullptr) return;
  3152. SharedDtor();
  3153. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3154. }
  3155. inline void CSReq::SharedDtor() {
  3156. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3157. }
  3158. void CSReq::ArenaDtor(void* object) {
  3159. CSReq* _this = reinterpret_cast< CSReq* >(object);
  3160. (void)_this;
  3161. }
  3162. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3163. }
  3164. void CSReq::SetCachedSize(int size) const {
  3165. _cached_size_.Set(size);
  3166. }
  3167. void CSReq::Clear() {
  3168. // @@protoc_insertion_point(message_clear_start:RemoNet.CSReq)
  3169. uint32_t cached_has_bits = 0;
  3170. // Prevent compiler warnings about cached_has_bits being unused
  3171. (void) cached_has_bits;
  3172. ::memset(&peer_, 0, static_cast<size_t>(
  3173. reinterpret_cast<char*>(&egotype_) -
  3174. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3175. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3176. }
  3177. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3178. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3179. while (!ctx->Done(&ptr)) {
  3180. uint32_t tag;
  3181. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3182. switch (tag >> 3) {
  3183. // int32 peer = 1;
  3184. case 1:
  3185. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3186. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3187. CHK_(ptr);
  3188. } else
  3189. goto handle_unusual;
  3190. continue;
  3191. // int32 index = 2;
  3192. case 2:
  3193. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3194. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3195. CHK_(ptr);
  3196. } else
  3197. goto handle_unusual;
  3198. continue;
  3199. // int32 egotype = 3;
  3200. case 3:
  3201. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3202. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3203. CHK_(ptr);
  3204. } else
  3205. goto handle_unusual;
  3206. continue;
  3207. default:
  3208. goto handle_unusual;
  3209. } // switch
  3210. handle_unusual:
  3211. if ((tag == 0) || ((tag & 7) == 4)) {
  3212. CHK_(ptr);
  3213. ctx->SetLastTag(tag);
  3214. goto message_done;
  3215. }
  3216. ptr = UnknownFieldParse(
  3217. tag,
  3218. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3219. ptr, ctx);
  3220. CHK_(ptr != nullptr);
  3221. } // while
  3222. message_done:
  3223. return ptr;
  3224. failure:
  3225. ptr = nullptr;
  3226. goto message_done;
  3227. #undef CHK_
  3228. }
  3229. uint8_t* CSReq::_InternalSerialize(
  3230. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3231. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSReq)
  3232. uint32_t cached_has_bits = 0;
  3233. (void) cached_has_bits;
  3234. // int32 peer = 1;
  3235. if (this->_internal_peer() != 0) {
  3236. target = stream->EnsureSpace(target);
  3237. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  3238. }
  3239. // int32 index = 2;
  3240. if (this->_internal_index() != 0) {
  3241. target = stream->EnsureSpace(target);
  3242. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  3243. }
  3244. // int32 egotype = 3;
  3245. if (this->_internal_egotype() != 0) {
  3246. target = stream->EnsureSpace(target);
  3247. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3248. }
  3249. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3250. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3251. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3252. }
  3253. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSReq)
  3254. return target;
  3255. }
  3256. size_t CSReq::ByteSizeLong() const {
  3257. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSReq)
  3258. size_t total_size = 0;
  3259. uint32_t cached_has_bits = 0;
  3260. // Prevent compiler warnings about cached_has_bits being unused
  3261. (void) cached_has_bits;
  3262. // int32 peer = 1;
  3263. if (this->_internal_peer() != 0) {
  3264. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3265. }
  3266. // int32 index = 2;
  3267. if (this->_internal_index() != 0) {
  3268. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3269. }
  3270. // int32 egotype = 3;
  3271. if (this->_internal_egotype() != 0) {
  3272. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3273. }
  3274. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3275. }
  3276. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  3277. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3278. CSReq::MergeImpl
  3279. };
  3280. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  3281. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3282. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3283. static_cast<CSReq *>(to)->MergeFrom(
  3284. static_cast<const CSReq &>(from));
  3285. }
  3286. void CSReq::MergeFrom(const CSReq& from) {
  3287. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSReq)
  3288. GOOGLE_DCHECK_NE(&from, this);
  3289. uint32_t cached_has_bits = 0;
  3290. (void) cached_has_bits;
  3291. if (from._internal_peer() != 0) {
  3292. _internal_set_peer(from._internal_peer());
  3293. }
  3294. if (from._internal_index() != 0) {
  3295. _internal_set_index(from._internal_index());
  3296. }
  3297. if (from._internal_egotype() != 0) {
  3298. _internal_set_egotype(from._internal_egotype());
  3299. }
  3300. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3301. }
  3302. void CSReq::CopyFrom(const CSReq& from) {
  3303. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSReq)
  3304. if (&from == this) return;
  3305. Clear();
  3306. MergeFrom(from);
  3307. }
  3308. bool CSReq::IsInitialized() const {
  3309. return true;
  3310. }
  3311. void CSReq::InternalSwap(CSReq* other) {
  3312. using std::swap;
  3313. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3314. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3315. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  3316. + sizeof(CSReq::egotype_)
  3317. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  3318. reinterpret_cast<char*>(&peer_),
  3319. reinterpret_cast<char*>(&other->peer_));
  3320. }
  3321. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  3322. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3323. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3324. file_level_metadata_protocol_2eproto[9]);
  3325. }
  3326. // ===================================================================
  3327. class SCReq::_Internal {
  3328. public:
  3329. };
  3330. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3331. bool is_message_owned)
  3332. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3333. SharedCtor();
  3334. if (!is_message_owned) {
  3335. RegisterArenaDtor(arena);
  3336. }
  3337. // @@protoc_insertion_point(arena_constructor:RemoNet.SCReq)
  3338. }
  3339. SCReq::SCReq(const SCReq& from)
  3340. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3341. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3342. ::memcpy(&desc_, &from.desc_,
  3343. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3344. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3345. // @@protoc_insertion_point(copy_constructor:RemoNet.SCReq)
  3346. }
  3347. inline void SCReq::SharedCtor() {
  3348. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3349. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3350. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3351. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3352. }
  3353. SCReq::~SCReq() {
  3354. // @@protoc_insertion_point(destructor:RemoNet.SCReq)
  3355. if (GetArenaForAllocation() != nullptr) return;
  3356. SharedDtor();
  3357. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3358. }
  3359. inline void SCReq::SharedDtor() {
  3360. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3361. }
  3362. void SCReq::ArenaDtor(void* object) {
  3363. SCReq* _this = reinterpret_cast< SCReq* >(object);
  3364. (void)_this;
  3365. }
  3366. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3367. }
  3368. void SCReq::SetCachedSize(int size) const {
  3369. _cached_size_.Set(size);
  3370. }
  3371. void SCReq::Clear() {
  3372. // @@protoc_insertion_point(message_clear_start:RemoNet.SCReq)
  3373. uint32_t cached_has_bits = 0;
  3374. // Prevent compiler warnings about cached_has_bits being unused
  3375. (void) cached_has_bits;
  3376. ::memset(&desc_, 0, static_cast<size_t>(
  3377. reinterpret_cast<char*>(&egotype_) -
  3378. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3379. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3380. }
  3381. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3382. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3383. while (!ctx->Done(&ptr)) {
  3384. uint32_t tag;
  3385. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3386. switch (tag >> 3) {
  3387. // .RemoNet.VideoDesc desc = 1;
  3388. case 1:
  3389. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3390. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3391. CHK_(ptr);
  3392. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3393. } else
  3394. goto handle_unusual;
  3395. continue;
  3396. // int32 peer = 2;
  3397. case 2:
  3398. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3399. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3400. CHK_(ptr);
  3401. } else
  3402. goto handle_unusual;
  3403. continue;
  3404. // int32 egotype = 3;
  3405. case 3:
  3406. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3407. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3408. CHK_(ptr);
  3409. } else
  3410. goto handle_unusual;
  3411. continue;
  3412. default:
  3413. goto handle_unusual;
  3414. } // switch
  3415. handle_unusual:
  3416. if ((tag == 0) || ((tag & 7) == 4)) {
  3417. CHK_(ptr);
  3418. ctx->SetLastTag(tag);
  3419. goto message_done;
  3420. }
  3421. ptr = UnknownFieldParse(
  3422. tag,
  3423. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3424. ptr, ctx);
  3425. CHK_(ptr != nullptr);
  3426. } // while
  3427. message_done:
  3428. return ptr;
  3429. failure:
  3430. ptr = nullptr;
  3431. goto message_done;
  3432. #undef CHK_
  3433. }
  3434. uint8_t* SCReq::_InternalSerialize(
  3435. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3436. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCReq)
  3437. uint32_t cached_has_bits = 0;
  3438. (void) cached_has_bits;
  3439. // .RemoNet.VideoDesc desc = 1;
  3440. if (this->_internal_desc() != 0) {
  3441. target = stream->EnsureSpace(target);
  3442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3443. 1, this->_internal_desc(), target);
  3444. }
  3445. // int32 peer = 2;
  3446. if (this->_internal_peer() != 0) {
  3447. target = stream->EnsureSpace(target);
  3448. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3449. }
  3450. // int32 egotype = 3;
  3451. if (this->_internal_egotype() != 0) {
  3452. target = stream->EnsureSpace(target);
  3453. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3454. }
  3455. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3456. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3457. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3458. }
  3459. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCReq)
  3460. return target;
  3461. }
  3462. size_t SCReq::ByteSizeLong() const {
  3463. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCReq)
  3464. size_t total_size = 0;
  3465. uint32_t cached_has_bits = 0;
  3466. // Prevent compiler warnings about cached_has_bits being unused
  3467. (void) cached_has_bits;
  3468. // .RemoNet.VideoDesc desc = 1;
  3469. if (this->_internal_desc() != 0) {
  3470. total_size += 1 +
  3471. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3472. }
  3473. // int32 peer = 2;
  3474. if (this->_internal_peer() != 0) {
  3475. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3476. }
  3477. // int32 egotype = 3;
  3478. if (this->_internal_egotype() != 0) {
  3479. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3480. }
  3481. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3482. }
  3483. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  3484. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3485. SCReq::MergeImpl
  3486. };
  3487. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  3488. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3489. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3490. static_cast<SCReq *>(to)->MergeFrom(
  3491. static_cast<const SCReq &>(from));
  3492. }
  3493. void SCReq::MergeFrom(const SCReq& from) {
  3494. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCReq)
  3495. GOOGLE_DCHECK_NE(&from, this);
  3496. uint32_t cached_has_bits = 0;
  3497. (void) cached_has_bits;
  3498. if (from._internal_desc() != 0) {
  3499. _internal_set_desc(from._internal_desc());
  3500. }
  3501. if (from._internal_peer() != 0) {
  3502. _internal_set_peer(from._internal_peer());
  3503. }
  3504. if (from._internal_egotype() != 0) {
  3505. _internal_set_egotype(from._internal_egotype());
  3506. }
  3507. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3508. }
  3509. void SCReq::CopyFrom(const SCReq& from) {
  3510. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCReq)
  3511. if (&from == this) return;
  3512. Clear();
  3513. MergeFrom(from);
  3514. }
  3515. bool SCReq::IsInitialized() const {
  3516. return true;
  3517. }
  3518. void SCReq::InternalSwap(SCReq* other) {
  3519. using std::swap;
  3520. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3521. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3522. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  3523. + sizeof(SCReq::egotype_)
  3524. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  3525. reinterpret_cast<char*>(&desc_),
  3526. reinterpret_cast<char*>(&other->desc_));
  3527. }
  3528. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  3529. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3530. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3531. file_level_metadata_protocol_2eproto[10]);
  3532. }
  3533. // ===================================================================
  3534. class CSRep::_Internal {
  3535. public:
  3536. };
  3537. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3538. bool is_message_owned)
  3539. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3540. SharedCtor();
  3541. if (!is_message_owned) {
  3542. RegisterArenaDtor(arena);
  3543. }
  3544. // @@protoc_insertion_point(arena_constructor:RemoNet.CSRep)
  3545. }
  3546. CSRep::CSRep(const CSRep& from)
  3547. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3548. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3549. ::memcpy(&desc_, &from.desc_,
  3550. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3551. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3552. // @@protoc_insertion_point(copy_constructor:RemoNet.CSRep)
  3553. }
  3554. inline void CSRep::SharedCtor() {
  3555. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3556. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3557. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3558. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3559. }
  3560. CSRep::~CSRep() {
  3561. // @@protoc_insertion_point(destructor:RemoNet.CSRep)
  3562. if (GetArenaForAllocation() != nullptr) return;
  3563. SharedDtor();
  3564. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3565. }
  3566. inline void CSRep::SharedDtor() {
  3567. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3568. }
  3569. void CSRep::ArenaDtor(void* object) {
  3570. CSRep* _this = reinterpret_cast< CSRep* >(object);
  3571. (void)_this;
  3572. }
  3573. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3574. }
  3575. void CSRep::SetCachedSize(int size) const {
  3576. _cached_size_.Set(size);
  3577. }
  3578. void CSRep::Clear() {
  3579. // @@protoc_insertion_point(message_clear_start:RemoNet.CSRep)
  3580. uint32_t cached_has_bits = 0;
  3581. // Prevent compiler warnings about cached_has_bits being unused
  3582. (void) cached_has_bits;
  3583. ::memset(&desc_, 0, static_cast<size_t>(
  3584. reinterpret_cast<char*>(&egotype_) -
  3585. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  3586. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3587. }
  3588. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3589. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3590. while (!ctx->Done(&ptr)) {
  3591. uint32_t tag;
  3592. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3593. switch (tag >> 3) {
  3594. // .RemoNet.VideoDesc desc = 1;
  3595. case 1:
  3596. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3597. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3598. CHK_(ptr);
  3599. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3600. } else
  3601. goto handle_unusual;
  3602. continue;
  3603. // int32 peer = 2;
  3604. case 2:
  3605. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3606. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3607. CHK_(ptr);
  3608. } else
  3609. goto handle_unusual;
  3610. continue;
  3611. // int32 index = 3;
  3612. case 3:
  3613. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3614. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3615. CHK_(ptr);
  3616. } else
  3617. goto handle_unusual;
  3618. continue;
  3619. // int32 egotype = 4;
  3620. case 4:
  3621. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3622. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3623. CHK_(ptr);
  3624. } else
  3625. goto handle_unusual;
  3626. continue;
  3627. default:
  3628. goto handle_unusual;
  3629. } // switch
  3630. handle_unusual:
  3631. if ((tag == 0) || ((tag & 7) == 4)) {
  3632. CHK_(ptr);
  3633. ctx->SetLastTag(tag);
  3634. goto message_done;
  3635. }
  3636. ptr = UnknownFieldParse(
  3637. tag,
  3638. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3639. ptr, ctx);
  3640. CHK_(ptr != nullptr);
  3641. } // while
  3642. message_done:
  3643. return ptr;
  3644. failure:
  3645. ptr = nullptr;
  3646. goto message_done;
  3647. #undef CHK_
  3648. }
  3649. uint8_t* CSRep::_InternalSerialize(
  3650. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3651. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CSRep)
  3652. uint32_t cached_has_bits = 0;
  3653. (void) cached_has_bits;
  3654. // .RemoNet.VideoDesc desc = 1;
  3655. if (this->_internal_desc() != 0) {
  3656. target = stream->EnsureSpace(target);
  3657. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3658. 1, this->_internal_desc(), target);
  3659. }
  3660. // int32 peer = 2;
  3661. if (this->_internal_peer() != 0) {
  3662. target = stream->EnsureSpace(target);
  3663. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  3664. }
  3665. // int32 index = 3;
  3666. if (this->_internal_index() != 0) {
  3667. target = stream->EnsureSpace(target);
  3668. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  3669. }
  3670. // int32 egotype = 4;
  3671. if (this->_internal_egotype() != 0) {
  3672. target = stream->EnsureSpace(target);
  3673. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  3674. }
  3675. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3676. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3677. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3678. }
  3679. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CSRep)
  3680. return target;
  3681. }
  3682. size_t CSRep::ByteSizeLong() const {
  3683. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CSRep)
  3684. size_t total_size = 0;
  3685. uint32_t cached_has_bits = 0;
  3686. // Prevent compiler warnings about cached_has_bits being unused
  3687. (void) cached_has_bits;
  3688. // .RemoNet.VideoDesc desc = 1;
  3689. if (this->_internal_desc() != 0) {
  3690. total_size += 1 +
  3691. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3692. }
  3693. // int32 peer = 2;
  3694. if (this->_internal_peer() != 0) {
  3695. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3696. }
  3697. // int32 index = 3;
  3698. if (this->_internal_index() != 0) {
  3699. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3700. }
  3701. // int32 egotype = 4;
  3702. if (this->_internal_egotype() != 0) {
  3703. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3704. }
  3705. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3706. }
  3707. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  3708. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3709. CSRep::MergeImpl
  3710. };
  3711. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  3712. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3713. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3714. static_cast<CSRep *>(to)->MergeFrom(
  3715. static_cast<const CSRep &>(from));
  3716. }
  3717. void CSRep::MergeFrom(const CSRep& from) {
  3718. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CSRep)
  3719. GOOGLE_DCHECK_NE(&from, this);
  3720. uint32_t cached_has_bits = 0;
  3721. (void) cached_has_bits;
  3722. if (from._internal_desc() != 0) {
  3723. _internal_set_desc(from._internal_desc());
  3724. }
  3725. if (from._internal_peer() != 0) {
  3726. _internal_set_peer(from._internal_peer());
  3727. }
  3728. if (from._internal_index() != 0) {
  3729. _internal_set_index(from._internal_index());
  3730. }
  3731. if (from._internal_egotype() != 0) {
  3732. _internal_set_egotype(from._internal_egotype());
  3733. }
  3734. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3735. }
  3736. void CSRep::CopyFrom(const CSRep& from) {
  3737. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CSRep)
  3738. if (&from == this) return;
  3739. Clear();
  3740. MergeFrom(from);
  3741. }
  3742. bool CSRep::IsInitialized() const {
  3743. return true;
  3744. }
  3745. void CSRep::InternalSwap(CSRep* other) {
  3746. using std::swap;
  3747. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3748. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3749. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  3750. + sizeof(CSRep::egotype_)
  3751. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  3752. reinterpret_cast<char*>(&desc_),
  3753. reinterpret_cast<char*>(&other->desc_));
  3754. }
  3755. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  3756. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3757. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3758. file_level_metadata_protocol_2eproto[11]);
  3759. }
  3760. // ===================================================================
  3761. class SCRep::_Internal {
  3762. public:
  3763. };
  3764. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3765. bool is_message_owned)
  3766. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3767. SharedCtor();
  3768. if (!is_message_owned) {
  3769. RegisterArenaDtor(arena);
  3770. }
  3771. // @@protoc_insertion_point(arena_constructor:RemoNet.SCRep)
  3772. }
  3773. SCRep::SCRep(const SCRep& from)
  3774. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3775. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3776. ::memcpy(&desc_, &from.desc_,
  3777. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3778. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3779. // @@protoc_insertion_point(copy_constructor:RemoNet.SCRep)
  3780. }
  3781. inline void SCRep::SharedCtor() {
  3782. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3783. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  3784. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  3785. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3786. }
  3787. SCRep::~SCRep() {
  3788. // @@protoc_insertion_point(destructor:RemoNet.SCRep)
  3789. if (GetArenaForAllocation() != nullptr) return;
  3790. SharedDtor();
  3791. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3792. }
  3793. inline void SCRep::SharedDtor() {
  3794. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3795. }
  3796. void SCRep::ArenaDtor(void* object) {
  3797. SCRep* _this = reinterpret_cast< SCRep* >(object);
  3798. (void)_this;
  3799. }
  3800. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3801. }
  3802. void SCRep::SetCachedSize(int size) const {
  3803. _cached_size_.Set(size);
  3804. }
  3805. void SCRep::Clear() {
  3806. // @@protoc_insertion_point(message_clear_start:RemoNet.SCRep)
  3807. uint32_t cached_has_bits = 0;
  3808. // Prevent compiler warnings about cached_has_bits being unused
  3809. (void) cached_has_bits;
  3810. ::memset(&desc_, 0, static_cast<size_t>(
  3811. reinterpret_cast<char*>(&peer_) -
  3812. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  3813. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3814. }
  3815. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3816. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3817. while (!ctx->Done(&ptr)) {
  3818. uint32_t tag;
  3819. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3820. switch (tag >> 3) {
  3821. // .RemoNet.VideoDesc desc = 1;
  3822. case 1:
  3823. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3824. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3825. CHK_(ptr);
  3826. _internal_set_desc(static_cast<::RemoNet::VideoDesc>(val));
  3827. } else
  3828. goto handle_unusual;
  3829. continue;
  3830. // int32 index = 2;
  3831. case 2:
  3832. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3833. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3834. CHK_(ptr);
  3835. } else
  3836. goto handle_unusual;
  3837. continue;
  3838. // int32 egotype = 3;
  3839. case 3:
  3840. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  3841. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3842. CHK_(ptr);
  3843. } else
  3844. goto handle_unusual;
  3845. continue;
  3846. // int32 peer = 4;
  3847. case 4:
  3848. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  3849. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3850. CHK_(ptr);
  3851. } else
  3852. goto handle_unusual;
  3853. continue;
  3854. default:
  3855. goto handle_unusual;
  3856. } // switch
  3857. handle_unusual:
  3858. if ((tag == 0) || ((tag & 7) == 4)) {
  3859. CHK_(ptr);
  3860. ctx->SetLastTag(tag);
  3861. goto message_done;
  3862. }
  3863. ptr = UnknownFieldParse(
  3864. tag,
  3865. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3866. ptr, ctx);
  3867. CHK_(ptr != nullptr);
  3868. } // while
  3869. message_done:
  3870. return ptr;
  3871. failure:
  3872. ptr = nullptr;
  3873. goto message_done;
  3874. #undef CHK_
  3875. }
  3876. uint8_t* SCRep::_InternalSerialize(
  3877. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3878. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCRep)
  3879. uint32_t cached_has_bits = 0;
  3880. (void) cached_has_bits;
  3881. // .RemoNet.VideoDesc desc = 1;
  3882. if (this->_internal_desc() != 0) {
  3883. target = stream->EnsureSpace(target);
  3884. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  3885. 1, this->_internal_desc(), target);
  3886. }
  3887. // int32 index = 2;
  3888. if (this->_internal_index() != 0) {
  3889. target = stream->EnsureSpace(target);
  3890. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  3891. }
  3892. // int32 egotype = 3;
  3893. if (this->_internal_egotype() != 0) {
  3894. target = stream->EnsureSpace(target);
  3895. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  3896. }
  3897. // int32 peer = 4;
  3898. if (this->_internal_peer() != 0) {
  3899. target = stream->EnsureSpace(target);
  3900. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  3901. }
  3902. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3903. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3904. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3905. }
  3906. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCRep)
  3907. return target;
  3908. }
  3909. size_t SCRep::ByteSizeLong() const {
  3910. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCRep)
  3911. size_t total_size = 0;
  3912. uint32_t cached_has_bits = 0;
  3913. // Prevent compiler warnings about cached_has_bits being unused
  3914. (void) cached_has_bits;
  3915. // .RemoNet.VideoDesc desc = 1;
  3916. if (this->_internal_desc() != 0) {
  3917. total_size += 1 +
  3918. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_desc());
  3919. }
  3920. // int32 index = 2;
  3921. if (this->_internal_index() != 0) {
  3922. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  3923. }
  3924. // int32 egotype = 3;
  3925. if (this->_internal_egotype() != 0) {
  3926. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3927. }
  3928. // int32 peer = 4;
  3929. if (this->_internal_peer() != 0) {
  3930. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3931. }
  3932. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3933. }
  3934. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  3935. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3936. SCRep::MergeImpl
  3937. };
  3938. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  3939. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3940. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3941. static_cast<SCRep *>(to)->MergeFrom(
  3942. static_cast<const SCRep &>(from));
  3943. }
  3944. void SCRep::MergeFrom(const SCRep& from) {
  3945. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCRep)
  3946. GOOGLE_DCHECK_NE(&from, this);
  3947. uint32_t cached_has_bits = 0;
  3948. (void) cached_has_bits;
  3949. if (from._internal_desc() != 0) {
  3950. _internal_set_desc(from._internal_desc());
  3951. }
  3952. if (from._internal_index() != 0) {
  3953. _internal_set_index(from._internal_index());
  3954. }
  3955. if (from._internal_egotype() != 0) {
  3956. _internal_set_egotype(from._internal_egotype());
  3957. }
  3958. if (from._internal_peer() != 0) {
  3959. _internal_set_peer(from._internal_peer());
  3960. }
  3961. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3962. }
  3963. void SCRep::CopyFrom(const SCRep& from) {
  3964. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCRep)
  3965. if (&from == this) return;
  3966. Clear();
  3967. MergeFrom(from);
  3968. }
  3969. bool SCRep::IsInitialized() const {
  3970. return true;
  3971. }
  3972. void SCRep::InternalSwap(SCRep* other) {
  3973. using std::swap;
  3974. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3975. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3976. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  3977. + sizeof(SCRep::peer_)
  3978. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  3979. reinterpret_cast<char*>(&desc_),
  3980. reinterpret_cast<char*>(&other->desc_));
  3981. }
  3982. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  3983. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3984. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  3985. file_level_metadata_protocol_2eproto[12]);
  3986. }
  3987. // ===================================================================
  3988. class Offer::_Internal {
  3989. public:
  3990. };
  3991. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3992. bool is_message_owned)
  3993. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3994. SharedCtor();
  3995. if (!is_message_owned) {
  3996. RegisterArenaDtor(arena);
  3997. }
  3998. // @@protoc_insertion_point(arena_constructor:RemoNet.Offer)
  3999. }
  4000. Offer::Offer(const Offer& from)
  4001. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4002. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4003. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4004. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4005. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4006. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4007. if (!from._internal_type().empty()) {
  4008. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4009. GetArenaForAllocation());
  4010. }
  4011. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4012. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4013. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4014. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4015. if (!from._internal_sdp().empty()) {
  4016. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  4017. GetArenaForAllocation());
  4018. }
  4019. ::memcpy(&index_, &from.index_,
  4020. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4021. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4022. // @@protoc_insertion_point(copy_constructor:RemoNet.Offer)
  4023. }
  4024. inline void Offer::SharedCtor() {
  4025. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4026. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4027. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4028. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4029. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4030. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4031. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4032. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4033. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4034. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4035. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4036. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4037. }
  4038. Offer::~Offer() {
  4039. // @@protoc_insertion_point(destructor:RemoNet.Offer)
  4040. if (GetArenaForAllocation() != nullptr) return;
  4041. SharedDtor();
  4042. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4043. }
  4044. inline void Offer::SharedDtor() {
  4045. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4046. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4047. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4048. }
  4049. void Offer::ArenaDtor(void* object) {
  4050. Offer* _this = reinterpret_cast< Offer* >(object);
  4051. (void)_this;
  4052. }
  4053. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4054. }
  4055. void Offer::SetCachedSize(int size) const {
  4056. _cached_size_.Set(size);
  4057. }
  4058. void Offer::Clear() {
  4059. // @@protoc_insertion_point(message_clear_start:RemoNet.Offer)
  4060. uint32_t cached_has_bits = 0;
  4061. // Prevent compiler warnings about cached_has_bits being unused
  4062. (void) cached_has_bits;
  4063. type_.ClearToEmpty();
  4064. sdp_.ClearToEmpty();
  4065. ::memset(&index_, 0, static_cast<size_t>(
  4066. reinterpret_cast<char*>(&peer_) -
  4067. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4068. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4069. }
  4070. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4071. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4072. while (!ctx->Done(&ptr)) {
  4073. uint32_t tag;
  4074. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4075. switch (tag >> 3) {
  4076. // int32 index = 1;
  4077. case 1:
  4078. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4079. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4080. CHK_(ptr);
  4081. } else
  4082. goto handle_unusual;
  4083. continue;
  4084. // int32 peer = 2;
  4085. case 2:
  4086. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4087. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4088. CHK_(ptr);
  4089. } else
  4090. goto handle_unusual;
  4091. continue;
  4092. // string type = 3;
  4093. case 3:
  4094. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4095. auto str = _internal_mutable_type();
  4096. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4097. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.type"));
  4098. CHK_(ptr);
  4099. } else
  4100. goto handle_unusual;
  4101. continue;
  4102. // string sdp = 4;
  4103. case 4:
  4104. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4105. auto str = _internal_mutable_sdp();
  4106. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4107. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Offer.sdp"));
  4108. CHK_(ptr);
  4109. } else
  4110. goto handle_unusual;
  4111. continue;
  4112. default:
  4113. goto handle_unusual;
  4114. } // switch
  4115. handle_unusual:
  4116. if ((tag == 0) || ((tag & 7) == 4)) {
  4117. CHK_(ptr);
  4118. ctx->SetLastTag(tag);
  4119. goto message_done;
  4120. }
  4121. ptr = UnknownFieldParse(
  4122. tag,
  4123. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4124. ptr, ctx);
  4125. CHK_(ptr != nullptr);
  4126. } // while
  4127. message_done:
  4128. return ptr;
  4129. failure:
  4130. ptr = nullptr;
  4131. goto message_done;
  4132. #undef CHK_
  4133. }
  4134. uint8_t* Offer::_InternalSerialize(
  4135. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4136. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Offer)
  4137. uint32_t cached_has_bits = 0;
  4138. (void) cached_has_bits;
  4139. // int32 index = 1;
  4140. if (this->_internal_index() != 0) {
  4141. target = stream->EnsureSpace(target);
  4142. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4143. }
  4144. // int32 peer = 2;
  4145. if (this->_internal_peer() != 0) {
  4146. target = stream->EnsureSpace(target);
  4147. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4148. }
  4149. // string type = 3;
  4150. if (!this->_internal_type().empty()) {
  4151. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4152. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4153. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4154. "RemoNet.Offer.type");
  4155. target = stream->WriteStringMaybeAliased(
  4156. 3, this->_internal_type(), target);
  4157. }
  4158. // string sdp = 4;
  4159. if (!this->_internal_sdp().empty()) {
  4160. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4161. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  4162. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4163. "RemoNet.Offer.sdp");
  4164. target = stream->WriteStringMaybeAliased(
  4165. 4, this->_internal_sdp(), target);
  4166. }
  4167. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4168. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4169. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4170. }
  4171. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Offer)
  4172. return target;
  4173. }
  4174. size_t Offer::ByteSizeLong() const {
  4175. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Offer)
  4176. size_t total_size = 0;
  4177. uint32_t cached_has_bits = 0;
  4178. // Prevent compiler warnings about cached_has_bits being unused
  4179. (void) cached_has_bits;
  4180. // string type = 3;
  4181. if (!this->_internal_type().empty()) {
  4182. total_size += 1 +
  4183. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4184. this->_internal_type());
  4185. }
  4186. // string sdp = 4;
  4187. if (!this->_internal_sdp().empty()) {
  4188. total_size += 1 +
  4189. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4190. this->_internal_sdp());
  4191. }
  4192. // int32 index = 1;
  4193. if (this->_internal_index() != 0) {
  4194. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4195. }
  4196. // int32 peer = 2;
  4197. if (this->_internal_peer() != 0) {
  4198. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4199. }
  4200. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4201. }
  4202. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  4203. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4204. Offer::MergeImpl
  4205. };
  4206. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  4207. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4208. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4209. static_cast<Offer *>(to)->MergeFrom(
  4210. static_cast<const Offer &>(from));
  4211. }
  4212. void Offer::MergeFrom(const Offer& from) {
  4213. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Offer)
  4214. GOOGLE_DCHECK_NE(&from, this);
  4215. uint32_t cached_has_bits = 0;
  4216. (void) cached_has_bits;
  4217. if (!from._internal_type().empty()) {
  4218. _internal_set_type(from._internal_type());
  4219. }
  4220. if (!from._internal_sdp().empty()) {
  4221. _internal_set_sdp(from._internal_sdp());
  4222. }
  4223. if (from._internal_index() != 0) {
  4224. _internal_set_index(from._internal_index());
  4225. }
  4226. if (from._internal_peer() != 0) {
  4227. _internal_set_peer(from._internal_peer());
  4228. }
  4229. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4230. }
  4231. void Offer::CopyFrom(const Offer& from) {
  4232. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Offer)
  4233. if (&from == this) return;
  4234. Clear();
  4235. MergeFrom(from);
  4236. }
  4237. bool Offer::IsInitialized() const {
  4238. return true;
  4239. }
  4240. void Offer::InternalSwap(Offer* other) {
  4241. using std::swap;
  4242. auto* lhs_arena = GetArenaForAllocation();
  4243. auto* rhs_arena = other->GetArenaForAllocation();
  4244. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4245. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4246. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4247. &type_, lhs_arena,
  4248. &other->type_, rhs_arena
  4249. );
  4250. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4251. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4252. &sdp_, lhs_arena,
  4253. &other->sdp_, rhs_arena
  4254. );
  4255. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4256. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  4257. + sizeof(Offer::peer_)
  4258. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  4259. reinterpret_cast<char*>(&index_),
  4260. reinterpret_cast<char*>(&other->index_));
  4261. }
  4262. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  4263. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4264. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4265. file_level_metadata_protocol_2eproto[13]);
  4266. }
  4267. // ===================================================================
  4268. class Answer::_Internal {
  4269. public:
  4270. };
  4271. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4272. bool is_message_owned)
  4273. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4274. SharedCtor();
  4275. if (!is_message_owned) {
  4276. RegisterArenaDtor(arena);
  4277. }
  4278. // @@protoc_insertion_point(arena_constructor:RemoNet.Answer)
  4279. }
  4280. Answer::Answer(const Answer& from)
  4281. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4282. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4283. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4284. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4285. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4286. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4287. if (!from._internal_type().empty()) {
  4288. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4289. GetArenaForAllocation());
  4290. }
  4291. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4292. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4293. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4294. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4295. if (!from._internal_sdp().empty()) {
  4296. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  4297. GetArenaForAllocation());
  4298. }
  4299. ::memcpy(&index_, &from.index_,
  4300. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4301. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4302. // @@protoc_insertion_point(copy_constructor:RemoNet.Answer)
  4303. }
  4304. inline void Answer::SharedCtor() {
  4305. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4306. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4307. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4308. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4309. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4310. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4311. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4312. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4313. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4314. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4315. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  4316. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4317. }
  4318. Answer::~Answer() {
  4319. // @@protoc_insertion_point(destructor:RemoNet.Answer)
  4320. if (GetArenaForAllocation() != nullptr) return;
  4321. SharedDtor();
  4322. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4323. }
  4324. inline void Answer::SharedDtor() {
  4325. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4326. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4327. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4328. }
  4329. void Answer::ArenaDtor(void* object) {
  4330. Answer* _this = reinterpret_cast< Answer* >(object);
  4331. (void)_this;
  4332. }
  4333. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4334. }
  4335. void Answer::SetCachedSize(int size) const {
  4336. _cached_size_.Set(size);
  4337. }
  4338. void Answer::Clear() {
  4339. // @@protoc_insertion_point(message_clear_start:RemoNet.Answer)
  4340. uint32_t cached_has_bits = 0;
  4341. // Prevent compiler warnings about cached_has_bits being unused
  4342. (void) cached_has_bits;
  4343. type_.ClearToEmpty();
  4344. sdp_.ClearToEmpty();
  4345. ::memset(&index_, 0, static_cast<size_t>(
  4346. reinterpret_cast<char*>(&peer_) -
  4347. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  4348. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4349. }
  4350. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4351. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4352. while (!ctx->Done(&ptr)) {
  4353. uint32_t tag;
  4354. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4355. switch (tag >> 3) {
  4356. // int32 index = 1;
  4357. case 1:
  4358. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4359. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4360. CHK_(ptr);
  4361. } else
  4362. goto handle_unusual;
  4363. continue;
  4364. // int32 peer = 2;
  4365. case 2:
  4366. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4367. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4368. CHK_(ptr);
  4369. } else
  4370. goto handle_unusual;
  4371. continue;
  4372. // string type = 3;
  4373. case 3:
  4374. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4375. auto str = _internal_mutable_type();
  4376. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4377. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.type"));
  4378. CHK_(ptr);
  4379. } else
  4380. goto handle_unusual;
  4381. continue;
  4382. // string sdp = 4;
  4383. case 4:
  4384. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4385. auto str = _internal_mutable_sdp();
  4386. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4387. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Answer.sdp"));
  4388. CHK_(ptr);
  4389. } else
  4390. goto handle_unusual;
  4391. continue;
  4392. default:
  4393. goto handle_unusual;
  4394. } // switch
  4395. handle_unusual:
  4396. if ((tag == 0) || ((tag & 7) == 4)) {
  4397. CHK_(ptr);
  4398. ctx->SetLastTag(tag);
  4399. goto message_done;
  4400. }
  4401. ptr = UnknownFieldParse(
  4402. tag,
  4403. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4404. ptr, ctx);
  4405. CHK_(ptr != nullptr);
  4406. } // while
  4407. message_done:
  4408. return ptr;
  4409. failure:
  4410. ptr = nullptr;
  4411. goto message_done;
  4412. #undef CHK_
  4413. }
  4414. uint8_t* Answer::_InternalSerialize(
  4415. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4416. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Answer)
  4417. uint32_t cached_has_bits = 0;
  4418. (void) cached_has_bits;
  4419. // int32 index = 1;
  4420. if (this->_internal_index() != 0) {
  4421. target = stream->EnsureSpace(target);
  4422. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4423. }
  4424. // int32 peer = 2;
  4425. if (this->_internal_peer() != 0) {
  4426. target = stream->EnsureSpace(target);
  4427. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4428. }
  4429. // string type = 3;
  4430. if (!this->_internal_type().empty()) {
  4431. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4432. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4433. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4434. "RemoNet.Answer.type");
  4435. target = stream->WriteStringMaybeAliased(
  4436. 3, this->_internal_type(), target);
  4437. }
  4438. // string sdp = 4;
  4439. if (!this->_internal_sdp().empty()) {
  4440. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4441. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  4442. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4443. "RemoNet.Answer.sdp");
  4444. target = stream->WriteStringMaybeAliased(
  4445. 4, this->_internal_sdp(), target);
  4446. }
  4447. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4448. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4449. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4450. }
  4451. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Answer)
  4452. return target;
  4453. }
  4454. size_t Answer::ByteSizeLong() const {
  4455. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Answer)
  4456. size_t total_size = 0;
  4457. uint32_t cached_has_bits = 0;
  4458. // Prevent compiler warnings about cached_has_bits being unused
  4459. (void) cached_has_bits;
  4460. // string type = 3;
  4461. if (!this->_internal_type().empty()) {
  4462. total_size += 1 +
  4463. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4464. this->_internal_type());
  4465. }
  4466. // string sdp = 4;
  4467. if (!this->_internal_sdp().empty()) {
  4468. total_size += 1 +
  4469. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4470. this->_internal_sdp());
  4471. }
  4472. // int32 index = 1;
  4473. if (this->_internal_index() != 0) {
  4474. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4475. }
  4476. // int32 peer = 2;
  4477. if (this->_internal_peer() != 0) {
  4478. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4479. }
  4480. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4481. }
  4482. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  4483. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4484. Answer::MergeImpl
  4485. };
  4486. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  4487. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4488. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4489. static_cast<Answer *>(to)->MergeFrom(
  4490. static_cast<const Answer &>(from));
  4491. }
  4492. void Answer::MergeFrom(const Answer& from) {
  4493. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Answer)
  4494. GOOGLE_DCHECK_NE(&from, this);
  4495. uint32_t cached_has_bits = 0;
  4496. (void) cached_has_bits;
  4497. if (!from._internal_type().empty()) {
  4498. _internal_set_type(from._internal_type());
  4499. }
  4500. if (!from._internal_sdp().empty()) {
  4501. _internal_set_sdp(from._internal_sdp());
  4502. }
  4503. if (from._internal_index() != 0) {
  4504. _internal_set_index(from._internal_index());
  4505. }
  4506. if (from._internal_peer() != 0) {
  4507. _internal_set_peer(from._internal_peer());
  4508. }
  4509. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4510. }
  4511. void Answer::CopyFrom(const Answer& from) {
  4512. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Answer)
  4513. if (&from == this) return;
  4514. Clear();
  4515. MergeFrom(from);
  4516. }
  4517. bool Answer::IsInitialized() const {
  4518. return true;
  4519. }
  4520. void Answer::InternalSwap(Answer* other) {
  4521. using std::swap;
  4522. auto* lhs_arena = GetArenaForAllocation();
  4523. auto* rhs_arena = other->GetArenaForAllocation();
  4524. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4525. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4526. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4527. &type_, lhs_arena,
  4528. &other->type_, rhs_arena
  4529. );
  4530. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4531. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4532. &sdp_, lhs_arena,
  4533. &other->sdp_, rhs_arena
  4534. );
  4535. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4536. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  4537. + sizeof(Answer::peer_)
  4538. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  4539. reinterpret_cast<char*>(&index_),
  4540. reinterpret_cast<char*>(&other->index_));
  4541. }
  4542. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  4543. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4544. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4545. file_level_metadata_protocol_2eproto[14]);
  4546. }
  4547. // ===================================================================
  4548. class Candidate::_Internal {
  4549. public:
  4550. };
  4551. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4552. bool is_message_owned)
  4553. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4554. SharedCtor();
  4555. if (!is_message_owned) {
  4556. RegisterArenaDtor(arena);
  4557. }
  4558. // @@protoc_insertion_point(arena_constructor:RemoNet.Candidate)
  4559. }
  4560. Candidate::Candidate(const Candidate& from)
  4561. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4562. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4563. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4564. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4565. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4566. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4567. if (!from._internal_type().empty()) {
  4568. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  4569. GetArenaForAllocation());
  4570. }
  4571. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4572. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4573. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4574. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4575. if (!from._internal_candidate().empty()) {
  4576. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  4577. GetArenaForAllocation());
  4578. }
  4579. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4580. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4581. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4582. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4583. if (!from._internal_sdpmid().empty()) {
  4584. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  4585. GetArenaForAllocation());
  4586. }
  4587. ::memcpy(&index_, &from.index_,
  4588. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4589. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4590. // @@protoc_insertion_point(copy_constructor:RemoNet.Candidate)
  4591. }
  4592. inline void Candidate::SharedCtor() {
  4593. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4594. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4595. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4596. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4597. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4598. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4599. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4600. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4601. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4602. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4603. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4604. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4605. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4606. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  4607. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4608. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4609. }
  4610. Candidate::~Candidate() {
  4611. // @@protoc_insertion_point(destructor:RemoNet.Candidate)
  4612. if (GetArenaForAllocation() != nullptr) return;
  4613. SharedDtor();
  4614. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4615. }
  4616. inline void Candidate::SharedDtor() {
  4617. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4618. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4619. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4620. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  4621. }
  4622. void Candidate::ArenaDtor(void* object) {
  4623. Candidate* _this = reinterpret_cast< Candidate* >(object);
  4624. (void)_this;
  4625. }
  4626. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4627. }
  4628. void Candidate::SetCachedSize(int size) const {
  4629. _cached_size_.Set(size);
  4630. }
  4631. void Candidate::Clear() {
  4632. // @@protoc_insertion_point(message_clear_start:RemoNet.Candidate)
  4633. uint32_t cached_has_bits = 0;
  4634. // Prevent compiler warnings about cached_has_bits being unused
  4635. (void) cached_has_bits;
  4636. type_.ClearToEmpty();
  4637. candidate_.ClearToEmpty();
  4638. sdpmid_.ClearToEmpty();
  4639. ::memset(&index_, 0, static_cast<size_t>(
  4640. reinterpret_cast<char*>(&egotype_) -
  4641. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  4642. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4643. }
  4644. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4645. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4646. while (!ctx->Done(&ptr)) {
  4647. uint32_t tag;
  4648. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4649. switch (tag >> 3) {
  4650. // int32 index = 1;
  4651. case 1:
  4652. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4653. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4654. CHK_(ptr);
  4655. } else
  4656. goto handle_unusual;
  4657. continue;
  4658. // int32 peer = 2;
  4659. case 2:
  4660. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4661. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4662. CHK_(ptr);
  4663. } else
  4664. goto handle_unusual;
  4665. continue;
  4666. // string type = 3;
  4667. case 3:
  4668. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  4669. auto str = _internal_mutable_type();
  4670. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4671. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.type"));
  4672. CHK_(ptr);
  4673. } else
  4674. goto handle_unusual;
  4675. continue;
  4676. // string candidate = 4;
  4677. case 4:
  4678. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  4679. auto str = _internal_mutable_candidate();
  4680. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4681. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.candidate"));
  4682. CHK_(ptr);
  4683. } else
  4684. goto handle_unusual;
  4685. continue;
  4686. // int32 sdpMLineIndex = 5;
  4687. case 5:
  4688. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  4689. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4690. CHK_(ptr);
  4691. } else
  4692. goto handle_unusual;
  4693. continue;
  4694. // string sdpMid = 6;
  4695. case 6:
  4696. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  4697. auto str = _internal_mutable_sdpmid();
  4698. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  4699. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.Candidate.sdpMid"));
  4700. CHK_(ptr);
  4701. } else
  4702. goto handle_unusual;
  4703. continue;
  4704. // int32 egotype = 7;
  4705. case 7:
  4706. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  4707. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4708. CHK_(ptr);
  4709. } else
  4710. goto handle_unusual;
  4711. continue;
  4712. default:
  4713. goto handle_unusual;
  4714. } // switch
  4715. handle_unusual:
  4716. if ((tag == 0) || ((tag & 7) == 4)) {
  4717. CHK_(ptr);
  4718. ctx->SetLastTag(tag);
  4719. goto message_done;
  4720. }
  4721. ptr = UnknownFieldParse(
  4722. tag,
  4723. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4724. ptr, ctx);
  4725. CHK_(ptr != nullptr);
  4726. } // while
  4727. message_done:
  4728. return ptr;
  4729. failure:
  4730. ptr = nullptr;
  4731. goto message_done;
  4732. #undef CHK_
  4733. }
  4734. uint8_t* Candidate::_InternalSerialize(
  4735. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4736. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Candidate)
  4737. uint32_t cached_has_bits = 0;
  4738. (void) cached_has_bits;
  4739. // int32 index = 1;
  4740. if (this->_internal_index() != 0) {
  4741. target = stream->EnsureSpace(target);
  4742. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  4743. }
  4744. // int32 peer = 2;
  4745. if (this->_internal_peer() != 0) {
  4746. target = stream->EnsureSpace(target);
  4747. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  4748. }
  4749. // string type = 3;
  4750. if (!this->_internal_type().empty()) {
  4751. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4752. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  4753. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4754. "RemoNet.Candidate.type");
  4755. target = stream->WriteStringMaybeAliased(
  4756. 3, this->_internal_type(), target);
  4757. }
  4758. // string candidate = 4;
  4759. if (!this->_internal_candidate().empty()) {
  4760. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4761. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  4762. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4763. "RemoNet.Candidate.candidate");
  4764. target = stream->WriteStringMaybeAliased(
  4765. 4, this->_internal_candidate(), target);
  4766. }
  4767. // int32 sdpMLineIndex = 5;
  4768. if (this->_internal_sdpmlineindex() != 0) {
  4769. target = stream->EnsureSpace(target);
  4770. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  4771. }
  4772. // string sdpMid = 6;
  4773. if (!this->_internal_sdpmid().empty()) {
  4774. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  4775. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  4776. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  4777. "RemoNet.Candidate.sdpMid");
  4778. target = stream->WriteStringMaybeAliased(
  4779. 6, this->_internal_sdpmid(), target);
  4780. }
  4781. // int32 egotype = 7;
  4782. if (this->_internal_egotype() != 0) {
  4783. target = stream->EnsureSpace(target);
  4784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  4785. }
  4786. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4787. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  4788. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4789. }
  4790. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Candidate)
  4791. return target;
  4792. }
  4793. size_t Candidate::ByteSizeLong() const {
  4794. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Candidate)
  4795. size_t total_size = 0;
  4796. uint32_t cached_has_bits = 0;
  4797. // Prevent compiler warnings about cached_has_bits being unused
  4798. (void) cached_has_bits;
  4799. // string type = 3;
  4800. if (!this->_internal_type().empty()) {
  4801. total_size += 1 +
  4802. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4803. this->_internal_type());
  4804. }
  4805. // string candidate = 4;
  4806. if (!this->_internal_candidate().empty()) {
  4807. total_size += 1 +
  4808. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4809. this->_internal_candidate());
  4810. }
  4811. // string sdpMid = 6;
  4812. if (!this->_internal_sdpmid().empty()) {
  4813. total_size += 1 +
  4814. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  4815. this->_internal_sdpmid());
  4816. }
  4817. // int32 index = 1;
  4818. if (this->_internal_index() != 0) {
  4819. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  4820. }
  4821. // int32 peer = 2;
  4822. if (this->_internal_peer() != 0) {
  4823. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  4824. }
  4825. // int32 sdpMLineIndex = 5;
  4826. if (this->_internal_sdpmlineindex() != 0) {
  4827. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  4828. }
  4829. // int32 egotype = 7;
  4830. if (this->_internal_egotype() != 0) {
  4831. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  4832. }
  4833. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  4834. }
  4835. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  4836. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  4837. Candidate::MergeImpl
  4838. };
  4839. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  4840. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  4841. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  4842. static_cast<Candidate *>(to)->MergeFrom(
  4843. static_cast<const Candidate &>(from));
  4844. }
  4845. void Candidate::MergeFrom(const Candidate& from) {
  4846. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Candidate)
  4847. GOOGLE_DCHECK_NE(&from, this);
  4848. uint32_t cached_has_bits = 0;
  4849. (void) cached_has_bits;
  4850. if (!from._internal_type().empty()) {
  4851. _internal_set_type(from._internal_type());
  4852. }
  4853. if (!from._internal_candidate().empty()) {
  4854. _internal_set_candidate(from._internal_candidate());
  4855. }
  4856. if (!from._internal_sdpmid().empty()) {
  4857. _internal_set_sdpmid(from._internal_sdpmid());
  4858. }
  4859. if (from._internal_index() != 0) {
  4860. _internal_set_index(from._internal_index());
  4861. }
  4862. if (from._internal_peer() != 0) {
  4863. _internal_set_peer(from._internal_peer());
  4864. }
  4865. if (from._internal_sdpmlineindex() != 0) {
  4866. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  4867. }
  4868. if (from._internal_egotype() != 0) {
  4869. _internal_set_egotype(from._internal_egotype());
  4870. }
  4871. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4872. }
  4873. void Candidate::CopyFrom(const Candidate& from) {
  4874. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Candidate)
  4875. if (&from == this) return;
  4876. Clear();
  4877. MergeFrom(from);
  4878. }
  4879. bool Candidate::IsInitialized() const {
  4880. return true;
  4881. }
  4882. void Candidate::InternalSwap(Candidate* other) {
  4883. using std::swap;
  4884. auto* lhs_arena = GetArenaForAllocation();
  4885. auto* rhs_arena = other->GetArenaForAllocation();
  4886. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4887. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4888. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4889. &type_, lhs_arena,
  4890. &other->type_, rhs_arena
  4891. );
  4892. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4893. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4894. &candidate_, lhs_arena,
  4895. &other->candidate_, rhs_arena
  4896. );
  4897. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  4898. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  4899. &sdpmid_, lhs_arena,
  4900. &other->sdpmid_, rhs_arena
  4901. );
  4902. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4903. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  4904. + sizeof(Candidate::egotype_)
  4905. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  4906. reinterpret_cast<char*>(&index_),
  4907. reinterpret_cast<char*>(&other->index_));
  4908. }
  4909. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  4910. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  4911. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  4912. file_level_metadata_protocol_2eproto[15]);
  4913. }
  4914. // ===================================================================
  4915. class Leave::_Internal {
  4916. public:
  4917. };
  4918. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4919. bool is_message_owned)
  4920. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  4921. SharedCtor();
  4922. if (!is_message_owned) {
  4923. RegisterArenaDtor(arena);
  4924. }
  4925. // @@protoc_insertion_point(arena_constructor:RemoNet.Leave)
  4926. }
  4927. Leave::Leave(const Leave& from)
  4928. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4929. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4930. ::memcpy(&peer_, &from.peer_,
  4931. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4932. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4933. // @@protoc_insertion_point(copy_constructor:RemoNet.Leave)
  4934. }
  4935. inline void Leave::SharedCtor() {
  4936. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  4937. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  4938. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  4939. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4940. }
  4941. Leave::~Leave() {
  4942. // @@protoc_insertion_point(destructor:RemoNet.Leave)
  4943. if (GetArenaForAllocation() != nullptr) return;
  4944. SharedDtor();
  4945. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4946. }
  4947. inline void Leave::SharedDtor() {
  4948. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  4949. }
  4950. void Leave::ArenaDtor(void* object) {
  4951. Leave* _this = reinterpret_cast< Leave* >(object);
  4952. (void)_this;
  4953. }
  4954. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  4955. }
  4956. void Leave::SetCachedSize(int size) const {
  4957. _cached_size_.Set(size);
  4958. }
  4959. void Leave::Clear() {
  4960. // @@protoc_insertion_point(message_clear_start:RemoNet.Leave)
  4961. uint32_t cached_has_bits = 0;
  4962. // Prevent compiler warnings about cached_has_bits being unused
  4963. (void) cached_has_bits;
  4964. ::memset(&peer_, 0, static_cast<size_t>(
  4965. reinterpret_cast<char*>(&egotype_) -
  4966. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  4967. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4968. }
  4969. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  4970. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4971. while (!ctx->Done(&ptr)) {
  4972. uint32_t tag;
  4973. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  4974. switch (tag >> 3) {
  4975. // int32 peer = 1;
  4976. case 1:
  4977. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  4978. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4979. CHK_(ptr);
  4980. } else
  4981. goto handle_unusual;
  4982. continue;
  4983. // int32 egotype = 2;
  4984. case 2:
  4985. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  4986. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  4987. CHK_(ptr);
  4988. } else
  4989. goto handle_unusual;
  4990. continue;
  4991. default:
  4992. goto handle_unusual;
  4993. } // switch
  4994. handle_unusual:
  4995. if ((tag == 0) || ((tag & 7) == 4)) {
  4996. CHK_(ptr);
  4997. ctx->SetLastTag(tag);
  4998. goto message_done;
  4999. }
  5000. ptr = UnknownFieldParse(
  5001. tag,
  5002. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5003. ptr, ctx);
  5004. CHK_(ptr != nullptr);
  5005. } // while
  5006. message_done:
  5007. return ptr;
  5008. failure:
  5009. ptr = nullptr;
  5010. goto message_done;
  5011. #undef CHK_
  5012. }
  5013. uint8_t* Leave::_InternalSerialize(
  5014. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5015. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Leave)
  5016. uint32_t cached_has_bits = 0;
  5017. (void) cached_has_bits;
  5018. // int32 peer = 1;
  5019. if (this->_internal_peer() != 0) {
  5020. target = stream->EnsureSpace(target);
  5021. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  5022. }
  5023. // int32 egotype = 2;
  5024. if (this->_internal_egotype() != 0) {
  5025. target = stream->EnsureSpace(target);
  5026. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  5027. }
  5028. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5029. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5030. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5031. }
  5032. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Leave)
  5033. return target;
  5034. }
  5035. size_t Leave::ByteSizeLong() const {
  5036. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Leave)
  5037. size_t total_size = 0;
  5038. uint32_t cached_has_bits = 0;
  5039. // Prevent compiler warnings about cached_has_bits being unused
  5040. (void) cached_has_bits;
  5041. // int32 peer = 1;
  5042. if (this->_internal_peer() != 0) {
  5043. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5044. }
  5045. // int32 egotype = 2;
  5046. if (this->_internal_egotype() != 0) {
  5047. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5048. }
  5049. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5050. }
  5051. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  5052. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5053. Leave::MergeImpl
  5054. };
  5055. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  5056. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5057. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5058. static_cast<Leave *>(to)->MergeFrom(
  5059. static_cast<const Leave &>(from));
  5060. }
  5061. void Leave::MergeFrom(const Leave& from) {
  5062. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Leave)
  5063. GOOGLE_DCHECK_NE(&from, this);
  5064. uint32_t cached_has_bits = 0;
  5065. (void) cached_has_bits;
  5066. if (from._internal_peer() != 0) {
  5067. _internal_set_peer(from._internal_peer());
  5068. }
  5069. if (from._internal_egotype() != 0) {
  5070. _internal_set_egotype(from._internal_egotype());
  5071. }
  5072. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5073. }
  5074. void Leave::CopyFrom(const Leave& from) {
  5075. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Leave)
  5076. if (&from == this) return;
  5077. Clear();
  5078. MergeFrom(from);
  5079. }
  5080. bool Leave::IsInitialized() const {
  5081. return true;
  5082. }
  5083. void Leave::InternalSwap(Leave* other) {
  5084. using std::swap;
  5085. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5086. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5087. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  5088. + sizeof(Leave::egotype_)
  5089. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  5090. reinterpret_cast<char*>(&peer_),
  5091. reinterpret_cast<char*>(&other->peer_));
  5092. }
  5093. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  5094. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5095. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5096. file_level_metadata_protocol_2eproto[16]);
  5097. }
  5098. // ===================================================================
  5099. class Close::_Internal {
  5100. public:
  5101. };
  5102. Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5103. bool is_message_owned)
  5104. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5105. SharedCtor();
  5106. if (!is_message_owned) {
  5107. RegisterArenaDtor(arena);
  5108. }
  5109. // @@protoc_insertion_point(arena_constructor:RemoNet.Close)
  5110. }
  5111. Close::Close(const Close& from)
  5112. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5113. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5114. ::memcpy(&peer_, &from.peer_,
  5115. static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  5116. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  5117. // @@protoc_insertion_point(copy_constructor:RemoNet.Close)
  5118. }
  5119. inline void Close::SharedCtor() {
  5120. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5121. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  5122. 0, static_cast<size_t>(reinterpret_cast<char*>(&index_) -
  5123. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  5124. }
  5125. Close::~Close() {
  5126. // @@protoc_insertion_point(destructor:RemoNet.Close)
  5127. if (GetArenaForAllocation() != nullptr) return;
  5128. SharedDtor();
  5129. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5130. }
  5131. inline void Close::SharedDtor() {
  5132. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5133. }
  5134. void Close::ArenaDtor(void* object) {
  5135. Close* _this = reinterpret_cast< Close* >(object);
  5136. (void)_this;
  5137. }
  5138. void Close::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5139. }
  5140. void Close::SetCachedSize(int size) const {
  5141. _cached_size_.Set(size);
  5142. }
  5143. void Close::Clear() {
  5144. // @@protoc_insertion_point(message_clear_start:RemoNet.Close)
  5145. uint32_t cached_has_bits = 0;
  5146. // Prevent compiler warnings about cached_has_bits being unused
  5147. (void) cached_has_bits;
  5148. ::memset(&peer_, 0, static_cast<size_t>(
  5149. reinterpret_cast<char*>(&index_) -
  5150. reinterpret_cast<char*>(&peer_)) + sizeof(index_));
  5151. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5152. }
  5153. const char* Close::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5154. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5155. while (!ctx->Done(&ptr)) {
  5156. uint32_t tag;
  5157. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5158. switch (tag >> 3) {
  5159. // int32 peer = 1;
  5160. case 1:
  5161. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5162. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5163. CHK_(ptr);
  5164. } else
  5165. goto handle_unusual;
  5166. continue;
  5167. // int32 egotype = 2;
  5168. case 2:
  5169. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5170. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5171. CHK_(ptr);
  5172. } else
  5173. goto handle_unusual;
  5174. continue;
  5175. // int32 index = 3;
  5176. case 3:
  5177. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  5178. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5179. CHK_(ptr);
  5180. } else
  5181. goto handle_unusual;
  5182. continue;
  5183. default:
  5184. goto handle_unusual;
  5185. } // switch
  5186. handle_unusual:
  5187. if ((tag == 0) || ((tag & 7) == 4)) {
  5188. CHK_(ptr);
  5189. ctx->SetLastTag(tag);
  5190. goto message_done;
  5191. }
  5192. ptr = UnknownFieldParse(
  5193. tag,
  5194. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5195. ptr, ctx);
  5196. CHK_(ptr != nullptr);
  5197. } // while
  5198. message_done:
  5199. return ptr;
  5200. failure:
  5201. ptr = nullptr;
  5202. goto message_done;
  5203. #undef CHK_
  5204. }
  5205. uint8_t* Close::_InternalSerialize(
  5206. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5207. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Close)
  5208. uint32_t cached_has_bits = 0;
  5209. (void) cached_has_bits;
  5210. // int32 peer = 1;
  5211. if (this->_internal_peer() != 0) {
  5212. target = stream->EnsureSpace(target);
  5213. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  5214. }
  5215. // int32 egotype = 2;
  5216. if (this->_internal_egotype() != 0) {
  5217. target = stream->EnsureSpace(target);
  5218. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  5219. }
  5220. // int32 index = 3;
  5221. if (this->_internal_index() != 0) {
  5222. target = stream->EnsureSpace(target);
  5223. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  5224. }
  5225. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5226. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5227. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5228. }
  5229. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Close)
  5230. return target;
  5231. }
  5232. size_t Close::ByteSizeLong() const {
  5233. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Close)
  5234. size_t total_size = 0;
  5235. uint32_t cached_has_bits = 0;
  5236. // Prevent compiler warnings about cached_has_bits being unused
  5237. (void) cached_has_bits;
  5238. // int32 peer = 1;
  5239. if (this->_internal_peer() != 0) {
  5240. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  5241. }
  5242. // int32 egotype = 2;
  5243. if (this->_internal_egotype() != 0) {
  5244. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  5245. }
  5246. // int32 index = 3;
  5247. if (this->_internal_index() != 0) {
  5248. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  5249. }
  5250. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5251. }
  5252. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
  5253. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5254. Close::MergeImpl
  5255. };
  5256. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
  5257. void Close::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5258. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5259. static_cast<Close *>(to)->MergeFrom(
  5260. static_cast<const Close &>(from));
  5261. }
  5262. void Close::MergeFrom(const Close& from) {
  5263. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Close)
  5264. GOOGLE_DCHECK_NE(&from, this);
  5265. uint32_t cached_has_bits = 0;
  5266. (void) cached_has_bits;
  5267. if (from._internal_peer() != 0) {
  5268. _internal_set_peer(from._internal_peer());
  5269. }
  5270. if (from._internal_egotype() != 0) {
  5271. _internal_set_egotype(from._internal_egotype());
  5272. }
  5273. if (from._internal_index() != 0) {
  5274. _internal_set_index(from._internal_index());
  5275. }
  5276. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5277. }
  5278. void Close::CopyFrom(const Close& from) {
  5279. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Close)
  5280. if (&from == this) return;
  5281. Clear();
  5282. MergeFrom(from);
  5283. }
  5284. bool Close::IsInitialized() const {
  5285. return true;
  5286. }
  5287. void Close::InternalSwap(Close* other) {
  5288. using std::swap;
  5289. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5290. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5291. PROTOBUF_FIELD_OFFSET(Close, index_)
  5292. + sizeof(Close::index_)
  5293. - PROTOBUF_FIELD_OFFSET(Close, peer_)>(
  5294. reinterpret_cast<char*>(&peer_),
  5295. reinterpret_cast<char*>(&other->peer_));
  5296. }
  5297. ::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
  5298. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5299. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5300. file_level_metadata_protocol_2eproto[17]);
  5301. }
  5302. // ===================================================================
  5303. class TestTextReq::_Internal {
  5304. public:
  5305. };
  5306. TestTextReq::TestTextReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5307. bool is_message_owned)
  5308. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5309. SharedCtor();
  5310. if (!is_message_owned) {
  5311. RegisterArenaDtor(arena);
  5312. }
  5313. // @@protoc_insertion_point(arena_constructor:RemoNet.TestTextReq)
  5314. }
  5315. TestTextReq::TestTextReq(const TestTextReq& from)
  5316. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5317. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5318. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5319. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5320. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5321. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5322. if (!from._internal_text().empty()) {
  5323. text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(),
  5324. GetArenaForAllocation());
  5325. }
  5326. // @@protoc_insertion_point(copy_constructor:RemoNet.TestTextReq)
  5327. }
  5328. inline void TestTextReq::SharedCtor() {
  5329. text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5330. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5331. text_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5332. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5333. }
  5334. TestTextReq::~TestTextReq() {
  5335. // @@protoc_insertion_point(destructor:RemoNet.TestTextReq)
  5336. if (GetArenaForAllocation() != nullptr) return;
  5337. SharedDtor();
  5338. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5339. }
  5340. inline void TestTextReq::SharedDtor() {
  5341. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5342. text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5343. }
  5344. void TestTextReq::ArenaDtor(void* object) {
  5345. TestTextReq* _this = reinterpret_cast< TestTextReq* >(object);
  5346. (void)_this;
  5347. }
  5348. void TestTextReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5349. }
  5350. void TestTextReq::SetCachedSize(int size) const {
  5351. _cached_size_.Set(size);
  5352. }
  5353. void TestTextReq::Clear() {
  5354. // @@protoc_insertion_point(message_clear_start:RemoNet.TestTextReq)
  5355. uint32_t cached_has_bits = 0;
  5356. // Prevent compiler warnings about cached_has_bits being unused
  5357. (void) cached_has_bits;
  5358. text_.ClearToEmpty();
  5359. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5360. }
  5361. const char* TestTextReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5362. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5363. while (!ctx->Done(&ptr)) {
  5364. uint32_t tag;
  5365. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5366. switch (tag >> 3) {
  5367. // string text = 1;
  5368. case 1:
  5369. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  5370. auto str = _internal_mutable_text();
  5371. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5372. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.TestTextReq.text"));
  5373. CHK_(ptr);
  5374. } else
  5375. goto handle_unusual;
  5376. continue;
  5377. default:
  5378. goto handle_unusual;
  5379. } // switch
  5380. handle_unusual:
  5381. if ((tag == 0) || ((tag & 7) == 4)) {
  5382. CHK_(ptr);
  5383. ctx->SetLastTag(tag);
  5384. goto message_done;
  5385. }
  5386. ptr = UnknownFieldParse(
  5387. tag,
  5388. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5389. ptr, ctx);
  5390. CHK_(ptr != nullptr);
  5391. } // while
  5392. message_done:
  5393. return ptr;
  5394. failure:
  5395. ptr = nullptr;
  5396. goto message_done;
  5397. #undef CHK_
  5398. }
  5399. uint8_t* TestTextReq::_InternalSerialize(
  5400. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5401. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.TestTextReq)
  5402. uint32_t cached_has_bits = 0;
  5403. (void) cached_has_bits;
  5404. // string text = 1;
  5405. if (!this->_internal_text().empty()) {
  5406. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  5407. this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
  5408. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  5409. "RemoNet.TestTextReq.text");
  5410. target = stream->WriteStringMaybeAliased(
  5411. 1, this->_internal_text(), target);
  5412. }
  5413. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5415. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5416. }
  5417. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.TestTextReq)
  5418. return target;
  5419. }
  5420. size_t TestTextReq::ByteSizeLong() const {
  5421. // @@protoc_insertion_point(message_byte_size_start:RemoNet.TestTextReq)
  5422. size_t total_size = 0;
  5423. uint32_t cached_has_bits = 0;
  5424. // Prevent compiler warnings about cached_has_bits being unused
  5425. (void) cached_has_bits;
  5426. // string text = 1;
  5427. if (!this->_internal_text().empty()) {
  5428. total_size += 1 +
  5429. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  5430. this->_internal_text());
  5431. }
  5432. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5433. }
  5434. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TestTextReq::_class_data_ = {
  5435. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5436. TestTextReq::MergeImpl
  5437. };
  5438. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TestTextReq::GetClassData() const { return &_class_data_; }
  5439. void TestTextReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5440. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5441. static_cast<TestTextReq *>(to)->MergeFrom(
  5442. static_cast<const TestTextReq &>(from));
  5443. }
  5444. void TestTextReq::MergeFrom(const TestTextReq& from) {
  5445. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.TestTextReq)
  5446. GOOGLE_DCHECK_NE(&from, this);
  5447. uint32_t cached_has_bits = 0;
  5448. (void) cached_has_bits;
  5449. if (!from._internal_text().empty()) {
  5450. _internal_set_text(from._internal_text());
  5451. }
  5452. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5453. }
  5454. void TestTextReq::CopyFrom(const TestTextReq& from) {
  5455. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.TestTextReq)
  5456. if (&from == this) return;
  5457. Clear();
  5458. MergeFrom(from);
  5459. }
  5460. bool TestTextReq::IsInitialized() const {
  5461. return true;
  5462. }
  5463. void TestTextReq::InternalSwap(TestTextReq* other) {
  5464. using std::swap;
  5465. auto* lhs_arena = GetArenaForAllocation();
  5466. auto* rhs_arena = other->GetArenaForAllocation();
  5467. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5468. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5469. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5470. &text_, lhs_arena,
  5471. &other->text_, rhs_arena
  5472. );
  5473. }
  5474. ::PROTOBUF_NAMESPACE_ID::Metadata TestTextReq::GetMetadata() const {
  5475. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5476. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5477. file_level_metadata_protocol_2eproto[18]);
  5478. }
  5479. // ===================================================================
  5480. class CanMessage::_Internal {
  5481. public:
  5482. };
  5483. CanMessage::CanMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5484. bool is_message_owned)
  5485. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5486. SharedCtor();
  5487. if (!is_message_owned) {
  5488. RegisterArenaDtor(arena);
  5489. }
  5490. // @@protoc_insertion_point(arena_constructor:RemoNet.CanMessage)
  5491. }
  5492. CanMessage::CanMessage(const CanMessage& from)
  5493. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5494. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5495. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5496. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5497. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5498. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5499. if (!from._internal_data().empty()) {
  5500. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  5501. GetArenaForAllocation());
  5502. }
  5503. ::memcpy(&head_, &from.head_,
  5504. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5505. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5506. // @@protoc_insertion_point(copy_constructor:RemoNet.CanMessage)
  5507. }
  5508. inline void CanMessage::SharedCtor() {
  5509. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5510. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5511. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5512. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5513. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  5514. reinterpret_cast<char*>(&head_) - reinterpret_cast<char*>(this)),
  5515. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  5516. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5517. }
  5518. CanMessage::~CanMessage() {
  5519. // @@protoc_insertion_point(destructor:RemoNet.CanMessage)
  5520. if (GetArenaForAllocation() != nullptr) return;
  5521. SharedDtor();
  5522. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5523. }
  5524. inline void CanMessage::SharedDtor() {
  5525. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5526. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  5527. }
  5528. void CanMessage::ArenaDtor(void* object) {
  5529. CanMessage* _this = reinterpret_cast< CanMessage* >(object);
  5530. (void)_this;
  5531. }
  5532. void CanMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5533. }
  5534. void CanMessage::SetCachedSize(int size) const {
  5535. _cached_size_.Set(size);
  5536. }
  5537. void CanMessage::Clear() {
  5538. // @@protoc_insertion_point(message_clear_start:RemoNet.CanMessage)
  5539. uint32_t cached_has_bits = 0;
  5540. // Prevent compiler warnings about cached_has_bits being unused
  5541. (void) cached_has_bits;
  5542. data_.ClearToEmpty();
  5543. ::memset(&head_, 0, static_cast<size_t>(
  5544. reinterpret_cast<char*>(&canid_) -
  5545. reinterpret_cast<char*>(&head_)) + sizeof(canid_));
  5546. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5547. }
  5548. const char* CanMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5549. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5550. while (!ctx->Done(&ptr)) {
  5551. uint32_t tag;
  5552. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5553. switch (tag >> 3) {
  5554. // int32 head = 1;
  5555. case 1:
  5556. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5557. head_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5558. CHK_(ptr);
  5559. } else
  5560. goto handle_unusual;
  5561. continue;
  5562. // int32 canid = 2;
  5563. case 2:
  5564. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  5565. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  5566. CHK_(ptr);
  5567. } else
  5568. goto handle_unusual;
  5569. continue;
  5570. // bytes data = 3;
  5571. case 3:
  5572. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  5573. auto str = _internal_mutable_data();
  5574. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  5575. CHK_(ptr);
  5576. } else
  5577. goto handle_unusual;
  5578. continue;
  5579. default:
  5580. goto handle_unusual;
  5581. } // switch
  5582. handle_unusual:
  5583. if ((tag == 0) || ((tag & 7) == 4)) {
  5584. CHK_(ptr);
  5585. ctx->SetLastTag(tag);
  5586. goto message_done;
  5587. }
  5588. ptr = UnknownFieldParse(
  5589. tag,
  5590. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5591. ptr, ctx);
  5592. CHK_(ptr != nullptr);
  5593. } // while
  5594. message_done:
  5595. return ptr;
  5596. failure:
  5597. ptr = nullptr;
  5598. goto message_done;
  5599. #undef CHK_
  5600. }
  5601. uint8_t* CanMessage::_InternalSerialize(
  5602. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5603. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CanMessage)
  5604. uint32_t cached_has_bits = 0;
  5605. (void) cached_has_bits;
  5606. // int32 head = 1;
  5607. if (this->_internal_head() != 0) {
  5608. target = stream->EnsureSpace(target);
  5609. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_head(), target);
  5610. }
  5611. // int32 canid = 2;
  5612. if (this->_internal_canid() != 0) {
  5613. target = stream->EnsureSpace(target);
  5614. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  5615. }
  5616. // bytes data = 3;
  5617. if (!this->_internal_data().empty()) {
  5618. target = stream->WriteBytesMaybeAliased(
  5619. 3, this->_internal_data(), target);
  5620. }
  5621. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5622. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5623. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5624. }
  5625. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CanMessage)
  5626. return target;
  5627. }
  5628. size_t CanMessage::ByteSizeLong() const {
  5629. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CanMessage)
  5630. size_t total_size = 0;
  5631. uint32_t cached_has_bits = 0;
  5632. // Prevent compiler warnings about cached_has_bits being unused
  5633. (void) cached_has_bits;
  5634. // bytes data = 3;
  5635. if (!this->_internal_data().empty()) {
  5636. total_size += 1 +
  5637. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  5638. this->_internal_data());
  5639. }
  5640. // int32 head = 1;
  5641. if (this->_internal_head() != 0) {
  5642. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_head());
  5643. }
  5644. // int32 canid = 2;
  5645. if (this->_internal_canid() != 0) {
  5646. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  5647. }
  5648. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5649. }
  5650. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CanMessage::_class_data_ = {
  5651. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5652. CanMessage::MergeImpl
  5653. };
  5654. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CanMessage::GetClassData() const { return &_class_data_; }
  5655. void CanMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5656. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5657. static_cast<CanMessage *>(to)->MergeFrom(
  5658. static_cast<const CanMessage &>(from));
  5659. }
  5660. void CanMessage::MergeFrom(const CanMessage& from) {
  5661. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CanMessage)
  5662. GOOGLE_DCHECK_NE(&from, this);
  5663. uint32_t cached_has_bits = 0;
  5664. (void) cached_has_bits;
  5665. if (!from._internal_data().empty()) {
  5666. _internal_set_data(from._internal_data());
  5667. }
  5668. if (from._internal_head() != 0) {
  5669. _internal_set_head(from._internal_head());
  5670. }
  5671. if (from._internal_canid() != 0) {
  5672. _internal_set_canid(from._internal_canid());
  5673. }
  5674. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5675. }
  5676. void CanMessage::CopyFrom(const CanMessage& from) {
  5677. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CanMessage)
  5678. if (&from == this) return;
  5679. Clear();
  5680. MergeFrom(from);
  5681. }
  5682. bool CanMessage::IsInitialized() const {
  5683. return true;
  5684. }
  5685. void CanMessage::InternalSwap(CanMessage* other) {
  5686. using std::swap;
  5687. auto* lhs_arena = GetArenaForAllocation();
  5688. auto* rhs_arena = other->GetArenaForAllocation();
  5689. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5690. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  5691. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  5692. &data_, lhs_arena,
  5693. &other->data_, rhs_arena
  5694. );
  5695. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  5696. PROTOBUF_FIELD_OFFSET(CanMessage, canid_)
  5697. + sizeof(CanMessage::canid_)
  5698. - PROTOBUF_FIELD_OFFSET(CanMessage, head_)>(
  5699. reinterpret_cast<char*>(&head_),
  5700. reinterpret_cast<char*>(&other->head_));
  5701. }
  5702. ::PROTOBUF_NAMESPACE_ID::Metadata CanMessage::GetMetadata() const {
  5703. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5704. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5705. file_level_metadata_protocol_2eproto[19]);
  5706. }
  5707. // ===================================================================
  5708. class CCCanMesage::_Internal {
  5709. public:
  5710. };
  5711. CCCanMesage::CCCanMesage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5712. bool is_message_owned)
  5713. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  5714. message_(arena) {
  5715. SharedCtor();
  5716. if (!is_message_owned) {
  5717. RegisterArenaDtor(arena);
  5718. }
  5719. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMesage)
  5720. }
  5721. CCCanMesage::CCCanMesage(const CCCanMesage& from)
  5722. : ::PROTOBUF_NAMESPACE_ID::Message(),
  5723. message_(from.message_) {
  5724. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5725. islidar_ = from.islidar_;
  5726. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMesage)
  5727. }
  5728. inline void CCCanMesage::SharedCtor() {
  5729. islidar_ = false;
  5730. }
  5731. CCCanMesage::~CCCanMesage() {
  5732. // @@protoc_insertion_point(destructor:RemoNet.CCCanMesage)
  5733. if (GetArenaForAllocation() != nullptr) return;
  5734. SharedDtor();
  5735. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5736. }
  5737. inline void CCCanMesage::SharedDtor() {
  5738. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5739. }
  5740. void CCCanMesage::ArenaDtor(void* object) {
  5741. CCCanMesage* _this = reinterpret_cast< CCCanMesage* >(object);
  5742. (void)_this;
  5743. }
  5744. void CCCanMesage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5745. }
  5746. void CCCanMesage::SetCachedSize(int size) const {
  5747. _cached_size_.Set(size);
  5748. }
  5749. void CCCanMesage::Clear() {
  5750. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMesage)
  5751. uint32_t cached_has_bits = 0;
  5752. // Prevent compiler warnings about cached_has_bits being unused
  5753. (void) cached_has_bits;
  5754. message_.Clear();
  5755. islidar_ = false;
  5756. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5757. }
  5758. const char* CCCanMesage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5759. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5760. while (!ctx->Done(&ptr)) {
  5761. uint32_t tag;
  5762. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5763. switch (tag >> 3) {
  5764. // bool islidar = 1;
  5765. case 1:
  5766. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5767. islidar_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5768. CHK_(ptr);
  5769. } else
  5770. goto handle_unusual;
  5771. continue;
  5772. // repeated .RemoNet.CanMessage message = 2;
  5773. case 2:
  5774. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  5775. ptr -= 1;
  5776. do {
  5777. ptr += 1;
  5778. ptr = ctx->ParseMessage(_internal_add_message(), ptr);
  5779. CHK_(ptr);
  5780. if (!ctx->DataAvailable(ptr)) break;
  5781. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  5782. } else
  5783. goto handle_unusual;
  5784. continue;
  5785. default:
  5786. goto handle_unusual;
  5787. } // switch
  5788. handle_unusual:
  5789. if ((tag == 0) || ((tag & 7) == 4)) {
  5790. CHK_(ptr);
  5791. ctx->SetLastTag(tag);
  5792. goto message_done;
  5793. }
  5794. ptr = UnknownFieldParse(
  5795. tag,
  5796. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5797. ptr, ctx);
  5798. CHK_(ptr != nullptr);
  5799. } // while
  5800. message_done:
  5801. return ptr;
  5802. failure:
  5803. ptr = nullptr;
  5804. goto message_done;
  5805. #undef CHK_
  5806. }
  5807. uint8_t* CCCanMesage::_InternalSerialize(
  5808. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5809. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMesage)
  5810. uint32_t cached_has_bits = 0;
  5811. (void) cached_has_bits;
  5812. // bool islidar = 1;
  5813. if (this->_internal_islidar() != 0) {
  5814. target = stream->EnsureSpace(target);
  5815. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_islidar(), target);
  5816. }
  5817. // repeated .RemoNet.CanMessage message = 2;
  5818. for (unsigned int i = 0,
  5819. n = static_cast<unsigned int>(this->_internal_message_size()); i < n; i++) {
  5820. target = stream->EnsureSpace(target);
  5821. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  5822. InternalWriteMessage(2, this->_internal_message(i), target, stream);
  5823. }
  5824. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5825. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5826. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5827. }
  5828. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMesage)
  5829. return target;
  5830. }
  5831. size_t CCCanMesage::ByteSizeLong() const {
  5832. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMesage)
  5833. size_t total_size = 0;
  5834. uint32_t cached_has_bits = 0;
  5835. // Prevent compiler warnings about cached_has_bits being unused
  5836. (void) cached_has_bits;
  5837. // repeated .RemoNet.CanMessage message = 2;
  5838. total_size += 1UL * this->_internal_message_size();
  5839. for (const auto& msg : this->message_) {
  5840. total_size +=
  5841. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  5842. }
  5843. // bool islidar = 1;
  5844. if (this->_internal_islidar() != 0) {
  5845. total_size += 1 + 1;
  5846. }
  5847. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  5848. }
  5849. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMesage::_class_data_ = {
  5850. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  5851. CCCanMesage::MergeImpl
  5852. };
  5853. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMesage::GetClassData() const { return &_class_data_; }
  5854. void CCCanMesage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  5855. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  5856. static_cast<CCCanMesage *>(to)->MergeFrom(
  5857. static_cast<const CCCanMesage &>(from));
  5858. }
  5859. void CCCanMesage::MergeFrom(const CCCanMesage& from) {
  5860. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMesage)
  5861. GOOGLE_DCHECK_NE(&from, this);
  5862. uint32_t cached_has_bits = 0;
  5863. (void) cached_has_bits;
  5864. message_.MergeFrom(from.message_);
  5865. if (from._internal_islidar() != 0) {
  5866. _internal_set_islidar(from._internal_islidar());
  5867. }
  5868. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5869. }
  5870. void CCCanMesage::CopyFrom(const CCCanMesage& from) {
  5871. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMesage)
  5872. if (&from == this) return;
  5873. Clear();
  5874. MergeFrom(from);
  5875. }
  5876. bool CCCanMesage::IsInitialized() const {
  5877. return true;
  5878. }
  5879. void CCCanMesage::InternalSwap(CCCanMesage* other) {
  5880. using std::swap;
  5881. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  5882. message_.InternalSwap(&other->message_);
  5883. swap(islidar_, other->islidar_);
  5884. }
  5885. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMesage::GetMetadata() const {
  5886. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  5887. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  5888. file_level_metadata_protocol_2eproto[20]);
  5889. }
  5890. // ===================================================================
  5891. class Wiper::_Internal {
  5892. public:
  5893. };
  5894. Wiper::Wiper(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5895. bool is_message_owned)
  5896. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  5897. SharedCtor();
  5898. if (!is_message_owned) {
  5899. RegisterArenaDtor(arena);
  5900. }
  5901. // @@protoc_insertion_point(arena_constructor:RemoNet.Wiper)
  5902. }
  5903. Wiper::Wiper(const Wiper& from)
  5904. : ::PROTOBUF_NAMESPACE_ID::Message() {
  5905. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  5906. ret_ = from.ret_;
  5907. // @@protoc_insertion_point(copy_constructor:RemoNet.Wiper)
  5908. }
  5909. inline void Wiper::SharedCtor() {
  5910. ret_ = false;
  5911. }
  5912. Wiper::~Wiper() {
  5913. // @@protoc_insertion_point(destructor:RemoNet.Wiper)
  5914. if (GetArenaForAllocation() != nullptr) return;
  5915. SharedDtor();
  5916. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5917. }
  5918. inline void Wiper::SharedDtor() {
  5919. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  5920. }
  5921. void Wiper::ArenaDtor(void* object) {
  5922. Wiper* _this = reinterpret_cast< Wiper* >(object);
  5923. (void)_this;
  5924. }
  5925. void Wiper::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  5926. }
  5927. void Wiper::SetCachedSize(int size) const {
  5928. _cached_size_.Set(size);
  5929. }
  5930. void Wiper::Clear() {
  5931. // @@protoc_insertion_point(message_clear_start:RemoNet.Wiper)
  5932. uint32_t cached_has_bits = 0;
  5933. // Prevent compiler warnings about cached_has_bits being unused
  5934. (void) cached_has_bits;
  5935. ret_ = false;
  5936. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5937. }
  5938. const char* Wiper::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  5939. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  5940. while (!ctx->Done(&ptr)) {
  5941. uint32_t tag;
  5942. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  5943. switch (tag >> 3) {
  5944. // bool ret = 1;
  5945. case 1:
  5946. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  5947. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  5948. CHK_(ptr);
  5949. } else
  5950. goto handle_unusual;
  5951. continue;
  5952. default:
  5953. goto handle_unusual;
  5954. } // switch
  5955. handle_unusual:
  5956. if ((tag == 0) || ((tag & 7) == 4)) {
  5957. CHK_(ptr);
  5958. ctx->SetLastTag(tag);
  5959. goto message_done;
  5960. }
  5961. ptr = UnknownFieldParse(
  5962. tag,
  5963. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  5964. ptr, ctx);
  5965. CHK_(ptr != nullptr);
  5966. } // while
  5967. message_done:
  5968. return ptr;
  5969. failure:
  5970. ptr = nullptr;
  5971. goto message_done;
  5972. #undef CHK_
  5973. }
  5974. uint8_t* Wiper::_InternalSerialize(
  5975. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  5976. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.Wiper)
  5977. uint32_t cached_has_bits = 0;
  5978. (void) cached_has_bits;
  5979. // bool ret = 1;
  5980. if (this->_internal_ret() != 0) {
  5981. target = stream->EnsureSpace(target);
  5982. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  5983. }
  5984. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  5985. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  5986. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  5987. }
  5988. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.Wiper)
  5989. return target;
  5990. }
  5991. size_t Wiper::ByteSizeLong() const {
  5992. // @@protoc_insertion_point(message_byte_size_start:RemoNet.Wiper)
  5993. size_t total_size = 0;
  5994. uint32_t cached_has_bits = 0;
  5995. // Prevent compiler warnings about cached_has_bits being unused
  5996. (void) cached_has_bits;
  5997. // bool ret = 1;
  5998. if (this->_internal_ret() != 0) {
  5999. total_size += 1 + 1;
  6000. }
  6001. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6002. }
  6003. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Wiper::_class_data_ = {
  6004. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6005. Wiper::MergeImpl
  6006. };
  6007. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Wiper::GetClassData() const { return &_class_data_; }
  6008. void Wiper::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6009. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6010. static_cast<Wiper *>(to)->MergeFrom(
  6011. static_cast<const Wiper &>(from));
  6012. }
  6013. void Wiper::MergeFrom(const Wiper& from) {
  6014. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.Wiper)
  6015. GOOGLE_DCHECK_NE(&from, this);
  6016. uint32_t cached_has_bits = 0;
  6017. (void) cached_has_bits;
  6018. if (from._internal_ret() != 0) {
  6019. _internal_set_ret(from._internal_ret());
  6020. }
  6021. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6022. }
  6023. void Wiper::CopyFrom(const Wiper& from) {
  6024. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.Wiper)
  6025. if (&from == this) return;
  6026. Clear();
  6027. MergeFrom(from);
  6028. }
  6029. bool Wiper::IsInitialized() const {
  6030. return true;
  6031. }
  6032. void Wiper::InternalSwap(Wiper* other) {
  6033. using std::swap;
  6034. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6035. swap(ret_, other->ret_);
  6036. }
  6037. ::PROTOBUF_NAMESPACE_ID::Metadata Wiper::GetMetadata() const {
  6038. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6039. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6040. file_level_metadata_protocol_2eproto[21]);
  6041. }
  6042. // ===================================================================
  6043. class FrontLight::_Internal {
  6044. public:
  6045. };
  6046. FrontLight::FrontLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6047. bool is_message_owned)
  6048. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6049. SharedCtor();
  6050. if (!is_message_owned) {
  6051. RegisterArenaDtor(arena);
  6052. }
  6053. // @@protoc_insertion_point(arena_constructor:RemoNet.FrontLight)
  6054. }
  6055. FrontLight::FrontLight(const FrontLight& from)
  6056. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6057. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6058. ret_ = from.ret_;
  6059. // @@protoc_insertion_point(copy_constructor:RemoNet.FrontLight)
  6060. }
  6061. inline void FrontLight::SharedCtor() {
  6062. ret_ = false;
  6063. }
  6064. FrontLight::~FrontLight() {
  6065. // @@protoc_insertion_point(destructor:RemoNet.FrontLight)
  6066. if (GetArenaForAllocation() != nullptr) return;
  6067. SharedDtor();
  6068. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6069. }
  6070. inline void FrontLight::SharedDtor() {
  6071. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6072. }
  6073. void FrontLight::ArenaDtor(void* object) {
  6074. FrontLight* _this = reinterpret_cast< FrontLight* >(object);
  6075. (void)_this;
  6076. }
  6077. void FrontLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6078. }
  6079. void FrontLight::SetCachedSize(int size) const {
  6080. _cached_size_.Set(size);
  6081. }
  6082. void FrontLight::Clear() {
  6083. // @@protoc_insertion_point(message_clear_start:RemoNet.FrontLight)
  6084. uint32_t cached_has_bits = 0;
  6085. // Prevent compiler warnings about cached_has_bits being unused
  6086. (void) cached_has_bits;
  6087. ret_ = false;
  6088. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6089. }
  6090. const char* FrontLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6091. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6092. while (!ctx->Done(&ptr)) {
  6093. uint32_t tag;
  6094. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6095. switch (tag >> 3) {
  6096. // bool ret = 1;
  6097. case 1:
  6098. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6099. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6100. CHK_(ptr);
  6101. } else
  6102. goto handle_unusual;
  6103. continue;
  6104. default:
  6105. goto handle_unusual;
  6106. } // switch
  6107. handle_unusual:
  6108. if ((tag == 0) || ((tag & 7) == 4)) {
  6109. CHK_(ptr);
  6110. ctx->SetLastTag(tag);
  6111. goto message_done;
  6112. }
  6113. ptr = UnknownFieldParse(
  6114. tag,
  6115. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6116. ptr, ctx);
  6117. CHK_(ptr != nullptr);
  6118. } // while
  6119. message_done:
  6120. return ptr;
  6121. failure:
  6122. ptr = nullptr;
  6123. goto message_done;
  6124. #undef CHK_
  6125. }
  6126. uint8_t* FrontLight::_InternalSerialize(
  6127. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6128. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.FrontLight)
  6129. uint32_t cached_has_bits = 0;
  6130. (void) cached_has_bits;
  6131. // bool ret = 1;
  6132. if (this->_internal_ret() != 0) {
  6133. target = stream->EnsureSpace(target);
  6134. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  6135. }
  6136. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6137. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6138. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6139. }
  6140. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.FrontLight)
  6141. return target;
  6142. }
  6143. size_t FrontLight::ByteSizeLong() const {
  6144. // @@protoc_insertion_point(message_byte_size_start:RemoNet.FrontLight)
  6145. size_t total_size = 0;
  6146. uint32_t cached_has_bits = 0;
  6147. // Prevent compiler warnings about cached_has_bits being unused
  6148. (void) cached_has_bits;
  6149. // bool ret = 1;
  6150. if (this->_internal_ret() != 0) {
  6151. total_size += 1 + 1;
  6152. }
  6153. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6154. }
  6155. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FrontLight::_class_data_ = {
  6156. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6157. FrontLight::MergeImpl
  6158. };
  6159. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FrontLight::GetClassData() const { return &_class_data_; }
  6160. void FrontLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6161. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6162. static_cast<FrontLight *>(to)->MergeFrom(
  6163. static_cast<const FrontLight &>(from));
  6164. }
  6165. void FrontLight::MergeFrom(const FrontLight& from) {
  6166. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.FrontLight)
  6167. GOOGLE_DCHECK_NE(&from, this);
  6168. uint32_t cached_has_bits = 0;
  6169. (void) cached_has_bits;
  6170. if (from._internal_ret() != 0) {
  6171. _internal_set_ret(from._internal_ret());
  6172. }
  6173. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6174. }
  6175. void FrontLight::CopyFrom(const FrontLight& from) {
  6176. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.FrontLight)
  6177. if (&from == this) return;
  6178. Clear();
  6179. MergeFrom(from);
  6180. }
  6181. bool FrontLight::IsInitialized() const {
  6182. return true;
  6183. }
  6184. void FrontLight::InternalSwap(FrontLight* other) {
  6185. using std::swap;
  6186. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6187. swap(ret_, other->ret_);
  6188. }
  6189. ::PROTOBUF_NAMESPACE_ID::Metadata FrontLight::GetMetadata() const {
  6190. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6191. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6192. file_level_metadata_protocol_2eproto[22]);
  6193. }
  6194. // ===================================================================
  6195. class BackLight::_Internal {
  6196. public:
  6197. };
  6198. BackLight::BackLight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6199. bool is_message_owned)
  6200. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6201. SharedCtor();
  6202. if (!is_message_owned) {
  6203. RegisterArenaDtor(arena);
  6204. }
  6205. // @@protoc_insertion_point(arena_constructor:RemoNet.BackLight)
  6206. }
  6207. BackLight::BackLight(const BackLight& from)
  6208. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6209. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6210. ret_ = from.ret_;
  6211. // @@protoc_insertion_point(copy_constructor:RemoNet.BackLight)
  6212. }
  6213. inline void BackLight::SharedCtor() {
  6214. ret_ = false;
  6215. }
  6216. BackLight::~BackLight() {
  6217. // @@protoc_insertion_point(destructor:RemoNet.BackLight)
  6218. if (GetArenaForAllocation() != nullptr) return;
  6219. SharedDtor();
  6220. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6221. }
  6222. inline void BackLight::SharedDtor() {
  6223. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6224. }
  6225. void BackLight::ArenaDtor(void* object) {
  6226. BackLight* _this = reinterpret_cast< BackLight* >(object);
  6227. (void)_this;
  6228. }
  6229. void BackLight::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6230. }
  6231. void BackLight::SetCachedSize(int size) const {
  6232. _cached_size_.Set(size);
  6233. }
  6234. void BackLight::Clear() {
  6235. // @@protoc_insertion_point(message_clear_start:RemoNet.BackLight)
  6236. uint32_t cached_has_bits = 0;
  6237. // Prevent compiler warnings about cached_has_bits being unused
  6238. (void) cached_has_bits;
  6239. ret_ = false;
  6240. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6241. }
  6242. const char* BackLight::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6243. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6244. while (!ctx->Done(&ptr)) {
  6245. uint32_t tag;
  6246. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6247. switch (tag >> 3) {
  6248. // bool ret = 1;
  6249. case 1:
  6250. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6251. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6252. CHK_(ptr);
  6253. } else
  6254. goto handle_unusual;
  6255. continue;
  6256. default:
  6257. goto handle_unusual;
  6258. } // switch
  6259. handle_unusual:
  6260. if ((tag == 0) || ((tag & 7) == 4)) {
  6261. CHK_(ptr);
  6262. ctx->SetLastTag(tag);
  6263. goto message_done;
  6264. }
  6265. ptr = UnknownFieldParse(
  6266. tag,
  6267. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6268. ptr, ctx);
  6269. CHK_(ptr != nullptr);
  6270. } // while
  6271. message_done:
  6272. return ptr;
  6273. failure:
  6274. ptr = nullptr;
  6275. goto message_done;
  6276. #undef CHK_
  6277. }
  6278. uint8_t* BackLight::_InternalSerialize(
  6279. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6280. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.BackLight)
  6281. uint32_t cached_has_bits = 0;
  6282. (void) cached_has_bits;
  6283. // bool ret = 1;
  6284. if (this->_internal_ret() != 0) {
  6285. target = stream->EnsureSpace(target);
  6286. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  6287. }
  6288. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6289. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6290. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6291. }
  6292. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.BackLight)
  6293. return target;
  6294. }
  6295. size_t BackLight::ByteSizeLong() const {
  6296. // @@protoc_insertion_point(message_byte_size_start:RemoNet.BackLight)
  6297. size_t total_size = 0;
  6298. uint32_t cached_has_bits = 0;
  6299. // Prevent compiler warnings about cached_has_bits being unused
  6300. (void) cached_has_bits;
  6301. // bool ret = 1;
  6302. if (this->_internal_ret() != 0) {
  6303. total_size += 1 + 1;
  6304. }
  6305. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6306. }
  6307. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BackLight::_class_data_ = {
  6308. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6309. BackLight::MergeImpl
  6310. };
  6311. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BackLight::GetClassData() const { return &_class_data_; }
  6312. void BackLight::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6313. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6314. static_cast<BackLight *>(to)->MergeFrom(
  6315. static_cast<const BackLight &>(from));
  6316. }
  6317. void BackLight::MergeFrom(const BackLight& from) {
  6318. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.BackLight)
  6319. GOOGLE_DCHECK_NE(&from, this);
  6320. uint32_t cached_has_bits = 0;
  6321. (void) cached_has_bits;
  6322. if (from._internal_ret() != 0) {
  6323. _internal_set_ret(from._internal_ret());
  6324. }
  6325. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6326. }
  6327. void BackLight::CopyFrom(const BackLight& from) {
  6328. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.BackLight)
  6329. if (&from == this) return;
  6330. Clear();
  6331. MergeFrom(from);
  6332. }
  6333. bool BackLight::IsInitialized() const {
  6334. return true;
  6335. }
  6336. void BackLight::InternalSwap(BackLight* other) {
  6337. using std::swap;
  6338. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6339. swap(ret_, other->ret_);
  6340. }
  6341. ::PROTOBUF_NAMESPACE_ID::Metadata BackLight::GetMetadata() const {
  6342. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6343. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6344. file_level_metadata_protocol_2eproto[23]);
  6345. }
  6346. // ===================================================================
  6347. class CCAskDataChannel::_Internal {
  6348. public:
  6349. };
  6350. CCAskDataChannel::CCAskDataChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6351. bool is_message_owned)
  6352. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  6353. // @@protoc_insertion_point(arena_constructor:RemoNet.CCAskDataChannel)
  6354. }
  6355. CCAskDataChannel::CCAskDataChannel(const CCAskDataChannel& from)
  6356. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  6357. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6358. // @@protoc_insertion_point(copy_constructor:RemoNet.CCAskDataChannel)
  6359. }
  6360. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCAskDataChannel::_class_data_ = {
  6361. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  6362. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  6363. };
  6364. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCAskDataChannel::GetClassData() const { return &_class_data_; }
  6365. ::PROTOBUF_NAMESPACE_ID::Metadata CCAskDataChannel::GetMetadata() const {
  6366. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6367. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6368. file_level_metadata_protocol_2eproto[24]);
  6369. }
  6370. // ===================================================================
  6371. class IMuMessage::_Internal {
  6372. public:
  6373. };
  6374. IMuMessage::IMuMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6375. bool is_message_owned)
  6376. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6377. SharedCtor();
  6378. if (!is_message_owned) {
  6379. RegisterArenaDtor(arena);
  6380. }
  6381. // @@protoc_insertion_point(arena_constructor:RemoNet.IMuMessage)
  6382. }
  6383. IMuMessage::IMuMessage(const IMuMessage& from)
  6384. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6385. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6386. ::memcpy(&rx_, &from.rx_,
  6387. static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  6388. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6389. // @@protoc_insertion_point(copy_constructor:RemoNet.IMuMessage)
  6390. }
  6391. inline void IMuMessage::SharedCtor() {
  6392. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6393. reinterpret_cast<char*>(&rx_) - reinterpret_cast<char*>(this)),
  6394. 0, static_cast<size_t>(reinterpret_cast<char*>(&ry_) -
  6395. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6396. }
  6397. IMuMessage::~IMuMessage() {
  6398. // @@protoc_insertion_point(destructor:RemoNet.IMuMessage)
  6399. if (GetArenaForAllocation() != nullptr) return;
  6400. SharedDtor();
  6401. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6402. }
  6403. inline void IMuMessage::SharedDtor() {
  6404. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6405. }
  6406. void IMuMessage::ArenaDtor(void* object) {
  6407. IMuMessage* _this = reinterpret_cast< IMuMessage* >(object);
  6408. (void)_this;
  6409. }
  6410. void IMuMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6411. }
  6412. void IMuMessage::SetCachedSize(int size) const {
  6413. _cached_size_.Set(size);
  6414. }
  6415. void IMuMessage::Clear() {
  6416. // @@protoc_insertion_point(message_clear_start:RemoNet.IMuMessage)
  6417. uint32_t cached_has_bits = 0;
  6418. // Prevent compiler warnings about cached_has_bits being unused
  6419. (void) cached_has_bits;
  6420. ::memset(&rx_, 0, static_cast<size_t>(
  6421. reinterpret_cast<char*>(&ry_) -
  6422. reinterpret_cast<char*>(&rx_)) + sizeof(ry_));
  6423. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6424. }
  6425. const char* IMuMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6426. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6427. while (!ctx->Done(&ptr)) {
  6428. uint32_t tag;
  6429. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6430. switch (tag >> 3) {
  6431. // float rx = 1;
  6432. case 1:
  6433. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 13)) {
  6434. rx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  6435. ptr += sizeof(float);
  6436. } else
  6437. goto handle_unusual;
  6438. continue;
  6439. // float ry = 2;
  6440. case 2:
  6441. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 21)) {
  6442. ry_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  6443. ptr += sizeof(float);
  6444. } else
  6445. goto handle_unusual;
  6446. continue;
  6447. default:
  6448. goto handle_unusual;
  6449. } // switch
  6450. handle_unusual:
  6451. if ((tag == 0) || ((tag & 7) == 4)) {
  6452. CHK_(ptr);
  6453. ctx->SetLastTag(tag);
  6454. goto message_done;
  6455. }
  6456. ptr = UnknownFieldParse(
  6457. tag,
  6458. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6459. ptr, ctx);
  6460. CHK_(ptr != nullptr);
  6461. } // while
  6462. message_done:
  6463. return ptr;
  6464. failure:
  6465. ptr = nullptr;
  6466. goto message_done;
  6467. #undef CHK_
  6468. }
  6469. uint8_t* IMuMessage::_InternalSerialize(
  6470. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6471. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.IMuMessage)
  6472. uint32_t cached_has_bits = 0;
  6473. (void) cached_has_bits;
  6474. // float rx = 1;
  6475. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6476. float tmp_rx = this->_internal_rx();
  6477. uint32_t raw_rx;
  6478. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6479. if (raw_rx != 0) {
  6480. target = stream->EnsureSpace(target);
  6481. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_rx(), target);
  6482. }
  6483. // float ry = 2;
  6484. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6485. float tmp_ry = this->_internal_ry();
  6486. uint32_t raw_ry;
  6487. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6488. if (raw_ry != 0) {
  6489. target = stream->EnsureSpace(target);
  6490. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_ry(), target);
  6491. }
  6492. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6493. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6494. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6495. }
  6496. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.IMuMessage)
  6497. return target;
  6498. }
  6499. size_t IMuMessage::ByteSizeLong() const {
  6500. // @@protoc_insertion_point(message_byte_size_start:RemoNet.IMuMessage)
  6501. size_t total_size = 0;
  6502. uint32_t cached_has_bits = 0;
  6503. // Prevent compiler warnings about cached_has_bits being unused
  6504. (void) cached_has_bits;
  6505. // float rx = 1;
  6506. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6507. float tmp_rx = this->_internal_rx();
  6508. uint32_t raw_rx;
  6509. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6510. if (raw_rx != 0) {
  6511. total_size += 1 + 4;
  6512. }
  6513. // float ry = 2;
  6514. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6515. float tmp_ry = this->_internal_ry();
  6516. uint32_t raw_ry;
  6517. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6518. if (raw_ry != 0) {
  6519. total_size += 1 + 4;
  6520. }
  6521. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6522. }
  6523. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IMuMessage::_class_data_ = {
  6524. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6525. IMuMessage::MergeImpl
  6526. };
  6527. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IMuMessage::GetClassData() const { return &_class_data_; }
  6528. void IMuMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6529. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6530. static_cast<IMuMessage *>(to)->MergeFrom(
  6531. static_cast<const IMuMessage &>(from));
  6532. }
  6533. void IMuMessage::MergeFrom(const IMuMessage& from) {
  6534. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.IMuMessage)
  6535. GOOGLE_DCHECK_NE(&from, this);
  6536. uint32_t cached_has_bits = 0;
  6537. (void) cached_has_bits;
  6538. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6539. float tmp_rx = from._internal_rx();
  6540. uint32_t raw_rx;
  6541. memcpy(&raw_rx, &tmp_rx, sizeof(tmp_rx));
  6542. if (raw_rx != 0) {
  6543. _internal_set_rx(from._internal_rx());
  6544. }
  6545. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  6546. float tmp_ry = from._internal_ry();
  6547. uint32_t raw_ry;
  6548. memcpy(&raw_ry, &tmp_ry, sizeof(tmp_ry));
  6549. if (raw_ry != 0) {
  6550. _internal_set_ry(from._internal_ry());
  6551. }
  6552. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6553. }
  6554. void IMuMessage::CopyFrom(const IMuMessage& from) {
  6555. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.IMuMessage)
  6556. if (&from == this) return;
  6557. Clear();
  6558. MergeFrom(from);
  6559. }
  6560. bool IMuMessage::IsInitialized() const {
  6561. return true;
  6562. }
  6563. void IMuMessage::InternalSwap(IMuMessage* other) {
  6564. using std::swap;
  6565. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6566. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  6567. PROTOBUF_FIELD_OFFSET(IMuMessage, ry_)
  6568. + sizeof(IMuMessage::ry_)
  6569. - PROTOBUF_FIELD_OFFSET(IMuMessage, rx_)>(
  6570. reinterpret_cast<char*>(&rx_),
  6571. reinterpret_cast<char*>(&other->rx_));
  6572. }
  6573. ::PROTOBUF_NAMESPACE_ID::Metadata IMuMessage::GetMetadata() const {
  6574. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6575. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6576. file_level_metadata_protocol_2eproto[25]);
  6577. }
  6578. // ===================================================================
  6579. class CCPing::_Internal {
  6580. public:
  6581. };
  6582. CCPing::CCPing(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6583. bool is_message_owned)
  6584. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6585. SharedCtor();
  6586. if (!is_message_owned) {
  6587. RegisterArenaDtor(arena);
  6588. }
  6589. // @@protoc_insertion_point(arena_constructor:RemoNet.CCPing)
  6590. }
  6591. CCPing::CCPing(const CCPing& from)
  6592. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6593. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6594. tick_ = from.tick_;
  6595. // @@protoc_insertion_point(copy_constructor:RemoNet.CCPing)
  6596. }
  6597. inline void CCPing::SharedCtor() {
  6598. tick_ = int64_t{0};
  6599. }
  6600. CCPing::~CCPing() {
  6601. // @@protoc_insertion_point(destructor:RemoNet.CCPing)
  6602. if (GetArenaForAllocation() != nullptr) return;
  6603. SharedDtor();
  6604. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6605. }
  6606. inline void CCPing::SharedDtor() {
  6607. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6608. }
  6609. void CCPing::ArenaDtor(void* object) {
  6610. CCPing* _this = reinterpret_cast< CCPing* >(object);
  6611. (void)_this;
  6612. }
  6613. void CCPing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6614. }
  6615. void CCPing::SetCachedSize(int size) const {
  6616. _cached_size_.Set(size);
  6617. }
  6618. void CCPing::Clear() {
  6619. // @@protoc_insertion_point(message_clear_start:RemoNet.CCPing)
  6620. uint32_t cached_has_bits = 0;
  6621. // Prevent compiler warnings about cached_has_bits being unused
  6622. (void) cached_has_bits;
  6623. tick_ = int64_t{0};
  6624. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6625. }
  6626. const char* CCPing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6627. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6628. while (!ctx->Done(&ptr)) {
  6629. uint32_t tag;
  6630. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6631. switch (tag >> 3) {
  6632. // int64 tick = 1;
  6633. case 1:
  6634. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6635. tick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  6636. CHK_(ptr);
  6637. } else
  6638. goto handle_unusual;
  6639. continue;
  6640. default:
  6641. goto handle_unusual;
  6642. } // switch
  6643. handle_unusual:
  6644. if ((tag == 0) || ((tag & 7) == 4)) {
  6645. CHK_(ptr);
  6646. ctx->SetLastTag(tag);
  6647. goto message_done;
  6648. }
  6649. ptr = UnknownFieldParse(
  6650. tag,
  6651. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6652. ptr, ctx);
  6653. CHK_(ptr != nullptr);
  6654. } // while
  6655. message_done:
  6656. return ptr;
  6657. failure:
  6658. ptr = nullptr;
  6659. goto message_done;
  6660. #undef CHK_
  6661. }
  6662. uint8_t* CCPing::_InternalSerialize(
  6663. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6664. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCPing)
  6665. uint32_t cached_has_bits = 0;
  6666. (void) cached_has_bits;
  6667. // int64 tick = 1;
  6668. if (this->_internal_tick() != 0) {
  6669. target = stream->EnsureSpace(target);
  6670. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_tick(), target);
  6671. }
  6672. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6673. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6674. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6675. }
  6676. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCPing)
  6677. return target;
  6678. }
  6679. size_t CCPing::ByteSizeLong() const {
  6680. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCPing)
  6681. size_t total_size = 0;
  6682. uint32_t cached_has_bits = 0;
  6683. // Prevent compiler warnings about cached_has_bits being unused
  6684. (void) cached_has_bits;
  6685. // int64 tick = 1;
  6686. if (this->_internal_tick() != 0) {
  6687. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_tick());
  6688. }
  6689. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6690. }
  6691. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCPing::_class_data_ = {
  6692. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6693. CCPing::MergeImpl
  6694. };
  6695. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCPing::GetClassData() const { return &_class_data_; }
  6696. void CCPing::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6697. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6698. static_cast<CCPing *>(to)->MergeFrom(
  6699. static_cast<const CCPing &>(from));
  6700. }
  6701. void CCPing::MergeFrom(const CCPing& from) {
  6702. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCPing)
  6703. GOOGLE_DCHECK_NE(&from, this);
  6704. uint32_t cached_has_bits = 0;
  6705. (void) cached_has_bits;
  6706. if (from._internal_tick() != 0) {
  6707. _internal_set_tick(from._internal_tick());
  6708. }
  6709. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6710. }
  6711. void CCPing::CopyFrom(const CCPing& from) {
  6712. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCPing)
  6713. if (&from == this) return;
  6714. Clear();
  6715. MergeFrom(from);
  6716. }
  6717. bool CCPing::IsInitialized() const {
  6718. return true;
  6719. }
  6720. void CCPing::InternalSwap(CCPing* other) {
  6721. using std::swap;
  6722. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  6723. swap(tick_, other->tick_);
  6724. }
  6725. ::PROTOBUF_NAMESPACE_ID::Metadata CCPing::GetMetadata() const {
  6726. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  6727. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  6728. file_level_metadata_protocol_2eproto[26]);
  6729. }
  6730. // ===================================================================
  6731. class CCRadarMessage::_Internal {
  6732. public:
  6733. };
  6734. CCRadarMessage::CCRadarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6735. bool is_message_owned)
  6736. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  6737. SharedCtor();
  6738. if (!is_message_owned) {
  6739. RegisterArenaDtor(arena);
  6740. }
  6741. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRadarMessage)
  6742. }
  6743. CCRadarMessage::CCRadarMessage(const CCRadarMessage& from)
  6744. : ::PROTOBUF_NAMESPACE_ID::Message() {
  6745. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  6746. ::memcpy(&radar0_, &from.radar0_,
  6747. static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  6748. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6749. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRadarMessage)
  6750. }
  6751. inline void CCRadarMessage::SharedCtor() {
  6752. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  6753. reinterpret_cast<char*>(&radar0_) - reinterpret_cast<char*>(this)),
  6754. 0, static_cast<size_t>(reinterpret_cast<char*>(&radar7_) -
  6755. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6756. }
  6757. CCRadarMessage::~CCRadarMessage() {
  6758. // @@protoc_insertion_point(destructor:RemoNet.CCRadarMessage)
  6759. if (GetArenaForAllocation() != nullptr) return;
  6760. SharedDtor();
  6761. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6762. }
  6763. inline void CCRadarMessage::SharedDtor() {
  6764. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  6765. }
  6766. void CCRadarMessage::ArenaDtor(void* object) {
  6767. CCRadarMessage* _this = reinterpret_cast< CCRadarMessage* >(object);
  6768. (void)_this;
  6769. }
  6770. void CCRadarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  6771. }
  6772. void CCRadarMessage::SetCachedSize(int size) const {
  6773. _cached_size_.Set(size);
  6774. }
  6775. void CCRadarMessage::Clear() {
  6776. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRadarMessage)
  6777. uint32_t cached_has_bits = 0;
  6778. // Prevent compiler warnings about cached_has_bits being unused
  6779. (void) cached_has_bits;
  6780. ::memset(&radar0_, 0, static_cast<size_t>(
  6781. reinterpret_cast<char*>(&radar7_) -
  6782. reinterpret_cast<char*>(&radar0_)) + sizeof(radar7_));
  6783. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6784. }
  6785. const char* CCRadarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  6786. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  6787. while (!ctx->Done(&ptr)) {
  6788. uint32_t tag;
  6789. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  6790. switch (tag >> 3) {
  6791. // int32 radar0 = 1;
  6792. case 1:
  6793. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  6794. radar0_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6795. CHK_(ptr);
  6796. } else
  6797. goto handle_unusual;
  6798. continue;
  6799. // int32 radar1 = 2;
  6800. case 2:
  6801. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  6802. radar1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6803. CHK_(ptr);
  6804. } else
  6805. goto handle_unusual;
  6806. continue;
  6807. // int32 radar2 = 3;
  6808. case 3:
  6809. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  6810. radar2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6811. CHK_(ptr);
  6812. } else
  6813. goto handle_unusual;
  6814. continue;
  6815. // int32 radar3 = 4;
  6816. case 4:
  6817. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  6818. radar3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6819. CHK_(ptr);
  6820. } else
  6821. goto handle_unusual;
  6822. continue;
  6823. // int32 radar4 = 5;
  6824. case 5:
  6825. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  6826. radar4_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6827. CHK_(ptr);
  6828. } else
  6829. goto handle_unusual;
  6830. continue;
  6831. // int32 radar5 = 6;
  6832. case 6:
  6833. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  6834. radar5_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6835. CHK_(ptr);
  6836. } else
  6837. goto handle_unusual;
  6838. continue;
  6839. // int32 radar6 = 7;
  6840. case 7:
  6841. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  6842. radar6_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6843. CHK_(ptr);
  6844. } else
  6845. goto handle_unusual;
  6846. continue;
  6847. // int32 radar7 = 8;
  6848. case 8:
  6849. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  6850. radar7_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  6851. CHK_(ptr);
  6852. } else
  6853. goto handle_unusual;
  6854. continue;
  6855. default:
  6856. goto handle_unusual;
  6857. } // switch
  6858. handle_unusual:
  6859. if ((tag == 0) || ((tag & 7) == 4)) {
  6860. CHK_(ptr);
  6861. ctx->SetLastTag(tag);
  6862. goto message_done;
  6863. }
  6864. ptr = UnknownFieldParse(
  6865. tag,
  6866. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  6867. ptr, ctx);
  6868. CHK_(ptr != nullptr);
  6869. } // while
  6870. message_done:
  6871. return ptr;
  6872. failure:
  6873. ptr = nullptr;
  6874. goto message_done;
  6875. #undef CHK_
  6876. }
  6877. uint8_t* CCRadarMessage::_InternalSerialize(
  6878. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  6879. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRadarMessage)
  6880. uint32_t cached_has_bits = 0;
  6881. (void) cached_has_bits;
  6882. // int32 radar0 = 1;
  6883. if (this->_internal_radar0() != 0) {
  6884. target = stream->EnsureSpace(target);
  6885. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_radar0(), target);
  6886. }
  6887. // int32 radar1 = 2;
  6888. if (this->_internal_radar1() != 0) {
  6889. target = stream->EnsureSpace(target);
  6890. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_radar1(), target);
  6891. }
  6892. // int32 radar2 = 3;
  6893. if (this->_internal_radar2() != 0) {
  6894. target = stream->EnsureSpace(target);
  6895. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_radar2(), target);
  6896. }
  6897. // int32 radar3 = 4;
  6898. if (this->_internal_radar3() != 0) {
  6899. target = stream->EnsureSpace(target);
  6900. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_radar3(), target);
  6901. }
  6902. // int32 radar4 = 5;
  6903. if (this->_internal_radar4() != 0) {
  6904. target = stream->EnsureSpace(target);
  6905. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_radar4(), target);
  6906. }
  6907. // int32 radar5 = 6;
  6908. if (this->_internal_radar5() != 0) {
  6909. target = stream->EnsureSpace(target);
  6910. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_radar5(), target);
  6911. }
  6912. // int32 radar6 = 7;
  6913. if (this->_internal_radar6() != 0) {
  6914. target = stream->EnsureSpace(target);
  6915. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_radar6(), target);
  6916. }
  6917. // int32 radar7 = 8;
  6918. if (this->_internal_radar7() != 0) {
  6919. target = stream->EnsureSpace(target);
  6920. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_radar7(), target);
  6921. }
  6922. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  6923. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  6924. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  6925. }
  6926. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRadarMessage)
  6927. return target;
  6928. }
  6929. size_t CCRadarMessage::ByteSizeLong() const {
  6930. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRadarMessage)
  6931. size_t total_size = 0;
  6932. uint32_t cached_has_bits = 0;
  6933. // Prevent compiler warnings about cached_has_bits being unused
  6934. (void) cached_has_bits;
  6935. // int32 radar0 = 1;
  6936. if (this->_internal_radar0() != 0) {
  6937. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar0());
  6938. }
  6939. // int32 radar1 = 2;
  6940. if (this->_internal_radar1() != 0) {
  6941. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar1());
  6942. }
  6943. // int32 radar2 = 3;
  6944. if (this->_internal_radar2() != 0) {
  6945. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar2());
  6946. }
  6947. // int32 radar3 = 4;
  6948. if (this->_internal_radar3() != 0) {
  6949. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar3());
  6950. }
  6951. // int32 radar4 = 5;
  6952. if (this->_internal_radar4() != 0) {
  6953. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar4());
  6954. }
  6955. // int32 radar5 = 6;
  6956. if (this->_internal_radar5() != 0) {
  6957. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar5());
  6958. }
  6959. // int32 radar6 = 7;
  6960. if (this->_internal_radar6() != 0) {
  6961. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar6());
  6962. }
  6963. // int32 radar7 = 8;
  6964. if (this->_internal_radar7() != 0) {
  6965. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_radar7());
  6966. }
  6967. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  6968. }
  6969. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRadarMessage::_class_data_ = {
  6970. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  6971. CCRadarMessage::MergeImpl
  6972. };
  6973. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRadarMessage::GetClassData() const { return &_class_data_; }
  6974. void CCRadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  6975. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  6976. static_cast<CCRadarMessage *>(to)->MergeFrom(
  6977. static_cast<const CCRadarMessage &>(from));
  6978. }
  6979. void CCRadarMessage::MergeFrom(const CCRadarMessage& from) {
  6980. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRadarMessage)
  6981. GOOGLE_DCHECK_NE(&from, this);
  6982. uint32_t cached_has_bits = 0;
  6983. (void) cached_has_bits;
  6984. if (from._internal_radar0() != 0) {
  6985. _internal_set_radar0(from._internal_radar0());
  6986. }
  6987. if (from._internal_radar1() != 0) {
  6988. _internal_set_radar1(from._internal_radar1());
  6989. }
  6990. if (from._internal_radar2() != 0) {
  6991. _internal_set_radar2(from._internal_radar2());
  6992. }
  6993. if (from._internal_radar3() != 0) {
  6994. _internal_set_radar3(from._internal_radar3());
  6995. }
  6996. if (from._internal_radar4() != 0) {
  6997. _internal_set_radar4(from._internal_radar4());
  6998. }
  6999. if (from._internal_radar5() != 0) {
  7000. _internal_set_radar5(from._internal_radar5());
  7001. }
  7002. if (from._internal_radar6() != 0) {
  7003. _internal_set_radar6(from._internal_radar6());
  7004. }
  7005. if (from._internal_radar7() != 0) {
  7006. _internal_set_radar7(from._internal_radar7());
  7007. }
  7008. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7009. }
  7010. void CCRadarMessage::CopyFrom(const CCRadarMessage& from) {
  7011. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRadarMessage)
  7012. if (&from == this) return;
  7013. Clear();
  7014. MergeFrom(from);
  7015. }
  7016. bool CCRadarMessage::IsInitialized() const {
  7017. return true;
  7018. }
  7019. void CCRadarMessage::InternalSwap(CCRadarMessage* other) {
  7020. using std::swap;
  7021. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7022. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7023. PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar7_)
  7024. + sizeof(CCRadarMessage::radar7_)
  7025. - PROTOBUF_FIELD_OFFSET(CCRadarMessage, radar0_)>(
  7026. reinterpret_cast<char*>(&radar0_),
  7027. reinterpret_cast<char*>(&other->radar0_));
  7028. }
  7029. ::PROTOBUF_NAMESPACE_ID::Metadata CCRadarMessage::GetMetadata() const {
  7030. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7031. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7032. file_level_metadata_protocol_2eproto[27]);
  7033. }
  7034. // ===================================================================
  7035. class CCRobotAnalog::_Internal {
  7036. public:
  7037. };
  7038. CCRobotAnalog::CCRobotAnalog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7039. bool is_message_owned)
  7040. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7041. SharedCtor();
  7042. if (!is_message_owned) {
  7043. RegisterArenaDtor(arena);
  7044. }
  7045. // @@protoc_insertion_point(arena_constructor:RemoNet.CCRobotAnalog)
  7046. }
  7047. CCRobotAnalog::CCRobotAnalog(const CCRobotAnalog& from)
  7048. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7049. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7050. ::memcpy(&steer_, &from.steer_,
  7051. static_cast<size_t>(reinterpret_cast<char*>(&gears_d_) -
  7052. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  7053. // @@protoc_insertion_point(copy_constructor:RemoNet.CCRobotAnalog)
  7054. }
  7055. inline void CCRobotAnalog::SharedCtor() {
  7056. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  7057. reinterpret_cast<char*>(&steer_) - reinterpret_cast<char*>(this)),
  7058. 0, static_cast<size_t>(reinterpret_cast<char*>(&gears_d_) -
  7059. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  7060. }
  7061. CCRobotAnalog::~CCRobotAnalog() {
  7062. // @@protoc_insertion_point(destructor:RemoNet.CCRobotAnalog)
  7063. if (GetArenaForAllocation() != nullptr) return;
  7064. SharedDtor();
  7065. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7066. }
  7067. inline void CCRobotAnalog::SharedDtor() {
  7068. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7069. }
  7070. void CCRobotAnalog::ArenaDtor(void* object) {
  7071. CCRobotAnalog* _this = reinterpret_cast< CCRobotAnalog* >(object);
  7072. (void)_this;
  7073. }
  7074. void CCRobotAnalog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7075. }
  7076. void CCRobotAnalog::SetCachedSize(int size) const {
  7077. _cached_size_.Set(size);
  7078. }
  7079. void CCRobotAnalog::Clear() {
  7080. // @@protoc_insertion_point(message_clear_start:RemoNet.CCRobotAnalog)
  7081. uint32_t cached_has_bits = 0;
  7082. // Prevent compiler warnings about cached_has_bits being unused
  7083. (void) cached_has_bits;
  7084. ::memset(&steer_, 0, static_cast<size_t>(
  7085. reinterpret_cast<char*>(&gears_d_) -
  7086. reinterpret_cast<char*>(&steer_)) + sizeof(gears_d_));
  7087. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7088. }
  7089. const char* CCRobotAnalog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7090. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7091. while (!ctx->Done(&ptr)) {
  7092. uint32_t tag;
  7093. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7094. switch (tag >> 3) {
  7095. // int32 steer = 1;
  7096. case 1:
  7097. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7098. steer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7099. CHK_(ptr);
  7100. } else
  7101. goto handle_unusual;
  7102. continue;
  7103. // int32 arm = 2;
  7104. case 2:
  7105. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  7106. arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7107. CHK_(ptr);
  7108. } else
  7109. goto handle_unusual;
  7110. continue;
  7111. // int32 bucket = 3;
  7112. case 3:
  7113. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  7114. bucket_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7115. CHK_(ptr);
  7116. } else
  7117. goto handle_unusual;
  7118. continue;
  7119. // int32 throttle = 4;
  7120. case 4:
  7121. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  7122. throttle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7123. CHK_(ptr);
  7124. } else
  7125. goto handle_unusual;
  7126. continue;
  7127. // int32 brake = 5;
  7128. case 5:
  7129. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  7130. brake_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  7131. CHK_(ptr);
  7132. } else
  7133. goto handle_unusual;
  7134. continue;
  7135. // bool emergency = 8;
  7136. case 8:
  7137. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  7138. emergency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7139. CHK_(ptr);
  7140. } else
  7141. goto handle_unusual;
  7142. continue;
  7143. // bool resume = 9;
  7144. case 9:
  7145. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  7146. resume_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7147. CHK_(ptr);
  7148. } else
  7149. goto handle_unusual;
  7150. continue;
  7151. // .RemoNet.Gears gears = 10;
  7152. case 10:
  7153. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
  7154. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7155. CHK_(ptr);
  7156. _internal_set_gears(static_cast<::RemoNet::Gears>(val));
  7157. } else
  7158. goto handle_unusual;
  7159. continue;
  7160. // bool frontlight = 11;
  7161. case 11:
  7162. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
  7163. frontlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7164. CHK_(ptr);
  7165. } else
  7166. goto handle_unusual;
  7167. continue;
  7168. // bool backlight = 12;
  7169. case 12:
  7170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  7171. backlight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7172. CHK_(ptr);
  7173. } else
  7174. goto handle_unusual;
  7175. continue;
  7176. // bool wipe = 13;
  7177. case 13:
  7178. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  7179. wipe_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7180. CHK_(ptr);
  7181. } else
  7182. goto handle_unusual;
  7183. continue;
  7184. // .RemoNet.DirectionLight directionlight = 14;
  7185. case 14:
  7186. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  7187. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7188. CHK_(ptr);
  7189. _internal_set_directionlight(static_cast<::RemoNet::DirectionLight>(val));
  7190. } else
  7191. goto handle_unusual;
  7192. continue;
  7193. // bool buzzer = 15;
  7194. case 15:
  7195. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  7196. buzzer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7197. CHK_(ptr);
  7198. } else
  7199. goto handle_unusual;
  7200. continue;
  7201. // .RemoNet.Gears_D gears_d = 16;
  7202. case 16:
  7203. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  7204. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7205. CHK_(ptr);
  7206. _internal_set_gears_d(static_cast<::RemoNet::Gears_D>(val));
  7207. } else
  7208. goto handle_unusual;
  7209. continue;
  7210. default:
  7211. goto handle_unusual;
  7212. } // switch
  7213. handle_unusual:
  7214. if ((tag == 0) || ((tag & 7) == 4)) {
  7215. CHK_(ptr);
  7216. ctx->SetLastTag(tag);
  7217. goto message_done;
  7218. }
  7219. ptr = UnknownFieldParse(
  7220. tag,
  7221. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7222. ptr, ctx);
  7223. CHK_(ptr != nullptr);
  7224. } // while
  7225. message_done:
  7226. return ptr;
  7227. failure:
  7228. ptr = nullptr;
  7229. goto message_done;
  7230. #undef CHK_
  7231. }
  7232. uint8_t* CCRobotAnalog::_InternalSerialize(
  7233. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7234. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCRobotAnalog)
  7235. uint32_t cached_has_bits = 0;
  7236. (void) cached_has_bits;
  7237. // int32 steer = 1;
  7238. if (this->_internal_steer() != 0) {
  7239. target = stream->EnsureSpace(target);
  7240. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_steer(), target);
  7241. }
  7242. // int32 arm = 2;
  7243. if (this->_internal_arm() != 0) {
  7244. target = stream->EnsureSpace(target);
  7245. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_arm(), target);
  7246. }
  7247. // int32 bucket = 3;
  7248. if (this->_internal_bucket() != 0) {
  7249. target = stream->EnsureSpace(target);
  7250. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_bucket(), target);
  7251. }
  7252. // int32 throttle = 4;
  7253. if (this->_internal_throttle() != 0) {
  7254. target = stream->EnsureSpace(target);
  7255. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_throttle(), target);
  7256. }
  7257. // int32 brake = 5;
  7258. if (this->_internal_brake() != 0) {
  7259. target = stream->EnsureSpace(target);
  7260. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_brake(), target);
  7261. }
  7262. // bool emergency = 8;
  7263. if (this->_internal_emergency() != 0) {
  7264. target = stream->EnsureSpace(target);
  7265. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_emergency(), target);
  7266. }
  7267. // bool resume = 9;
  7268. if (this->_internal_resume() != 0) {
  7269. target = stream->EnsureSpace(target);
  7270. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_resume(), target);
  7271. }
  7272. // .RemoNet.Gears gears = 10;
  7273. if (this->_internal_gears() != 0) {
  7274. target = stream->EnsureSpace(target);
  7275. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7276. 10, this->_internal_gears(), target);
  7277. }
  7278. // bool frontlight = 11;
  7279. if (this->_internal_frontlight() != 0) {
  7280. target = stream->EnsureSpace(target);
  7281. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_frontlight(), target);
  7282. }
  7283. // bool backlight = 12;
  7284. if (this->_internal_backlight() != 0) {
  7285. target = stream->EnsureSpace(target);
  7286. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_backlight(), target);
  7287. }
  7288. // bool wipe = 13;
  7289. if (this->_internal_wipe() != 0) {
  7290. target = stream->EnsureSpace(target);
  7291. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_wipe(), target);
  7292. }
  7293. // .RemoNet.DirectionLight directionlight = 14;
  7294. if (this->_internal_directionlight() != 0) {
  7295. target = stream->EnsureSpace(target);
  7296. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7297. 14, this->_internal_directionlight(), target);
  7298. }
  7299. // bool buzzer = 15;
  7300. if (this->_internal_buzzer() != 0) {
  7301. target = stream->EnsureSpace(target);
  7302. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_buzzer(), target);
  7303. }
  7304. // .RemoNet.Gears_D gears_d = 16;
  7305. if (this->_internal_gears_d() != 0) {
  7306. target = stream->EnsureSpace(target);
  7307. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  7308. 16, this->_internal_gears_d(), target);
  7309. }
  7310. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7311. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7312. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7313. }
  7314. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCRobotAnalog)
  7315. return target;
  7316. }
  7317. size_t CCRobotAnalog::ByteSizeLong() const {
  7318. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCRobotAnalog)
  7319. size_t total_size = 0;
  7320. uint32_t cached_has_bits = 0;
  7321. // Prevent compiler warnings about cached_has_bits being unused
  7322. (void) cached_has_bits;
  7323. // int32 steer = 1;
  7324. if (this->_internal_steer() != 0) {
  7325. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_steer());
  7326. }
  7327. // int32 arm = 2;
  7328. if (this->_internal_arm() != 0) {
  7329. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_arm());
  7330. }
  7331. // int32 bucket = 3;
  7332. if (this->_internal_bucket() != 0) {
  7333. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_bucket());
  7334. }
  7335. // int32 throttle = 4;
  7336. if (this->_internal_throttle() != 0) {
  7337. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_throttle());
  7338. }
  7339. // int32 brake = 5;
  7340. if (this->_internal_brake() != 0) {
  7341. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_brake());
  7342. }
  7343. // .RemoNet.Gears gears = 10;
  7344. if (this->_internal_gears() != 0) {
  7345. total_size += 1 +
  7346. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gears());
  7347. }
  7348. // bool emergency = 8;
  7349. if (this->_internal_emergency() != 0) {
  7350. total_size += 1 + 1;
  7351. }
  7352. // bool resume = 9;
  7353. if (this->_internal_resume() != 0) {
  7354. total_size += 1 + 1;
  7355. }
  7356. // bool frontlight = 11;
  7357. if (this->_internal_frontlight() != 0) {
  7358. total_size += 1 + 1;
  7359. }
  7360. // bool backlight = 12;
  7361. if (this->_internal_backlight() != 0) {
  7362. total_size += 1 + 1;
  7363. }
  7364. // .RemoNet.DirectionLight directionlight = 14;
  7365. if (this->_internal_directionlight() != 0) {
  7366. total_size += 1 +
  7367. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_directionlight());
  7368. }
  7369. // bool wipe = 13;
  7370. if (this->_internal_wipe() != 0) {
  7371. total_size += 1 + 1;
  7372. }
  7373. // bool buzzer = 15;
  7374. if (this->_internal_buzzer() != 0) {
  7375. total_size += 1 + 1;
  7376. }
  7377. // .RemoNet.Gears_D gears_d = 16;
  7378. if (this->_internal_gears_d() != 0) {
  7379. total_size += 2 +
  7380. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gears_d());
  7381. }
  7382. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7383. }
  7384. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCRobotAnalog::_class_data_ = {
  7385. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7386. CCRobotAnalog::MergeImpl
  7387. };
  7388. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCRobotAnalog::GetClassData() const { return &_class_data_; }
  7389. void CCRobotAnalog::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7390. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7391. static_cast<CCRobotAnalog *>(to)->MergeFrom(
  7392. static_cast<const CCRobotAnalog &>(from));
  7393. }
  7394. void CCRobotAnalog::MergeFrom(const CCRobotAnalog& from) {
  7395. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCRobotAnalog)
  7396. GOOGLE_DCHECK_NE(&from, this);
  7397. uint32_t cached_has_bits = 0;
  7398. (void) cached_has_bits;
  7399. if (from._internal_steer() != 0) {
  7400. _internal_set_steer(from._internal_steer());
  7401. }
  7402. if (from._internal_arm() != 0) {
  7403. _internal_set_arm(from._internal_arm());
  7404. }
  7405. if (from._internal_bucket() != 0) {
  7406. _internal_set_bucket(from._internal_bucket());
  7407. }
  7408. if (from._internal_throttle() != 0) {
  7409. _internal_set_throttle(from._internal_throttle());
  7410. }
  7411. if (from._internal_brake() != 0) {
  7412. _internal_set_brake(from._internal_brake());
  7413. }
  7414. if (from._internal_gears() != 0) {
  7415. _internal_set_gears(from._internal_gears());
  7416. }
  7417. if (from._internal_emergency() != 0) {
  7418. _internal_set_emergency(from._internal_emergency());
  7419. }
  7420. if (from._internal_resume() != 0) {
  7421. _internal_set_resume(from._internal_resume());
  7422. }
  7423. if (from._internal_frontlight() != 0) {
  7424. _internal_set_frontlight(from._internal_frontlight());
  7425. }
  7426. if (from._internal_backlight() != 0) {
  7427. _internal_set_backlight(from._internal_backlight());
  7428. }
  7429. if (from._internal_directionlight() != 0) {
  7430. _internal_set_directionlight(from._internal_directionlight());
  7431. }
  7432. if (from._internal_wipe() != 0) {
  7433. _internal_set_wipe(from._internal_wipe());
  7434. }
  7435. if (from._internal_buzzer() != 0) {
  7436. _internal_set_buzzer(from._internal_buzzer());
  7437. }
  7438. if (from._internal_gears_d() != 0) {
  7439. _internal_set_gears_d(from._internal_gears_d());
  7440. }
  7441. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7442. }
  7443. void CCRobotAnalog::CopyFrom(const CCRobotAnalog& from) {
  7444. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCRobotAnalog)
  7445. if (&from == this) return;
  7446. Clear();
  7447. MergeFrom(from);
  7448. }
  7449. bool CCRobotAnalog::IsInitialized() const {
  7450. return true;
  7451. }
  7452. void CCRobotAnalog::InternalSwap(CCRobotAnalog* other) {
  7453. using std::swap;
  7454. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7455. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  7456. PROTOBUF_FIELD_OFFSET(CCRobotAnalog, gears_d_)
  7457. + sizeof(CCRobotAnalog::gears_d_)
  7458. - PROTOBUF_FIELD_OFFSET(CCRobotAnalog, steer_)>(
  7459. reinterpret_cast<char*>(&steer_),
  7460. reinterpret_cast<char*>(&other->steer_));
  7461. }
  7462. ::PROTOBUF_NAMESPACE_ID::Metadata CCRobotAnalog::GetMetadata() const {
  7463. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7464. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7465. file_level_metadata_protocol_2eproto[28]);
  7466. }
  7467. // ===================================================================
  7468. class CCBootStrapReq::_Internal {
  7469. public:
  7470. };
  7471. CCBootStrapReq::CCBootStrapReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7472. bool is_message_owned)
  7473. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7474. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBootStrapReq)
  7475. }
  7476. CCBootStrapReq::CCBootStrapReq(const CCBootStrapReq& from)
  7477. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7478. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7479. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBootStrapReq)
  7480. }
  7481. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBootStrapReq::_class_data_ = {
  7482. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7483. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7484. };
  7485. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBootStrapReq::GetClassData() const { return &_class_data_; }
  7486. ::PROTOBUF_NAMESPACE_ID::Metadata CCBootStrapReq::GetMetadata() const {
  7487. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7488. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7489. file_level_metadata_protocol_2eproto[29]);
  7490. }
  7491. // ===================================================================
  7492. class CCBooStrapRep::_Internal {
  7493. public:
  7494. };
  7495. CCBooStrapRep::CCBooStrapRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7496. bool is_message_owned)
  7497. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7498. SharedCtor();
  7499. if (!is_message_owned) {
  7500. RegisterArenaDtor(arena);
  7501. }
  7502. // @@protoc_insertion_point(arena_constructor:RemoNet.CCBooStrapRep)
  7503. }
  7504. CCBooStrapRep::CCBooStrapRep(const CCBooStrapRep& from)
  7505. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7506. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7507. ret_ = from.ret_;
  7508. // @@protoc_insertion_point(copy_constructor:RemoNet.CCBooStrapRep)
  7509. }
  7510. inline void CCBooStrapRep::SharedCtor() {
  7511. ret_ = false;
  7512. }
  7513. CCBooStrapRep::~CCBooStrapRep() {
  7514. // @@protoc_insertion_point(destructor:RemoNet.CCBooStrapRep)
  7515. if (GetArenaForAllocation() != nullptr) return;
  7516. SharedDtor();
  7517. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7518. }
  7519. inline void CCBooStrapRep::SharedDtor() {
  7520. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7521. }
  7522. void CCBooStrapRep::ArenaDtor(void* object) {
  7523. CCBooStrapRep* _this = reinterpret_cast< CCBooStrapRep* >(object);
  7524. (void)_this;
  7525. }
  7526. void CCBooStrapRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7527. }
  7528. void CCBooStrapRep::SetCachedSize(int size) const {
  7529. _cached_size_.Set(size);
  7530. }
  7531. void CCBooStrapRep::Clear() {
  7532. // @@protoc_insertion_point(message_clear_start:RemoNet.CCBooStrapRep)
  7533. uint32_t cached_has_bits = 0;
  7534. // Prevent compiler warnings about cached_has_bits being unused
  7535. (void) cached_has_bits;
  7536. ret_ = false;
  7537. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7538. }
  7539. const char* CCBooStrapRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7540. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7541. while (!ctx->Done(&ptr)) {
  7542. uint32_t tag;
  7543. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7544. switch (tag >> 3) {
  7545. // bool ret = 1;
  7546. case 1:
  7547. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7548. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7549. CHK_(ptr);
  7550. } else
  7551. goto handle_unusual;
  7552. continue;
  7553. default:
  7554. goto handle_unusual;
  7555. } // switch
  7556. handle_unusual:
  7557. if ((tag == 0) || ((tag & 7) == 4)) {
  7558. CHK_(ptr);
  7559. ctx->SetLastTag(tag);
  7560. goto message_done;
  7561. }
  7562. ptr = UnknownFieldParse(
  7563. tag,
  7564. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7565. ptr, ctx);
  7566. CHK_(ptr != nullptr);
  7567. } // while
  7568. message_done:
  7569. return ptr;
  7570. failure:
  7571. ptr = nullptr;
  7572. goto message_done;
  7573. #undef CHK_
  7574. }
  7575. uint8_t* CCBooStrapRep::_InternalSerialize(
  7576. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7577. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCBooStrapRep)
  7578. uint32_t cached_has_bits = 0;
  7579. (void) cached_has_bits;
  7580. // bool ret = 1;
  7581. if (this->_internal_ret() != 0) {
  7582. target = stream->EnsureSpace(target);
  7583. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7584. }
  7585. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7586. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7587. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7588. }
  7589. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCBooStrapRep)
  7590. return target;
  7591. }
  7592. size_t CCBooStrapRep::ByteSizeLong() const {
  7593. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCBooStrapRep)
  7594. size_t total_size = 0;
  7595. uint32_t cached_has_bits = 0;
  7596. // Prevent compiler warnings about cached_has_bits being unused
  7597. (void) cached_has_bits;
  7598. // bool ret = 1;
  7599. if (this->_internal_ret() != 0) {
  7600. total_size += 1 + 1;
  7601. }
  7602. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7603. }
  7604. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCBooStrapRep::_class_data_ = {
  7605. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7606. CCBooStrapRep::MergeImpl
  7607. };
  7608. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCBooStrapRep::GetClassData() const { return &_class_data_; }
  7609. void CCBooStrapRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7610. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7611. static_cast<CCBooStrapRep *>(to)->MergeFrom(
  7612. static_cast<const CCBooStrapRep &>(from));
  7613. }
  7614. void CCBooStrapRep::MergeFrom(const CCBooStrapRep& from) {
  7615. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCBooStrapRep)
  7616. GOOGLE_DCHECK_NE(&from, this);
  7617. uint32_t cached_has_bits = 0;
  7618. (void) cached_has_bits;
  7619. if (from._internal_ret() != 0) {
  7620. _internal_set_ret(from._internal_ret());
  7621. }
  7622. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7623. }
  7624. void CCBooStrapRep::CopyFrom(const CCBooStrapRep& from) {
  7625. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCBooStrapRep)
  7626. if (&from == this) return;
  7627. Clear();
  7628. MergeFrom(from);
  7629. }
  7630. bool CCBooStrapRep::IsInitialized() const {
  7631. return true;
  7632. }
  7633. void CCBooStrapRep::InternalSwap(CCBooStrapRep* other) {
  7634. using std::swap;
  7635. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7636. swap(ret_, other->ret_);
  7637. }
  7638. ::PROTOBUF_NAMESPACE_ID::Metadata CCBooStrapRep::GetMetadata() const {
  7639. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7640. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7641. file_level_metadata_protocol_2eproto[30]);
  7642. }
  7643. // ===================================================================
  7644. class CCStartupReq::_Internal {
  7645. public:
  7646. };
  7647. CCStartupReq::CCStartupReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7648. bool is_message_owned)
  7649. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  7650. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupReq)
  7651. }
  7652. CCStartupReq::CCStartupReq(const CCStartupReq& from)
  7653. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  7654. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7655. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupReq)
  7656. }
  7657. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupReq::_class_data_ = {
  7658. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  7659. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  7660. };
  7661. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupReq::GetClassData() const { return &_class_data_; }
  7662. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupReq::GetMetadata() const {
  7663. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7664. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7665. file_level_metadata_protocol_2eproto[31]);
  7666. }
  7667. // ===================================================================
  7668. class CCStartupRep::_Internal {
  7669. public:
  7670. };
  7671. CCStartupRep::CCStartupRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7672. bool is_message_owned)
  7673. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  7674. SharedCtor();
  7675. if (!is_message_owned) {
  7676. RegisterArenaDtor(arena);
  7677. }
  7678. // @@protoc_insertion_point(arena_constructor:RemoNet.CCStartupRep)
  7679. }
  7680. CCStartupRep::CCStartupRep(const CCStartupRep& from)
  7681. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7682. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7683. ret_ = from.ret_;
  7684. // @@protoc_insertion_point(copy_constructor:RemoNet.CCStartupRep)
  7685. }
  7686. inline void CCStartupRep::SharedCtor() {
  7687. ret_ = false;
  7688. }
  7689. CCStartupRep::~CCStartupRep() {
  7690. // @@protoc_insertion_point(destructor:RemoNet.CCStartupRep)
  7691. if (GetArenaForAllocation() != nullptr) return;
  7692. SharedDtor();
  7693. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7694. }
  7695. inline void CCStartupRep::SharedDtor() {
  7696. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7697. }
  7698. void CCStartupRep::ArenaDtor(void* object) {
  7699. CCStartupRep* _this = reinterpret_cast< CCStartupRep* >(object);
  7700. (void)_this;
  7701. }
  7702. void CCStartupRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7703. }
  7704. void CCStartupRep::SetCachedSize(int size) const {
  7705. _cached_size_.Set(size);
  7706. }
  7707. void CCStartupRep::Clear() {
  7708. // @@protoc_insertion_point(message_clear_start:RemoNet.CCStartupRep)
  7709. uint32_t cached_has_bits = 0;
  7710. // Prevent compiler warnings about cached_has_bits being unused
  7711. (void) cached_has_bits;
  7712. ret_ = false;
  7713. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7714. }
  7715. const char* CCStartupRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7716. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7717. while (!ctx->Done(&ptr)) {
  7718. uint32_t tag;
  7719. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7720. switch (tag >> 3) {
  7721. // bool ret = 1;
  7722. case 1:
  7723. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7724. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7725. CHK_(ptr);
  7726. } else
  7727. goto handle_unusual;
  7728. continue;
  7729. default:
  7730. goto handle_unusual;
  7731. } // switch
  7732. handle_unusual:
  7733. if ((tag == 0) || ((tag & 7) == 4)) {
  7734. CHK_(ptr);
  7735. ctx->SetLastTag(tag);
  7736. goto message_done;
  7737. }
  7738. ptr = UnknownFieldParse(
  7739. tag,
  7740. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7741. ptr, ctx);
  7742. CHK_(ptr != nullptr);
  7743. } // while
  7744. message_done:
  7745. return ptr;
  7746. failure:
  7747. ptr = nullptr;
  7748. goto message_done;
  7749. #undef CHK_
  7750. }
  7751. uint8_t* CCStartupRep::_InternalSerialize(
  7752. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7753. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCStartupRep)
  7754. uint32_t cached_has_bits = 0;
  7755. (void) cached_has_bits;
  7756. // bool ret = 1;
  7757. if (this->_internal_ret() != 0) {
  7758. target = stream->EnsureSpace(target);
  7759. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  7760. }
  7761. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7762. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7763. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7764. }
  7765. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCStartupRep)
  7766. return target;
  7767. }
  7768. size_t CCStartupRep::ByteSizeLong() const {
  7769. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCStartupRep)
  7770. size_t total_size = 0;
  7771. uint32_t cached_has_bits = 0;
  7772. // Prevent compiler warnings about cached_has_bits being unused
  7773. (void) cached_has_bits;
  7774. // bool ret = 1;
  7775. if (this->_internal_ret() != 0) {
  7776. total_size += 1 + 1;
  7777. }
  7778. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7779. }
  7780. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCStartupRep::_class_data_ = {
  7781. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7782. CCStartupRep::MergeImpl
  7783. };
  7784. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCStartupRep::GetClassData() const { return &_class_data_; }
  7785. void CCStartupRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7786. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7787. static_cast<CCStartupRep *>(to)->MergeFrom(
  7788. static_cast<const CCStartupRep &>(from));
  7789. }
  7790. void CCStartupRep::MergeFrom(const CCStartupRep& from) {
  7791. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCStartupRep)
  7792. GOOGLE_DCHECK_NE(&from, this);
  7793. uint32_t cached_has_bits = 0;
  7794. (void) cached_has_bits;
  7795. if (from._internal_ret() != 0) {
  7796. _internal_set_ret(from._internal_ret());
  7797. }
  7798. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7799. }
  7800. void CCStartupRep::CopyFrom(const CCStartupRep& from) {
  7801. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCStartupRep)
  7802. if (&from == this) return;
  7803. Clear();
  7804. MergeFrom(from);
  7805. }
  7806. bool CCStartupRep::IsInitialized() const {
  7807. return true;
  7808. }
  7809. void CCStartupRep::InternalSwap(CCStartupRep* other) {
  7810. using std::swap;
  7811. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7812. swap(ret_, other->ret_);
  7813. }
  7814. ::PROTOBUF_NAMESPACE_ID::Metadata CCStartupRep::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[32]);
  7818. }
  7819. // ===================================================================
  7820. class CCSwitch::_Internal {
  7821. public:
  7822. };
  7823. CCSwitch::CCSwitch(::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.CCSwitch)
  7831. }
  7832. CCSwitch::CCSwitch(const CCSwitch& from)
  7833. : ::PROTOBUF_NAMESPACE_ID::Message() {
  7834. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7835. front_ = from.front_;
  7836. // @@protoc_insertion_point(copy_constructor:RemoNet.CCSwitch)
  7837. }
  7838. inline void CCSwitch::SharedCtor() {
  7839. front_ = false;
  7840. }
  7841. CCSwitch::~CCSwitch() {
  7842. // @@protoc_insertion_point(destructor:RemoNet.CCSwitch)
  7843. if (GetArenaForAllocation() != nullptr) return;
  7844. SharedDtor();
  7845. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7846. }
  7847. inline void CCSwitch::SharedDtor() {
  7848. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  7849. }
  7850. void CCSwitch::ArenaDtor(void* object) {
  7851. CCSwitch* _this = reinterpret_cast< CCSwitch* >(object);
  7852. (void)_this;
  7853. }
  7854. void CCSwitch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  7855. }
  7856. void CCSwitch::SetCachedSize(int size) const {
  7857. _cached_size_.Set(size);
  7858. }
  7859. void CCSwitch::Clear() {
  7860. // @@protoc_insertion_point(message_clear_start:RemoNet.CCSwitch)
  7861. uint32_t cached_has_bits = 0;
  7862. // Prevent compiler warnings about cached_has_bits being unused
  7863. (void) cached_has_bits;
  7864. front_ = false;
  7865. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7866. }
  7867. const char* CCSwitch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  7868. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  7869. while (!ctx->Done(&ptr)) {
  7870. uint32_t tag;
  7871. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  7872. switch (tag >> 3) {
  7873. // bool front = 1;
  7874. case 1:
  7875. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  7876. front_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  7877. CHK_(ptr);
  7878. } else
  7879. goto handle_unusual;
  7880. continue;
  7881. default:
  7882. goto handle_unusual;
  7883. } // switch
  7884. handle_unusual:
  7885. if ((tag == 0) || ((tag & 7) == 4)) {
  7886. CHK_(ptr);
  7887. ctx->SetLastTag(tag);
  7888. goto message_done;
  7889. }
  7890. ptr = UnknownFieldParse(
  7891. tag,
  7892. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  7893. ptr, ctx);
  7894. CHK_(ptr != nullptr);
  7895. } // while
  7896. message_done:
  7897. return ptr;
  7898. failure:
  7899. ptr = nullptr;
  7900. goto message_done;
  7901. #undef CHK_
  7902. }
  7903. uint8_t* CCSwitch::_InternalSerialize(
  7904. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  7905. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCSwitch)
  7906. uint32_t cached_has_bits = 0;
  7907. (void) cached_has_bits;
  7908. // bool front = 1;
  7909. if (this->_internal_front() != 0) {
  7910. target = stream->EnsureSpace(target);
  7911. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_front(), target);
  7912. }
  7913. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  7914. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  7915. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  7916. }
  7917. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCSwitch)
  7918. return target;
  7919. }
  7920. size_t CCSwitch::ByteSizeLong() const {
  7921. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCSwitch)
  7922. size_t total_size = 0;
  7923. uint32_t cached_has_bits = 0;
  7924. // Prevent compiler warnings about cached_has_bits being unused
  7925. (void) cached_has_bits;
  7926. // bool front = 1;
  7927. if (this->_internal_front() != 0) {
  7928. total_size += 1 + 1;
  7929. }
  7930. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  7931. }
  7932. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCSwitch::_class_data_ = {
  7933. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  7934. CCSwitch::MergeImpl
  7935. };
  7936. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCSwitch::GetClassData() const { return &_class_data_; }
  7937. void CCSwitch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  7938. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  7939. static_cast<CCSwitch *>(to)->MergeFrom(
  7940. static_cast<const CCSwitch &>(from));
  7941. }
  7942. void CCSwitch::MergeFrom(const CCSwitch& from) {
  7943. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCSwitch)
  7944. GOOGLE_DCHECK_NE(&from, this);
  7945. uint32_t cached_has_bits = 0;
  7946. (void) cached_has_bits;
  7947. if (from._internal_front() != 0) {
  7948. _internal_set_front(from._internal_front());
  7949. }
  7950. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  7951. }
  7952. void CCSwitch::CopyFrom(const CCSwitch& from) {
  7953. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCSwitch)
  7954. if (&from == this) return;
  7955. Clear();
  7956. MergeFrom(from);
  7957. }
  7958. bool CCSwitch::IsInitialized() const {
  7959. return true;
  7960. }
  7961. void CCSwitch::InternalSwap(CCSwitch* other) {
  7962. using std::swap;
  7963. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  7964. swap(front_, other->front_);
  7965. }
  7966. ::PROTOBUF_NAMESPACE_ID::Metadata CCSwitch::GetMetadata() const {
  7967. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  7968. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  7969. file_level_metadata_protocol_2eproto[33]);
  7970. }
  7971. // ===================================================================
  7972. class LidarPoint::_Internal {
  7973. public:
  7974. using HasBits = decltype(std::declval<LidarPoint>()._has_bits_);
  7975. static void set_has_timestamp(HasBits* has_bits) {
  7976. (*has_bits)[0] |= 2u;
  7977. }
  7978. static void set_has_seq(HasBits* has_bits) {
  7979. (*has_bits)[0] |= 4u;
  7980. }
  7981. static void set_has_frame_id(HasBits* has_bits) {
  7982. (*has_bits)[0] |= 1u;
  7983. }
  7984. static void set_has_height(HasBits* has_bits) {
  7985. (*has_bits)[0] |= 8u;
  7986. }
  7987. static void set_has_width(HasBits* has_bits) {
  7988. (*has_bits)[0] |= 16u;
  7989. }
  7990. static void set_has_is_dense(HasBits* has_bits) {
  7991. (*has_bits)[0] |= 32u;
  7992. }
  7993. static void set_has_is_left(HasBits* has_bits) {
  7994. (*has_bits)[0] |= 64u;
  7995. }
  7996. };
  7997. LidarPoint::LidarPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7998. bool is_message_owned)
  7999. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  8000. data_(arena) {
  8001. SharedCtor();
  8002. if (!is_message_owned) {
  8003. RegisterArenaDtor(arena);
  8004. }
  8005. // @@protoc_insertion_point(arena_constructor:RemoNet.LidarPoint)
  8006. }
  8007. LidarPoint::LidarPoint(const LidarPoint& from)
  8008. : ::PROTOBUF_NAMESPACE_ID::Message(),
  8009. _has_bits_(from._has_bits_),
  8010. data_(from.data_) {
  8011. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8012. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8013. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8014. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8015. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8016. if (from._internal_has_frame_id()) {
  8017. frame_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_frame_id(),
  8018. GetArenaForAllocation());
  8019. }
  8020. ::memcpy(&timestamp_, &from.timestamp_,
  8021. static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  8022. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8023. // @@protoc_insertion_point(copy_constructor:RemoNet.LidarPoint)
  8024. }
  8025. inline void LidarPoint::SharedCtor() {
  8026. frame_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8027. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8028. frame_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8029. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8030. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8031. reinterpret_cast<char*>(&timestamp_) - reinterpret_cast<char*>(this)),
  8032. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_left_) -
  8033. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8034. }
  8035. LidarPoint::~LidarPoint() {
  8036. // @@protoc_insertion_point(destructor:RemoNet.LidarPoint)
  8037. if (GetArenaForAllocation() != nullptr) return;
  8038. SharedDtor();
  8039. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8040. }
  8041. inline void LidarPoint::SharedDtor() {
  8042. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8043. frame_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8044. }
  8045. void LidarPoint::ArenaDtor(void* object) {
  8046. LidarPoint* _this = reinterpret_cast< LidarPoint* >(object);
  8047. (void)_this;
  8048. }
  8049. void LidarPoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8050. }
  8051. void LidarPoint::SetCachedSize(int size) const {
  8052. _cached_size_.Set(size);
  8053. }
  8054. void LidarPoint::Clear() {
  8055. // @@protoc_insertion_point(message_clear_start:RemoNet.LidarPoint)
  8056. uint32_t cached_has_bits = 0;
  8057. // Prevent compiler warnings about cached_has_bits being unused
  8058. (void) cached_has_bits;
  8059. data_.Clear();
  8060. cached_has_bits = _has_bits_[0];
  8061. if (cached_has_bits & 0x00000001u) {
  8062. frame_id_.ClearNonDefaultToEmpty();
  8063. }
  8064. if (cached_has_bits & 0x0000007eu) {
  8065. ::memset(&timestamp_, 0, static_cast<size_t>(
  8066. reinterpret_cast<char*>(&is_left_) -
  8067. reinterpret_cast<char*>(&timestamp_)) + sizeof(is_left_));
  8068. }
  8069. _has_bits_.Clear();
  8070. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8071. }
  8072. const char* LidarPoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8073. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8074. _Internal::HasBits has_bits{};
  8075. while (!ctx->Done(&ptr)) {
  8076. uint32_t tag;
  8077. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8078. switch (tag >> 3) {
  8079. // optional double timestamp = 1;
  8080. case 1:
  8081. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
  8082. _Internal::set_has_timestamp(&has_bits);
  8083. timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  8084. ptr += sizeof(double);
  8085. } else
  8086. goto handle_unusual;
  8087. continue;
  8088. // optional uint32 seq = 2;
  8089. case 2:
  8090. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8091. _Internal::set_has_seq(&has_bits);
  8092. seq_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8093. CHK_(ptr);
  8094. } else
  8095. goto handle_unusual;
  8096. continue;
  8097. // optional string frame_id = 3;
  8098. case 3:
  8099. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  8100. auto str = _internal_mutable_frame_id();
  8101. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8102. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "RemoNet.LidarPoint.frame_id"));
  8103. CHK_(ptr);
  8104. } else
  8105. goto handle_unusual;
  8106. continue;
  8107. // optional uint32 height = 4;
  8108. case 4:
  8109. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  8110. _Internal::set_has_height(&has_bits);
  8111. height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8112. CHK_(ptr);
  8113. } else
  8114. goto handle_unusual;
  8115. continue;
  8116. // optional uint32 width = 5;
  8117. case 5:
  8118. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  8119. _Internal::set_has_width(&has_bits);
  8120. width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8121. CHK_(ptr);
  8122. } else
  8123. goto handle_unusual;
  8124. continue;
  8125. // optional bool is_dense = 6;
  8126. case 6:
  8127. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  8128. _Internal::set_has_is_dense(&has_bits);
  8129. is_dense_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8130. CHK_(ptr);
  8131. } else
  8132. goto handle_unusual;
  8133. continue;
  8134. // optional bool is_left = 7;
  8135. case 7:
  8136. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  8137. _Internal::set_has_is_left(&has_bits);
  8138. is_left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  8139. CHK_(ptr);
  8140. } else
  8141. goto handle_unusual;
  8142. continue;
  8143. // repeated float data = 8;
  8144. case 8:
  8145. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  8146. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_data(), ptr, ctx);
  8147. CHK_(ptr);
  8148. } else if (static_cast<uint8_t>(tag) == 69) {
  8149. _internal_add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
  8150. ptr += sizeof(float);
  8151. } else
  8152. goto handle_unusual;
  8153. continue;
  8154. default:
  8155. goto handle_unusual;
  8156. } // switch
  8157. handle_unusual:
  8158. if ((tag == 0) || ((tag & 7) == 4)) {
  8159. CHK_(ptr);
  8160. ctx->SetLastTag(tag);
  8161. goto message_done;
  8162. }
  8163. ptr = UnknownFieldParse(
  8164. tag,
  8165. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8166. ptr, ctx);
  8167. CHK_(ptr != nullptr);
  8168. } // while
  8169. message_done:
  8170. _has_bits_.Or(has_bits);
  8171. return ptr;
  8172. failure:
  8173. ptr = nullptr;
  8174. goto message_done;
  8175. #undef CHK_
  8176. }
  8177. uint8_t* LidarPoint::_InternalSerialize(
  8178. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8179. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.LidarPoint)
  8180. uint32_t cached_has_bits = 0;
  8181. (void) cached_has_bits;
  8182. // optional double timestamp = 1;
  8183. if (_internal_has_timestamp()) {
  8184. target = stream->EnsureSpace(target);
  8185. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_timestamp(), target);
  8186. }
  8187. // optional uint32 seq = 2;
  8188. if (_internal_has_seq()) {
  8189. target = stream->EnsureSpace(target);
  8190. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_seq(), target);
  8191. }
  8192. // optional string frame_id = 3;
  8193. if (_internal_has_frame_id()) {
  8194. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  8195. this->_internal_frame_id().data(), static_cast<int>(this->_internal_frame_id().length()),
  8196. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  8197. "RemoNet.LidarPoint.frame_id");
  8198. target = stream->WriteStringMaybeAliased(
  8199. 3, this->_internal_frame_id(), target);
  8200. }
  8201. // optional uint32 height = 4;
  8202. if (_internal_has_height()) {
  8203. target = stream->EnsureSpace(target);
  8204. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_height(), target);
  8205. }
  8206. // optional uint32 width = 5;
  8207. if (_internal_has_width()) {
  8208. target = stream->EnsureSpace(target);
  8209. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_width(), target);
  8210. }
  8211. // optional bool is_dense = 6;
  8212. if (_internal_has_is_dense()) {
  8213. target = stream->EnsureSpace(target);
  8214. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_dense(), target);
  8215. }
  8216. // optional bool is_left = 7;
  8217. if (_internal_has_is_left()) {
  8218. target = stream->EnsureSpace(target);
  8219. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_is_left(), target);
  8220. }
  8221. // repeated float data = 8;
  8222. if (this->_internal_data_size() > 0) {
  8223. target = stream->WriteFixedPacked(8, _internal_data(), target);
  8224. }
  8225. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8226. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8227. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8228. }
  8229. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.LidarPoint)
  8230. return target;
  8231. }
  8232. size_t LidarPoint::ByteSizeLong() const {
  8233. // @@protoc_insertion_point(message_byte_size_start:RemoNet.LidarPoint)
  8234. size_t total_size = 0;
  8235. uint32_t cached_has_bits = 0;
  8236. // Prevent compiler warnings about cached_has_bits being unused
  8237. (void) cached_has_bits;
  8238. // repeated float data = 8;
  8239. {
  8240. unsigned int count = static_cast<unsigned int>(this->_internal_data_size());
  8241. size_t data_size = 4UL * count;
  8242. if (data_size > 0) {
  8243. total_size += 1 +
  8244. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  8245. static_cast<int32_t>(data_size));
  8246. }
  8247. total_size += data_size;
  8248. }
  8249. cached_has_bits = _has_bits_[0];
  8250. if (cached_has_bits & 0x0000007fu) {
  8251. // optional string frame_id = 3;
  8252. if (cached_has_bits & 0x00000001u) {
  8253. total_size += 1 +
  8254. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  8255. this->_internal_frame_id());
  8256. }
  8257. // optional double timestamp = 1;
  8258. if (cached_has_bits & 0x00000002u) {
  8259. total_size += 1 + 8;
  8260. }
  8261. // optional uint32 seq = 2;
  8262. if (cached_has_bits & 0x00000004u) {
  8263. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seq());
  8264. }
  8265. // optional uint32 height = 4;
  8266. if (cached_has_bits & 0x00000008u) {
  8267. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
  8268. }
  8269. // optional uint32 width = 5;
  8270. if (cached_has_bits & 0x00000010u) {
  8271. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
  8272. }
  8273. // optional bool is_dense = 6;
  8274. if (cached_has_bits & 0x00000020u) {
  8275. total_size += 1 + 1;
  8276. }
  8277. // optional bool is_left = 7;
  8278. if (cached_has_bits & 0x00000040u) {
  8279. total_size += 1 + 1;
  8280. }
  8281. }
  8282. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8283. }
  8284. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarPoint::_class_data_ = {
  8285. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8286. LidarPoint::MergeImpl
  8287. };
  8288. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarPoint::GetClassData() const { return &_class_data_; }
  8289. void LidarPoint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8290. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8291. static_cast<LidarPoint *>(to)->MergeFrom(
  8292. static_cast<const LidarPoint &>(from));
  8293. }
  8294. void LidarPoint::MergeFrom(const LidarPoint& from) {
  8295. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.LidarPoint)
  8296. GOOGLE_DCHECK_NE(&from, this);
  8297. uint32_t cached_has_bits = 0;
  8298. (void) cached_has_bits;
  8299. data_.MergeFrom(from.data_);
  8300. cached_has_bits = from._has_bits_[0];
  8301. if (cached_has_bits & 0x0000007fu) {
  8302. if (cached_has_bits & 0x00000001u) {
  8303. _internal_set_frame_id(from._internal_frame_id());
  8304. }
  8305. if (cached_has_bits & 0x00000002u) {
  8306. timestamp_ = from.timestamp_;
  8307. }
  8308. if (cached_has_bits & 0x00000004u) {
  8309. seq_ = from.seq_;
  8310. }
  8311. if (cached_has_bits & 0x00000008u) {
  8312. height_ = from.height_;
  8313. }
  8314. if (cached_has_bits & 0x00000010u) {
  8315. width_ = from.width_;
  8316. }
  8317. if (cached_has_bits & 0x00000020u) {
  8318. is_dense_ = from.is_dense_;
  8319. }
  8320. if (cached_has_bits & 0x00000040u) {
  8321. is_left_ = from.is_left_;
  8322. }
  8323. _has_bits_[0] |= cached_has_bits;
  8324. }
  8325. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8326. }
  8327. void LidarPoint::CopyFrom(const LidarPoint& from) {
  8328. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.LidarPoint)
  8329. if (&from == this) return;
  8330. Clear();
  8331. MergeFrom(from);
  8332. }
  8333. bool LidarPoint::IsInitialized() const {
  8334. return true;
  8335. }
  8336. void LidarPoint::InternalSwap(LidarPoint* other) {
  8337. using std::swap;
  8338. auto* lhs_arena = GetArenaForAllocation();
  8339. auto* rhs_arena = other->GetArenaForAllocation();
  8340. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8341. swap(_has_bits_[0], other->_has_bits_[0]);
  8342. data_.InternalSwap(&other->data_);
  8343. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8344. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8345. &frame_id_, lhs_arena,
  8346. &other->frame_id_, rhs_arena
  8347. );
  8348. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8349. PROTOBUF_FIELD_OFFSET(LidarPoint, is_left_)
  8350. + sizeof(LidarPoint::is_left_)
  8351. - PROTOBUF_FIELD_OFFSET(LidarPoint, timestamp_)>(
  8352. reinterpret_cast<char*>(&timestamp_),
  8353. reinterpret_cast<char*>(&other->timestamp_));
  8354. }
  8355. ::PROTOBUF_NAMESPACE_ID::Metadata LidarPoint::GetMetadata() const {
  8356. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8357. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8358. file_level_metadata_protocol_2eproto[34]);
  8359. }
  8360. // ===================================================================
  8361. class SensorStop::_Internal {
  8362. public:
  8363. };
  8364. SensorStop::SensorStop(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8365. bool is_message_owned)
  8366. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  8367. // @@protoc_insertion_point(arena_constructor:RemoNet.SensorStop)
  8368. }
  8369. SensorStop::SensorStop(const SensorStop& from)
  8370. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  8371. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8372. // @@protoc_insertion_point(copy_constructor:RemoNet.SensorStop)
  8373. }
  8374. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorStop::_class_data_ = {
  8375. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  8376. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  8377. };
  8378. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorStop::GetClassData() const { return &_class_data_; }
  8379. ::PROTOBUF_NAMESPACE_ID::Metadata SensorStop::GetMetadata() const {
  8380. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8381. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8382. file_level_metadata_protocol_2eproto[35]);
  8383. }
  8384. // ===================================================================
  8385. class StopAck::_Internal {
  8386. public:
  8387. };
  8388. StopAck::StopAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8389. bool is_message_owned)
  8390. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  8391. // @@protoc_insertion_point(arena_constructor:RemoNet.StopAck)
  8392. }
  8393. StopAck::StopAck(const StopAck& from)
  8394. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  8395. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8396. // @@protoc_insertion_point(copy_constructor:RemoNet.StopAck)
  8397. }
  8398. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopAck::_class_data_ = {
  8399. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  8400. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  8401. };
  8402. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopAck::GetClassData() const { return &_class_data_; }
  8403. ::PROTOBUF_NAMESPACE_ID::Metadata StopAck::GetMetadata() const {
  8404. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8405. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8406. file_level_metadata_protocol_2eproto[36]);
  8407. }
  8408. // ===================================================================
  8409. class CCManipulation::_Internal {
  8410. public:
  8411. };
  8412. CCManipulation::CCManipulation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8413. bool is_message_owned)
  8414. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8415. SharedCtor();
  8416. if (!is_message_owned) {
  8417. RegisterArenaDtor(arena);
  8418. }
  8419. // @@protoc_insertion_point(arena_constructor:RemoNet.CCManipulation)
  8420. }
  8421. CCManipulation::CCManipulation(const CCManipulation& from)
  8422. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8423. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8424. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8425. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8426. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8427. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8428. if (!from._internal_sensor().empty()) {
  8429. sensor_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sensor(),
  8430. GetArenaForAllocation());
  8431. }
  8432. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8433. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8434. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8435. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8436. if (!from._internal_car().empty()) {
  8437. car_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_car(),
  8438. GetArenaForAllocation());
  8439. }
  8440. // @@protoc_insertion_point(copy_constructor:RemoNet.CCManipulation)
  8441. }
  8442. inline void CCManipulation::SharedCtor() {
  8443. sensor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8444. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8445. sensor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8446. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8447. car_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8448. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8449. car_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8450. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8451. }
  8452. CCManipulation::~CCManipulation() {
  8453. // @@protoc_insertion_point(destructor:RemoNet.CCManipulation)
  8454. if (GetArenaForAllocation() != nullptr) return;
  8455. SharedDtor();
  8456. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8457. }
  8458. inline void CCManipulation::SharedDtor() {
  8459. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8460. sensor_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8461. car_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8462. }
  8463. void CCManipulation::ArenaDtor(void* object) {
  8464. CCManipulation* _this = reinterpret_cast< CCManipulation* >(object);
  8465. (void)_this;
  8466. }
  8467. void CCManipulation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8468. }
  8469. void CCManipulation::SetCachedSize(int size) const {
  8470. _cached_size_.Set(size);
  8471. }
  8472. void CCManipulation::Clear() {
  8473. // @@protoc_insertion_point(message_clear_start:RemoNet.CCManipulation)
  8474. uint32_t cached_has_bits = 0;
  8475. // Prevent compiler warnings about cached_has_bits being unused
  8476. (void) cached_has_bits;
  8477. sensor_.ClearToEmpty();
  8478. car_.ClearToEmpty();
  8479. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8480. }
  8481. const char* CCManipulation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8482. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8483. while (!ctx->Done(&ptr)) {
  8484. uint32_t tag;
  8485. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8486. switch (tag >> 3) {
  8487. // bytes sensor = 1;
  8488. case 1:
  8489. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8490. auto str = _internal_mutable_sensor();
  8491. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8492. CHK_(ptr);
  8493. } else
  8494. goto handle_unusual;
  8495. continue;
  8496. // bytes car = 2;
  8497. case 2:
  8498. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  8499. auto str = _internal_mutable_car();
  8500. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  8501. CHK_(ptr);
  8502. } else
  8503. goto handle_unusual;
  8504. continue;
  8505. default:
  8506. goto handle_unusual;
  8507. } // switch
  8508. handle_unusual:
  8509. if ((tag == 0) || ((tag & 7) == 4)) {
  8510. CHK_(ptr);
  8511. ctx->SetLastTag(tag);
  8512. goto message_done;
  8513. }
  8514. ptr = UnknownFieldParse(
  8515. tag,
  8516. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8517. ptr, ctx);
  8518. CHK_(ptr != nullptr);
  8519. } // while
  8520. message_done:
  8521. return ptr;
  8522. failure:
  8523. ptr = nullptr;
  8524. goto message_done;
  8525. #undef CHK_
  8526. }
  8527. uint8_t* CCManipulation::_InternalSerialize(
  8528. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8529. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCManipulation)
  8530. uint32_t cached_has_bits = 0;
  8531. (void) cached_has_bits;
  8532. // bytes sensor = 1;
  8533. if (!this->_internal_sensor().empty()) {
  8534. target = stream->WriteBytesMaybeAliased(
  8535. 1, this->_internal_sensor(), target);
  8536. }
  8537. // bytes car = 2;
  8538. if (!this->_internal_car().empty()) {
  8539. target = stream->WriteBytesMaybeAliased(
  8540. 2, this->_internal_car(), target);
  8541. }
  8542. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8543. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8544. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8545. }
  8546. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCManipulation)
  8547. return target;
  8548. }
  8549. size_t CCManipulation::ByteSizeLong() const {
  8550. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCManipulation)
  8551. size_t total_size = 0;
  8552. uint32_t cached_has_bits = 0;
  8553. // Prevent compiler warnings about cached_has_bits being unused
  8554. (void) cached_has_bits;
  8555. // bytes sensor = 1;
  8556. if (!this->_internal_sensor().empty()) {
  8557. total_size += 1 +
  8558. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  8559. this->_internal_sensor());
  8560. }
  8561. // bytes car = 2;
  8562. if (!this->_internal_car().empty()) {
  8563. total_size += 1 +
  8564. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  8565. this->_internal_car());
  8566. }
  8567. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8568. }
  8569. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCManipulation::_class_data_ = {
  8570. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8571. CCManipulation::MergeImpl
  8572. };
  8573. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCManipulation::GetClassData() const { return &_class_data_; }
  8574. void CCManipulation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8575. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8576. static_cast<CCManipulation *>(to)->MergeFrom(
  8577. static_cast<const CCManipulation &>(from));
  8578. }
  8579. void CCManipulation::MergeFrom(const CCManipulation& from) {
  8580. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCManipulation)
  8581. GOOGLE_DCHECK_NE(&from, this);
  8582. uint32_t cached_has_bits = 0;
  8583. (void) cached_has_bits;
  8584. if (!from._internal_sensor().empty()) {
  8585. _internal_set_sensor(from._internal_sensor());
  8586. }
  8587. if (!from._internal_car().empty()) {
  8588. _internal_set_car(from._internal_car());
  8589. }
  8590. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8591. }
  8592. void CCManipulation::CopyFrom(const CCManipulation& from) {
  8593. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCManipulation)
  8594. if (&from == this) return;
  8595. Clear();
  8596. MergeFrom(from);
  8597. }
  8598. bool CCManipulation::IsInitialized() const {
  8599. return true;
  8600. }
  8601. void CCManipulation::InternalSwap(CCManipulation* other) {
  8602. using std::swap;
  8603. auto* lhs_arena = GetArenaForAllocation();
  8604. auto* rhs_arena = other->GetArenaForAllocation();
  8605. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8606. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8607. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8608. &sensor_, lhs_arena,
  8609. &other->sensor_, rhs_arena
  8610. );
  8611. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  8612. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8613. &car_, lhs_arena,
  8614. &other->car_, rhs_arena
  8615. );
  8616. }
  8617. ::PROTOBUF_NAMESPACE_ID::Metadata CCManipulation::GetMetadata() const {
  8618. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8619. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8620. file_level_metadata_protocol_2eproto[37]);
  8621. }
  8622. // ===================================================================
  8623. class SCAddRobot::_Internal {
  8624. public:
  8625. static const ::RemoNet::Robot& robot(const SCAddRobot* msg);
  8626. };
  8627. const ::RemoNet::Robot&
  8628. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  8629. return *msg->robot_;
  8630. }
  8631. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8632. bool is_message_owned)
  8633. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8634. SharedCtor();
  8635. if (!is_message_owned) {
  8636. RegisterArenaDtor(arena);
  8637. }
  8638. // @@protoc_insertion_point(arena_constructor:RemoNet.SCAddRobot)
  8639. }
  8640. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  8641. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8642. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8643. if (from._internal_has_robot()) {
  8644. robot_ = new ::RemoNet::Robot(*from.robot_);
  8645. } else {
  8646. robot_ = nullptr;
  8647. }
  8648. // @@protoc_insertion_point(copy_constructor:RemoNet.SCAddRobot)
  8649. }
  8650. inline void SCAddRobot::SharedCtor() {
  8651. robot_ = nullptr;
  8652. }
  8653. SCAddRobot::~SCAddRobot() {
  8654. // @@protoc_insertion_point(destructor:RemoNet.SCAddRobot)
  8655. if (GetArenaForAllocation() != nullptr) return;
  8656. SharedDtor();
  8657. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8658. }
  8659. inline void SCAddRobot::SharedDtor() {
  8660. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8661. if (this != internal_default_instance()) delete robot_;
  8662. }
  8663. void SCAddRobot::ArenaDtor(void* object) {
  8664. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  8665. (void)_this;
  8666. }
  8667. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8668. }
  8669. void SCAddRobot::SetCachedSize(int size) const {
  8670. _cached_size_.Set(size);
  8671. }
  8672. void SCAddRobot::Clear() {
  8673. // @@protoc_insertion_point(message_clear_start:RemoNet.SCAddRobot)
  8674. uint32_t cached_has_bits = 0;
  8675. // Prevent compiler warnings about cached_has_bits being unused
  8676. (void) cached_has_bits;
  8677. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  8678. delete robot_;
  8679. }
  8680. robot_ = nullptr;
  8681. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8682. }
  8683. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8684. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8685. while (!ctx->Done(&ptr)) {
  8686. uint32_t tag;
  8687. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8688. switch (tag >> 3) {
  8689. // .RemoNet.Robot robot = 1;
  8690. case 1:
  8691. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  8692. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  8693. CHK_(ptr);
  8694. } else
  8695. goto handle_unusual;
  8696. continue;
  8697. default:
  8698. goto handle_unusual;
  8699. } // switch
  8700. handle_unusual:
  8701. if ((tag == 0) || ((tag & 7) == 4)) {
  8702. CHK_(ptr);
  8703. ctx->SetLastTag(tag);
  8704. goto message_done;
  8705. }
  8706. ptr = UnknownFieldParse(
  8707. tag,
  8708. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8709. ptr, ctx);
  8710. CHK_(ptr != nullptr);
  8711. } // while
  8712. message_done:
  8713. return ptr;
  8714. failure:
  8715. ptr = nullptr;
  8716. goto message_done;
  8717. #undef CHK_
  8718. }
  8719. uint8_t* SCAddRobot::_InternalSerialize(
  8720. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8721. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCAddRobot)
  8722. uint32_t cached_has_bits = 0;
  8723. (void) cached_has_bits;
  8724. // .RemoNet.Robot robot = 1;
  8725. if (this->_internal_has_robot()) {
  8726. target = stream->EnsureSpace(target);
  8727. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  8728. InternalWriteMessage(
  8729. 1, _Internal::robot(this), target, stream);
  8730. }
  8731. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8732. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8733. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8734. }
  8735. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCAddRobot)
  8736. return target;
  8737. }
  8738. size_t SCAddRobot::ByteSizeLong() const {
  8739. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCAddRobot)
  8740. size_t total_size = 0;
  8741. uint32_t cached_has_bits = 0;
  8742. // Prevent compiler warnings about cached_has_bits being unused
  8743. (void) cached_has_bits;
  8744. // .RemoNet.Robot robot = 1;
  8745. if (this->_internal_has_robot()) {
  8746. total_size += 1 +
  8747. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  8748. *robot_);
  8749. }
  8750. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8751. }
  8752. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  8753. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8754. SCAddRobot::MergeImpl
  8755. };
  8756. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  8757. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8758. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8759. static_cast<SCAddRobot *>(to)->MergeFrom(
  8760. static_cast<const SCAddRobot &>(from));
  8761. }
  8762. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  8763. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCAddRobot)
  8764. GOOGLE_DCHECK_NE(&from, this);
  8765. uint32_t cached_has_bits = 0;
  8766. (void) cached_has_bits;
  8767. if (from._internal_has_robot()) {
  8768. _internal_mutable_robot()->::RemoNet::Robot::MergeFrom(from._internal_robot());
  8769. }
  8770. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8771. }
  8772. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  8773. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCAddRobot)
  8774. if (&from == this) return;
  8775. Clear();
  8776. MergeFrom(from);
  8777. }
  8778. bool SCAddRobot::IsInitialized() const {
  8779. return true;
  8780. }
  8781. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  8782. using std::swap;
  8783. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8784. swap(robot_, other->robot_);
  8785. }
  8786. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  8787. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8788. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8789. file_level_metadata_protocol_2eproto[38]);
  8790. }
  8791. // ===================================================================
  8792. class SCDelRobot::_Internal {
  8793. public:
  8794. };
  8795. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8796. bool is_message_owned)
  8797. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8798. SharedCtor();
  8799. if (!is_message_owned) {
  8800. RegisterArenaDtor(arena);
  8801. }
  8802. // @@protoc_insertion_point(arena_constructor:RemoNet.SCDelRobot)
  8803. }
  8804. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  8805. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8806. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8807. ::memcpy(&peer_, &from.peer_,
  8808. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8809. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8810. // @@protoc_insertion_point(copy_constructor:RemoNet.SCDelRobot)
  8811. }
  8812. inline void SCDelRobot::SharedCtor() {
  8813. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  8814. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  8815. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  8816. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8817. }
  8818. SCDelRobot::~SCDelRobot() {
  8819. // @@protoc_insertion_point(destructor:RemoNet.SCDelRobot)
  8820. if (GetArenaForAllocation() != nullptr) return;
  8821. SharedDtor();
  8822. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8823. }
  8824. inline void SCDelRobot::SharedDtor() {
  8825. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  8826. }
  8827. void SCDelRobot::ArenaDtor(void* object) {
  8828. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  8829. (void)_this;
  8830. }
  8831. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  8832. }
  8833. void SCDelRobot::SetCachedSize(int size) const {
  8834. _cached_size_.Set(size);
  8835. }
  8836. void SCDelRobot::Clear() {
  8837. // @@protoc_insertion_point(message_clear_start:RemoNet.SCDelRobot)
  8838. uint32_t cached_has_bits = 0;
  8839. // Prevent compiler warnings about cached_has_bits being unused
  8840. (void) cached_has_bits;
  8841. ::memset(&peer_, 0, static_cast<size_t>(
  8842. reinterpret_cast<char*>(&egotype_) -
  8843. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  8844. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8845. }
  8846. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  8847. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  8848. while (!ctx->Done(&ptr)) {
  8849. uint32_t tag;
  8850. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  8851. switch (tag >> 3) {
  8852. // int32 peer = 1;
  8853. case 1:
  8854. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  8855. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8856. CHK_(ptr);
  8857. } else
  8858. goto handle_unusual;
  8859. continue;
  8860. // int32 egotype = 2;
  8861. case 2:
  8862. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  8863. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  8864. CHK_(ptr);
  8865. } else
  8866. goto handle_unusual;
  8867. continue;
  8868. default:
  8869. goto handle_unusual;
  8870. } // switch
  8871. handle_unusual:
  8872. if ((tag == 0) || ((tag & 7) == 4)) {
  8873. CHK_(ptr);
  8874. ctx->SetLastTag(tag);
  8875. goto message_done;
  8876. }
  8877. ptr = UnknownFieldParse(
  8878. tag,
  8879. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  8880. ptr, ctx);
  8881. CHK_(ptr != nullptr);
  8882. } // while
  8883. message_done:
  8884. return ptr;
  8885. failure:
  8886. ptr = nullptr;
  8887. goto message_done;
  8888. #undef CHK_
  8889. }
  8890. uint8_t* SCDelRobot::_InternalSerialize(
  8891. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  8892. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.SCDelRobot)
  8893. uint32_t cached_has_bits = 0;
  8894. (void) cached_has_bits;
  8895. // int32 peer = 1;
  8896. if (this->_internal_peer() != 0) {
  8897. target = stream->EnsureSpace(target);
  8898. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  8899. }
  8900. // int32 egotype = 2;
  8901. if (this->_internal_egotype() != 0) {
  8902. target = stream->EnsureSpace(target);
  8903. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  8904. }
  8905. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  8906. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  8907. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  8908. }
  8909. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.SCDelRobot)
  8910. return target;
  8911. }
  8912. size_t SCDelRobot::ByteSizeLong() const {
  8913. // @@protoc_insertion_point(message_byte_size_start:RemoNet.SCDelRobot)
  8914. size_t total_size = 0;
  8915. uint32_t cached_has_bits = 0;
  8916. // Prevent compiler warnings about cached_has_bits being unused
  8917. (void) cached_has_bits;
  8918. // int32 peer = 1;
  8919. if (this->_internal_peer() != 0) {
  8920. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  8921. }
  8922. // int32 egotype = 2;
  8923. if (this->_internal_egotype() != 0) {
  8924. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  8925. }
  8926. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  8927. }
  8928. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  8929. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  8930. SCDelRobot::MergeImpl
  8931. };
  8932. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  8933. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  8934. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  8935. static_cast<SCDelRobot *>(to)->MergeFrom(
  8936. static_cast<const SCDelRobot &>(from));
  8937. }
  8938. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  8939. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.SCDelRobot)
  8940. GOOGLE_DCHECK_NE(&from, this);
  8941. uint32_t cached_has_bits = 0;
  8942. (void) cached_has_bits;
  8943. if (from._internal_peer() != 0) {
  8944. _internal_set_peer(from._internal_peer());
  8945. }
  8946. if (from._internal_egotype() != 0) {
  8947. _internal_set_egotype(from._internal_egotype());
  8948. }
  8949. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8950. }
  8951. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  8952. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.SCDelRobot)
  8953. if (&from == this) return;
  8954. Clear();
  8955. MergeFrom(from);
  8956. }
  8957. bool SCDelRobot::IsInitialized() const {
  8958. return true;
  8959. }
  8960. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  8961. using std::swap;
  8962. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  8963. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  8964. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  8965. + sizeof(SCDelRobot::egotype_)
  8966. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  8967. reinterpret_cast<char*>(&peer_),
  8968. reinterpret_cast<char*>(&other->peer_));
  8969. }
  8970. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  8971. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  8972. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  8973. file_level_metadata_protocol_2eproto[39]);
  8974. }
  8975. // ===================================================================
  8976. class State::_Internal {
  8977. public:
  8978. };
  8979. State::State(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  8980. bool is_message_owned)
  8981. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  8982. SharedCtor();
  8983. if (!is_message_owned) {
  8984. RegisterArenaDtor(arena);
  8985. }
  8986. // @@protoc_insertion_point(arena_constructor:RemoNet.State)
  8987. }
  8988. State::State(const State& from)
  8989. : ::PROTOBUF_NAMESPACE_ID::Message() {
  8990. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  8991. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  8992. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8993. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8994. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8995. if (!from._internal_error_buff().empty()) {
  8996. error_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_buff(),
  8997. GetArenaForAllocation());
  8998. }
  8999. all_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9000. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9001. all_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9002. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9003. if (!from._internal_all_buff().empty()) {
  9004. all_buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_all_buff(),
  9005. GetArenaForAllocation());
  9006. }
  9007. ::memcpy(&engine_speed_, &from.engine_speed_,
  9008. static_cast<size_t>(reinterpret_cast<char*>(&engine_num_) -
  9009. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  9010. // @@protoc_insertion_point(copy_constructor:RemoNet.State)
  9011. }
  9012. inline void State::SharedCtor() {
  9013. error_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9014. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9015. error_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9016. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9017. all_buff_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9018. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9019. all_buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9020. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9021. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9022. reinterpret_cast<char*>(&engine_speed_) - reinterpret_cast<char*>(this)),
  9023. 0, static_cast<size_t>(reinterpret_cast<char*>(&engine_num_) -
  9024. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  9025. }
  9026. State::~State() {
  9027. // @@protoc_insertion_point(destructor:RemoNet.State)
  9028. if (GetArenaForAllocation() != nullptr) return;
  9029. SharedDtor();
  9030. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9031. }
  9032. inline void State::SharedDtor() {
  9033. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9034. error_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9035. all_buff_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9036. }
  9037. void State::ArenaDtor(void* object) {
  9038. State* _this = reinterpret_cast< State* >(object);
  9039. (void)_this;
  9040. }
  9041. void State::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  9042. }
  9043. void State::SetCachedSize(int size) const {
  9044. _cached_size_.Set(size);
  9045. }
  9046. void State::Clear() {
  9047. // @@protoc_insertion_point(message_clear_start:RemoNet.State)
  9048. uint32_t cached_has_bits = 0;
  9049. // Prevent compiler warnings about cached_has_bits being unused
  9050. (void) cached_has_bits;
  9051. error_buff_.ClearToEmpty();
  9052. all_buff_.ClearToEmpty();
  9053. ::memset(&engine_speed_, 0, static_cast<size_t>(
  9054. reinterpret_cast<char*>(&engine_num_) -
  9055. reinterpret_cast<char*>(&engine_speed_)) + sizeof(engine_num_));
  9056. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9057. }
  9058. const char* State::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  9059. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  9060. while (!ctx->Done(&ptr)) {
  9061. uint32_t tag;
  9062. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  9063. switch (tag >> 3) {
  9064. // int32 engine_speed = 1;
  9065. case 1:
  9066. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9067. engine_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9068. CHK_(ptr);
  9069. } else
  9070. goto handle_unusual;
  9071. continue;
  9072. // int32 travel_speed = 2;
  9073. case 2:
  9074. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9075. travel_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9076. CHK_(ptr);
  9077. } else
  9078. goto handle_unusual;
  9079. continue;
  9080. // int32 fuel_level = 3;
  9081. case 3:
  9082. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9083. fuel_level_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9084. CHK_(ptr);
  9085. } else
  9086. goto handle_unusual;
  9087. continue;
  9088. // int32 engine_temperature = 4;
  9089. case 4:
  9090. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  9091. engine_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9092. CHK_(ptr);
  9093. } else
  9094. goto handle_unusual;
  9095. continue;
  9096. // int32 hydraulic_oil_temperature = 5;
  9097. case 5:
  9098. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  9099. hydraulic_oil_temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9100. CHK_(ptr);
  9101. } else
  9102. goto handle_unusual;
  9103. continue;
  9104. // int32 main_pump_1_pressure = 6;
  9105. case 6:
  9106. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  9107. main_pump_1_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9108. CHK_(ptr);
  9109. } else
  9110. goto handle_unusual;
  9111. continue;
  9112. // int32 main_pump_2_pressure = 7;
  9113. case 7:
  9114. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  9115. main_pump_2_pressure_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9116. CHK_(ptr);
  9117. } else
  9118. goto handle_unusual;
  9119. continue;
  9120. // int32 hand_gear = 8;
  9121. case 8:
  9122. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
  9123. hand_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9124. CHK_(ptr);
  9125. } else
  9126. goto handle_unusual;
  9127. continue;
  9128. // int32 actual_gear = 9;
  9129. case 9:
  9130. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
  9131. actual_gear_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9132. CHK_(ptr);
  9133. } else
  9134. goto handle_unusual;
  9135. continue;
  9136. // float gripper_height = 10;
  9137. case 10:
  9138. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 85)) {
  9139. gripper_height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9140. ptr += sizeof(float);
  9141. } else
  9142. goto handle_unusual;
  9143. continue;
  9144. // float amplitude = 11;
  9145. case 11:
  9146. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 93)) {
  9147. amplitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  9148. ptr += sizeof(float);
  9149. } else
  9150. goto handle_unusual;
  9151. continue;
  9152. // int32 boom_angle = 12;
  9153. case 12:
  9154. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
  9155. boom_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9156. CHK_(ptr);
  9157. } else
  9158. goto handle_unusual;
  9159. continue;
  9160. // int32 stick_angle = 13;
  9161. case 13:
  9162. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) {
  9163. stick_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9164. CHK_(ptr);
  9165. } else
  9166. goto handle_unusual;
  9167. continue;
  9168. // int32 idle_protection = 14;
  9169. case 14:
  9170. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
  9171. idle_protection_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9172. CHK_(ptr);
  9173. } else
  9174. goto handle_unusual;
  9175. continue;
  9176. // int32 front_toggle = 15;
  9177. case 15:
  9178. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) {
  9179. front_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9180. CHK_(ptr);
  9181. } else
  9182. goto handle_unusual;
  9183. continue;
  9184. // int32 back_toggle = 16;
  9185. case 16:
  9186. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  9187. back_toggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9188. CHK_(ptr);
  9189. } else
  9190. goto handle_unusual;
  9191. continue;
  9192. // bytes error_Buff = 17;
  9193. case 17:
  9194. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) {
  9195. auto str = _internal_mutable_error_buff();
  9196. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9197. CHK_(ptr);
  9198. } else
  9199. goto handle_unusual;
  9200. continue;
  9201. // int32 interlock = 18;
  9202. case 18:
  9203. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  9204. interlock_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9205. CHK_(ptr);
  9206. } else
  9207. goto handle_unusual;
  9208. continue;
  9209. // int32 safety_switch = 19;
  9210. case 19:
  9211. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  9212. safety_switch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9213. CHK_(ptr);
  9214. } else
  9215. goto handle_unusual;
  9216. continue;
  9217. // int32 arm_lift_pilot = 20;
  9218. case 20:
  9219. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) {
  9220. arm_lift_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9221. CHK_(ptr);
  9222. } else
  9223. goto handle_unusual;
  9224. continue;
  9225. // int32 arm_lowering_pilot = 21;
  9226. case 21:
  9227. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) {
  9228. arm_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9229. CHK_(ptr);
  9230. } else
  9231. goto handle_unusual;
  9232. continue;
  9233. // int32 lever_lifting_pilot = 22;
  9234. case 22:
  9235. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) {
  9236. lever_lifting_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9237. CHK_(ptr);
  9238. } else
  9239. goto handle_unusual;
  9240. continue;
  9241. // int32 rod_lowering_pilot = 23;
  9242. case 23:
  9243. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) {
  9244. rod_lowering_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9245. CHK_(ptr);
  9246. } else
  9247. goto handle_unusual;
  9248. continue;
  9249. // int32 left_rotary_pilot = 24;
  9250. case 24:
  9251. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
  9252. left_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9253. CHK_(ptr);
  9254. } else
  9255. goto handle_unusual;
  9256. continue;
  9257. // int32 right_rotary_pilot = 25;
  9258. case 25:
  9259. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
  9260. right_rotary_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9261. CHK_(ptr);
  9262. } else
  9263. goto handle_unusual;
  9264. continue;
  9265. // int32 grab_open_pilot = 26;
  9266. case 26:
  9267. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) {
  9268. grab_open_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9269. CHK_(ptr);
  9270. } else
  9271. goto handle_unusual;
  9272. continue;
  9273. // int32 grab_close_pilot = 27;
  9274. case 27:
  9275. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) {
  9276. grab_close_pilot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9277. CHK_(ptr);
  9278. } else
  9279. goto handle_unusual;
  9280. continue;
  9281. // int32 safety_valves = 28;
  9282. case 28:
  9283. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) {
  9284. safety_valves_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9285. CHK_(ptr);
  9286. } else
  9287. goto handle_unusual;
  9288. continue;
  9289. // int32 function_code = 29;
  9290. case 29:
  9291. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) {
  9292. function_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9293. CHK_(ptr);
  9294. } else
  9295. goto handle_unusual;
  9296. continue;
  9297. // int32 main_add = 30;
  9298. case 30:
  9299. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) {
  9300. main_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9301. CHK_(ptr);
  9302. } else
  9303. goto handle_unusual;
  9304. continue;
  9305. // int32 sub_add = 31;
  9306. case 31:
  9307. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) {
  9308. sub_add_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9309. CHK_(ptr);
  9310. } else
  9311. goto handle_unusual;
  9312. continue;
  9313. // int32 paramter = 32;
  9314. case 32:
  9315. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) {
  9316. paramter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9317. CHK_(ptr);
  9318. } else
  9319. goto handle_unusual;
  9320. continue;
  9321. // int32 engine_spn = 33;
  9322. case 33:
  9323. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  9324. engine_spn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9325. CHK_(ptr);
  9326. } else
  9327. goto handle_unusual;
  9328. continue;
  9329. // int32 engine_fmi = 34;
  9330. case 34:
  9331. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  9332. engine_fmi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9333. CHK_(ptr);
  9334. } else
  9335. goto handle_unusual;
  9336. continue;
  9337. // int32 engine_num = 35;
  9338. case 35:
  9339. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  9340. engine_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  9341. CHK_(ptr);
  9342. } else
  9343. goto handle_unusual;
  9344. continue;
  9345. // bytes all_Buff = 36;
  9346. case 36:
  9347. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  9348. auto str = _internal_mutable_all_buff();
  9349. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  9350. CHK_(ptr);
  9351. } else
  9352. goto handle_unusual;
  9353. continue;
  9354. default:
  9355. goto handle_unusual;
  9356. } // switch
  9357. handle_unusual:
  9358. if ((tag == 0) || ((tag & 7) == 4)) {
  9359. CHK_(ptr);
  9360. ctx->SetLastTag(tag);
  9361. goto message_done;
  9362. }
  9363. ptr = UnknownFieldParse(
  9364. tag,
  9365. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  9366. ptr, ctx);
  9367. CHK_(ptr != nullptr);
  9368. } // while
  9369. message_done:
  9370. return ptr;
  9371. failure:
  9372. ptr = nullptr;
  9373. goto message_done;
  9374. #undef CHK_
  9375. }
  9376. uint8_t* State::_InternalSerialize(
  9377. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  9378. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.State)
  9379. uint32_t cached_has_bits = 0;
  9380. (void) cached_has_bits;
  9381. // int32 engine_speed = 1;
  9382. if (this->_internal_engine_speed() != 0) {
  9383. target = stream->EnsureSpace(target);
  9384. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_engine_speed(), target);
  9385. }
  9386. // int32 travel_speed = 2;
  9387. if (this->_internal_travel_speed() != 0) {
  9388. target = stream->EnsureSpace(target);
  9389. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_travel_speed(), target);
  9390. }
  9391. // int32 fuel_level = 3;
  9392. if (this->_internal_fuel_level() != 0) {
  9393. target = stream->EnsureSpace(target);
  9394. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_fuel_level(), target);
  9395. }
  9396. // int32 engine_temperature = 4;
  9397. if (this->_internal_engine_temperature() != 0) {
  9398. target = stream->EnsureSpace(target);
  9399. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_engine_temperature(), target);
  9400. }
  9401. // int32 hydraulic_oil_temperature = 5;
  9402. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9403. target = stream->EnsureSpace(target);
  9404. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hydraulic_oil_temperature(), target);
  9405. }
  9406. // int32 main_pump_1_pressure = 6;
  9407. if (this->_internal_main_pump_1_pressure() != 0) {
  9408. target = stream->EnsureSpace(target);
  9409. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_main_pump_1_pressure(), target);
  9410. }
  9411. // int32 main_pump_2_pressure = 7;
  9412. if (this->_internal_main_pump_2_pressure() != 0) {
  9413. target = stream->EnsureSpace(target);
  9414. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_main_pump_2_pressure(), target);
  9415. }
  9416. // int32 hand_gear = 8;
  9417. if (this->_internal_hand_gear() != 0) {
  9418. target = stream->EnsureSpace(target);
  9419. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_hand_gear(), target);
  9420. }
  9421. // int32 actual_gear = 9;
  9422. if (this->_internal_actual_gear() != 0) {
  9423. target = stream->EnsureSpace(target);
  9424. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_actual_gear(), target);
  9425. }
  9426. // float gripper_height = 10;
  9427. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9428. float tmp_gripper_height = this->_internal_gripper_height();
  9429. uint32_t raw_gripper_height;
  9430. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9431. if (raw_gripper_height != 0) {
  9432. target = stream->EnsureSpace(target);
  9433. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_gripper_height(), target);
  9434. }
  9435. // float amplitude = 11;
  9436. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9437. float tmp_amplitude = this->_internal_amplitude();
  9438. uint32_t raw_amplitude;
  9439. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9440. if (raw_amplitude != 0) {
  9441. target = stream->EnsureSpace(target);
  9442. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->_internal_amplitude(), target);
  9443. }
  9444. // int32 boom_angle = 12;
  9445. if (this->_internal_boom_angle() != 0) {
  9446. target = stream->EnsureSpace(target);
  9447. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_boom_angle(), target);
  9448. }
  9449. // int32 stick_angle = 13;
  9450. if (this->_internal_stick_angle() != 0) {
  9451. target = stream->EnsureSpace(target);
  9452. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_stick_angle(), target);
  9453. }
  9454. // int32 idle_protection = 14;
  9455. if (this->_internal_idle_protection() != 0) {
  9456. target = stream->EnsureSpace(target);
  9457. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_idle_protection(), target);
  9458. }
  9459. // int32 front_toggle = 15;
  9460. if (this->_internal_front_toggle() != 0) {
  9461. target = stream->EnsureSpace(target);
  9462. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_front_toggle(), target);
  9463. }
  9464. // int32 back_toggle = 16;
  9465. if (this->_internal_back_toggle() != 0) {
  9466. target = stream->EnsureSpace(target);
  9467. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_back_toggle(), target);
  9468. }
  9469. // bytes error_Buff = 17;
  9470. if (!this->_internal_error_buff().empty()) {
  9471. target = stream->WriteBytesMaybeAliased(
  9472. 17, this->_internal_error_buff(), target);
  9473. }
  9474. // int32 interlock = 18;
  9475. if (this->_internal_interlock() != 0) {
  9476. target = stream->EnsureSpace(target);
  9477. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_interlock(), target);
  9478. }
  9479. // int32 safety_switch = 19;
  9480. if (this->_internal_safety_switch() != 0) {
  9481. target = stream->EnsureSpace(target);
  9482. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(19, this->_internal_safety_switch(), target);
  9483. }
  9484. // int32 arm_lift_pilot = 20;
  9485. if (this->_internal_arm_lift_pilot() != 0) {
  9486. target = stream->EnsureSpace(target);
  9487. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(20, this->_internal_arm_lift_pilot(), target);
  9488. }
  9489. // int32 arm_lowering_pilot = 21;
  9490. if (this->_internal_arm_lowering_pilot() != 0) {
  9491. target = stream->EnsureSpace(target);
  9492. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(21, this->_internal_arm_lowering_pilot(), target);
  9493. }
  9494. // int32 lever_lifting_pilot = 22;
  9495. if (this->_internal_lever_lifting_pilot() != 0) {
  9496. target = stream->EnsureSpace(target);
  9497. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_lever_lifting_pilot(), target);
  9498. }
  9499. // int32 rod_lowering_pilot = 23;
  9500. if (this->_internal_rod_lowering_pilot() != 0) {
  9501. target = stream->EnsureSpace(target);
  9502. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_rod_lowering_pilot(), target);
  9503. }
  9504. // int32 left_rotary_pilot = 24;
  9505. if (this->_internal_left_rotary_pilot() != 0) {
  9506. target = stream->EnsureSpace(target);
  9507. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(24, this->_internal_left_rotary_pilot(), target);
  9508. }
  9509. // int32 right_rotary_pilot = 25;
  9510. if (this->_internal_right_rotary_pilot() != 0) {
  9511. target = stream->EnsureSpace(target);
  9512. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(25, this->_internal_right_rotary_pilot(), target);
  9513. }
  9514. // int32 grab_open_pilot = 26;
  9515. if (this->_internal_grab_open_pilot() != 0) {
  9516. target = stream->EnsureSpace(target);
  9517. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(26, this->_internal_grab_open_pilot(), target);
  9518. }
  9519. // int32 grab_close_pilot = 27;
  9520. if (this->_internal_grab_close_pilot() != 0) {
  9521. target = stream->EnsureSpace(target);
  9522. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(27, this->_internal_grab_close_pilot(), target);
  9523. }
  9524. // int32 safety_valves = 28;
  9525. if (this->_internal_safety_valves() != 0) {
  9526. target = stream->EnsureSpace(target);
  9527. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(28, this->_internal_safety_valves(), target);
  9528. }
  9529. // int32 function_code = 29;
  9530. if (this->_internal_function_code() != 0) {
  9531. target = stream->EnsureSpace(target);
  9532. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(29, this->_internal_function_code(), target);
  9533. }
  9534. // int32 main_add = 30;
  9535. if (this->_internal_main_add() != 0) {
  9536. target = stream->EnsureSpace(target);
  9537. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(30, this->_internal_main_add(), target);
  9538. }
  9539. // int32 sub_add = 31;
  9540. if (this->_internal_sub_add() != 0) {
  9541. target = stream->EnsureSpace(target);
  9542. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(31, this->_internal_sub_add(), target);
  9543. }
  9544. // int32 paramter = 32;
  9545. if (this->_internal_paramter() != 0) {
  9546. target = stream->EnsureSpace(target);
  9547. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(32, this->_internal_paramter(), target);
  9548. }
  9549. // int32 engine_spn = 33;
  9550. if (this->_internal_engine_spn() != 0) {
  9551. target = stream->EnsureSpace(target);
  9552. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(33, this->_internal_engine_spn(), target);
  9553. }
  9554. // int32 engine_fmi = 34;
  9555. if (this->_internal_engine_fmi() != 0) {
  9556. target = stream->EnsureSpace(target);
  9557. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(34, this->_internal_engine_fmi(), target);
  9558. }
  9559. // int32 engine_num = 35;
  9560. if (this->_internal_engine_num() != 0) {
  9561. target = stream->EnsureSpace(target);
  9562. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(35, this->_internal_engine_num(), target);
  9563. }
  9564. // bytes all_Buff = 36;
  9565. if (!this->_internal_all_buff().empty()) {
  9566. target = stream->WriteBytesMaybeAliased(
  9567. 36, this->_internal_all_buff(), target);
  9568. }
  9569. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  9570. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  9571. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  9572. }
  9573. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.State)
  9574. return target;
  9575. }
  9576. size_t State::ByteSizeLong() const {
  9577. // @@protoc_insertion_point(message_byte_size_start:RemoNet.State)
  9578. size_t total_size = 0;
  9579. uint32_t cached_has_bits = 0;
  9580. // Prevent compiler warnings about cached_has_bits being unused
  9581. (void) cached_has_bits;
  9582. // bytes error_Buff = 17;
  9583. if (!this->_internal_error_buff().empty()) {
  9584. total_size += 2 +
  9585. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9586. this->_internal_error_buff());
  9587. }
  9588. // bytes all_Buff = 36;
  9589. if (!this->_internal_all_buff().empty()) {
  9590. total_size += 2 +
  9591. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  9592. this->_internal_all_buff());
  9593. }
  9594. // int32 engine_speed = 1;
  9595. if (this->_internal_engine_speed() != 0) {
  9596. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_speed());
  9597. }
  9598. // int32 travel_speed = 2;
  9599. if (this->_internal_travel_speed() != 0) {
  9600. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_travel_speed());
  9601. }
  9602. // int32 fuel_level = 3;
  9603. if (this->_internal_fuel_level() != 0) {
  9604. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_fuel_level());
  9605. }
  9606. // int32 engine_temperature = 4;
  9607. if (this->_internal_engine_temperature() != 0) {
  9608. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_engine_temperature());
  9609. }
  9610. // int32 hydraulic_oil_temperature = 5;
  9611. if (this->_internal_hydraulic_oil_temperature() != 0) {
  9612. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hydraulic_oil_temperature());
  9613. }
  9614. // int32 main_pump_1_pressure = 6;
  9615. if (this->_internal_main_pump_1_pressure() != 0) {
  9616. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_1_pressure());
  9617. }
  9618. // int32 main_pump_2_pressure = 7;
  9619. if (this->_internal_main_pump_2_pressure() != 0) {
  9620. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_main_pump_2_pressure());
  9621. }
  9622. // int32 hand_gear = 8;
  9623. if (this->_internal_hand_gear() != 0) {
  9624. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hand_gear());
  9625. }
  9626. // int32 actual_gear = 9;
  9627. if (this->_internal_actual_gear() != 0) {
  9628. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_actual_gear());
  9629. }
  9630. // float gripper_height = 10;
  9631. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9632. float tmp_gripper_height = this->_internal_gripper_height();
  9633. uint32_t raw_gripper_height;
  9634. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9635. if (raw_gripper_height != 0) {
  9636. total_size += 1 + 4;
  9637. }
  9638. // float amplitude = 11;
  9639. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9640. float tmp_amplitude = this->_internal_amplitude();
  9641. uint32_t raw_amplitude;
  9642. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9643. if (raw_amplitude != 0) {
  9644. total_size += 1 + 4;
  9645. }
  9646. // int32 boom_angle = 12;
  9647. if (this->_internal_boom_angle() != 0) {
  9648. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_boom_angle());
  9649. }
  9650. // int32 stick_angle = 13;
  9651. if (this->_internal_stick_angle() != 0) {
  9652. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_stick_angle());
  9653. }
  9654. // int32 idle_protection = 14;
  9655. if (this->_internal_idle_protection() != 0) {
  9656. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_idle_protection());
  9657. }
  9658. // int32 front_toggle = 15;
  9659. if (this->_internal_front_toggle() != 0) {
  9660. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_front_toggle());
  9661. }
  9662. // int32 back_toggle = 16;
  9663. if (this->_internal_back_toggle() != 0) {
  9664. total_size += 2 +
  9665. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9666. this->_internal_back_toggle());
  9667. }
  9668. // int32 interlock = 18;
  9669. if (this->_internal_interlock() != 0) {
  9670. total_size += 2 +
  9671. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9672. this->_internal_interlock());
  9673. }
  9674. // int32 safety_switch = 19;
  9675. if (this->_internal_safety_switch() != 0) {
  9676. total_size += 2 +
  9677. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9678. this->_internal_safety_switch());
  9679. }
  9680. // int32 arm_lift_pilot = 20;
  9681. if (this->_internal_arm_lift_pilot() != 0) {
  9682. total_size += 2 +
  9683. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9684. this->_internal_arm_lift_pilot());
  9685. }
  9686. // int32 arm_lowering_pilot = 21;
  9687. if (this->_internal_arm_lowering_pilot() != 0) {
  9688. total_size += 2 +
  9689. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9690. this->_internal_arm_lowering_pilot());
  9691. }
  9692. // int32 lever_lifting_pilot = 22;
  9693. if (this->_internal_lever_lifting_pilot() != 0) {
  9694. total_size += 2 +
  9695. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9696. this->_internal_lever_lifting_pilot());
  9697. }
  9698. // int32 rod_lowering_pilot = 23;
  9699. if (this->_internal_rod_lowering_pilot() != 0) {
  9700. total_size += 2 +
  9701. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9702. this->_internal_rod_lowering_pilot());
  9703. }
  9704. // int32 left_rotary_pilot = 24;
  9705. if (this->_internal_left_rotary_pilot() != 0) {
  9706. total_size += 2 +
  9707. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9708. this->_internal_left_rotary_pilot());
  9709. }
  9710. // int32 right_rotary_pilot = 25;
  9711. if (this->_internal_right_rotary_pilot() != 0) {
  9712. total_size += 2 +
  9713. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9714. this->_internal_right_rotary_pilot());
  9715. }
  9716. // int32 grab_open_pilot = 26;
  9717. if (this->_internal_grab_open_pilot() != 0) {
  9718. total_size += 2 +
  9719. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9720. this->_internal_grab_open_pilot());
  9721. }
  9722. // int32 grab_close_pilot = 27;
  9723. if (this->_internal_grab_close_pilot() != 0) {
  9724. total_size += 2 +
  9725. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9726. this->_internal_grab_close_pilot());
  9727. }
  9728. // int32 safety_valves = 28;
  9729. if (this->_internal_safety_valves() != 0) {
  9730. total_size += 2 +
  9731. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9732. this->_internal_safety_valves());
  9733. }
  9734. // int32 function_code = 29;
  9735. if (this->_internal_function_code() != 0) {
  9736. total_size += 2 +
  9737. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9738. this->_internal_function_code());
  9739. }
  9740. // int32 main_add = 30;
  9741. if (this->_internal_main_add() != 0) {
  9742. total_size += 2 +
  9743. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9744. this->_internal_main_add());
  9745. }
  9746. // int32 sub_add = 31;
  9747. if (this->_internal_sub_add() != 0) {
  9748. total_size += 2 +
  9749. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9750. this->_internal_sub_add());
  9751. }
  9752. // int32 paramter = 32;
  9753. if (this->_internal_paramter() != 0) {
  9754. total_size += 2 +
  9755. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9756. this->_internal_paramter());
  9757. }
  9758. // int32 engine_spn = 33;
  9759. if (this->_internal_engine_spn() != 0) {
  9760. total_size += 2 +
  9761. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9762. this->_internal_engine_spn());
  9763. }
  9764. // int32 engine_fmi = 34;
  9765. if (this->_internal_engine_fmi() != 0) {
  9766. total_size += 2 +
  9767. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9768. this->_internal_engine_fmi());
  9769. }
  9770. // int32 engine_num = 35;
  9771. if (this->_internal_engine_num() != 0) {
  9772. total_size += 2 +
  9773. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  9774. this->_internal_engine_num());
  9775. }
  9776. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  9777. }
  9778. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData State::_class_data_ = {
  9779. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  9780. State::MergeImpl
  9781. };
  9782. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*State::GetClassData() const { return &_class_data_; }
  9783. void State::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  9784. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  9785. static_cast<State *>(to)->MergeFrom(
  9786. static_cast<const State &>(from));
  9787. }
  9788. void State::MergeFrom(const State& from) {
  9789. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.State)
  9790. GOOGLE_DCHECK_NE(&from, this);
  9791. uint32_t cached_has_bits = 0;
  9792. (void) cached_has_bits;
  9793. if (!from._internal_error_buff().empty()) {
  9794. _internal_set_error_buff(from._internal_error_buff());
  9795. }
  9796. if (!from._internal_all_buff().empty()) {
  9797. _internal_set_all_buff(from._internal_all_buff());
  9798. }
  9799. if (from._internal_engine_speed() != 0) {
  9800. _internal_set_engine_speed(from._internal_engine_speed());
  9801. }
  9802. if (from._internal_travel_speed() != 0) {
  9803. _internal_set_travel_speed(from._internal_travel_speed());
  9804. }
  9805. if (from._internal_fuel_level() != 0) {
  9806. _internal_set_fuel_level(from._internal_fuel_level());
  9807. }
  9808. if (from._internal_engine_temperature() != 0) {
  9809. _internal_set_engine_temperature(from._internal_engine_temperature());
  9810. }
  9811. if (from._internal_hydraulic_oil_temperature() != 0) {
  9812. _internal_set_hydraulic_oil_temperature(from._internal_hydraulic_oil_temperature());
  9813. }
  9814. if (from._internal_main_pump_1_pressure() != 0) {
  9815. _internal_set_main_pump_1_pressure(from._internal_main_pump_1_pressure());
  9816. }
  9817. if (from._internal_main_pump_2_pressure() != 0) {
  9818. _internal_set_main_pump_2_pressure(from._internal_main_pump_2_pressure());
  9819. }
  9820. if (from._internal_hand_gear() != 0) {
  9821. _internal_set_hand_gear(from._internal_hand_gear());
  9822. }
  9823. if (from._internal_actual_gear() != 0) {
  9824. _internal_set_actual_gear(from._internal_actual_gear());
  9825. }
  9826. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9827. float tmp_gripper_height = from._internal_gripper_height();
  9828. uint32_t raw_gripper_height;
  9829. memcpy(&raw_gripper_height, &tmp_gripper_height, sizeof(tmp_gripper_height));
  9830. if (raw_gripper_height != 0) {
  9831. _internal_set_gripper_height(from._internal_gripper_height());
  9832. }
  9833. static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
  9834. float tmp_amplitude = from._internal_amplitude();
  9835. uint32_t raw_amplitude;
  9836. memcpy(&raw_amplitude, &tmp_amplitude, sizeof(tmp_amplitude));
  9837. if (raw_amplitude != 0) {
  9838. _internal_set_amplitude(from._internal_amplitude());
  9839. }
  9840. if (from._internal_boom_angle() != 0) {
  9841. _internal_set_boom_angle(from._internal_boom_angle());
  9842. }
  9843. if (from._internal_stick_angle() != 0) {
  9844. _internal_set_stick_angle(from._internal_stick_angle());
  9845. }
  9846. if (from._internal_idle_protection() != 0) {
  9847. _internal_set_idle_protection(from._internal_idle_protection());
  9848. }
  9849. if (from._internal_front_toggle() != 0) {
  9850. _internal_set_front_toggle(from._internal_front_toggle());
  9851. }
  9852. if (from._internal_back_toggle() != 0) {
  9853. _internal_set_back_toggle(from._internal_back_toggle());
  9854. }
  9855. if (from._internal_interlock() != 0) {
  9856. _internal_set_interlock(from._internal_interlock());
  9857. }
  9858. if (from._internal_safety_switch() != 0) {
  9859. _internal_set_safety_switch(from._internal_safety_switch());
  9860. }
  9861. if (from._internal_arm_lift_pilot() != 0) {
  9862. _internal_set_arm_lift_pilot(from._internal_arm_lift_pilot());
  9863. }
  9864. if (from._internal_arm_lowering_pilot() != 0) {
  9865. _internal_set_arm_lowering_pilot(from._internal_arm_lowering_pilot());
  9866. }
  9867. if (from._internal_lever_lifting_pilot() != 0) {
  9868. _internal_set_lever_lifting_pilot(from._internal_lever_lifting_pilot());
  9869. }
  9870. if (from._internal_rod_lowering_pilot() != 0) {
  9871. _internal_set_rod_lowering_pilot(from._internal_rod_lowering_pilot());
  9872. }
  9873. if (from._internal_left_rotary_pilot() != 0) {
  9874. _internal_set_left_rotary_pilot(from._internal_left_rotary_pilot());
  9875. }
  9876. if (from._internal_right_rotary_pilot() != 0) {
  9877. _internal_set_right_rotary_pilot(from._internal_right_rotary_pilot());
  9878. }
  9879. if (from._internal_grab_open_pilot() != 0) {
  9880. _internal_set_grab_open_pilot(from._internal_grab_open_pilot());
  9881. }
  9882. if (from._internal_grab_close_pilot() != 0) {
  9883. _internal_set_grab_close_pilot(from._internal_grab_close_pilot());
  9884. }
  9885. if (from._internal_safety_valves() != 0) {
  9886. _internal_set_safety_valves(from._internal_safety_valves());
  9887. }
  9888. if (from._internal_function_code() != 0) {
  9889. _internal_set_function_code(from._internal_function_code());
  9890. }
  9891. if (from._internal_main_add() != 0) {
  9892. _internal_set_main_add(from._internal_main_add());
  9893. }
  9894. if (from._internal_sub_add() != 0) {
  9895. _internal_set_sub_add(from._internal_sub_add());
  9896. }
  9897. if (from._internal_paramter() != 0) {
  9898. _internal_set_paramter(from._internal_paramter());
  9899. }
  9900. if (from._internal_engine_spn() != 0) {
  9901. _internal_set_engine_spn(from._internal_engine_spn());
  9902. }
  9903. if (from._internal_engine_fmi() != 0) {
  9904. _internal_set_engine_fmi(from._internal_engine_fmi());
  9905. }
  9906. if (from._internal_engine_num() != 0) {
  9907. _internal_set_engine_num(from._internal_engine_num());
  9908. }
  9909. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9910. }
  9911. void State::CopyFrom(const State& from) {
  9912. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.State)
  9913. if (&from == this) return;
  9914. Clear();
  9915. MergeFrom(from);
  9916. }
  9917. bool State::IsInitialized() const {
  9918. return true;
  9919. }
  9920. void State::InternalSwap(State* other) {
  9921. using std::swap;
  9922. auto* lhs_arena = GetArenaForAllocation();
  9923. auto* rhs_arena = other->GetArenaForAllocation();
  9924. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  9925. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9926. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9927. &error_buff_, lhs_arena,
  9928. &other->error_buff_, rhs_arena
  9929. );
  9930. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  9931. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9932. &all_buff_, lhs_arena,
  9933. &other->all_buff_, rhs_arena
  9934. );
  9935. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  9936. PROTOBUF_FIELD_OFFSET(State, engine_num_)
  9937. + sizeof(State::engine_num_)
  9938. - PROTOBUF_FIELD_OFFSET(State, engine_speed_)>(
  9939. reinterpret_cast<char*>(&engine_speed_),
  9940. reinterpret_cast<char*>(&other->engine_speed_));
  9941. }
  9942. ::PROTOBUF_NAMESPACE_ID::Metadata State::GetMetadata() const {
  9943. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  9944. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  9945. file_level_metadata_protocol_2eproto[40]);
  9946. }
  9947. // ===================================================================
  9948. class can_net_frame::_Internal {
  9949. public:
  9950. };
  9951. can_net_frame::can_net_frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  9952. bool is_message_owned)
  9953. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  9954. SharedCtor();
  9955. if (!is_message_owned) {
  9956. RegisterArenaDtor(arena);
  9957. }
  9958. // @@protoc_insertion_point(arena_constructor:RemoNet.can_net_frame)
  9959. }
  9960. can_net_frame::can_net_frame(const can_net_frame& from)
  9961. : ::PROTOBUF_NAMESPACE_ID::Message() {
  9962. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  9963. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9964. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9965. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9966. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9967. if (!from._internal_data().empty()) {
  9968. data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(),
  9969. GetArenaForAllocation());
  9970. }
  9971. ::memcpy(&dlc_, &from.dlc_,
  9972. static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9973. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9974. // @@protoc_insertion_point(copy_constructor:RemoNet.can_net_frame)
  9975. }
  9976. inline void can_net_frame::SharedCtor() {
  9977. data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9978. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9979. data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9980. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9981. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  9982. reinterpret_cast<char*>(&dlc_) - reinterpret_cast<char*>(this)),
  9983. 0, static_cast<size_t>(reinterpret_cast<char*>(&canid_) -
  9984. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  9985. }
  9986. can_net_frame::~can_net_frame() {
  9987. // @@protoc_insertion_point(destructor:RemoNet.can_net_frame)
  9988. if (GetArenaForAllocation() != nullptr) return;
  9989. SharedDtor();
  9990. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9991. }
  9992. inline void can_net_frame::SharedDtor() {
  9993. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  9994. data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  9995. }
  9996. void can_net_frame::ArenaDtor(void* object) {
  9997. can_net_frame* _this = reinterpret_cast< can_net_frame* >(object);
  9998. (void)_this;
  9999. }
  10000. void can_net_frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10001. }
  10002. void can_net_frame::SetCachedSize(int size) const {
  10003. _cached_size_.Set(size);
  10004. }
  10005. void can_net_frame::Clear() {
  10006. // @@protoc_insertion_point(message_clear_start:RemoNet.can_net_frame)
  10007. uint32_t cached_has_bits = 0;
  10008. // Prevent compiler warnings about cached_has_bits being unused
  10009. (void) cached_has_bits;
  10010. data_.ClearToEmpty();
  10011. ::memset(&dlc_, 0, static_cast<size_t>(
  10012. reinterpret_cast<char*>(&canid_) -
  10013. reinterpret_cast<char*>(&dlc_)) + sizeof(canid_));
  10014. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10015. }
  10016. const char* can_net_frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10017. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10018. while (!ctx->Done(&ptr)) {
  10019. uint32_t tag;
  10020. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10021. switch (tag >> 3) {
  10022. // sint32 dlc = 1;
  10023. case 1:
  10024. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  10025. dlc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr);
  10026. CHK_(ptr);
  10027. } else
  10028. goto handle_unusual;
  10029. continue;
  10030. // int32 canid = 2;
  10031. case 2:
  10032. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  10033. canid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  10034. CHK_(ptr);
  10035. } else
  10036. goto handle_unusual;
  10037. continue;
  10038. // bytes data = 3;
  10039. case 3:
  10040. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  10041. auto str = _internal_mutable_data();
  10042. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  10043. CHK_(ptr);
  10044. } else
  10045. goto handle_unusual;
  10046. continue;
  10047. default:
  10048. goto handle_unusual;
  10049. } // switch
  10050. handle_unusual:
  10051. if ((tag == 0) || ((tag & 7) == 4)) {
  10052. CHK_(ptr);
  10053. ctx->SetLastTag(tag);
  10054. goto message_done;
  10055. }
  10056. ptr = UnknownFieldParse(
  10057. tag,
  10058. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10059. ptr, ctx);
  10060. CHK_(ptr != nullptr);
  10061. } // while
  10062. message_done:
  10063. return ptr;
  10064. failure:
  10065. ptr = nullptr;
  10066. goto message_done;
  10067. #undef CHK_
  10068. }
  10069. uint8_t* can_net_frame::_InternalSerialize(
  10070. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10071. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.can_net_frame)
  10072. uint32_t cached_has_bits = 0;
  10073. (void) cached_has_bits;
  10074. // sint32 dlc = 1;
  10075. if (this->_internal_dlc() != 0) {
  10076. target = stream->EnsureSpace(target);
  10077. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(1, this->_internal_dlc(), target);
  10078. }
  10079. // int32 canid = 2;
  10080. if (this->_internal_canid() != 0) {
  10081. target = stream->EnsureSpace(target);
  10082. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_canid(), target);
  10083. }
  10084. // bytes data = 3;
  10085. if (!this->_internal_data().empty()) {
  10086. target = stream->WriteBytesMaybeAliased(
  10087. 3, this->_internal_data(), target);
  10088. }
  10089. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10090. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10091. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10092. }
  10093. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.can_net_frame)
  10094. return target;
  10095. }
  10096. size_t can_net_frame::ByteSizeLong() const {
  10097. // @@protoc_insertion_point(message_byte_size_start:RemoNet.can_net_frame)
  10098. size_t total_size = 0;
  10099. uint32_t cached_has_bits = 0;
  10100. // Prevent compiler warnings about cached_has_bits being unused
  10101. (void) cached_has_bits;
  10102. // bytes data = 3;
  10103. if (!this->_internal_data().empty()) {
  10104. total_size += 1 +
  10105. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
  10106. this->_internal_data());
  10107. }
  10108. // sint32 dlc = 1;
  10109. if (this->_internal_dlc() != 0) {
  10110. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32SizePlusOne(this->_internal_dlc());
  10111. }
  10112. // int32 canid = 2;
  10113. if (this->_internal_canid() != 0) {
  10114. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_canid());
  10115. }
  10116. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10117. }
  10118. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData can_net_frame::_class_data_ = {
  10119. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10120. can_net_frame::MergeImpl
  10121. };
  10122. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*can_net_frame::GetClassData() const { return &_class_data_; }
  10123. void can_net_frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10124. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10125. static_cast<can_net_frame *>(to)->MergeFrom(
  10126. static_cast<const can_net_frame &>(from));
  10127. }
  10128. void can_net_frame::MergeFrom(const can_net_frame& from) {
  10129. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.can_net_frame)
  10130. GOOGLE_DCHECK_NE(&from, this);
  10131. uint32_t cached_has_bits = 0;
  10132. (void) cached_has_bits;
  10133. if (!from._internal_data().empty()) {
  10134. _internal_set_data(from._internal_data());
  10135. }
  10136. if (from._internal_dlc() != 0) {
  10137. _internal_set_dlc(from._internal_dlc());
  10138. }
  10139. if (from._internal_canid() != 0) {
  10140. _internal_set_canid(from._internal_canid());
  10141. }
  10142. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10143. }
  10144. void can_net_frame::CopyFrom(const can_net_frame& from) {
  10145. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.can_net_frame)
  10146. if (&from == this) return;
  10147. Clear();
  10148. MergeFrom(from);
  10149. }
  10150. bool can_net_frame::IsInitialized() const {
  10151. return true;
  10152. }
  10153. void can_net_frame::InternalSwap(can_net_frame* other) {
  10154. using std::swap;
  10155. auto* lhs_arena = GetArenaForAllocation();
  10156. auto* rhs_arena = other->GetArenaForAllocation();
  10157. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10158. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  10159. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10160. &data_, lhs_arena,
  10161. &other->data_, rhs_arena
  10162. );
  10163. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  10164. PROTOBUF_FIELD_OFFSET(can_net_frame, canid_)
  10165. + sizeof(can_net_frame::canid_)
  10166. - PROTOBUF_FIELD_OFFSET(can_net_frame, dlc_)>(
  10167. reinterpret_cast<char*>(&dlc_),
  10168. reinterpret_cast<char*>(&other->dlc_));
  10169. }
  10170. ::PROTOBUF_NAMESPACE_ID::Metadata can_net_frame::GetMetadata() const {
  10171. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10172. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10173. file_level_metadata_protocol_2eproto[41]);
  10174. }
  10175. // ===================================================================
  10176. class CCCanMsg::_Internal {
  10177. public:
  10178. };
  10179. CCCanMsg::CCCanMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  10180. bool is_message_owned)
  10181. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  10182. frams_(arena) {
  10183. SharedCtor();
  10184. if (!is_message_owned) {
  10185. RegisterArenaDtor(arena);
  10186. }
  10187. // @@protoc_insertion_point(arena_constructor:RemoNet.CCCanMsg)
  10188. }
  10189. CCCanMsg::CCCanMsg(const CCCanMsg& from)
  10190. : ::PROTOBUF_NAMESPACE_ID::Message(),
  10191. frams_(from.frams_) {
  10192. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10193. // @@protoc_insertion_point(copy_constructor:RemoNet.CCCanMsg)
  10194. }
  10195. inline void CCCanMsg::SharedCtor() {
  10196. }
  10197. CCCanMsg::~CCCanMsg() {
  10198. // @@protoc_insertion_point(destructor:RemoNet.CCCanMsg)
  10199. if (GetArenaForAllocation() != nullptr) return;
  10200. SharedDtor();
  10201. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10202. }
  10203. inline void CCCanMsg::SharedDtor() {
  10204. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  10205. }
  10206. void CCCanMsg::ArenaDtor(void* object) {
  10207. CCCanMsg* _this = reinterpret_cast< CCCanMsg* >(object);
  10208. (void)_this;
  10209. }
  10210. void CCCanMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  10211. }
  10212. void CCCanMsg::SetCachedSize(int size) const {
  10213. _cached_size_.Set(size);
  10214. }
  10215. void CCCanMsg::Clear() {
  10216. // @@protoc_insertion_point(message_clear_start:RemoNet.CCCanMsg)
  10217. uint32_t cached_has_bits = 0;
  10218. // Prevent compiler warnings about cached_has_bits being unused
  10219. (void) cached_has_bits;
  10220. frams_.Clear();
  10221. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  10222. }
  10223. const char* CCCanMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  10224. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  10225. while (!ctx->Done(&ptr)) {
  10226. uint32_t tag;
  10227. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  10228. switch (tag >> 3) {
  10229. // repeated .RemoNet.can_net_frame frams = 1;
  10230. case 1:
  10231. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  10232. ptr -= 1;
  10233. do {
  10234. ptr += 1;
  10235. ptr = ctx->ParseMessage(_internal_add_frams(), ptr);
  10236. CHK_(ptr);
  10237. if (!ctx->DataAvailable(ptr)) break;
  10238. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  10239. } else
  10240. goto handle_unusual;
  10241. continue;
  10242. default:
  10243. goto handle_unusual;
  10244. } // switch
  10245. handle_unusual:
  10246. if ((tag == 0) || ((tag & 7) == 4)) {
  10247. CHK_(ptr);
  10248. ctx->SetLastTag(tag);
  10249. goto message_done;
  10250. }
  10251. ptr = UnknownFieldParse(
  10252. tag,
  10253. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  10254. ptr, ctx);
  10255. CHK_(ptr != nullptr);
  10256. } // while
  10257. message_done:
  10258. return ptr;
  10259. failure:
  10260. ptr = nullptr;
  10261. goto message_done;
  10262. #undef CHK_
  10263. }
  10264. uint8_t* CCCanMsg::_InternalSerialize(
  10265. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  10266. // @@protoc_insertion_point(serialize_to_array_start:RemoNet.CCCanMsg)
  10267. uint32_t cached_has_bits = 0;
  10268. (void) cached_has_bits;
  10269. // repeated .RemoNet.can_net_frame frams = 1;
  10270. for (unsigned int i = 0,
  10271. n = static_cast<unsigned int>(this->_internal_frams_size()); i < n; i++) {
  10272. target = stream->EnsureSpace(target);
  10273. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  10274. InternalWriteMessage(1, this->_internal_frams(i), target, stream);
  10275. }
  10276. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  10277. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  10278. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  10279. }
  10280. // @@protoc_insertion_point(serialize_to_array_end:RemoNet.CCCanMsg)
  10281. return target;
  10282. }
  10283. size_t CCCanMsg::ByteSizeLong() const {
  10284. // @@protoc_insertion_point(message_byte_size_start:RemoNet.CCCanMsg)
  10285. size_t total_size = 0;
  10286. uint32_t cached_has_bits = 0;
  10287. // Prevent compiler warnings about cached_has_bits being unused
  10288. (void) cached_has_bits;
  10289. // repeated .RemoNet.can_net_frame frams = 1;
  10290. total_size += 1UL * this->_internal_frams_size();
  10291. for (const auto& msg : this->frams_) {
  10292. total_size +=
  10293. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  10294. }
  10295. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  10296. }
  10297. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CCCanMsg::_class_data_ = {
  10298. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  10299. CCCanMsg::MergeImpl
  10300. };
  10301. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CCCanMsg::GetClassData() const { return &_class_data_; }
  10302. void CCCanMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  10303. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  10304. static_cast<CCCanMsg *>(to)->MergeFrom(
  10305. static_cast<const CCCanMsg &>(from));
  10306. }
  10307. void CCCanMsg::MergeFrom(const CCCanMsg& from) {
  10308. // @@protoc_insertion_point(class_specific_merge_from_start:RemoNet.CCCanMsg)
  10309. GOOGLE_DCHECK_NE(&from, this);
  10310. uint32_t cached_has_bits = 0;
  10311. (void) cached_has_bits;
  10312. frams_.MergeFrom(from.frams_);
  10313. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  10314. }
  10315. void CCCanMsg::CopyFrom(const CCCanMsg& from) {
  10316. // @@protoc_insertion_point(class_specific_copy_from_start:RemoNet.CCCanMsg)
  10317. if (&from == this) return;
  10318. Clear();
  10319. MergeFrom(from);
  10320. }
  10321. bool CCCanMsg::IsInitialized() const {
  10322. return true;
  10323. }
  10324. void CCCanMsg::InternalSwap(CCCanMsg* other) {
  10325. using std::swap;
  10326. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  10327. frams_.InternalSwap(&other->frams_);
  10328. }
  10329. ::PROTOBUF_NAMESPACE_ID::Metadata CCCanMsg::GetMetadata() const {
  10330. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  10331. &descriptor_table_protocol_2eproto_getter, &descriptor_table_protocol_2eproto_once,
  10332. file_level_metadata_protocol_2eproto[42]);
  10333. }
  10334. // @@protoc_insertion_point(namespace_scope)
  10335. } // namespace RemoNet
  10336. PROTOBUF_NAMESPACE_OPEN
  10337. template<> PROTOBUF_NOINLINE ::RemoNet::UserActivityInfo* Arena::CreateMaybeMessage< ::RemoNet::UserActivityInfo >(Arena* arena) {
  10338. return Arena::CreateMessageInternal< ::RemoNet::UserActivityInfo >(arena);
  10339. }
  10340. template<> PROTOBUF_NOINLINE ::RemoNet::CSAdd* Arena::CreateMaybeMessage< ::RemoNet::CSAdd >(Arena* arena) {
  10341. return Arena::CreateMessageInternal< ::RemoNet::CSAdd >(arena);
  10342. }
  10343. template<> PROTOBUF_NOINLINE ::RemoNet::SCAdd* Arena::CreateMaybeMessage< ::RemoNet::SCAdd >(Arena* arena) {
  10344. return Arena::CreateMessageInternal< ::RemoNet::SCAdd >(arena);
  10345. }
  10346. template<> PROTOBUF_NOINLINE ::RemoNet::SCKickOff* Arena::CreateMaybeMessage< ::RemoNet::SCKickOff >(Arena* arena) {
  10347. return Arena::CreateMessageInternal< ::RemoNet::SCKickOff >(arena);
  10348. }
  10349. template<> PROTOBUF_NOINLINE ::RemoNet::Robot* Arena::CreateMaybeMessage< ::RemoNet::Robot >(Arena* arena) {
  10350. return Arena::CreateMessageInternal< ::RemoNet::Robot >(arena);
  10351. }
  10352. template<> PROTOBUF_NOINLINE ::RemoNet::CSRobot* Arena::CreateMaybeMessage< ::RemoNet::CSRobot >(Arena* arena) {
  10353. return Arena::CreateMessageInternal< ::RemoNet::CSRobot >(arena);
  10354. }
  10355. template<> PROTOBUF_NOINLINE ::RemoNet::SCRobot* Arena::CreateMaybeMessage< ::RemoNet::SCRobot >(Arena* arena) {
  10356. return Arena::CreateMessageInternal< ::RemoNet::SCRobot >(arena);
  10357. }
  10358. template<> PROTOBUF_NOINLINE ::RemoNet::CSSign* Arena::CreateMaybeMessage< ::RemoNet::CSSign >(Arena* arena) {
  10359. return Arena::CreateMessageInternal< ::RemoNet::CSSign >(arena);
  10360. }
  10361. template<> PROTOBUF_NOINLINE ::RemoNet::SCSign* Arena::CreateMaybeMessage< ::RemoNet::SCSign >(Arena* arena) {
  10362. return Arena::CreateMessageInternal< ::RemoNet::SCSign >(arena);
  10363. }
  10364. template<> PROTOBUF_NOINLINE ::RemoNet::CSReq* Arena::CreateMaybeMessage< ::RemoNet::CSReq >(Arena* arena) {
  10365. return Arena::CreateMessageInternal< ::RemoNet::CSReq >(arena);
  10366. }
  10367. template<> PROTOBUF_NOINLINE ::RemoNet::SCReq* Arena::CreateMaybeMessage< ::RemoNet::SCReq >(Arena* arena) {
  10368. return Arena::CreateMessageInternal< ::RemoNet::SCReq >(arena);
  10369. }
  10370. template<> PROTOBUF_NOINLINE ::RemoNet::CSRep* Arena::CreateMaybeMessage< ::RemoNet::CSRep >(Arena* arena) {
  10371. return Arena::CreateMessageInternal< ::RemoNet::CSRep >(arena);
  10372. }
  10373. template<> PROTOBUF_NOINLINE ::RemoNet::SCRep* Arena::CreateMaybeMessage< ::RemoNet::SCRep >(Arena* arena) {
  10374. return Arena::CreateMessageInternal< ::RemoNet::SCRep >(arena);
  10375. }
  10376. template<> PROTOBUF_NOINLINE ::RemoNet::Offer* Arena::CreateMaybeMessage< ::RemoNet::Offer >(Arena* arena) {
  10377. return Arena::CreateMessageInternal< ::RemoNet::Offer >(arena);
  10378. }
  10379. template<> PROTOBUF_NOINLINE ::RemoNet::Answer* Arena::CreateMaybeMessage< ::RemoNet::Answer >(Arena* arena) {
  10380. return Arena::CreateMessageInternal< ::RemoNet::Answer >(arena);
  10381. }
  10382. template<> PROTOBUF_NOINLINE ::RemoNet::Candidate* Arena::CreateMaybeMessage< ::RemoNet::Candidate >(Arena* arena) {
  10383. return Arena::CreateMessageInternal< ::RemoNet::Candidate >(arena);
  10384. }
  10385. template<> PROTOBUF_NOINLINE ::RemoNet::Leave* Arena::CreateMaybeMessage< ::RemoNet::Leave >(Arena* arena) {
  10386. return Arena::CreateMessageInternal< ::RemoNet::Leave >(arena);
  10387. }
  10388. template<> PROTOBUF_NOINLINE ::RemoNet::Close* Arena::CreateMaybeMessage< ::RemoNet::Close >(Arena* arena) {
  10389. return Arena::CreateMessageInternal< ::RemoNet::Close >(arena);
  10390. }
  10391. template<> PROTOBUF_NOINLINE ::RemoNet::TestTextReq* Arena::CreateMaybeMessage< ::RemoNet::TestTextReq >(Arena* arena) {
  10392. return Arena::CreateMessageInternal< ::RemoNet::TestTextReq >(arena);
  10393. }
  10394. template<> PROTOBUF_NOINLINE ::RemoNet::CanMessage* Arena::CreateMaybeMessage< ::RemoNet::CanMessage >(Arena* arena) {
  10395. return Arena::CreateMessageInternal< ::RemoNet::CanMessage >(arena);
  10396. }
  10397. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMesage* Arena::CreateMaybeMessage< ::RemoNet::CCCanMesage >(Arena* arena) {
  10398. return Arena::CreateMessageInternal< ::RemoNet::CCCanMesage >(arena);
  10399. }
  10400. template<> PROTOBUF_NOINLINE ::RemoNet::Wiper* Arena::CreateMaybeMessage< ::RemoNet::Wiper >(Arena* arena) {
  10401. return Arena::CreateMessageInternal< ::RemoNet::Wiper >(arena);
  10402. }
  10403. template<> PROTOBUF_NOINLINE ::RemoNet::FrontLight* Arena::CreateMaybeMessage< ::RemoNet::FrontLight >(Arena* arena) {
  10404. return Arena::CreateMessageInternal< ::RemoNet::FrontLight >(arena);
  10405. }
  10406. template<> PROTOBUF_NOINLINE ::RemoNet::BackLight* Arena::CreateMaybeMessage< ::RemoNet::BackLight >(Arena* arena) {
  10407. return Arena::CreateMessageInternal< ::RemoNet::BackLight >(arena);
  10408. }
  10409. template<> PROTOBUF_NOINLINE ::RemoNet::CCAskDataChannel* Arena::CreateMaybeMessage< ::RemoNet::CCAskDataChannel >(Arena* arena) {
  10410. return Arena::CreateMessageInternal< ::RemoNet::CCAskDataChannel >(arena);
  10411. }
  10412. template<> PROTOBUF_NOINLINE ::RemoNet::IMuMessage* Arena::CreateMaybeMessage< ::RemoNet::IMuMessage >(Arena* arena) {
  10413. return Arena::CreateMessageInternal< ::RemoNet::IMuMessage >(arena);
  10414. }
  10415. template<> PROTOBUF_NOINLINE ::RemoNet::CCPing* Arena::CreateMaybeMessage< ::RemoNet::CCPing >(Arena* arena) {
  10416. return Arena::CreateMessageInternal< ::RemoNet::CCPing >(arena);
  10417. }
  10418. template<> PROTOBUF_NOINLINE ::RemoNet::CCRadarMessage* Arena::CreateMaybeMessage< ::RemoNet::CCRadarMessage >(Arena* arena) {
  10419. return Arena::CreateMessageInternal< ::RemoNet::CCRadarMessage >(arena);
  10420. }
  10421. template<> PROTOBUF_NOINLINE ::RemoNet::CCRobotAnalog* Arena::CreateMaybeMessage< ::RemoNet::CCRobotAnalog >(Arena* arena) {
  10422. return Arena::CreateMessageInternal< ::RemoNet::CCRobotAnalog >(arena);
  10423. }
  10424. template<> PROTOBUF_NOINLINE ::RemoNet::CCBootStrapReq* Arena::CreateMaybeMessage< ::RemoNet::CCBootStrapReq >(Arena* arena) {
  10425. return Arena::CreateMessageInternal< ::RemoNet::CCBootStrapReq >(arena);
  10426. }
  10427. template<> PROTOBUF_NOINLINE ::RemoNet::CCBooStrapRep* Arena::CreateMaybeMessage< ::RemoNet::CCBooStrapRep >(Arena* arena) {
  10428. return Arena::CreateMessageInternal< ::RemoNet::CCBooStrapRep >(arena);
  10429. }
  10430. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupReq* Arena::CreateMaybeMessage< ::RemoNet::CCStartupReq >(Arena* arena) {
  10431. return Arena::CreateMessageInternal< ::RemoNet::CCStartupReq >(arena);
  10432. }
  10433. template<> PROTOBUF_NOINLINE ::RemoNet::CCStartupRep* Arena::CreateMaybeMessage< ::RemoNet::CCStartupRep >(Arena* arena) {
  10434. return Arena::CreateMessageInternal< ::RemoNet::CCStartupRep >(arena);
  10435. }
  10436. template<> PROTOBUF_NOINLINE ::RemoNet::CCSwitch* Arena::CreateMaybeMessage< ::RemoNet::CCSwitch >(Arena* arena) {
  10437. return Arena::CreateMessageInternal< ::RemoNet::CCSwitch >(arena);
  10438. }
  10439. template<> PROTOBUF_NOINLINE ::RemoNet::LidarPoint* Arena::CreateMaybeMessage< ::RemoNet::LidarPoint >(Arena* arena) {
  10440. return Arena::CreateMessageInternal< ::RemoNet::LidarPoint >(arena);
  10441. }
  10442. template<> PROTOBUF_NOINLINE ::RemoNet::SensorStop* Arena::CreateMaybeMessage< ::RemoNet::SensorStop >(Arena* arena) {
  10443. return Arena::CreateMessageInternal< ::RemoNet::SensorStop >(arena);
  10444. }
  10445. template<> PROTOBUF_NOINLINE ::RemoNet::StopAck* Arena::CreateMaybeMessage< ::RemoNet::StopAck >(Arena* arena) {
  10446. return Arena::CreateMessageInternal< ::RemoNet::StopAck >(arena);
  10447. }
  10448. template<> PROTOBUF_NOINLINE ::RemoNet::CCManipulation* Arena::CreateMaybeMessage< ::RemoNet::CCManipulation >(Arena* arena) {
  10449. return Arena::CreateMessageInternal< ::RemoNet::CCManipulation >(arena);
  10450. }
  10451. template<> PROTOBUF_NOINLINE ::RemoNet::SCAddRobot* Arena::CreateMaybeMessage< ::RemoNet::SCAddRobot >(Arena* arena) {
  10452. return Arena::CreateMessageInternal< ::RemoNet::SCAddRobot >(arena);
  10453. }
  10454. template<> PROTOBUF_NOINLINE ::RemoNet::SCDelRobot* Arena::CreateMaybeMessage< ::RemoNet::SCDelRobot >(Arena* arena) {
  10455. return Arena::CreateMessageInternal< ::RemoNet::SCDelRobot >(arena);
  10456. }
  10457. template<> PROTOBUF_NOINLINE ::RemoNet::State* Arena::CreateMaybeMessage< ::RemoNet::State >(Arena* arena) {
  10458. return Arena::CreateMessageInternal< ::RemoNet::State >(arena);
  10459. }
  10460. template<> PROTOBUF_NOINLINE ::RemoNet::can_net_frame* Arena::CreateMaybeMessage< ::RemoNet::can_net_frame >(Arena* arena) {
  10461. return Arena::CreateMessageInternal< ::RemoNet::can_net_frame >(arena);
  10462. }
  10463. template<> PROTOBUF_NOINLINE ::RemoNet::CCCanMsg* Arena::CreateMaybeMessage< ::RemoNet::CCCanMsg >(Arena* arena) {
  10464. return Arena::CreateMessageInternal< ::RemoNet::CCCanMsg >(arena);
  10465. }
  10466. PROTOBUF_NAMESPACE_CLOSE
  10467. // @@protoc_insertion_point(global_scope)
  10468. #include <google/protobuf/port_undef.inc>