123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822 |
- // This file is generated by rust-protobuf 2.0.5. Do not edit
- // @generated
- // https://github.com/Manishearth/rust-clippy/issues/702
- #![allow(unknown_lints)]
- #![allow(clippy)]
- #![cfg_attr(rustfmt, rustfmt_skip)]
- #![allow(box_pointers)]
- #![allow(dead_code)]
- #![allow(missing_docs)]
- #![allow(non_camel_case_types)]
- #![allow(non_snake_case)]
- #![allow(non_upper_case_globals)]
- #![allow(trivial_casts)]
- #![allow(unsafe_code)]
- #![allow(unused_imports)]
- #![allow(unused_results)]
- use protobuf::Message as Message_imported_for_functions;
- use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientHello {
- // message fields
- build_info: ::protobuf::SingularPtrField<BuildInfo>,
- fingerprints_supported: ::std::vec::Vec<Fingerprint>,
- cryptosuites_supported: ::std::vec::Vec<Cryptosuite>,
- powschemes_supported: ::std::vec::Vec<Powscheme>,
- login_crypto_hello: ::protobuf::SingularPtrField<LoginCryptoHelloUnion>,
- client_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- feature_set: ::protobuf::SingularPtrField<FeatureSet>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl ClientHello {
- pub fn new() -> ClientHello {
- ::std::default::Default::default()
- }
- // required .BuildInfo build_info = 10;
- pub fn clear_build_info(&mut self) {
- self.build_info.clear();
- }
- pub fn has_build_info(&self) -> bool {
- self.build_info.is_some()
- }
- // Param is passed by value, moved
- pub fn set_build_info(&mut self, v: BuildInfo) {
- self.build_info = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_build_info(&mut self) -> &mut BuildInfo {
- if self.build_info.is_none() {
- self.build_info.set_default();
- }
- self.build_info.as_mut().unwrap()
- }
- // Take field
- pub fn take_build_info(&mut self) -> BuildInfo {
- self.build_info.take().unwrap_or_else(|| BuildInfo::new())
- }
- pub fn get_build_info(&self) -> &BuildInfo {
- self.build_info.as_ref().unwrap_or_else(|| BuildInfo::default_instance())
- }
- // repeated .Fingerprint fingerprints_supported = 20;
- pub fn clear_fingerprints_supported(&mut self) {
- self.fingerprints_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_fingerprints_supported(&mut self, v: ::std::vec::Vec<Fingerprint>) {
- self.fingerprints_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_fingerprints_supported(&mut self) -> &mut ::std::vec::Vec<Fingerprint> {
- &mut self.fingerprints_supported
- }
- // Take field
- pub fn take_fingerprints_supported(&mut self) -> ::std::vec::Vec<Fingerprint> {
- ::std::mem::replace(&mut self.fingerprints_supported, ::std::vec::Vec::new())
- }
- pub fn get_fingerprints_supported(&self) -> &[Fingerprint] {
- &self.fingerprints_supported
- }
- // repeated .Cryptosuite cryptosuites_supported = 30;
- pub fn clear_cryptosuites_supported(&mut self) {
- self.cryptosuites_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_cryptosuites_supported(&mut self, v: ::std::vec::Vec<Cryptosuite>) {
- self.cryptosuites_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_cryptosuites_supported(&mut self) -> &mut ::std::vec::Vec<Cryptosuite> {
- &mut self.cryptosuites_supported
- }
- // Take field
- pub fn take_cryptosuites_supported(&mut self) -> ::std::vec::Vec<Cryptosuite> {
- ::std::mem::replace(&mut self.cryptosuites_supported, ::std::vec::Vec::new())
- }
- pub fn get_cryptosuites_supported(&self) -> &[Cryptosuite] {
- &self.cryptosuites_supported
- }
- // repeated .Powscheme powschemes_supported = 40;
- pub fn clear_powschemes_supported(&mut self) {
- self.powschemes_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_powschemes_supported(&mut self, v: ::std::vec::Vec<Powscheme>) {
- self.powschemes_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_powschemes_supported(&mut self) -> &mut ::std::vec::Vec<Powscheme> {
- &mut self.powschemes_supported
- }
- // Take field
- pub fn take_powschemes_supported(&mut self) -> ::std::vec::Vec<Powscheme> {
- ::std::mem::replace(&mut self.powschemes_supported, ::std::vec::Vec::new())
- }
- pub fn get_powschemes_supported(&self) -> &[Powscheme] {
- &self.powschemes_supported
- }
- // required .LoginCryptoHelloUnion login_crypto_hello = 50;
- pub fn clear_login_crypto_hello(&mut self) {
- self.login_crypto_hello.clear();
- }
- pub fn has_login_crypto_hello(&self) -> bool {
- self.login_crypto_hello.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_hello(&mut self, v: LoginCryptoHelloUnion) {
- self.login_crypto_hello = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_hello(&mut self) -> &mut LoginCryptoHelloUnion {
- if self.login_crypto_hello.is_none() {
- self.login_crypto_hello.set_default();
- }
- self.login_crypto_hello.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_hello(&mut self) -> LoginCryptoHelloUnion {
- self.login_crypto_hello.take().unwrap_or_else(|| LoginCryptoHelloUnion::new())
- }
- pub fn get_login_crypto_hello(&self) -> &LoginCryptoHelloUnion {
- self.login_crypto_hello.as_ref().unwrap_or_else(|| LoginCryptoHelloUnion::default_instance())
- }
- // required bytes client_nonce = 60;
- pub fn clear_client_nonce(&mut self) {
- self.client_nonce.clear();
- }
- pub fn has_client_nonce(&self) -> bool {
- self.client_nonce.is_some()
- }
- // Param is passed by value, moved
- pub fn set_client_nonce(&mut self, v: ::std::vec::Vec<u8>) {
- self.client_nonce = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_client_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.client_nonce.is_none() {
- self.client_nonce.set_default();
- }
- self.client_nonce.as_mut().unwrap()
- }
- // Take field
- pub fn take_client_nonce(&mut self) -> ::std::vec::Vec<u8> {
- self.client_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_client_nonce(&self) -> &[u8] {
- match self.client_nonce.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // optional bytes padding = 70;
- pub fn clear_padding(&mut self) {
- self.padding.clear();
- }
- pub fn has_padding(&self) -> bool {
- self.padding.is_some()
- }
- // Param is passed by value, moved
- pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
- self.padding = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.padding.is_none() {
- self.padding.set_default();
- }
- self.padding.as_mut().unwrap()
- }
- // Take field
- pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
- self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_padding(&self) -> &[u8] {
- match self.padding.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // optional .FeatureSet feature_set = 80;
- pub fn clear_feature_set(&mut self) {
- self.feature_set.clear();
- }
- pub fn has_feature_set(&self) -> bool {
- self.feature_set.is_some()
- }
- // Param is passed by value, moved
- pub fn set_feature_set(&mut self, v: FeatureSet) {
- self.feature_set = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_feature_set(&mut self) -> &mut FeatureSet {
- if self.feature_set.is_none() {
- self.feature_set.set_default();
- }
- self.feature_set.as_mut().unwrap()
- }
- // Take field
- pub fn take_feature_set(&mut self) -> FeatureSet {
- self.feature_set.take().unwrap_or_else(|| FeatureSet::new())
- }
- pub fn get_feature_set(&self) -> &FeatureSet {
- self.feature_set.as_ref().unwrap_or_else(|| FeatureSet::default_instance())
- }
- }
- impl ::protobuf::Message for ClientHello {
- fn is_initialized(&self) -> bool {
- if self.build_info.is_none() {
- return false;
- }
- if self.login_crypto_hello.is_none() {
- return false;
- }
- if self.client_nonce.is_none() {
- return false;
- }
- for v in &self.build_info {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.login_crypto_hello {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.feature_set {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.build_info)?;
- },
- 20 => {
- ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.fingerprints_supported, 20, &mut self.unknown_fields)?
- },
- 30 => {
- ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.cryptosuites_supported, 30, &mut self.unknown_fields)?
- },
- 40 => {
- ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.powschemes_supported, 40, &mut self.unknown_fields)?
- },
- 50 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_hello)?;
- },
- 60 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.client_nonce)?;
- },
- 70 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
- },
- 80 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feature_set)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.build_info.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- for value in &self.fingerprints_supported {
- my_size += ::protobuf::rt::enum_size(20, *value);
- };
- for value in &self.cryptosuites_supported {
- my_size += ::protobuf::rt::enum_size(30, *value);
- };
- for value in &self.powschemes_supported {
- my_size += ::protobuf::rt::enum_size(40, *value);
- };
- if let Some(ref v) = self.login_crypto_hello.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.client_nonce.as_ref() {
- my_size += ::protobuf::rt::bytes_size(60, &v);
- }
- if let Some(ref v) = self.padding.as_ref() {
- my_size += ::protobuf::rt::bytes_size(70, &v);
- }
- if let Some(ref v) = self.feature_set.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.build_info.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- for v in &self.fingerprints_supported {
- os.write_enum(20, v.value())?;
- };
- for v in &self.cryptosuites_supported {
- os.write_enum(30, v.value())?;
- };
- for v in &self.powschemes_supported {
- os.write_enum(40, v.value())?;
- };
- if let Some(ref v) = self.login_crypto_hello.as_ref() {
- os.write_tag(50, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.client_nonce.as_ref() {
- os.write_bytes(60, &v)?;
- }
- if let Some(ref v) = self.padding.as_ref() {
- os.write_bytes(70, &v)?;
- }
- if let Some(ref v) = self.feature_set.as_ref() {
- os.write_tag(80, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ClientHello {
- ClientHello::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<BuildInfo>>(
- "build_info",
- |m: &ClientHello| { &m.build_info },
- |m: &mut ClientHello| { &mut m.build_info },
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Fingerprint>>(
- "fingerprints_supported",
- |m: &ClientHello| { &m.fingerprints_supported },
- |m: &mut ClientHello| { &mut m.fingerprints_supported },
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Cryptosuite>>(
- "cryptosuites_supported",
- |m: &ClientHello| { &m.cryptosuites_supported },
- |m: &mut ClientHello| { &mut m.cryptosuites_supported },
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Powscheme>>(
- "powschemes_supported",
- |m: &ClientHello| { &m.powschemes_supported },
- |m: &mut ClientHello| { &mut m.powschemes_supported },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoHelloUnion>>(
- "login_crypto_hello",
- |m: &ClientHello| { &m.login_crypto_hello },
- |m: &mut ClientHello| { &mut m.login_crypto_hello },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "client_nonce",
- |m: &ClientHello| { &m.client_nonce },
- |m: &mut ClientHello| { &mut m.client_nonce },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "padding",
- |m: &ClientHello| { &m.padding },
- |m: &mut ClientHello| { &mut m.padding },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FeatureSet>>(
- "feature_set",
- |m: &ClientHello| { &m.feature_set },
- |m: &mut ClientHello| { &mut m.feature_set },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientHello>(
- "ClientHello",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ClientHello {
- static mut instance: ::protobuf::lazy::Lazy<ClientHello> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientHello,
- };
- unsafe {
- instance.get(ClientHello::new)
- }
- }
- }
- impl ::protobuf::Clear for ClientHello {
- fn clear(&mut self) {
- self.clear_build_info();
- self.clear_fingerprints_supported();
- self.clear_cryptosuites_supported();
- self.clear_powschemes_supported();
- self.clear_login_crypto_hello();
- self.clear_client_nonce();
- self.clear_padding();
- self.clear_feature_set();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientHello {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientHello {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct BuildInfo {
- // message fields
- product: ::std::option::Option<Product>,
- product_flags: ::std::vec::Vec<ProductFlags>,
- platform: ::std::option::Option<Platform>,
- version: ::std::option::Option<u64>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl BuildInfo {
- pub fn new() -> BuildInfo {
- ::std::default::Default::default()
- }
- // required .Product product = 10;
- pub fn clear_product(&mut self) {
- self.product = ::std::option::Option::None;
- }
- pub fn has_product(&self) -> bool {
- self.product.is_some()
- }
- // Param is passed by value, moved
- pub fn set_product(&mut self, v: Product) {
- self.product = ::std::option::Option::Some(v);
- }
- pub fn get_product(&self) -> Product {
- self.product.unwrap_or(Product::PRODUCT_CLIENT)
- }
- // repeated .ProductFlags product_flags = 20;
- pub fn clear_product_flags(&mut self) {
- self.product_flags.clear();
- }
- // Param is passed by value, moved
- pub fn set_product_flags(&mut self, v: ::std::vec::Vec<ProductFlags>) {
- self.product_flags = v;
- }
- // Mutable pointer to the field.
- pub fn mut_product_flags(&mut self) -> &mut ::std::vec::Vec<ProductFlags> {
- &mut self.product_flags
- }
- // Take field
- pub fn take_product_flags(&mut self) -> ::std::vec::Vec<ProductFlags> {
- ::std::mem::replace(&mut self.product_flags, ::std::vec::Vec::new())
- }
- pub fn get_product_flags(&self) -> &[ProductFlags] {
- &self.product_flags
- }
- // required .Platform platform = 30;
- pub fn clear_platform(&mut self) {
- self.platform = ::std::option::Option::None;
- }
- pub fn has_platform(&self) -> bool {
- self.platform.is_some()
- }
- // Param is passed by value, moved
- pub fn set_platform(&mut self, v: Platform) {
- self.platform = ::std::option::Option::Some(v);
- }
- pub fn get_platform(&self) -> Platform {
- self.platform.unwrap_or(Platform::PLATFORM_WIN32_X86)
- }
- // required uint64 version = 40;
- pub fn clear_version(&mut self) {
- self.version = ::std::option::Option::None;
- }
- pub fn has_version(&self) -> bool {
- self.version.is_some()
- }
- // Param is passed by value, moved
- pub fn set_version(&mut self, v: u64) {
- self.version = ::std::option::Option::Some(v);
- }
- pub fn get_version(&self) -> u64 {
- self.version.unwrap_or(0)
- }
- }
- impl ::protobuf::Message for BuildInfo {
- fn is_initialized(&self) -> bool {
- if self.product.is_none() {
- return false;
- }
- if self.platform.is_none() {
- return false;
- }
- if self.version.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.product, 10, &mut self.unknown_fields)?
- },
- 20 => {
- ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.product_flags, 20, &mut self.unknown_fields)?
- },
- 30 => {
- ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.platform, 30, &mut self.unknown_fields)?
- },
- 40 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_uint64()?;
- self.version = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.product {
- my_size += ::protobuf::rt::enum_size(10, v);
- }
- for value in &self.product_flags {
- my_size += ::protobuf::rt::enum_size(20, *value);
- };
- if let Some(v) = self.platform {
- my_size += ::protobuf::rt::enum_size(30, v);
- }
- if let Some(v) = self.version {
- my_size += ::protobuf::rt::value_size(40, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.product {
- os.write_enum(10, v.value())?;
- }
- for v in &self.product_flags {
- os.write_enum(20, v.value())?;
- };
- if let Some(v) = self.platform {
- os.write_enum(30, v.value())?;
- }
- if let Some(v) = self.version {
- os.write_uint64(40, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> BuildInfo {
- BuildInfo::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Product>>(
- "product",
- |m: &BuildInfo| { &m.product },
- |m: &mut BuildInfo| { &mut m.product },
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ProductFlags>>(
- "product_flags",
- |m: &BuildInfo| { &m.product_flags },
- |m: &mut BuildInfo| { &mut m.product_flags },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Platform>>(
- "platform",
- |m: &BuildInfo| { &m.platform },
- |m: &mut BuildInfo| { &mut m.platform },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
- "version",
- |m: &BuildInfo| { &m.version },
- |m: &mut BuildInfo| { &mut m.version },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<BuildInfo>(
- "BuildInfo",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static BuildInfo {
- static mut instance: ::protobuf::lazy::Lazy<BuildInfo> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const BuildInfo,
- };
- unsafe {
- instance.get(BuildInfo::new)
- }
- }
- }
- impl ::protobuf::Clear for BuildInfo {
- fn clear(&mut self) {
- self.clear_product();
- self.clear_product_flags();
- self.clear_platform();
- self.clear_version();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for BuildInfo {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for BuildInfo {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoHelloUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoHelloUnion {
- pub fn new() -> LoginCryptoHelloUnion {
- ::std::default::Default::default()
- }
- // optional .LoginCryptoDiffieHellmanHello diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanHello) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanHello {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanHello {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanHello {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::default_instance())
- }
- }
- impl ::protobuf::Message for LoginCryptoHelloUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoHelloUnion {
- LoginCryptoHelloUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanHello>>(
- "diffie_hellman",
- |m: &LoginCryptoHelloUnion| { &m.diffie_hellman },
- |m: &mut LoginCryptoHelloUnion| { &mut m.diffie_hellman },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoHelloUnion>(
- "LoginCryptoHelloUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoHelloUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoHelloUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoHelloUnion,
- };
- unsafe {
- instance.get(LoginCryptoHelloUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoHelloUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoHelloUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoHelloUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanHello {
- // message fields
- gc: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- server_keys_known: ::std::option::Option<u32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoDiffieHellmanHello {
- pub fn new() -> LoginCryptoDiffieHellmanHello {
- ::std::default::Default::default()
- }
- // required bytes gc = 10;
- pub fn clear_gc(&mut self) {
- self.gc.clear();
- }
- pub fn has_gc(&self) -> bool {
- self.gc.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gc(&mut self, v: ::std::vec::Vec<u8>) {
- self.gc = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gc(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gc.is_none() {
- self.gc.set_default();
- }
- self.gc.as_mut().unwrap()
- }
- // Take field
- pub fn take_gc(&mut self) -> ::std::vec::Vec<u8> {
- self.gc.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gc(&self) -> &[u8] {
- match self.gc.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // required uint32 server_keys_known = 20;
- pub fn clear_server_keys_known(&mut self) {
- self.server_keys_known = ::std::option::Option::None;
- }
- pub fn has_server_keys_known(&self) -> bool {
- self.server_keys_known.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_keys_known(&mut self, v: u32) {
- self.server_keys_known = ::std::option::Option::Some(v);
- }
- pub fn get_server_keys_known(&self) -> u32 {
- self.server_keys_known.unwrap_or(0)
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanHello {
- fn is_initialized(&self) -> bool {
- if self.gc.is_none() {
- return false;
- }
- if self.server_keys_known.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gc)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_uint32()?;
- self.server_keys_known = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.gc.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.server_keys_known {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.gc.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.server_keys_known {
- os.write_uint32(20, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoDiffieHellmanHello {
- LoginCryptoDiffieHellmanHello::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gc",
- |m: &LoginCryptoDiffieHellmanHello| { &m.gc },
- |m: &mut LoginCryptoDiffieHellmanHello| { &mut m.gc },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
- "server_keys_known",
- |m: &LoginCryptoDiffieHellmanHello| { &m.server_keys_known },
- |m: &mut LoginCryptoDiffieHellmanHello| { &mut m.server_keys_known },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanHello>(
- "LoginCryptoDiffieHellmanHello",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoDiffieHellmanHello {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanHello> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanHello,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanHello::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanHello {
- fn clear(&mut self) {
- self.clear_gc();
- self.clear_server_keys_known();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanHello {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanHello {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FeatureSet {
- // message fields
- autoupdate2: ::std::option::Option<bool>,
- current_location: ::std::option::Option<bool>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl FeatureSet {
- pub fn new() -> FeatureSet {
- ::std::default::Default::default()
- }
- // optional bool autoupdate2 = 1;
- pub fn clear_autoupdate2(&mut self) {
- self.autoupdate2 = ::std::option::Option::None;
- }
- pub fn has_autoupdate2(&self) -> bool {
- self.autoupdate2.is_some()
- }
- // Param is passed by value, moved
- pub fn set_autoupdate2(&mut self, v: bool) {
- self.autoupdate2 = ::std::option::Option::Some(v);
- }
- pub fn get_autoupdate2(&self) -> bool {
- self.autoupdate2.unwrap_or(false)
- }
- // optional bool current_location = 2;
- pub fn clear_current_location(&mut self) {
- self.current_location = ::std::option::Option::None;
- }
- pub fn has_current_location(&self) -> bool {
- self.current_location.is_some()
- }
- // Param is passed by value, moved
- pub fn set_current_location(&mut self, v: bool) {
- self.current_location = ::std::option::Option::Some(v);
- }
- pub fn get_current_location(&self) -> bool {
- self.current_location.unwrap_or(false)
- }
- }
- impl ::protobuf::Message for FeatureSet {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.autoupdate2 = ::std::option::Option::Some(tmp);
- },
- 2 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.current_location = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.autoupdate2 {
- my_size += 2;
- }
- if let Some(v) = self.current_location {
- my_size += 2;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.autoupdate2 {
- os.write_bool(1, v)?;
- }
- if let Some(v) = self.current_location {
- os.write_bool(2, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> FeatureSet {
- FeatureSet::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "autoupdate2",
- |m: &FeatureSet| { &m.autoupdate2 },
- |m: &mut FeatureSet| { &mut m.autoupdate2 },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "current_location",
- |m: &FeatureSet| { &m.current_location },
- |m: &mut FeatureSet| { &mut m.current_location },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FeatureSet>(
- "FeatureSet",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static FeatureSet {
- static mut instance: ::protobuf::lazy::Lazy<FeatureSet> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FeatureSet,
- };
- unsafe {
- instance.get(FeatureSet::new)
- }
- }
- }
- impl ::protobuf::Clear for FeatureSet {
- fn clear(&mut self) {
- self.clear_autoupdate2();
- self.clear_current_location();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FeatureSet {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FeatureSet {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APResponseMessage {
- // message fields
- challenge: ::protobuf::SingularPtrField<APChallenge>,
- upgrade: ::protobuf::SingularPtrField<UpgradeRequiredMessage>,
- login_failed: ::protobuf::SingularPtrField<APLoginFailed>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl APResponseMessage {
- pub fn new() -> APResponseMessage {
- ::std::default::Default::default()
- }
- // optional .APChallenge challenge = 10;
- pub fn clear_challenge(&mut self) {
- self.challenge.clear();
- }
- pub fn has_challenge(&self) -> bool {
- self.challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_challenge(&mut self, v: APChallenge) {
- self.challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_challenge(&mut self) -> &mut APChallenge {
- if self.challenge.is_none() {
- self.challenge.set_default();
- }
- self.challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_challenge(&mut self) -> APChallenge {
- self.challenge.take().unwrap_or_else(|| APChallenge::new())
- }
- pub fn get_challenge(&self) -> &APChallenge {
- self.challenge.as_ref().unwrap_or_else(|| APChallenge::default_instance())
- }
- // optional .UpgradeRequiredMessage upgrade = 20;
- pub fn clear_upgrade(&mut self) {
- self.upgrade.clear();
- }
- pub fn has_upgrade(&self) -> bool {
- self.upgrade.is_some()
- }
- // Param is passed by value, moved
- pub fn set_upgrade(&mut self, v: UpgradeRequiredMessage) {
- self.upgrade = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_upgrade(&mut self) -> &mut UpgradeRequiredMessage {
- if self.upgrade.is_none() {
- self.upgrade.set_default();
- }
- self.upgrade.as_mut().unwrap()
- }
- // Take field
- pub fn take_upgrade(&mut self) -> UpgradeRequiredMessage {
- self.upgrade.take().unwrap_or_else(|| UpgradeRequiredMessage::new())
- }
- pub fn get_upgrade(&self) -> &UpgradeRequiredMessage {
- self.upgrade.as_ref().unwrap_or_else(|| UpgradeRequiredMessage::default_instance())
- }
- // optional .APLoginFailed login_failed = 30;
- pub fn clear_login_failed(&mut self) {
- self.login_failed.clear();
- }
- pub fn has_login_failed(&self) -> bool {
- self.login_failed.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_failed(&mut self, v: APLoginFailed) {
- self.login_failed = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_failed(&mut self) -> &mut APLoginFailed {
- if self.login_failed.is_none() {
- self.login_failed.set_default();
- }
- self.login_failed.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_failed(&mut self) -> APLoginFailed {
- self.login_failed.take().unwrap_or_else(|| APLoginFailed::new())
- }
- pub fn get_login_failed(&self) -> &APLoginFailed {
- self.login_failed.as_ref().unwrap_or_else(|| APLoginFailed::default_instance())
- }
- }
- impl ::protobuf::Message for APResponseMessage {
- fn is_initialized(&self) -> bool {
- for v in &self.challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.upgrade {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.login_failed {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.challenge)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.upgrade)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_failed)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.challenge.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.upgrade.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.login_failed.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.challenge.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.upgrade.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.login_failed.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> APResponseMessage {
- APResponseMessage::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APChallenge>>(
- "challenge",
- |m: &APResponseMessage| { &m.challenge },
- |m: &mut APResponseMessage| { &mut m.challenge },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UpgradeRequiredMessage>>(
- "upgrade",
- |m: &APResponseMessage| { &m.upgrade },
- |m: &mut APResponseMessage| { &mut m.upgrade },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APLoginFailed>>(
- "login_failed",
- |m: &APResponseMessage| { &m.login_failed },
- |m: &mut APResponseMessage| { &mut m.login_failed },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APResponseMessage>(
- "APResponseMessage",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static APResponseMessage {
- static mut instance: ::protobuf::lazy::Lazy<APResponseMessage> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APResponseMessage,
- };
- unsafe {
- instance.get(APResponseMessage::new)
- }
- }
- }
- impl ::protobuf::Clear for APResponseMessage {
- fn clear(&mut self) {
- self.clear_challenge();
- self.clear_upgrade();
- self.clear_login_failed();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APResponseMessage {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APResponseMessage {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APChallenge {
- // message fields
- login_crypto_challenge: ::protobuf::SingularPtrField<LoginCryptoChallengeUnion>,
- fingerprint_challenge: ::protobuf::SingularPtrField<FingerprintChallengeUnion>,
- pow_challenge: ::protobuf::SingularPtrField<PoWChallengeUnion>,
- crypto_challenge: ::protobuf::SingularPtrField<CryptoChallengeUnion>,
- server_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl APChallenge {
- pub fn new() -> APChallenge {
- ::std::default::Default::default()
- }
- // required .LoginCryptoChallengeUnion login_crypto_challenge = 10;
- pub fn clear_login_crypto_challenge(&mut self) {
- self.login_crypto_challenge.clear();
- }
- pub fn has_login_crypto_challenge(&self) -> bool {
- self.login_crypto_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_challenge(&mut self, v: LoginCryptoChallengeUnion) {
- self.login_crypto_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_challenge(&mut self) -> &mut LoginCryptoChallengeUnion {
- if self.login_crypto_challenge.is_none() {
- self.login_crypto_challenge.set_default();
- }
- self.login_crypto_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_challenge(&mut self) -> LoginCryptoChallengeUnion {
- self.login_crypto_challenge.take().unwrap_or_else(|| LoginCryptoChallengeUnion::new())
- }
- pub fn get_login_crypto_challenge(&self) -> &LoginCryptoChallengeUnion {
- self.login_crypto_challenge.as_ref().unwrap_or_else(|| LoginCryptoChallengeUnion::default_instance())
- }
- // required .FingerprintChallengeUnion fingerprint_challenge = 20;
- pub fn clear_fingerprint_challenge(&mut self) {
- self.fingerprint_challenge.clear();
- }
- pub fn has_fingerprint_challenge(&self) -> bool {
- self.fingerprint_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_fingerprint_challenge(&mut self, v: FingerprintChallengeUnion) {
- self.fingerprint_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_fingerprint_challenge(&mut self) -> &mut FingerprintChallengeUnion {
- if self.fingerprint_challenge.is_none() {
- self.fingerprint_challenge.set_default();
- }
- self.fingerprint_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_fingerprint_challenge(&mut self) -> FingerprintChallengeUnion {
- self.fingerprint_challenge.take().unwrap_or_else(|| FingerprintChallengeUnion::new())
- }
- pub fn get_fingerprint_challenge(&self) -> &FingerprintChallengeUnion {
- self.fingerprint_challenge.as_ref().unwrap_or_else(|| FingerprintChallengeUnion::default_instance())
- }
- // required .PoWChallengeUnion pow_challenge = 30;
- pub fn clear_pow_challenge(&mut self) {
- self.pow_challenge.clear();
- }
- pub fn has_pow_challenge(&self) -> bool {
- self.pow_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pow_challenge(&mut self, v: PoWChallengeUnion) {
- self.pow_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_pow_challenge(&mut self) -> &mut PoWChallengeUnion {
- if self.pow_challenge.is_none() {
- self.pow_challenge.set_default();
- }
- self.pow_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_pow_challenge(&mut self) -> PoWChallengeUnion {
- self.pow_challenge.take().unwrap_or_else(|| PoWChallengeUnion::new())
- }
- pub fn get_pow_challenge(&self) -> &PoWChallengeUnion {
- self.pow_challenge.as_ref().unwrap_or_else(|| PoWChallengeUnion::default_instance())
- }
- // required .CryptoChallengeUnion crypto_challenge = 40;
- pub fn clear_crypto_challenge(&mut self) {
- self.crypto_challenge.clear();
- }
- pub fn has_crypto_challenge(&self) -> bool {
- self.crypto_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_crypto_challenge(&mut self, v: CryptoChallengeUnion) {
- self.crypto_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_crypto_challenge(&mut self) -> &mut CryptoChallengeUnion {
- if self.crypto_challenge.is_none() {
- self.crypto_challenge.set_default();
- }
- self.crypto_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_crypto_challenge(&mut self) -> CryptoChallengeUnion {
- self.crypto_challenge.take().unwrap_or_else(|| CryptoChallengeUnion::new())
- }
- pub fn get_crypto_challenge(&self) -> &CryptoChallengeUnion {
- self.crypto_challenge.as_ref().unwrap_or_else(|| CryptoChallengeUnion::default_instance())
- }
- // required bytes server_nonce = 50;
- pub fn clear_server_nonce(&mut self) {
- self.server_nonce.clear();
- }
- pub fn has_server_nonce(&self) -> bool {
- self.server_nonce.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_nonce(&mut self, v: ::std::vec::Vec<u8>) {
- self.server_nonce = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_server_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.server_nonce.is_none() {
- self.server_nonce.set_default();
- }
- self.server_nonce.as_mut().unwrap()
- }
- // Take field
- pub fn take_server_nonce(&mut self) -> ::std::vec::Vec<u8> {
- self.server_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_server_nonce(&self) -> &[u8] {
- match self.server_nonce.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // optional bytes padding = 60;
- pub fn clear_padding(&mut self) {
- self.padding.clear();
- }
- pub fn has_padding(&self) -> bool {
- self.padding.is_some()
- }
- // Param is passed by value, moved
- pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
- self.padding = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.padding.is_none() {
- self.padding.set_default();
- }
- self.padding.as_mut().unwrap()
- }
- // Take field
- pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
- self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_padding(&self) -> &[u8] {
- match self.padding.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for APChallenge {
- fn is_initialized(&self) -> bool {
- if self.login_crypto_challenge.is_none() {
- return false;
- }
- if self.fingerprint_challenge.is_none() {
- return false;
- }
- if self.pow_challenge.is_none() {
- return false;
- }
- if self.crypto_challenge.is_none() {
- return false;
- }
- if self.server_nonce.is_none() {
- return false;
- }
- for v in &self.login_crypto_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.fingerprint_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.pow_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.crypto_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_challenge)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fingerprint_challenge)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_challenge)?;
- },
- 40 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_challenge)?;
- },
- 50 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.server_nonce)?;
- },
- 60 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.login_crypto_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.fingerprint_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.pow_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.crypto_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.server_nonce.as_ref() {
- my_size += ::protobuf::rt::bytes_size(50, &v);
- }
- if let Some(ref v) = self.padding.as_ref() {
- my_size += ::protobuf::rt::bytes_size(60, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.login_crypto_challenge.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.fingerprint_challenge.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.pow_challenge.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.crypto_challenge.as_ref() {
- os.write_tag(40, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.server_nonce.as_ref() {
- os.write_bytes(50, &v)?;
- }
- if let Some(ref v) = self.padding.as_ref() {
- os.write_bytes(60, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> APChallenge {
- APChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoChallengeUnion>>(
- "login_crypto_challenge",
- |m: &APChallenge| { &m.login_crypto_challenge },
- |m: &mut APChallenge| { &mut m.login_crypto_challenge },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintChallengeUnion>>(
- "fingerprint_challenge",
- |m: &APChallenge| { &m.fingerprint_challenge },
- |m: &mut APChallenge| { &mut m.fingerprint_challenge },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWChallengeUnion>>(
- "pow_challenge",
- |m: &APChallenge| { &m.pow_challenge },
- |m: &mut APChallenge| { &mut m.pow_challenge },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoChallengeUnion>>(
- "crypto_challenge",
- |m: &APChallenge| { &m.crypto_challenge },
- |m: &mut APChallenge| { &mut m.crypto_challenge },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "server_nonce",
- |m: &APChallenge| { &m.server_nonce },
- |m: &mut APChallenge| { &mut m.server_nonce },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "padding",
- |m: &APChallenge| { &m.padding },
- |m: &mut APChallenge| { &mut m.padding },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APChallenge>(
- "APChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static APChallenge {
- static mut instance: ::protobuf::lazy::Lazy<APChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APChallenge,
- };
- unsafe {
- instance.get(APChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for APChallenge {
- fn clear(&mut self) {
- self.clear_login_crypto_challenge();
- self.clear_fingerprint_challenge();
- self.clear_pow_challenge();
- self.clear_crypto_challenge();
- self.clear_server_nonce();
- self.clear_padding();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoChallengeUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoChallengeUnion {
- pub fn new() -> LoginCryptoChallengeUnion {
- ::std::default::Default::default()
- }
- // optional .LoginCryptoDiffieHellmanChallenge diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanChallenge) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanChallenge {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanChallenge {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanChallenge {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::default_instance())
- }
- }
- impl ::protobuf::Message for LoginCryptoChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoChallengeUnion {
- LoginCryptoChallengeUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanChallenge>>(
- "diffie_hellman",
- |m: &LoginCryptoChallengeUnion| { &m.diffie_hellman },
- |m: &mut LoginCryptoChallengeUnion| { &mut m.diffie_hellman },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoChallengeUnion>(
- "LoginCryptoChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoChallengeUnion,
- };
- unsafe {
- instance.get(LoginCryptoChallengeUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoChallengeUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanChallenge {
- // message fields
- gs: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- server_signature_key: ::std::option::Option<i32>,
- gs_signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoDiffieHellmanChallenge {
- pub fn new() -> LoginCryptoDiffieHellmanChallenge {
- ::std::default::Default::default()
- }
- // required bytes gs = 10;
- pub fn clear_gs(&mut self) {
- self.gs.clear();
- }
- pub fn has_gs(&self) -> bool {
- self.gs.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gs(&mut self, v: ::std::vec::Vec<u8>) {
- self.gs = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gs(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gs.is_none() {
- self.gs.set_default();
- }
- self.gs.as_mut().unwrap()
- }
- // Take field
- pub fn take_gs(&mut self) -> ::std::vec::Vec<u8> {
- self.gs.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gs(&self) -> &[u8] {
- match self.gs.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // required int32 server_signature_key = 20;
- pub fn clear_server_signature_key(&mut self) {
- self.server_signature_key = ::std::option::Option::None;
- }
- pub fn has_server_signature_key(&self) -> bool {
- self.server_signature_key.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_signature_key(&mut self, v: i32) {
- self.server_signature_key = ::std::option::Option::Some(v);
- }
- pub fn get_server_signature_key(&self) -> i32 {
- self.server_signature_key.unwrap_or(0)
- }
- // required bytes gs_signature = 30;
- pub fn clear_gs_signature(&mut self) {
- self.gs_signature.clear();
- }
- pub fn has_gs_signature(&self) -> bool {
- self.gs_signature.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gs_signature(&mut self, v: ::std::vec::Vec<u8>) {
- self.gs_signature = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gs_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gs_signature.is_none() {
- self.gs_signature.set_default();
- }
- self.gs_signature.as_mut().unwrap()
- }
- // Take field
- pub fn take_gs_signature(&mut self) -> ::std::vec::Vec<u8> {
- self.gs_signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gs_signature(&self) -> &[u8] {
- match self.gs_signature.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanChallenge {
- fn is_initialized(&self) -> bool {
- if self.gs.is_none() {
- return false;
- }
- if self.server_signature_key.is_none() {
- return false;
- }
- if self.gs_signature.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.server_signature_key = ::std::option::Option::Some(tmp);
- },
- 30 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs_signature)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.gs.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.server_signature_key {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(ref v) = self.gs_signature.as_ref() {
- my_size += ::protobuf::rt::bytes_size(30, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.gs.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.server_signature_key {
- os.write_int32(20, v)?;
- }
- if let Some(ref v) = self.gs_signature.as_ref() {
- os.write_bytes(30, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoDiffieHellmanChallenge {
- LoginCryptoDiffieHellmanChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gs",
- |m: &LoginCryptoDiffieHellmanChallenge| { &m.gs },
- |m: &mut LoginCryptoDiffieHellmanChallenge| { &mut m.gs },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "server_signature_key",
- |m: &LoginCryptoDiffieHellmanChallenge| { &m.server_signature_key },
- |m: &mut LoginCryptoDiffieHellmanChallenge| { &mut m.server_signature_key },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gs_signature",
- |m: &LoginCryptoDiffieHellmanChallenge| { &m.gs_signature },
- |m: &mut LoginCryptoDiffieHellmanChallenge| { &mut m.gs_signature },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanChallenge>(
- "LoginCryptoDiffieHellmanChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoDiffieHellmanChallenge {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanChallenge,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanChallenge {
- fn clear(&mut self) {
- self.clear_gs();
- self.clear_server_signature_key();
- self.clear_gs_signature();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintChallengeUnion {
- // message fields
- grain: ::protobuf::SingularPtrField<FingerprintGrainChallenge>,
- hmac_ripemd: ::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl FingerprintChallengeUnion {
- pub fn new() -> FingerprintChallengeUnion {
- ::std::default::Default::default()
- }
- // optional .FingerprintGrainChallenge grain = 10;
- pub fn clear_grain(&mut self) {
- self.grain.clear();
- }
- pub fn has_grain(&self) -> bool {
- self.grain.is_some()
- }
- // Param is passed by value, moved
- pub fn set_grain(&mut self, v: FingerprintGrainChallenge) {
- self.grain = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_grain(&mut self) -> &mut FingerprintGrainChallenge {
- if self.grain.is_none() {
- self.grain.set_default();
- }
- self.grain.as_mut().unwrap()
- }
- // Take field
- pub fn take_grain(&mut self) -> FingerprintGrainChallenge {
- self.grain.take().unwrap_or_else(|| FingerprintGrainChallenge::new())
- }
- pub fn get_grain(&self) -> &FingerprintGrainChallenge {
- self.grain.as_ref().unwrap_or_else(|| FingerprintGrainChallenge::default_instance())
- }
- // optional .FingerprintHmacRipemdChallenge hmac_ripemd = 20;
- pub fn clear_hmac_ripemd(&mut self) {
- self.hmac_ripemd.clear();
- }
- pub fn has_hmac_ripemd(&self) -> bool {
- self.hmac_ripemd.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hmac_ripemd(&mut self, v: FingerprintHmacRipemdChallenge) {
- self.hmac_ripemd = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hmac_ripemd(&mut self) -> &mut FingerprintHmacRipemdChallenge {
- if self.hmac_ripemd.is_none() {
- self.hmac_ripemd.set_default();
- }
- self.hmac_ripemd.as_mut().unwrap()
- }
- // Take field
- pub fn take_hmac_ripemd(&mut self) -> FingerprintHmacRipemdChallenge {
- self.hmac_ripemd.take().unwrap_or_else(|| FingerprintHmacRipemdChallenge::new())
- }
- pub fn get_hmac_ripemd(&self) -> &FingerprintHmacRipemdChallenge {
- self.hmac_ripemd.as_ref().unwrap_or_else(|| FingerprintHmacRipemdChallenge::default_instance())
- }
- }
- impl ::protobuf::Message for FingerprintChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.grain {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.hmac_ripemd {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grain)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hmac_ripemd)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.grain.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.hmac_ripemd.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.grain.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.hmac_ripemd.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> FingerprintChallengeUnion {
- FingerprintChallengeUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintGrainChallenge>>(
- "grain",
- |m: &FingerprintChallengeUnion| { &m.grain },
- |m: &mut FingerprintChallengeUnion| { &mut m.grain },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintHmacRipemdChallenge>>(
- "hmac_ripemd",
- |m: &FingerprintChallengeUnion| { &m.hmac_ripemd },
- |m: &mut FingerprintChallengeUnion| { &mut m.hmac_ripemd },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintChallengeUnion>(
- "FingerprintChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static FingerprintChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintChallengeUnion,
- };
- unsafe {
- instance.get(FingerprintChallengeUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for FingerprintChallengeUnion {
- fn clear(&mut self) {
- self.clear_grain();
- self.clear_hmac_ripemd();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintGrainChallenge {
- // message fields
- kek: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl FingerprintGrainChallenge {
- pub fn new() -> FingerprintGrainChallenge {
- ::std::default::Default::default()
- }
- // required bytes kek = 10;
- pub fn clear_kek(&mut self) {
- self.kek.clear();
- }
- pub fn has_kek(&self) -> bool {
- self.kek.is_some()
- }
- // Param is passed by value, moved
- pub fn set_kek(&mut self, v: ::std::vec::Vec<u8>) {
- self.kek = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_kek(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.kek.is_none() {
- self.kek.set_default();
- }
- self.kek.as_mut().unwrap()
- }
- // Take field
- pub fn take_kek(&mut self) -> ::std::vec::Vec<u8> {
- self.kek.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_kek(&self) -> &[u8] {
- match self.kek.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for FingerprintGrainChallenge {
- fn is_initialized(&self) -> bool {
- if self.kek.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.kek)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.kek.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.kek.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> FingerprintGrainChallenge {
- FingerprintGrainChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "kek",
- |m: &FingerprintGrainChallenge| { &m.kek },
- |m: &mut FingerprintGrainChallenge| { &mut m.kek },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintGrainChallenge>(
- "FingerprintGrainChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static FingerprintGrainChallenge {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintGrainChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintGrainChallenge,
- };
- unsafe {
- instance.get(FingerprintGrainChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for FingerprintGrainChallenge {
- fn clear(&mut self) {
- self.clear_kek();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintGrainChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintGrainChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintHmacRipemdChallenge {
- // message fields
- challenge: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl FingerprintHmacRipemdChallenge {
- pub fn new() -> FingerprintHmacRipemdChallenge {
- ::std::default::Default::default()
- }
- // required bytes challenge = 10;
- pub fn clear_challenge(&mut self) {
- self.challenge.clear();
- }
- pub fn has_challenge(&self) -> bool {
- self.challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_challenge(&mut self, v: ::std::vec::Vec<u8>) {
- self.challenge = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.challenge.is_none() {
- self.challenge.set_default();
- }
- self.challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_challenge(&mut self) -> ::std::vec::Vec<u8> {
- self.challenge.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_challenge(&self) -> &[u8] {
- match self.challenge.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for FingerprintHmacRipemdChallenge {
- fn is_initialized(&self) -> bool {
- if self.challenge.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.challenge)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.challenge.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.challenge.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> FingerprintHmacRipemdChallenge {
- FingerprintHmacRipemdChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "challenge",
- |m: &FingerprintHmacRipemdChallenge| { &m.challenge },
- |m: &mut FingerprintHmacRipemdChallenge| { &mut m.challenge },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintHmacRipemdChallenge>(
- "FingerprintHmacRipemdChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static FingerprintHmacRipemdChallenge {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintHmacRipemdChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintHmacRipemdChallenge,
- };
- unsafe {
- instance.get(FingerprintHmacRipemdChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for FingerprintHmacRipemdChallenge {
- fn clear(&mut self) {
- self.clear_challenge();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintHmacRipemdChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintHmacRipemdChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWChallengeUnion {
- // message fields
- hash_cash: ::protobuf::SingularPtrField<PoWHashCashChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl PoWChallengeUnion {
- pub fn new() -> PoWChallengeUnion {
- ::std::default::Default::default()
- }
- // optional .PoWHashCashChallenge hash_cash = 10;
- pub fn clear_hash_cash(&mut self) {
- self.hash_cash.clear();
- }
- pub fn has_hash_cash(&self) -> bool {
- self.hash_cash.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_cash(&mut self, v: PoWHashCashChallenge) {
- self.hash_cash = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashChallenge {
- if self.hash_cash.is_none() {
- self.hash_cash.set_default();
- }
- self.hash_cash.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_cash(&mut self) -> PoWHashCashChallenge {
- self.hash_cash.take().unwrap_or_else(|| PoWHashCashChallenge::new())
- }
- pub fn get_hash_cash(&self) -> &PoWHashCashChallenge {
- self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashChallenge::default_instance())
- }
- }
- impl ::protobuf::Message for PoWChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.hash_cash {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_cash.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_cash.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> PoWChallengeUnion {
- PoWChallengeUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashChallenge>>(
- "hash_cash",
- |m: &PoWChallengeUnion| { &m.hash_cash },
- |m: &mut PoWChallengeUnion| { &mut m.hash_cash },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWChallengeUnion>(
- "PoWChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static PoWChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<PoWChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWChallengeUnion,
- };
- unsafe {
- instance.get(PoWChallengeUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for PoWChallengeUnion {
- fn clear(&mut self) {
- self.clear_hash_cash();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWHashCashChallenge {
- // message fields
- prefix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- length: ::std::option::Option<i32>,
- target: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl PoWHashCashChallenge {
- pub fn new() -> PoWHashCashChallenge {
- ::std::default::Default::default()
- }
- // optional bytes prefix = 10;
- pub fn clear_prefix(&mut self) {
- self.prefix.clear();
- }
- pub fn has_prefix(&self) -> bool {
- self.prefix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_prefix(&mut self, v: ::std::vec::Vec<u8>) {
- self.prefix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_prefix(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.prefix.is_none() {
- self.prefix.set_default();
- }
- self.prefix.as_mut().unwrap()
- }
- // Take field
- pub fn take_prefix(&mut self) -> ::std::vec::Vec<u8> {
- self.prefix.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_prefix(&self) -> &[u8] {
- match self.prefix.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // optional int32 length = 20;
- pub fn clear_length(&mut self) {
- self.length = ::std::option::Option::None;
- }
- pub fn has_length(&self) -> bool {
- self.length.is_some()
- }
- // Param is passed by value, moved
- pub fn set_length(&mut self, v: i32) {
- self.length = ::std::option::Option::Some(v);
- }
- pub fn get_length(&self) -> i32 {
- self.length.unwrap_or(0)
- }
- // optional int32 target = 30;
- pub fn clear_target(&mut self) {
- self.target = ::std::option::Option::None;
- }
- pub fn has_target(&self) -> bool {
- self.target.is_some()
- }
- // Param is passed by value, moved
- pub fn set_target(&mut self, v: i32) {
- self.target = ::std::option::Option::Some(v);
- }
- pub fn get_target(&self) -> i32 {
- self.target.unwrap_or(0)
- }
- }
- impl ::protobuf::Message for PoWHashCashChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.prefix)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.length = ::std::option::Option::Some(tmp);
- },
- 30 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.target = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.prefix.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.length {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.target {
- my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.prefix.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.length {
- os.write_int32(20, v)?;
- }
- if let Some(v) = self.target {
- os.write_int32(30, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> PoWHashCashChallenge {
- PoWHashCashChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "prefix",
- |m: &PoWHashCashChallenge| { &m.prefix },
- |m: &mut PoWHashCashChallenge| { &mut m.prefix },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "length",
- |m: &PoWHashCashChallenge| { &m.length },
- |m: &mut PoWHashCashChallenge| { &mut m.length },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "target",
- |m: &PoWHashCashChallenge| { &m.target },
- |m: &mut PoWHashCashChallenge| { &mut m.target },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashChallenge>(
- "PoWHashCashChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static PoWHashCashChallenge {
- static mut instance: ::protobuf::lazy::Lazy<PoWHashCashChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWHashCashChallenge,
- };
- unsafe {
- instance.get(PoWHashCashChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for PoWHashCashChallenge {
- fn clear(&mut self) {
- self.clear_prefix();
- self.clear_length();
- self.clear_target();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWHashCashChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWHashCashChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoChallengeUnion {
- // message fields
- shannon: ::protobuf::SingularPtrField<CryptoShannonChallenge>,
- rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoChallengeUnion {
- pub fn new() -> CryptoChallengeUnion {
- ::std::default::Default::default()
- }
- // optional .CryptoShannonChallenge shannon = 10;
- pub fn clear_shannon(&mut self) {
- self.shannon.clear();
- }
- pub fn has_shannon(&self) -> bool {
- self.shannon.is_some()
- }
- // Param is passed by value, moved
- pub fn set_shannon(&mut self, v: CryptoShannonChallenge) {
- self.shannon = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_shannon(&mut self) -> &mut CryptoShannonChallenge {
- if self.shannon.is_none() {
- self.shannon.set_default();
- }
- self.shannon.as_mut().unwrap()
- }
- // Take field
- pub fn take_shannon(&mut self) -> CryptoShannonChallenge {
- self.shannon.take().unwrap_or_else(|| CryptoShannonChallenge::new())
- }
- pub fn get_shannon(&self) -> &CryptoShannonChallenge {
- self.shannon.as_ref().unwrap_or_else(|| CryptoShannonChallenge::default_instance())
- }
- // optional .CryptoRc4Sha1HmacChallenge rc4_sha1_hmac = 20;
- pub fn clear_rc4_sha1_hmac(&mut self) {
- self.rc4_sha1_hmac.clear();
- }
- pub fn has_rc4_sha1_hmac(&self) -> bool {
- self.rc4_sha1_hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacChallenge) {
- self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacChallenge {
- if self.rc4_sha1_hmac.is_none() {
- self.rc4_sha1_hmac.set_default();
- }
- self.rc4_sha1_hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacChallenge {
- self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::new())
- }
- pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacChallenge {
- self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::default_instance())
- }
- }
- impl ::protobuf::Message for CryptoChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.shannon {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.rc4_sha1_hmac {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.shannon.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.shannon.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoChallengeUnion {
- CryptoChallengeUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonChallenge>>(
- "shannon",
- |m: &CryptoChallengeUnion| { &m.shannon },
- |m: &mut CryptoChallengeUnion| { &mut m.shannon },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacChallenge>>(
- "rc4_sha1_hmac",
- |m: &CryptoChallengeUnion| { &m.rc4_sha1_hmac },
- |m: &mut CryptoChallengeUnion| { &mut m.rc4_sha1_hmac },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoChallengeUnion>(
- "CryptoChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<CryptoChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoChallengeUnion,
- };
- unsafe {
- instance.get(CryptoChallengeUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoChallengeUnion {
- fn clear(&mut self) {
- self.clear_shannon();
- self.clear_rc4_sha1_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoShannonChallenge {
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoShannonChallenge {
- pub fn new() -> CryptoShannonChallenge {
- ::std::default::Default::default()
- }
- }
- impl ::protobuf::Message for CryptoShannonChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoShannonChallenge {
- CryptoShannonChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let fields = ::std::vec::Vec::new();
- ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonChallenge>(
- "CryptoShannonChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoShannonChallenge {
- static mut instance: ::protobuf::lazy::Lazy<CryptoShannonChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoShannonChallenge,
- };
- unsafe {
- instance.get(CryptoShannonChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoShannonChallenge {
- fn clear(&mut self) {
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoShannonChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoShannonChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoRc4Sha1HmacChallenge {
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoRc4Sha1HmacChallenge {
- pub fn new() -> CryptoRc4Sha1HmacChallenge {
- ::std::default::Default::default()
- }
- }
- impl ::protobuf::Message for CryptoRc4Sha1HmacChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoRc4Sha1HmacChallenge {
- CryptoRc4Sha1HmacChallenge::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let fields = ::std::vec::Vec::new();
- ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacChallenge>(
- "CryptoRc4Sha1HmacChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoRc4Sha1HmacChallenge {
- static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoRc4Sha1HmacChallenge,
- };
- unsafe {
- instance.get(CryptoRc4Sha1HmacChallenge::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoRc4Sha1HmacChallenge {
- fn clear(&mut self) {
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoRc4Sha1HmacChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct UpgradeRequiredMessage {
- // message fields
- upgrade_signed_part: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- http_suffix: ::protobuf::SingularField<::std::string::String>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl UpgradeRequiredMessage {
- pub fn new() -> UpgradeRequiredMessage {
- ::std::default::Default::default()
- }
- // required bytes upgrade_signed_part = 10;
- pub fn clear_upgrade_signed_part(&mut self) {
- self.upgrade_signed_part.clear();
- }
- pub fn has_upgrade_signed_part(&self) -> bool {
- self.upgrade_signed_part.is_some()
- }
- // Param is passed by value, moved
- pub fn set_upgrade_signed_part(&mut self, v: ::std::vec::Vec<u8>) {
- self.upgrade_signed_part = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_upgrade_signed_part(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.upgrade_signed_part.is_none() {
- self.upgrade_signed_part.set_default();
- }
- self.upgrade_signed_part.as_mut().unwrap()
- }
- // Take field
- pub fn take_upgrade_signed_part(&mut self) -> ::std::vec::Vec<u8> {
- self.upgrade_signed_part.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_upgrade_signed_part(&self) -> &[u8] {
- match self.upgrade_signed_part.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // required bytes signature = 20;
- pub fn clear_signature(&mut self) {
- self.signature.clear();
- }
- pub fn has_signature(&self) -> bool {
- self.signature.is_some()
- }
- // Param is passed by value, moved
- pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
- self.signature = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.signature.is_none() {
- self.signature.set_default();
- }
- self.signature.as_mut().unwrap()
- }
- // Take field
- pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
- self.signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_signature(&self) -> &[u8] {
- match self.signature.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- // optional string http_suffix = 30;
- pub fn clear_http_suffix(&mut self) {
- self.http_suffix.clear();
- }
- pub fn has_http_suffix(&self) -> bool {
- self.http_suffix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_http_suffix(&mut self, v: ::std::string::String) {
- self.http_suffix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_http_suffix(&mut self) -> &mut ::std::string::String {
- if self.http_suffix.is_none() {
- self.http_suffix.set_default();
- }
- self.http_suffix.as_mut().unwrap()
- }
- // Take field
- pub fn take_http_suffix(&mut self) -> ::std::string::String {
- self.http_suffix.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_http_suffix(&self) -> &str {
- match self.http_suffix.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- }
- impl ::protobuf::Message for UpgradeRequiredMessage {
- fn is_initialized(&self) -> bool {
- if self.upgrade_signed_part.is_none() {
- return false;
- }
- if self.signature.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.upgrade_signed_part)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signature)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.http_suffix)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.upgrade_signed_part.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(ref v) = self.signature.as_ref() {
- my_size += ::protobuf::rt::bytes_size(20, &v);
- }
- if let Some(ref v) = self.http_suffix.as_ref() {
- my_size += ::protobuf::rt::string_size(30, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.upgrade_signed_part.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(ref v) = self.signature.as_ref() {
- os.write_bytes(20, &v)?;
- }
- if let Some(ref v) = self.http_suffix.as_ref() {
- os.write_string(30, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> UpgradeRequiredMessage {
- UpgradeRequiredMessage::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "upgrade_signed_part",
- |m: &UpgradeRequiredMessage| { &m.upgrade_signed_part },
- |m: &mut UpgradeRequiredMessage| { &mut m.upgrade_signed_part },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "signature",
- |m: &UpgradeRequiredMessage| { &m.signature },
- |m: &mut UpgradeRequiredMessage| { &mut m.signature },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "http_suffix",
- |m: &UpgradeRequiredMessage| { &m.http_suffix },
- |m: &mut UpgradeRequiredMessage| { &mut m.http_suffix },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<UpgradeRequiredMessage>(
- "UpgradeRequiredMessage",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static UpgradeRequiredMessage {
- static mut instance: ::protobuf::lazy::Lazy<UpgradeRequiredMessage> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const UpgradeRequiredMessage,
- };
- unsafe {
- instance.get(UpgradeRequiredMessage::new)
- }
- }
- }
- impl ::protobuf::Clear for UpgradeRequiredMessage {
- fn clear(&mut self) {
- self.clear_upgrade_signed_part();
- self.clear_signature();
- self.clear_http_suffix();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for UpgradeRequiredMessage {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for UpgradeRequiredMessage {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APLoginFailed {
- // message fields
- error_code: ::std::option::Option<ErrorCode>,
- retry_delay: ::std::option::Option<i32>,
- expiry: ::std::option::Option<i32>,
- error_description: ::protobuf::SingularField<::std::string::String>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl APLoginFailed {
- pub fn new() -> APLoginFailed {
- ::std::default::Default::default()
- }
- // required .ErrorCode error_code = 10;
- pub fn clear_error_code(&mut self) {
- self.error_code = ::std::option::Option::None;
- }
- pub fn has_error_code(&self) -> bool {
- self.error_code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_error_code(&mut self, v: ErrorCode) {
- self.error_code = ::std::option::Option::Some(v);
- }
- pub fn get_error_code(&self) -> ErrorCode {
- self.error_code.unwrap_or(ErrorCode::ProtocolError)
- }
- // optional int32 retry_delay = 20;
- pub fn clear_retry_delay(&mut self) {
- self.retry_delay = ::std::option::Option::None;
- }
- pub fn has_retry_delay(&self) -> bool {
- self.retry_delay.is_some()
- }
- // Param is passed by value, moved
- pub fn set_retry_delay(&mut self, v: i32) {
- self.retry_delay = ::std::option::Option::Some(v);
- }
- pub fn get_retry_delay(&self) -> i32 {
- self.retry_delay.unwrap_or(0)
- }
- // optional int32 expiry = 30;
- pub fn clear_expiry(&mut self) {
- self.expiry = ::std::option::Option::None;
- }
- pub fn has_expiry(&self) -> bool {
- self.expiry.is_some()
- }
- // Param is passed by value, moved
- pub fn set_expiry(&mut self, v: i32) {
- self.expiry = ::std::option::Option::Some(v);
- }
- pub fn get_expiry(&self) -> i32 {
- self.expiry.unwrap_or(0)
- }
- // optional string error_description = 40;
- pub fn clear_error_description(&mut self) {
- self.error_description.clear();
- }
- pub fn has_error_description(&self) -> bool {
- self.error_description.is_some()
- }
- // Param is passed by value, moved
- pub fn set_error_description(&mut self, v: ::std::string::String) {
- self.error_description = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_error_description(&mut self) -> &mut ::std::string::String {
- if self.error_description.is_none() {
- self.error_description.set_default();
- }
- self.error_description.as_mut().unwrap()
- }
- // Take field
- pub fn take_error_description(&mut self) -> ::std::string::String {
- self.error_description.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_error_description(&self) -> &str {
- match self.error_description.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- }
- impl ::protobuf::Message for APLoginFailed {
- fn is_initialized(&self) -> bool {
- if self.error_code.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_proto2_enum_with_unknown_fields_into(wire_type, is, &mut self.error_code, 10, &mut self.unknown_fields)?
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.retry_delay = ::std::option::Option::Some(tmp);
- },
- 30 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.expiry = ::std::option::Option::Some(tmp);
- },
- 40 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.error_description)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.error_code {
- my_size += ::protobuf::rt::enum_size(10, v);
- }
- if let Some(v) = self.retry_delay {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.expiry {
- my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(ref v) = self.error_description.as_ref() {
- my_size += ::protobuf::rt::string_size(40, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.error_code {
- os.write_enum(10, v.value())?;
- }
- if let Some(v) = self.retry_delay {
- os.write_int32(20, v)?;
- }
- if let Some(v) = self.expiry {
- os.write_int32(30, v)?;
- }
- if let Some(ref v) = self.error_description.as_ref() {
- os.write_string(40, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> APLoginFailed {
- APLoginFailed::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ErrorCode>>(
- "error_code",
- |m: &APLoginFailed| { &m.error_code },
- |m: &mut APLoginFailed| { &mut m.error_code },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "retry_delay",
- |m: &APLoginFailed| { &m.retry_delay },
- |m: &mut APLoginFailed| { &mut m.retry_delay },
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "expiry",
- |m: &APLoginFailed| { &m.expiry },
- |m: &mut APLoginFailed| { &mut m.expiry },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "error_description",
- |m: &APLoginFailed| { &m.error_description },
- |m: &mut APLoginFailed| { &mut m.error_description },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APLoginFailed>(
- "APLoginFailed",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static APLoginFailed {
- static mut instance: ::protobuf::lazy::Lazy<APLoginFailed> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APLoginFailed,
- };
- unsafe {
- instance.get(APLoginFailed::new)
- }
- }
- }
- impl ::protobuf::Clear for APLoginFailed {
- fn clear(&mut self) {
- self.clear_error_code();
- self.clear_retry_delay();
- self.clear_expiry();
- self.clear_error_description();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APLoginFailed {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APLoginFailed {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientResponsePlaintext {
- // message fields
- login_crypto_response: ::protobuf::SingularPtrField<LoginCryptoResponseUnion>,
- pow_response: ::protobuf::SingularPtrField<PoWResponseUnion>,
- crypto_response: ::protobuf::SingularPtrField<CryptoResponseUnion>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl ClientResponsePlaintext {
- pub fn new() -> ClientResponsePlaintext {
- ::std::default::Default::default()
- }
- // required .LoginCryptoResponseUnion login_crypto_response = 10;
- pub fn clear_login_crypto_response(&mut self) {
- self.login_crypto_response.clear();
- }
- pub fn has_login_crypto_response(&self) -> bool {
- self.login_crypto_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_response(&mut self, v: LoginCryptoResponseUnion) {
- self.login_crypto_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_response(&mut self) -> &mut LoginCryptoResponseUnion {
- if self.login_crypto_response.is_none() {
- self.login_crypto_response.set_default();
- }
- self.login_crypto_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_response(&mut self) -> LoginCryptoResponseUnion {
- self.login_crypto_response.take().unwrap_or_else(|| LoginCryptoResponseUnion::new())
- }
- pub fn get_login_crypto_response(&self) -> &LoginCryptoResponseUnion {
- self.login_crypto_response.as_ref().unwrap_or_else(|| LoginCryptoResponseUnion::default_instance())
- }
- // required .PoWResponseUnion pow_response = 20;
- pub fn clear_pow_response(&mut self) {
- self.pow_response.clear();
- }
- pub fn has_pow_response(&self) -> bool {
- self.pow_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pow_response(&mut self, v: PoWResponseUnion) {
- self.pow_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_pow_response(&mut self) -> &mut PoWResponseUnion {
- if self.pow_response.is_none() {
- self.pow_response.set_default();
- }
- self.pow_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_pow_response(&mut self) -> PoWResponseUnion {
- self.pow_response.take().unwrap_or_else(|| PoWResponseUnion::new())
- }
- pub fn get_pow_response(&self) -> &PoWResponseUnion {
- self.pow_response.as_ref().unwrap_or_else(|| PoWResponseUnion::default_instance())
- }
- // required .CryptoResponseUnion crypto_response = 30;
- pub fn clear_crypto_response(&mut self) {
- self.crypto_response.clear();
- }
- pub fn has_crypto_response(&self) -> bool {
- self.crypto_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_crypto_response(&mut self, v: CryptoResponseUnion) {
- self.crypto_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_crypto_response(&mut self) -> &mut CryptoResponseUnion {
- if self.crypto_response.is_none() {
- self.crypto_response.set_default();
- }
- self.crypto_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_crypto_response(&mut self) -> CryptoResponseUnion {
- self.crypto_response.take().unwrap_or_else(|| CryptoResponseUnion::new())
- }
- pub fn get_crypto_response(&self) -> &CryptoResponseUnion {
- self.crypto_response.as_ref().unwrap_or_else(|| CryptoResponseUnion::default_instance())
- }
- }
- impl ::protobuf::Message for ClientResponsePlaintext {
- fn is_initialized(&self) -> bool {
- if self.login_crypto_response.is_none() {
- return false;
- }
- if self.pow_response.is_none() {
- return false;
- }
- if self.crypto_response.is_none() {
- return false;
- }
- for v in &self.login_crypto_response {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.pow_response {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.crypto_response {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_response)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_response)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_response)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.login_crypto_response.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.pow_response.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.crypto_response.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.login_crypto_response.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.pow_response.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.crypto_response.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> ClientResponsePlaintext {
- ClientResponsePlaintext::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoResponseUnion>>(
- "login_crypto_response",
- |m: &ClientResponsePlaintext| { &m.login_crypto_response },
- |m: &mut ClientResponsePlaintext| { &mut m.login_crypto_response },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWResponseUnion>>(
- "pow_response",
- |m: &ClientResponsePlaintext| { &m.pow_response },
- |m: &mut ClientResponsePlaintext| { &mut m.pow_response },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoResponseUnion>>(
- "crypto_response",
- |m: &ClientResponsePlaintext| { &m.crypto_response },
- |m: &mut ClientResponsePlaintext| { &mut m.crypto_response },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientResponsePlaintext>(
- "ClientResponsePlaintext",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static ClientResponsePlaintext {
- static mut instance: ::protobuf::lazy::Lazy<ClientResponsePlaintext> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientResponsePlaintext,
- };
- unsafe {
- instance.get(ClientResponsePlaintext::new)
- }
- }
- }
- impl ::protobuf::Clear for ClientResponsePlaintext {
- fn clear(&mut self) {
- self.clear_login_crypto_response();
- self.clear_pow_response();
- self.clear_crypto_response();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientResponsePlaintext {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientResponsePlaintext {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoResponseUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoResponseUnion {
- pub fn new() -> LoginCryptoResponseUnion {
- ::std::default::Default::default()
- }
- // optional .LoginCryptoDiffieHellmanResponse diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanResponse) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanResponse {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanResponse {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanResponse {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::default_instance())
- }
- }
- impl ::protobuf::Message for LoginCryptoResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoResponseUnion {
- LoginCryptoResponseUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanResponse>>(
- "diffie_hellman",
- |m: &LoginCryptoResponseUnion| { &m.diffie_hellman },
- |m: &mut LoginCryptoResponseUnion| { &mut m.diffie_hellman },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoResponseUnion>(
- "LoginCryptoResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoResponseUnion,
- };
- unsafe {
- instance.get(LoginCryptoResponseUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoResponseUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanResponse {
- // message fields
- hmac: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl LoginCryptoDiffieHellmanResponse {
- pub fn new() -> LoginCryptoDiffieHellmanResponse {
- ::std::default::Default::default()
- }
- // required bytes hmac = 10;
- pub fn clear_hmac(&mut self) {
- self.hmac.clear();
- }
- pub fn has_hmac(&self) -> bool {
- self.hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hmac(&mut self, v: ::std::vec::Vec<u8>) {
- self.hmac = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hmac(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.hmac.is_none() {
- self.hmac.set_default();
- }
- self.hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_hmac(&mut self) -> ::std::vec::Vec<u8> {
- self.hmac.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_hmac(&self) -> &[u8] {
- match self.hmac.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanResponse {
- fn is_initialized(&self) -> bool {
- if self.hmac.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hmac.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hmac.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> LoginCryptoDiffieHellmanResponse {
- LoginCryptoDiffieHellmanResponse::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "hmac",
- |m: &LoginCryptoDiffieHellmanResponse| { &m.hmac },
- |m: &mut LoginCryptoDiffieHellmanResponse| { &mut m.hmac },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanResponse>(
- "LoginCryptoDiffieHellmanResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static LoginCryptoDiffieHellmanResponse {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanResponse,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanResponse::new)
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanResponse {
- fn clear(&mut self) {
- self.clear_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWResponseUnion {
- // message fields
- hash_cash: ::protobuf::SingularPtrField<PoWHashCashResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl PoWResponseUnion {
- pub fn new() -> PoWResponseUnion {
- ::std::default::Default::default()
- }
- // optional .PoWHashCashResponse hash_cash = 10;
- pub fn clear_hash_cash(&mut self) {
- self.hash_cash.clear();
- }
- pub fn has_hash_cash(&self) -> bool {
- self.hash_cash.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_cash(&mut self, v: PoWHashCashResponse) {
- self.hash_cash = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashResponse {
- if self.hash_cash.is_none() {
- self.hash_cash.set_default();
- }
- self.hash_cash.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_cash(&mut self) -> PoWHashCashResponse {
- self.hash_cash.take().unwrap_or_else(|| PoWHashCashResponse::new())
- }
- pub fn get_hash_cash(&self) -> &PoWHashCashResponse {
- self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashResponse::default_instance())
- }
- }
- impl ::protobuf::Message for PoWResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.hash_cash {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_cash.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_cash.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> PoWResponseUnion {
- PoWResponseUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashResponse>>(
- "hash_cash",
- |m: &PoWResponseUnion| { &m.hash_cash },
- |m: &mut PoWResponseUnion| { &mut m.hash_cash },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWResponseUnion>(
- "PoWResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static PoWResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<PoWResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWResponseUnion,
- };
- unsafe {
- instance.get(PoWResponseUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for PoWResponseUnion {
- fn clear(&mut self) {
- self.clear_hash_cash();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWHashCashResponse {
- // message fields
- hash_suffix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl PoWHashCashResponse {
- pub fn new() -> PoWHashCashResponse {
- ::std::default::Default::default()
- }
- // required bytes hash_suffix = 10;
- pub fn clear_hash_suffix(&mut self) {
- self.hash_suffix.clear();
- }
- pub fn has_hash_suffix(&self) -> bool {
- self.hash_suffix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_suffix(&mut self, v: ::std::vec::Vec<u8>) {
- self.hash_suffix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_suffix(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.hash_suffix.is_none() {
- self.hash_suffix.set_default();
- }
- self.hash_suffix.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_suffix(&mut self) -> ::std::vec::Vec<u8> {
- self.hash_suffix.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_hash_suffix(&self) -> &[u8] {
- match self.hash_suffix.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- }
- impl ::protobuf::Message for PoWHashCashResponse {
- fn is_initialized(&self) -> bool {
- if self.hash_suffix.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hash_suffix)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_suffix.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_suffix.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> PoWHashCashResponse {
- PoWHashCashResponse::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "hash_suffix",
- |m: &PoWHashCashResponse| { &m.hash_suffix },
- |m: &mut PoWHashCashResponse| { &mut m.hash_suffix },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashResponse>(
- "PoWHashCashResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static PoWHashCashResponse {
- static mut instance: ::protobuf::lazy::Lazy<PoWHashCashResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWHashCashResponse,
- };
- unsafe {
- instance.get(PoWHashCashResponse::new)
- }
- }
- }
- impl ::protobuf::Clear for PoWHashCashResponse {
- fn clear(&mut self) {
- self.clear_hash_suffix();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWHashCashResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWHashCashResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoResponseUnion {
- // message fields
- shannon: ::protobuf::SingularPtrField<CryptoShannonResponse>,
- rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoResponseUnion {
- pub fn new() -> CryptoResponseUnion {
- ::std::default::Default::default()
- }
- // optional .CryptoShannonResponse shannon = 10;
- pub fn clear_shannon(&mut self) {
- self.shannon.clear();
- }
- pub fn has_shannon(&self) -> bool {
- self.shannon.is_some()
- }
- // Param is passed by value, moved
- pub fn set_shannon(&mut self, v: CryptoShannonResponse) {
- self.shannon = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_shannon(&mut self) -> &mut CryptoShannonResponse {
- if self.shannon.is_none() {
- self.shannon.set_default();
- }
- self.shannon.as_mut().unwrap()
- }
- // Take field
- pub fn take_shannon(&mut self) -> CryptoShannonResponse {
- self.shannon.take().unwrap_or_else(|| CryptoShannonResponse::new())
- }
- pub fn get_shannon(&self) -> &CryptoShannonResponse {
- self.shannon.as_ref().unwrap_or_else(|| CryptoShannonResponse::default_instance())
- }
- // optional .CryptoRc4Sha1HmacResponse rc4_sha1_hmac = 20;
- pub fn clear_rc4_sha1_hmac(&mut self) {
- self.rc4_sha1_hmac.clear();
- }
- pub fn has_rc4_sha1_hmac(&self) -> bool {
- self.rc4_sha1_hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacResponse) {
- self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacResponse {
- if self.rc4_sha1_hmac.is_none() {
- self.rc4_sha1_hmac.set_default();
- }
- self.rc4_sha1_hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacResponse {
- self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::new())
- }
- pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacResponse {
- self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::default_instance())
- }
- }
- impl ::protobuf::Message for CryptoResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.shannon {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.rc4_sha1_hmac {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.shannon.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.shannon.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoResponseUnion {
- CryptoResponseUnion::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonResponse>>(
- "shannon",
- |m: &CryptoResponseUnion| { &m.shannon },
- |m: &mut CryptoResponseUnion| { &mut m.shannon },
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacResponse>>(
- "rc4_sha1_hmac",
- |m: &CryptoResponseUnion| { &m.rc4_sha1_hmac },
- |m: &mut CryptoResponseUnion| { &mut m.rc4_sha1_hmac },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoResponseUnion>(
- "CryptoResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<CryptoResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoResponseUnion,
- };
- unsafe {
- instance.get(CryptoResponseUnion::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoResponseUnion {
- fn clear(&mut self) {
- self.clear_shannon();
- self.clear_rc4_sha1_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoShannonResponse {
- // message fields
- dummy: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoShannonResponse {
- pub fn new() -> CryptoShannonResponse {
- ::std::default::Default::default()
- }
- // optional int32 dummy = 1;
- pub fn clear_dummy(&mut self) {
- self.dummy = ::std::option::Option::None;
- }
- pub fn has_dummy(&self) -> bool {
- self.dummy.is_some()
- }
- // Param is passed by value, moved
- pub fn set_dummy(&mut self, v: i32) {
- self.dummy = ::std::option::Option::Some(v);
- }
- pub fn get_dummy(&self) -> i32 {
- self.dummy.unwrap_or(0)
- }
- }
- impl ::protobuf::Message for CryptoShannonResponse {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.dummy = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.dummy {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.dummy {
- os.write_int32(1, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoShannonResponse {
- CryptoShannonResponse::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "dummy",
- |m: &CryptoShannonResponse| { &m.dummy },
- |m: &mut CryptoShannonResponse| { &mut m.dummy },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonResponse>(
- "CryptoShannonResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoShannonResponse {
- static mut instance: ::protobuf::lazy::Lazy<CryptoShannonResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoShannonResponse,
- };
- unsafe {
- instance.get(CryptoShannonResponse::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoShannonResponse {
- fn clear(&mut self) {
- self.clear_dummy();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoShannonResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoShannonResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoRc4Sha1HmacResponse {
- // message fields
- dummy: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- impl CryptoRc4Sha1HmacResponse {
- pub fn new() -> CryptoRc4Sha1HmacResponse {
- ::std::default::Default::default()
- }
- // optional int32 dummy = 1;
- pub fn clear_dummy(&mut self) {
- self.dummy = ::std::option::Option::None;
- }
- pub fn has_dummy(&self) -> bool {
- self.dummy.is_some()
- }
- // Param is passed by value, moved
- pub fn set_dummy(&mut self, v: i32) {
- self.dummy = ::std::option::Option::Some(v);
- }
- pub fn get_dummy(&self) -> i32 {
- self.dummy.unwrap_or(0)
- }
- }
- impl ::protobuf::Message for CryptoRc4Sha1HmacResponse {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.dummy = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.dummy {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.dummy {
- os.write_int32(1, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- Self::descriptor_static()
- }
- fn new() -> CryptoRc4Sha1HmacResponse {
- CryptoRc4Sha1HmacResponse::new()
- }
- fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "dummy",
- |m: &CryptoRc4Sha1HmacResponse| { &m.dummy },
- |m: &mut CryptoRc4Sha1HmacResponse| { &mut m.dummy },
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacResponse>(
- "CryptoRc4Sha1HmacResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- fn default_instance() -> &'static CryptoRc4Sha1HmacResponse {
- static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoRc4Sha1HmacResponse,
- };
- unsafe {
- instance.get(CryptoRc4Sha1HmacResponse::new)
- }
- }
- }
- impl ::protobuf::Clear for CryptoRc4Sha1HmacResponse {
- fn clear(&mut self) {
- self.clear_dummy();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoRc4Sha1HmacResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Product {
- PRODUCT_CLIENT = 0,
- PRODUCT_LIBSPOTIFY = 1,
- PRODUCT_MOBILE = 2,
- PRODUCT_PARTNER = 3,
- PRODUCT_LIBSPOTIFY_EMBEDDED = 5,
- }
- impl ::protobuf::ProtobufEnum for Product {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Product> {
- match value {
- 0 => ::std::option::Option::Some(Product::PRODUCT_CLIENT),
- 1 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY),
- 2 => ::std::option::Option::Some(Product::PRODUCT_MOBILE),
- 3 => ::std::option::Option::Some(Product::PRODUCT_PARTNER),
- 5 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY_EMBEDDED),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Product] = &[
- Product::PRODUCT_CLIENT,
- Product::PRODUCT_LIBSPOTIFY,
- Product::PRODUCT_MOBILE,
- Product::PRODUCT_PARTNER,
- Product::PRODUCT_LIBSPOTIFY_EMBEDDED,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Product", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Product {
- }
- impl ::protobuf::reflect::ProtobufValue for Product {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ProductFlags {
- PRODUCT_FLAG_NONE = 0,
- PRODUCT_FLAG_DEV_BUILD = 1,
- }
- impl ::protobuf::ProtobufEnum for ProductFlags {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ProductFlags> {
- match value {
- 0 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_NONE),
- 1 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_DEV_BUILD),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ProductFlags] = &[
- ProductFlags::PRODUCT_FLAG_NONE,
- ProductFlags::PRODUCT_FLAG_DEV_BUILD,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ProductFlags", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ProductFlags {
- }
- impl ::protobuf::reflect::ProtobufValue for ProductFlags {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Platform {
- PLATFORM_WIN32_X86 = 0,
- PLATFORM_OSX_X86 = 1,
- PLATFORM_LINUX_X86 = 2,
- PLATFORM_IPHONE_ARM = 3,
- PLATFORM_S60_ARM = 4,
- PLATFORM_OSX_PPC = 5,
- PLATFORM_ANDROID_ARM = 6,
- PLATFORM_WINDOWS_CE_ARM = 7,
- PLATFORM_LINUX_X86_64 = 8,
- PLATFORM_OSX_X86_64 = 9,
- PLATFORM_PALM_ARM = 10,
- PLATFORM_LINUX_SH = 11,
- PLATFORM_FREEBSD_X86 = 12,
- PLATFORM_FREEBSD_X86_64 = 13,
- PLATFORM_BLACKBERRY_ARM = 14,
- PLATFORM_SONOS = 15,
- PLATFORM_LINUX_MIPS = 16,
- PLATFORM_LINUX_ARM = 17,
- PLATFORM_LOGITECH_ARM = 18,
- PLATFORM_LINUX_BLACKFIN = 19,
- PLATFORM_WP7_ARM = 20,
- PLATFORM_ONKYO_ARM = 21,
- PLATFORM_QNXNTO_ARM = 22,
- PLATFORM_BCO_ARM = 23,
- }
- impl ::protobuf::ProtobufEnum for Platform {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Platform> {
- match value {
- 0 => ::std::option::Option::Some(Platform::PLATFORM_WIN32_X86),
- 1 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86),
- 2 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86),
- 3 => ::std::option::Option::Some(Platform::PLATFORM_IPHONE_ARM),
- 4 => ::std::option::Option::Some(Platform::PLATFORM_S60_ARM),
- 5 => ::std::option::Option::Some(Platform::PLATFORM_OSX_PPC),
- 6 => ::std::option::Option::Some(Platform::PLATFORM_ANDROID_ARM),
- 7 => ::std::option::Option::Some(Platform::PLATFORM_WINDOWS_CE_ARM),
- 8 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86_64),
- 9 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86_64),
- 10 => ::std::option::Option::Some(Platform::PLATFORM_PALM_ARM),
- 11 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_SH),
- 12 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86),
- 13 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86_64),
- 14 => ::std::option::Option::Some(Platform::PLATFORM_BLACKBERRY_ARM),
- 15 => ::std::option::Option::Some(Platform::PLATFORM_SONOS),
- 16 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_MIPS),
- 17 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_ARM),
- 18 => ::std::option::Option::Some(Platform::PLATFORM_LOGITECH_ARM),
- 19 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_BLACKFIN),
- 20 => ::std::option::Option::Some(Platform::PLATFORM_WP7_ARM),
- 21 => ::std::option::Option::Some(Platform::PLATFORM_ONKYO_ARM),
- 22 => ::std::option::Option::Some(Platform::PLATFORM_QNXNTO_ARM),
- 23 => ::std::option::Option::Some(Platform::PLATFORM_BCO_ARM),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Platform] = &[
- Platform::PLATFORM_WIN32_X86,
- Platform::PLATFORM_OSX_X86,
- Platform::PLATFORM_LINUX_X86,
- Platform::PLATFORM_IPHONE_ARM,
- Platform::PLATFORM_S60_ARM,
- Platform::PLATFORM_OSX_PPC,
- Platform::PLATFORM_ANDROID_ARM,
- Platform::PLATFORM_WINDOWS_CE_ARM,
- Platform::PLATFORM_LINUX_X86_64,
- Platform::PLATFORM_OSX_X86_64,
- Platform::PLATFORM_PALM_ARM,
- Platform::PLATFORM_LINUX_SH,
- Platform::PLATFORM_FREEBSD_X86,
- Platform::PLATFORM_FREEBSD_X86_64,
- Platform::PLATFORM_BLACKBERRY_ARM,
- Platform::PLATFORM_SONOS,
- Platform::PLATFORM_LINUX_MIPS,
- Platform::PLATFORM_LINUX_ARM,
- Platform::PLATFORM_LOGITECH_ARM,
- Platform::PLATFORM_LINUX_BLACKFIN,
- Platform::PLATFORM_WP7_ARM,
- Platform::PLATFORM_ONKYO_ARM,
- Platform::PLATFORM_QNXNTO_ARM,
- Platform::PLATFORM_BCO_ARM,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Platform", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Platform {
- }
- impl ::protobuf::reflect::ProtobufValue for Platform {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Fingerprint {
- FINGERPRINT_GRAIN = 0,
- FINGERPRINT_HMAC_RIPEMD = 1,
- }
- impl ::protobuf::ProtobufEnum for Fingerprint {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Fingerprint> {
- match value {
- 0 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_GRAIN),
- 1 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_HMAC_RIPEMD),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Fingerprint] = &[
- Fingerprint::FINGERPRINT_GRAIN,
- Fingerprint::FINGERPRINT_HMAC_RIPEMD,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Fingerprint", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Fingerprint {
- }
- impl ::protobuf::reflect::ProtobufValue for Fingerprint {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Cryptosuite {
- CRYPTO_SUITE_SHANNON = 0,
- CRYPTO_SUITE_RC4_SHA1_HMAC = 1,
- }
- impl ::protobuf::ProtobufEnum for Cryptosuite {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Cryptosuite> {
- match value {
- 0 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_SHANNON),
- 1 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Cryptosuite] = &[
- Cryptosuite::CRYPTO_SUITE_SHANNON,
- Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Cryptosuite", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Cryptosuite {
- }
- impl ::protobuf::reflect::ProtobufValue for Cryptosuite {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Powscheme {
- POW_HASH_CASH = 0,
- }
- impl ::protobuf::ProtobufEnum for Powscheme {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Powscheme> {
- match value {
- 0 => ::std::option::Option::Some(Powscheme::POW_HASH_CASH),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Powscheme] = &[
- Powscheme::POW_HASH_CASH,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Powscheme", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Powscheme {
- }
- impl ::protobuf::reflect::ProtobufValue for Powscheme {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ErrorCode {
- ProtocolError = 0,
- TryAnotherAP = 2,
- BadConnectionId = 5,
- TravelRestriction = 9,
- PremiumAccountRequired = 11,
- BadCredentials = 12,
- CouldNotValidateCredentials = 13,
- AccountExists = 14,
- ExtraVerificationRequired = 15,
- InvalidAppKey = 16,
- ApplicationBanned = 17,
- }
- impl ::protobuf::ProtobufEnum for ErrorCode {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ErrorCode> {
- match value {
- 0 => ::std::option::Option::Some(ErrorCode::ProtocolError),
- 2 => ::std::option::Option::Some(ErrorCode::TryAnotherAP),
- 5 => ::std::option::Option::Some(ErrorCode::BadConnectionId),
- 9 => ::std::option::Option::Some(ErrorCode::TravelRestriction),
- 11 => ::std::option::Option::Some(ErrorCode::PremiumAccountRequired),
- 12 => ::std::option::Option::Some(ErrorCode::BadCredentials),
- 13 => ::std::option::Option::Some(ErrorCode::CouldNotValidateCredentials),
- 14 => ::std::option::Option::Some(ErrorCode::AccountExists),
- 15 => ::std::option::Option::Some(ErrorCode::ExtraVerificationRequired),
- 16 => ::std::option::Option::Some(ErrorCode::InvalidAppKey),
- 17 => ::std::option::Option::Some(ErrorCode::ApplicationBanned),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ErrorCode] = &[
- ErrorCode::ProtocolError,
- ErrorCode::TryAnotherAP,
- ErrorCode::BadConnectionId,
- ErrorCode::TravelRestriction,
- ErrorCode::PremiumAccountRequired,
- ErrorCode::BadCredentials,
- ErrorCode::CouldNotValidateCredentials,
- ErrorCode::AccountExists,
- ErrorCode::ExtraVerificationRequired,
- ErrorCode::InvalidAppKey,
- ErrorCode::ApplicationBanned,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ErrorCode", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ErrorCode {
- }
- impl ::protobuf::reflect::ProtobufValue for ErrorCode {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x11keyexchange.proto\x12\0\"\xd0\x02\n\x0bClientHello\x12\"\n\nbuild_\
- info\x18\n\x20\x02(\x0b2\n.BuildInfoB\x02\x18\0\x120\n\x16fingerprints_s\
- upported\x18\x14\x20\x03(\x0e2\x0c.FingerprintB\x02\x18\0\x120\n\x16cryp\
- tosuites_supported\x18\x1e\x20\x03(\x0e2\x0c.CryptosuiteB\x02\x18\0\x12,\
- \n\x14powschemes_supported\x18(\x20\x03(\x0e2\n.PowschemeB\x02\x18\0\x12\
- 6\n\x12login_crypto_hello\x182\x20\x02(\x0b2\x16.LoginCryptoHelloUnionB\
- \x02\x18\0\x12\x18\n\x0cclient_nonce\x18<\x20\x02(\x0cB\x02\x18\0\x12\
- \x13\n\x07padding\x18F\x20\x01(\x0cB\x02\x18\0\x12$\n\x0bfeature_set\x18\
- P\x20\x01(\x0b2\x0b.FeatureSetB\x02\x18\0\"\x8a\x01\n\tBuildInfo\x12\x1d\
- \n\x07product\x18\n\x20\x02(\x0e2\x08.ProductB\x02\x18\0\x12(\n\rproduct\
- _flags\x18\x14\x20\x03(\x0e2\r.ProductFlagsB\x02\x18\0\x12\x1f\n\x08plat\
- form\x18\x1e\x20\x02(\x0e2\t.PlatformB\x02\x18\0\x12\x13\n\x07version\
- \x18(\x20\x02(\x04B\x02\x18\0\"S\n\x15LoginCryptoHelloUnion\x12:\n\x0edi\
- ffie_hellman\x18\n\x20\x01(\x0b2\x1e.LoginCryptoDiffieHellmanHelloB\x02\
- \x18\0\"N\n\x1dLoginCryptoDiffieHellmanHello\x12\x0e\n\x02gc\x18\n\x20\
- \x02(\x0cB\x02\x18\0\x12\x1d\n\x11server_keys_known\x18\x14\x20\x02(\rB\
- \x02\x18\0\"C\n\nFeatureSet\x12\x17\n\x0bautoupdate2\x18\x01\x20\x01(\
- \x08B\x02\x18\0\x12\x1c\n\x10current_location\x18\x02\x20\x01(\x08B\x02\
- \x18\0\"\x90\x01\n\x11APResponseMessage\x12#\n\tchallenge\x18\n\x20\x01(\
- \x0b2\x0c.APChallengeB\x02\x18\0\x12,\n\x07upgrade\x18\x14\x20\x01(\x0b2\
- \x17.UpgradeRequiredMessageB\x02\x18\0\x12(\n\x0clogin_failed\x18\x1e\
- \x20\x01(\x0b2\x0e.APLoginFailedB\x02\x18\0\"\x9f\x02\n\x0bAPChallenge\
- \x12>\n\x16login_crypto_challenge\x18\n\x20\x02(\x0b2\x1a.LoginCryptoCha\
- llengeUnionB\x02\x18\0\x12=\n\x15fingerprint_challenge\x18\x14\x20\x02(\
- \x0b2\x1a.FingerprintChallengeUnionB\x02\x18\0\x12-\n\rpow_challenge\x18\
- \x1e\x20\x02(\x0b2\x12.PoWChallengeUnionB\x02\x18\0\x123\n\x10crypto_cha\
- llenge\x18(\x20\x02(\x0b2\x15.CryptoChallengeUnionB\x02\x18\0\x12\x18\n\
- \x0cserver_nonce\x182\x20\x02(\x0cB\x02\x18\0\x12\x13\n\x07padding\x18<\
- \x20\x01(\x0cB\x02\x18\0\"[\n\x19LoginCryptoChallengeUnion\x12>\n\x0edif\
- fie_hellman\x18\n\x20\x01(\x0b2\".LoginCryptoDiffieHellmanChallengeB\x02\
- \x18\0\"o\n!LoginCryptoDiffieHellmanChallenge\x12\x0e\n\x02gs\x18\n\x20\
- \x02(\x0cB\x02\x18\0\x12\x20\n\x14server_signature_key\x18\x14\x20\x02(\
- \x05B\x02\x18\0\x12\x18\n\x0cgs_signature\x18\x1e\x20\x02(\x0cB\x02\x18\
- \0\"\x84\x01\n\x19FingerprintChallengeUnion\x12-\n\x05grain\x18\n\x20\
- \x01(\x0b2\x1a.FingerprintGrainChallengeB\x02\x18\0\x128\n\x0bhmac_ripem\
- d\x18\x14\x20\x01(\x0b2\x1f.FingerprintHmacRipemdChallengeB\x02\x18\0\",\
- \n\x19FingerprintGrainChallenge\x12\x0f\n\x03kek\x18\n\x20\x02(\x0cB\x02\
- \x18\0\"7\n\x1eFingerprintHmacRipemdChallenge\x12\x15\n\tchallenge\x18\n\
- \x20\x02(\x0cB\x02\x18\0\"A\n\x11PoWChallengeUnion\x12,\n\thash_cash\x18\
- \n\x20\x01(\x0b2\x15.PoWHashCashChallengeB\x02\x18\0\"R\n\x14PoWHashCash\
- Challenge\x12\x12\n\x06prefix\x18\n\x20\x01(\x0cB\x02\x18\0\x12\x12\n\
- \x06length\x18\x14\x20\x01(\x05B\x02\x18\0\x12\x12\n\x06target\x18\x1e\
- \x20\x01(\x05B\x02\x18\0\"|\n\x14CryptoChallengeUnion\x12,\n\x07shannon\
- \x18\n\x20\x01(\x0b2\x17.CryptoShannonChallengeB\x02\x18\0\x126\n\rrc4_s\
- ha1_hmac\x18\x14\x20\x01(\x0b2\x1b.CryptoRc4Sha1HmacChallengeB\x02\x18\0\
- \"\x18\n\x16CryptoShannonChallenge\"\x1c\n\x1aCryptoRc4Sha1HmacChallenge\
- \"i\n\x16UpgradeRequiredMessage\x12\x1f\n\x13upgrade_signed_part\x18\n\
- \x20\x02(\x0cB\x02\x18\0\x12\x15\n\tsignature\x18\x14\x20\x02(\x0cB\x02\
- \x18\0\x12\x17\n\x0bhttp_suffix\x18\x1e\x20\x01(\tB\x02\x18\0\"\x7f\n\rA\
- PLoginFailed\x12\"\n\nerror_code\x18\n\x20\x02(\x0e2\n.ErrorCodeB\x02\
- \x18\0\x12\x17\n\x0bretry_delay\x18\x14\x20\x01(\x05B\x02\x18\0\x12\x12\
- \n\x06expiry\x18\x1e\x20\x01(\x05B\x02\x18\0\x12\x1d\n\x11error_descript\
- ion\x18(\x20\x01(\tB\x02\x18\0\"\xb7\x01\n\x17ClientResponsePlaintext\
- \x12<\n\x15login_crypto_response\x18\n\x20\x02(\x0b2\x19.LoginCryptoResp\
- onseUnionB\x02\x18\0\x12+\n\x0cpow_response\x18\x14\x20\x02(\x0b2\x11.Po\
- WResponseUnionB\x02\x18\0\x121\n\x0fcrypto_response\x18\x1e\x20\x02(\x0b\
- 2\x14.CryptoResponseUnionB\x02\x18\0\"Y\n\x18LoginCryptoResponseUnion\
- \x12=\n\x0ediffie_hellman\x18\n\x20\x01(\x0b2!.LoginCryptoDiffieHellmanR\
- esponseB\x02\x18\0\"4\n\x20LoginCryptoDiffieHellmanResponse\x12\x10\n\
- \x04hmac\x18\n\x20\x02(\x0cB\x02\x18\0\"?\n\x10PoWResponseUnion\x12+\n\t\
- hash_cash\x18\n\x20\x01(\x0b2\x14.PoWHashCashResponseB\x02\x18\0\".\n\
- \x13PoWHashCashResponse\x12\x17\n\x0bhash_suffix\x18\n\x20\x02(\x0cB\x02\
- \x18\0\"y\n\x13CryptoResponseUnion\x12+\n\x07shannon\x18\n\x20\x01(\x0b2\
- \x16.CryptoShannonResponseB\x02\x18\0\x125\n\rrc4_sha1_hmac\x18\x14\x20\
- \x01(\x0b2\x1a.CryptoRc4Sha1HmacResponseB\x02\x18\0\"*\n\x15CryptoShanno\
- nResponse\x12\x11\n\x05dummy\x18\x01\x20\x01(\x05B\x02\x18\0\".\n\x19Cry\
- ptoRc4Sha1HmacResponse\x12\x11\n\x05dummy\x18\x01\x20\x01(\x05B\x02\x18\
- \0*\x83\x01\n\x07Product\x12\x12\n\x0ePRODUCT_CLIENT\x10\0\x12\x16\n\x12\
- PRODUCT_LIBSPOTIFY\x10\x01\x12\x12\n\x0ePRODUCT_MOBILE\x10\x02\x12\x13\n\
- \x0fPRODUCT_PARTNER\x10\x03\x12\x1f\n\x1bPRODUCT_LIBSPOTIFY_EMBEDDED\x10\
- \x05\x1a\x02\x10\0*E\n\x0cProductFlags\x12\x15\n\x11PRODUCT_FLAG_NONE\
- \x10\0\x12\x1a\n\x16PRODUCT_FLAG_DEV_BUILD\x10\x01\x1a\x02\x10\0*\xe0\
- \x04\n\x08Platform\x12\x16\n\x12PLATFORM_WIN32_X86\x10\0\x12\x14\n\x10PL\
- ATFORM_OSX_X86\x10\x01\x12\x16\n\x12PLATFORM_LINUX_X86\x10\x02\x12\x17\n\
- \x13PLATFORM_IPHONE_ARM\x10\x03\x12\x14\n\x10PLATFORM_S60_ARM\x10\x04\
- \x12\x14\n\x10PLATFORM_OSX_PPC\x10\x05\x12\x18\n\x14PLATFORM_ANDROID_ARM\
- \x10\x06\x12\x1b\n\x17PLATFORM_WINDOWS_CE_ARM\x10\x07\x12\x19\n\x15PLATF\
- ORM_LINUX_X86_64\x10\x08\x12\x17\n\x13PLATFORM_OSX_X86_64\x10\t\x12\x15\
- \n\x11PLATFORM_PALM_ARM\x10\n\x12\x15\n\x11PLATFORM_LINUX_SH\x10\x0b\x12\
- \x18\n\x14PLATFORM_FREEBSD_X86\x10\x0c\x12\x1b\n\x17PLATFORM_FREEBSD_X86\
- _64\x10\r\x12\x1b\n\x17PLATFORM_BLACKBERRY_ARM\x10\x0e\x12\x12\n\x0ePLAT\
- FORM_SONOS\x10\x0f\x12\x17\n\x13PLATFORM_LINUX_MIPS\x10\x10\x12\x16\n\
- \x12PLATFORM_LINUX_ARM\x10\x11\x12\x19\n\x15PLATFORM_LOGITECH_ARM\x10\
- \x12\x12\x1b\n\x17PLATFORM_LINUX_BLACKFIN\x10\x13\x12\x14\n\x10PLATFORM_\
- WP7_ARM\x10\x14\x12\x16\n\x12PLATFORM_ONKYO_ARM\x10\x15\x12\x17\n\x13PLA\
- TFORM_QNXNTO_ARM\x10\x16\x12\x14\n\x10PLATFORM_BCO_ARM\x10\x17\x1a\x02\
- \x10\0*E\n\x0bFingerprint\x12\x15\n\x11FINGERPRINT_GRAIN\x10\0\x12\x1b\n\
- \x17FINGERPRINT_HMAC_RIPEMD\x10\x01\x1a\x02\x10\0*K\n\x0bCryptosuite\x12\
- \x18\n\x14CRYPTO_SUITE_SHANNON\x10\0\x12\x1e\n\x1aCRYPTO_SUITE_RC4_SHA1_\
- HMAC\x10\x01\x1a\x02\x10\0*\"\n\tPowscheme\x12\x11\n\rPOW_HASH_CASH\x10\
- \0\x1a\x02\x10\0*\x8d\x02\n\tErrorCode\x12\x11\n\rProtocolError\x10\0\
- \x12\x10\n\x0cTryAnotherAP\x10\x02\x12\x13\n\x0fBadConnectionId\x10\x05\
- \x12\x15\n\x11TravelRestriction\x10\t\x12\x1a\n\x16PremiumAccountRequire\
- d\x10\x0b\x12\x12\n\x0eBadCredentials\x10\x0c\x12\x1f\n\x1bCouldNotValid\
- ateCredentials\x10\r\x12\x11\n\rAccountExists\x10\x0e\x12\x1d\n\x19Extra\
- VerificationRequired\x10\x0f\x12\x11\n\rInvalidAppKey\x10\x10\x12\x15\n\
- \x11ApplicationBanned\x10\x11\x1a\x02\x10\0B\0b\x06proto2\
- ";
- static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
- };
- fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
- ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
- }
- pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
- unsafe {
- file_descriptor_proto_lazy.get(|| {
- parse_descriptor_proto()
- })
- }
- }
|