keyexchange.rs 279 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766
  1. // This file is generated. Do not edit
  2. // @generated
  3. // https://github.com/Manishearth/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy)]
  6. #![cfg_attr(rustfmt, rustfmt_skip)]
  7. #![allow(box_pointers)]
  8. #![allow(dead_code)]
  9. #![allow(missing_docs)]
  10. #![allow(non_camel_case_types)]
  11. #![allow(non_snake_case)]
  12. #![allow(non_upper_case_globals)]
  13. #![allow(trivial_casts)]
  14. #![allow(unsafe_code)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. use protobuf::Message as Message_imported_for_functions;
  18. use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
  19. #[derive(PartialEq,Clone,Default)]
  20. pub struct ClientHello {
  21. // message fields
  22. build_info: ::protobuf::SingularPtrField<BuildInfo>,
  23. fingerprints_supported: ::std::vec::Vec<Fingerprint>,
  24. cryptosuites_supported: ::std::vec::Vec<Cryptosuite>,
  25. powschemes_supported: ::std::vec::Vec<Powscheme>,
  26. login_crypto_hello: ::protobuf::SingularPtrField<LoginCryptoHelloUnion>,
  27. client_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  28. padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  29. feature_set: ::protobuf::SingularPtrField<FeatureSet>,
  30. // special fields
  31. unknown_fields: ::protobuf::UnknownFields,
  32. cached_size: ::protobuf::CachedSize,
  33. }
  34. // see codegen.rs for the explanation why impl Sync explicitly
  35. unsafe impl ::std::marker::Sync for ClientHello {}
  36. impl ClientHello {
  37. pub fn new() -> ClientHello {
  38. ::std::default::Default::default()
  39. }
  40. pub fn default_instance() -> &'static ClientHello {
  41. static mut instance: ::protobuf::lazy::Lazy<ClientHello> = ::protobuf::lazy::Lazy {
  42. lock: ::protobuf::lazy::ONCE_INIT,
  43. ptr: 0 as *const ClientHello,
  44. };
  45. unsafe {
  46. instance.get(ClientHello::new)
  47. }
  48. }
  49. // required .BuildInfo build_info = 10;
  50. pub fn clear_build_info(&mut self) {
  51. self.build_info.clear();
  52. }
  53. pub fn has_build_info(&self) -> bool {
  54. self.build_info.is_some()
  55. }
  56. // Param is passed by value, moved
  57. pub fn set_build_info(&mut self, v: BuildInfo) {
  58. self.build_info = ::protobuf::SingularPtrField::some(v);
  59. }
  60. // Mutable pointer to the field.
  61. // If field is not initialized, it is initialized with default value first.
  62. pub fn mut_build_info(&mut self) -> &mut BuildInfo {
  63. if self.build_info.is_none() {
  64. self.build_info.set_default();
  65. }
  66. self.build_info.as_mut().unwrap()
  67. }
  68. // Take field
  69. pub fn take_build_info(&mut self) -> BuildInfo {
  70. self.build_info.take().unwrap_or_else(|| BuildInfo::new())
  71. }
  72. pub fn get_build_info(&self) -> &BuildInfo {
  73. self.build_info.as_ref().unwrap_or_else(|| BuildInfo::default_instance())
  74. }
  75. fn get_build_info_for_reflect(&self) -> &::protobuf::SingularPtrField<BuildInfo> {
  76. &self.build_info
  77. }
  78. fn mut_build_info_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<BuildInfo> {
  79. &mut self.build_info
  80. }
  81. // repeated .Fingerprint fingerprints_supported = 20;
  82. pub fn clear_fingerprints_supported(&mut self) {
  83. self.fingerprints_supported.clear();
  84. }
  85. // Param is passed by value, moved
  86. pub fn set_fingerprints_supported(&mut self, v: ::std::vec::Vec<Fingerprint>) {
  87. self.fingerprints_supported = v;
  88. }
  89. // Mutable pointer to the field.
  90. pub fn mut_fingerprints_supported(&mut self) -> &mut ::std::vec::Vec<Fingerprint> {
  91. &mut self.fingerprints_supported
  92. }
  93. // Take field
  94. pub fn take_fingerprints_supported(&mut self) -> ::std::vec::Vec<Fingerprint> {
  95. ::std::mem::replace(&mut self.fingerprints_supported, ::std::vec::Vec::new())
  96. }
  97. pub fn get_fingerprints_supported(&self) -> &[Fingerprint] {
  98. &self.fingerprints_supported
  99. }
  100. fn get_fingerprints_supported_for_reflect(&self) -> &::std::vec::Vec<Fingerprint> {
  101. &self.fingerprints_supported
  102. }
  103. fn mut_fingerprints_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Fingerprint> {
  104. &mut self.fingerprints_supported
  105. }
  106. // repeated .Cryptosuite cryptosuites_supported = 30;
  107. pub fn clear_cryptosuites_supported(&mut self) {
  108. self.cryptosuites_supported.clear();
  109. }
  110. // Param is passed by value, moved
  111. pub fn set_cryptosuites_supported(&mut self, v: ::std::vec::Vec<Cryptosuite>) {
  112. self.cryptosuites_supported = v;
  113. }
  114. // Mutable pointer to the field.
  115. pub fn mut_cryptosuites_supported(&mut self) -> &mut ::std::vec::Vec<Cryptosuite> {
  116. &mut self.cryptosuites_supported
  117. }
  118. // Take field
  119. pub fn take_cryptosuites_supported(&mut self) -> ::std::vec::Vec<Cryptosuite> {
  120. ::std::mem::replace(&mut self.cryptosuites_supported, ::std::vec::Vec::new())
  121. }
  122. pub fn get_cryptosuites_supported(&self) -> &[Cryptosuite] {
  123. &self.cryptosuites_supported
  124. }
  125. fn get_cryptosuites_supported_for_reflect(&self) -> &::std::vec::Vec<Cryptosuite> {
  126. &self.cryptosuites_supported
  127. }
  128. fn mut_cryptosuites_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Cryptosuite> {
  129. &mut self.cryptosuites_supported
  130. }
  131. // repeated .Powscheme powschemes_supported = 40;
  132. pub fn clear_powschemes_supported(&mut self) {
  133. self.powschemes_supported.clear();
  134. }
  135. // Param is passed by value, moved
  136. pub fn set_powschemes_supported(&mut self, v: ::std::vec::Vec<Powscheme>) {
  137. self.powschemes_supported = v;
  138. }
  139. // Mutable pointer to the field.
  140. pub fn mut_powschemes_supported(&mut self) -> &mut ::std::vec::Vec<Powscheme> {
  141. &mut self.powschemes_supported
  142. }
  143. // Take field
  144. pub fn take_powschemes_supported(&mut self) -> ::std::vec::Vec<Powscheme> {
  145. ::std::mem::replace(&mut self.powschemes_supported, ::std::vec::Vec::new())
  146. }
  147. pub fn get_powschemes_supported(&self) -> &[Powscheme] {
  148. &self.powschemes_supported
  149. }
  150. fn get_powschemes_supported_for_reflect(&self) -> &::std::vec::Vec<Powscheme> {
  151. &self.powschemes_supported
  152. }
  153. fn mut_powschemes_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Powscheme> {
  154. &mut self.powschemes_supported
  155. }
  156. // required .LoginCryptoHelloUnion login_crypto_hello = 50;
  157. pub fn clear_login_crypto_hello(&mut self) {
  158. self.login_crypto_hello.clear();
  159. }
  160. pub fn has_login_crypto_hello(&self) -> bool {
  161. self.login_crypto_hello.is_some()
  162. }
  163. // Param is passed by value, moved
  164. pub fn set_login_crypto_hello(&mut self, v: LoginCryptoHelloUnion) {
  165. self.login_crypto_hello = ::protobuf::SingularPtrField::some(v);
  166. }
  167. // Mutable pointer to the field.
  168. // If field is not initialized, it is initialized with default value first.
  169. pub fn mut_login_crypto_hello(&mut self) -> &mut LoginCryptoHelloUnion {
  170. if self.login_crypto_hello.is_none() {
  171. self.login_crypto_hello.set_default();
  172. }
  173. self.login_crypto_hello.as_mut().unwrap()
  174. }
  175. // Take field
  176. pub fn take_login_crypto_hello(&mut self) -> LoginCryptoHelloUnion {
  177. self.login_crypto_hello.take().unwrap_or_else(|| LoginCryptoHelloUnion::new())
  178. }
  179. pub fn get_login_crypto_hello(&self) -> &LoginCryptoHelloUnion {
  180. self.login_crypto_hello.as_ref().unwrap_or_else(|| LoginCryptoHelloUnion::default_instance())
  181. }
  182. fn get_login_crypto_hello_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoHelloUnion> {
  183. &self.login_crypto_hello
  184. }
  185. fn mut_login_crypto_hello_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoHelloUnion> {
  186. &mut self.login_crypto_hello
  187. }
  188. // required bytes client_nonce = 60;
  189. pub fn clear_client_nonce(&mut self) {
  190. self.client_nonce.clear();
  191. }
  192. pub fn has_client_nonce(&self) -> bool {
  193. self.client_nonce.is_some()
  194. }
  195. // Param is passed by value, moved
  196. pub fn set_client_nonce(&mut self, v: ::std::vec::Vec<u8>) {
  197. self.client_nonce = ::protobuf::SingularField::some(v);
  198. }
  199. // Mutable pointer to the field.
  200. // If field is not initialized, it is initialized with default value first.
  201. pub fn mut_client_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
  202. if self.client_nonce.is_none() {
  203. self.client_nonce.set_default();
  204. }
  205. self.client_nonce.as_mut().unwrap()
  206. }
  207. // Take field
  208. pub fn take_client_nonce(&mut self) -> ::std::vec::Vec<u8> {
  209. self.client_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
  210. }
  211. pub fn get_client_nonce(&self) -> &[u8] {
  212. match self.client_nonce.as_ref() {
  213. Some(v) => &v,
  214. None => &[],
  215. }
  216. }
  217. fn get_client_nonce_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  218. &self.client_nonce
  219. }
  220. fn mut_client_nonce_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  221. &mut self.client_nonce
  222. }
  223. // optional bytes padding = 70;
  224. pub fn clear_padding(&mut self) {
  225. self.padding.clear();
  226. }
  227. pub fn has_padding(&self) -> bool {
  228. self.padding.is_some()
  229. }
  230. // Param is passed by value, moved
  231. pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
  232. self.padding = ::protobuf::SingularField::some(v);
  233. }
  234. // Mutable pointer to the field.
  235. // If field is not initialized, it is initialized with default value first.
  236. pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
  237. if self.padding.is_none() {
  238. self.padding.set_default();
  239. }
  240. self.padding.as_mut().unwrap()
  241. }
  242. // Take field
  243. pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
  244. self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
  245. }
  246. pub fn get_padding(&self) -> &[u8] {
  247. match self.padding.as_ref() {
  248. Some(v) => &v,
  249. None => &[],
  250. }
  251. }
  252. fn get_padding_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  253. &self.padding
  254. }
  255. fn mut_padding_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  256. &mut self.padding
  257. }
  258. // optional .FeatureSet feature_set = 80;
  259. pub fn clear_feature_set(&mut self) {
  260. self.feature_set.clear();
  261. }
  262. pub fn has_feature_set(&self) -> bool {
  263. self.feature_set.is_some()
  264. }
  265. // Param is passed by value, moved
  266. pub fn set_feature_set(&mut self, v: FeatureSet) {
  267. self.feature_set = ::protobuf::SingularPtrField::some(v);
  268. }
  269. // Mutable pointer to the field.
  270. // If field is not initialized, it is initialized with default value first.
  271. pub fn mut_feature_set(&mut self) -> &mut FeatureSet {
  272. if self.feature_set.is_none() {
  273. self.feature_set.set_default();
  274. }
  275. self.feature_set.as_mut().unwrap()
  276. }
  277. // Take field
  278. pub fn take_feature_set(&mut self) -> FeatureSet {
  279. self.feature_set.take().unwrap_or_else(|| FeatureSet::new())
  280. }
  281. pub fn get_feature_set(&self) -> &FeatureSet {
  282. self.feature_set.as_ref().unwrap_or_else(|| FeatureSet::default_instance())
  283. }
  284. fn get_feature_set_for_reflect(&self) -> &::protobuf::SingularPtrField<FeatureSet> {
  285. &self.feature_set
  286. }
  287. fn mut_feature_set_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FeatureSet> {
  288. &mut self.feature_set
  289. }
  290. }
  291. impl ::protobuf::Message for ClientHello {
  292. fn is_initialized(&self) -> bool {
  293. if self.build_info.is_none() {
  294. return false;
  295. }
  296. if self.login_crypto_hello.is_none() {
  297. return false;
  298. }
  299. if self.client_nonce.is_none() {
  300. return false;
  301. }
  302. for v in &self.build_info {
  303. if !v.is_initialized() {
  304. return false;
  305. }
  306. };
  307. for v in &self.login_crypto_hello {
  308. if !v.is_initialized() {
  309. return false;
  310. }
  311. };
  312. for v in &self.feature_set {
  313. if !v.is_initialized() {
  314. return false;
  315. }
  316. };
  317. true
  318. }
  319. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  320. while !is.eof()? {
  321. let (field_number, wire_type) = is.read_tag_unpack()?;
  322. match field_number {
  323. 10 => {
  324. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.build_info)?;
  325. },
  326. 20 => {
  327. ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.fingerprints_supported)?;
  328. },
  329. 30 => {
  330. ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.cryptosuites_supported)?;
  331. },
  332. 40 => {
  333. ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.powschemes_supported)?;
  334. },
  335. 50 => {
  336. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_hello)?;
  337. },
  338. 60 => {
  339. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.client_nonce)?;
  340. },
  341. 70 => {
  342. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
  343. },
  344. 80 => {
  345. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feature_set)?;
  346. },
  347. _ => {
  348. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  349. },
  350. };
  351. }
  352. ::std::result::Result::Ok(())
  353. }
  354. // Compute sizes of nested messages
  355. #[allow(unused_variables)]
  356. fn compute_size(&self) -> u32 {
  357. let mut my_size = 0;
  358. if let Some(ref v) = self.build_info.as_ref() {
  359. let len = v.compute_size();
  360. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  361. }
  362. for value in &self.fingerprints_supported {
  363. my_size += ::protobuf::rt::enum_size(20, *value);
  364. };
  365. for value in &self.cryptosuites_supported {
  366. my_size += ::protobuf::rt::enum_size(30, *value);
  367. };
  368. for value in &self.powschemes_supported {
  369. my_size += ::protobuf::rt::enum_size(40, *value);
  370. };
  371. if let Some(ref v) = self.login_crypto_hello.as_ref() {
  372. let len = v.compute_size();
  373. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  374. }
  375. if let Some(ref v) = self.client_nonce.as_ref() {
  376. my_size += ::protobuf::rt::bytes_size(60, &v);
  377. }
  378. if let Some(ref v) = self.padding.as_ref() {
  379. my_size += ::protobuf::rt::bytes_size(70, &v);
  380. }
  381. if let Some(ref v) = self.feature_set.as_ref() {
  382. let len = v.compute_size();
  383. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  384. }
  385. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  386. self.cached_size.set(my_size);
  387. my_size
  388. }
  389. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  390. if let Some(ref v) = self.build_info.as_ref() {
  391. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  392. os.write_raw_varint32(v.get_cached_size())?;
  393. v.write_to_with_cached_sizes(os)?;
  394. }
  395. for v in &self.fingerprints_supported {
  396. os.write_enum(20, v.value())?;
  397. };
  398. for v in &self.cryptosuites_supported {
  399. os.write_enum(30, v.value())?;
  400. };
  401. for v in &self.powschemes_supported {
  402. os.write_enum(40, v.value())?;
  403. };
  404. if let Some(ref v) = self.login_crypto_hello.as_ref() {
  405. os.write_tag(50, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  406. os.write_raw_varint32(v.get_cached_size())?;
  407. v.write_to_with_cached_sizes(os)?;
  408. }
  409. if let Some(ref v) = self.client_nonce.as_ref() {
  410. os.write_bytes(60, &v)?;
  411. }
  412. if let Some(ref v) = self.padding.as_ref() {
  413. os.write_bytes(70, &v)?;
  414. }
  415. if let Some(ref v) = self.feature_set.as_ref() {
  416. os.write_tag(80, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  417. os.write_raw_varint32(v.get_cached_size())?;
  418. v.write_to_with_cached_sizes(os)?;
  419. }
  420. os.write_unknown_fields(self.get_unknown_fields())?;
  421. ::std::result::Result::Ok(())
  422. }
  423. fn get_cached_size(&self) -> u32 {
  424. self.cached_size.get()
  425. }
  426. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  427. &self.unknown_fields
  428. }
  429. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  430. &mut self.unknown_fields
  431. }
  432. fn as_any(&self) -> &::std::any::Any {
  433. self as &::std::any::Any
  434. }
  435. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  436. self as &mut ::std::any::Any
  437. }
  438. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  439. self
  440. }
  441. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  442. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  443. }
  444. }
  445. impl ::protobuf::MessageStatic for ClientHello {
  446. fn new() -> ClientHello {
  447. ClientHello::new()
  448. }
  449. fn descriptor_static(_: ::std::option::Option<ClientHello>) -> &'static ::protobuf::reflect::MessageDescriptor {
  450. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  451. lock: ::protobuf::lazy::ONCE_INIT,
  452. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  453. };
  454. unsafe {
  455. descriptor.get(|| {
  456. let mut fields = ::std::vec::Vec::new();
  457. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<BuildInfo>>(
  458. "build_info",
  459. ClientHello::get_build_info_for_reflect,
  460. ClientHello::mut_build_info_for_reflect,
  461. ));
  462. fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Fingerprint>>(
  463. "fingerprints_supported",
  464. ClientHello::get_fingerprints_supported_for_reflect,
  465. ClientHello::mut_fingerprints_supported_for_reflect,
  466. ));
  467. fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Cryptosuite>>(
  468. "cryptosuites_supported",
  469. ClientHello::get_cryptosuites_supported_for_reflect,
  470. ClientHello::mut_cryptosuites_supported_for_reflect,
  471. ));
  472. fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Powscheme>>(
  473. "powschemes_supported",
  474. ClientHello::get_powschemes_supported_for_reflect,
  475. ClientHello::mut_powschemes_supported_for_reflect,
  476. ));
  477. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoHelloUnion>>(
  478. "login_crypto_hello",
  479. ClientHello::get_login_crypto_hello_for_reflect,
  480. ClientHello::mut_login_crypto_hello_for_reflect,
  481. ));
  482. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  483. "client_nonce",
  484. ClientHello::get_client_nonce_for_reflect,
  485. ClientHello::mut_client_nonce_for_reflect,
  486. ));
  487. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  488. "padding",
  489. ClientHello::get_padding_for_reflect,
  490. ClientHello::mut_padding_for_reflect,
  491. ));
  492. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FeatureSet>>(
  493. "feature_set",
  494. ClientHello::get_feature_set_for_reflect,
  495. ClientHello::mut_feature_set_for_reflect,
  496. ));
  497. ::protobuf::reflect::MessageDescriptor::new::<ClientHello>(
  498. "ClientHello",
  499. fields,
  500. file_descriptor_proto()
  501. )
  502. })
  503. }
  504. }
  505. }
  506. impl ::protobuf::Clear for ClientHello {
  507. fn clear(&mut self) {
  508. self.clear_build_info();
  509. self.clear_fingerprints_supported();
  510. self.clear_cryptosuites_supported();
  511. self.clear_powschemes_supported();
  512. self.clear_login_crypto_hello();
  513. self.clear_client_nonce();
  514. self.clear_padding();
  515. self.clear_feature_set();
  516. self.unknown_fields.clear();
  517. }
  518. }
  519. impl ::std::fmt::Debug for ClientHello {
  520. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  521. ::protobuf::text_format::fmt(self, f)
  522. }
  523. }
  524. impl ::protobuf::reflect::ProtobufValue for ClientHello {
  525. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  526. ::protobuf::reflect::ProtobufValueRef::Message(self)
  527. }
  528. }
  529. #[derive(PartialEq,Clone,Default)]
  530. pub struct BuildInfo {
  531. // message fields
  532. product: ::std::option::Option<Product>,
  533. product_flags: ::std::vec::Vec<ProductFlags>,
  534. platform: ::std::option::Option<Platform>,
  535. version: ::std::option::Option<u64>,
  536. // special fields
  537. unknown_fields: ::protobuf::UnknownFields,
  538. cached_size: ::protobuf::CachedSize,
  539. }
  540. // see codegen.rs for the explanation why impl Sync explicitly
  541. unsafe impl ::std::marker::Sync for BuildInfo {}
  542. impl BuildInfo {
  543. pub fn new() -> BuildInfo {
  544. ::std::default::Default::default()
  545. }
  546. pub fn default_instance() -> &'static BuildInfo {
  547. static mut instance: ::protobuf::lazy::Lazy<BuildInfo> = ::protobuf::lazy::Lazy {
  548. lock: ::protobuf::lazy::ONCE_INIT,
  549. ptr: 0 as *const BuildInfo,
  550. };
  551. unsafe {
  552. instance.get(BuildInfo::new)
  553. }
  554. }
  555. // required .Product product = 10;
  556. pub fn clear_product(&mut self) {
  557. self.product = ::std::option::Option::None;
  558. }
  559. pub fn has_product(&self) -> bool {
  560. self.product.is_some()
  561. }
  562. // Param is passed by value, moved
  563. pub fn set_product(&mut self, v: Product) {
  564. self.product = ::std::option::Option::Some(v);
  565. }
  566. pub fn get_product(&self) -> Product {
  567. self.product.unwrap_or(Product::PRODUCT_CLIENT)
  568. }
  569. fn get_product_for_reflect(&self) -> &::std::option::Option<Product> {
  570. &self.product
  571. }
  572. fn mut_product_for_reflect(&mut self) -> &mut ::std::option::Option<Product> {
  573. &mut self.product
  574. }
  575. // repeated .ProductFlags product_flags = 20;
  576. pub fn clear_product_flags(&mut self) {
  577. self.product_flags.clear();
  578. }
  579. // Param is passed by value, moved
  580. pub fn set_product_flags(&mut self, v: ::std::vec::Vec<ProductFlags>) {
  581. self.product_flags = v;
  582. }
  583. // Mutable pointer to the field.
  584. pub fn mut_product_flags(&mut self) -> &mut ::std::vec::Vec<ProductFlags> {
  585. &mut self.product_flags
  586. }
  587. // Take field
  588. pub fn take_product_flags(&mut self) -> ::std::vec::Vec<ProductFlags> {
  589. ::std::mem::replace(&mut self.product_flags, ::std::vec::Vec::new())
  590. }
  591. pub fn get_product_flags(&self) -> &[ProductFlags] {
  592. &self.product_flags
  593. }
  594. fn get_product_flags_for_reflect(&self) -> &::std::vec::Vec<ProductFlags> {
  595. &self.product_flags
  596. }
  597. fn mut_product_flags_for_reflect(&mut self) -> &mut ::std::vec::Vec<ProductFlags> {
  598. &mut self.product_flags
  599. }
  600. // required .Platform platform = 30;
  601. pub fn clear_platform(&mut self) {
  602. self.platform = ::std::option::Option::None;
  603. }
  604. pub fn has_platform(&self) -> bool {
  605. self.platform.is_some()
  606. }
  607. // Param is passed by value, moved
  608. pub fn set_platform(&mut self, v: Platform) {
  609. self.platform = ::std::option::Option::Some(v);
  610. }
  611. pub fn get_platform(&self) -> Platform {
  612. self.platform.unwrap_or(Platform::PLATFORM_WIN32_X86)
  613. }
  614. fn get_platform_for_reflect(&self) -> &::std::option::Option<Platform> {
  615. &self.platform
  616. }
  617. fn mut_platform_for_reflect(&mut self) -> &mut ::std::option::Option<Platform> {
  618. &mut self.platform
  619. }
  620. // required uint64 version = 40;
  621. pub fn clear_version(&mut self) {
  622. self.version = ::std::option::Option::None;
  623. }
  624. pub fn has_version(&self) -> bool {
  625. self.version.is_some()
  626. }
  627. // Param is passed by value, moved
  628. pub fn set_version(&mut self, v: u64) {
  629. self.version = ::std::option::Option::Some(v);
  630. }
  631. pub fn get_version(&self) -> u64 {
  632. self.version.unwrap_or(0)
  633. }
  634. fn get_version_for_reflect(&self) -> &::std::option::Option<u64> {
  635. &self.version
  636. }
  637. fn mut_version_for_reflect(&mut self) -> &mut ::std::option::Option<u64> {
  638. &mut self.version
  639. }
  640. }
  641. impl ::protobuf::Message for BuildInfo {
  642. fn is_initialized(&self) -> bool {
  643. if self.product.is_none() {
  644. return false;
  645. }
  646. if self.platform.is_none() {
  647. return false;
  648. }
  649. if self.version.is_none() {
  650. return false;
  651. }
  652. true
  653. }
  654. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  655. while !is.eof()? {
  656. let (field_number, wire_type) = is.read_tag_unpack()?;
  657. match field_number {
  658. 10 => {
  659. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  660. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  661. }
  662. let tmp = is.read_enum()?;
  663. self.product = ::std::option::Option::Some(tmp);
  664. },
  665. 20 => {
  666. ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.product_flags)?;
  667. },
  668. 30 => {
  669. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  670. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  671. }
  672. let tmp = is.read_enum()?;
  673. self.platform = ::std::option::Option::Some(tmp);
  674. },
  675. 40 => {
  676. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  677. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  678. }
  679. let tmp = is.read_uint64()?;
  680. self.version = ::std::option::Option::Some(tmp);
  681. },
  682. _ => {
  683. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  684. },
  685. };
  686. }
  687. ::std::result::Result::Ok(())
  688. }
  689. // Compute sizes of nested messages
  690. #[allow(unused_variables)]
  691. fn compute_size(&self) -> u32 {
  692. let mut my_size = 0;
  693. if let Some(v) = self.product {
  694. my_size += ::protobuf::rt::enum_size(10, v);
  695. }
  696. for value in &self.product_flags {
  697. my_size += ::protobuf::rt::enum_size(20, *value);
  698. };
  699. if let Some(v) = self.platform {
  700. my_size += ::protobuf::rt::enum_size(30, v);
  701. }
  702. if let Some(v) = self.version {
  703. my_size += ::protobuf::rt::value_size(40, v, ::protobuf::wire_format::WireTypeVarint);
  704. }
  705. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  706. self.cached_size.set(my_size);
  707. my_size
  708. }
  709. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  710. if let Some(v) = self.product {
  711. os.write_enum(10, v.value())?;
  712. }
  713. for v in &self.product_flags {
  714. os.write_enum(20, v.value())?;
  715. };
  716. if let Some(v) = self.platform {
  717. os.write_enum(30, v.value())?;
  718. }
  719. if let Some(v) = self.version {
  720. os.write_uint64(40, v)?;
  721. }
  722. os.write_unknown_fields(self.get_unknown_fields())?;
  723. ::std::result::Result::Ok(())
  724. }
  725. fn get_cached_size(&self) -> u32 {
  726. self.cached_size.get()
  727. }
  728. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  729. &self.unknown_fields
  730. }
  731. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  732. &mut self.unknown_fields
  733. }
  734. fn as_any(&self) -> &::std::any::Any {
  735. self as &::std::any::Any
  736. }
  737. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  738. self as &mut ::std::any::Any
  739. }
  740. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  741. self
  742. }
  743. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  744. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  745. }
  746. }
  747. impl ::protobuf::MessageStatic for BuildInfo {
  748. fn new() -> BuildInfo {
  749. BuildInfo::new()
  750. }
  751. fn descriptor_static(_: ::std::option::Option<BuildInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
  752. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  753. lock: ::protobuf::lazy::ONCE_INIT,
  754. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  755. };
  756. unsafe {
  757. descriptor.get(|| {
  758. let mut fields = ::std::vec::Vec::new();
  759. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Product>>(
  760. "product",
  761. BuildInfo::get_product_for_reflect,
  762. BuildInfo::mut_product_for_reflect,
  763. ));
  764. fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ProductFlags>>(
  765. "product_flags",
  766. BuildInfo::get_product_flags_for_reflect,
  767. BuildInfo::mut_product_flags_for_reflect,
  768. ));
  769. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Platform>>(
  770. "platform",
  771. BuildInfo::get_platform_for_reflect,
  772. BuildInfo::mut_platform_for_reflect,
  773. ));
  774. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
  775. "version",
  776. BuildInfo::get_version_for_reflect,
  777. BuildInfo::mut_version_for_reflect,
  778. ));
  779. ::protobuf::reflect::MessageDescriptor::new::<BuildInfo>(
  780. "BuildInfo",
  781. fields,
  782. file_descriptor_proto()
  783. )
  784. })
  785. }
  786. }
  787. }
  788. impl ::protobuf::Clear for BuildInfo {
  789. fn clear(&mut self) {
  790. self.clear_product();
  791. self.clear_product_flags();
  792. self.clear_platform();
  793. self.clear_version();
  794. self.unknown_fields.clear();
  795. }
  796. }
  797. impl ::std::fmt::Debug for BuildInfo {
  798. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  799. ::protobuf::text_format::fmt(self, f)
  800. }
  801. }
  802. impl ::protobuf::reflect::ProtobufValue for BuildInfo {
  803. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  804. ::protobuf::reflect::ProtobufValueRef::Message(self)
  805. }
  806. }
  807. #[derive(PartialEq,Clone,Default)]
  808. pub struct LoginCryptoHelloUnion {
  809. // message fields
  810. diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello>,
  811. // special fields
  812. unknown_fields: ::protobuf::UnknownFields,
  813. cached_size: ::protobuf::CachedSize,
  814. }
  815. // see codegen.rs for the explanation why impl Sync explicitly
  816. unsafe impl ::std::marker::Sync for LoginCryptoHelloUnion {}
  817. impl LoginCryptoHelloUnion {
  818. pub fn new() -> LoginCryptoHelloUnion {
  819. ::std::default::Default::default()
  820. }
  821. pub fn default_instance() -> &'static LoginCryptoHelloUnion {
  822. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoHelloUnion> = ::protobuf::lazy::Lazy {
  823. lock: ::protobuf::lazy::ONCE_INIT,
  824. ptr: 0 as *const LoginCryptoHelloUnion,
  825. };
  826. unsafe {
  827. instance.get(LoginCryptoHelloUnion::new)
  828. }
  829. }
  830. // optional .LoginCryptoDiffieHellmanHello diffie_hellman = 10;
  831. pub fn clear_diffie_hellman(&mut self) {
  832. self.diffie_hellman.clear();
  833. }
  834. pub fn has_diffie_hellman(&self) -> bool {
  835. self.diffie_hellman.is_some()
  836. }
  837. // Param is passed by value, moved
  838. pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanHello) {
  839. self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
  840. }
  841. // Mutable pointer to the field.
  842. // If field is not initialized, it is initialized with default value first.
  843. pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanHello {
  844. if self.diffie_hellman.is_none() {
  845. self.diffie_hellman.set_default();
  846. }
  847. self.diffie_hellman.as_mut().unwrap()
  848. }
  849. // Take field
  850. pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanHello {
  851. self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::new())
  852. }
  853. pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanHello {
  854. self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::default_instance())
  855. }
  856. fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello> {
  857. &self.diffie_hellman
  858. }
  859. fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello> {
  860. &mut self.diffie_hellman
  861. }
  862. }
  863. impl ::protobuf::Message for LoginCryptoHelloUnion {
  864. fn is_initialized(&self) -> bool {
  865. for v in &self.diffie_hellman {
  866. if !v.is_initialized() {
  867. return false;
  868. }
  869. };
  870. true
  871. }
  872. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  873. while !is.eof()? {
  874. let (field_number, wire_type) = is.read_tag_unpack()?;
  875. match field_number {
  876. 10 => {
  877. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
  878. },
  879. _ => {
  880. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  881. },
  882. };
  883. }
  884. ::std::result::Result::Ok(())
  885. }
  886. // Compute sizes of nested messages
  887. #[allow(unused_variables)]
  888. fn compute_size(&self) -> u32 {
  889. let mut my_size = 0;
  890. if let Some(ref v) = self.diffie_hellman.as_ref() {
  891. let len = v.compute_size();
  892. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  893. }
  894. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  895. self.cached_size.set(my_size);
  896. my_size
  897. }
  898. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  899. if let Some(ref v) = self.diffie_hellman.as_ref() {
  900. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  901. os.write_raw_varint32(v.get_cached_size())?;
  902. v.write_to_with_cached_sizes(os)?;
  903. }
  904. os.write_unknown_fields(self.get_unknown_fields())?;
  905. ::std::result::Result::Ok(())
  906. }
  907. fn get_cached_size(&self) -> u32 {
  908. self.cached_size.get()
  909. }
  910. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  911. &self.unknown_fields
  912. }
  913. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  914. &mut self.unknown_fields
  915. }
  916. fn as_any(&self) -> &::std::any::Any {
  917. self as &::std::any::Any
  918. }
  919. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  920. self as &mut ::std::any::Any
  921. }
  922. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  923. self
  924. }
  925. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  926. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  927. }
  928. }
  929. impl ::protobuf::MessageStatic for LoginCryptoHelloUnion {
  930. fn new() -> LoginCryptoHelloUnion {
  931. LoginCryptoHelloUnion::new()
  932. }
  933. fn descriptor_static(_: ::std::option::Option<LoginCryptoHelloUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  934. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  935. lock: ::protobuf::lazy::ONCE_INIT,
  936. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  937. };
  938. unsafe {
  939. descriptor.get(|| {
  940. let mut fields = ::std::vec::Vec::new();
  941. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanHello>>(
  942. "diffie_hellman",
  943. LoginCryptoHelloUnion::get_diffie_hellman_for_reflect,
  944. LoginCryptoHelloUnion::mut_diffie_hellman_for_reflect,
  945. ));
  946. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoHelloUnion>(
  947. "LoginCryptoHelloUnion",
  948. fields,
  949. file_descriptor_proto()
  950. )
  951. })
  952. }
  953. }
  954. }
  955. impl ::protobuf::Clear for LoginCryptoHelloUnion {
  956. fn clear(&mut self) {
  957. self.clear_diffie_hellman();
  958. self.unknown_fields.clear();
  959. }
  960. }
  961. impl ::std::fmt::Debug for LoginCryptoHelloUnion {
  962. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  963. ::protobuf::text_format::fmt(self, f)
  964. }
  965. }
  966. impl ::protobuf::reflect::ProtobufValue for LoginCryptoHelloUnion {
  967. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  968. ::protobuf::reflect::ProtobufValueRef::Message(self)
  969. }
  970. }
  971. #[derive(PartialEq,Clone,Default)]
  972. pub struct LoginCryptoDiffieHellmanHello {
  973. // message fields
  974. gc: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  975. server_keys_known: ::std::option::Option<u32>,
  976. // special fields
  977. unknown_fields: ::protobuf::UnknownFields,
  978. cached_size: ::protobuf::CachedSize,
  979. }
  980. // see codegen.rs for the explanation why impl Sync explicitly
  981. unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanHello {}
  982. impl LoginCryptoDiffieHellmanHello {
  983. pub fn new() -> LoginCryptoDiffieHellmanHello {
  984. ::std::default::Default::default()
  985. }
  986. pub fn default_instance() -> &'static LoginCryptoDiffieHellmanHello {
  987. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanHello> = ::protobuf::lazy::Lazy {
  988. lock: ::protobuf::lazy::ONCE_INIT,
  989. ptr: 0 as *const LoginCryptoDiffieHellmanHello,
  990. };
  991. unsafe {
  992. instance.get(LoginCryptoDiffieHellmanHello::new)
  993. }
  994. }
  995. // required bytes gc = 10;
  996. pub fn clear_gc(&mut self) {
  997. self.gc.clear();
  998. }
  999. pub fn has_gc(&self) -> bool {
  1000. self.gc.is_some()
  1001. }
  1002. // Param is passed by value, moved
  1003. pub fn set_gc(&mut self, v: ::std::vec::Vec<u8>) {
  1004. self.gc = ::protobuf::SingularField::some(v);
  1005. }
  1006. // Mutable pointer to the field.
  1007. // If field is not initialized, it is initialized with default value first.
  1008. pub fn mut_gc(&mut self) -> &mut ::std::vec::Vec<u8> {
  1009. if self.gc.is_none() {
  1010. self.gc.set_default();
  1011. }
  1012. self.gc.as_mut().unwrap()
  1013. }
  1014. // Take field
  1015. pub fn take_gc(&mut self) -> ::std::vec::Vec<u8> {
  1016. self.gc.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1017. }
  1018. pub fn get_gc(&self) -> &[u8] {
  1019. match self.gc.as_ref() {
  1020. Some(v) => &v,
  1021. None => &[],
  1022. }
  1023. }
  1024. fn get_gc_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1025. &self.gc
  1026. }
  1027. fn mut_gc_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1028. &mut self.gc
  1029. }
  1030. // required uint32 server_keys_known = 20;
  1031. pub fn clear_server_keys_known(&mut self) {
  1032. self.server_keys_known = ::std::option::Option::None;
  1033. }
  1034. pub fn has_server_keys_known(&self) -> bool {
  1035. self.server_keys_known.is_some()
  1036. }
  1037. // Param is passed by value, moved
  1038. pub fn set_server_keys_known(&mut self, v: u32) {
  1039. self.server_keys_known = ::std::option::Option::Some(v);
  1040. }
  1041. pub fn get_server_keys_known(&self) -> u32 {
  1042. self.server_keys_known.unwrap_or(0)
  1043. }
  1044. fn get_server_keys_known_for_reflect(&self) -> &::std::option::Option<u32> {
  1045. &self.server_keys_known
  1046. }
  1047. fn mut_server_keys_known_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  1048. &mut self.server_keys_known
  1049. }
  1050. }
  1051. impl ::protobuf::Message for LoginCryptoDiffieHellmanHello {
  1052. fn is_initialized(&self) -> bool {
  1053. if self.gc.is_none() {
  1054. return false;
  1055. }
  1056. if self.server_keys_known.is_none() {
  1057. return false;
  1058. }
  1059. true
  1060. }
  1061. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1062. while !is.eof()? {
  1063. let (field_number, wire_type) = is.read_tag_unpack()?;
  1064. match field_number {
  1065. 10 => {
  1066. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gc)?;
  1067. },
  1068. 20 => {
  1069. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1070. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1071. }
  1072. let tmp = is.read_uint32()?;
  1073. self.server_keys_known = ::std::option::Option::Some(tmp);
  1074. },
  1075. _ => {
  1076. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1077. },
  1078. };
  1079. }
  1080. ::std::result::Result::Ok(())
  1081. }
  1082. // Compute sizes of nested messages
  1083. #[allow(unused_variables)]
  1084. fn compute_size(&self) -> u32 {
  1085. let mut my_size = 0;
  1086. if let Some(ref v) = self.gc.as_ref() {
  1087. my_size += ::protobuf::rt::bytes_size(10, &v);
  1088. }
  1089. if let Some(v) = self.server_keys_known {
  1090. my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
  1091. }
  1092. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1093. self.cached_size.set(my_size);
  1094. my_size
  1095. }
  1096. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1097. if let Some(ref v) = self.gc.as_ref() {
  1098. os.write_bytes(10, &v)?;
  1099. }
  1100. if let Some(v) = self.server_keys_known {
  1101. os.write_uint32(20, v)?;
  1102. }
  1103. os.write_unknown_fields(self.get_unknown_fields())?;
  1104. ::std::result::Result::Ok(())
  1105. }
  1106. fn get_cached_size(&self) -> u32 {
  1107. self.cached_size.get()
  1108. }
  1109. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1110. &self.unknown_fields
  1111. }
  1112. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1113. &mut self.unknown_fields
  1114. }
  1115. fn as_any(&self) -> &::std::any::Any {
  1116. self as &::std::any::Any
  1117. }
  1118. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1119. self as &mut ::std::any::Any
  1120. }
  1121. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1122. self
  1123. }
  1124. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1125. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1126. }
  1127. }
  1128. impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanHello {
  1129. fn new() -> LoginCryptoDiffieHellmanHello {
  1130. LoginCryptoDiffieHellmanHello::new()
  1131. }
  1132. fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanHello>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1133. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1134. lock: ::protobuf::lazy::ONCE_INIT,
  1135. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1136. };
  1137. unsafe {
  1138. descriptor.get(|| {
  1139. let mut fields = ::std::vec::Vec::new();
  1140. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1141. "gc",
  1142. LoginCryptoDiffieHellmanHello::get_gc_for_reflect,
  1143. LoginCryptoDiffieHellmanHello::mut_gc_for_reflect,
  1144. ));
  1145. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  1146. "server_keys_known",
  1147. LoginCryptoDiffieHellmanHello::get_server_keys_known_for_reflect,
  1148. LoginCryptoDiffieHellmanHello::mut_server_keys_known_for_reflect,
  1149. ));
  1150. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanHello>(
  1151. "LoginCryptoDiffieHellmanHello",
  1152. fields,
  1153. file_descriptor_proto()
  1154. )
  1155. })
  1156. }
  1157. }
  1158. }
  1159. impl ::protobuf::Clear for LoginCryptoDiffieHellmanHello {
  1160. fn clear(&mut self) {
  1161. self.clear_gc();
  1162. self.clear_server_keys_known();
  1163. self.unknown_fields.clear();
  1164. }
  1165. }
  1166. impl ::std::fmt::Debug for LoginCryptoDiffieHellmanHello {
  1167. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1168. ::protobuf::text_format::fmt(self, f)
  1169. }
  1170. }
  1171. impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanHello {
  1172. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1173. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1174. }
  1175. }
  1176. #[derive(PartialEq,Clone,Default)]
  1177. pub struct FeatureSet {
  1178. // message fields
  1179. autoupdate2: ::std::option::Option<bool>,
  1180. current_location: ::std::option::Option<bool>,
  1181. // special fields
  1182. unknown_fields: ::protobuf::UnknownFields,
  1183. cached_size: ::protobuf::CachedSize,
  1184. }
  1185. // see codegen.rs for the explanation why impl Sync explicitly
  1186. unsafe impl ::std::marker::Sync for FeatureSet {}
  1187. impl FeatureSet {
  1188. pub fn new() -> FeatureSet {
  1189. ::std::default::Default::default()
  1190. }
  1191. pub fn default_instance() -> &'static FeatureSet {
  1192. static mut instance: ::protobuf::lazy::Lazy<FeatureSet> = ::protobuf::lazy::Lazy {
  1193. lock: ::protobuf::lazy::ONCE_INIT,
  1194. ptr: 0 as *const FeatureSet,
  1195. };
  1196. unsafe {
  1197. instance.get(FeatureSet::new)
  1198. }
  1199. }
  1200. // optional bool autoupdate2 = 1;
  1201. pub fn clear_autoupdate2(&mut self) {
  1202. self.autoupdate2 = ::std::option::Option::None;
  1203. }
  1204. pub fn has_autoupdate2(&self) -> bool {
  1205. self.autoupdate2.is_some()
  1206. }
  1207. // Param is passed by value, moved
  1208. pub fn set_autoupdate2(&mut self, v: bool) {
  1209. self.autoupdate2 = ::std::option::Option::Some(v);
  1210. }
  1211. pub fn get_autoupdate2(&self) -> bool {
  1212. self.autoupdate2.unwrap_or(false)
  1213. }
  1214. fn get_autoupdate2_for_reflect(&self) -> &::std::option::Option<bool> {
  1215. &self.autoupdate2
  1216. }
  1217. fn mut_autoupdate2_for_reflect(&mut self) -> &mut ::std::option::Option<bool> {
  1218. &mut self.autoupdate2
  1219. }
  1220. // optional bool current_location = 2;
  1221. pub fn clear_current_location(&mut self) {
  1222. self.current_location = ::std::option::Option::None;
  1223. }
  1224. pub fn has_current_location(&self) -> bool {
  1225. self.current_location.is_some()
  1226. }
  1227. // Param is passed by value, moved
  1228. pub fn set_current_location(&mut self, v: bool) {
  1229. self.current_location = ::std::option::Option::Some(v);
  1230. }
  1231. pub fn get_current_location(&self) -> bool {
  1232. self.current_location.unwrap_or(false)
  1233. }
  1234. fn get_current_location_for_reflect(&self) -> &::std::option::Option<bool> {
  1235. &self.current_location
  1236. }
  1237. fn mut_current_location_for_reflect(&mut self) -> &mut ::std::option::Option<bool> {
  1238. &mut self.current_location
  1239. }
  1240. }
  1241. impl ::protobuf::Message for FeatureSet {
  1242. fn is_initialized(&self) -> bool {
  1243. true
  1244. }
  1245. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1246. while !is.eof()? {
  1247. let (field_number, wire_type) = is.read_tag_unpack()?;
  1248. match field_number {
  1249. 1 => {
  1250. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1251. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1252. }
  1253. let tmp = is.read_bool()?;
  1254. self.autoupdate2 = ::std::option::Option::Some(tmp);
  1255. },
  1256. 2 => {
  1257. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1258. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1259. }
  1260. let tmp = is.read_bool()?;
  1261. self.current_location = ::std::option::Option::Some(tmp);
  1262. },
  1263. _ => {
  1264. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1265. },
  1266. };
  1267. }
  1268. ::std::result::Result::Ok(())
  1269. }
  1270. // Compute sizes of nested messages
  1271. #[allow(unused_variables)]
  1272. fn compute_size(&self) -> u32 {
  1273. let mut my_size = 0;
  1274. if let Some(v) = self.autoupdate2 {
  1275. my_size += 2;
  1276. }
  1277. if let Some(v) = self.current_location {
  1278. my_size += 2;
  1279. }
  1280. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1281. self.cached_size.set(my_size);
  1282. my_size
  1283. }
  1284. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1285. if let Some(v) = self.autoupdate2 {
  1286. os.write_bool(1, v)?;
  1287. }
  1288. if let Some(v) = self.current_location {
  1289. os.write_bool(2, v)?;
  1290. }
  1291. os.write_unknown_fields(self.get_unknown_fields())?;
  1292. ::std::result::Result::Ok(())
  1293. }
  1294. fn get_cached_size(&self) -> u32 {
  1295. self.cached_size.get()
  1296. }
  1297. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1298. &self.unknown_fields
  1299. }
  1300. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1301. &mut self.unknown_fields
  1302. }
  1303. fn as_any(&self) -> &::std::any::Any {
  1304. self as &::std::any::Any
  1305. }
  1306. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1307. self as &mut ::std::any::Any
  1308. }
  1309. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1310. self
  1311. }
  1312. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1313. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1314. }
  1315. }
  1316. impl ::protobuf::MessageStatic for FeatureSet {
  1317. fn new() -> FeatureSet {
  1318. FeatureSet::new()
  1319. }
  1320. fn descriptor_static(_: ::std::option::Option<FeatureSet>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1321. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1322. lock: ::protobuf::lazy::ONCE_INIT,
  1323. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1324. };
  1325. unsafe {
  1326. descriptor.get(|| {
  1327. let mut fields = ::std::vec::Vec::new();
  1328. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  1329. "autoupdate2",
  1330. FeatureSet::get_autoupdate2_for_reflect,
  1331. FeatureSet::mut_autoupdate2_for_reflect,
  1332. ));
  1333. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  1334. "current_location",
  1335. FeatureSet::get_current_location_for_reflect,
  1336. FeatureSet::mut_current_location_for_reflect,
  1337. ));
  1338. ::protobuf::reflect::MessageDescriptor::new::<FeatureSet>(
  1339. "FeatureSet",
  1340. fields,
  1341. file_descriptor_proto()
  1342. )
  1343. })
  1344. }
  1345. }
  1346. }
  1347. impl ::protobuf::Clear for FeatureSet {
  1348. fn clear(&mut self) {
  1349. self.clear_autoupdate2();
  1350. self.clear_current_location();
  1351. self.unknown_fields.clear();
  1352. }
  1353. }
  1354. impl ::std::fmt::Debug for FeatureSet {
  1355. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1356. ::protobuf::text_format::fmt(self, f)
  1357. }
  1358. }
  1359. impl ::protobuf::reflect::ProtobufValue for FeatureSet {
  1360. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1361. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1362. }
  1363. }
  1364. #[derive(PartialEq,Clone,Default)]
  1365. pub struct APResponseMessage {
  1366. // message fields
  1367. challenge: ::protobuf::SingularPtrField<APChallenge>,
  1368. upgrade: ::protobuf::SingularPtrField<UpgradeRequiredMessage>,
  1369. login_failed: ::protobuf::SingularPtrField<APLoginFailed>,
  1370. // special fields
  1371. unknown_fields: ::protobuf::UnknownFields,
  1372. cached_size: ::protobuf::CachedSize,
  1373. }
  1374. // see codegen.rs for the explanation why impl Sync explicitly
  1375. unsafe impl ::std::marker::Sync for APResponseMessage {}
  1376. impl APResponseMessage {
  1377. pub fn new() -> APResponseMessage {
  1378. ::std::default::Default::default()
  1379. }
  1380. pub fn default_instance() -> &'static APResponseMessage {
  1381. static mut instance: ::protobuf::lazy::Lazy<APResponseMessage> = ::protobuf::lazy::Lazy {
  1382. lock: ::protobuf::lazy::ONCE_INIT,
  1383. ptr: 0 as *const APResponseMessage,
  1384. };
  1385. unsafe {
  1386. instance.get(APResponseMessage::new)
  1387. }
  1388. }
  1389. // optional .APChallenge challenge = 10;
  1390. pub fn clear_challenge(&mut self) {
  1391. self.challenge.clear();
  1392. }
  1393. pub fn has_challenge(&self) -> bool {
  1394. self.challenge.is_some()
  1395. }
  1396. // Param is passed by value, moved
  1397. pub fn set_challenge(&mut self, v: APChallenge) {
  1398. self.challenge = ::protobuf::SingularPtrField::some(v);
  1399. }
  1400. // Mutable pointer to the field.
  1401. // If field is not initialized, it is initialized with default value first.
  1402. pub fn mut_challenge(&mut self) -> &mut APChallenge {
  1403. if self.challenge.is_none() {
  1404. self.challenge.set_default();
  1405. }
  1406. self.challenge.as_mut().unwrap()
  1407. }
  1408. // Take field
  1409. pub fn take_challenge(&mut self) -> APChallenge {
  1410. self.challenge.take().unwrap_or_else(|| APChallenge::new())
  1411. }
  1412. pub fn get_challenge(&self) -> &APChallenge {
  1413. self.challenge.as_ref().unwrap_or_else(|| APChallenge::default_instance())
  1414. }
  1415. fn get_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<APChallenge> {
  1416. &self.challenge
  1417. }
  1418. fn mut_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<APChallenge> {
  1419. &mut self.challenge
  1420. }
  1421. // optional .UpgradeRequiredMessage upgrade = 20;
  1422. pub fn clear_upgrade(&mut self) {
  1423. self.upgrade.clear();
  1424. }
  1425. pub fn has_upgrade(&self) -> bool {
  1426. self.upgrade.is_some()
  1427. }
  1428. // Param is passed by value, moved
  1429. pub fn set_upgrade(&mut self, v: UpgradeRequiredMessage) {
  1430. self.upgrade = ::protobuf::SingularPtrField::some(v);
  1431. }
  1432. // Mutable pointer to the field.
  1433. // If field is not initialized, it is initialized with default value first.
  1434. pub fn mut_upgrade(&mut self) -> &mut UpgradeRequiredMessage {
  1435. if self.upgrade.is_none() {
  1436. self.upgrade.set_default();
  1437. }
  1438. self.upgrade.as_mut().unwrap()
  1439. }
  1440. // Take field
  1441. pub fn take_upgrade(&mut self) -> UpgradeRequiredMessage {
  1442. self.upgrade.take().unwrap_or_else(|| UpgradeRequiredMessage::new())
  1443. }
  1444. pub fn get_upgrade(&self) -> &UpgradeRequiredMessage {
  1445. self.upgrade.as_ref().unwrap_or_else(|| UpgradeRequiredMessage::default_instance())
  1446. }
  1447. fn get_upgrade_for_reflect(&self) -> &::protobuf::SingularPtrField<UpgradeRequiredMessage> {
  1448. &self.upgrade
  1449. }
  1450. fn mut_upgrade_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<UpgradeRequiredMessage> {
  1451. &mut self.upgrade
  1452. }
  1453. // optional .APLoginFailed login_failed = 30;
  1454. pub fn clear_login_failed(&mut self) {
  1455. self.login_failed.clear();
  1456. }
  1457. pub fn has_login_failed(&self) -> bool {
  1458. self.login_failed.is_some()
  1459. }
  1460. // Param is passed by value, moved
  1461. pub fn set_login_failed(&mut self, v: APLoginFailed) {
  1462. self.login_failed = ::protobuf::SingularPtrField::some(v);
  1463. }
  1464. // Mutable pointer to the field.
  1465. // If field is not initialized, it is initialized with default value first.
  1466. pub fn mut_login_failed(&mut self) -> &mut APLoginFailed {
  1467. if self.login_failed.is_none() {
  1468. self.login_failed.set_default();
  1469. }
  1470. self.login_failed.as_mut().unwrap()
  1471. }
  1472. // Take field
  1473. pub fn take_login_failed(&mut self) -> APLoginFailed {
  1474. self.login_failed.take().unwrap_or_else(|| APLoginFailed::new())
  1475. }
  1476. pub fn get_login_failed(&self) -> &APLoginFailed {
  1477. self.login_failed.as_ref().unwrap_or_else(|| APLoginFailed::default_instance())
  1478. }
  1479. fn get_login_failed_for_reflect(&self) -> &::protobuf::SingularPtrField<APLoginFailed> {
  1480. &self.login_failed
  1481. }
  1482. fn mut_login_failed_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<APLoginFailed> {
  1483. &mut self.login_failed
  1484. }
  1485. }
  1486. impl ::protobuf::Message for APResponseMessage {
  1487. fn is_initialized(&self) -> bool {
  1488. for v in &self.challenge {
  1489. if !v.is_initialized() {
  1490. return false;
  1491. }
  1492. };
  1493. for v in &self.upgrade {
  1494. if !v.is_initialized() {
  1495. return false;
  1496. }
  1497. };
  1498. for v in &self.login_failed {
  1499. if !v.is_initialized() {
  1500. return false;
  1501. }
  1502. };
  1503. true
  1504. }
  1505. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1506. while !is.eof()? {
  1507. let (field_number, wire_type) = is.read_tag_unpack()?;
  1508. match field_number {
  1509. 10 => {
  1510. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.challenge)?;
  1511. },
  1512. 20 => {
  1513. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.upgrade)?;
  1514. },
  1515. 30 => {
  1516. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_failed)?;
  1517. },
  1518. _ => {
  1519. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1520. },
  1521. };
  1522. }
  1523. ::std::result::Result::Ok(())
  1524. }
  1525. // Compute sizes of nested messages
  1526. #[allow(unused_variables)]
  1527. fn compute_size(&self) -> u32 {
  1528. let mut my_size = 0;
  1529. if let Some(ref v) = self.challenge.as_ref() {
  1530. let len = v.compute_size();
  1531. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1532. }
  1533. if let Some(ref v) = self.upgrade.as_ref() {
  1534. let len = v.compute_size();
  1535. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1536. }
  1537. if let Some(ref v) = self.login_failed.as_ref() {
  1538. let len = v.compute_size();
  1539. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1540. }
  1541. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1542. self.cached_size.set(my_size);
  1543. my_size
  1544. }
  1545. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1546. if let Some(ref v) = self.challenge.as_ref() {
  1547. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1548. os.write_raw_varint32(v.get_cached_size())?;
  1549. v.write_to_with_cached_sizes(os)?;
  1550. }
  1551. if let Some(ref v) = self.upgrade.as_ref() {
  1552. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1553. os.write_raw_varint32(v.get_cached_size())?;
  1554. v.write_to_with_cached_sizes(os)?;
  1555. }
  1556. if let Some(ref v) = self.login_failed.as_ref() {
  1557. os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1558. os.write_raw_varint32(v.get_cached_size())?;
  1559. v.write_to_with_cached_sizes(os)?;
  1560. }
  1561. os.write_unknown_fields(self.get_unknown_fields())?;
  1562. ::std::result::Result::Ok(())
  1563. }
  1564. fn get_cached_size(&self) -> u32 {
  1565. self.cached_size.get()
  1566. }
  1567. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1568. &self.unknown_fields
  1569. }
  1570. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1571. &mut self.unknown_fields
  1572. }
  1573. fn as_any(&self) -> &::std::any::Any {
  1574. self as &::std::any::Any
  1575. }
  1576. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1577. self as &mut ::std::any::Any
  1578. }
  1579. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1580. self
  1581. }
  1582. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1583. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1584. }
  1585. }
  1586. impl ::protobuf::MessageStatic for APResponseMessage {
  1587. fn new() -> APResponseMessage {
  1588. APResponseMessage::new()
  1589. }
  1590. fn descriptor_static(_: ::std::option::Option<APResponseMessage>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1591. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1592. lock: ::protobuf::lazy::ONCE_INIT,
  1593. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1594. };
  1595. unsafe {
  1596. descriptor.get(|| {
  1597. let mut fields = ::std::vec::Vec::new();
  1598. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APChallenge>>(
  1599. "challenge",
  1600. APResponseMessage::get_challenge_for_reflect,
  1601. APResponseMessage::mut_challenge_for_reflect,
  1602. ));
  1603. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UpgradeRequiredMessage>>(
  1604. "upgrade",
  1605. APResponseMessage::get_upgrade_for_reflect,
  1606. APResponseMessage::mut_upgrade_for_reflect,
  1607. ));
  1608. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APLoginFailed>>(
  1609. "login_failed",
  1610. APResponseMessage::get_login_failed_for_reflect,
  1611. APResponseMessage::mut_login_failed_for_reflect,
  1612. ));
  1613. ::protobuf::reflect::MessageDescriptor::new::<APResponseMessage>(
  1614. "APResponseMessage",
  1615. fields,
  1616. file_descriptor_proto()
  1617. )
  1618. })
  1619. }
  1620. }
  1621. }
  1622. impl ::protobuf::Clear for APResponseMessage {
  1623. fn clear(&mut self) {
  1624. self.clear_challenge();
  1625. self.clear_upgrade();
  1626. self.clear_login_failed();
  1627. self.unknown_fields.clear();
  1628. }
  1629. }
  1630. impl ::std::fmt::Debug for APResponseMessage {
  1631. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1632. ::protobuf::text_format::fmt(self, f)
  1633. }
  1634. }
  1635. impl ::protobuf::reflect::ProtobufValue for APResponseMessage {
  1636. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1637. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1638. }
  1639. }
  1640. #[derive(PartialEq,Clone,Default)]
  1641. pub struct APChallenge {
  1642. // message fields
  1643. login_crypto_challenge: ::protobuf::SingularPtrField<LoginCryptoChallengeUnion>,
  1644. fingerprint_challenge: ::protobuf::SingularPtrField<FingerprintChallengeUnion>,
  1645. pow_challenge: ::protobuf::SingularPtrField<PoWChallengeUnion>,
  1646. crypto_challenge: ::protobuf::SingularPtrField<CryptoChallengeUnion>,
  1647. server_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1648. padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1649. // special fields
  1650. unknown_fields: ::protobuf::UnknownFields,
  1651. cached_size: ::protobuf::CachedSize,
  1652. }
  1653. // see codegen.rs for the explanation why impl Sync explicitly
  1654. unsafe impl ::std::marker::Sync for APChallenge {}
  1655. impl APChallenge {
  1656. pub fn new() -> APChallenge {
  1657. ::std::default::Default::default()
  1658. }
  1659. pub fn default_instance() -> &'static APChallenge {
  1660. static mut instance: ::protobuf::lazy::Lazy<APChallenge> = ::protobuf::lazy::Lazy {
  1661. lock: ::protobuf::lazy::ONCE_INIT,
  1662. ptr: 0 as *const APChallenge,
  1663. };
  1664. unsafe {
  1665. instance.get(APChallenge::new)
  1666. }
  1667. }
  1668. // required .LoginCryptoChallengeUnion login_crypto_challenge = 10;
  1669. pub fn clear_login_crypto_challenge(&mut self) {
  1670. self.login_crypto_challenge.clear();
  1671. }
  1672. pub fn has_login_crypto_challenge(&self) -> bool {
  1673. self.login_crypto_challenge.is_some()
  1674. }
  1675. // Param is passed by value, moved
  1676. pub fn set_login_crypto_challenge(&mut self, v: LoginCryptoChallengeUnion) {
  1677. self.login_crypto_challenge = ::protobuf::SingularPtrField::some(v);
  1678. }
  1679. // Mutable pointer to the field.
  1680. // If field is not initialized, it is initialized with default value first.
  1681. pub fn mut_login_crypto_challenge(&mut self) -> &mut LoginCryptoChallengeUnion {
  1682. if self.login_crypto_challenge.is_none() {
  1683. self.login_crypto_challenge.set_default();
  1684. }
  1685. self.login_crypto_challenge.as_mut().unwrap()
  1686. }
  1687. // Take field
  1688. pub fn take_login_crypto_challenge(&mut self) -> LoginCryptoChallengeUnion {
  1689. self.login_crypto_challenge.take().unwrap_or_else(|| LoginCryptoChallengeUnion::new())
  1690. }
  1691. pub fn get_login_crypto_challenge(&self) -> &LoginCryptoChallengeUnion {
  1692. self.login_crypto_challenge.as_ref().unwrap_or_else(|| LoginCryptoChallengeUnion::default_instance())
  1693. }
  1694. fn get_login_crypto_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoChallengeUnion> {
  1695. &self.login_crypto_challenge
  1696. }
  1697. fn mut_login_crypto_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoChallengeUnion> {
  1698. &mut self.login_crypto_challenge
  1699. }
  1700. // required .FingerprintChallengeUnion fingerprint_challenge = 20;
  1701. pub fn clear_fingerprint_challenge(&mut self) {
  1702. self.fingerprint_challenge.clear();
  1703. }
  1704. pub fn has_fingerprint_challenge(&self) -> bool {
  1705. self.fingerprint_challenge.is_some()
  1706. }
  1707. // Param is passed by value, moved
  1708. pub fn set_fingerprint_challenge(&mut self, v: FingerprintChallengeUnion) {
  1709. self.fingerprint_challenge = ::protobuf::SingularPtrField::some(v);
  1710. }
  1711. // Mutable pointer to the field.
  1712. // If field is not initialized, it is initialized with default value first.
  1713. pub fn mut_fingerprint_challenge(&mut self) -> &mut FingerprintChallengeUnion {
  1714. if self.fingerprint_challenge.is_none() {
  1715. self.fingerprint_challenge.set_default();
  1716. }
  1717. self.fingerprint_challenge.as_mut().unwrap()
  1718. }
  1719. // Take field
  1720. pub fn take_fingerprint_challenge(&mut self) -> FingerprintChallengeUnion {
  1721. self.fingerprint_challenge.take().unwrap_or_else(|| FingerprintChallengeUnion::new())
  1722. }
  1723. pub fn get_fingerprint_challenge(&self) -> &FingerprintChallengeUnion {
  1724. self.fingerprint_challenge.as_ref().unwrap_or_else(|| FingerprintChallengeUnion::default_instance())
  1725. }
  1726. fn get_fingerprint_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintChallengeUnion> {
  1727. &self.fingerprint_challenge
  1728. }
  1729. fn mut_fingerprint_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintChallengeUnion> {
  1730. &mut self.fingerprint_challenge
  1731. }
  1732. // required .PoWChallengeUnion pow_challenge = 30;
  1733. pub fn clear_pow_challenge(&mut self) {
  1734. self.pow_challenge.clear();
  1735. }
  1736. pub fn has_pow_challenge(&self) -> bool {
  1737. self.pow_challenge.is_some()
  1738. }
  1739. // Param is passed by value, moved
  1740. pub fn set_pow_challenge(&mut self, v: PoWChallengeUnion) {
  1741. self.pow_challenge = ::protobuf::SingularPtrField::some(v);
  1742. }
  1743. // Mutable pointer to the field.
  1744. // If field is not initialized, it is initialized with default value first.
  1745. pub fn mut_pow_challenge(&mut self) -> &mut PoWChallengeUnion {
  1746. if self.pow_challenge.is_none() {
  1747. self.pow_challenge.set_default();
  1748. }
  1749. self.pow_challenge.as_mut().unwrap()
  1750. }
  1751. // Take field
  1752. pub fn take_pow_challenge(&mut self) -> PoWChallengeUnion {
  1753. self.pow_challenge.take().unwrap_or_else(|| PoWChallengeUnion::new())
  1754. }
  1755. pub fn get_pow_challenge(&self) -> &PoWChallengeUnion {
  1756. self.pow_challenge.as_ref().unwrap_or_else(|| PoWChallengeUnion::default_instance())
  1757. }
  1758. fn get_pow_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWChallengeUnion> {
  1759. &self.pow_challenge
  1760. }
  1761. fn mut_pow_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWChallengeUnion> {
  1762. &mut self.pow_challenge
  1763. }
  1764. // required .CryptoChallengeUnion crypto_challenge = 40;
  1765. pub fn clear_crypto_challenge(&mut self) {
  1766. self.crypto_challenge.clear();
  1767. }
  1768. pub fn has_crypto_challenge(&self) -> bool {
  1769. self.crypto_challenge.is_some()
  1770. }
  1771. // Param is passed by value, moved
  1772. pub fn set_crypto_challenge(&mut self, v: CryptoChallengeUnion) {
  1773. self.crypto_challenge = ::protobuf::SingularPtrField::some(v);
  1774. }
  1775. // Mutable pointer to the field.
  1776. // If field is not initialized, it is initialized with default value first.
  1777. pub fn mut_crypto_challenge(&mut self) -> &mut CryptoChallengeUnion {
  1778. if self.crypto_challenge.is_none() {
  1779. self.crypto_challenge.set_default();
  1780. }
  1781. self.crypto_challenge.as_mut().unwrap()
  1782. }
  1783. // Take field
  1784. pub fn take_crypto_challenge(&mut self) -> CryptoChallengeUnion {
  1785. self.crypto_challenge.take().unwrap_or_else(|| CryptoChallengeUnion::new())
  1786. }
  1787. pub fn get_crypto_challenge(&self) -> &CryptoChallengeUnion {
  1788. self.crypto_challenge.as_ref().unwrap_or_else(|| CryptoChallengeUnion::default_instance())
  1789. }
  1790. fn get_crypto_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoChallengeUnion> {
  1791. &self.crypto_challenge
  1792. }
  1793. fn mut_crypto_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoChallengeUnion> {
  1794. &mut self.crypto_challenge
  1795. }
  1796. // required bytes server_nonce = 50;
  1797. pub fn clear_server_nonce(&mut self) {
  1798. self.server_nonce.clear();
  1799. }
  1800. pub fn has_server_nonce(&self) -> bool {
  1801. self.server_nonce.is_some()
  1802. }
  1803. // Param is passed by value, moved
  1804. pub fn set_server_nonce(&mut self, v: ::std::vec::Vec<u8>) {
  1805. self.server_nonce = ::protobuf::SingularField::some(v);
  1806. }
  1807. // Mutable pointer to the field.
  1808. // If field is not initialized, it is initialized with default value first.
  1809. pub fn mut_server_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
  1810. if self.server_nonce.is_none() {
  1811. self.server_nonce.set_default();
  1812. }
  1813. self.server_nonce.as_mut().unwrap()
  1814. }
  1815. // Take field
  1816. pub fn take_server_nonce(&mut self) -> ::std::vec::Vec<u8> {
  1817. self.server_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1818. }
  1819. pub fn get_server_nonce(&self) -> &[u8] {
  1820. match self.server_nonce.as_ref() {
  1821. Some(v) => &v,
  1822. None => &[],
  1823. }
  1824. }
  1825. fn get_server_nonce_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1826. &self.server_nonce
  1827. }
  1828. fn mut_server_nonce_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1829. &mut self.server_nonce
  1830. }
  1831. // optional bytes padding = 60;
  1832. pub fn clear_padding(&mut self) {
  1833. self.padding.clear();
  1834. }
  1835. pub fn has_padding(&self) -> bool {
  1836. self.padding.is_some()
  1837. }
  1838. // Param is passed by value, moved
  1839. pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
  1840. self.padding = ::protobuf::SingularField::some(v);
  1841. }
  1842. // Mutable pointer to the field.
  1843. // If field is not initialized, it is initialized with default value first.
  1844. pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
  1845. if self.padding.is_none() {
  1846. self.padding.set_default();
  1847. }
  1848. self.padding.as_mut().unwrap()
  1849. }
  1850. // Take field
  1851. pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
  1852. self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1853. }
  1854. pub fn get_padding(&self) -> &[u8] {
  1855. match self.padding.as_ref() {
  1856. Some(v) => &v,
  1857. None => &[],
  1858. }
  1859. }
  1860. fn get_padding_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1861. &self.padding
  1862. }
  1863. fn mut_padding_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1864. &mut self.padding
  1865. }
  1866. }
  1867. impl ::protobuf::Message for APChallenge {
  1868. fn is_initialized(&self) -> bool {
  1869. if self.login_crypto_challenge.is_none() {
  1870. return false;
  1871. }
  1872. if self.fingerprint_challenge.is_none() {
  1873. return false;
  1874. }
  1875. if self.pow_challenge.is_none() {
  1876. return false;
  1877. }
  1878. if self.crypto_challenge.is_none() {
  1879. return false;
  1880. }
  1881. if self.server_nonce.is_none() {
  1882. return false;
  1883. }
  1884. for v in &self.login_crypto_challenge {
  1885. if !v.is_initialized() {
  1886. return false;
  1887. }
  1888. };
  1889. for v in &self.fingerprint_challenge {
  1890. if !v.is_initialized() {
  1891. return false;
  1892. }
  1893. };
  1894. for v in &self.pow_challenge {
  1895. if !v.is_initialized() {
  1896. return false;
  1897. }
  1898. };
  1899. for v in &self.crypto_challenge {
  1900. if !v.is_initialized() {
  1901. return false;
  1902. }
  1903. };
  1904. true
  1905. }
  1906. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1907. while !is.eof()? {
  1908. let (field_number, wire_type) = is.read_tag_unpack()?;
  1909. match field_number {
  1910. 10 => {
  1911. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_challenge)?;
  1912. },
  1913. 20 => {
  1914. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fingerprint_challenge)?;
  1915. },
  1916. 30 => {
  1917. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_challenge)?;
  1918. },
  1919. 40 => {
  1920. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_challenge)?;
  1921. },
  1922. 50 => {
  1923. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.server_nonce)?;
  1924. },
  1925. 60 => {
  1926. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
  1927. },
  1928. _ => {
  1929. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1930. },
  1931. };
  1932. }
  1933. ::std::result::Result::Ok(())
  1934. }
  1935. // Compute sizes of nested messages
  1936. #[allow(unused_variables)]
  1937. fn compute_size(&self) -> u32 {
  1938. let mut my_size = 0;
  1939. if let Some(ref v) = self.login_crypto_challenge.as_ref() {
  1940. let len = v.compute_size();
  1941. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1942. }
  1943. if let Some(ref v) = self.fingerprint_challenge.as_ref() {
  1944. let len = v.compute_size();
  1945. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1946. }
  1947. if let Some(ref v) = self.pow_challenge.as_ref() {
  1948. let len = v.compute_size();
  1949. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1950. }
  1951. if let Some(ref v) = self.crypto_challenge.as_ref() {
  1952. let len = v.compute_size();
  1953. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1954. }
  1955. if let Some(ref v) = self.server_nonce.as_ref() {
  1956. my_size += ::protobuf::rt::bytes_size(50, &v);
  1957. }
  1958. if let Some(ref v) = self.padding.as_ref() {
  1959. my_size += ::protobuf::rt::bytes_size(60, &v);
  1960. }
  1961. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1962. self.cached_size.set(my_size);
  1963. my_size
  1964. }
  1965. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1966. if let Some(ref v) = self.login_crypto_challenge.as_ref() {
  1967. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1968. os.write_raw_varint32(v.get_cached_size())?;
  1969. v.write_to_with_cached_sizes(os)?;
  1970. }
  1971. if let Some(ref v) = self.fingerprint_challenge.as_ref() {
  1972. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1973. os.write_raw_varint32(v.get_cached_size())?;
  1974. v.write_to_with_cached_sizes(os)?;
  1975. }
  1976. if let Some(ref v) = self.pow_challenge.as_ref() {
  1977. os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1978. os.write_raw_varint32(v.get_cached_size())?;
  1979. v.write_to_with_cached_sizes(os)?;
  1980. }
  1981. if let Some(ref v) = self.crypto_challenge.as_ref() {
  1982. os.write_tag(40, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1983. os.write_raw_varint32(v.get_cached_size())?;
  1984. v.write_to_with_cached_sizes(os)?;
  1985. }
  1986. if let Some(ref v) = self.server_nonce.as_ref() {
  1987. os.write_bytes(50, &v)?;
  1988. }
  1989. if let Some(ref v) = self.padding.as_ref() {
  1990. os.write_bytes(60, &v)?;
  1991. }
  1992. os.write_unknown_fields(self.get_unknown_fields())?;
  1993. ::std::result::Result::Ok(())
  1994. }
  1995. fn get_cached_size(&self) -> u32 {
  1996. self.cached_size.get()
  1997. }
  1998. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1999. &self.unknown_fields
  2000. }
  2001. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2002. &mut self.unknown_fields
  2003. }
  2004. fn as_any(&self) -> &::std::any::Any {
  2005. self as &::std::any::Any
  2006. }
  2007. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2008. self as &mut ::std::any::Any
  2009. }
  2010. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2011. self
  2012. }
  2013. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2014. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2015. }
  2016. }
  2017. impl ::protobuf::MessageStatic for APChallenge {
  2018. fn new() -> APChallenge {
  2019. APChallenge::new()
  2020. }
  2021. fn descriptor_static(_: ::std::option::Option<APChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2022. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2023. lock: ::protobuf::lazy::ONCE_INIT,
  2024. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2025. };
  2026. unsafe {
  2027. descriptor.get(|| {
  2028. let mut fields = ::std::vec::Vec::new();
  2029. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoChallengeUnion>>(
  2030. "login_crypto_challenge",
  2031. APChallenge::get_login_crypto_challenge_for_reflect,
  2032. APChallenge::mut_login_crypto_challenge_for_reflect,
  2033. ));
  2034. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintChallengeUnion>>(
  2035. "fingerprint_challenge",
  2036. APChallenge::get_fingerprint_challenge_for_reflect,
  2037. APChallenge::mut_fingerprint_challenge_for_reflect,
  2038. ));
  2039. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWChallengeUnion>>(
  2040. "pow_challenge",
  2041. APChallenge::get_pow_challenge_for_reflect,
  2042. APChallenge::mut_pow_challenge_for_reflect,
  2043. ));
  2044. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoChallengeUnion>>(
  2045. "crypto_challenge",
  2046. APChallenge::get_crypto_challenge_for_reflect,
  2047. APChallenge::mut_crypto_challenge_for_reflect,
  2048. ));
  2049. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2050. "server_nonce",
  2051. APChallenge::get_server_nonce_for_reflect,
  2052. APChallenge::mut_server_nonce_for_reflect,
  2053. ));
  2054. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2055. "padding",
  2056. APChallenge::get_padding_for_reflect,
  2057. APChallenge::mut_padding_for_reflect,
  2058. ));
  2059. ::protobuf::reflect::MessageDescriptor::new::<APChallenge>(
  2060. "APChallenge",
  2061. fields,
  2062. file_descriptor_proto()
  2063. )
  2064. })
  2065. }
  2066. }
  2067. }
  2068. impl ::protobuf::Clear for APChallenge {
  2069. fn clear(&mut self) {
  2070. self.clear_login_crypto_challenge();
  2071. self.clear_fingerprint_challenge();
  2072. self.clear_pow_challenge();
  2073. self.clear_crypto_challenge();
  2074. self.clear_server_nonce();
  2075. self.clear_padding();
  2076. self.unknown_fields.clear();
  2077. }
  2078. }
  2079. impl ::std::fmt::Debug for APChallenge {
  2080. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2081. ::protobuf::text_format::fmt(self, f)
  2082. }
  2083. }
  2084. impl ::protobuf::reflect::ProtobufValue for APChallenge {
  2085. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2086. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2087. }
  2088. }
  2089. #[derive(PartialEq,Clone,Default)]
  2090. pub struct LoginCryptoChallengeUnion {
  2091. // message fields
  2092. diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge>,
  2093. // special fields
  2094. unknown_fields: ::protobuf::UnknownFields,
  2095. cached_size: ::protobuf::CachedSize,
  2096. }
  2097. // see codegen.rs for the explanation why impl Sync explicitly
  2098. unsafe impl ::std::marker::Sync for LoginCryptoChallengeUnion {}
  2099. impl LoginCryptoChallengeUnion {
  2100. pub fn new() -> LoginCryptoChallengeUnion {
  2101. ::std::default::Default::default()
  2102. }
  2103. pub fn default_instance() -> &'static LoginCryptoChallengeUnion {
  2104. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoChallengeUnion> = ::protobuf::lazy::Lazy {
  2105. lock: ::protobuf::lazy::ONCE_INIT,
  2106. ptr: 0 as *const LoginCryptoChallengeUnion,
  2107. };
  2108. unsafe {
  2109. instance.get(LoginCryptoChallengeUnion::new)
  2110. }
  2111. }
  2112. // optional .LoginCryptoDiffieHellmanChallenge diffie_hellman = 10;
  2113. pub fn clear_diffie_hellman(&mut self) {
  2114. self.diffie_hellman.clear();
  2115. }
  2116. pub fn has_diffie_hellman(&self) -> bool {
  2117. self.diffie_hellman.is_some()
  2118. }
  2119. // Param is passed by value, moved
  2120. pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanChallenge) {
  2121. self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
  2122. }
  2123. // Mutable pointer to the field.
  2124. // If field is not initialized, it is initialized with default value first.
  2125. pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanChallenge {
  2126. if self.diffie_hellman.is_none() {
  2127. self.diffie_hellman.set_default();
  2128. }
  2129. self.diffie_hellman.as_mut().unwrap()
  2130. }
  2131. // Take field
  2132. pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanChallenge {
  2133. self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::new())
  2134. }
  2135. pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanChallenge {
  2136. self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::default_instance())
  2137. }
  2138. fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge> {
  2139. &self.diffie_hellman
  2140. }
  2141. fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge> {
  2142. &mut self.diffie_hellman
  2143. }
  2144. }
  2145. impl ::protobuf::Message for LoginCryptoChallengeUnion {
  2146. fn is_initialized(&self) -> bool {
  2147. for v in &self.diffie_hellman {
  2148. if !v.is_initialized() {
  2149. return false;
  2150. }
  2151. };
  2152. true
  2153. }
  2154. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2155. while !is.eof()? {
  2156. let (field_number, wire_type) = is.read_tag_unpack()?;
  2157. match field_number {
  2158. 10 => {
  2159. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
  2160. },
  2161. _ => {
  2162. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2163. },
  2164. };
  2165. }
  2166. ::std::result::Result::Ok(())
  2167. }
  2168. // Compute sizes of nested messages
  2169. #[allow(unused_variables)]
  2170. fn compute_size(&self) -> u32 {
  2171. let mut my_size = 0;
  2172. if let Some(ref v) = self.diffie_hellman.as_ref() {
  2173. let len = v.compute_size();
  2174. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2175. }
  2176. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2177. self.cached_size.set(my_size);
  2178. my_size
  2179. }
  2180. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2181. if let Some(ref v) = self.diffie_hellman.as_ref() {
  2182. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2183. os.write_raw_varint32(v.get_cached_size())?;
  2184. v.write_to_with_cached_sizes(os)?;
  2185. }
  2186. os.write_unknown_fields(self.get_unknown_fields())?;
  2187. ::std::result::Result::Ok(())
  2188. }
  2189. fn get_cached_size(&self) -> u32 {
  2190. self.cached_size.get()
  2191. }
  2192. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2193. &self.unknown_fields
  2194. }
  2195. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2196. &mut self.unknown_fields
  2197. }
  2198. fn as_any(&self) -> &::std::any::Any {
  2199. self as &::std::any::Any
  2200. }
  2201. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2202. self as &mut ::std::any::Any
  2203. }
  2204. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2205. self
  2206. }
  2207. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2208. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2209. }
  2210. }
  2211. impl ::protobuf::MessageStatic for LoginCryptoChallengeUnion {
  2212. fn new() -> LoginCryptoChallengeUnion {
  2213. LoginCryptoChallengeUnion::new()
  2214. }
  2215. fn descriptor_static(_: ::std::option::Option<LoginCryptoChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2216. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2217. lock: ::protobuf::lazy::ONCE_INIT,
  2218. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2219. };
  2220. unsafe {
  2221. descriptor.get(|| {
  2222. let mut fields = ::std::vec::Vec::new();
  2223. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanChallenge>>(
  2224. "diffie_hellman",
  2225. LoginCryptoChallengeUnion::get_diffie_hellman_for_reflect,
  2226. LoginCryptoChallengeUnion::mut_diffie_hellman_for_reflect,
  2227. ));
  2228. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoChallengeUnion>(
  2229. "LoginCryptoChallengeUnion",
  2230. fields,
  2231. file_descriptor_proto()
  2232. )
  2233. })
  2234. }
  2235. }
  2236. }
  2237. impl ::protobuf::Clear for LoginCryptoChallengeUnion {
  2238. fn clear(&mut self) {
  2239. self.clear_diffie_hellman();
  2240. self.unknown_fields.clear();
  2241. }
  2242. }
  2243. impl ::std::fmt::Debug for LoginCryptoChallengeUnion {
  2244. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2245. ::protobuf::text_format::fmt(self, f)
  2246. }
  2247. }
  2248. impl ::protobuf::reflect::ProtobufValue for LoginCryptoChallengeUnion {
  2249. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2250. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2251. }
  2252. }
  2253. #[derive(PartialEq,Clone,Default)]
  2254. pub struct LoginCryptoDiffieHellmanChallenge {
  2255. // message fields
  2256. gs: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2257. server_signature_key: ::std::option::Option<i32>,
  2258. gs_signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2259. // special fields
  2260. unknown_fields: ::protobuf::UnknownFields,
  2261. cached_size: ::protobuf::CachedSize,
  2262. }
  2263. // see codegen.rs for the explanation why impl Sync explicitly
  2264. unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanChallenge {}
  2265. impl LoginCryptoDiffieHellmanChallenge {
  2266. pub fn new() -> LoginCryptoDiffieHellmanChallenge {
  2267. ::std::default::Default::default()
  2268. }
  2269. pub fn default_instance() -> &'static LoginCryptoDiffieHellmanChallenge {
  2270. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanChallenge> = ::protobuf::lazy::Lazy {
  2271. lock: ::protobuf::lazy::ONCE_INIT,
  2272. ptr: 0 as *const LoginCryptoDiffieHellmanChallenge,
  2273. };
  2274. unsafe {
  2275. instance.get(LoginCryptoDiffieHellmanChallenge::new)
  2276. }
  2277. }
  2278. // required bytes gs = 10;
  2279. pub fn clear_gs(&mut self) {
  2280. self.gs.clear();
  2281. }
  2282. pub fn has_gs(&self) -> bool {
  2283. self.gs.is_some()
  2284. }
  2285. // Param is passed by value, moved
  2286. pub fn set_gs(&mut self, v: ::std::vec::Vec<u8>) {
  2287. self.gs = ::protobuf::SingularField::some(v);
  2288. }
  2289. // Mutable pointer to the field.
  2290. // If field is not initialized, it is initialized with default value first.
  2291. pub fn mut_gs(&mut self) -> &mut ::std::vec::Vec<u8> {
  2292. if self.gs.is_none() {
  2293. self.gs.set_default();
  2294. }
  2295. self.gs.as_mut().unwrap()
  2296. }
  2297. // Take field
  2298. pub fn take_gs(&mut self) -> ::std::vec::Vec<u8> {
  2299. self.gs.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2300. }
  2301. pub fn get_gs(&self) -> &[u8] {
  2302. match self.gs.as_ref() {
  2303. Some(v) => &v,
  2304. None => &[],
  2305. }
  2306. }
  2307. fn get_gs_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2308. &self.gs
  2309. }
  2310. fn mut_gs_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2311. &mut self.gs
  2312. }
  2313. // required int32 server_signature_key = 20;
  2314. pub fn clear_server_signature_key(&mut self) {
  2315. self.server_signature_key = ::std::option::Option::None;
  2316. }
  2317. pub fn has_server_signature_key(&self) -> bool {
  2318. self.server_signature_key.is_some()
  2319. }
  2320. // Param is passed by value, moved
  2321. pub fn set_server_signature_key(&mut self, v: i32) {
  2322. self.server_signature_key = ::std::option::Option::Some(v);
  2323. }
  2324. pub fn get_server_signature_key(&self) -> i32 {
  2325. self.server_signature_key.unwrap_or(0)
  2326. }
  2327. fn get_server_signature_key_for_reflect(&self) -> &::std::option::Option<i32> {
  2328. &self.server_signature_key
  2329. }
  2330. fn mut_server_signature_key_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  2331. &mut self.server_signature_key
  2332. }
  2333. // required bytes gs_signature = 30;
  2334. pub fn clear_gs_signature(&mut self) {
  2335. self.gs_signature.clear();
  2336. }
  2337. pub fn has_gs_signature(&self) -> bool {
  2338. self.gs_signature.is_some()
  2339. }
  2340. // Param is passed by value, moved
  2341. pub fn set_gs_signature(&mut self, v: ::std::vec::Vec<u8>) {
  2342. self.gs_signature = ::protobuf::SingularField::some(v);
  2343. }
  2344. // Mutable pointer to the field.
  2345. // If field is not initialized, it is initialized with default value first.
  2346. pub fn mut_gs_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
  2347. if self.gs_signature.is_none() {
  2348. self.gs_signature.set_default();
  2349. }
  2350. self.gs_signature.as_mut().unwrap()
  2351. }
  2352. // Take field
  2353. pub fn take_gs_signature(&mut self) -> ::std::vec::Vec<u8> {
  2354. self.gs_signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2355. }
  2356. pub fn get_gs_signature(&self) -> &[u8] {
  2357. match self.gs_signature.as_ref() {
  2358. Some(v) => &v,
  2359. None => &[],
  2360. }
  2361. }
  2362. fn get_gs_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2363. &self.gs_signature
  2364. }
  2365. fn mut_gs_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2366. &mut self.gs_signature
  2367. }
  2368. }
  2369. impl ::protobuf::Message for LoginCryptoDiffieHellmanChallenge {
  2370. fn is_initialized(&self) -> bool {
  2371. if self.gs.is_none() {
  2372. return false;
  2373. }
  2374. if self.server_signature_key.is_none() {
  2375. return false;
  2376. }
  2377. if self.gs_signature.is_none() {
  2378. return false;
  2379. }
  2380. true
  2381. }
  2382. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2383. while !is.eof()? {
  2384. let (field_number, wire_type) = is.read_tag_unpack()?;
  2385. match field_number {
  2386. 10 => {
  2387. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs)?;
  2388. },
  2389. 20 => {
  2390. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2391. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2392. }
  2393. let tmp = is.read_int32()?;
  2394. self.server_signature_key = ::std::option::Option::Some(tmp);
  2395. },
  2396. 30 => {
  2397. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs_signature)?;
  2398. },
  2399. _ => {
  2400. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2401. },
  2402. };
  2403. }
  2404. ::std::result::Result::Ok(())
  2405. }
  2406. // Compute sizes of nested messages
  2407. #[allow(unused_variables)]
  2408. fn compute_size(&self) -> u32 {
  2409. let mut my_size = 0;
  2410. if let Some(ref v) = self.gs.as_ref() {
  2411. my_size += ::protobuf::rt::bytes_size(10, &v);
  2412. }
  2413. if let Some(v) = self.server_signature_key {
  2414. my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
  2415. }
  2416. if let Some(ref v) = self.gs_signature.as_ref() {
  2417. my_size += ::protobuf::rt::bytes_size(30, &v);
  2418. }
  2419. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2420. self.cached_size.set(my_size);
  2421. my_size
  2422. }
  2423. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2424. if let Some(ref v) = self.gs.as_ref() {
  2425. os.write_bytes(10, &v)?;
  2426. }
  2427. if let Some(v) = self.server_signature_key {
  2428. os.write_int32(20, v)?;
  2429. }
  2430. if let Some(ref v) = self.gs_signature.as_ref() {
  2431. os.write_bytes(30, &v)?;
  2432. }
  2433. os.write_unknown_fields(self.get_unknown_fields())?;
  2434. ::std::result::Result::Ok(())
  2435. }
  2436. fn get_cached_size(&self) -> u32 {
  2437. self.cached_size.get()
  2438. }
  2439. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2440. &self.unknown_fields
  2441. }
  2442. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2443. &mut self.unknown_fields
  2444. }
  2445. fn as_any(&self) -> &::std::any::Any {
  2446. self as &::std::any::Any
  2447. }
  2448. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2449. self as &mut ::std::any::Any
  2450. }
  2451. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2452. self
  2453. }
  2454. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2455. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2456. }
  2457. }
  2458. impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanChallenge {
  2459. fn new() -> LoginCryptoDiffieHellmanChallenge {
  2460. LoginCryptoDiffieHellmanChallenge::new()
  2461. }
  2462. fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2463. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2464. lock: ::protobuf::lazy::ONCE_INIT,
  2465. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2466. };
  2467. unsafe {
  2468. descriptor.get(|| {
  2469. let mut fields = ::std::vec::Vec::new();
  2470. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2471. "gs",
  2472. LoginCryptoDiffieHellmanChallenge::get_gs_for_reflect,
  2473. LoginCryptoDiffieHellmanChallenge::mut_gs_for_reflect,
  2474. ));
  2475. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  2476. "server_signature_key",
  2477. LoginCryptoDiffieHellmanChallenge::get_server_signature_key_for_reflect,
  2478. LoginCryptoDiffieHellmanChallenge::mut_server_signature_key_for_reflect,
  2479. ));
  2480. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2481. "gs_signature",
  2482. LoginCryptoDiffieHellmanChallenge::get_gs_signature_for_reflect,
  2483. LoginCryptoDiffieHellmanChallenge::mut_gs_signature_for_reflect,
  2484. ));
  2485. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanChallenge>(
  2486. "LoginCryptoDiffieHellmanChallenge",
  2487. fields,
  2488. file_descriptor_proto()
  2489. )
  2490. })
  2491. }
  2492. }
  2493. }
  2494. impl ::protobuf::Clear for LoginCryptoDiffieHellmanChallenge {
  2495. fn clear(&mut self) {
  2496. self.clear_gs();
  2497. self.clear_server_signature_key();
  2498. self.clear_gs_signature();
  2499. self.unknown_fields.clear();
  2500. }
  2501. }
  2502. impl ::std::fmt::Debug for LoginCryptoDiffieHellmanChallenge {
  2503. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2504. ::protobuf::text_format::fmt(self, f)
  2505. }
  2506. }
  2507. impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanChallenge {
  2508. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2509. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2510. }
  2511. }
  2512. #[derive(PartialEq,Clone,Default)]
  2513. pub struct FingerprintChallengeUnion {
  2514. // message fields
  2515. grain: ::protobuf::SingularPtrField<FingerprintGrainChallenge>,
  2516. hmac_ripemd: ::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge>,
  2517. // special fields
  2518. unknown_fields: ::protobuf::UnknownFields,
  2519. cached_size: ::protobuf::CachedSize,
  2520. }
  2521. // see codegen.rs for the explanation why impl Sync explicitly
  2522. unsafe impl ::std::marker::Sync for FingerprintChallengeUnion {}
  2523. impl FingerprintChallengeUnion {
  2524. pub fn new() -> FingerprintChallengeUnion {
  2525. ::std::default::Default::default()
  2526. }
  2527. pub fn default_instance() -> &'static FingerprintChallengeUnion {
  2528. static mut instance: ::protobuf::lazy::Lazy<FingerprintChallengeUnion> = ::protobuf::lazy::Lazy {
  2529. lock: ::protobuf::lazy::ONCE_INIT,
  2530. ptr: 0 as *const FingerprintChallengeUnion,
  2531. };
  2532. unsafe {
  2533. instance.get(FingerprintChallengeUnion::new)
  2534. }
  2535. }
  2536. // optional .FingerprintGrainChallenge grain = 10;
  2537. pub fn clear_grain(&mut self) {
  2538. self.grain.clear();
  2539. }
  2540. pub fn has_grain(&self) -> bool {
  2541. self.grain.is_some()
  2542. }
  2543. // Param is passed by value, moved
  2544. pub fn set_grain(&mut self, v: FingerprintGrainChallenge) {
  2545. self.grain = ::protobuf::SingularPtrField::some(v);
  2546. }
  2547. // Mutable pointer to the field.
  2548. // If field is not initialized, it is initialized with default value first.
  2549. pub fn mut_grain(&mut self) -> &mut FingerprintGrainChallenge {
  2550. if self.grain.is_none() {
  2551. self.grain.set_default();
  2552. }
  2553. self.grain.as_mut().unwrap()
  2554. }
  2555. // Take field
  2556. pub fn take_grain(&mut self) -> FingerprintGrainChallenge {
  2557. self.grain.take().unwrap_or_else(|| FingerprintGrainChallenge::new())
  2558. }
  2559. pub fn get_grain(&self) -> &FingerprintGrainChallenge {
  2560. self.grain.as_ref().unwrap_or_else(|| FingerprintGrainChallenge::default_instance())
  2561. }
  2562. fn get_grain_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintGrainChallenge> {
  2563. &self.grain
  2564. }
  2565. fn mut_grain_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintGrainChallenge> {
  2566. &mut self.grain
  2567. }
  2568. // optional .FingerprintHmacRipemdChallenge hmac_ripemd = 20;
  2569. pub fn clear_hmac_ripemd(&mut self) {
  2570. self.hmac_ripemd.clear();
  2571. }
  2572. pub fn has_hmac_ripemd(&self) -> bool {
  2573. self.hmac_ripemd.is_some()
  2574. }
  2575. // Param is passed by value, moved
  2576. pub fn set_hmac_ripemd(&mut self, v: FingerprintHmacRipemdChallenge) {
  2577. self.hmac_ripemd = ::protobuf::SingularPtrField::some(v);
  2578. }
  2579. // Mutable pointer to the field.
  2580. // If field is not initialized, it is initialized with default value first.
  2581. pub fn mut_hmac_ripemd(&mut self) -> &mut FingerprintHmacRipemdChallenge {
  2582. if self.hmac_ripemd.is_none() {
  2583. self.hmac_ripemd.set_default();
  2584. }
  2585. self.hmac_ripemd.as_mut().unwrap()
  2586. }
  2587. // Take field
  2588. pub fn take_hmac_ripemd(&mut self) -> FingerprintHmacRipemdChallenge {
  2589. self.hmac_ripemd.take().unwrap_or_else(|| FingerprintHmacRipemdChallenge::new())
  2590. }
  2591. pub fn get_hmac_ripemd(&self) -> &FingerprintHmacRipemdChallenge {
  2592. self.hmac_ripemd.as_ref().unwrap_or_else(|| FingerprintHmacRipemdChallenge::default_instance())
  2593. }
  2594. fn get_hmac_ripemd_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge> {
  2595. &self.hmac_ripemd
  2596. }
  2597. fn mut_hmac_ripemd_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge> {
  2598. &mut self.hmac_ripemd
  2599. }
  2600. }
  2601. impl ::protobuf::Message for FingerprintChallengeUnion {
  2602. fn is_initialized(&self) -> bool {
  2603. for v in &self.grain {
  2604. if !v.is_initialized() {
  2605. return false;
  2606. }
  2607. };
  2608. for v in &self.hmac_ripemd {
  2609. if !v.is_initialized() {
  2610. return false;
  2611. }
  2612. };
  2613. true
  2614. }
  2615. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2616. while !is.eof()? {
  2617. let (field_number, wire_type) = is.read_tag_unpack()?;
  2618. match field_number {
  2619. 10 => {
  2620. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grain)?;
  2621. },
  2622. 20 => {
  2623. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hmac_ripemd)?;
  2624. },
  2625. _ => {
  2626. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2627. },
  2628. };
  2629. }
  2630. ::std::result::Result::Ok(())
  2631. }
  2632. // Compute sizes of nested messages
  2633. #[allow(unused_variables)]
  2634. fn compute_size(&self) -> u32 {
  2635. let mut my_size = 0;
  2636. if let Some(ref v) = self.grain.as_ref() {
  2637. let len = v.compute_size();
  2638. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2639. }
  2640. if let Some(ref v) = self.hmac_ripemd.as_ref() {
  2641. let len = v.compute_size();
  2642. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  2643. }
  2644. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2645. self.cached_size.set(my_size);
  2646. my_size
  2647. }
  2648. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2649. if let Some(ref v) = self.grain.as_ref() {
  2650. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2651. os.write_raw_varint32(v.get_cached_size())?;
  2652. v.write_to_with_cached_sizes(os)?;
  2653. }
  2654. if let Some(ref v) = self.hmac_ripemd.as_ref() {
  2655. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  2656. os.write_raw_varint32(v.get_cached_size())?;
  2657. v.write_to_with_cached_sizes(os)?;
  2658. }
  2659. os.write_unknown_fields(self.get_unknown_fields())?;
  2660. ::std::result::Result::Ok(())
  2661. }
  2662. fn get_cached_size(&self) -> u32 {
  2663. self.cached_size.get()
  2664. }
  2665. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2666. &self.unknown_fields
  2667. }
  2668. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2669. &mut self.unknown_fields
  2670. }
  2671. fn as_any(&self) -> &::std::any::Any {
  2672. self as &::std::any::Any
  2673. }
  2674. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2675. self as &mut ::std::any::Any
  2676. }
  2677. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2678. self
  2679. }
  2680. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2681. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2682. }
  2683. }
  2684. impl ::protobuf::MessageStatic for FingerprintChallengeUnion {
  2685. fn new() -> FingerprintChallengeUnion {
  2686. FingerprintChallengeUnion::new()
  2687. }
  2688. fn descriptor_static(_: ::std::option::Option<FingerprintChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2689. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2690. lock: ::protobuf::lazy::ONCE_INIT,
  2691. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2692. };
  2693. unsafe {
  2694. descriptor.get(|| {
  2695. let mut fields = ::std::vec::Vec::new();
  2696. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintGrainChallenge>>(
  2697. "grain",
  2698. FingerprintChallengeUnion::get_grain_for_reflect,
  2699. FingerprintChallengeUnion::mut_grain_for_reflect,
  2700. ));
  2701. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintHmacRipemdChallenge>>(
  2702. "hmac_ripemd",
  2703. FingerprintChallengeUnion::get_hmac_ripemd_for_reflect,
  2704. FingerprintChallengeUnion::mut_hmac_ripemd_for_reflect,
  2705. ));
  2706. ::protobuf::reflect::MessageDescriptor::new::<FingerprintChallengeUnion>(
  2707. "FingerprintChallengeUnion",
  2708. fields,
  2709. file_descriptor_proto()
  2710. )
  2711. })
  2712. }
  2713. }
  2714. }
  2715. impl ::protobuf::Clear for FingerprintChallengeUnion {
  2716. fn clear(&mut self) {
  2717. self.clear_grain();
  2718. self.clear_hmac_ripemd();
  2719. self.unknown_fields.clear();
  2720. }
  2721. }
  2722. impl ::std::fmt::Debug for FingerprintChallengeUnion {
  2723. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2724. ::protobuf::text_format::fmt(self, f)
  2725. }
  2726. }
  2727. impl ::protobuf::reflect::ProtobufValue for FingerprintChallengeUnion {
  2728. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2729. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2730. }
  2731. }
  2732. #[derive(PartialEq,Clone,Default)]
  2733. pub struct FingerprintGrainChallenge {
  2734. // message fields
  2735. kek: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2736. // special fields
  2737. unknown_fields: ::protobuf::UnknownFields,
  2738. cached_size: ::protobuf::CachedSize,
  2739. }
  2740. // see codegen.rs for the explanation why impl Sync explicitly
  2741. unsafe impl ::std::marker::Sync for FingerprintGrainChallenge {}
  2742. impl FingerprintGrainChallenge {
  2743. pub fn new() -> FingerprintGrainChallenge {
  2744. ::std::default::Default::default()
  2745. }
  2746. pub fn default_instance() -> &'static FingerprintGrainChallenge {
  2747. static mut instance: ::protobuf::lazy::Lazy<FingerprintGrainChallenge> = ::protobuf::lazy::Lazy {
  2748. lock: ::protobuf::lazy::ONCE_INIT,
  2749. ptr: 0 as *const FingerprintGrainChallenge,
  2750. };
  2751. unsafe {
  2752. instance.get(FingerprintGrainChallenge::new)
  2753. }
  2754. }
  2755. // required bytes kek = 10;
  2756. pub fn clear_kek(&mut self) {
  2757. self.kek.clear();
  2758. }
  2759. pub fn has_kek(&self) -> bool {
  2760. self.kek.is_some()
  2761. }
  2762. // Param is passed by value, moved
  2763. pub fn set_kek(&mut self, v: ::std::vec::Vec<u8>) {
  2764. self.kek = ::protobuf::SingularField::some(v);
  2765. }
  2766. // Mutable pointer to the field.
  2767. // If field is not initialized, it is initialized with default value first.
  2768. pub fn mut_kek(&mut self) -> &mut ::std::vec::Vec<u8> {
  2769. if self.kek.is_none() {
  2770. self.kek.set_default();
  2771. }
  2772. self.kek.as_mut().unwrap()
  2773. }
  2774. // Take field
  2775. pub fn take_kek(&mut self) -> ::std::vec::Vec<u8> {
  2776. self.kek.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2777. }
  2778. pub fn get_kek(&self) -> &[u8] {
  2779. match self.kek.as_ref() {
  2780. Some(v) => &v,
  2781. None => &[],
  2782. }
  2783. }
  2784. fn get_kek_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2785. &self.kek
  2786. }
  2787. fn mut_kek_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2788. &mut self.kek
  2789. }
  2790. }
  2791. impl ::protobuf::Message for FingerprintGrainChallenge {
  2792. fn is_initialized(&self) -> bool {
  2793. if self.kek.is_none() {
  2794. return false;
  2795. }
  2796. true
  2797. }
  2798. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2799. while !is.eof()? {
  2800. let (field_number, wire_type) = is.read_tag_unpack()?;
  2801. match field_number {
  2802. 10 => {
  2803. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.kek)?;
  2804. },
  2805. _ => {
  2806. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2807. },
  2808. };
  2809. }
  2810. ::std::result::Result::Ok(())
  2811. }
  2812. // Compute sizes of nested messages
  2813. #[allow(unused_variables)]
  2814. fn compute_size(&self) -> u32 {
  2815. let mut my_size = 0;
  2816. if let Some(ref v) = self.kek.as_ref() {
  2817. my_size += ::protobuf::rt::bytes_size(10, &v);
  2818. }
  2819. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2820. self.cached_size.set(my_size);
  2821. my_size
  2822. }
  2823. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2824. if let Some(ref v) = self.kek.as_ref() {
  2825. os.write_bytes(10, &v)?;
  2826. }
  2827. os.write_unknown_fields(self.get_unknown_fields())?;
  2828. ::std::result::Result::Ok(())
  2829. }
  2830. fn get_cached_size(&self) -> u32 {
  2831. self.cached_size.get()
  2832. }
  2833. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2834. &self.unknown_fields
  2835. }
  2836. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2837. &mut self.unknown_fields
  2838. }
  2839. fn as_any(&self) -> &::std::any::Any {
  2840. self as &::std::any::Any
  2841. }
  2842. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2843. self as &mut ::std::any::Any
  2844. }
  2845. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2846. self
  2847. }
  2848. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2849. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2850. }
  2851. }
  2852. impl ::protobuf::MessageStatic for FingerprintGrainChallenge {
  2853. fn new() -> FingerprintGrainChallenge {
  2854. FingerprintGrainChallenge::new()
  2855. }
  2856. fn descriptor_static(_: ::std::option::Option<FingerprintGrainChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2857. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2858. lock: ::protobuf::lazy::ONCE_INIT,
  2859. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2860. };
  2861. unsafe {
  2862. descriptor.get(|| {
  2863. let mut fields = ::std::vec::Vec::new();
  2864. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2865. "kek",
  2866. FingerprintGrainChallenge::get_kek_for_reflect,
  2867. FingerprintGrainChallenge::mut_kek_for_reflect,
  2868. ));
  2869. ::protobuf::reflect::MessageDescriptor::new::<FingerprintGrainChallenge>(
  2870. "FingerprintGrainChallenge",
  2871. fields,
  2872. file_descriptor_proto()
  2873. )
  2874. })
  2875. }
  2876. }
  2877. }
  2878. impl ::protobuf::Clear for FingerprintGrainChallenge {
  2879. fn clear(&mut self) {
  2880. self.clear_kek();
  2881. self.unknown_fields.clear();
  2882. }
  2883. }
  2884. impl ::std::fmt::Debug for FingerprintGrainChallenge {
  2885. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2886. ::protobuf::text_format::fmt(self, f)
  2887. }
  2888. }
  2889. impl ::protobuf::reflect::ProtobufValue for FingerprintGrainChallenge {
  2890. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2891. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2892. }
  2893. }
  2894. #[derive(PartialEq,Clone,Default)]
  2895. pub struct FingerprintHmacRipemdChallenge {
  2896. // message fields
  2897. challenge: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2898. // special fields
  2899. unknown_fields: ::protobuf::UnknownFields,
  2900. cached_size: ::protobuf::CachedSize,
  2901. }
  2902. // see codegen.rs for the explanation why impl Sync explicitly
  2903. unsafe impl ::std::marker::Sync for FingerprintHmacRipemdChallenge {}
  2904. impl FingerprintHmacRipemdChallenge {
  2905. pub fn new() -> FingerprintHmacRipemdChallenge {
  2906. ::std::default::Default::default()
  2907. }
  2908. pub fn default_instance() -> &'static FingerprintHmacRipemdChallenge {
  2909. static mut instance: ::protobuf::lazy::Lazy<FingerprintHmacRipemdChallenge> = ::protobuf::lazy::Lazy {
  2910. lock: ::protobuf::lazy::ONCE_INIT,
  2911. ptr: 0 as *const FingerprintHmacRipemdChallenge,
  2912. };
  2913. unsafe {
  2914. instance.get(FingerprintHmacRipemdChallenge::new)
  2915. }
  2916. }
  2917. // required bytes challenge = 10;
  2918. pub fn clear_challenge(&mut self) {
  2919. self.challenge.clear();
  2920. }
  2921. pub fn has_challenge(&self) -> bool {
  2922. self.challenge.is_some()
  2923. }
  2924. // Param is passed by value, moved
  2925. pub fn set_challenge(&mut self, v: ::std::vec::Vec<u8>) {
  2926. self.challenge = ::protobuf::SingularField::some(v);
  2927. }
  2928. // Mutable pointer to the field.
  2929. // If field is not initialized, it is initialized with default value first.
  2930. pub fn mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8> {
  2931. if self.challenge.is_none() {
  2932. self.challenge.set_default();
  2933. }
  2934. self.challenge.as_mut().unwrap()
  2935. }
  2936. // Take field
  2937. pub fn take_challenge(&mut self) -> ::std::vec::Vec<u8> {
  2938. self.challenge.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2939. }
  2940. pub fn get_challenge(&self) -> &[u8] {
  2941. match self.challenge.as_ref() {
  2942. Some(v) => &v,
  2943. None => &[],
  2944. }
  2945. }
  2946. fn get_challenge_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2947. &self.challenge
  2948. }
  2949. fn mut_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2950. &mut self.challenge
  2951. }
  2952. }
  2953. impl ::protobuf::Message for FingerprintHmacRipemdChallenge {
  2954. fn is_initialized(&self) -> bool {
  2955. if self.challenge.is_none() {
  2956. return false;
  2957. }
  2958. true
  2959. }
  2960. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2961. while !is.eof()? {
  2962. let (field_number, wire_type) = is.read_tag_unpack()?;
  2963. match field_number {
  2964. 10 => {
  2965. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.challenge)?;
  2966. },
  2967. _ => {
  2968. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2969. },
  2970. };
  2971. }
  2972. ::std::result::Result::Ok(())
  2973. }
  2974. // Compute sizes of nested messages
  2975. #[allow(unused_variables)]
  2976. fn compute_size(&self) -> u32 {
  2977. let mut my_size = 0;
  2978. if let Some(ref v) = self.challenge.as_ref() {
  2979. my_size += ::protobuf::rt::bytes_size(10, &v);
  2980. }
  2981. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2982. self.cached_size.set(my_size);
  2983. my_size
  2984. }
  2985. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2986. if let Some(ref v) = self.challenge.as_ref() {
  2987. os.write_bytes(10, &v)?;
  2988. }
  2989. os.write_unknown_fields(self.get_unknown_fields())?;
  2990. ::std::result::Result::Ok(())
  2991. }
  2992. fn get_cached_size(&self) -> u32 {
  2993. self.cached_size.get()
  2994. }
  2995. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2996. &self.unknown_fields
  2997. }
  2998. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2999. &mut self.unknown_fields
  3000. }
  3001. fn as_any(&self) -> &::std::any::Any {
  3002. self as &::std::any::Any
  3003. }
  3004. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3005. self as &mut ::std::any::Any
  3006. }
  3007. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3008. self
  3009. }
  3010. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3011. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3012. }
  3013. }
  3014. impl ::protobuf::MessageStatic for FingerprintHmacRipemdChallenge {
  3015. fn new() -> FingerprintHmacRipemdChallenge {
  3016. FingerprintHmacRipemdChallenge::new()
  3017. }
  3018. fn descriptor_static(_: ::std::option::Option<FingerprintHmacRipemdChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3019. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3020. lock: ::protobuf::lazy::ONCE_INIT,
  3021. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3022. };
  3023. unsafe {
  3024. descriptor.get(|| {
  3025. let mut fields = ::std::vec::Vec::new();
  3026. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  3027. "challenge",
  3028. FingerprintHmacRipemdChallenge::get_challenge_for_reflect,
  3029. FingerprintHmacRipemdChallenge::mut_challenge_for_reflect,
  3030. ));
  3031. ::protobuf::reflect::MessageDescriptor::new::<FingerprintHmacRipemdChallenge>(
  3032. "FingerprintHmacRipemdChallenge",
  3033. fields,
  3034. file_descriptor_proto()
  3035. )
  3036. })
  3037. }
  3038. }
  3039. }
  3040. impl ::protobuf::Clear for FingerprintHmacRipemdChallenge {
  3041. fn clear(&mut self) {
  3042. self.clear_challenge();
  3043. self.unknown_fields.clear();
  3044. }
  3045. }
  3046. impl ::std::fmt::Debug for FingerprintHmacRipemdChallenge {
  3047. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3048. ::protobuf::text_format::fmt(self, f)
  3049. }
  3050. }
  3051. impl ::protobuf::reflect::ProtobufValue for FingerprintHmacRipemdChallenge {
  3052. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3053. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3054. }
  3055. }
  3056. #[derive(PartialEq,Clone,Default)]
  3057. pub struct PoWChallengeUnion {
  3058. // message fields
  3059. hash_cash: ::protobuf::SingularPtrField<PoWHashCashChallenge>,
  3060. // special fields
  3061. unknown_fields: ::protobuf::UnknownFields,
  3062. cached_size: ::protobuf::CachedSize,
  3063. }
  3064. // see codegen.rs for the explanation why impl Sync explicitly
  3065. unsafe impl ::std::marker::Sync for PoWChallengeUnion {}
  3066. impl PoWChallengeUnion {
  3067. pub fn new() -> PoWChallengeUnion {
  3068. ::std::default::Default::default()
  3069. }
  3070. pub fn default_instance() -> &'static PoWChallengeUnion {
  3071. static mut instance: ::protobuf::lazy::Lazy<PoWChallengeUnion> = ::protobuf::lazy::Lazy {
  3072. lock: ::protobuf::lazy::ONCE_INIT,
  3073. ptr: 0 as *const PoWChallengeUnion,
  3074. };
  3075. unsafe {
  3076. instance.get(PoWChallengeUnion::new)
  3077. }
  3078. }
  3079. // optional .PoWHashCashChallenge hash_cash = 10;
  3080. pub fn clear_hash_cash(&mut self) {
  3081. self.hash_cash.clear();
  3082. }
  3083. pub fn has_hash_cash(&self) -> bool {
  3084. self.hash_cash.is_some()
  3085. }
  3086. // Param is passed by value, moved
  3087. pub fn set_hash_cash(&mut self, v: PoWHashCashChallenge) {
  3088. self.hash_cash = ::protobuf::SingularPtrField::some(v);
  3089. }
  3090. // Mutable pointer to the field.
  3091. // If field is not initialized, it is initialized with default value first.
  3092. pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashChallenge {
  3093. if self.hash_cash.is_none() {
  3094. self.hash_cash.set_default();
  3095. }
  3096. self.hash_cash.as_mut().unwrap()
  3097. }
  3098. // Take field
  3099. pub fn take_hash_cash(&mut self) -> PoWHashCashChallenge {
  3100. self.hash_cash.take().unwrap_or_else(|| PoWHashCashChallenge::new())
  3101. }
  3102. pub fn get_hash_cash(&self) -> &PoWHashCashChallenge {
  3103. self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashChallenge::default_instance())
  3104. }
  3105. fn get_hash_cash_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWHashCashChallenge> {
  3106. &self.hash_cash
  3107. }
  3108. fn mut_hash_cash_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWHashCashChallenge> {
  3109. &mut self.hash_cash
  3110. }
  3111. }
  3112. impl ::protobuf::Message for PoWChallengeUnion {
  3113. fn is_initialized(&self) -> bool {
  3114. for v in &self.hash_cash {
  3115. if !v.is_initialized() {
  3116. return false;
  3117. }
  3118. };
  3119. true
  3120. }
  3121. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3122. while !is.eof()? {
  3123. let (field_number, wire_type) = is.read_tag_unpack()?;
  3124. match field_number {
  3125. 10 => {
  3126. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
  3127. },
  3128. _ => {
  3129. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3130. },
  3131. };
  3132. }
  3133. ::std::result::Result::Ok(())
  3134. }
  3135. // Compute sizes of nested messages
  3136. #[allow(unused_variables)]
  3137. fn compute_size(&self) -> u32 {
  3138. let mut my_size = 0;
  3139. if let Some(ref v) = self.hash_cash.as_ref() {
  3140. let len = v.compute_size();
  3141. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3142. }
  3143. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3144. self.cached_size.set(my_size);
  3145. my_size
  3146. }
  3147. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3148. if let Some(ref v) = self.hash_cash.as_ref() {
  3149. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3150. os.write_raw_varint32(v.get_cached_size())?;
  3151. v.write_to_with_cached_sizes(os)?;
  3152. }
  3153. os.write_unknown_fields(self.get_unknown_fields())?;
  3154. ::std::result::Result::Ok(())
  3155. }
  3156. fn get_cached_size(&self) -> u32 {
  3157. self.cached_size.get()
  3158. }
  3159. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3160. &self.unknown_fields
  3161. }
  3162. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3163. &mut self.unknown_fields
  3164. }
  3165. fn as_any(&self) -> &::std::any::Any {
  3166. self as &::std::any::Any
  3167. }
  3168. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3169. self as &mut ::std::any::Any
  3170. }
  3171. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3172. self
  3173. }
  3174. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3175. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3176. }
  3177. }
  3178. impl ::protobuf::MessageStatic for PoWChallengeUnion {
  3179. fn new() -> PoWChallengeUnion {
  3180. PoWChallengeUnion::new()
  3181. }
  3182. fn descriptor_static(_: ::std::option::Option<PoWChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3183. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3184. lock: ::protobuf::lazy::ONCE_INIT,
  3185. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3186. };
  3187. unsafe {
  3188. descriptor.get(|| {
  3189. let mut fields = ::std::vec::Vec::new();
  3190. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashChallenge>>(
  3191. "hash_cash",
  3192. PoWChallengeUnion::get_hash_cash_for_reflect,
  3193. PoWChallengeUnion::mut_hash_cash_for_reflect,
  3194. ));
  3195. ::protobuf::reflect::MessageDescriptor::new::<PoWChallengeUnion>(
  3196. "PoWChallengeUnion",
  3197. fields,
  3198. file_descriptor_proto()
  3199. )
  3200. })
  3201. }
  3202. }
  3203. }
  3204. impl ::protobuf::Clear for PoWChallengeUnion {
  3205. fn clear(&mut self) {
  3206. self.clear_hash_cash();
  3207. self.unknown_fields.clear();
  3208. }
  3209. }
  3210. impl ::std::fmt::Debug for PoWChallengeUnion {
  3211. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3212. ::protobuf::text_format::fmt(self, f)
  3213. }
  3214. }
  3215. impl ::protobuf::reflect::ProtobufValue for PoWChallengeUnion {
  3216. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3217. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3218. }
  3219. }
  3220. #[derive(PartialEq,Clone,Default)]
  3221. pub struct PoWHashCashChallenge {
  3222. // message fields
  3223. prefix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  3224. length: ::std::option::Option<i32>,
  3225. target: ::std::option::Option<i32>,
  3226. // special fields
  3227. unknown_fields: ::protobuf::UnknownFields,
  3228. cached_size: ::protobuf::CachedSize,
  3229. }
  3230. // see codegen.rs for the explanation why impl Sync explicitly
  3231. unsafe impl ::std::marker::Sync for PoWHashCashChallenge {}
  3232. impl PoWHashCashChallenge {
  3233. pub fn new() -> PoWHashCashChallenge {
  3234. ::std::default::Default::default()
  3235. }
  3236. pub fn default_instance() -> &'static PoWHashCashChallenge {
  3237. static mut instance: ::protobuf::lazy::Lazy<PoWHashCashChallenge> = ::protobuf::lazy::Lazy {
  3238. lock: ::protobuf::lazy::ONCE_INIT,
  3239. ptr: 0 as *const PoWHashCashChallenge,
  3240. };
  3241. unsafe {
  3242. instance.get(PoWHashCashChallenge::new)
  3243. }
  3244. }
  3245. // optional bytes prefix = 10;
  3246. pub fn clear_prefix(&mut self) {
  3247. self.prefix.clear();
  3248. }
  3249. pub fn has_prefix(&self) -> bool {
  3250. self.prefix.is_some()
  3251. }
  3252. // Param is passed by value, moved
  3253. pub fn set_prefix(&mut self, v: ::std::vec::Vec<u8>) {
  3254. self.prefix = ::protobuf::SingularField::some(v);
  3255. }
  3256. // Mutable pointer to the field.
  3257. // If field is not initialized, it is initialized with default value first.
  3258. pub fn mut_prefix(&mut self) -> &mut ::std::vec::Vec<u8> {
  3259. if self.prefix.is_none() {
  3260. self.prefix.set_default();
  3261. }
  3262. self.prefix.as_mut().unwrap()
  3263. }
  3264. // Take field
  3265. pub fn take_prefix(&mut self) -> ::std::vec::Vec<u8> {
  3266. self.prefix.take().unwrap_or_else(|| ::std::vec::Vec::new())
  3267. }
  3268. pub fn get_prefix(&self) -> &[u8] {
  3269. match self.prefix.as_ref() {
  3270. Some(v) => &v,
  3271. None => &[],
  3272. }
  3273. }
  3274. fn get_prefix_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  3275. &self.prefix
  3276. }
  3277. fn mut_prefix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  3278. &mut self.prefix
  3279. }
  3280. // optional int32 length = 20;
  3281. pub fn clear_length(&mut self) {
  3282. self.length = ::std::option::Option::None;
  3283. }
  3284. pub fn has_length(&self) -> bool {
  3285. self.length.is_some()
  3286. }
  3287. // Param is passed by value, moved
  3288. pub fn set_length(&mut self, v: i32) {
  3289. self.length = ::std::option::Option::Some(v);
  3290. }
  3291. pub fn get_length(&self) -> i32 {
  3292. self.length.unwrap_or(0)
  3293. }
  3294. fn get_length_for_reflect(&self) -> &::std::option::Option<i32> {
  3295. &self.length
  3296. }
  3297. fn mut_length_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  3298. &mut self.length
  3299. }
  3300. // optional int32 target = 30;
  3301. pub fn clear_target(&mut self) {
  3302. self.target = ::std::option::Option::None;
  3303. }
  3304. pub fn has_target(&self) -> bool {
  3305. self.target.is_some()
  3306. }
  3307. // Param is passed by value, moved
  3308. pub fn set_target(&mut self, v: i32) {
  3309. self.target = ::std::option::Option::Some(v);
  3310. }
  3311. pub fn get_target(&self) -> i32 {
  3312. self.target.unwrap_or(0)
  3313. }
  3314. fn get_target_for_reflect(&self) -> &::std::option::Option<i32> {
  3315. &self.target
  3316. }
  3317. fn mut_target_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  3318. &mut self.target
  3319. }
  3320. }
  3321. impl ::protobuf::Message for PoWHashCashChallenge {
  3322. fn is_initialized(&self) -> bool {
  3323. true
  3324. }
  3325. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3326. while !is.eof()? {
  3327. let (field_number, wire_type) = is.read_tag_unpack()?;
  3328. match field_number {
  3329. 10 => {
  3330. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.prefix)?;
  3331. },
  3332. 20 => {
  3333. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3334. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3335. }
  3336. let tmp = is.read_int32()?;
  3337. self.length = ::std::option::Option::Some(tmp);
  3338. },
  3339. 30 => {
  3340. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3341. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3342. }
  3343. let tmp = is.read_int32()?;
  3344. self.target = ::std::option::Option::Some(tmp);
  3345. },
  3346. _ => {
  3347. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3348. },
  3349. };
  3350. }
  3351. ::std::result::Result::Ok(())
  3352. }
  3353. // Compute sizes of nested messages
  3354. #[allow(unused_variables)]
  3355. fn compute_size(&self) -> u32 {
  3356. let mut my_size = 0;
  3357. if let Some(ref v) = self.prefix.as_ref() {
  3358. my_size += ::protobuf::rt::bytes_size(10, &v);
  3359. }
  3360. if let Some(v) = self.length {
  3361. my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
  3362. }
  3363. if let Some(v) = self.target {
  3364. my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
  3365. }
  3366. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3367. self.cached_size.set(my_size);
  3368. my_size
  3369. }
  3370. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3371. if let Some(ref v) = self.prefix.as_ref() {
  3372. os.write_bytes(10, &v)?;
  3373. }
  3374. if let Some(v) = self.length {
  3375. os.write_int32(20, v)?;
  3376. }
  3377. if let Some(v) = self.target {
  3378. os.write_int32(30, v)?;
  3379. }
  3380. os.write_unknown_fields(self.get_unknown_fields())?;
  3381. ::std::result::Result::Ok(())
  3382. }
  3383. fn get_cached_size(&self) -> u32 {
  3384. self.cached_size.get()
  3385. }
  3386. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3387. &self.unknown_fields
  3388. }
  3389. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3390. &mut self.unknown_fields
  3391. }
  3392. fn as_any(&self) -> &::std::any::Any {
  3393. self as &::std::any::Any
  3394. }
  3395. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3396. self as &mut ::std::any::Any
  3397. }
  3398. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3399. self
  3400. }
  3401. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3402. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3403. }
  3404. }
  3405. impl ::protobuf::MessageStatic for PoWHashCashChallenge {
  3406. fn new() -> PoWHashCashChallenge {
  3407. PoWHashCashChallenge::new()
  3408. }
  3409. fn descriptor_static(_: ::std::option::Option<PoWHashCashChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3410. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3411. lock: ::protobuf::lazy::ONCE_INIT,
  3412. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3413. };
  3414. unsafe {
  3415. descriptor.get(|| {
  3416. let mut fields = ::std::vec::Vec::new();
  3417. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  3418. "prefix",
  3419. PoWHashCashChallenge::get_prefix_for_reflect,
  3420. PoWHashCashChallenge::mut_prefix_for_reflect,
  3421. ));
  3422. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  3423. "length",
  3424. PoWHashCashChallenge::get_length_for_reflect,
  3425. PoWHashCashChallenge::mut_length_for_reflect,
  3426. ));
  3427. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  3428. "target",
  3429. PoWHashCashChallenge::get_target_for_reflect,
  3430. PoWHashCashChallenge::mut_target_for_reflect,
  3431. ));
  3432. ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashChallenge>(
  3433. "PoWHashCashChallenge",
  3434. fields,
  3435. file_descriptor_proto()
  3436. )
  3437. })
  3438. }
  3439. }
  3440. }
  3441. impl ::protobuf::Clear for PoWHashCashChallenge {
  3442. fn clear(&mut self) {
  3443. self.clear_prefix();
  3444. self.clear_length();
  3445. self.clear_target();
  3446. self.unknown_fields.clear();
  3447. }
  3448. }
  3449. impl ::std::fmt::Debug for PoWHashCashChallenge {
  3450. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3451. ::protobuf::text_format::fmt(self, f)
  3452. }
  3453. }
  3454. impl ::protobuf::reflect::ProtobufValue for PoWHashCashChallenge {
  3455. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3456. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3457. }
  3458. }
  3459. #[derive(PartialEq,Clone,Default)]
  3460. pub struct CryptoChallengeUnion {
  3461. // message fields
  3462. shannon: ::protobuf::SingularPtrField<CryptoShannonChallenge>,
  3463. rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge>,
  3464. // special fields
  3465. unknown_fields: ::protobuf::UnknownFields,
  3466. cached_size: ::protobuf::CachedSize,
  3467. }
  3468. // see codegen.rs for the explanation why impl Sync explicitly
  3469. unsafe impl ::std::marker::Sync for CryptoChallengeUnion {}
  3470. impl CryptoChallengeUnion {
  3471. pub fn new() -> CryptoChallengeUnion {
  3472. ::std::default::Default::default()
  3473. }
  3474. pub fn default_instance() -> &'static CryptoChallengeUnion {
  3475. static mut instance: ::protobuf::lazy::Lazy<CryptoChallengeUnion> = ::protobuf::lazy::Lazy {
  3476. lock: ::protobuf::lazy::ONCE_INIT,
  3477. ptr: 0 as *const CryptoChallengeUnion,
  3478. };
  3479. unsafe {
  3480. instance.get(CryptoChallengeUnion::new)
  3481. }
  3482. }
  3483. // optional .CryptoShannonChallenge shannon = 10;
  3484. pub fn clear_shannon(&mut self) {
  3485. self.shannon.clear();
  3486. }
  3487. pub fn has_shannon(&self) -> bool {
  3488. self.shannon.is_some()
  3489. }
  3490. // Param is passed by value, moved
  3491. pub fn set_shannon(&mut self, v: CryptoShannonChallenge) {
  3492. self.shannon = ::protobuf::SingularPtrField::some(v);
  3493. }
  3494. // Mutable pointer to the field.
  3495. // If field is not initialized, it is initialized with default value first.
  3496. pub fn mut_shannon(&mut self) -> &mut CryptoShannonChallenge {
  3497. if self.shannon.is_none() {
  3498. self.shannon.set_default();
  3499. }
  3500. self.shannon.as_mut().unwrap()
  3501. }
  3502. // Take field
  3503. pub fn take_shannon(&mut self) -> CryptoShannonChallenge {
  3504. self.shannon.take().unwrap_or_else(|| CryptoShannonChallenge::new())
  3505. }
  3506. pub fn get_shannon(&self) -> &CryptoShannonChallenge {
  3507. self.shannon.as_ref().unwrap_or_else(|| CryptoShannonChallenge::default_instance())
  3508. }
  3509. fn get_shannon_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoShannonChallenge> {
  3510. &self.shannon
  3511. }
  3512. fn mut_shannon_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoShannonChallenge> {
  3513. &mut self.shannon
  3514. }
  3515. // optional .CryptoRc4Sha1HmacChallenge rc4_sha1_hmac = 20;
  3516. pub fn clear_rc4_sha1_hmac(&mut self) {
  3517. self.rc4_sha1_hmac.clear();
  3518. }
  3519. pub fn has_rc4_sha1_hmac(&self) -> bool {
  3520. self.rc4_sha1_hmac.is_some()
  3521. }
  3522. // Param is passed by value, moved
  3523. pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacChallenge) {
  3524. self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
  3525. }
  3526. // Mutable pointer to the field.
  3527. // If field is not initialized, it is initialized with default value first.
  3528. pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacChallenge {
  3529. if self.rc4_sha1_hmac.is_none() {
  3530. self.rc4_sha1_hmac.set_default();
  3531. }
  3532. self.rc4_sha1_hmac.as_mut().unwrap()
  3533. }
  3534. // Take field
  3535. pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacChallenge {
  3536. self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::new())
  3537. }
  3538. pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacChallenge {
  3539. self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::default_instance())
  3540. }
  3541. fn get_rc4_sha1_hmac_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge> {
  3542. &self.rc4_sha1_hmac
  3543. }
  3544. fn mut_rc4_sha1_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge> {
  3545. &mut self.rc4_sha1_hmac
  3546. }
  3547. }
  3548. impl ::protobuf::Message for CryptoChallengeUnion {
  3549. fn is_initialized(&self) -> bool {
  3550. for v in &self.shannon {
  3551. if !v.is_initialized() {
  3552. return false;
  3553. }
  3554. };
  3555. for v in &self.rc4_sha1_hmac {
  3556. if !v.is_initialized() {
  3557. return false;
  3558. }
  3559. };
  3560. true
  3561. }
  3562. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3563. while !is.eof()? {
  3564. let (field_number, wire_type) = is.read_tag_unpack()?;
  3565. match field_number {
  3566. 10 => {
  3567. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
  3568. },
  3569. 20 => {
  3570. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
  3571. },
  3572. _ => {
  3573. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3574. },
  3575. };
  3576. }
  3577. ::std::result::Result::Ok(())
  3578. }
  3579. // Compute sizes of nested messages
  3580. #[allow(unused_variables)]
  3581. fn compute_size(&self) -> u32 {
  3582. let mut my_size = 0;
  3583. if let Some(ref v) = self.shannon.as_ref() {
  3584. let len = v.compute_size();
  3585. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3586. }
  3587. if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
  3588. let len = v.compute_size();
  3589. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3590. }
  3591. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3592. self.cached_size.set(my_size);
  3593. my_size
  3594. }
  3595. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3596. if let Some(ref v) = self.shannon.as_ref() {
  3597. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3598. os.write_raw_varint32(v.get_cached_size())?;
  3599. v.write_to_with_cached_sizes(os)?;
  3600. }
  3601. if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
  3602. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3603. os.write_raw_varint32(v.get_cached_size())?;
  3604. v.write_to_with_cached_sizes(os)?;
  3605. }
  3606. os.write_unknown_fields(self.get_unknown_fields())?;
  3607. ::std::result::Result::Ok(())
  3608. }
  3609. fn get_cached_size(&self) -> u32 {
  3610. self.cached_size.get()
  3611. }
  3612. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3613. &self.unknown_fields
  3614. }
  3615. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3616. &mut self.unknown_fields
  3617. }
  3618. fn as_any(&self) -> &::std::any::Any {
  3619. self as &::std::any::Any
  3620. }
  3621. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3622. self as &mut ::std::any::Any
  3623. }
  3624. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3625. self
  3626. }
  3627. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3628. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3629. }
  3630. }
  3631. impl ::protobuf::MessageStatic for CryptoChallengeUnion {
  3632. fn new() -> CryptoChallengeUnion {
  3633. CryptoChallengeUnion::new()
  3634. }
  3635. fn descriptor_static(_: ::std::option::Option<CryptoChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3636. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3637. lock: ::protobuf::lazy::ONCE_INIT,
  3638. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3639. };
  3640. unsafe {
  3641. descriptor.get(|| {
  3642. let mut fields = ::std::vec::Vec::new();
  3643. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonChallenge>>(
  3644. "shannon",
  3645. CryptoChallengeUnion::get_shannon_for_reflect,
  3646. CryptoChallengeUnion::mut_shannon_for_reflect,
  3647. ));
  3648. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacChallenge>>(
  3649. "rc4_sha1_hmac",
  3650. CryptoChallengeUnion::get_rc4_sha1_hmac_for_reflect,
  3651. CryptoChallengeUnion::mut_rc4_sha1_hmac_for_reflect,
  3652. ));
  3653. ::protobuf::reflect::MessageDescriptor::new::<CryptoChallengeUnion>(
  3654. "CryptoChallengeUnion",
  3655. fields,
  3656. file_descriptor_proto()
  3657. )
  3658. })
  3659. }
  3660. }
  3661. }
  3662. impl ::protobuf::Clear for CryptoChallengeUnion {
  3663. fn clear(&mut self) {
  3664. self.clear_shannon();
  3665. self.clear_rc4_sha1_hmac();
  3666. self.unknown_fields.clear();
  3667. }
  3668. }
  3669. impl ::std::fmt::Debug for CryptoChallengeUnion {
  3670. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3671. ::protobuf::text_format::fmt(self, f)
  3672. }
  3673. }
  3674. impl ::protobuf::reflect::ProtobufValue for CryptoChallengeUnion {
  3675. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3676. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3677. }
  3678. }
  3679. #[derive(PartialEq,Clone,Default)]
  3680. pub struct CryptoShannonChallenge {
  3681. // special fields
  3682. unknown_fields: ::protobuf::UnknownFields,
  3683. cached_size: ::protobuf::CachedSize,
  3684. }
  3685. // see codegen.rs for the explanation why impl Sync explicitly
  3686. unsafe impl ::std::marker::Sync for CryptoShannonChallenge {}
  3687. impl CryptoShannonChallenge {
  3688. pub fn new() -> CryptoShannonChallenge {
  3689. ::std::default::Default::default()
  3690. }
  3691. pub fn default_instance() -> &'static CryptoShannonChallenge {
  3692. static mut instance: ::protobuf::lazy::Lazy<CryptoShannonChallenge> = ::protobuf::lazy::Lazy {
  3693. lock: ::protobuf::lazy::ONCE_INIT,
  3694. ptr: 0 as *const CryptoShannonChallenge,
  3695. };
  3696. unsafe {
  3697. instance.get(CryptoShannonChallenge::new)
  3698. }
  3699. }
  3700. }
  3701. impl ::protobuf::Message for CryptoShannonChallenge {
  3702. fn is_initialized(&self) -> bool {
  3703. true
  3704. }
  3705. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3706. while !is.eof()? {
  3707. let (field_number, wire_type) = is.read_tag_unpack()?;
  3708. match field_number {
  3709. _ => {
  3710. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3711. },
  3712. };
  3713. }
  3714. ::std::result::Result::Ok(())
  3715. }
  3716. // Compute sizes of nested messages
  3717. #[allow(unused_variables)]
  3718. fn compute_size(&self) -> u32 {
  3719. let mut my_size = 0;
  3720. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3721. self.cached_size.set(my_size);
  3722. my_size
  3723. }
  3724. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3725. os.write_unknown_fields(self.get_unknown_fields())?;
  3726. ::std::result::Result::Ok(())
  3727. }
  3728. fn get_cached_size(&self) -> u32 {
  3729. self.cached_size.get()
  3730. }
  3731. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3732. &self.unknown_fields
  3733. }
  3734. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3735. &mut self.unknown_fields
  3736. }
  3737. fn as_any(&self) -> &::std::any::Any {
  3738. self as &::std::any::Any
  3739. }
  3740. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3741. self as &mut ::std::any::Any
  3742. }
  3743. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3744. self
  3745. }
  3746. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3747. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3748. }
  3749. }
  3750. impl ::protobuf::MessageStatic for CryptoShannonChallenge {
  3751. fn new() -> CryptoShannonChallenge {
  3752. CryptoShannonChallenge::new()
  3753. }
  3754. fn descriptor_static(_: ::std::option::Option<CryptoShannonChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3755. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3756. lock: ::protobuf::lazy::ONCE_INIT,
  3757. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3758. };
  3759. unsafe {
  3760. descriptor.get(|| {
  3761. let fields = ::std::vec::Vec::new();
  3762. ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonChallenge>(
  3763. "CryptoShannonChallenge",
  3764. fields,
  3765. file_descriptor_proto()
  3766. )
  3767. })
  3768. }
  3769. }
  3770. }
  3771. impl ::protobuf::Clear for CryptoShannonChallenge {
  3772. fn clear(&mut self) {
  3773. self.unknown_fields.clear();
  3774. }
  3775. }
  3776. impl ::std::fmt::Debug for CryptoShannonChallenge {
  3777. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3778. ::protobuf::text_format::fmt(self, f)
  3779. }
  3780. }
  3781. impl ::protobuf::reflect::ProtobufValue for CryptoShannonChallenge {
  3782. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3783. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3784. }
  3785. }
  3786. #[derive(PartialEq,Clone,Default)]
  3787. pub struct CryptoRc4Sha1HmacChallenge {
  3788. // special fields
  3789. unknown_fields: ::protobuf::UnknownFields,
  3790. cached_size: ::protobuf::CachedSize,
  3791. }
  3792. // see codegen.rs for the explanation why impl Sync explicitly
  3793. unsafe impl ::std::marker::Sync for CryptoRc4Sha1HmacChallenge {}
  3794. impl CryptoRc4Sha1HmacChallenge {
  3795. pub fn new() -> CryptoRc4Sha1HmacChallenge {
  3796. ::std::default::Default::default()
  3797. }
  3798. pub fn default_instance() -> &'static CryptoRc4Sha1HmacChallenge {
  3799. static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacChallenge> = ::protobuf::lazy::Lazy {
  3800. lock: ::protobuf::lazy::ONCE_INIT,
  3801. ptr: 0 as *const CryptoRc4Sha1HmacChallenge,
  3802. };
  3803. unsafe {
  3804. instance.get(CryptoRc4Sha1HmacChallenge::new)
  3805. }
  3806. }
  3807. }
  3808. impl ::protobuf::Message for CryptoRc4Sha1HmacChallenge {
  3809. fn is_initialized(&self) -> bool {
  3810. true
  3811. }
  3812. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3813. while !is.eof()? {
  3814. let (field_number, wire_type) = is.read_tag_unpack()?;
  3815. match field_number {
  3816. _ => {
  3817. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3818. },
  3819. };
  3820. }
  3821. ::std::result::Result::Ok(())
  3822. }
  3823. // Compute sizes of nested messages
  3824. #[allow(unused_variables)]
  3825. fn compute_size(&self) -> u32 {
  3826. let mut my_size = 0;
  3827. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3828. self.cached_size.set(my_size);
  3829. my_size
  3830. }
  3831. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3832. os.write_unknown_fields(self.get_unknown_fields())?;
  3833. ::std::result::Result::Ok(())
  3834. }
  3835. fn get_cached_size(&self) -> u32 {
  3836. self.cached_size.get()
  3837. }
  3838. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3839. &self.unknown_fields
  3840. }
  3841. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3842. &mut self.unknown_fields
  3843. }
  3844. fn as_any(&self) -> &::std::any::Any {
  3845. self as &::std::any::Any
  3846. }
  3847. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3848. self as &mut ::std::any::Any
  3849. }
  3850. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3851. self
  3852. }
  3853. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3854. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3855. }
  3856. }
  3857. impl ::protobuf::MessageStatic for CryptoRc4Sha1HmacChallenge {
  3858. fn new() -> CryptoRc4Sha1HmacChallenge {
  3859. CryptoRc4Sha1HmacChallenge::new()
  3860. }
  3861. fn descriptor_static(_: ::std::option::Option<CryptoRc4Sha1HmacChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3862. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3863. lock: ::protobuf::lazy::ONCE_INIT,
  3864. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3865. };
  3866. unsafe {
  3867. descriptor.get(|| {
  3868. let fields = ::std::vec::Vec::new();
  3869. ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacChallenge>(
  3870. "CryptoRc4Sha1HmacChallenge",
  3871. fields,
  3872. file_descriptor_proto()
  3873. )
  3874. })
  3875. }
  3876. }
  3877. }
  3878. impl ::protobuf::Clear for CryptoRc4Sha1HmacChallenge {
  3879. fn clear(&mut self) {
  3880. self.unknown_fields.clear();
  3881. }
  3882. }
  3883. impl ::std::fmt::Debug for CryptoRc4Sha1HmacChallenge {
  3884. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3885. ::protobuf::text_format::fmt(self, f)
  3886. }
  3887. }
  3888. impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacChallenge {
  3889. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3890. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3891. }
  3892. }
  3893. #[derive(PartialEq,Clone,Default)]
  3894. pub struct UpgradeRequiredMessage {
  3895. // message fields
  3896. upgrade_signed_part: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  3897. signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  3898. http_suffix: ::protobuf::SingularField<::std::string::String>,
  3899. // special fields
  3900. unknown_fields: ::protobuf::UnknownFields,
  3901. cached_size: ::protobuf::CachedSize,
  3902. }
  3903. // see codegen.rs for the explanation why impl Sync explicitly
  3904. unsafe impl ::std::marker::Sync for UpgradeRequiredMessage {}
  3905. impl UpgradeRequiredMessage {
  3906. pub fn new() -> UpgradeRequiredMessage {
  3907. ::std::default::Default::default()
  3908. }
  3909. pub fn default_instance() -> &'static UpgradeRequiredMessage {
  3910. static mut instance: ::protobuf::lazy::Lazy<UpgradeRequiredMessage> = ::protobuf::lazy::Lazy {
  3911. lock: ::protobuf::lazy::ONCE_INIT,
  3912. ptr: 0 as *const UpgradeRequiredMessage,
  3913. };
  3914. unsafe {
  3915. instance.get(UpgradeRequiredMessage::new)
  3916. }
  3917. }
  3918. // required bytes upgrade_signed_part = 10;
  3919. pub fn clear_upgrade_signed_part(&mut self) {
  3920. self.upgrade_signed_part.clear();
  3921. }
  3922. pub fn has_upgrade_signed_part(&self) -> bool {
  3923. self.upgrade_signed_part.is_some()
  3924. }
  3925. // Param is passed by value, moved
  3926. pub fn set_upgrade_signed_part(&mut self, v: ::std::vec::Vec<u8>) {
  3927. self.upgrade_signed_part = ::protobuf::SingularField::some(v);
  3928. }
  3929. // Mutable pointer to the field.
  3930. // If field is not initialized, it is initialized with default value first.
  3931. pub fn mut_upgrade_signed_part(&mut self) -> &mut ::std::vec::Vec<u8> {
  3932. if self.upgrade_signed_part.is_none() {
  3933. self.upgrade_signed_part.set_default();
  3934. }
  3935. self.upgrade_signed_part.as_mut().unwrap()
  3936. }
  3937. // Take field
  3938. pub fn take_upgrade_signed_part(&mut self) -> ::std::vec::Vec<u8> {
  3939. self.upgrade_signed_part.take().unwrap_or_else(|| ::std::vec::Vec::new())
  3940. }
  3941. pub fn get_upgrade_signed_part(&self) -> &[u8] {
  3942. match self.upgrade_signed_part.as_ref() {
  3943. Some(v) => &v,
  3944. None => &[],
  3945. }
  3946. }
  3947. fn get_upgrade_signed_part_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  3948. &self.upgrade_signed_part
  3949. }
  3950. fn mut_upgrade_signed_part_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  3951. &mut self.upgrade_signed_part
  3952. }
  3953. // required bytes signature = 20;
  3954. pub fn clear_signature(&mut self) {
  3955. self.signature.clear();
  3956. }
  3957. pub fn has_signature(&self) -> bool {
  3958. self.signature.is_some()
  3959. }
  3960. // Param is passed by value, moved
  3961. pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
  3962. self.signature = ::protobuf::SingularField::some(v);
  3963. }
  3964. // Mutable pointer to the field.
  3965. // If field is not initialized, it is initialized with default value first.
  3966. pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
  3967. if self.signature.is_none() {
  3968. self.signature.set_default();
  3969. }
  3970. self.signature.as_mut().unwrap()
  3971. }
  3972. // Take field
  3973. pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
  3974. self.signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
  3975. }
  3976. pub fn get_signature(&self) -> &[u8] {
  3977. match self.signature.as_ref() {
  3978. Some(v) => &v,
  3979. None => &[],
  3980. }
  3981. }
  3982. fn get_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  3983. &self.signature
  3984. }
  3985. fn mut_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  3986. &mut self.signature
  3987. }
  3988. // optional string http_suffix = 30;
  3989. pub fn clear_http_suffix(&mut self) {
  3990. self.http_suffix.clear();
  3991. }
  3992. pub fn has_http_suffix(&self) -> bool {
  3993. self.http_suffix.is_some()
  3994. }
  3995. // Param is passed by value, moved
  3996. pub fn set_http_suffix(&mut self, v: ::std::string::String) {
  3997. self.http_suffix = ::protobuf::SingularField::some(v);
  3998. }
  3999. // Mutable pointer to the field.
  4000. // If field is not initialized, it is initialized with default value first.
  4001. pub fn mut_http_suffix(&mut self) -> &mut ::std::string::String {
  4002. if self.http_suffix.is_none() {
  4003. self.http_suffix.set_default();
  4004. }
  4005. self.http_suffix.as_mut().unwrap()
  4006. }
  4007. // Take field
  4008. pub fn take_http_suffix(&mut self) -> ::std::string::String {
  4009. self.http_suffix.take().unwrap_or_else(|| ::std::string::String::new())
  4010. }
  4011. pub fn get_http_suffix(&self) -> &str {
  4012. match self.http_suffix.as_ref() {
  4013. Some(v) => &v,
  4014. None => "",
  4015. }
  4016. }
  4017. fn get_http_suffix_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  4018. &self.http_suffix
  4019. }
  4020. fn mut_http_suffix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  4021. &mut self.http_suffix
  4022. }
  4023. }
  4024. impl ::protobuf::Message for UpgradeRequiredMessage {
  4025. fn is_initialized(&self) -> bool {
  4026. if self.upgrade_signed_part.is_none() {
  4027. return false;
  4028. }
  4029. if self.signature.is_none() {
  4030. return false;
  4031. }
  4032. true
  4033. }
  4034. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4035. while !is.eof()? {
  4036. let (field_number, wire_type) = is.read_tag_unpack()?;
  4037. match field_number {
  4038. 10 => {
  4039. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.upgrade_signed_part)?;
  4040. },
  4041. 20 => {
  4042. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signature)?;
  4043. },
  4044. 30 => {
  4045. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.http_suffix)?;
  4046. },
  4047. _ => {
  4048. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4049. },
  4050. };
  4051. }
  4052. ::std::result::Result::Ok(())
  4053. }
  4054. // Compute sizes of nested messages
  4055. #[allow(unused_variables)]
  4056. fn compute_size(&self) -> u32 {
  4057. let mut my_size = 0;
  4058. if let Some(ref v) = self.upgrade_signed_part.as_ref() {
  4059. my_size += ::protobuf::rt::bytes_size(10, &v);
  4060. }
  4061. if let Some(ref v) = self.signature.as_ref() {
  4062. my_size += ::protobuf::rt::bytes_size(20, &v);
  4063. }
  4064. if let Some(ref v) = self.http_suffix.as_ref() {
  4065. my_size += ::protobuf::rt::string_size(30, &v);
  4066. }
  4067. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4068. self.cached_size.set(my_size);
  4069. my_size
  4070. }
  4071. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4072. if let Some(ref v) = self.upgrade_signed_part.as_ref() {
  4073. os.write_bytes(10, &v)?;
  4074. }
  4075. if let Some(ref v) = self.signature.as_ref() {
  4076. os.write_bytes(20, &v)?;
  4077. }
  4078. if let Some(ref v) = self.http_suffix.as_ref() {
  4079. os.write_string(30, &v)?;
  4080. }
  4081. os.write_unknown_fields(self.get_unknown_fields())?;
  4082. ::std::result::Result::Ok(())
  4083. }
  4084. fn get_cached_size(&self) -> u32 {
  4085. self.cached_size.get()
  4086. }
  4087. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4088. &self.unknown_fields
  4089. }
  4090. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4091. &mut self.unknown_fields
  4092. }
  4093. fn as_any(&self) -> &::std::any::Any {
  4094. self as &::std::any::Any
  4095. }
  4096. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4097. self as &mut ::std::any::Any
  4098. }
  4099. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4100. self
  4101. }
  4102. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4103. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4104. }
  4105. }
  4106. impl ::protobuf::MessageStatic for UpgradeRequiredMessage {
  4107. fn new() -> UpgradeRequiredMessage {
  4108. UpgradeRequiredMessage::new()
  4109. }
  4110. fn descriptor_static(_: ::std::option::Option<UpgradeRequiredMessage>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4111. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4112. lock: ::protobuf::lazy::ONCE_INIT,
  4113. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4114. };
  4115. unsafe {
  4116. descriptor.get(|| {
  4117. let mut fields = ::std::vec::Vec::new();
  4118. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  4119. "upgrade_signed_part",
  4120. UpgradeRequiredMessage::get_upgrade_signed_part_for_reflect,
  4121. UpgradeRequiredMessage::mut_upgrade_signed_part_for_reflect,
  4122. ));
  4123. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  4124. "signature",
  4125. UpgradeRequiredMessage::get_signature_for_reflect,
  4126. UpgradeRequiredMessage::mut_signature_for_reflect,
  4127. ));
  4128. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4129. "http_suffix",
  4130. UpgradeRequiredMessage::get_http_suffix_for_reflect,
  4131. UpgradeRequiredMessage::mut_http_suffix_for_reflect,
  4132. ));
  4133. ::protobuf::reflect::MessageDescriptor::new::<UpgradeRequiredMessage>(
  4134. "UpgradeRequiredMessage",
  4135. fields,
  4136. file_descriptor_proto()
  4137. )
  4138. })
  4139. }
  4140. }
  4141. }
  4142. impl ::protobuf::Clear for UpgradeRequiredMessage {
  4143. fn clear(&mut self) {
  4144. self.clear_upgrade_signed_part();
  4145. self.clear_signature();
  4146. self.clear_http_suffix();
  4147. self.unknown_fields.clear();
  4148. }
  4149. }
  4150. impl ::std::fmt::Debug for UpgradeRequiredMessage {
  4151. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4152. ::protobuf::text_format::fmt(self, f)
  4153. }
  4154. }
  4155. impl ::protobuf::reflect::ProtobufValue for UpgradeRequiredMessage {
  4156. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4157. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4158. }
  4159. }
  4160. #[derive(PartialEq,Clone,Default)]
  4161. pub struct APLoginFailed {
  4162. // message fields
  4163. error_code: ::std::option::Option<ErrorCode>,
  4164. retry_delay: ::std::option::Option<i32>,
  4165. expiry: ::std::option::Option<i32>,
  4166. error_description: ::protobuf::SingularField<::std::string::String>,
  4167. // special fields
  4168. unknown_fields: ::protobuf::UnknownFields,
  4169. cached_size: ::protobuf::CachedSize,
  4170. }
  4171. // see codegen.rs for the explanation why impl Sync explicitly
  4172. unsafe impl ::std::marker::Sync for APLoginFailed {}
  4173. impl APLoginFailed {
  4174. pub fn new() -> APLoginFailed {
  4175. ::std::default::Default::default()
  4176. }
  4177. pub fn default_instance() -> &'static APLoginFailed {
  4178. static mut instance: ::protobuf::lazy::Lazy<APLoginFailed> = ::protobuf::lazy::Lazy {
  4179. lock: ::protobuf::lazy::ONCE_INIT,
  4180. ptr: 0 as *const APLoginFailed,
  4181. };
  4182. unsafe {
  4183. instance.get(APLoginFailed::new)
  4184. }
  4185. }
  4186. // required .ErrorCode error_code = 10;
  4187. pub fn clear_error_code(&mut self) {
  4188. self.error_code = ::std::option::Option::None;
  4189. }
  4190. pub fn has_error_code(&self) -> bool {
  4191. self.error_code.is_some()
  4192. }
  4193. // Param is passed by value, moved
  4194. pub fn set_error_code(&mut self, v: ErrorCode) {
  4195. self.error_code = ::std::option::Option::Some(v);
  4196. }
  4197. pub fn get_error_code(&self) -> ErrorCode {
  4198. self.error_code.unwrap_or(ErrorCode::ProtocolError)
  4199. }
  4200. fn get_error_code_for_reflect(&self) -> &::std::option::Option<ErrorCode> {
  4201. &self.error_code
  4202. }
  4203. fn mut_error_code_for_reflect(&mut self) -> &mut ::std::option::Option<ErrorCode> {
  4204. &mut self.error_code
  4205. }
  4206. // optional int32 retry_delay = 20;
  4207. pub fn clear_retry_delay(&mut self) {
  4208. self.retry_delay = ::std::option::Option::None;
  4209. }
  4210. pub fn has_retry_delay(&self) -> bool {
  4211. self.retry_delay.is_some()
  4212. }
  4213. // Param is passed by value, moved
  4214. pub fn set_retry_delay(&mut self, v: i32) {
  4215. self.retry_delay = ::std::option::Option::Some(v);
  4216. }
  4217. pub fn get_retry_delay(&self) -> i32 {
  4218. self.retry_delay.unwrap_or(0)
  4219. }
  4220. fn get_retry_delay_for_reflect(&self) -> &::std::option::Option<i32> {
  4221. &self.retry_delay
  4222. }
  4223. fn mut_retry_delay_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  4224. &mut self.retry_delay
  4225. }
  4226. // optional int32 expiry = 30;
  4227. pub fn clear_expiry(&mut self) {
  4228. self.expiry = ::std::option::Option::None;
  4229. }
  4230. pub fn has_expiry(&self) -> bool {
  4231. self.expiry.is_some()
  4232. }
  4233. // Param is passed by value, moved
  4234. pub fn set_expiry(&mut self, v: i32) {
  4235. self.expiry = ::std::option::Option::Some(v);
  4236. }
  4237. pub fn get_expiry(&self) -> i32 {
  4238. self.expiry.unwrap_or(0)
  4239. }
  4240. fn get_expiry_for_reflect(&self) -> &::std::option::Option<i32> {
  4241. &self.expiry
  4242. }
  4243. fn mut_expiry_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  4244. &mut self.expiry
  4245. }
  4246. // optional string error_description = 40;
  4247. pub fn clear_error_description(&mut self) {
  4248. self.error_description.clear();
  4249. }
  4250. pub fn has_error_description(&self) -> bool {
  4251. self.error_description.is_some()
  4252. }
  4253. // Param is passed by value, moved
  4254. pub fn set_error_description(&mut self, v: ::std::string::String) {
  4255. self.error_description = ::protobuf::SingularField::some(v);
  4256. }
  4257. // Mutable pointer to the field.
  4258. // If field is not initialized, it is initialized with default value first.
  4259. pub fn mut_error_description(&mut self) -> &mut ::std::string::String {
  4260. if self.error_description.is_none() {
  4261. self.error_description.set_default();
  4262. }
  4263. self.error_description.as_mut().unwrap()
  4264. }
  4265. // Take field
  4266. pub fn take_error_description(&mut self) -> ::std::string::String {
  4267. self.error_description.take().unwrap_or_else(|| ::std::string::String::new())
  4268. }
  4269. pub fn get_error_description(&self) -> &str {
  4270. match self.error_description.as_ref() {
  4271. Some(v) => &v,
  4272. None => "",
  4273. }
  4274. }
  4275. fn get_error_description_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  4276. &self.error_description
  4277. }
  4278. fn mut_error_description_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  4279. &mut self.error_description
  4280. }
  4281. }
  4282. impl ::protobuf::Message for APLoginFailed {
  4283. fn is_initialized(&self) -> bool {
  4284. if self.error_code.is_none() {
  4285. return false;
  4286. }
  4287. true
  4288. }
  4289. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4290. while !is.eof()? {
  4291. let (field_number, wire_type) = is.read_tag_unpack()?;
  4292. match field_number {
  4293. 10 => {
  4294. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  4295. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4296. }
  4297. let tmp = is.read_enum()?;
  4298. self.error_code = ::std::option::Option::Some(tmp);
  4299. },
  4300. 20 => {
  4301. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  4302. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4303. }
  4304. let tmp = is.read_int32()?;
  4305. self.retry_delay = ::std::option::Option::Some(tmp);
  4306. },
  4307. 30 => {
  4308. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  4309. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  4310. }
  4311. let tmp = is.read_int32()?;
  4312. self.expiry = ::std::option::Option::Some(tmp);
  4313. },
  4314. 40 => {
  4315. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.error_description)?;
  4316. },
  4317. _ => {
  4318. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4319. },
  4320. };
  4321. }
  4322. ::std::result::Result::Ok(())
  4323. }
  4324. // Compute sizes of nested messages
  4325. #[allow(unused_variables)]
  4326. fn compute_size(&self) -> u32 {
  4327. let mut my_size = 0;
  4328. if let Some(v) = self.error_code {
  4329. my_size += ::protobuf::rt::enum_size(10, v);
  4330. }
  4331. if let Some(v) = self.retry_delay {
  4332. my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
  4333. }
  4334. if let Some(v) = self.expiry {
  4335. my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
  4336. }
  4337. if let Some(ref v) = self.error_description.as_ref() {
  4338. my_size += ::protobuf::rt::string_size(40, &v);
  4339. }
  4340. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4341. self.cached_size.set(my_size);
  4342. my_size
  4343. }
  4344. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4345. if let Some(v) = self.error_code {
  4346. os.write_enum(10, v.value())?;
  4347. }
  4348. if let Some(v) = self.retry_delay {
  4349. os.write_int32(20, v)?;
  4350. }
  4351. if let Some(v) = self.expiry {
  4352. os.write_int32(30, v)?;
  4353. }
  4354. if let Some(ref v) = self.error_description.as_ref() {
  4355. os.write_string(40, &v)?;
  4356. }
  4357. os.write_unknown_fields(self.get_unknown_fields())?;
  4358. ::std::result::Result::Ok(())
  4359. }
  4360. fn get_cached_size(&self) -> u32 {
  4361. self.cached_size.get()
  4362. }
  4363. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4364. &self.unknown_fields
  4365. }
  4366. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4367. &mut self.unknown_fields
  4368. }
  4369. fn as_any(&self) -> &::std::any::Any {
  4370. self as &::std::any::Any
  4371. }
  4372. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4373. self as &mut ::std::any::Any
  4374. }
  4375. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4376. self
  4377. }
  4378. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4379. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4380. }
  4381. }
  4382. impl ::protobuf::MessageStatic for APLoginFailed {
  4383. fn new() -> APLoginFailed {
  4384. APLoginFailed::new()
  4385. }
  4386. fn descriptor_static(_: ::std::option::Option<APLoginFailed>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4387. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4388. lock: ::protobuf::lazy::ONCE_INIT,
  4389. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4390. };
  4391. unsafe {
  4392. descriptor.get(|| {
  4393. let mut fields = ::std::vec::Vec::new();
  4394. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ErrorCode>>(
  4395. "error_code",
  4396. APLoginFailed::get_error_code_for_reflect,
  4397. APLoginFailed::mut_error_code_for_reflect,
  4398. ));
  4399. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  4400. "retry_delay",
  4401. APLoginFailed::get_retry_delay_for_reflect,
  4402. APLoginFailed::mut_retry_delay_for_reflect,
  4403. ));
  4404. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  4405. "expiry",
  4406. APLoginFailed::get_expiry_for_reflect,
  4407. APLoginFailed::mut_expiry_for_reflect,
  4408. ));
  4409. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4410. "error_description",
  4411. APLoginFailed::get_error_description_for_reflect,
  4412. APLoginFailed::mut_error_description_for_reflect,
  4413. ));
  4414. ::protobuf::reflect::MessageDescriptor::new::<APLoginFailed>(
  4415. "APLoginFailed",
  4416. fields,
  4417. file_descriptor_proto()
  4418. )
  4419. })
  4420. }
  4421. }
  4422. }
  4423. impl ::protobuf::Clear for APLoginFailed {
  4424. fn clear(&mut self) {
  4425. self.clear_error_code();
  4426. self.clear_retry_delay();
  4427. self.clear_expiry();
  4428. self.clear_error_description();
  4429. self.unknown_fields.clear();
  4430. }
  4431. }
  4432. impl ::std::fmt::Debug for APLoginFailed {
  4433. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4434. ::protobuf::text_format::fmt(self, f)
  4435. }
  4436. }
  4437. impl ::protobuf::reflect::ProtobufValue for APLoginFailed {
  4438. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4439. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4440. }
  4441. }
  4442. #[derive(PartialEq,Clone,Default)]
  4443. pub struct ClientResponsePlaintext {
  4444. // message fields
  4445. login_crypto_response: ::protobuf::SingularPtrField<LoginCryptoResponseUnion>,
  4446. pow_response: ::protobuf::SingularPtrField<PoWResponseUnion>,
  4447. crypto_response: ::protobuf::SingularPtrField<CryptoResponseUnion>,
  4448. // special fields
  4449. unknown_fields: ::protobuf::UnknownFields,
  4450. cached_size: ::protobuf::CachedSize,
  4451. }
  4452. // see codegen.rs for the explanation why impl Sync explicitly
  4453. unsafe impl ::std::marker::Sync for ClientResponsePlaintext {}
  4454. impl ClientResponsePlaintext {
  4455. pub fn new() -> ClientResponsePlaintext {
  4456. ::std::default::Default::default()
  4457. }
  4458. pub fn default_instance() -> &'static ClientResponsePlaintext {
  4459. static mut instance: ::protobuf::lazy::Lazy<ClientResponsePlaintext> = ::protobuf::lazy::Lazy {
  4460. lock: ::protobuf::lazy::ONCE_INIT,
  4461. ptr: 0 as *const ClientResponsePlaintext,
  4462. };
  4463. unsafe {
  4464. instance.get(ClientResponsePlaintext::new)
  4465. }
  4466. }
  4467. // required .LoginCryptoResponseUnion login_crypto_response = 10;
  4468. pub fn clear_login_crypto_response(&mut self) {
  4469. self.login_crypto_response.clear();
  4470. }
  4471. pub fn has_login_crypto_response(&self) -> bool {
  4472. self.login_crypto_response.is_some()
  4473. }
  4474. // Param is passed by value, moved
  4475. pub fn set_login_crypto_response(&mut self, v: LoginCryptoResponseUnion) {
  4476. self.login_crypto_response = ::protobuf::SingularPtrField::some(v);
  4477. }
  4478. // Mutable pointer to the field.
  4479. // If field is not initialized, it is initialized with default value first.
  4480. pub fn mut_login_crypto_response(&mut self) -> &mut LoginCryptoResponseUnion {
  4481. if self.login_crypto_response.is_none() {
  4482. self.login_crypto_response.set_default();
  4483. }
  4484. self.login_crypto_response.as_mut().unwrap()
  4485. }
  4486. // Take field
  4487. pub fn take_login_crypto_response(&mut self) -> LoginCryptoResponseUnion {
  4488. self.login_crypto_response.take().unwrap_or_else(|| LoginCryptoResponseUnion::new())
  4489. }
  4490. pub fn get_login_crypto_response(&self) -> &LoginCryptoResponseUnion {
  4491. self.login_crypto_response.as_ref().unwrap_or_else(|| LoginCryptoResponseUnion::default_instance())
  4492. }
  4493. fn get_login_crypto_response_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoResponseUnion> {
  4494. &self.login_crypto_response
  4495. }
  4496. fn mut_login_crypto_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoResponseUnion> {
  4497. &mut self.login_crypto_response
  4498. }
  4499. // required .PoWResponseUnion pow_response = 20;
  4500. pub fn clear_pow_response(&mut self) {
  4501. self.pow_response.clear();
  4502. }
  4503. pub fn has_pow_response(&self) -> bool {
  4504. self.pow_response.is_some()
  4505. }
  4506. // Param is passed by value, moved
  4507. pub fn set_pow_response(&mut self, v: PoWResponseUnion) {
  4508. self.pow_response = ::protobuf::SingularPtrField::some(v);
  4509. }
  4510. // Mutable pointer to the field.
  4511. // If field is not initialized, it is initialized with default value first.
  4512. pub fn mut_pow_response(&mut self) -> &mut PoWResponseUnion {
  4513. if self.pow_response.is_none() {
  4514. self.pow_response.set_default();
  4515. }
  4516. self.pow_response.as_mut().unwrap()
  4517. }
  4518. // Take field
  4519. pub fn take_pow_response(&mut self) -> PoWResponseUnion {
  4520. self.pow_response.take().unwrap_or_else(|| PoWResponseUnion::new())
  4521. }
  4522. pub fn get_pow_response(&self) -> &PoWResponseUnion {
  4523. self.pow_response.as_ref().unwrap_or_else(|| PoWResponseUnion::default_instance())
  4524. }
  4525. fn get_pow_response_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWResponseUnion> {
  4526. &self.pow_response
  4527. }
  4528. fn mut_pow_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWResponseUnion> {
  4529. &mut self.pow_response
  4530. }
  4531. // required .CryptoResponseUnion crypto_response = 30;
  4532. pub fn clear_crypto_response(&mut self) {
  4533. self.crypto_response.clear();
  4534. }
  4535. pub fn has_crypto_response(&self) -> bool {
  4536. self.crypto_response.is_some()
  4537. }
  4538. // Param is passed by value, moved
  4539. pub fn set_crypto_response(&mut self, v: CryptoResponseUnion) {
  4540. self.crypto_response = ::protobuf::SingularPtrField::some(v);
  4541. }
  4542. // Mutable pointer to the field.
  4543. // If field is not initialized, it is initialized with default value first.
  4544. pub fn mut_crypto_response(&mut self) -> &mut CryptoResponseUnion {
  4545. if self.crypto_response.is_none() {
  4546. self.crypto_response.set_default();
  4547. }
  4548. self.crypto_response.as_mut().unwrap()
  4549. }
  4550. // Take field
  4551. pub fn take_crypto_response(&mut self) -> CryptoResponseUnion {
  4552. self.crypto_response.take().unwrap_or_else(|| CryptoResponseUnion::new())
  4553. }
  4554. pub fn get_crypto_response(&self) -> &CryptoResponseUnion {
  4555. self.crypto_response.as_ref().unwrap_or_else(|| CryptoResponseUnion::default_instance())
  4556. }
  4557. fn get_crypto_response_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoResponseUnion> {
  4558. &self.crypto_response
  4559. }
  4560. fn mut_crypto_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoResponseUnion> {
  4561. &mut self.crypto_response
  4562. }
  4563. }
  4564. impl ::protobuf::Message for ClientResponsePlaintext {
  4565. fn is_initialized(&self) -> bool {
  4566. if self.login_crypto_response.is_none() {
  4567. return false;
  4568. }
  4569. if self.pow_response.is_none() {
  4570. return false;
  4571. }
  4572. if self.crypto_response.is_none() {
  4573. return false;
  4574. }
  4575. for v in &self.login_crypto_response {
  4576. if !v.is_initialized() {
  4577. return false;
  4578. }
  4579. };
  4580. for v in &self.pow_response {
  4581. if !v.is_initialized() {
  4582. return false;
  4583. }
  4584. };
  4585. for v in &self.crypto_response {
  4586. if !v.is_initialized() {
  4587. return false;
  4588. }
  4589. };
  4590. true
  4591. }
  4592. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4593. while !is.eof()? {
  4594. let (field_number, wire_type) = is.read_tag_unpack()?;
  4595. match field_number {
  4596. 10 => {
  4597. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_response)?;
  4598. },
  4599. 20 => {
  4600. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_response)?;
  4601. },
  4602. 30 => {
  4603. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_response)?;
  4604. },
  4605. _ => {
  4606. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4607. },
  4608. };
  4609. }
  4610. ::std::result::Result::Ok(())
  4611. }
  4612. // Compute sizes of nested messages
  4613. #[allow(unused_variables)]
  4614. fn compute_size(&self) -> u32 {
  4615. let mut my_size = 0;
  4616. if let Some(ref v) = self.login_crypto_response.as_ref() {
  4617. let len = v.compute_size();
  4618. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4619. }
  4620. if let Some(ref v) = self.pow_response.as_ref() {
  4621. let len = v.compute_size();
  4622. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4623. }
  4624. if let Some(ref v) = self.crypto_response.as_ref() {
  4625. let len = v.compute_size();
  4626. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4627. }
  4628. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4629. self.cached_size.set(my_size);
  4630. my_size
  4631. }
  4632. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4633. if let Some(ref v) = self.login_crypto_response.as_ref() {
  4634. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4635. os.write_raw_varint32(v.get_cached_size())?;
  4636. v.write_to_with_cached_sizes(os)?;
  4637. }
  4638. if let Some(ref v) = self.pow_response.as_ref() {
  4639. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4640. os.write_raw_varint32(v.get_cached_size())?;
  4641. v.write_to_with_cached_sizes(os)?;
  4642. }
  4643. if let Some(ref v) = self.crypto_response.as_ref() {
  4644. os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4645. os.write_raw_varint32(v.get_cached_size())?;
  4646. v.write_to_with_cached_sizes(os)?;
  4647. }
  4648. os.write_unknown_fields(self.get_unknown_fields())?;
  4649. ::std::result::Result::Ok(())
  4650. }
  4651. fn get_cached_size(&self) -> u32 {
  4652. self.cached_size.get()
  4653. }
  4654. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4655. &self.unknown_fields
  4656. }
  4657. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4658. &mut self.unknown_fields
  4659. }
  4660. fn as_any(&self) -> &::std::any::Any {
  4661. self as &::std::any::Any
  4662. }
  4663. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4664. self as &mut ::std::any::Any
  4665. }
  4666. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4667. self
  4668. }
  4669. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4670. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4671. }
  4672. }
  4673. impl ::protobuf::MessageStatic for ClientResponsePlaintext {
  4674. fn new() -> ClientResponsePlaintext {
  4675. ClientResponsePlaintext::new()
  4676. }
  4677. fn descriptor_static(_: ::std::option::Option<ClientResponsePlaintext>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4678. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4679. lock: ::protobuf::lazy::ONCE_INIT,
  4680. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4681. };
  4682. unsafe {
  4683. descriptor.get(|| {
  4684. let mut fields = ::std::vec::Vec::new();
  4685. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoResponseUnion>>(
  4686. "login_crypto_response",
  4687. ClientResponsePlaintext::get_login_crypto_response_for_reflect,
  4688. ClientResponsePlaintext::mut_login_crypto_response_for_reflect,
  4689. ));
  4690. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWResponseUnion>>(
  4691. "pow_response",
  4692. ClientResponsePlaintext::get_pow_response_for_reflect,
  4693. ClientResponsePlaintext::mut_pow_response_for_reflect,
  4694. ));
  4695. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoResponseUnion>>(
  4696. "crypto_response",
  4697. ClientResponsePlaintext::get_crypto_response_for_reflect,
  4698. ClientResponsePlaintext::mut_crypto_response_for_reflect,
  4699. ));
  4700. ::protobuf::reflect::MessageDescriptor::new::<ClientResponsePlaintext>(
  4701. "ClientResponsePlaintext",
  4702. fields,
  4703. file_descriptor_proto()
  4704. )
  4705. })
  4706. }
  4707. }
  4708. }
  4709. impl ::protobuf::Clear for ClientResponsePlaintext {
  4710. fn clear(&mut self) {
  4711. self.clear_login_crypto_response();
  4712. self.clear_pow_response();
  4713. self.clear_crypto_response();
  4714. self.unknown_fields.clear();
  4715. }
  4716. }
  4717. impl ::std::fmt::Debug for ClientResponsePlaintext {
  4718. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4719. ::protobuf::text_format::fmt(self, f)
  4720. }
  4721. }
  4722. impl ::protobuf::reflect::ProtobufValue for ClientResponsePlaintext {
  4723. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4724. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4725. }
  4726. }
  4727. #[derive(PartialEq,Clone,Default)]
  4728. pub struct LoginCryptoResponseUnion {
  4729. // message fields
  4730. diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse>,
  4731. // special fields
  4732. unknown_fields: ::protobuf::UnknownFields,
  4733. cached_size: ::protobuf::CachedSize,
  4734. }
  4735. // see codegen.rs for the explanation why impl Sync explicitly
  4736. unsafe impl ::std::marker::Sync for LoginCryptoResponseUnion {}
  4737. impl LoginCryptoResponseUnion {
  4738. pub fn new() -> LoginCryptoResponseUnion {
  4739. ::std::default::Default::default()
  4740. }
  4741. pub fn default_instance() -> &'static LoginCryptoResponseUnion {
  4742. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoResponseUnion> = ::protobuf::lazy::Lazy {
  4743. lock: ::protobuf::lazy::ONCE_INIT,
  4744. ptr: 0 as *const LoginCryptoResponseUnion,
  4745. };
  4746. unsafe {
  4747. instance.get(LoginCryptoResponseUnion::new)
  4748. }
  4749. }
  4750. // optional .LoginCryptoDiffieHellmanResponse diffie_hellman = 10;
  4751. pub fn clear_diffie_hellman(&mut self) {
  4752. self.diffie_hellman.clear();
  4753. }
  4754. pub fn has_diffie_hellman(&self) -> bool {
  4755. self.diffie_hellman.is_some()
  4756. }
  4757. // Param is passed by value, moved
  4758. pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanResponse) {
  4759. self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
  4760. }
  4761. // Mutable pointer to the field.
  4762. // If field is not initialized, it is initialized with default value first.
  4763. pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanResponse {
  4764. if self.diffie_hellman.is_none() {
  4765. self.diffie_hellman.set_default();
  4766. }
  4767. self.diffie_hellman.as_mut().unwrap()
  4768. }
  4769. // Take field
  4770. pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanResponse {
  4771. self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::new())
  4772. }
  4773. pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanResponse {
  4774. self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::default_instance())
  4775. }
  4776. fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse> {
  4777. &self.diffie_hellman
  4778. }
  4779. fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse> {
  4780. &mut self.diffie_hellman
  4781. }
  4782. }
  4783. impl ::protobuf::Message for LoginCryptoResponseUnion {
  4784. fn is_initialized(&self) -> bool {
  4785. for v in &self.diffie_hellman {
  4786. if !v.is_initialized() {
  4787. return false;
  4788. }
  4789. };
  4790. true
  4791. }
  4792. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4793. while !is.eof()? {
  4794. let (field_number, wire_type) = is.read_tag_unpack()?;
  4795. match field_number {
  4796. 10 => {
  4797. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
  4798. },
  4799. _ => {
  4800. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4801. },
  4802. };
  4803. }
  4804. ::std::result::Result::Ok(())
  4805. }
  4806. // Compute sizes of nested messages
  4807. #[allow(unused_variables)]
  4808. fn compute_size(&self) -> u32 {
  4809. let mut my_size = 0;
  4810. if let Some(ref v) = self.diffie_hellman.as_ref() {
  4811. let len = v.compute_size();
  4812. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  4813. }
  4814. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4815. self.cached_size.set(my_size);
  4816. my_size
  4817. }
  4818. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4819. if let Some(ref v) = self.diffie_hellman.as_ref() {
  4820. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  4821. os.write_raw_varint32(v.get_cached_size())?;
  4822. v.write_to_with_cached_sizes(os)?;
  4823. }
  4824. os.write_unknown_fields(self.get_unknown_fields())?;
  4825. ::std::result::Result::Ok(())
  4826. }
  4827. fn get_cached_size(&self) -> u32 {
  4828. self.cached_size.get()
  4829. }
  4830. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4831. &self.unknown_fields
  4832. }
  4833. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4834. &mut self.unknown_fields
  4835. }
  4836. fn as_any(&self) -> &::std::any::Any {
  4837. self as &::std::any::Any
  4838. }
  4839. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4840. self as &mut ::std::any::Any
  4841. }
  4842. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4843. self
  4844. }
  4845. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4846. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4847. }
  4848. }
  4849. impl ::protobuf::MessageStatic for LoginCryptoResponseUnion {
  4850. fn new() -> LoginCryptoResponseUnion {
  4851. LoginCryptoResponseUnion::new()
  4852. }
  4853. fn descriptor_static(_: ::std::option::Option<LoginCryptoResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4854. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4855. lock: ::protobuf::lazy::ONCE_INIT,
  4856. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4857. };
  4858. unsafe {
  4859. descriptor.get(|| {
  4860. let mut fields = ::std::vec::Vec::new();
  4861. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanResponse>>(
  4862. "diffie_hellman",
  4863. LoginCryptoResponseUnion::get_diffie_hellman_for_reflect,
  4864. LoginCryptoResponseUnion::mut_diffie_hellman_for_reflect,
  4865. ));
  4866. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoResponseUnion>(
  4867. "LoginCryptoResponseUnion",
  4868. fields,
  4869. file_descriptor_proto()
  4870. )
  4871. })
  4872. }
  4873. }
  4874. }
  4875. impl ::protobuf::Clear for LoginCryptoResponseUnion {
  4876. fn clear(&mut self) {
  4877. self.clear_diffie_hellman();
  4878. self.unknown_fields.clear();
  4879. }
  4880. }
  4881. impl ::std::fmt::Debug for LoginCryptoResponseUnion {
  4882. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4883. ::protobuf::text_format::fmt(self, f)
  4884. }
  4885. }
  4886. impl ::protobuf::reflect::ProtobufValue for LoginCryptoResponseUnion {
  4887. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4888. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4889. }
  4890. }
  4891. #[derive(PartialEq,Clone,Default)]
  4892. pub struct LoginCryptoDiffieHellmanResponse {
  4893. // message fields
  4894. hmac: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  4895. // special fields
  4896. unknown_fields: ::protobuf::UnknownFields,
  4897. cached_size: ::protobuf::CachedSize,
  4898. }
  4899. // see codegen.rs for the explanation why impl Sync explicitly
  4900. unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanResponse {}
  4901. impl LoginCryptoDiffieHellmanResponse {
  4902. pub fn new() -> LoginCryptoDiffieHellmanResponse {
  4903. ::std::default::Default::default()
  4904. }
  4905. pub fn default_instance() -> &'static LoginCryptoDiffieHellmanResponse {
  4906. static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanResponse> = ::protobuf::lazy::Lazy {
  4907. lock: ::protobuf::lazy::ONCE_INIT,
  4908. ptr: 0 as *const LoginCryptoDiffieHellmanResponse,
  4909. };
  4910. unsafe {
  4911. instance.get(LoginCryptoDiffieHellmanResponse::new)
  4912. }
  4913. }
  4914. // required bytes hmac = 10;
  4915. pub fn clear_hmac(&mut self) {
  4916. self.hmac.clear();
  4917. }
  4918. pub fn has_hmac(&self) -> bool {
  4919. self.hmac.is_some()
  4920. }
  4921. // Param is passed by value, moved
  4922. pub fn set_hmac(&mut self, v: ::std::vec::Vec<u8>) {
  4923. self.hmac = ::protobuf::SingularField::some(v);
  4924. }
  4925. // Mutable pointer to the field.
  4926. // If field is not initialized, it is initialized with default value first.
  4927. pub fn mut_hmac(&mut self) -> &mut ::std::vec::Vec<u8> {
  4928. if self.hmac.is_none() {
  4929. self.hmac.set_default();
  4930. }
  4931. self.hmac.as_mut().unwrap()
  4932. }
  4933. // Take field
  4934. pub fn take_hmac(&mut self) -> ::std::vec::Vec<u8> {
  4935. self.hmac.take().unwrap_or_else(|| ::std::vec::Vec::new())
  4936. }
  4937. pub fn get_hmac(&self) -> &[u8] {
  4938. match self.hmac.as_ref() {
  4939. Some(v) => &v,
  4940. None => &[],
  4941. }
  4942. }
  4943. fn get_hmac_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  4944. &self.hmac
  4945. }
  4946. fn mut_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  4947. &mut self.hmac
  4948. }
  4949. }
  4950. impl ::protobuf::Message for LoginCryptoDiffieHellmanResponse {
  4951. fn is_initialized(&self) -> bool {
  4952. if self.hmac.is_none() {
  4953. return false;
  4954. }
  4955. true
  4956. }
  4957. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4958. while !is.eof()? {
  4959. let (field_number, wire_type) = is.read_tag_unpack()?;
  4960. match field_number {
  4961. 10 => {
  4962. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hmac)?;
  4963. },
  4964. _ => {
  4965. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4966. },
  4967. };
  4968. }
  4969. ::std::result::Result::Ok(())
  4970. }
  4971. // Compute sizes of nested messages
  4972. #[allow(unused_variables)]
  4973. fn compute_size(&self) -> u32 {
  4974. let mut my_size = 0;
  4975. if let Some(ref v) = self.hmac.as_ref() {
  4976. my_size += ::protobuf::rt::bytes_size(10, &v);
  4977. }
  4978. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4979. self.cached_size.set(my_size);
  4980. my_size
  4981. }
  4982. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4983. if let Some(ref v) = self.hmac.as_ref() {
  4984. os.write_bytes(10, &v)?;
  4985. }
  4986. os.write_unknown_fields(self.get_unknown_fields())?;
  4987. ::std::result::Result::Ok(())
  4988. }
  4989. fn get_cached_size(&self) -> u32 {
  4990. self.cached_size.get()
  4991. }
  4992. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4993. &self.unknown_fields
  4994. }
  4995. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4996. &mut self.unknown_fields
  4997. }
  4998. fn as_any(&self) -> &::std::any::Any {
  4999. self as &::std::any::Any
  5000. }
  5001. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5002. self as &mut ::std::any::Any
  5003. }
  5004. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5005. self
  5006. }
  5007. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5008. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5009. }
  5010. }
  5011. impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanResponse {
  5012. fn new() -> LoginCryptoDiffieHellmanResponse {
  5013. LoginCryptoDiffieHellmanResponse::new()
  5014. }
  5015. fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5016. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5017. lock: ::protobuf::lazy::ONCE_INIT,
  5018. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5019. };
  5020. unsafe {
  5021. descriptor.get(|| {
  5022. let mut fields = ::std::vec::Vec::new();
  5023. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  5024. "hmac",
  5025. LoginCryptoDiffieHellmanResponse::get_hmac_for_reflect,
  5026. LoginCryptoDiffieHellmanResponse::mut_hmac_for_reflect,
  5027. ));
  5028. ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanResponse>(
  5029. "LoginCryptoDiffieHellmanResponse",
  5030. fields,
  5031. file_descriptor_proto()
  5032. )
  5033. })
  5034. }
  5035. }
  5036. }
  5037. impl ::protobuf::Clear for LoginCryptoDiffieHellmanResponse {
  5038. fn clear(&mut self) {
  5039. self.clear_hmac();
  5040. self.unknown_fields.clear();
  5041. }
  5042. }
  5043. impl ::std::fmt::Debug for LoginCryptoDiffieHellmanResponse {
  5044. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5045. ::protobuf::text_format::fmt(self, f)
  5046. }
  5047. }
  5048. impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanResponse {
  5049. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5050. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5051. }
  5052. }
  5053. #[derive(PartialEq,Clone,Default)]
  5054. pub struct PoWResponseUnion {
  5055. // message fields
  5056. hash_cash: ::protobuf::SingularPtrField<PoWHashCashResponse>,
  5057. // special fields
  5058. unknown_fields: ::protobuf::UnknownFields,
  5059. cached_size: ::protobuf::CachedSize,
  5060. }
  5061. // see codegen.rs for the explanation why impl Sync explicitly
  5062. unsafe impl ::std::marker::Sync for PoWResponseUnion {}
  5063. impl PoWResponseUnion {
  5064. pub fn new() -> PoWResponseUnion {
  5065. ::std::default::Default::default()
  5066. }
  5067. pub fn default_instance() -> &'static PoWResponseUnion {
  5068. static mut instance: ::protobuf::lazy::Lazy<PoWResponseUnion> = ::protobuf::lazy::Lazy {
  5069. lock: ::protobuf::lazy::ONCE_INIT,
  5070. ptr: 0 as *const PoWResponseUnion,
  5071. };
  5072. unsafe {
  5073. instance.get(PoWResponseUnion::new)
  5074. }
  5075. }
  5076. // optional .PoWHashCashResponse hash_cash = 10;
  5077. pub fn clear_hash_cash(&mut self) {
  5078. self.hash_cash.clear();
  5079. }
  5080. pub fn has_hash_cash(&self) -> bool {
  5081. self.hash_cash.is_some()
  5082. }
  5083. // Param is passed by value, moved
  5084. pub fn set_hash_cash(&mut self, v: PoWHashCashResponse) {
  5085. self.hash_cash = ::protobuf::SingularPtrField::some(v);
  5086. }
  5087. // Mutable pointer to the field.
  5088. // If field is not initialized, it is initialized with default value first.
  5089. pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashResponse {
  5090. if self.hash_cash.is_none() {
  5091. self.hash_cash.set_default();
  5092. }
  5093. self.hash_cash.as_mut().unwrap()
  5094. }
  5095. // Take field
  5096. pub fn take_hash_cash(&mut self) -> PoWHashCashResponse {
  5097. self.hash_cash.take().unwrap_or_else(|| PoWHashCashResponse::new())
  5098. }
  5099. pub fn get_hash_cash(&self) -> &PoWHashCashResponse {
  5100. self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashResponse::default_instance())
  5101. }
  5102. fn get_hash_cash_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWHashCashResponse> {
  5103. &self.hash_cash
  5104. }
  5105. fn mut_hash_cash_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWHashCashResponse> {
  5106. &mut self.hash_cash
  5107. }
  5108. }
  5109. impl ::protobuf::Message for PoWResponseUnion {
  5110. fn is_initialized(&self) -> bool {
  5111. for v in &self.hash_cash {
  5112. if !v.is_initialized() {
  5113. return false;
  5114. }
  5115. };
  5116. true
  5117. }
  5118. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  5119. while !is.eof()? {
  5120. let (field_number, wire_type) = is.read_tag_unpack()?;
  5121. match field_number {
  5122. 10 => {
  5123. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
  5124. },
  5125. _ => {
  5126. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5127. },
  5128. };
  5129. }
  5130. ::std::result::Result::Ok(())
  5131. }
  5132. // Compute sizes of nested messages
  5133. #[allow(unused_variables)]
  5134. fn compute_size(&self) -> u32 {
  5135. let mut my_size = 0;
  5136. if let Some(ref v) = self.hash_cash.as_ref() {
  5137. let len = v.compute_size();
  5138. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5139. }
  5140. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5141. self.cached_size.set(my_size);
  5142. my_size
  5143. }
  5144. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  5145. if let Some(ref v) = self.hash_cash.as_ref() {
  5146. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5147. os.write_raw_varint32(v.get_cached_size())?;
  5148. v.write_to_with_cached_sizes(os)?;
  5149. }
  5150. os.write_unknown_fields(self.get_unknown_fields())?;
  5151. ::std::result::Result::Ok(())
  5152. }
  5153. fn get_cached_size(&self) -> u32 {
  5154. self.cached_size.get()
  5155. }
  5156. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5157. &self.unknown_fields
  5158. }
  5159. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5160. &mut self.unknown_fields
  5161. }
  5162. fn as_any(&self) -> &::std::any::Any {
  5163. self as &::std::any::Any
  5164. }
  5165. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5166. self as &mut ::std::any::Any
  5167. }
  5168. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5169. self
  5170. }
  5171. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5172. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5173. }
  5174. }
  5175. impl ::protobuf::MessageStatic for PoWResponseUnion {
  5176. fn new() -> PoWResponseUnion {
  5177. PoWResponseUnion::new()
  5178. }
  5179. fn descriptor_static(_: ::std::option::Option<PoWResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5180. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5181. lock: ::protobuf::lazy::ONCE_INIT,
  5182. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5183. };
  5184. unsafe {
  5185. descriptor.get(|| {
  5186. let mut fields = ::std::vec::Vec::new();
  5187. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashResponse>>(
  5188. "hash_cash",
  5189. PoWResponseUnion::get_hash_cash_for_reflect,
  5190. PoWResponseUnion::mut_hash_cash_for_reflect,
  5191. ));
  5192. ::protobuf::reflect::MessageDescriptor::new::<PoWResponseUnion>(
  5193. "PoWResponseUnion",
  5194. fields,
  5195. file_descriptor_proto()
  5196. )
  5197. })
  5198. }
  5199. }
  5200. }
  5201. impl ::protobuf::Clear for PoWResponseUnion {
  5202. fn clear(&mut self) {
  5203. self.clear_hash_cash();
  5204. self.unknown_fields.clear();
  5205. }
  5206. }
  5207. impl ::std::fmt::Debug for PoWResponseUnion {
  5208. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5209. ::protobuf::text_format::fmt(self, f)
  5210. }
  5211. }
  5212. impl ::protobuf::reflect::ProtobufValue for PoWResponseUnion {
  5213. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5214. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5215. }
  5216. }
  5217. #[derive(PartialEq,Clone,Default)]
  5218. pub struct PoWHashCashResponse {
  5219. // message fields
  5220. hash_suffix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  5221. // special fields
  5222. unknown_fields: ::protobuf::UnknownFields,
  5223. cached_size: ::protobuf::CachedSize,
  5224. }
  5225. // see codegen.rs for the explanation why impl Sync explicitly
  5226. unsafe impl ::std::marker::Sync for PoWHashCashResponse {}
  5227. impl PoWHashCashResponse {
  5228. pub fn new() -> PoWHashCashResponse {
  5229. ::std::default::Default::default()
  5230. }
  5231. pub fn default_instance() -> &'static PoWHashCashResponse {
  5232. static mut instance: ::protobuf::lazy::Lazy<PoWHashCashResponse> = ::protobuf::lazy::Lazy {
  5233. lock: ::protobuf::lazy::ONCE_INIT,
  5234. ptr: 0 as *const PoWHashCashResponse,
  5235. };
  5236. unsafe {
  5237. instance.get(PoWHashCashResponse::new)
  5238. }
  5239. }
  5240. // required bytes hash_suffix = 10;
  5241. pub fn clear_hash_suffix(&mut self) {
  5242. self.hash_suffix.clear();
  5243. }
  5244. pub fn has_hash_suffix(&self) -> bool {
  5245. self.hash_suffix.is_some()
  5246. }
  5247. // Param is passed by value, moved
  5248. pub fn set_hash_suffix(&mut self, v: ::std::vec::Vec<u8>) {
  5249. self.hash_suffix = ::protobuf::SingularField::some(v);
  5250. }
  5251. // Mutable pointer to the field.
  5252. // If field is not initialized, it is initialized with default value first.
  5253. pub fn mut_hash_suffix(&mut self) -> &mut ::std::vec::Vec<u8> {
  5254. if self.hash_suffix.is_none() {
  5255. self.hash_suffix.set_default();
  5256. }
  5257. self.hash_suffix.as_mut().unwrap()
  5258. }
  5259. // Take field
  5260. pub fn take_hash_suffix(&mut self) -> ::std::vec::Vec<u8> {
  5261. self.hash_suffix.take().unwrap_or_else(|| ::std::vec::Vec::new())
  5262. }
  5263. pub fn get_hash_suffix(&self) -> &[u8] {
  5264. match self.hash_suffix.as_ref() {
  5265. Some(v) => &v,
  5266. None => &[],
  5267. }
  5268. }
  5269. fn get_hash_suffix_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  5270. &self.hash_suffix
  5271. }
  5272. fn mut_hash_suffix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  5273. &mut self.hash_suffix
  5274. }
  5275. }
  5276. impl ::protobuf::Message for PoWHashCashResponse {
  5277. fn is_initialized(&self) -> bool {
  5278. if self.hash_suffix.is_none() {
  5279. return false;
  5280. }
  5281. true
  5282. }
  5283. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  5284. while !is.eof()? {
  5285. let (field_number, wire_type) = is.read_tag_unpack()?;
  5286. match field_number {
  5287. 10 => {
  5288. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hash_suffix)?;
  5289. },
  5290. _ => {
  5291. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5292. },
  5293. };
  5294. }
  5295. ::std::result::Result::Ok(())
  5296. }
  5297. // Compute sizes of nested messages
  5298. #[allow(unused_variables)]
  5299. fn compute_size(&self) -> u32 {
  5300. let mut my_size = 0;
  5301. if let Some(ref v) = self.hash_suffix.as_ref() {
  5302. my_size += ::protobuf::rt::bytes_size(10, &v);
  5303. }
  5304. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5305. self.cached_size.set(my_size);
  5306. my_size
  5307. }
  5308. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  5309. if let Some(ref v) = self.hash_suffix.as_ref() {
  5310. os.write_bytes(10, &v)?;
  5311. }
  5312. os.write_unknown_fields(self.get_unknown_fields())?;
  5313. ::std::result::Result::Ok(())
  5314. }
  5315. fn get_cached_size(&self) -> u32 {
  5316. self.cached_size.get()
  5317. }
  5318. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5319. &self.unknown_fields
  5320. }
  5321. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5322. &mut self.unknown_fields
  5323. }
  5324. fn as_any(&self) -> &::std::any::Any {
  5325. self as &::std::any::Any
  5326. }
  5327. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5328. self as &mut ::std::any::Any
  5329. }
  5330. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5331. self
  5332. }
  5333. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5334. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5335. }
  5336. }
  5337. impl ::protobuf::MessageStatic for PoWHashCashResponse {
  5338. fn new() -> PoWHashCashResponse {
  5339. PoWHashCashResponse::new()
  5340. }
  5341. fn descriptor_static(_: ::std::option::Option<PoWHashCashResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5342. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5343. lock: ::protobuf::lazy::ONCE_INIT,
  5344. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5345. };
  5346. unsafe {
  5347. descriptor.get(|| {
  5348. let mut fields = ::std::vec::Vec::new();
  5349. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  5350. "hash_suffix",
  5351. PoWHashCashResponse::get_hash_suffix_for_reflect,
  5352. PoWHashCashResponse::mut_hash_suffix_for_reflect,
  5353. ));
  5354. ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashResponse>(
  5355. "PoWHashCashResponse",
  5356. fields,
  5357. file_descriptor_proto()
  5358. )
  5359. })
  5360. }
  5361. }
  5362. }
  5363. impl ::protobuf::Clear for PoWHashCashResponse {
  5364. fn clear(&mut self) {
  5365. self.clear_hash_suffix();
  5366. self.unknown_fields.clear();
  5367. }
  5368. }
  5369. impl ::std::fmt::Debug for PoWHashCashResponse {
  5370. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5371. ::protobuf::text_format::fmt(self, f)
  5372. }
  5373. }
  5374. impl ::protobuf::reflect::ProtobufValue for PoWHashCashResponse {
  5375. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5376. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5377. }
  5378. }
  5379. #[derive(PartialEq,Clone,Default)]
  5380. pub struct CryptoResponseUnion {
  5381. // message fields
  5382. shannon: ::protobuf::SingularPtrField<CryptoShannonResponse>,
  5383. rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse>,
  5384. // special fields
  5385. unknown_fields: ::protobuf::UnknownFields,
  5386. cached_size: ::protobuf::CachedSize,
  5387. }
  5388. // see codegen.rs for the explanation why impl Sync explicitly
  5389. unsafe impl ::std::marker::Sync for CryptoResponseUnion {}
  5390. impl CryptoResponseUnion {
  5391. pub fn new() -> CryptoResponseUnion {
  5392. ::std::default::Default::default()
  5393. }
  5394. pub fn default_instance() -> &'static CryptoResponseUnion {
  5395. static mut instance: ::protobuf::lazy::Lazy<CryptoResponseUnion> = ::protobuf::lazy::Lazy {
  5396. lock: ::protobuf::lazy::ONCE_INIT,
  5397. ptr: 0 as *const CryptoResponseUnion,
  5398. };
  5399. unsafe {
  5400. instance.get(CryptoResponseUnion::new)
  5401. }
  5402. }
  5403. // optional .CryptoShannonResponse shannon = 10;
  5404. pub fn clear_shannon(&mut self) {
  5405. self.shannon.clear();
  5406. }
  5407. pub fn has_shannon(&self) -> bool {
  5408. self.shannon.is_some()
  5409. }
  5410. // Param is passed by value, moved
  5411. pub fn set_shannon(&mut self, v: CryptoShannonResponse) {
  5412. self.shannon = ::protobuf::SingularPtrField::some(v);
  5413. }
  5414. // Mutable pointer to the field.
  5415. // If field is not initialized, it is initialized with default value first.
  5416. pub fn mut_shannon(&mut self) -> &mut CryptoShannonResponse {
  5417. if self.shannon.is_none() {
  5418. self.shannon.set_default();
  5419. }
  5420. self.shannon.as_mut().unwrap()
  5421. }
  5422. // Take field
  5423. pub fn take_shannon(&mut self) -> CryptoShannonResponse {
  5424. self.shannon.take().unwrap_or_else(|| CryptoShannonResponse::new())
  5425. }
  5426. pub fn get_shannon(&self) -> &CryptoShannonResponse {
  5427. self.shannon.as_ref().unwrap_or_else(|| CryptoShannonResponse::default_instance())
  5428. }
  5429. fn get_shannon_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoShannonResponse> {
  5430. &self.shannon
  5431. }
  5432. fn mut_shannon_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoShannonResponse> {
  5433. &mut self.shannon
  5434. }
  5435. // optional .CryptoRc4Sha1HmacResponse rc4_sha1_hmac = 20;
  5436. pub fn clear_rc4_sha1_hmac(&mut self) {
  5437. self.rc4_sha1_hmac.clear();
  5438. }
  5439. pub fn has_rc4_sha1_hmac(&self) -> bool {
  5440. self.rc4_sha1_hmac.is_some()
  5441. }
  5442. // Param is passed by value, moved
  5443. pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacResponse) {
  5444. self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
  5445. }
  5446. // Mutable pointer to the field.
  5447. // If field is not initialized, it is initialized with default value first.
  5448. pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacResponse {
  5449. if self.rc4_sha1_hmac.is_none() {
  5450. self.rc4_sha1_hmac.set_default();
  5451. }
  5452. self.rc4_sha1_hmac.as_mut().unwrap()
  5453. }
  5454. // Take field
  5455. pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacResponse {
  5456. self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::new())
  5457. }
  5458. pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacResponse {
  5459. self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::default_instance())
  5460. }
  5461. fn get_rc4_sha1_hmac_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse> {
  5462. &self.rc4_sha1_hmac
  5463. }
  5464. fn mut_rc4_sha1_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse> {
  5465. &mut self.rc4_sha1_hmac
  5466. }
  5467. }
  5468. impl ::protobuf::Message for CryptoResponseUnion {
  5469. fn is_initialized(&self) -> bool {
  5470. for v in &self.shannon {
  5471. if !v.is_initialized() {
  5472. return false;
  5473. }
  5474. };
  5475. for v in &self.rc4_sha1_hmac {
  5476. if !v.is_initialized() {
  5477. return false;
  5478. }
  5479. };
  5480. true
  5481. }
  5482. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  5483. while !is.eof()? {
  5484. let (field_number, wire_type) = is.read_tag_unpack()?;
  5485. match field_number {
  5486. 10 => {
  5487. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
  5488. },
  5489. 20 => {
  5490. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
  5491. },
  5492. _ => {
  5493. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5494. },
  5495. };
  5496. }
  5497. ::std::result::Result::Ok(())
  5498. }
  5499. // Compute sizes of nested messages
  5500. #[allow(unused_variables)]
  5501. fn compute_size(&self) -> u32 {
  5502. let mut my_size = 0;
  5503. if let Some(ref v) = self.shannon.as_ref() {
  5504. let len = v.compute_size();
  5505. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5506. }
  5507. if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
  5508. let len = v.compute_size();
  5509. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  5510. }
  5511. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5512. self.cached_size.set(my_size);
  5513. my_size
  5514. }
  5515. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  5516. if let Some(ref v) = self.shannon.as_ref() {
  5517. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5518. os.write_raw_varint32(v.get_cached_size())?;
  5519. v.write_to_with_cached_sizes(os)?;
  5520. }
  5521. if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
  5522. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  5523. os.write_raw_varint32(v.get_cached_size())?;
  5524. v.write_to_with_cached_sizes(os)?;
  5525. }
  5526. os.write_unknown_fields(self.get_unknown_fields())?;
  5527. ::std::result::Result::Ok(())
  5528. }
  5529. fn get_cached_size(&self) -> u32 {
  5530. self.cached_size.get()
  5531. }
  5532. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5533. &self.unknown_fields
  5534. }
  5535. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5536. &mut self.unknown_fields
  5537. }
  5538. fn as_any(&self) -> &::std::any::Any {
  5539. self as &::std::any::Any
  5540. }
  5541. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5542. self as &mut ::std::any::Any
  5543. }
  5544. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5545. self
  5546. }
  5547. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5548. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5549. }
  5550. }
  5551. impl ::protobuf::MessageStatic for CryptoResponseUnion {
  5552. fn new() -> CryptoResponseUnion {
  5553. CryptoResponseUnion::new()
  5554. }
  5555. fn descriptor_static(_: ::std::option::Option<CryptoResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5556. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5557. lock: ::protobuf::lazy::ONCE_INIT,
  5558. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5559. };
  5560. unsafe {
  5561. descriptor.get(|| {
  5562. let mut fields = ::std::vec::Vec::new();
  5563. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonResponse>>(
  5564. "shannon",
  5565. CryptoResponseUnion::get_shannon_for_reflect,
  5566. CryptoResponseUnion::mut_shannon_for_reflect,
  5567. ));
  5568. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacResponse>>(
  5569. "rc4_sha1_hmac",
  5570. CryptoResponseUnion::get_rc4_sha1_hmac_for_reflect,
  5571. CryptoResponseUnion::mut_rc4_sha1_hmac_for_reflect,
  5572. ));
  5573. ::protobuf::reflect::MessageDescriptor::new::<CryptoResponseUnion>(
  5574. "CryptoResponseUnion",
  5575. fields,
  5576. file_descriptor_proto()
  5577. )
  5578. })
  5579. }
  5580. }
  5581. }
  5582. impl ::protobuf::Clear for CryptoResponseUnion {
  5583. fn clear(&mut self) {
  5584. self.clear_shannon();
  5585. self.clear_rc4_sha1_hmac();
  5586. self.unknown_fields.clear();
  5587. }
  5588. }
  5589. impl ::std::fmt::Debug for CryptoResponseUnion {
  5590. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5591. ::protobuf::text_format::fmt(self, f)
  5592. }
  5593. }
  5594. impl ::protobuf::reflect::ProtobufValue for CryptoResponseUnion {
  5595. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5596. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5597. }
  5598. }
  5599. #[derive(PartialEq,Clone,Default)]
  5600. pub struct CryptoShannonResponse {
  5601. // message fields
  5602. dummy: ::std::option::Option<i32>,
  5603. // special fields
  5604. unknown_fields: ::protobuf::UnknownFields,
  5605. cached_size: ::protobuf::CachedSize,
  5606. }
  5607. // see codegen.rs for the explanation why impl Sync explicitly
  5608. unsafe impl ::std::marker::Sync for CryptoShannonResponse {}
  5609. impl CryptoShannonResponse {
  5610. pub fn new() -> CryptoShannonResponse {
  5611. ::std::default::Default::default()
  5612. }
  5613. pub fn default_instance() -> &'static CryptoShannonResponse {
  5614. static mut instance: ::protobuf::lazy::Lazy<CryptoShannonResponse> = ::protobuf::lazy::Lazy {
  5615. lock: ::protobuf::lazy::ONCE_INIT,
  5616. ptr: 0 as *const CryptoShannonResponse,
  5617. };
  5618. unsafe {
  5619. instance.get(CryptoShannonResponse::new)
  5620. }
  5621. }
  5622. // optional int32 dummy = 1;
  5623. pub fn clear_dummy(&mut self) {
  5624. self.dummy = ::std::option::Option::None;
  5625. }
  5626. pub fn has_dummy(&self) -> bool {
  5627. self.dummy.is_some()
  5628. }
  5629. // Param is passed by value, moved
  5630. pub fn set_dummy(&mut self, v: i32) {
  5631. self.dummy = ::std::option::Option::Some(v);
  5632. }
  5633. pub fn get_dummy(&self) -> i32 {
  5634. self.dummy.unwrap_or(0)
  5635. }
  5636. fn get_dummy_for_reflect(&self) -> &::std::option::Option<i32> {
  5637. &self.dummy
  5638. }
  5639. fn mut_dummy_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  5640. &mut self.dummy
  5641. }
  5642. }
  5643. impl ::protobuf::Message for CryptoShannonResponse {
  5644. fn is_initialized(&self) -> bool {
  5645. true
  5646. }
  5647. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  5648. while !is.eof()? {
  5649. let (field_number, wire_type) = is.read_tag_unpack()?;
  5650. match field_number {
  5651. 1 => {
  5652. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5653. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5654. }
  5655. let tmp = is.read_int32()?;
  5656. self.dummy = ::std::option::Option::Some(tmp);
  5657. },
  5658. _ => {
  5659. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5660. },
  5661. };
  5662. }
  5663. ::std::result::Result::Ok(())
  5664. }
  5665. // Compute sizes of nested messages
  5666. #[allow(unused_variables)]
  5667. fn compute_size(&self) -> u32 {
  5668. let mut my_size = 0;
  5669. if let Some(v) = self.dummy {
  5670. my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
  5671. }
  5672. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5673. self.cached_size.set(my_size);
  5674. my_size
  5675. }
  5676. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  5677. if let Some(v) = self.dummy {
  5678. os.write_int32(1, v)?;
  5679. }
  5680. os.write_unknown_fields(self.get_unknown_fields())?;
  5681. ::std::result::Result::Ok(())
  5682. }
  5683. fn get_cached_size(&self) -> u32 {
  5684. self.cached_size.get()
  5685. }
  5686. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5687. &self.unknown_fields
  5688. }
  5689. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5690. &mut self.unknown_fields
  5691. }
  5692. fn as_any(&self) -> &::std::any::Any {
  5693. self as &::std::any::Any
  5694. }
  5695. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5696. self as &mut ::std::any::Any
  5697. }
  5698. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5699. self
  5700. }
  5701. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5702. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5703. }
  5704. }
  5705. impl ::protobuf::MessageStatic for CryptoShannonResponse {
  5706. fn new() -> CryptoShannonResponse {
  5707. CryptoShannonResponse::new()
  5708. }
  5709. fn descriptor_static(_: ::std::option::Option<CryptoShannonResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5710. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5711. lock: ::protobuf::lazy::ONCE_INIT,
  5712. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5713. };
  5714. unsafe {
  5715. descriptor.get(|| {
  5716. let mut fields = ::std::vec::Vec::new();
  5717. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  5718. "dummy",
  5719. CryptoShannonResponse::get_dummy_for_reflect,
  5720. CryptoShannonResponse::mut_dummy_for_reflect,
  5721. ));
  5722. ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonResponse>(
  5723. "CryptoShannonResponse",
  5724. fields,
  5725. file_descriptor_proto()
  5726. )
  5727. })
  5728. }
  5729. }
  5730. }
  5731. impl ::protobuf::Clear for CryptoShannonResponse {
  5732. fn clear(&mut self) {
  5733. self.clear_dummy();
  5734. self.unknown_fields.clear();
  5735. }
  5736. }
  5737. impl ::std::fmt::Debug for CryptoShannonResponse {
  5738. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5739. ::protobuf::text_format::fmt(self, f)
  5740. }
  5741. }
  5742. impl ::protobuf::reflect::ProtobufValue for CryptoShannonResponse {
  5743. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5744. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5745. }
  5746. }
  5747. #[derive(PartialEq,Clone,Default)]
  5748. pub struct CryptoRc4Sha1HmacResponse {
  5749. // message fields
  5750. dummy: ::std::option::Option<i32>,
  5751. // special fields
  5752. unknown_fields: ::protobuf::UnknownFields,
  5753. cached_size: ::protobuf::CachedSize,
  5754. }
  5755. // see codegen.rs for the explanation why impl Sync explicitly
  5756. unsafe impl ::std::marker::Sync for CryptoRc4Sha1HmacResponse {}
  5757. impl CryptoRc4Sha1HmacResponse {
  5758. pub fn new() -> CryptoRc4Sha1HmacResponse {
  5759. ::std::default::Default::default()
  5760. }
  5761. pub fn default_instance() -> &'static CryptoRc4Sha1HmacResponse {
  5762. static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacResponse> = ::protobuf::lazy::Lazy {
  5763. lock: ::protobuf::lazy::ONCE_INIT,
  5764. ptr: 0 as *const CryptoRc4Sha1HmacResponse,
  5765. };
  5766. unsafe {
  5767. instance.get(CryptoRc4Sha1HmacResponse::new)
  5768. }
  5769. }
  5770. // optional int32 dummy = 1;
  5771. pub fn clear_dummy(&mut self) {
  5772. self.dummy = ::std::option::Option::None;
  5773. }
  5774. pub fn has_dummy(&self) -> bool {
  5775. self.dummy.is_some()
  5776. }
  5777. // Param is passed by value, moved
  5778. pub fn set_dummy(&mut self, v: i32) {
  5779. self.dummy = ::std::option::Option::Some(v);
  5780. }
  5781. pub fn get_dummy(&self) -> i32 {
  5782. self.dummy.unwrap_or(0)
  5783. }
  5784. fn get_dummy_for_reflect(&self) -> &::std::option::Option<i32> {
  5785. &self.dummy
  5786. }
  5787. fn mut_dummy_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  5788. &mut self.dummy
  5789. }
  5790. }
  5791. impl ::protobuf::Message for CryptoRc4Sha1HmacResponse {
  5792. fn is_initialized(&self) -> bool {
  5793. true
  5794. }
  5795. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  5796. while !is.eof()? {
  5797. let (field_number, wire_type) = is.read_tag_unpack()?;
  5798. match field_number {
  5799. 1 => {
  5800. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  5801. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  5802. }
  5803. let tmp = is.read_int32()?;
  5804. self.dummy = ::std::option::Option::Some(tmp);
  5805. },
  5806. _ => {
  5807. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  5808. },
  5809. };
  5810. }
  5811. ::std::result::Result::Ok(())
  5812. }
  5813. // Compute sizes of nested messages
  5814. #[allow(unused_variables)]
  5815. fn compute_size(&self) -> u32 {
  5816. let mut my_size = 0;
  5817. if let Some(v) = self.dummy {
  5818. my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
  5819. }
  5820. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  5821. self.cached_size.set(my_size);
  5822. my_size
  5823. }
  5824. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  5825. if let Some(v) = self.dummy {
  5826. os.write_int32(1, v)?;
  5827. }
  5828. os.write_unknown_fields(self.get_unknown_fields())?;
  5829. ::std::result::Result::Ok(())
  5830. }
  5831. fn get_cached_size(&self) -> u32 {
  5832. self.cached_size.get()
  5833. }
  5834. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  5835. &self.unknown_fields
  5836. }
  5837. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  5838. &mut self.unknown_fields
  5839. }
  5840. fn as_any(&self) -> &::std::any::Any {
  5841. self as &::std::any::Any
  5842. }
  5843. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  5844. self as &mut ::std::any::Any
  5845. }
  5846. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  5847. self
  5848. }
  5849. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  5850. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  5851. }
  5852. }
  5853. impl ::protobuf::MessageStatic for CryptoRc4Sha1HmacResponse {
  5854. fn new() -> CryptoRc4Sha1HmacResponse {
  5855. CryptoRc4Sha1HmacResponse::new()
  5856. }
  5857. fn descriptor_static(_: ::std::option::Option<CryptoRc4Sha1HmacResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  5858. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  5859. lock: ::protobuf::lazy::ONCE_INIT,
  5860. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  5861. };
  5862. unsafe {
  5863. descriptor.get(|| {
  5864. let mut fields = ::std::vec::Vec::new();
  5865. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
  5866. "dummy",
  5867. CryptoRc4Sha1HmacResponse::get_dummy_for_reflect,
  5868. CryptoRc4Sha1HmacResponse::mut_dummy_for_reflect,
  5869. ));
  5870. ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacResponse>(
  5871. "CryptoRc4Sha1HmacResponse",
  5872. fields,
  5873. file_descriptor_proto()
  5874. )
  5875. })
  5876. }
  5877. }
  5878. }
  5879. impl ::protobuf::Clear for CryptoRc4Sha1HmacResponse {
  5880. fn clear(&mut self) {
  5881. self.clear_dummy();
  5882. self.unknown_fields.clear();
  5883. }
  5884. }
  5885. impl ::std::fmt::Debug for CryptoRc4Sha1HmacResponse {
  5886. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  5887. ::protobuf::text_format::fmt(self, f)
  5888. }
  5889. }
  5890. impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacResponse {
  5891. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5892. ::protobuf::reflect::ProtobufValueRef::Message(self)
  5893. }
  5894. }
  5895. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  5896. pub enum Product {
  5897. PRODUCT_CLIENT = 0,
  5898. PRODUCT_LIBSPOTIFY = 1,
  5899. PRODUCT_MOBILE = 2,
  5900. PRODUCT_PARTNER = 3,
  5901. PRODUCT_LIBSPOTIFY_EMBEDDED = 5,
  5902. }
  5903. impl ::protobuf::ProtobufEnum for Product {
  5904. fn value(&self) -> i32 {
  5905. *self as i32
  5906. }
  5907. fn from_i32(value: i32) -> ::std::option::Option<Product> {
  5908. match value {
  5909. 0 => ::std::option::Option::Some(Product::PRODUCT_CLIENT),
  5910. 1 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY),
  5911. 2 => ::std::option::Option::Some(Product::PRODUCT_MOBILE),
  5912. 3 => ::std::option::Option::Some(Product::PRODUCT_PARTNER),
  5913. 5 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY_EMBEDDED),
  5914. _ => ::std::option::Option::None
  5915. }
  5916. }
  5917. fn values() -> &'static [Self] {
  5918. static values: &'static [Product] = &[
  5919. Product::PRODUCT_CLIENT,
  5920. Product::PRODUCT_LIBSPOTIFY,
  5921. Product::PRODUCT_MOBILE,
  5922. Product::PRODUCT_PARTNER,
  5923. Product::PRODUCT_LIBSPOTIFY_EMBEDDED,
  5924. ];
  5925. values
  5926. }
  5927. fn enum_descriptor_static(_: ::std::option::Option<Product>) -> &'static ::protobuf::reflect::EnumDescriptor {
  5928. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  5929. lock: ::protobuf::lazy::ONCE_INIT,
  5930. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  5931. };
  5932. unsafe {
  5933. descriptor.get(|| {
  5934. ::protobuf::reflect::EnumDescriptor::new("Product", file_descriptor_proto())
  5935. })
  5936. }
  5937. }
  5938. }
  5939. impl ::std::marker::Copy for Product {
  5940. }
  5941. impl ::protobuf::reflect::ProtobufValue for Product {
  5942. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5943. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  5944. }
  5945. }
  5946. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  5947. pub enum ProductFlags {
  5948. PRODUCT_FLAG_NONE = 0,
  5949. PRODUCT_FLAG_DEV_BUILD = 1,
  5950. }
  5951. impl ::protobuf::ProtobufEnum for ProductFlags {
  5952. fn value(&self) -> i32 {
  5953. *self as i32
  5954. }
  5955. fn from_i32(value: i32) -> ::std::option::Option<ProductFlags> {
  5956. match value {
  5957. 0 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_NONE),
  5958. 1 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_DEV_BUILD),
  5959. _ => ::std::option::Option::None
  5960. }
  5961. }
  5962. fn values() -> &'static [Self] {
  5963. static values: &'static [ProductFlags] = &[
  5964. ProductFlags::PRODUCT_FLAG_NONE,
  5965. ProductFlags::PRODUCT_FLAG_DEV_BUILD,
  5966. ];
  5967. values
  5968. }
  5969. fn enum_descriptor_static(_: ::std::option::Option<ProductFlags>) -> &'static ::protobuf::reflect::EnumDescriptor {
  5970. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  5971. lock: ::protobuf::lazy::ONCE_INIT,
  5972. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  5973. };
  5974. unsafe {
  5975. descriptor.get(|| {
  5976. ::protobuf::reflect::EnumDescriptor::new("ProductFlags", file_descriptor_proto())
  5977. })
  5978. }
  5979. }
  5980. }
  5981. impl ::std::marker::Copy for ProductFlags {
  5982. }
  5983. impl ::protobuf::reflect::ProtobufValue for ProductFlags {
  5984. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  5985. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  5986. }
  5987. }
  5988. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  5989. pub enum Platform {
  5990. PLATFORM_WIN32_X86 = 0,
  5991. PLATFORM_OSX_X86 = 1,
  5992. PLATFORM_LINUX_X86 = 2,
  5993. PLATFORM_IPHONE_ARM = 3,
  5994. PLATFORM_S60_ARM = 4,
  5995. PLATFORM_OSX_PPC = 5,
  5996. PLATFORM_ANDROID_ARM = 6,
  5997. PLATFORM_WINDOWS_CE_ARM = 7,
  5998. PLATFORM_LINUX_X86_64 = 8,
  5999. PLATFORM_OSX_X86_64 = 9,
  6000. PLATFORM_PALM_ARM = 10,
  6001. PLATFORM_LINUX_SH = 11,
  6002. PLATFORM_FREEBSD_X86 = 12,
  6003. PLATFORM_FREEBSD_X86_64 = 13,
  6004. PLATFORM_BLACKBERRY_ARM = 14,
  6005. PLATFORM_SONOS = 15,
  6006. PLATFORM_LINUX_MIPS = 16,
  6007. PLATFORM_LINUX_ARM = 17,
  6008. PLATFORM_LOGITECH_ARM = 18,
  6009. PLATFORM_LINUX_BLACKFIN = 19,
  6010. PLATFORM_WP7_ARM = 20,
  6011. PLATFORM_ONKYO_ARM = 21,
  6012. PLATFORM_QNXNTO_ARM = 22,
  6013. PLATFORM_BCO_ARM = 23,
  6014. }
  6015. impl ::protobuf::ProtobufEnum for Platform {
  6016. fn value(&self) -> i32 {
  6017. *self as i32
  6018. }
  6019. fn from_i32(value: i32) -> ::std::option::Option<Platform> {
  6020. match value {
  6021. 0 => ::std::option::Option::Some(Platform::PLATFORM_WIN32_X86),
  6022. 1 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86),
  6023. 2 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86),
  6024. 3 => ::std::option::Option::Some(Platform::PLATFORM_IPHONE_ARM),
  6025. 4 => ::std::option::Option::Some(Platform::PLATFORM_S60_ARM),
  6026. 5 => ::std::option::Option::Some(Platform::PLATFORM_OSX_PPC),
  6027. 6 => ::std::option::Option::Some(Platform::PLATFORM_ANDROID_ARM),
  6028. 7 => ::std::option::Option::Some(Platform::PLATFORM_WINDOWS_CE_ARM),
  6029. 8 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86_64),
  6030. 9 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86_64),
  6031. 10 => ::std::option::Option::Some(Platform::PLATFORM_PALM_ARM),
  6032. 11 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_SH),
  6033. 12 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86),
  6034. 13 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86_64),
  6035. 14 => ::std::option::Option::Some(Platform::PLATFORM_BLACKBERRY_ARM),
  6036. 15 => ::std::option::Option::Some(Platform::PLATFORM_SONOS),
  6037. 16 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_MIPS),
  6038. 17 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_ARM),
  6039. 18 => ::std::option::Option::Some(Platform::PLATFORM_LOGITECH_ARM),
  6040. 19 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_BLACKFIN),
  6041. 20 => ::std::option::Option::Some(Platform::PLATFORM_WP7_ARM),
  6042. 21 => ::std::option::Option::Some(Platform::PLATFORM_ONKYO_ARM),
  6043. 22 => ::std::option::Option::Some(Platform::PLATFORM_QNXNTO_ARM),
  6044. 23 => ::std::option::Option::Some(Platform::PLATFORM_BCO_ARM),
  6045. _ => ::std::option::Option::None
  6046. }
  6047. }
  6048. fn values() -> &'static [Self] {
  6049. static values: &'static [Platform] = &[
  6050. Platform::PLATFORM_WIN32_X86,
  6051. Platform::PLATFORM_OSX_X86,
  6052. Platform::PLATFORM_LINUX_X86,
  6053. Platform::PLATFORM_IPHONE_ARM,
  6054. Platform::PLATFORM_S60_ARM,
  6055. Platform::PLATFORM_OSX_PPC,
  6056. Platform::PLATFORM_ANDROID_ARM,
  6057. Platform::PLATFORM_WINDOWS_CE_ARM,
  6058. Platform::PLATFORM_LINUX_X86_64,
  6059. Platform::PLATFORM_OSX_X86_64,
  6060. Platform::PLATFORM_PALM_ARM,
  6061. Platform::PLATFORM_LINUX_SH,
  6062. Platform::PLATFORM_FREEBSD_X86,
  6063. Platform::PLATFORM_FREEBSD_X86_64,
  6064. Platform::PLATFORM_BLACKBERRY_ARM,
  6065. Platform::PLATFORM_SONOS,
  6066. Platform::PLATFORM_LINUX_MIPS,
  6067. Platform::PLATFORM_LINUX_ARM,
  6068. Platform::PLATFORM_LOGITECH_ARM,
  6069. Platform::PLATFORM_LINUX_BLACKFIN,
  6070. Platform::PLATFORM_WP7_ARM,
  6071. Platform::PLATFORM_ONKYO_ARM,
  6072. Platform::PLATFORM_QNXNTO_ARM,
  6073. Platform::PLATFORM_BCO_ARM,
  6074. ];
  6075. values
  6076. }
  6077. fn enum_descriptor_static(_: ::std::option::Option<Platform>) -> &'static ::protobuf::reflect::EnumDescriptor {
  6078. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  6079. lock: ::protobuf::lazy::ONCE_INIT,
  6080. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  6081. };
  6082. unsafe {
  6083. descriptor.get(|| {
  6084. ::protobuf::reflect::EnumDescriptor::new("Platform", file_descriptor_proto())
  6085. })
  6086. }
  6087. }
  6088. }
  6089. impl ::std::marker::Copy for Platform {
  6090. }
  6091. impl ::protobuf::reflect::ProtobufValue for Platform {
  6092. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  6093. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  6094. }
  6095. }
  6096. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6097. pub enum Fingerprint {
  6098. FINGERPRINT_GRAIN = 0,
  6099. FINGERPRINT_HMAC_RIPEMD = 1,
  6100. }
  6101. impl ::protobuf::ProtobufEnum for Fingerprint {
  6102. fn value(&self) -> i32 {
  6103. *self as i32
  6104. }
  6105. fn from_i32(value: i32) -> ::std::option::Option<Fingerprint> {
  6106. match value {
  6107. 0 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_GRAIN),
  6108. 1 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_HMAC_RIPEMD),
  6109. _ => ::std::option::Option::None
  6110. }
  6111. }
  6112. fn values() -> &'static [Self] {
  6113. static values: &'static [Fingerprint] = &[
  6114. Fingerprint::FINGERPRINT_GRAIN,
  6115. Fingerprint::FINGERPRINT_HMAC_RIPEMD,
  6116. ];
  6117. values
  6118. }
  6119. fn enum_descriptor_static(_: ::std::option::Option<Fingerprint>) -> &'static ::protobuf::reflect::EnumDescriptor {
  6120. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  6121. lock: ::protobuf::lazy::ONCE_INIT,
  6122. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  6123. };
  6124. unsafe {
  6125. descriptor.get(|| {
  6126. ::protobuf::reflect::EnumDescriptor::new("Fingerprint", file_descriptor_proto())
  6127. })
  6128. }
  6129. }
  6130. }
  6131. impl ::std::marker::Copy for Fingerprint {
  6132. }
  6133. impl ::protobuf::reflect::ProtobufValue for Fingerprint {
  6134. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  6135. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  6136. }
  6137. }
  6138. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6139. pub enum Cryptosuite {
  6140. CRYPTO_SUITE_SHANNON = 0,
  6141. CRYPTO_SUITE_RC4_SHA1_HMAC = 1,
  6142. }
  6143. impl ::protobuf::ProtobufEnum for Cryptosuite {
  6144. fn value(&self) -> i32 {
  6145. *self as i32
  6146. }
  6147. fn from_i32(value: i32) -> ::std::option::Option<Cryptosuite> {
  6148. match value {
  6149. 0 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_SHANNON),
  6150. 1 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC),
  6151. _ => ::std::option::Option::None
  6152. }
  6153. }
  6154. fn values() -> &'static [Self] {
  6155. static values: &'static [Cryptosuite] = &[
  6156. Cryptosuite::CRYPTO_SUITE_SHANNON,
  6157. Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC,
  6158. ];
  6159. values
  6160. }
  6161. fn enum_descriptor_static(_: ::std::option::Option<Cryptosuite>) -> &'static ::protobuf::reflect::EnumDescriptor {
  6162. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  6163. lock: ::protobuf::lazy::ONCE_INIT,
  6164. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  6165. };
  6166. unsafe {
  6167. descriptor.get(|| {
  6168. ::protobuf::reflect::EnumDescriptor::new("Cryptosuite", file_descriptor_proto())
  6169. })
  6170. }
  6171. }
  6172. }
  6173. impl ::std::marker::Copy for Cryptosuite {
  6174. }
  6175. impl ::protobuf::reflect::ProtobufValue for Cryptosuite {
  6176. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  6177. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  6178. }
  6179. }
  6180. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6181. pub enum Powscheme {
  6182. POW_HASH_CASH = 0,
  6183. }
  6184. impl ::protobuf::ProtobufEnum for Powscheme {
  6185. fn value(&self) -> i32 {
  6186. *self as i32
  6187. }
  6188. fn from_i32(value: i32) -> ::std::option::Option<Powscheme> {
  6189. match value {
  6190. 0 => ::std::option::Option::Some(Powscheme::POW_HASH_CASH),
  6191. _ => ::std::option::Option::None
  6192. }
  6193. }
  6194. fn values() -> &'static [Self] {
  6195. static values: &'static [Powscheme] = &[
  6196. Powscheme::POW_HASH_CASH,
  6197. ];
  6198. values
  6199. }
  6200. fn enum_descriptor_static(_: ::std::option::Option<Powscheme>) -> &'static ::protobuf::reflect::EnumDescriptor {
  6201. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  6202. lock: ::protobuf::lazy::ONCE_INIT,
  6203. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  6204. };
  6205. unsafe {
  6206. descriptor.get(|| {
  6207. ::protobuf::reflect::EnumDescriptor::new("Powscheme", file_descriptor_proto())
  6208. })
  6209. }
  6210. }
  6211. }
  6212. impl ::std::marker::Copy for Powscheme {
  6213. }
  6214. impl ::protobuf::reflect::ProtobufValue for Powscheme {
  6215. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  6216. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  6217. }
  6218. }
  6219. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  6220. pub enum ErrorCode {
  6221. ProtocolError = 0,
  6222. TryAnotherAP = 2,
  6223. BadConnectionId = 5,
  6224. TravelRestriction = 9,
  6225. PremiumAccountRequired = 11,
  6226. BadCredentials = 12,
  6227. CouldNotValidateCredentials = 13,
  6228. AccountExists = 14,
  6229. ExtraVerificationRequired = 15,
  6230. InvalidAppKey = 16,
  6231. ApplicationBanned = 17,
  6232. }
  6233. impl ::protobuf::ProtobufEnum for ErrorCode {
  6234. fn value(&self) -> i32 {
  6235. *self as i32
  6236. }
  6237. fn from_i32(value: i32) -> ::std::option::Option<ErrorCode> {
  6238. match value {
  6239. 0 => ::std::option::Option::Some(ErrorCode::ProtocolError),
  6240. 2 => ::std::option::Option::Some(ErrorCode::TryAnotherAP),
  6241. 5 => ::std::option::Option::Some(ErrorCode::BadConnectionId),
  6242. 9 => ::std::option::Option::Some(ErrorCode::TravelRestriction),
  6243. 11 => ::std::option::Option::Some(ErrorCode::PremiumAccountRequired),
  6244. 12 => ::std::option::Option::Some(ErrorCode::BadCredentials),
  6245. 13 => ::std::option::Option::Some(ErrorCode::CouldNotValidateCredentials),
  6246. 14 => ::std::option::Option::Some(ErrorCode::AccountExists),
  6247. 15 => ::std::option::Option::Some(ErrorCode::ExtraVerificationRequired),
  6248. 16 => ::std::option::Option::Some(ErrorCode::InvalidAppKey),
  6249. 17 => ::std::option::Option::Some(ErrorCode::ApplicationBanned),
  6250. _ => ::std::option::Option::None
  6251. }
  6252. }
  6253. fn values() -> &'static [Self] {
  6254. static values: &'static [ErrorCode] = &[
  6255. ErrorCode::ProtocolError,
  6256. ErrorCode::TryAnotherAP,
  6257. ErrorCode::BadConnectionId,
  6258. ErrorCode::TravelRestriction,
  6259. ErrorCode::PremiumAccountRequired,
  6260. ErrorCode::BadCredentials,
  6261. ErrorCode::CouldNotValidateCredentials,
  6262. ErrorCode::AccountExists,
  6263. ErrorCode::ExtraVerificationRequired,
  6264. ErrorCode::InvalidAppKey,
  6265. ErrorCode::ApplicationBanned,
  6266. ];
  6267. values
  6268. }
  6269. fn enum_descriptor_static(_: ::std::option::Option<ErrorCode>) -> &'static ::protobuf::reflect::EnumDescriptor {
  6270. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  6271. lock: ::protobuf::lazy::ONCE_INIT,
  6272. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  6273. };
  6274. unsafe {
  6275. descriptor.get(|| {
  6276. ::protobuf::reflect::EnumDescriptor::new("ErrorCode", file_descriptor_proto())
  6277. })
  6278. }
  6279. }
  6280. }
  6281. impl ::std::marker::Copy for ErrorCode {
  6282. }
  6283. impl ::protobuf::reflect::ProtobufValue for ErrorCode {
  6284. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  6285. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  6286. }
  6287. }
  6288. static file_descriptor_proto_data: &'static [u8] = b"\
  6289. \n\x11keyexchange.proto\"\xb2\x03\n\x0bClientHello\x12)\n\nbuild_info\
  6290. \x18\n\x20\x02(\x0b2\n.BuildInfoR\tbuildInfo\x12C\n\x16fingerprints_supp\
  6291. orted\x18\x14\x20\x03(\x0e2\x0c.FingerprintR\x15fingerprintsSupported\
  6292. \x12C\n\x16cryptosuites_supported\x18\x1e\x20\x03(\x0e2\x0c.CryptosuiteR\
  6293. \x15cryptosuitesSupported\x12=\n\x14powschemes_supported\x18(\x20\x03(\
  6294. \x0e2\n.PowschemeR\x13powschemesSupported\x12D\n\x12login_crypto_hello\
  6295. \x182\x20\x02(\x0b2\x16.LoginCryptoHelloUnionR\x10loginCryptoHello\x12!\
  6296. \n\x0cclient_nonce\x18<\x20\x02(\x0cR\x0bclientNonce\x12\x18\n\x07paddin\
  6297. g\x18F\x20\x01(\x0cR\x07padding\x12,\n\x0bfeature_set\x18P\x20\x01(\x0b2\
  6298. \x0b.FeatureSetR\nfeatureSet\"\xa4\x01\n\tBuildInfo\x12\"\n\x07product\
  6299. \x18\n\x20\x02(\x0e2\x08.ProductR\x07product\x122\n\rproduct_flags\x18\
  6300. \x14\x20\x03(\x0e2\r.ProductFlagsR\x0cproductFlags\x12%\n\x08platform\
  6301. \x18\x1e\x20\x02(\x0e2\t.PlatformR\x08platform\x12\x18\n\x07version\x18(\
  6302. \x20\x02(\x04R\x07version\"^\n\x15LoginCryptoHelloUnion\x12E\n\x0ediffie\
  6303. _hellman\x18\n\x20\x01(\x0b2\x1e.LoginCryptoDiffieHellmanHelloR\rdiffieH\
  6304. ellman\"[\n\x1dLoginCryptoDiffieHellmanHello\x12\x0e\n\x02gc\x18\n\x20\
  6305. \x02(\x0cR\x02gc\x12*\n\x11server_keys_known\x18\x14\x20\x02(\rR\x0fserv\
  6306. erKeysKnown\"Y\n\nFeatureSet\x12\x20\n\x0bautoupdate2\x18\x01\x20\x01(\
  6307. \x08R\x0bautoupdate2\x12)\n\x10current_location\x18\x02\x20\x01(\x08R\
  6308. \x0fcurrentLocation\"\xa5\x01\n\x11APResponseMessage\x12*\n\tchallenge\
  6309. \x18\n\x20\x01(\x0b2\x0c.APChallengeR\tchallenge\x121\n\x07upgrade\x18\
  6310. \x14\x20\x01(\x0b2\x17.UpgradeRequiredMessageR\x07upgrade\x121\n\x0clogi\
  6311. n_failed\x18\x1e\x20\x01(\x0b2\x0e.APLoginFailedR\x0bloginFailed\"\xe8\
  6312. \x02\n\x0bAPChallenge\x12P\n\x16login_crypto_challenge\x18\n\x20\x02(\
  6313. \x0b2\x1a.LoginCryptoChallengeUnionR\x14loginCryptoChallenge\x12O\n\x15f\
  6314. ingerprint_challenge\x18\x14\x20\x02(\x0b2\x1a.FingerprintChallengeUnion\
  6315. R\x14fingerprintChallenge\x127\n\rpow_challenge\x18\x1e\x20\x02(\x0b2\
  6316. \x12.PoWChallengeUnionR\x0cpowChallenge\x12@\n\x10crypto_challenge\x18(\
  6317. \x20\x02(\x0b2\x15.CryptoChallengeUnionR\x0fcryptoChallenge\x12!\n\x0cse\
  6318. rver_nonce\x182\x20\x02(\x0cR\x0bserverNonce\x12\x18\n\x07padding\x18<\
  6319. \x20\x01(\x0cR\x07padding\"f\n\x19LoginCryptoChallengeUnion\x12I\n\x0edi\
  6320. ffie_hellman\x18\n\x20\x01(\x0b2\".LoginCryptoDiffieHellmanChallengeR\rd\
  6321. iffieHellman\"\x88\x01\n!LoginCryptoDiffieHellmanChallenge\x12\x0e\n\x02\
  6322. gs\x18\n\x20\x02(\x0cR\x02gs\x120\n\x14server_signature_key\x18\x14\x20\
  6323. \x02(\x05R\x12serverSignatureKey\x12!\n\x0cgs_signature\x18\x1e\x20\x02(\
  6324. \x0cR\x0bgsSignature\"\x8f\x01\n\x19FingerprintChallengeUnion\x120\n\x05\
  6325. grain\x18\n\x20\x01(\x0b2\x1a.FingerprintGrainChallengeR\x05grain\x12@\n\
  6326. \x0bhmac_ripemd\x18\x14\x20\x01(\x0b2\x1f.FingerprintHmacRipemdChallenge\
  6327. R\nhmacRipemd\"-\n\x19FingerprintGrainChallenge\x12\x10\n\x03kek\x18\n\
  6328. \x20\x02(\x0cR\x03kek\">\n\x1eFingerprintHmacRipemdChallenge\x12\x1c\n\t\
  6329. challenge\x18\n\x20\x02(\x0cR\tchallenge\"G\n\x11PoWChallengeUnion\x122\
  6330. \n\thash_cash\x18\n\x20\x01(\x0b2\x15.PoWHashCashChallengeR\x08hashCash\
  6331. \"^\n\x14PoWHashCashChallenge\x12\x16\n\x06prefix\x18\n\x20\x01(\x0cR\
  6332. \x06prefix\x12\x16\n\x06length\x18\x14\x20\x01(\x05R\x06length\x12\x16\n\
  6333. \x06target\x18\x1e\x20\x01(\x05R\x06target\"\x8a\x01\n\x14CryptoChalleng\
  6334. eUnion\x121\n\x07shannon\x18\n\x20\x01(\x0b2\x17.CryptoShannonChallengeR\
  6335. \x07shannon\x12?\n\rrc4_sha1_hmac\x18\x14\x20\x01(\x0b2\x1b.CryptoRc4Sha\
  6336. 1HmacChallengeR\x0brc4Sha1Hmac\"\x18\n\x16CryptoShannonChallenge\"\x1c\n\
  6337. \x1aCryptoRc4Sha1HmacChallenge\"\x87\x01\n\x16UpgradeRequiredMessage\x12\
  6338. .\n\x13upgrade_signed_part\x18\n\x20\x02(\x0cR\x11upgradeSignedPart\x12\
  6339. \x1c\n\tsignature\x18\x14\x20\x02(\x0cR\tsignature\x12\x1f\n\x0bhttp_suf\
  6340. fix\x18\x1e\x20\x01(\tR\nhttpSuffix\"\xa0\x01\n\rAPLoginFailed\x12)\n\ne\
  6341. rror_code\x18\n\x20\x02(\x0e2\n.ErrorCodeR\terrorCode\x12\x1f\n\x0bretry\
  6342. _delay\x18\x14\x20\x01(\x05R\nretryDelay\x12\x16\n\x06expiry\x18\x1e\x20\
  6343. \x01(\x05R\x06expiry\x12+\n\x11error_description\x18(\x20\x01(\tR\x10err\
  6344. orDescription\"\xdd\x01\n\x17ClientResponsePlaintext\x12M\n\x15login_cry\
  6345. pto_response\x18\n\x20\x02(\x0b2\x19.LoginCryptoResponseUnionR\x13loginC\
  6346. ryptoResponse\x124\n\x0cpow_response\x18\x14\x20\x02(\x0b2\x11.PoWRespon\
  6347. seUnionR\x0bpowResponse\x12=\n\x0fcrypto_response\x18\x1e\x20\x02(\x0b2\
  6348. \x14.CryptoResponseUnionR\x0ecryptoResponse\"d\n\x18LoginCryptoResponseU\
  6349. nion\x12H\n\x0ediffie_hellman\x18\n\x20\x01(\x0b2!.LoginCryptoDiffieHell\
  6350. manResponseR\rdiffieHellman\"6\n\x20LoginCryptoDiffieHellmanResponse\x12\
  6351. \x12\n\x04hmac\x18\n\x20\x02(\x0cR\x04hmac\"E\n\x10PoWResponseUnion\x121\
  6352. \n\thash_cash\x18\n\x20\x01(\x0b2\x14.PoWHashCashResponseR\x08hashCash\"\
  6353. 6\n\x13PoWHashCashResponse\x12\x1f\n\x0bhash_suffix\x18\n\x20\x02(\x0cR\
  6354. \nhashSuffix\"\x87\x01\n\x13CryptoResponseUnion\x120\n\x07shannon\x18\n\
  6355. \x20\x01(\x0b2\x16.CryptoShannonResponseR\x07shannon\x12>\n\rrc4_sha1_hm\
  6356. ac\x18\x14\x20\x01(\x0b2\x1a.CryptoRc4Sha1HmacResponseR\x0brc4Sha1Hmac\"\
  6357. -\n\x15CryptoShannonResponse\x12\x14\n\x05dummy\x18\x01\x20\x01(\x05R\
  6358. \x05dummy\"1\n\x19CryptoRc4Sha1HmacResponse\x12\x14\n\x05dummy\x18\x01\
  6359. \x20\x01(\x05R\x05dummy*\x7f\n\x07Product\x12\x12\n\x0ePRODUCT_CLIENT\
  6360. \x10\0\x12\x16\n\x12PRODUCT_LIBSPOTIFY\x10\x01\x12\x12\n\x0ePRODUCT_MOBI\
  6361. LE\x10\x02\x12\x13\n\x0fPRODUCT_PARTNER\x10\x03\x12\x1f\n\x1bPRODUCT_LIB\
  6362. SPOTIFY_EMBEDDED\x10\x05*A\n\x0cProductFlags\x12\x15\n\x11PRODUCT_FLAG_N\
  6363. ONE\x10\0\x12\x1a\n\x16PRODUCT_FLAG_DEV_BUILD\x10\x01*\xdc\x04\n\x08Plat\
  6364. form\x12\x16\n\x12PLATFORM_WIN32_X86\x10\0\x12\x14\n\x10PLATFORM_OSX_X86\
  6365. \x10\x01\x12\x16\n\x12PLATFORM_LINUX_X86\x10\x02\x12\x17\n\x13PLATFORM_I\
  6366. PHONE_ARM\x10\x03\x12\x14\n\x10PLATFORM_S60_ARM\x10\x04\x12\x14\n\x10PLA\
  6367. TFORM_OSX_PPC\x10\x05\x12\x18\n\x14PLATFORM_ANDROID_ARM\x10\x06\x12\x1b\
  6368. \n\x17PLATFORM_WINDOWS_CE_ARM\x10\x07\x12\x19\n\x15PLATFORM_LINUX_X86_64\
  6369. \x10\x08\x12\x17\n\x13PLATFORM_OSX_X86_64\x10\t\x12\x15\n\x11PLATFORM_PA\
  6370. LM_ARM\x10\n\x12\x15\n\x11PLATFORM_LINUX_SH\x10\x0b\x12\x18\n\x14PLATFOR\
  6371. M_FREEBSD_X86\x10\x0c\x12\x1b\n\x17PLATFORM_FREEBSD_X86_64\x10\r\x12\x1b\
  6372. \n\x17PLATFORM_BLACKBERRY_ARM\x10\x0e\x12\x12\n\x0ePLATFORM_SONOS\x10\
  6373. \x0f\x12\x17\n\x13PLATFORM_LINUX_MIPS\x10\x10\x12\x16\n\x12PLATFORM_LINU\
  6374. X_ARM\x10\x11\x12\x19\n\x15PLATFORM_LOGITECH_ARM\x10\x12\x12\x1b\n\x17PL\
  6375. ATFORM_LINUX_BLACKFIN\x10\x13\x12\x14\n\x10PLATFORM_WP7_ARM\x10\x14\x12\
  6376. \x16\n\x12PLATFORM_ONKYO_ARM\x10\x15\x12\x17\n\x13PLATFORM_QNXNTO_ARM\
  6377. \x10\x16\x12\x14\n\x10PLATFORM_BCO_ARM\x10\x17*A\n\x0bFingerprint\x12\
  6378. \x15\n\x11FINGERPRINT_GRAIN\x10\0\x12\x1b\n\x17FINGERPRINT_HMAC_RIPEMD\
  6379. \x10\x01*G\n\x0bCryptosuite\x12\x18\n\x14CRYPTO_SUITE_SHANNON\x10\0\x12\
  6380. \x1e\n\x1aCRYPTO_SUITE_RC4_SHA1_HMAC\x10\x01*\x1e\n\tPowscheme\x12\x11\n\
  6381. \rPOW_HASH_CASH\x10\0*\x89\x02\n\tErrorCode\x12\x11\n\rProtocolError\x10\
  6382. \0\x12\x10\n\x0cTryAnotherAP\x10\x02\x12\x13\n\x0fBadConnectionId\x10\
  6383. \x05\x12\x15\n\x11TravelRestriction\x10\t\x12\x1a\n\x16PremiumAccountReq\
  6384. uired\x10\x0b\x12\x12\n\x0eBadCredentials\x10\x0c\x12\x1f\n\x1bCouldNotV\
  6385. alidateCredentials\x10\r\x12\x11\n\rAccountExists\x10\x0e\x12\x1d\n\x19E\
  6386. xtraVerificationRequired\x10\x0f\x12\x11\n\rInvalidAppKey\x10\x10\x12\
  6387. \x15\n\x11ApplicationBanned\x10\x11J\xbd6\n\x07\x12\x05\0\0\xe2\x01\x01\
  6388. \n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x0b\x01\n\
  6389. \n\n\x03\x04\0\x01\x12\x03\x02\x08\x13\n\x0b\n\x04\x04\0\x02\0\x12\x03\
  6390. \x03\x04(\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x03\x04\x0c\n\x0c\n\x05\
  6391. \x04\0\x02\0\x06\x12\x03\x03\r\x16\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\
  6392. \x03\x17!\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03$'\n\x0b\n\x04\x04\0\
  6393. \x02\x01\x12\x03\x04\x047\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\x04\x04\
  6394. \x0c\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x04\r\x18\n\x0c\n\x05\x04\0\
  6395. \x02\x01\x01\x12\x03\x04\x19/\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x042\
  6396. 6\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x05\x047\n\x0c\n\x05\x04\0\x02\x02\
  6397. \x04\x12\x03\x05\x04\x0c\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\x05\r\x18\
  6398. \n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x05\x19/\n\x0c\n\x05\x04\0\x02\
  6399. \x02\x03\x12\x03\x0526\n\x0b\n\x04\x04\0\x02\x03\x12\x03\x06\x043\n\x0c\
  6400. \n\x05\x04\0\x02\x03\x04\x12\x03\x06\x04\x0c\n\x0c\n\x05\x04\0\x02\x03\
  6401. \x06\x12\x03\x06\r\x16\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x06\x17+\n\
  6402. \x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x06.2\n\x0b\n\x04\x04\0\x02\x04\x12\
  6403. \x03\x07\x04=\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x03\x07\x04\x0c\n\x0c\n\
  6404. \x05\x04\0\x02\x04\x06\x12\x03\x07\r\"\n\x0c\n\x05\x04\0\x02\x04\x01\x12\
  6405. \x03\x07#5\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x078<\n\x0b\n\x04\x04\0\
  6406. \x02\x05\x12\x03\x08\x04'\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03\x08\x04\
  6407. \x0c\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03\x08\r\x12\n\x0c\n\x05\x04\0\
  6408. \x02\x05\x01\x12\x03\x08\x13\x1f\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\
  6409. \x08\"&\n\x0b\n\x04\x04\0\x02\x06\x12\x03\t\x04\"\n\x0c\n\x05\x04\0\x02\
  6410. \x06\x04\x12\x03\t\x04\x0c\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03\t\r\x12\
  6411. \n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03\t\x13\x1a\n\x0c\n\x05\x04\0\x02\
  6412. \x06\x03\x12\x03\t\x1d!\n\x0b\n\x04\x04\0\x02\x07\x12\x03\n\x04+\n\x0c\n\
  6413. \x05\x04\0\x02\x07\x04\x12\x03\n\x04\x0c\n\x0c\n\x05\x04\0\x02\x07\x06\
  6414. \x12\x03\n\r\x17\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03\n\x18#\n\x0c\n\
  6415. \x05\x04\0\x02\x07\x03\x12\x03\n&*\n\n\n\x02\x04\x01\x12\x04\x0e\0\x13\
  6416. \x01\n\n\n\x03\x04\x01\x01\x12\x03\x0e\x08\x11\n\x0b\n\x04\x04\x01\x02\0\
  6417. \x12\x03\x0f\x04#\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03\x0f\x04\x0c\n\
  6418. \x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x0f\r\x14\n\x0c\n\x05\x04\x01\x02\0\
  6419. \x01\x12\x03\x0f\x15\x1c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x0f\x1f\"\
  6420. \n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x10\x04/\n\x0c\n\x05\x04\x01\x02\
  6421. \x01\x04\x12\x03\x10\x04\x0c\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\x10\
  6422. \r\x19\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\x10\x1a'\n\x0c\n\x05\x04\
  6423. \x01\x02\x01\x03\x12\x03\x10*.\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x11\
  6424. \x04&\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03\x11\x04\x0c\n\x0c\n\x05\
  6425. \x04\x01\x02\x02\x06\x12\x03\x11\r\x15\n\x0c\n\x05\x04\x01\x02\x02\x01\
  6426. \x12\x03\x11\x16\x1e\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\x11!%\n\x0b\
  6427. \n\x04\x04\x01\x02\x03\x12\x03\x12\x04#\n\x0c\n\x05\x04\x01\x02\x03\x04\
  6428. \x12\x03\x12\x04\x0c\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03\x12\r\x13\n\
  6429. \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\x12\x14\x1b\n\x0c\n\x05\x04\x01\
  6430. \x02\x03\x03\x12\x03\x12\x1e\"\n\n\n\x02\x05\0\x12\x04\x15\0\x1b\x01\n\n\
  6431. \n\x03\x05\0\x01\x12\x03\x15\x05\x0c\n\x0b\n\x04\x05\0\x02\0\x12\x03\x16\
  6432. \x04\x19\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x16\x04\x12\n\x0c\n\x05\x05\
  6433. \0\x02\0\x02\x12\x03\x16\x15\x18\n\x0b\n\x04\x05\0\x02\x01\x12\x03\x17\
  6434. \x04\x1c\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x17\x04\x16\n\x0c\n\x05\
  6435. \x05\0\x02\x01\x02\x12\x03\x17\x18\x1b\n\x0b\n\x04\x05\0\x02\x02\x12\x03\
  6436. \x18\x04\x19\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x18\x04\x12\n\x0c\n\
  6437. \x05\x05\0\x02\x02\x02\x12\x03\x18\x15\x18\n\x0b\n\x04\x05\0\x02\x03\x12\
  6438. \x03\x19\x04\x1a\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03\x19\x04\x13\n\x0c\
  6439. \n\x05\x05\0\x02\x03\x02\x12\x03\x19\x16\x19\n\x0b\n\x04\x05\0\x02\x04\
  6440. \x12\x03\x1a\x04&\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03\x1a\x04\x1f\n\
  6441. \x0c\n\x05\x05\0\x02\x04\x02\x12\x03\x1a\"%\n\n\n\x02\x05\x01\x12\x04\
  6442. \x1d\0\x20\x01\n\n\n\x03\x05\x01\x01\x12\x03\x1d\x05\x11\n\x0b\n\x04\x05\
  6443. \x01\x02\0\x12\x03\x1e\x04\x1c\n\x0c\n\x05\x05\x01\x02\0\x01\x12\x03\x1e\
  6444. \x04\x15\n\x0c\n\x05\x05\x01\x02\0\x02\x12\x03\x1e\x18\x1b\n\x0b\n\x04\
  6445. \x05\x01\x02\x01\x12\x03\x1f\x04!\n\x0c\n\x05\x05\x01\x02\x01\x01\x12\
  6446. \x03\x1f\x04\x1a\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x03\x1f\x1d\x20\n\n\
  6447. \n\x02\x05\x02\x12\x04\"\0;\x01\n\n\n\x03\x05\x02\x01\x12\x03\"\x05\r\n\
  6448. \x0b\n\x04\x05\x02\x02\0\x12\x03#\x04\x1d\n\x0c\n\x05\x05\x02\x02\0\x01\
  6449. \x12\x03#\x04\x16\n\x0c\n\x05\x05\x02\x02\0\x02\x12\x03#\x19\x1c\n\x0b\n\
  6450. \x04\x05\x02\x02\x01\x12\x03$\x04\x1b\n\x0c\n\x05\x05\x02\x02\x01\x01\
  6451. \x12\x03$\x04\x14\n\x0c\n\x05\x05\x02\x02\x01\x02\x12\x03$\x17\x1a\n\x0b\
  6452. \n\x04\x05\x02\x02\x02\x12\x03%\x04\x1d\n\x0c\n\x05\x05\x02\x02\x02\x01\
  6453. \x12\x03%\x04\x16\n\x0c\n\x05\x05\x02\x02\x02\x02\x12\x03%\x19\x1c\n\x0b\
  6454. \n\x04\x05\x02\x02\x03\x12\x03&\x04\x1e\n\x0c\n\x05\x05\x02\x02\x03\x01\
  6455. \x12\x03&\x04\x17\n\x0c\n\x05\x05\x02\x02\x03\x02\x12\x03&\x1a\x1d\n\x0b\
  6456. \n\x04\x05\x02\x02\x04\x12\x03'\x04\x1b\n\x0c\n\x05\x05\x02\x02\x04\x01\
  6457. \x12\x03'\x04\x14\n\x0c\n\x05\x05\x02\x02\x04\x02\x12\x03'\x17\x1a\n\x0b\
  6458. \n\x04\x05\x02\x02\x05\x12\x03(\x04\x1b\n\x0c\n\x05\x05\x02\x02\x05\x01\
  6459. \x12\x03(\x04\x14\n\x0c\n\x05\x05\x02\x02\x05\x02\x12\x03(\x17\x1a\n\x0b\
  6460. \n\x04\x05\x02\x02\x06\x12\x03)\x04\x1f\n\x0c\n\x05\x05\x02\x02\x06\x01\
  6461. \x12\x03)\x04\x18\n\x0c\n\x05\x05\x02\x02\x06\x02\x12\x03)\x1b\x1e\n\x0b\
  6462. \n\x04\x05\x02\x02\x07\x12\x03*\x04\"\n\x0c\n\x05\x05\x02\x02\x07\x01\
  6463. \x12\x03*\x04\x1b\n\x0c\n\x05\x05\x02\x02\x07\x02\x12\x03*\x1e!\n\x0b\n\
  6464. \x04\x05\x02\x02\x08\x12\x03+\x04\x20\n\x0c\n\x05\x05\x02\x02\x08\x01\
  6465. \x12\x03+\x04\x19\n\x0c\n\x05\x05\x02\x02\x08\x02\x12\x03+\x1c\x1f\n\x0b\
  6466. \n\x04\x05\x02\x02\t\x12\x03,\x04\x1e\n\x0c\n\x05\x05\x02\x02\t\x01\x12\
  6467. \x03,\x04\x17\n\x0c\n\x05\x05\x02\x02\t\x02\x12\x03,\x1a\x1d\n\x0b\n\x04\
  6468. \x05\x02\x02\n\x12\x03-\x04\x1c\n\x0c\n\x05\x05\x02\x02\n\x01\x12\x03-\
  6469. \x04\x15\n\x0c\n\x05\x05\x02\x02\n\x02\x12\x03-\x18\x1b\n\x0b\n\x04\x05\
  6470. \x02\x02\x0b\x12\x03.\x04\x1c\n\x0c\n\x05\x05\x02\x02\x0b\x01\x12\x03.\
  6471. \x04\x15\n\x0c\n\x05\x05\x02\x02\x0b\x02\x12\x03.\x18\x1b\n\x0b\n\x04\
  6472. \x05\x02\x02\x0c\x12\x03/\x04\x1f\n\x0c\n\x05\x05\x02\x02\x0c\x01\x12\
  6473. \x03/\x04\x18\n\x0c\n\x05\x05\x02\x02\x0c\x02\x12\x03/\x1b\x1e\n\x0b\n\
  6474. \x04\x05\x02\x02\r\x12\x030\x04\"\n\x0c\n\x05\x05\x02\x02\r\x01\x12\x030\
  6475. \x04\x1b\n\x0c\n\x05\x05\x02\x02\r\x02\x12\x030\x1e!\n\x0b\n\x04\x05\x02\
  6476. \x02\x0e\x12\x031\x04\"\n\x0c\n\x05\x05\x02\x02\x0e\x01\x12\x031\x04\x1b\
  6477. \n\x0c\n\x05\x05\x02\x02\x0e\x02\x12\x031\x1e!\n\x0b\n\x04\x05\x02\x02\
  6478. \x0f\x12\x032\x04\x19\n\x0c\n\x05\x05\x02\x02\x0f\x01\x12\x032\x04\x12\n\
  6479. \x0c\n\x05\x05\x02\x02\x0f\x02\x12\x032\x15\x18\n\x0b\n\x04\x05\x02\x02\
  6480. \x10\x12\x033\x04\x1f\n\x0c\n\x05\x05\x02\x02\x10\x01\x12\x033\x04\x17\n\
  6481. \x0c\n\x05\x05\x02\x02\x10\x02\x12\x033\x1a\x1e\n\x0b\n\x04\x05\x02\x02\
  6482. \x11\x12\x034\x04\x1e\n\x0c\n\x05\x05\x02\x02\x11\x01\x12\x034\x04\x16\n\
  6483. \x0c\n\x05\x05\x02\x02\x11\x02\x12\x034\x19\x1d\n\x0b\n\x04\x05\x02\x02\
  6484. \x12\x12\x035\x04!\n\x0c\n\x05\x05\x02\x02\x12\x01\x12\x035\x04\x19\n\
  6485. \x0c\n\x05\x05\x02\x02\x12\x02\x12\x035\x1c\x20\n\x0b\n\x04\x05\x02\x02\
  6486. \x13\x12\x036\x04#\n\x0c\n\x05\x05\x02\x02\x13\x01\x12\x036\x04\x1b\n\
  6487. \x0c\n\x05\x05\x02\x02\x13\x02\x12\x036\x1e\"\n\x0b\n\x04\x05\x02\x02\
  6488. \x14\x12\x037\x04\x1c\n\x0c\n\x05\x05\x02\x02\x14\x01\x12\x037\x04\x14\n\
  6489. \x0c\n\x05\x05\x02\x02\x14\x02\x12\x037\x17\x1b\n\x0b\n\x04\x05\x02\x02\
  6490. \x15\x12\x038\x04\x1e\n\x0c\n\x05\x05\x02\x02\x15\x01\x12\x038\x04\x16\n\
  6491. \x0c\n\x05\x05\x02\x02\x15\x02\x12\x038\x19\x1d\n\x0b\n\x04\x05\x02\x02\
  6492. \x16\x12\x039\x04\x1f\n\x0c\n\x05\x05\x02\x02\x16\x01\x12\x039\x04\x17\n\
  6493. \x0c\n\x05\x05\x02\x02\x16\x02\x12\x039\x1a\x1e\n\x0b\n\x04\x05\x02\x02\
  6494. \x17\x12\x03:\x04\x1c\n\x0c\n\x05\x05\x02\x02\x17\x01\x12\x03:\x04\x14\n\
  6495. \x0c\n\x05\x05\x02\x02\x17\x02\x12\x03:\x17\x1b\n\n\n\x02\x05\x03\x12\
  6496. \x04=\0@\x01\n\n\n\x03\x05\x03\x01\x12\x03=\x05\x10\n\x0b\n\x04\x05\x03\
  6497. \x02\0\x12\x03>\x04\x1c\n\x0c\n\x05\x05\x03\x02\0\x01\x12\x03>\x04\x15\n\
  6498. \x0c\n\x05\x05\x03\x02\0\x02\x12\x03>\x18\x1b\n\x0b\n\x04\x05\x03\x02\
  6499. \x01\x12\x03?\x04\"\n\x0c\n\x05\x05\x03\x02\x01\x01\x12\x03?\x04\x1b\n\
  6500. \x0c\n\x05\x05\x03\x02\x01\x02\x12\x03?\x1e!\n\n\n\x02\x05\x04\x12\x04B\
  6501. \0E\x01\n\n\n\x03\x05\x04\x01\x12\x03B\x05\x10\n\x0b\n\x04\x05\x04\x02\0\
  6502. \x12\x03C\x04\x1f\n\x0c\n\x05\x05\x04\x02\0\x01\x12\x03C\x04\x18\n\x0c\n\
  6503. \x05\x05\x04\x02\0\x02\x12\x03C\x1b\x1e\n\x0b\n\x04\x05\x04\x02\x01\x12\
  6504. \x03D\x04%\n\x0c\n\x05\x05\x04\x02\x01\x01\x12\x03D\x04\x1e\n\x0c\n\x05\
  6505. \x05\x04\x02\x01\x02\x12\x03D!$\n\n\n\x02\x05\x05\x12\x04G\0I\x01\n\n\n\
  6506. \x03\x05\x05\x01\x12\x03G\x05\x0e\n\x0b\n\x04\x05\x05\x02\0\x12\x03H\x04\
  6507. \x18\n\x0c\n\x05\x05\x05\x02\0\x01\x12\x03H\x04\x11\n\x0c\n\x05\x05\x05\
  6508. \x02\0\x02\x12\x03H\x14\x17\n\n\n\x02\x04\x02\x12\x04L\0N\x01\n\n\n\x03\
  6509. \x04\x02\x01\x12\x03L\x08\x1d\n\x0b\n\x04\x04\x02\x02\0\x12\x03M\x04@\n\
  6510. \x0c\n\x05\x04\x02\x02\0\x04\x12\x03M\x04\x0c\n\x0c\n\x05\x04\x02\x02\0\
  6511. \x06\x12\x03M\r*\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03M+9\n\x0c\n\x05\
  6512. \x04\x02\x02\0\x03\x12\x03M<?\n\n\n\x02\x04\x03\x12\x04Q\0T\x01\n\n\n\
  6513. \x03\x04\x03\x01\x12\x03Q\x08%\n\x0b\n\x04\x04\x03\x02\0\x12\x03R\x04\
  6514. \x1c\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03R\x04\x0c\n\x0c\n\x05\x04\x03\
  6515. \x02\0\x05\x12\x03R\r\x12\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03R\x13\x15\
  6516. \n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03R\x18\x1b\n\x0b\n\x04\x04\x03\x02\
  6517. \x01\x12\x03S\x04-\n\x0c\n\x05\x04\x03\x02\x01\x04\x12\x03S\x04\x0c\n\
  6518. \x0c\n\x05\x04\x03\x02\x01\x05\x12\x03S\r\x13\n\x0c\n\x05\x04\x03\x02\
  6519. \x01\x01\x12\x03S\x14%\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03S(,\n\n\n\
  6520. \x02\x04\x04\x12\x04W\0Z\x01\n\n\n\x03\x04\x04\x01\x12\x03W\x08\x12\n\
  6521. \x0b\n\x04\x04\x04\x02\0\x12\x03X\x04$\n\x0c\n\x05\x04\x04\x02\0\x04\x12\
  6522. \x03X\x04\x0c\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03X\r\x11\n\x0c\n\x05\
  6523. \x04\x04\x02\0\x01\x12\x03X\x12\x1d\n\x0c\n\x05\x04\x04\x02\0\x03\x12\
  6524. \x03X\x20#\n\x0b\n\x04\x04\x04\x02\x01\x12\x03Y\x04)\n\x0c\n\x05\x04\x04\
  6525. \x02\x01\x04\x12\x03Y\x04\x0c\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03Y\r\
  6526. \x11\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03Y\x12\"\n\x0c\n\x05\x04\x04\
  6527. \x02\x01\x03\x12\x03Y%(\n\n\n\x02\x04\x05\x12\x04]\0a\x01\n\n\n\x03\x04\
  6528. \x05\x01\x12\x03]\x08\x19\n\x0b\n\x04\x04\x05\x02\0\x12\x03^\x04)\n\x0c\
  6529. \n\x05\x04\x05\x02\0\x04\x12\x03^\x04\x0c\n\x0c\n\x05\x04\x05\x02\0\x06\
  6530. \x12\x03^\r\x18\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03^\x19\"\n\x0c\n\x05\
  6531. \x04\x05\x02\0\x03\x12\x03^%(\n\x0b\n\x04\x04\x05\x02\x01\x12\x03_\x043\
  6532. \n\x0c\n\x05\x04\x05\x02\x01\x04\x12\x03_\x04\x0c\n\x0c\n\x05\x04\x05\
  6533. \x02\x01\x06\x12\x03_\r#\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03_$+\n\
  6534. \x0c\n\x05\x04\x05\x02\x01\x03\x12\x03_.2\n\x0b\n\x04\x04\x05\x02\x02\
  6535. \x12\x03`\x04/\n\x0c\n\x05\x04\x05\x02\x02\x04\x12\x03`\x04\x0c\n\x0c\n\
  6536. \x05\x04\x05\x02\x02\x06\x12\x03`\r\x1a\n\x0c\n\x05\x04\x05\x02\x02\x01\
  6537. \x12\x03`\x1b'\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\x03`*.\n\n\n\x02\x04\
  6538. \x06\x12\x04c\0j\x01\n\n\n\x03\x04\x06\x01\x12\x03c\x08\x13\n\x0b\n\x04\
  6539. \x04\x06\x02\0\x12\x03d\x04D\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x03d\x04\
  6540. \x0c\n\x0c\n\x05\x04\x06\x02\0\x06\x12\x03d\r&\n\x0c\n\x05\x04\x06\x02\0\
  6541. \x01\x12\x03d'=\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03d@C\n\x0b\n\x04\x04\
  6542. \x06\x02\x01\x12\x03e\x04D\n\x0c\n\x05\x04\x06\x02\x01\x04\x12\x03e\x04\
  6543. \x0c\n\x0c\n\x05\x04\x06\x02\x01\x06\x12\x03e\r&\n\x0c\n\x05\x04\x06\x02\
  6544. \x01\x01\x12\x03e'<\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x03e?C\n\x0b\n\
  6545. \x04\x04\x06\x02\x02\x12\x03f\x044\n\x0c\n\x05\x04\x06\x02\x02\x04\x12\
  6546. \x03f\x04\x0c\n\x0c\n\x05\x04\x06\x02\x02\x06\x12\x03f\r\x1e\n\x0c\n\x05\
  6547. \x04\x06\x02\x02\x01\x12\x03f\x1f,\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\
  6548. \x03f/3\n\x0b\n\x04\x04\x06\x02\x03\x12\x03g\x04:\n\x0c\n\x05\x04\x06\
  6549. \x02\x03\x04\x12\x03g\x04\x0c\n\x0c\n\x05\x04\x06\x02\x03\x06\x12\x03g\r\
  6550. !\n\x0c\n\x05\x04\x06\x02\x03\x01\x12\x03g\"2\n\x0c\n\x05\x04\x06\x02\
  6551. \x03\x03\x12\x03g59\n\x0b\n\x04\x04\x06\x02\x04\x12\x03h\x04'\n\x0c\n\
  6552. \x05\x04\x06\x02\x04\x04\x12\x03h\x04\x0c\n\x0c\n\x05\x04\x06\x02\x04\
  6553. \x05\x12\x03h\r\x12\n\x0c\n\x05\x04\x06\x02\x04\x01\x12\x03h\x13\x1f\n\
  6554. \x0c\n\x05\x04\x06\x02\x04\x03\x12\x03h\"&\n\x0b\n\x04\x04\x06\x02\x05\
  6555. \x12\x03i\x04\"\n\x0c\n\x05\x04\x06\x02\x05\x04\x12\x03i\x04\x0c\n\x0c\n\
  6556. \x05\x04\x06\x02\x05\x05\x12\x03i\r\x12\n\x0c\n\x05\x04\x06\x02\x05\x01\
  6557. \x12\x03i\x13\x1a\n\x0c\n\x05\x04\x06\x02\x05\x03\x12\x03i\x1d!\n\n\n\
  6558. \x02\x04\x07\x12\x04l\0n\x01\n\n\n\x03\x04\x07\x01\x12\x03l\x08!\n\x0b\n\
  6559. \x04\x04\x07\x02\0\x12\x03m\x04D\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x03m\
  6560. \x04\x0c\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x03m\r.\n\x0c\n\x05\x04\x07\
  6561. \x02\0\x01\x12\x03m/=\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03m@C\n\n\n\x02\
  6562. \x04\x08\x12\x04p\0t\x01\n\n\n\x03\x04\x08\x01\x12\x03p\x08)\n\x0b\n\x04\
  6563. \x04\x08\x02\0\x12\x03q\x04\x1c\n\x0c\n\x05\x04\x08\x02\0\x04\x12\x03q\
  6564. \x04\x0c\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03q\r\x12\n\x0c\n\x05\x04\
  6565. \x08\x02\0\x01\x12\x03q\x13\x15\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03q\
  6566. \x18\x1b\n\x0b\n\x04\x04\x08\x02\x01\x12\x03r\x04/\n\x0c\n\x05\x04\x08\
  6567. \x02\x01\x04\x12\x03r\x04\x0c\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\x03r\r\
  6568. \x12\n\x0c\n\x05\x04\x08\x02\x01\x01\x12\x03r\x13'\n\x0c\n\x05\x04\x08\
  6569. \x02\x01\x03\x12\x03r*.\n\x0b\n\x04\x04\x08\x02\x02\x12\x03s\x04'\n\x0c\
  6570. \n\x05\x04\x08\x02\x02\x04\x12\x03s\x04\x0c\n\x0c\n\x05\x04\x08\x02\x02\
  6571. \x05\x12\x03s\r\x12\n\x0c\n\x05\x04\x08\x02\x02\x01\x12\x03s\x13\x1f\n\
  6572. \x0c\n\x05\x04\x08\x02\x02\x03\x12\x03s\"&\n\n\n\x02\x04\t\x12\x04v\0y\
  6573. \x01\n\n\n\x03\x04\t\x01\x12\x03v\x08!\n\x0b\n\x04\x04\t\x02\0\x12\x03w\
  6574. \x043\n\x0c\n\x05\x04\t\x02\0\x04\x12\x03w\x04\x0c\n\x0c\n\x05\x04\t\x02\
  6575. \0\x06\x12\x03w\r&\n\x0c\n\x05\x04\t\x02\0\x01\x12\x03w',\n\x0c\n\x05\
  6576. \x04\t\x02\0\x03\x12\x03w/2\n\x0b\n\x04\x04\t\x02\x01\x12\x03x\x04?\n\
  6577. \x0c\n\x05\x04\t\x02\x01\x04\x12\x03x\x04\x0c\n\x0c\n\x05\x04\t\x02\x01\
  6578. \x06\x12\x03x\r+\n\x0c\n\x05\x04\t\x02\x01\x01\x12\x03x,7\n\x0c\n\x05\
  6579. \x04\t\x02\x01\x03\x12\x03x:>\n\n\n\x02\x04\n\x12\x04|\0~\x01\n\n\n\x03\
  6580. \x04\n\x01\x12\x03|\x08!\n\x0b\n\x04\x04\n\x02\0\x12\x03}\x04\x1d\n\x0c\
  6581. \n\x05\x04\n\x02\0\x04\x12\x03}\x04\x0c\n\x0c\n\x05\x04\n\x02\0\x05\x12\
  6582. \x03}\r\x12\n\x0c\n\x05\x04\n\x02\0\x01\x12\x03}\x13\x16\n\x0c\n\x05\x04\
  6583. \n\x02\0\x03\x12\x03}\x19\x1c\n\x0c\n\x02\x04\x0b\x12\x06\x81\x01\0\x83\
  6584. \x01\x01\n\x0b\n\x03\x04\x0b\x01\x12\x04\x81\x01\x08&\n\x0c\n\x04\x04\
  6585. \x0b\x02\0\x12\x04\x82\x01\x04#\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\x82\
  6586. \x01\x04\x0c\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x82\x01\r\x12\n\r\n\x05\
  6587. \x04\x0b\x02\0\x01\x12\x04\x82\x01\x13\x1c\n\r\n\x05\x04\x0b\x02\0\x03\
  6588. \x12\x04\x82\x01\x1f\"\n\x0c\n\x02\x04\x0c\x12\x06\x86\x01\0\x88\x01\x01\
  6589. \n\x0b\n\x03\x04\x0c\x01\x12\x04\x86\x01\x08\x19\n\x0c\n\x04\x04\x0c\x02\
  6590. \0\x12\x04\x87\x01\x042\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\x87\x01\x04\
  6591. \x0c\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\x87\x01\r!\n\r\n\x05\x04\x0c\
  6592. \x02\0\x01\x12\x04\x87\x01\"+\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x87\
  6593. \x01.1\n\x0c\n\x02\x04\r\x12\x06\x8a\x01\0\x8e\x01\x01\n\x0b\n\x03\x04\r\
  6594. \x01\x12\x04\x8a\x01\x08\x1c\n\x0c\n\x04\x04\r\x02\0\x12\x04\x8b\x01\x04\
  6595. \x20\n\r\n\x05\x04\r\x02\0\x04\x12\x04\x8b\x01\x04\x0c\n\r\n\x05\x04\r\
  6596. \x02\0\x05\x12\x04\x8b\x01\r\x12\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x8b\
  6597. \x01\x13\x19\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x8b\x01\x1c\x1f\n\x0c\n\
  6598. \x04\x04\r\x02\x01\x12\x04\x8c\x01\x04!\n\r\n\x05\x04\r\x02\x01\x04\x12\
  6599. \x04\x8c\x01\x04\x0c\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\x8c\x01\r\x12\n\
  6600. \r\n\x05\x04\r\x02\x01\x01\x12\x04\x8c\x01\x13\x19\n\r\n\x05\x04\r\x02\
  6601. \x01\x03\x12\x04\x8c\x01\x1c\x20\n\x0c\n\x04\x04\r\x02\x02\x12\x04\x8d\
  6602. \x01\x04!\n\r\n\x05\x04\r\x02\x02\x04\x12\x04\x8d\x01\x04\x0c\n\r\n\x05\
  6603. \x04\r\x02\x02\x05\x12\x04\x8d\x01\r\x12\n\r\n\x05\x04\r\x02\x02\x01\x12\
  6604. \x04\x8d\x01\x13\x19\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\x8d\x01\x1c\x20\
  6605. \n\x0c\n\x02\x04\x0e\x12\x06\x91\x01\0\x94\x01\x01\n\x0b\n\x03\x04\x0e\
  6606. \x01\x12\x04\x91\x01\x08\x1c\n\x0c\n\x04\x04\x0e\x02\0\x12\x04\x92\x01\
  6607. \x042\n\r\n\x05\x04\x0e\x02\0\x04\x12\x04\x92\x01\x04\x0c\n\r\n\x05\x04\
  6608. \x0e\x02\0\x06\x12\x04\x92\x01\r#\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\
  6609. \x92\x01$+\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x92\x01.1\n\x0c\n\x04\x04\
  6610. \x0e\x02\x01\x12\x04\x93\x01\x04=\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\
  6611. \x93\x01\x04\x0c\n\r\n\x05\x04\x0e\x02\x01\x06\x12\x04\x93\x01\r'\n\r\n\
  6612. \x05\x04\x0e\x02\x01\x01\x12\x04\x93\x01(5\n\r\n\x05\x04\x0e\x02\x01\x03\
  6613. \x12\x04\x93\x018<\n\x0c\n\x02\x04\x0f\x12\x06\x97\x01\0\x98\x01\x01\n\
  6614. \x0b\n\x03\x04\x0f\x01\x12\x04\x97\x01\x08\x1e\n\x0c\n\x02\x04\x10\x12\
  6615. \x06\x9b\x01\0\x9c\x01\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\x9b\x01\x08\"\
  6616. \n\x0c\n\x02\x04\x11\x12\x06\x9f\x01\0\xa3\x01\x01\n\x0b\n\x03\x04\x11\
  6617. \x01\x12\x04\x9f\x01\x08\x1e\n\x0c\n\x04\x04\x11\x02\0\x12\x04\xa0\x01\
  6618. \x04-\n\r\n\x05\x04\x11\x02\0\x04\x12\x04\xa0\x01\x04\x0c\n\r\n\x05\x04\
  6619. \x11\x02\0\x05\x12\x04\xa0\x01\r\x12\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\
  6620. \xa0\x01\x13&\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xa0\x01),\n\x0c\n\x04\
  6621. \x04\x11\x02\x01\x12\x04\xa1\x01\x04$\n\r\n\x05\x04\x11\x02\x01\x04\x12\
  6622. \x04\xa1\x01\x04\x0c\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xa1\x01\r\x12\
  6623. \n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xa1\x01\x13\x1c\n\r\n\x05\x04\x11\
  6624. \x02\x01\x03\x12\x04\xa1\x01\x1f#\n\x0c\n\x04\x04\x11\x02\x02\x12\x04\
  6625. \xa2\x01\x04'\n\r\n\x05\x04\x11\x02\x02\x04\x12\x04\xa2\x01\x04\x0c\n\r\
  6626. \n\x05\x04\x11\x02\x02\x05\x12\x04\xa2\x01\r\x13\n\r\n\x05\x04\x11\x02\
  6627. \x02\x01\x12\x04\xa2\x01\x14\x1f\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\
  6628. \xa2\x01\"&\n\x0c\n\x02\x04\x12\x12\x06\xa5\x01\0\xaa\x01\x01\n\x0b\n\
  6629. \x03\x04\x12\x01\x12\x04\xa5\x01\x08\x15\n\x0c\n\x04\x04\x12\x02\0\x12\
  6630. \x04\xa6\x01\x04(\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\xa6\x01\x04\x0c\n\
  6631. \r\n\x05\x04\x12\x02\0\x06\x12\x04\xa6\x01\r\x16\n\r\n\x05\x04\x12\x02\0\
  6632. \x01\x12\x04\xa6\x01\x17!\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xa6\x01$'\
  6633. \n\x0c\n\x04\x04\x12\x02\x01\x12\x04\xa7\x01\x04&\n\r\n\x05\x04\x12\x02\
  6634. \x01\x04\x12\x04\xa7\x01\x04\x0c\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\
  6635. \xa7\x01\r\x12\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xa7\x01\x13\x1e\n\r\
  6636. \n\x05\x04\x12\x02\x01\x03\x12\x04\xa7\x01!%\n\x0c\n\x04\x04\x12\x02\x02\
  6637. \x12\x04\xa8\x01\x04!\n\r\n\x05\x04\x12\x02\x02\x04\x12\x04\xa8\x01\x04\
  6638. \x0c\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\xa8\x01\r\x12\n\r\n\x05\x04\
  6639. \x12\x02\x02\x01\x12\x04\xa8\x01\x13\x19\n\r\n\x05\x04\x12\x02\x02\x03\
  6640. \x12\x04\xa8\x01\x1c\x20\n\x0c\n\x04\x04\x12\x02\x03\x12\x04\xa9\x01\x04\
  6641. -\n\r\n\x05\x04\x12\x02\x03\x04\x12\x04\xa9\x01\x04\x0c\n\r\n\x05\x04\
  6642. \x12\x02\x03\x05\x12\x04\xa9\x01\r\x13\n\r\n\x05\x04\x12\x02\x03\x01\x12\
  6643. \x04\xa9\x01\x14%\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xa9\x01(,\n\x0c\
  6644. \n\x02\x05\x06\x12\x06\xac\x01\0\xb8\x01\x01\n\x0b\n\x03\x05\x06\x01\x12\
  6645. \x04\xac\x01\x05\x0e\n\x0c\n\x04\x05\x06\x02\0\x12\x04\xad\x01\x04\x18\n\
  6646. \r\n\x05\x05\x06\x02\0\x01\x12\x04\xad\x01\x04\x11\n\r\n\x05\x05\x06\x02\
  6647. \0\x02\x12\x04\xad\x01\x14\x17\n\x0c\n\x04\x05\x06\x02\x01\x12\x04\xae\
  6648. \x01\x04\x17\n\r\n\x05\x05\x06\x02\x01\x01\x12\x04\xae\x01\x04\x10\n\r\n\
  6649. \x05\x05\x06\x02\x01\x02\x12\x04\xae\x01\x13\x16\n\x0c\n\x04\x05\x06\x02\
  6650. \x02\x12\x04\xaf\x01\x04\x1a\n\r\n\x05\x05\x06\x02\x02\x01\x12\x04\xaf\
  6651. \x01\x04\x13\n\r\n\x05\x05\x06\x02\x02\x02\x12\x04\xaf\x01\x16\x19\n\x0c\
  6652. \n\x04\x05\x06\x02\x03\x12\x04\xb0\x01\x04\x1c\n\r\n\x05\x05\x06\x02\x03\
  6653. \x01\x12\x04\xb0\x01\x04\x15\n\r\n\x05\x05\x06\x02\x03\x02\x12\x04\xb0\
  6654. \x01\x18\x1b\n\x0c\n\x04\x05\x06\x02\x04\x12\x04\xb1\x01\x04!\n\r\n\x05\
  6655. \x05\x06\x02\x04\x01\x12\x04\xb1\x01\x04\x1a\n\r\n\x05\x05\x06\x02\x04\
  6656. \x02\x12\x04\xb1\x01\x1d\x20\n\x0c\n\x04\x05\x06\x02\x05\x12\x04\xb2\x01\
  6657. \x04\x19\n\r\n\x05\x05\x06\x02\x05\x01\x12\x04\xb2\x01\x04\x12\n\r\n\x05\
  6658. \x05\x06\x02\x05\x02\x12\x04\xb2\x01\x15\x18\n\x0c\n\x04\x05\x06\x02\x06\
  6659. \x12\x04\xb3\x01\x04&\n\r\n\x05\x05\x06\x02\x06\x01\x12\x04\xb3\x01\x04\
  6660. \x1f\n\r\n\x05\x05\x06\x02\x06\x02\x12\x04\xb3\x01\"%\n\x0c\n\x04\x05\
  6661. \x06\x02\x07\x12\x04\xb4\x01\x04\x18\n\r\n\x05\x05\x06\x02\x07\x01\x12\
  6662. \x04\xb4\x01\x04\x11\n\r\n\x05\x05\x06\x02\x07\x02\x12\x04\xb4\x01\x14\
  6663. \x17\n\x0c\n\x04\x05\x06\x02\x08\x12\x04\xb5\x01\x04$\n\r\n\x05\x05\x06\
  6664. \x02\x08\x01\x12\x04\xb5\x01\x04\x1d\n\r\n\x05\x05\x06\x02\x08\x02\x12\
  6665. \x04\xb5\x01\x20#\n\x0c\n\x04\x05\x06\x02\t\x12\x04\xb6\x01\x04\x19\n\r\
  6666. \n\x05\x05\x06\x02\t\x01\x12\x04\xb6\x01\x04\x11\n\r\n\x05\x05\x06\x02\t\
  6667. \x02\x12\x04\xb6\x01\x14\x18\n\x0c\n\x04\x05\x06\x02\n\x12\x04\xb7\x01\
  6668. \x04\x1d\n\r\n\x05\x05\x06\x02\n\x01\x12\x04\xb7\x01\x04\x15\n\r\n\x05\
  6669. \x05\x06\x02\n\x02\x12\x04\xb7\x01\x18\x1c\n\x0c\n\x02\x04\x13\x12\x06\
  6670. \xba\x01\0\xbe\x01\x01\n\x0b\n\x03\x04\x13\x01\x12\x04\xba\x01\x08\x1f\n\
  6671. \x0c\n\x04\x04\x13\x02\0\x12\x04\xbb\x01\x04B\n\r\n\x05\x04\x13\x02\0\
  6672. \x04\x12\x04\xbb\x01\x04\x0c\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\xbb\x01\
  6673. \r%\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xbb\x01&;\n\r\n\x05\x04\x13\x02\
  6674. \0\x03\x12\x04\xbb\x01>A\n\x0c\n\x04\x04\x13\x02\x01\x12\x04\xbc\x01\x04\
  6675. 2\n\r\n\x05\x04\x13\x02\x01\x04\x12\x04\xbc\x01\x04\x0c\n\r\n\x05\x04\
  6676. \x13\x02\x01\x06\x12\x04\xbc\x01\r\x1d\n\r\n\x05\x04\x13\x02\x01\x01\x12\
  6677. \x04\xbc\x01\x1e*\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xbc\x01-1\n\x0c\
  6678. \n\x04\x04\x13\x02\x02\x12\x04\xbd\x01\x048\n\r\n\x05\x04\x13\x02\x02\
  6679. \x04\x12\x04\xbd\x01\x04\x0c\n\r\n\x05\x04\x13\x02\x02\x06\x12\x04\xbd\
  6680. \x01\r\x20\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xbd\x01!0\n\r\n\x05\x04\
  6681. \x13\x02\x02\x03\x12\x04\xbd\x0137\n\x0c\n\x02\x04\x14\x12\x06\xc1\x01\0\
  6682. \xc3\x01\x01\n\x0b\n\x03\x04\x14\x01\x12\x04\xc1\x01\x08\x20\n\x0c\n\x04\
  6683. \x04\x14\x02\0\x12\x04\xc2\x01\x04C\n\r\n\x05\x04\x14\x02\0\x04\x12\x04\
  6684. \xc2\x01\x04\x0c\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xc2\x01\r-\n\r\n\
  6685. \x05\x04\x14\x02\0\x01\x12\x04\xc2\x01.<\n\r\n\x05\x04\x14\x02\0\x03\x12\
  6686. \x04\xc2\x01?B\n\x0c\n\x02\x04\x15\x12\x06\xc6\x01\0\xc8\x01\x01\n\x0b\n\
  6687. \x03\x04\x15\x01\x12\x04\xc6\x01\x08(\n\x0c\n\x04\x04\x15\x02\0\x12\x04\
  6688. \xc7\x01\x04\x1e\n\r\n\x05\x04\x15\x02\0\x04\x12\x04\xc7\x01\x04\x0c\n\r\
  6689. \n\x05\x04\x15\x02\0\x05\x12\x04\xc7\x01\r\x12\n\r\n\x05\x04\x15\x02\0\
  6690. \x01\x12\x04\xc7\x01\x13\x17\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xc7\x01\
  6691. \x1a\x1d\n\x0c\n\x02\x04\x16\x12\x06\xcb\x01\0\xcd\x01\x01\n\x0b\n\x03\
  6692. \x04\x16\x01\x12\x04\xcb\x01\x08\x18\n\x0c\n\x04\x04\x16\x02\0\x12\x04\
  6693. \xcc\x01\x041\n\r\n\x05\x04\x16\x02\0\x04\x12\x04\xcc\x01\x04\x0c\n\r\n\
  6694. \x05\x04\x16\x02\0\x06\x12\x04\xcc\x01\r\x20\n\r\n\x05\x04\x16\x02\0\x01\
  6695. \x12\x04\xcc\x01!*\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\xcc\x01-0\n\x0c\n\
  6696. \x02\x04\x17\x12\x06\xd0\x01\0\xd2\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\
  6697. \x04\xd0\x01\x08\x1b\n\x0c\n\x04\x04\x17\x02\0\x12\x04\xd1\x01\x04%\n\r\
  6698. \n\x05\x04\x17\x02\0\x04\x12\x04\xd1\x01\x04\x0c\n\r\n\x05\x04\x17\x02\0\
  6699. \x05\x12\x04\xd1\x01\r\x12\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xd1\x01\
  6700. \x13\x1e\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xd1\x01!$\n\x0c\n\x02\x04\
  6701. \x18\x12\x06\xd5\x01\0\xd8\x01\x01\n\x0b\n\x03\x04\x18\x01\x12\x04\xd5\
  6702. \x01\x08\x1b\n\x0c\n\x04\x04\x18\x02\0\x12\x04\xd6\x01\x041\n\r\n\x05\
  6703. \x04\x18\x02\0\x04\x12\x04\xd6\x01\x04\x0c\n\r\n\x05\x04\x18\x02\0\x06\
  6704. \x12\x04\xd6\x01\r\"\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\xd6\x01#*\n\r\n\
  6705. \x05\x04\x18\x02\0\x03\x12\x04\xd6\x01-0\n\x0c\n\x04\x04\x18\x02\x01\x12\
  6706. \x04\xd7\x01\x04<\n\r\n\x05\x04\x18\x02\x01\x04\x12\x04\xd7\x01\x04\x0c\
  6707. \n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\xd7\x01\r&\n\r\n\x05\x04\x18\x02\
  6708. \x01\x01\x12\x04\xd7\x01'4\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xd7\x01\
  6709. 7;\n\x0c\n\x02\x04\x19\x12\x06\xdb\x01\0\xdd\x01\x01\n\x0b\n\x03\x04\x19\
  6710. \x01\x12\x04\xdb\x01\x08\x1d\n\x0c\n\x04\x04\x19\x02\0\x12\x04\xdc\x01\
  6711. \x04\x1f\n\r\n\x05\x04\x19\x02\0\x04\x12\x04\xdc\x01\x04\x0c\n\r\n\x05\
  6712. \x04\x19\x02\0\x05\x12\x04\xdc\x01\r\x12\n\r\n\x05\x04\x19\x02\0\x01\x12\
  6713. \x04\xdc\x01\x13\x18\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xdc\x01\x1b\x1e\
  6714. \n\x0c\n\x02\x04\x1a\x12\x06\xe0\x01\0\xe2\x01\x01\n\x0b\n\x03\x04\x1a\
  6715. \x01\x12\x04\xe0\x01\x08!\n\x0c\n\x04\x04\x1a\x02\0\x12\x04\xe1\x01\x04\
  6716. \x1f\n\r\n\x05\x04\x1a\x02\0\x04\x12\x04\xe1\x01\x04\x0c\n\r\n\x05\x04\
  6717. \x1a\x02\0\x05\x12\x04\xe1\x01\r\x12\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\
  6718. \xe1\x01\x13\x18\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xe1\x01\x1b\x1e\
  6719. ";
  6720. static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
  6721. lock: ::protobuf::lazy::ONCE_INIT,
  6722. ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
  6723. };
  6724. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  6725. ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
  6726. }
  6727. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  6728. unsafe {
  6729. file_descriptor_proto_lazy.get(|| {
  6730. parse_descriptor_proto()
  6731. })
  6732. }
  6733. }