12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766 |
- // This file is generated. Do not edit
- // @generated
- // https://github.com/Manishearth/rust-clippy/issues/702
- #![allow(unknown_lints)]
- #![allow(clippy)]
- #![cfg_attr(rustfmt, rustfmt_skip)]
- #![allow(box_pointers)]
- #![allow(dead_code)]
- #![allow(missing_docs)]
- #![allow(non_camel_case_types)]
- #![allow(non_snake_case)]
- #![allow(non_upper_case_globals)]
- #![allow(trivial_casts)]
- #![allow(unsafe_code)]
- #![allow(unused_imports)]
- #![allow(unused_results)]
- use protobuf::Message as Message_imported_for_functions;
- use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientHello {
- // message fields
- build_info: ::protobuf::SingularPtrField<BuildInfo>,
- fingerprints_supported: ::std::vec::Vec<Fingerprint>,
- cryptosuites_supported: ::std::vec::Vec<Cryptosuite>,
- powschemes_supported: ::std::vec::Vec<Powscheme>,
- login_crypto_hello: ::protobuf::SingularPtrField<LoginCryptoHelloUnion>,
- client_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- feature_set: ::protobuf::SingularPtrField<FeatureSet>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for ClientHello {}
- impl ClientHello {
- pub fn new() -> ClientHello {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static ClientHello {
- static mut instance: ::protobuf::lazy::Lazy<ClientHello> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientHello,
- };
- unsafe {
- instance.get(ClientHello::new)
- }
- }
- // required .BuildInfo build_info = 10;
- pub fn clear_build_info(&mut self) {
- self.build_info.clear();
- }
- pub fn has_build_info(&self) -> bool {
- self.build_info.is_some()
- }
- // Param is passed by value, moved
- pub fn set_build_info(&mut self, v: BuildInfo) {
- self.build_info = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_build_info(&mut self) -> &mut BuildInfo {
- if self.build_info.is_none() {
- self.build_info.set_default();
- }
- self.build_info.as_mut().unwrap()
- }
- // Take field
- pub fn take_build_info(&mut self) -> BuildInfo {
- self.build_info.take().unwrap_or_else(|| BuildInfo::new())
- }
- pub fn get_build_info(&self) -> &BuildInfo {
- self.build_info.as_ref().unwrap_or_else(|| BuildInfo::default_instance())
- }
- fn get_build_info_for_reflect(&self) -> &::protobuf::SingularPtrField<BuildInfo> {
- &self.build_info
- }
- fn mut_build_info_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<BuildInfo> {
- &mut self.build_info
- }
- // repeated .Fingerprint fingerprints_supported = 20;
- pub fn clear_fingerprints_supported(&mut self) {
- self.fingerprints_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_fingerprints_supported(&mut self, v: ::std::vec::Vec<Fingerprint>) {
- self.fingerprints_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_fingerprints_supported(&mut self) -> &mut ::std::vec::Vec<Fingerprint> {
- &mut self.fingerprints_supported
- }
- // Take field
- pub fn take_fingerprints_supported(&mut self) -> ::std::vec::Vec<Fingerprint> {
- ::std::mem::replace(&mut self.fingerprints_supported, ::std::vec::Vec::new())
- }
- pub fn get_fingerprints_supported(&self) -> &[Fingerprint] {
- &self.fingerprints_supported
- }
- fn get_fingerprints_supported_for_reflect(&self) -> &::std::vec::Vec<Fingerprint> {
- &self.fingerprints_supported
- }
- fn mut_fingerprints_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Fingerprint> {
- &mut self.fingerprints_supported
- }
- // repeated .Cryptosuite cryptosuites_supported = 30;
- pub fn clear_cryptosuites_supported(&mut self) {
- self.cryptosuites_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_cryptosuites_supported(&mut self, v: ::std::vec::Vec<Cryptosuite>) {
- self.cryptosuites_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_cryptosuites_supported(&mut self) -> &mut ::std::vec::Vec<Cryptosuite> {
- &mut self.cryptosuites_supported
- }
- // Take field
- pub fn take_cryptosuites_supported(&mut self) -> ::std::vec::Vec<Cryptosuite> {
- ::std::mem::replace(&mut self.cryptosuites_supported, ::std::vec::Vec::new())
- }
- pub fn get_cryptosuites_supported(&self) -> &[Cryptosuite] {
- &self.cryptosuites_supported
- }
- fn get_cryptosuites_supported_for_reflect(&self) -> &::std::vec::Vec<Cryptosuite> {
- &self.cryptosuites_supported
- }
- fn mut_cryptosuites_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Cryptosuite> {
- &mut self.cryptosuites_supported
- }
- // repeated .Powscheme powschemes_supported = 40;
- pub fn clear_powschemes_supported(&mut self) {
- self.powschemes_supported.clear();
- }
- // Param is passed by value, moved
- pub fn set_powschemes_supported(&mut self, v: ::std::vec::Vec<Powscheme>) {
- self.powschemes_supported = v;
- }
- // Mutable pointer to the field.
- pub fn mut_powschemes_supported(&mut self) -> &mut ::std::vec::Vec<Powscheme> {
- &mut self.powschemes_supported
- }
- // Take field
- pub fn take_powschemes_supported(&mut self) -> ::std::vec::Vec<Powscheme> {
- ::std::mem::replace(&mut self.powschemes_supported, ::std::vec::Vec::new())
- }
- pub fn get_powschemes_supported(&self) -> &[Powscheme] {
- &self.powschemes_supported
- }
- fn get_powschemes_supported_for_reflect(&self) -> &::std::vec::Vec<Powscheme> {
- &self.powschemes_supported
- }
- fn mut_powschemes_supported_for_reflect(&mut self) -> &mut ::std::vec::Vec<Powscheme> {
- &mut self.powschemes_supported
- }
- // required .LoginCryptoHelloUnion login_crypto_hello = 50;
- pub fn clear_login_crypto_hello(&mut self) {
- self.login_crypto_hello.clear();
- }
- pub fn has_login_crypto_hello(&self) -> bool {
- self.login_crypto_hello.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_hello(&mut self, v: LoginCryptoHelloUnion) {
- self.login_crypto_hello = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_hello(&mut self) -> &mut LoginCryptoHelloUnion {
- if self.login_crypto_hello.is_none() {
- self.login_crypto_hello.set_default();
- }
- self.login_crypto_hello.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_hello(&mut self) -> LoginCryptoHelloUnion {
- self.login_crypto_hello.take().unwrap_or_else(|| LoginCryptoHelloUnion::new())
- }
- pub fn get_login_crypto_hello(&self) -> &LoginCryptoHelloUnion {
- self.login_crypto_hello.as_ref().unwrap_or_else(|| LoginCryptoHelloUnion::default_instance())
- }
- fn get_login_crypto_hello_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoHelloUnion> {
- &self.login_crypto_hello
- }
- fn mut_login_crypto_hello_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoHelloUnion> {
- &mut self.login_crypto_hello
- }
- // required bytes client_nonce = 60;
- pub fn clear_client_nonce(&mut self) {
- self.client_nonce.clear();
- }
- pub fn has_client_nonce(&self) -> bool {
- self.client_nonce.is_some()
- }
- // Param is passed by value, moved
- pub fn set_client_nonce(&mut self, v: ::std::vec::Vec<u8>) {
- self.client_nonce = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_client_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.client_nonce.is_none() {
- self.client_nonce.set_default();
- }
- self.client_nonce.as_mut().unwrap()
- }
- // Take field
- pub fn take_client_nonce(&mut self) -> ::std::vec::Vec<u8> {
- self.client_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_client_nonce(&self) -> &[u8] {
- match self.client_nonce.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_client_nonce_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.client_nonce
- }
- fn mut_client_nonce_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.client_nonce
- }
- // optional bytes padding = 70;
- pub fn clear_padding(&mut self) {
- self.padding.clear();
- }
- pub fn has_padding(&self) -> bool {
- self.padding.is_some()
- }
- // Param is passed by value, moved
- pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
- self.padding = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.padding.is_none() {
- self.padding.set_default();
- }
- self.padding.as_mut().unwrap()
- }
- // Take field
- pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
- self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_padding(&self) -> &[u8] {
- match self.padding.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_padding_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.padding
- }
- fn mut_padding_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.padding
- }
- // optional .FeatureSet feature_set = 80;
- pub fn clear_feature_set(&mut self) {
- self.feature_set.clear();
- }
- pub fn has_feature_set(&self) -> bool {
- self.feature_set.is_some()
- }
- // Param is passed by value, moved
- pub fn set_feature_set(&mut self, v: FeatureSet) {
- self.feature_set = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_feature_set(&mut self) -> &mut FeatureSet {
- if self.feature_set.is_none() {
- self.feature_set.set_default();
- }
- self.feature_set.as_mut().unwrap()
- }
- // Take field
- pub fn take_feature_set(&mut self) -> FeatureSet {
- self.feature_set.take().unwrap_or_else(|| FeatureSet::new())
- }
- pub fn get_feature_set(&self) -> &FeatureSet {
- self.feature_set.as_ref().unwrap_or_else(|| FeatureSet::default_instance())
- }
- fn get_feature_set_for_reflect(&self) -> &::protobuf::SingularPtrField<FeatureSet> {
- &self.feature_set
- }
- fn mut_feature_set_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FeatureSet> {
- &mut self.feature_set
- }
- }
- impl ::protobuf::Message for ClientHello {
- fn is_initialized(&self) -> bool {
- if self.build_info.is_none() {
- return false;
- }
- if self.login_crypto_hello.is_none() {
- return false;
- }
- if self.client_nonce.is_none() {
- return false;
- }
- for v in &self.build_info {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.login_crypto_hello {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.feature_set {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.build_info)?;
- },
- 20 => {
- ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.fingerprints_supported)?;
- },
- 30 => {
- ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.cryptosuites_supported)?;
- },
- 40 => {
- ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.powschemes_supported)?;
- },
- 50 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_hello)?;
- },
- 60 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.client_nonce)?;
- },
- 70 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
- },
- 80 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feature_set)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.build_info.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- for value in &self.fingerprints_supported {
- my_size += ::protobuf::rt::enum_size(20, *value);
- };
- for value in &self.cryptosuites_supported {
- my_size += ::protobuf::rt::enum_size(30, *value);
- };
- for value in &self.powschemes_supported {
- my_size += ::protobuf::rt::enum_size(40, *value);
- };
- if let Some(ref v) = self.login_crypto_hello.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.client_nonce.as_ref() {
- my_size += ::protobuf::rt::bytes_size(60, &v);
- }
- if let Some(ref v) = self.padding.as_ref() {
- my_size += ::protobuf::rt::bytes_size(70, &v);
- }
- if let Some(ref v) = self.feature_set.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.build_info.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- for v in &self.fingerprints_supported {
- os.write_enum(20, v.value())?;
- };
- for v in &self.cryptosuites_supported {
- os.write_enum(30, v.value())?;
- };
- for v in &self.powschemes_supported {
- os.write_enum(40, v.value())?;
- };
- if let Some(ref v) = self.login_crypto_hello.as_ref() {
- os.write_tag(50, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.client_nonce.as_ref() {
- os.write_bytes(60, &v)?;
- }
- if let Some(ref v) = self.padding.as_ref() {
- os.write_bytes(70, &v)?;
- }
- if let Some(ref v) = self.feature_set.as_ref() {
- os.write_tag(80, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for ClientHello {
- fn new() -> ClientHello {
- ClientHello::new()
- }
- fn descriptor_static(_: ::std::option::Option<ClientHello>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<BuildInfo>>(
- "build_info",
- ClientHello::get_build_info_for_reflect,
- ClientHello::mut_build_info_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Fingerprint>>(
- "fingerprints_supported",
- ClientHello::get_fingerprints_supported_for_reflect,
- ClientHello::mut_fingerprints_supported_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Cryptosuite>>(
- "cryptosuites_supported",
- ClientHello::get_cryptosuites_supported_for_reflect,
- ClientHello::mut_cryptosuites_supported_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Powscheme>>(
- "powschemes_supported",
- ClientHello::get_powschemes_supported_for_reflect,
- ClientHello::mut_powschemes_supported_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoHelloUnion>>(
- "login_crypto_hello",
- ClientHello::get_login_crypto_hello_for_reflect,
- ClientHello::mut_login_crypto_hello_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "client_nonce",
- ClientHello::get_client_nonce_for_reflect,
- ClientHello::mut_client_nonce_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "padding",
- ClientHello::get_padding_for_reflect,
- ClientHello::mut_padding_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FeatureSet>>(
- "feature_set",
- ClientHello::get_feature_set_for_reflect,
- ClientHello::mut_feature_set_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientHello>(
- "ClientHello",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for ClientHello {
- fn clear(&mut self) {
- self.clear_build_info();
- self.clear_fingerprints_supported();
- self.clear_cryptosuites_supported();
- self.clear_powschemes_supported();
- self.clear_login_crypto_hello();
- self.clear_client_nonce();
- self.clear_padding();
- self.clear_feature_set();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientHello {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientHello {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct BuildInfo {
- // message fields
- product: ::std::option::Option<Product>,
- product_flags: ::std::vec::Vec<ProductFlags>,
- platform: ::std::option::Option<Platform>,
- version: ::std::option::Option<u64>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for BuildInfo {}
- impl BuildInfo {
- pub fn new() -> BuildInfo {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static BuildInfo {
- static mut instance: ::protobuf::lazy::Lazy<BuildInfo> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const BuildInfo,
- };
- unsafe {
- instance.get(BuildInfo::new)
- }
- }
- // required .Product product = 10;
- pub fn clear_product(&mut self) {
- self.product = ::std::option::Option::None;
- }
- pub fn has_product(&self) -> bool {
- self.product.is_some()
- }
- // Param is passed by value, moved
- pub fn set_product(&mut self, v: Product) {
- self.product = ::std::option::Option::Some(v);
- }
- pub fn get_product(&self) -> Product {
- self.product.unwrap_or(Product::PRODUCT_CLIENT)
- }
- fn get_product_for_reflect(&self) -> &::std::option::Option<Product> {
- &self.product
- }
- fn mut_product_for_reflect(&mut self) -> &mut ::std::option::Option<Product> {
- &mut self.product
- }
- // repeated .ProductFlags product_flags = 20;
- pub fn clear_product_flags(&mut self) {
- self.product_flags.clear();
- }
- // Param is passed by value, moved
- pub fn set_product_flags(&mut self, v: ::std::vec::Vec<ProductFlags>) {
- self.product_flags = v;
- }
- // Mutable pointer to the field.
- pub fn mut_product_flags(&mut self) -> &mut ::std::vec::Vec<ProductFlags> {
- &mut self.product_flags
- }
- // Take field
- pub fn take_product_flags(&mut self) -> ::std::vec::Vec<ProductFlags> {
- ::std::mem::replace(&mut self.product_flags, ::std::vec::Vec::new())
- }
- pub fn get_product_flags(&self) -> &[ProductFlags] {
- &self.product_flags
- }
- fn get_product_flags_for_reflect(&self) -> &::std::vec::Vec<ProductFlags> {
- &self.product_flags
- }
- fn mut_product_flags_for_reflect(&mut self) -> &mut ::std::vec::Vec<ProductFlags> {
- &mut self.product_flags
- }
- // required .Platform platform = 30;
- pub fn clear_platform(&mut self) {
- self.platform = ::std::option::Option::None;
- }
- pub fn has_platform(&self) -> bool {
- self.platform.is_some()
- }
- // Param is passed by value, moved
- pub fn set_platform(&mut self, v: Platform) {
- self.platform = ::std::option::Option::Some(v);
- }
- pub fn get_platform(&self) -> Platform {
- self.platform.unwrap_or(Platform::PLATFORM_WIN32_X86)
- }
- fn get_platform_for_reflect(&self) -> &::std::option::Option<Platform> {
- &self.platform
- }
- fn mut_platform_for_reflect(&mut self) -> &mut ::std::option::Option<Platform> {
- &mut self.platform
- }
- // required uint64 version = 40;
- pub fn clear_version(&mut self) {
- self.version = ::std::option::Option::None;
- }
- pub fn has_version(&self) -> bool {
- self.version.is_some()
- }
- // Param is passed by value, moved
- pub fn set_version(&mut self, v: u64) {
- self.version = ::std::option::Option::Some(v);
- }
- pub fn get_version(&self) -> u64 {
- self.version.unwrap_or(0)
- }
- fn get_version_for_reflect(&self) -> &::std::option::Option<u64> {
- &self.version
- }
- fn mut_version_for_reflect(&mut self) -> &mut ::std::option::Option<u64> {
- &mut self.version
- }
- }
- impl ::protobuf::Message for BuildInfo {
- fn is_initialized(&self) -> bool {
- if self.product.is_none() {
- return false;
- }
- if self.platform.is_none() {
- return false;
- }
- if self.version.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_enum()?;
- self.product = ::std::option::Option::Some(tmp);
- },
- 20 => {
- ::protobuf::rt::read_repeated_enum_into(wire_type, is, &mut self.product_flags)?;
- },
- 30 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_enum()?;
- self.platform = ::std::option::Option::Some(tmp);
- },
- 40 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_uint64()?;
- self.version = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.product {
- my_size += ::protobuf::rt::enum_size(10, v);
- }
- for value in &self.product_flags {
- my_size += ::protobuf::rt::enum_size(20, *value);
- };
- if let Some(v) = self.platform {
- my_size += ::protobuf::rt::enum_size(30, v);
- }
- if let Some(v) = self.version {
- my_size += ::protobuf::rt::value_size(40, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.product {
- os.write_enum(10, v.value())?;
- }
- for v in &self.product_flags {
- os.write_enum(20, v.value())?;
- };
- if let Some(v) = self.platform {
- os.write_enum(30, v.value())?;
- }
- if let Some(v) = self.version {
- os.write_uint64(40, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for BuildInfo {
- fn new() -> BuildInfo {
- BuildInfo::new()
- }
- fn descriptor_static(_: ::std::option::Option<BuildInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Product>>(
- "product",
- BuildInfo::get_product_for_reflect,
- BuildInfo::mut_product_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ProductFlags>>(
- "product_flags",
- BuildInfo::get_product_flags_for_reflect,
- BuildInfo::mut_product_flags_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Platform>>(
- "platform",
- BuildInfo::get_platform_for_reflect,
- BuildInfo::mut_platform_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
- "version",
- BuildInfo::get_version_for_reflect,
- BuildInfo::mut_version_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<BuildInfo>(
- "BuildInfo",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for BuildInfo {
- fn clear(&mut self) {
- self.clear_product();
- self.clear_product_flags();
- self.clear_platform();
- self.clear_version();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for BuildInfo {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for BuildInfo {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoHelloUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoHelloUnion {}
- impl LoginCryptoHelloUnion {
- pub fn new() -> LoginCryptoHelloUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoHelloUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoHelloUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoHelloUnion,
- };
- unsafe {
- instance.get(LoginCryptoHelloUnion::new)
- }
- }
- // optional .LoginCryptoDiffieHellmanHello diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanHello) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanHello {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanHello {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanHello {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanHello::default_instance())
- }
- fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello> {
- &self.diffie_hellman
- }
- fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanHello> {
- &mut self.diffie_hellman
- }
- }
- impl ::protobuf::Message for LoginCryptoHelloUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoHelloUnion {
- fn new() -> LoginCryptoHelloUnion {
- LoginCryptoHelloUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoHelloUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanHello>>(
- "diffie_hellman",
- LoginCryptoHelloUnion::get_diffie_hellman_for_reflect,
- LoginCryptoHelloUnion::mut_diffie_hellman_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoHelloUnion>(
- "LoginCryptoHelloUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoHelloUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoHelloUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoHelloUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanHello {
- // message fields
- gc: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- server_keys_known: ::std::option::Option<u32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanHello {}
- impl LoginCryptoDiffieHellmanHello {
- pub fn new() -> LoginCryptoDiffieHellmanHello {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoDiffieHellmanHello {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanHello> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanHello,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanHello::new)
- }
- }
- // required bytes gc = 10;
- pub fn clear_gc(&mut self) {
- self.gc.clear();
- }
- pub fn has_gc(&self) -> bool {
- self.gc.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gc(&mut self, v: ::std::vec::Vec<u8>) {
- self.gc = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gc(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gc.is_none() {
- self.gc.set_default();
- }
- self.gc.as_mut().unwrap()
- }
- // Take field
- pub fn take_gc(&mut self) -> ::std::vec::Vec<u8> {
- self.gc.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gc(&self) -> &[u8] {
- match self.gc.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_gc_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.gc
- }
- fn mut_gc_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.gc
- }
- // required uint32 server_keys_known = 20;
- pub fn clear_server_keys_known(&mut self) {
- self.server_keys_known = ::std::option::Option::None;
- }
- pub fn has_server_keys_known(&self) -> bool {
- self.server_keys_known.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_keys_known(&mut self, v: u32) {
- self.server_keys_known = ::std::option::Option::Some(v);
- }
- pub fn get_server_keys_known(&self) -> u32 {
- self.server_keys_known.unwrap_or(0)
- }
- fn get_server_keys_known_for_reflect(&self) -> &::std::option::Option<u32> {
- &self.server_keys_known
- }
- fn mut_server_keys_known_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
- &mut self.server_keys_known
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanHello {
- fn is_initialized(&self) -> bool {
- if self.gc.is_none() {
- return false;
- }
- if self.server_keys_known.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gc)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_uint32()?;
- self.server_keys_known = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.gc.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.server_keys_known {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.gc.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.server_keys_known {
- os.write_uint32(20, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanHello {
- fn new() -> LoginCryptoDiffieHellmanHello {
- LoginCryptoDiffieHellmanHello::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanHello>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gc",
- LoginCryptoDiffieHellmanHello::get_gc_for_reflect,
- LoginCryptoDiffieHellmanHello::mut_gc_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
- "server_keys_known",
- LoginCryptoDiffieHellmanHello::get_server_keys_known_for_reflect,
- LoginCryptoDiffieHellmanHello::mut_server_keys_known_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanHello>(
- "LoginCryptoDiffieHellmanHello",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanHello {
- fn clear(&mut self) {
- self.clear_gc();
- self.clear_server_keys_known();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanHello {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanHello {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FeatureSet {
- // message fields
- autoupdate2: ::std::option::Option<bool>,
- current_location: ::std::option::Option<bool>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for FeatureSet {}
- impl FeatureSet {
- pub fn new() -> FeatureSet {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static FeatureSet {
- static mut instance: ::protobuf::lazy::Lazy<FeatureSet> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FeatureSet,
- };
- unsafe {
- instance.get(FeatureSet::new)
- }
- }
- // optional bool autoupdate2 = 1;
- pub fn clear_autoupdate2(&mut self) {
- self.autoupdate2 = ::std::option::Option::None;
- }
- pub fn has_autoupdate2(&self) -> bool {
- self.autoupdate2.is_some()
- }
- // Param is passed by value, moved
- pub fn set_autoupdate2(&mut self, v: bool) {
- self.autoupdate2 = ::std::option::Option::Some(v);
- }
- pub fn get_autoupdate2(&self) -> bool {
- self.autoupdate2.unwrap_or(false)
- }
- fn get_autoupdate2_for_reflect(&self) -> &::std::option::Option<bool> {
- &self.autoupdate2
- }
- fn mut_autoupdate2_for_reflect(&mut self) -> &mut ::std::option::Option<bool> {
- &mut self.autoupdate2
- }
- // optional bool current_location = 2;
- pub fn clear_current_location(&mut self) {
- self.current_location = ::std::option::Option::None;
- }
- pub fn has_current_location(&self) -> bool {
- self.current_location.is_some()
- }
- // Param is passed by value, moved
- pub fn set_current_location(&mut self, v: bool) {
- self.current_location = ::std::option::Option::Some(v);
- }
- pub fn get_current_location(&self) -> bool {
- self.current_location.unwrap_or(false)
- }
- fn get_current_location_for_reflect(&self) -> &::std::option::Option<bool> {
- &self.current_location
- }
- fn mut_current_location_for_reflect(&mut self) -> &mut ::std::option::Option<bool> {
- &mut self.current_location
- }
- }
- impl ::protobuf::Message for FeatureSet {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.autoupdate2 = ::std::option::Option::Some(tmp);
- },
- 2 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_bool()?;
- self.current_location = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.autoupdate2 {
- my_size += 2;
- }
- if let Some(v) = self.current_location {
- my_size += 2;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.autoupdate2 {
- os.write_bool(1, v)?;
- }
- if let Some(v) = self.current_location {
- os.write_bool(2, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for FeatureSet {
- fn new() -> FeatureSet {
- FeatureSet::new()
- }
- fn descriptor_static(_: ::std::option::Option<FeatureSet>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "autoupdate2",
- FeatureSet::get_autoupdate2_for_reflect,
- FeatureSet::mut_autoupdate2_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
- "current_location",
- FeatureSet::get_current_location_for_reflect,
- FeatureSet::mut_current_location_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FeatureSet>(
- "FeatureSet",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for FeatureSet {
- fn clear(&mut self) {
- self.clear_autoupdate2();
- self.clear_current_location();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FeatureSet {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FeatureSet {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APResponseMessage {
- // message fields
- challenge: ::protobuf::SingularPtrField<APChallenge>,
- upgrade: ::protobuf::SingularPtrField<UpgradeRequiredMessage>,
- login_failed: ::protobuf::SingularPtrField<APLoginFailed>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for APResponseMessage {}
- impl APResponseMessage {
- pub fn new() -> APResponseMessage {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static APResponseMessage {
- static mut instance: ::protobuf::lazy::Lazy<APResponseMessage> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APResponseMessage,
- };
- unsafe {
- instance.get(APResponseMessage::new)
- }
- }
- // optional .APChallenge challenge = 10;
- pub fn clear_challenge(&mut self) {
- self.challenge.clear();
- }
- pub fn has_challenge(&self) -> bool {
- self.challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_challenge(&mut self, v: APChallenge) {
- self.challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_challenge(&mut self) -> &mut APChallenge {
- if self.challenge.is_none() {
- self.challenge.set_default();
- }
- self.challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_challenge(&mut self) -> APChallenge {
- self.challenge.take().unwrap_or_else(|| APChallenge::new())
- }
- pub fn get_challenge(&self) -> &APChallenge {
- self.challenge.as_ref().unwrap_or_else(|| APChallenge::default_instance())
- }
- fn get_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<APChallenge> {
- &self.challenge
- }
- fn mut_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<APChallenge> {
- &mut self.challenge
- }
- // optional .UpgradeRequiredMessage upgrade = 20;
- pub fn clear_upgrade(&mut self) {
- self.upgrade.clear();
- }
- pub fn has_upgrade(&self) -> bool {
- self.upgrade.is_some()
- }
- // Param is passed by value, moved
- pub fn set_upgrade(&mut self, v: UpgradeRequiredMessage) {
- self.upgrade = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_upgrade(&mut self) -> &mut UpgradeRequiredMessage {
- if self.upgrade.is_none() {
- self.upgrade.set_default();
- }
- self.upgrade.as_mut().unwrap()
- }
- // Take field
- pub fn take_upgrade(&mut self) -> UpgradeRequiredMessage {
- self.upgrade.take().unwrap_or_else(|| UpgradeRequiredMessage::new())
- }
- pub fn get_upgrade(&self) -> &UpgradeRequiredMessage {
- self.upgrade.as_ref().unwrap_or_else(|| UpgradeRequiredMessage::default_instance())
- }
- fn get_upgrade_for_reflect(&self) -> &::protobuf::SingularPtrField<UpgradeRequiredMessage> {
- &self.upgrade
- }
- fn mut_upgrade_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<UpgradeRequiredMessage> {
- &mut self.upgrade
- }
- // optional .APLoginFailed login_failed = 30;
- pub fn clear_login_failed(&mut self) {
- self.login_failed.clear();
- }
- pub fn has_login_failed(&self) -> bool {
- self.login_failed.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_failed(&mut self, v: APLoginFailed) {
- self.login_failed = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_failed(&mut self) -> &mut APLoginFailed {
- if self.login_failed.is_none() {
- self.login_failed.set_default();
- }
- self.login_failed.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_failed(&mut self) -> APLoginFailed {
- self.login_failed.take().unwrap_or_else(|| APLoginFailed::new())
- }
- pub fn get_login_failed(&self) -> &APLoginFailed {
- self.login_failed.as_ref().unwrap_or_else(|| APLoginFailed::default_instance())
- }
- fn get_login_failed_for_reflect(&self) -> &::protobuf::SingularPtrField<APLoginFailed> {
- &self.login_failed
- }
- fn mut_login_failed_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<APLoginFailed> {
- &mut self.login_failed
- }
- }
- impl ::protobuf::Message for APResponseMessage {
- fn is_initialized(&self) -> bool {
- for v in &self.challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.upgrade {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.login_failed {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.challenge)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.upgrade)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_failed)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.challenge.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.upgrade.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.login_failed.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.challenge.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.upgrade.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.login_failed.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for APResponseMessage {
- fn new() -> APResponseMessage {
- APResponseMessage::new()
- }
- fn descriptor_static(_: ::std::option::Option<APResponseMessage>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APChallenge>>(
- "challenge",
- APResponseMessage::get_challenge_for_reflect,
- APResponseMessage::mut_challenge_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UpgradeRequiredMessage>>(
- "upgrade",
- APResponseMessage::get_upgrade_for_reflect,
- APResponseMessage::mut_upgrade_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<APLoginFailed>>(
- "login_failed",
- APResponseMessage::get_login_failed_for_reflect,
- APResponseMessage::mut_login_failed_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APResponseMessage>(
- "APResponseMessage",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for APResponseMessage {
- fn clear(&mut self) {
- self.clear_challenge();
- self.clear_upgrade();
- self.clear_login_failed();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APResponseMessage {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APResponseMessage {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APChallenge {
- // message fields
- login_crypto_challenge: ::protobuf::SingularPtrField<LoginCryptoChallengeUnion>,
- fingerprint_challenge: ::protobuf::SingularPtrField<FingerprintChallengeUnion>,
- pow_challenge: ::protobuf::SingularPtrField<PoWChallengeUnion>,
- crypto_challenge: ::protobuf::SingularPtrField<CryptoChallengeUnion>,
- server_nonce: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- padding: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for APChallenge {}
- impl APChallenge {
- pub fn new() -> APChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static APChallenge {
- static mut instance: ::protobuf::lazy::Lazy<APChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APChallenge,
- };
- unsafe {
- instance.get(APChallenge::new)
- }
- }
- // required .LoginCryptoChallengeUnion login_crypto_challenge = 10;
- pub fn clear_login_crypto_challenge(&mut self) {
- self.login_crypto_challenge.clear();
- }
- pub fn has_login_crypto_challenge(&self) -> bool {
- self.login_crypto_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_challenge(&mut self, v: LoginCryptoChallengeUnion) {
- self.login_crypto_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_challenge(&mut self) -> &mut LoginCryptoChallengeUnion {
- if self.login_crypto_challenge.is_none() {
- self.login_crypto_challenge.set_default();
- }
- self.login_crypto_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_challenge(&mut self) -> LoginCryptoChallengeUnion {
- self.login_crypto_challenge.take().unwrap_or_else(|| LoginCryptoChallengeUnion::new())
- }
- pub fn get_login_crypto_challenge(&self) -> &LoginCryptoChallengeUnion {
- self.login_crypto_challenge.as_ref().unwrap_or_else(|| LoginCryptoChallengeUnion::default_instance())
- }
- fn get_login_crypto_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoChallengeUnion> {
- &self.login_crypto_challenge
- }
- fn mut_login_crypto_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoChallengeUnion> {
- &mut self.login_crypto_challenge
- }
- // required .FingerprintChallengeUnion fingerprint_challenge = 20;
- pub fn clear_fingerprint_challenge(&mut self) {
- self.fingerprint_challenge.clear();
- }
- pub fn has_fingerprint_challenge(&self) -> bool {
- self.fingerprint_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_fingerprint_challenge(&mut self, v: FingerprintChallengeUnion) {
- self.fingerprint_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_fingerprint_challenge(&mut self) -> &mut FingerprintChallengeUnion {
- if self.fingerprint_challenge.is_none() {
- self.fingerprint_challenge.set_default();
- }
- self.fingerprint_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_fingerprint_challenge(&mut self) -> FingerprintChallengeUnion {
- self.fingerprint_challenge.take().unwrap_or_else(|| FingerprintChallengeUnion::new())
- }
- pub fn get_fingerprint_challenge(&self) -> &FingerprintChallengeUnion {
- self.fingerprint_challenge.as_ref().unwrap_or_else(|| FingerprintChallengeUnion::default_instance())
- }
- fn get_fingerprint_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintChallengeUnion> {
- &self.fingerprint_challenge
- }
- fn mut_fingerprint_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintChallengeUnion> {
- &mut self.fingerprint_challenge
- }
- // required .PoWChallengeUnion pow_challenge = 30;
- pub fn clear_pow_challenge(&mut self) {
- self.pow_challenge.clear();
- }
- pub fn has_pow_challenge(&self) -> bool {
- self.pow_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pow_challenge(&mut self, v: PoWChallengeUnion) {
- self.pow_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_pow_challenge(&mut self) -> &mut PoWChallengeUnion {
- if self.pow_challenge.is_none() {
- self.pow_challenge.set_default();
- }
- self.pow_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_pow_challenge(&mut self) -> PoWChallengeUnion {
- self.pow_challenge.take().unwrap_or_else(|| PoWChallengeUnion::new())
- }
- pub fn get_pow_challenge(&self) -> &PoWChallengeUnion {
- self.pow_challenge.as_ref().unwrap_or_else(|| PoWChallengeUnion::default_instance())
- }
- fn get_pow_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWChallengeUnion> {
- &self.pow_challenge
- }
- fn mut_pow_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWChallengeUnion> {
- &mut self.pow_challenge
- }
- // required .CryptoChallengeUnion crypto_challenge = 40;
- pub fn clear_crypto_challenge(&mut self) {
- self.crypto_challenge.clear();
- }
- pub fn has_crypto_challenge(&self) -> bool {
- self.crypto_challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_crypto_challenge(&mut self, v: CryptoChallengeUnion) {
- self.crypto_challenge = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_crypto_challenge(&mut self) -> &mut CryptoChallengeUnion {
- if self.crypto_challenge.is_none() {
- self.crypto_challenge.set_default();
- }
- self.crypto_challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_crypto_challenge(&mut self) -> CryptoChallengeUnion {
- self.crypto_challenge.take().unwrap_or_else(|| CryptoChallengeUnion::new())
- }
- pub fn get_crypto_challenge(&self) -> &CryptoChallengeUnion {
- self.crypto_challenge.as_ref().unwrap_or_else(|| CryptoChallengeUnion::default_instance())
- }
- fn get_crypto_challenge_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoChallengeUnion> {
- &self.crypto_challenge
- }
- fn mut_crypto_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoChallengeUnion> {
- &mut self.crypto_challenge
- }
- // required bytes server_nonce = 50;
- pub fn clear_server_nonce(&mut self) {
- self.server_nonce.clear();
- }
- pub fn has_server_nonce(&self) -> bool {
- self.server_nonce.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_nonce(&mut self, v: ::std::vec::Vec<u8>) {
- self.server_nonce = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_server_nonce(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.server_nonce.is_none() {
- self.server_nonce.set_default();
- }
- self.server_nonce.as_mut().unwrap()
- }
- // Take field
- pub fn take_server_nonce(&mut self) -> ::std::vec::Vec<u8> {
- self.server_nonce.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_server_nonce(&self) -> &[u8] {
- match self.server_nonce.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_server_nonce_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.server_nonce
- }
- fn mut_server_nonce_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.server_nonce
- }
- // optional bytes padding = 60;
- pub fn clear_padding(&mut self) {
- self.padding.clear();
- }
- pub fn has_padding(&self) -> bool {
- self.padding.is_some()
- }
- // Param is passed by value, moved
- pub fn set_padding(&mut self, v: ::std::vec::Vec<u8>) {
- self.padding = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_padding(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.padding.is_none() {
- self.padding.set_default();
- }
- self.padding.as_mut().unwrap()
- }
- // Take field
- pub fn take_padding(&mut self) -> ::std::vec::Vec<u8> {
- self.padding.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_padding(&self) -> &[u8] {
- match self.padding.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_padding_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.padding
- }
- fn mut_padding_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.padding
- }
- }
- impl ::protobuf::Message for APChallenge {
- fn is_initialized(&self) -> bool {
- if self.login_crypto_challenge.is_none() {
- return false;
- }
- if self.fingerprint_challenge.is_none() {
- return false;
- }
- if self.pow_challenge.is_none() {
- return false;
- }
- if self.crypto_challenge.is_none() {
- return false;
- }
- if self.server_nonce.is_none() {
- return false;
- }
- for v in &self.login_crypto_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.fingerprint_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.pow_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.crypto_challenge {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_challenge)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fingerprint_challenge)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_challenge)?;
- },
- 40 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_challenge)?;
- },
- 50 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.server_nonce)?;
- },
- 60 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.padding)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.login_crypto_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.fingerprint_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.pow_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.crypto_challenge.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.server_nonce.as_ref() {
- my_size += ::protobuf::rt::bytes_size(50, &v);
- }
- if let Some(ref v) = self.padding.as_ref() {
- my_size += ::protobuf::rt::bytes_size(60, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.login_crypto_challenge.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.fingerprint_challenge.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.pow_challenge.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.crypto_challenge.as_ref() {
- os.write_tag(40, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.server_nonce.as_ref() {
- os.write_bytes(50, &v)?;
- }
- if let Some(ref v) = self.padding.as_ref() {
- os.write_bytes(60, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for APChallenge {
- fn new() -> APChallenge {
- APChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<APChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoChallengeUnion>>(
- "login_crypto_challenge",
- APChallenge::get_login_crypto_challenge_for_reflect,
- APChallenge::mut_login_crypto_challenge_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintChallengeUnion>>(
- "fingerprint_challenge",
- APChallenge::get_fingerprint_challenge_for_reflect,
- APChallenge::mut_fingerprint_challenge_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWChallengeUnion>>(
- "pow_challenge",
- APChallenge::get_pow_challenge_for_reflect,
- APChallenge::mut_pow_challenge_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoChallengeUnion>>(
- "crypto_challenge",
- APChallenge::get_crypto_challenge_for_reflect,
- APChallenge::mut_crypto_challenge_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "server_nonce",
- APChallenge::get_server_nonce_for_reflect,
- APChallenge::mut_server_nonce_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "padding",
- APChallenge::get_padding_for_reflect,
- APChallenge::mut_padding_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APChallenge>(
- "APChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for APChallenge {
- fn clear(&mut self) {
- self.clear_login_crypto_challenge();
- self.clear_fingerprint_challenge();
- self.clear_pow_challenge();
- self.clear_crypto_challenge();
- self.clear_server_nonce();
- self.clear_padding();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoChallengeUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoChallengeUnion {}
- impl LoginCryptoChallengeUnion {
- pub fn new() -> LoginCryptoChallengeUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoChallengeUnion,
- };
- unsafe {
- instance.get(LoginCryptoChallengeUnion::new)
- }
- }
- // optional .LoginCryptoDiffieHellmanChallenge diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanChallenge) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanChallenge {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanChallenge {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanChallenge {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanChallenge::default_instance())
- }
- fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge> {
- &self.diffie_hellman
- }
- fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanChallenge> {
- &mut self.diffie_hellman
- }
- }
- impl ::protobuf::Message for LoginCryptoChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoChallengeUnion {
- fn new() -> LoginCryptoChallengeUnion {
- LoginCryptoChallengeUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanChallenge>>(
- "diffie_hellman",
- LoginCryptoChallengeUnion::get_diffie_hellman_for_reflect,
- LoginCryptoChallengeUnion::mut_diffie_hellman_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoChallengeUnion>(
- "LoginCryptoChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoChallengeUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanChallenge {
- // message fields
- gs: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- server_signature_key: ::std::option::Option<i32>,
- gs_signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanChallenge {}
- impl LoginCryptoDiffieHellmanChallenge {
- pub fn new() -> LoginCryptoDiffieHellmanChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoDiffieHellmanChallenge {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanChallenge,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanChallenge::new)
- }
- }
- // required bytes gs = 10;
- pub fn clear_gs(&mut self) {
- self.gs.clear();
- }
- pub fn has_gs(&self) -> bool {
- self.gs.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gs(&mut self, v: ::std::vec::Vec<u8>) {
- self.gs = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gs(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gs.is_none() {
- self.gs.set_default();
- }
- self.gs.as_mut().unwrap()
- }
- // Take field
- pub fn take_gs(&mut self) -> ::std::vec::Vec<u8> {
- self.gs.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gs(&self) -> &[u8] {
- match self.gs.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_gs_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.gs
- }
- fn mut_gs_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.gs
- }
- // required int32 server_signature_key = 20;
- pub fn clear_server_signature_key(&mut self) {
- self.server_signature_key = ::std::option::Option::None;
- }
- pub fn has_server_signature_key(&self) -> bool {
- self.server_signature_key.is_some()
- }
- // Param is passed by value, moved
- pub fn set_server_signature_key(&mut self, v: i32) {
- self.server_signature_key = ::std::option::Option::Some(v);
- }
- pub fn get_server_signature_key(&self) -> i32 {
- self.server_signature_key.unwrap_or(0)
- }
- fn get_server_signature_key_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.server_signature_key
- }
- fn mut_server_signature_key_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.server_signature_key
- }
- // required bytes gs_signature = 30;
- pub fn clear_gs_signature(&mut self) {
- self.gs_signature.clear();
- }
- pub fn has_gs_signature(&self) -> bool {
- self.gs_signature.is_some()
- }
- // Param is passed by value, moved
- pub fn set_gs_signature(&mut self, v: ::std::vec::Vec<u8>) {
- self.gs_signature = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_gs_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.gs_signature.is_none() {
- self.gs_signature.set_default();
- }
- self.gs_signature.as_mut().unwrap()
- }
- // Take field
- pub fn take_gs_signature(&mut self) -> ::std::vec::Vec<u8> {
- self.gs_signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_gs_signature(&self) -> &[u8] {
- match self.gs_signature.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_gs_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.gs_signature
- }
- fn mut_gs_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.gs_signature
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanChallenge {
- fn is_initialized(&self) -> bool {
- if self.gs.is_none() {
- return false;
- }
- if self.server_signature_key.is_none() {
- return false;
- }
- if self.gs_signature.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.server_signature_key = ::std::option::Option::Some(tmp);
- },
- 30 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.gs_signature)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.gs.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.server_signature_key {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(ref v) = self.gs_signature.as_ref() {
- my_size += ::protobuf::rt::bytes_size(30, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.gs.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.server_signature_key {
- os.write_int32(20, v)?;
- }
- if let Some(ref v) = self.gs_signature.as_ref() {
- os.write_bytes(30, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanChallenge {
- fn new() -> LoginCryptoDiffieHellmanChallenge {
- LoginCryptoDiffieHellmanChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gs",
- LoginCryptoDiffieHellmanChallenge::get_gs_for_reflect,
- LoginCryptoDiffieHellmanChallenge::mut_gs_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "server_signature_key",
- LoginCryptoDiffieHellmanChallenge::get_server_signature_key_for_reflect,
- LoginCryptoDiffieHellmanChallenge::mut_server_signature_key_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "gs_signature",
- LoginCryptoDiffieHellmanChallenge::get_gs_signature_for_reflect,
- LoginCryptoDiffieHellmanChallenge::mut_gs_signature_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanChallenge>(
- "LoginCryptoDiffieHellmanChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanChallenge {
- fn clear(&mut self) {
- self.clear_gs();
- self.clear_server_signature_key();
- self.clear_gs_signature();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintChallengeUnion {
- // message fields
- grain: ::protobuf::SingularPtrField<FingerprintGrainChallenge>,
- hmac_ripemd: ::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for FingerprintChallengeUnion {}
- impl FingerprintChallengeUnion {
- pub fn new() -> FingerprintChallengeUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static FingerprintChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintChallengeUnion,
- };
- unsafe {
- instance.get(FingerprintChallengeUnion::new)
- }
- }
- // optional .FingerprintGrainChallenge grain = 10;
- pub fn clear_grain(&mut self) {
- self.grain.clear();
- }
- pub fn has_grain(&self) -> bool {
- self.grain.is_some()
- }
- // Param is passed by value, moved
- pub fn set_grain(&mut self, v: FingerprintGrainChallenge) {
- self.grain = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_grain(&mut self) -> &mut FingerprintGrainChallenge {
- if self.grain.is_none() {
- self.grain.set_default();
- }
- self.grain.as_mut().unwrap()
- }
- // Take field
- pub fn take_grain(&mut self) -> FingerprintGrainChallenge {
- self.grain.take().unwrap_or_else(|| FingerprintGrainChallenge::new())
- }
- pub fn get_grain(&self) -> &FingerprintGrainChallenge {
- self.grain.as_ref().unwrap_or_else(|| FingerprintGrainChallenge::default_instance())
- }
- fn get_grain_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintGrainChallenge> {
- &self.grain
- }
- fn mut_grain_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintGrainChallenge> {
- &mut self.grain
- }
- // optional .FingerprintHmacRipemdChallenge hmac_ripemd = 20;
- pub fn clear_hmac_ripemd(&mut self) {
- self.hmac_ripemd.clear();
- }
- pub fn has_hmac_ripemd(&self) -> bool {
- self.hmac_ripemd.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hmac_ripemd(&mut self, v: FingerprintHmacRipemdChallenge) {
- self.hmac_ripemd = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hmac_ripemd(&mut self) -> &mut FingerprintHmacRipemdChallenge {
- if self.hmac_ripemd.is_none() {
- self.hmac_ripemd.set_default();
- }
- self.hmac_ripemd.as_mut().unwrap()
- }
- // Take field
- pub fn take_hmac_ripemd(&mut self) -> FingerprintHmacRipemdChallenge {
- self.hmac_ripemd.take().unwrap_or_else(|| FingerprintHmacRipemdChallenge::new())
- }
- pub fn get_hmac_ripemd(&self) -> &FingerprintHmacRipemdChallenge {
- self.hmac_ripemd.as_ref().unwrap_or_else(|| FingerprintHmacRipemdChallenge::default_instance())
- }
- fn get_hmac_ripemd_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge> {
- &self.hmac_ripemd
- }
- fn mut_hmac_ripemd_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintHmacRipemdChallenge> {
- &mut self.hmac_ripemd
- }
- }
- impl ::protobuf::Message for FingerprintChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.grain {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.hmac_ripemd {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grain)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hmac_ripemd)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.grain.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.hmac_ripemd.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.grain.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.hmac_ripemd.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for FingerprintChallengeUnion {
- fn new() -> FingerprintChallengeUnion {
- FingerprintChallengeUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<FingerprintChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintGrainChallenge>>(
- "grain",
- FingerprintChallengeUnion::get_grain_for_reflect,
- FingerprintChallengeUnion::mut_grain_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintHmacRipemdChallenge>>(
- "hmac_ripemd",
- FingerprintChallengeUnion::get_hmac_ripemd_for_reflect,
- FingerprintChallengeUnion::mut_hmac_ripemd_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintChallengeUnion>(
- "FingerprintChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for FingerprintChallengeUnion {
- fn clear(&mut self) {
- self.clear_grain();
- self.clear_hmac_ripemd();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintGrainChallenge {
- // message fields
- kek: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for FingerprintGrainChallenge {}
- impl FingerprintGrainChallenge {
- pub fn new() -> FingerprintGrainChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static FingerprintGrainChallenge {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintGrainChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintGrainChallenge,
- };
- unsafe {
- instance.get(FingerprintGrainChallenge::new)
- }
- }
- // required bytes kek = 10;
- pub fn clear_kek(&mut self) {
- self.kek.clear();
- }
- pub fn has_kek(&self) -> bool {
- self.kek.is_some()
- }
- // Param is passed by value, moved
- pub fn set_kek(&mut self, v: ::std::vec::Vec<u8>) {
- self.kek = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_kek(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.kek.is_none() {
- self.kek.set_default();
- }
- self.kek.as_mut().unwrap()
- }
- // Take field
- pub fn take_kek(&mut self) -> ::std::vec::Vec<u8> {
- self.kek.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_kek(&self) -> &[u8] {
- match self.kek.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_kek_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.kek
- }
- fn mut_kek_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.kek
- }
- }
- impl ::protobuf::Message for FingerprintGrainChallenge {
- fn is_initialized(&self) -> bool {
- if self.kek.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.kek)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.kek.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.kek.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for FingerprintGrainChallenge {
- fn new() -> FingerprintGrainChallenge {
- FingerprintGrainChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<FingerprintGrainChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "kek",
- FingerprintGrainChallenge::get_kek_for_reflect,
- FingerprintGrainChallenge::mut_kek_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintGrainChallenge>(
- "FingerprintGrainChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for FingerprintGrainChallenge {
- fn clear(&mut self) {
- self.clear_kek();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintGrainChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintGrainChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct FingerprintHmacRipemdChallenge {
- // message fields
- challenge: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for FingerprintHmacRipemdChallenge {}
- impl FingerprintHmacRipemdChallenge {
- pub fn new() -> FingerprintHmacRipemdChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static FingerprintHmacRipemdChallenge {
- static mut instance: ::protobuf::lazy::Lazy<FingerprintHmacRipemdChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const FingerprintHmacRipemdChallenge,
- };
- unsafe {
- instance.get(FingerprintHmacRipemdChallenge::new)
- }
- }
- // required bytes challenge = 10;
- pub fn clear_challenge(&mut self) {
- self.challenge.clear();
- }
- pub fn has_challenge(&self) -> bool {
- self.challenge.is_some()
- }
- // Param is passed by value, moved
- pub fn set_challenge(&mut self, v: ::std::vec::Vec<u8>) {
- self.challenge = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_challenge(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.challenge.is_none() {
- self.challenge.set_default();
- }
- self.challenge.as_mut().unwrap()
- }
- // Take field
- pub fn take_challenge(&mut self) -> ::std::vec::Vec<u8> {
- self.challenge.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_challenge(&self) -> &[u8] {
- match self.challenge.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_challenge_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.challenge
- }
- fn mut_challenge_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.challenge
- }
- }
- impl ::protobuf::Message for FingerprintHmacRipemdChallenge {
- fn is_initialized(&self) -> bool {
- if self.challenge.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.challenge)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.challenge.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.challenge.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for FingerprintHmacRipemdChallenge {
- fn new() -> FingerprintHmacRipemdChallenge {
- FingerprintHmacRipemdChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<FingerprintHmacRipemdChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "challenge",
- FingerprintHmacRipemdChallenge::get_challenge_for_reflect,
- FingerprintHmacRipemdChallenge::mut_challenge_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<FingerprintHmacRipemdChallenge>(
- "FingerprintHmacRipemdChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for FingerprintHmacRipemdChallenge {
- fn clear(&mut self) {
- self.clear_challenge();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for FingerprintHmacRipemdChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for FingerprintHmacRipemdChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWChallengeUnion {
- // message fields
- hash_cash: ::protobuf::SingularPtrField<PoWHashCashChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for PoWChallengeUnion {}
- impl PoWChallengeUnion {
- pub fn new() -> PoWChallengeUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static PoWChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<PoWChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWChallengeUnion,
- };
- unsafe {
- instance.get(PoWChallengeUnion::new)
- }
- }
- // optional .PoWHashCashChallenge hash_cash = 10;
- pub fn clear_hash_cash(&mut self) {
- self.hash_cash.clear();
- }
- pub fn has_hash_cash(&self) -> bool {
- self.hash_cash.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_cash(&mut self, v: PoWHashCashChallenge) {
- self.hash_cash = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashChallenge {
- if self.hash_cash.is_none() {
- self.hash_cash.set_default();
- }
- self.hash_cash.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_cash(&mut self) -> PoWHashCashChallenge {
- self.hash_cash.take().unwrap_or_else(|| PoWHashCashChallenge::new())
- }
- pub fn get_hash_cash(&self) -> &PoWHashCashChallenge {
- self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashChallenge::default_instance())
- }
- fn get_hash_cash_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWHashCashChallenge> {
- &self.hash_cash
- }
- fn mut_hash_cash_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWHashCashChallenge> {
- &mut self.hash_cash
- }
- }
- impl ::protobuf::Message for PoWChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.hash_cash {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_cash.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_cash.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for PoWChallengeUnion {
- fn new() -> PoWChallengeUnion {
- PoWChallengeUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<PoWChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashChallenge>>(
- "hash_cash",
- PoWChallengeUnion::get_hash_cash_for_reflect,
- PoWChallengeUnion::mut_hash_cash_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWChallengeUnion>(
- "PoWChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for PoWChallengeUnion {
- fn clear(&mut self) {
- self.clear_hash_cash();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWHashCashChallenge {
- // message fields
- prefix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- length: ::std::option::Option<i32>,
- target: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for PoWHashCashChallenge {}
- impl PoWHashCashChallenge {
- pub fn new() -> PoWHashCashChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static PoWHashCashChallenge {
- static mut instance: ::protobuf::lazy::Lazy<PoWHashCashChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWHashCashChallenge,
- };
- unsafe {
- instance.get(PoWHashCashChallenge::new)
- }
- }
- // optional bytes prefix = 10;
- pub fn clear_prefix(&mut self) {
- self.prefix.clear();
- }
- pub fn has_prefix(&self) -> bool {
- self.prefix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_prefix(&mut self, v: ::std::vec::Vec<u8>) {
- self.prefix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_prefix(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.prefix.is_none() {
- self.prefix.set_default();
- }
- self.prefix.as_mut().unwrap()
- }
- // Take field
- pub fn take_prefix(&mut self) -> ::std::vec::Vec<u8> {
- self.prefix.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_prefix(&self) -> &[u8] {
- match self.prefix.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_prefix_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.prefix
- }
- fn mut_prefix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.prefix
- }
- // optional int32 length = 20;
- pub fn clear_length(&mut self) {
- self.length = ::std::option::Option::None;
- }
- pub fn has_length(&self) -> bool {
- self.length.is_some()
- }
- // Param is passed by value, moved
- pub fn set_length(&mut self, v: i32) {
- self.length = ::std::option::Option::Some(v);
- }
- pub fn get_length(&self) -> i32 {
- self.length.unwrap_or(0)
- }
- fn get_length_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.length
- }
- fn mut_length_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.length
- }
- // optional int32 target = 30;
- pub fn clear_target(&mut self) {
- self.target = ::std::option::Option::None;
- }
- pub fn has_target(&self) -> bool {
- self.target.is_some()
- }
- // Param is passed by value, moved
- pub fn set_target(&mut self, v: i32) {
- self.target = ::std::option::Option::Some(v);
- }
- pub fn get_target(&self) -> i32 {
- self.target.unwrap_or(0)
- }
- fn get_target_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.target
- }
- fn mut_target_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.target
- }
- }
- impl ::protobuf::Message for PoWHashCashChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.prefix)?;
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.length = ::std::option::Option::Some(tmp);
- },
- 30 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.target = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.prefix.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(v) = self.length {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.target {
- my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.prefix.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(v) = self.length {
- os.write_int32(20, v)?;
- }
- if let Some(v) = self.target {
- os.write_int32(30, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for PoWHashCashChallenge {
- fn new() -> PoWHashCashChallenge {
- PoWHashCashChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<PoWHashCashChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "prefix",
- PoWHashCashChallenge::get_prefix_for_reflect,
- PoWHashCashChallenge::mut_prefix_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "length",
- PoWHashCashChallenge::get_length_for_reflect,
- PoWHashCashChallenge::mut_length_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "target",
- PoWHashCashChallenge::get_target_for_reflect,
- PoWHashCashChallenge::mut_target_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashChallenge>(
- "PoWHashCashChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for PoWHashCashChallenge {
- fn clear(&mut self) {
- self.clear_prefix();
- self.clear_length();
- self.clear_target();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWHashCashChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWHashCashChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoChallengeUnion {
- // message fields
- shannon: ::protobuf::SingularPtrField<CryptoShannonChallenge>,
- rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoChallengeUnion {}
- impl CryptoChallengeUnion {
- pub fn new() -> CryptoChallengeUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoChallengeUnion {
- static mut instance: ::protobuf::lazy::Lazy<CryptoChallengeUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoChallengeUnion,
- };
- unsafe {
- instance.get(CryptoChallengeUnion::new)
- }
- }
- // optional .CryptoShannonChallenge shannon = 10;
- pub fn clear_shannon(&mut self) {
- self.shannon.clear();
- }
- pub fn has_shannon(&self) -> bool {
- self.shannon.is_some()
- }
- // Param is passed by value, moved
- pub fn set_shannon(&mut self, v: CryptoShannonChallenge) {
- self.shannon = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_shannon(&mut self) -> &mut CryptoShannonChallenge {
- if self.shannon.is_none() {
- self.shannon.set_default();
- }
- self.shannon.as_mut().unwrap()
- }
- // Take field
- pub fn take_shannon(&mut self) -> CryptoShannonChallenge {
- self.shannon.take().unwrap_or_else(|| CryptoShannonChallenge::new())
- }
- pub fn get_shannon(&self) -> &CryptoShannonChallenge {
- self.shannon.as_ref().unwrap_or_else(|| CryptoShannonChallenge::default_instance())
- }
- fn get_shannon_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoShannonChallenge> {
- &self.shannon
- }
- fn mut_shannon_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoShannonChallenge> {
- &mut self.shannon
- }
- // optional .CryptoRc4Sha1HmacChallenge rc4_sha1_hmac = 20;
- pub fn clear_rc4_sha1_hmac(&mut self) {
- self.rc4_sha1_hmac.clear();
- }
- pub fn has_rc4_sha1_hmac(&self) -> bool {
- self.rc4_sha1_hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacChallenge) {
- self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacChallenge {
- if self.rc4_sha1_hmac.is_none() {
- self.rc4_sha1_hmac.set_default();
- }
- self.rc4_sha1_hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacChallenge {
- self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::new())
- }
- pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacChallenge {
- self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacChallenge::default_instance())
- }
- fn get_rc4_sha1_hmac_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge> {
- &self.rc4_sha1_hmac
- }
- fn mut_rc4_sha1_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoRc4Sha1HmacChallenge> {
- &mut self.rc4_sha1_hmac
- }
- }
- impl ::protobuf::Message for CryptoChallengeUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.shannon {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.rc4_sha1_hmac {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.shannon.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.shannon.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoChallengeUnion {
- fn new() -> CryptoChallengeUnion {
- CryptoChallengeUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoChallengeUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonChallenge>>(
- "shannon",
- CryptoChallengeUnion::get_shannon_for_reflect,
- CryptoChallengeUnion::mut_shannon_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacChallenge>>(
- "rc4_sha1_hmac",
- CryptoChallengeUnion::get_rc4_sha1_hmac_for_reflect,
- CryptoChallengeUnion::mut_rc4_sha1_hmac_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoChallengeUnion>(
- "CryptoChallengeUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoChallengeUnion {
- fn clear(&mut self) {
- self.clear_shannon();
- self.clear_rc4_sha1_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoChallengeUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoChallengeUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoShannonChallenge {
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoShannonChallenge {}
- impl CryptoShannonChallenge {
- pub fn new() -> CryptoShannonChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoShannonChallenge {
- static mut instance: ::protobuf::lazy::Lazy<CryptoShannonChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoShannonChallenge,
- };
- unsafe {
- instance.get(CryptoShannonChallenge::new)
- }
- }
- }
- impl ::protobuf::Message for CryptoShannonChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoShannonChallenge {
- fn new() -> CryptoShannonChallenge {
- CryptoShannonChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoShannonChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let fields = ::std::vec::Vec::new();
- ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonChallenge>(
- "CryptoShannonChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoShannonChallenge {
- fn clear(&mut self) {
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoShannonChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoShannonChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoRc4Sha1HmacChallenge {
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoRc4Sha1HmacChallenge {}
- impl CryptoRc4Sha1HmacChallenge {
- pub fn new() -> CryptoRc4Sha1HmacChallenge {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoRc4Sha1HmacChallenge {
- static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacChallenge> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoRc4Sha1HmacChallenge,
- };
- unsafe {
- instance.get(CryptoRc4Sha1HmacChallenge::new)
- }
- }
- }
- impl ::protobuf::Message for CryptoRc4Sha1HmacChallenge {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoRc4Sha1HmacChallenge {
- fn new() -> CryptoRc4Sha1HmacChallenge {
- CryptoRc4Sha1HmacChallenge::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoRc4Sha1HmacChallenge>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let fields = ::std::vec::Vec::new();
- ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacChallenge>(
- "CryptoRc4Sha1HmacChallenge",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoRc4Sha1HmacChallenge {
- fn clear(&mut self) {
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoRc4Sha1HmacChallenge {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacChallenge {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct UpgradeRequiredMessage {
- // message fields
- upgrade_signed_part: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- http_suffix: ::protobuf::SingularField<::std::string::String>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for UpgradeRequiredMessage {}
- impl UpgradeRequiredMessage {
- pub fn new() -> UpgradeRequiredMessage {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static UpgradeRequiredMessage {
- static mut instance: ::protobuf::lazy::Lazy<UpgradeRequiredMessage> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const UpgradeRequiredMessage,
- };
- unsafe {
- instance.get(UpgradeRequiredMessage::new)
- }
- }
- // required bytes upgrade_signed_part = 10;
- pub fn clear_upgrade_signed_part(&mut self) {
- self.upgrade_signed_part.clear();
- }
- pub fn has_upgrade_signed_part(&self) -> bool {
- self.upgrade_signed_part.is_some()
- }
- // Param is passed by value, moved
- pub fn set_upgrade_signed_part(&mut self, v: ::std::vec::Vec<u8>) {
- self.upgrade_signed_part = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_upgrade_signed_part(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.upgrade_signed_part.is_none() {
- self.upgrade_signed_part.set_default();
- }
- self.upgrade_signed_part.as_mut().unwrap()
- }
- // Take field
- pub fn take_upgrade_signed_part(&mut self) -> ::std::vec::Vec<u8> {
- self.upgrade_signed_part.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_upgrade_signed_part(&self) -> &[u8] {
- match self.upgrade_signed_part.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_upgrade_signed_part_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.upgrade_signed_part
- }
- fn mut_upgrade_signed_part_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.upgrade_signed_part
- }
- // required bytes signature = 20;
- pub fn clear_signature(&mut self) {
- self.signature.clear();
- }
- pub fn has_signature(&self) -> bool {
- self.signature.is_some()
- }
- // Param is passed by value, moved
- pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
- self.signature = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.signature.is_none() {
- self.signature.set_default();
- }
- self.signature.as_mut().unwrap()
- }
- // Take field
- pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
- self.signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_signature(&self) -> &[u8] {
- match self.signature.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.signature
- }
- fn mut_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.signature
- }
- // optional string http_suffix = 30;
- pub fn clear_http_suffix(&mut self) {
- self.http_suffix.clear();
- }
- pub fn has_http_suffix(&self) -> bool {
- self.http_suffix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_http_suffix(&mut self, v: ::std::string::String) {
- self.http_suffix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_http_suffix(&mut self) -> &mut ::std::string::String {
- if self.http_suffix.is_none() {
- self.http_suffix.set_default();
- }
- self.http_suffix.as_mut().unwrap()
- }
- // Take field
- pub fn take_http_suffix(&mut self) -> ::std::string::String {
- self.http_suffix.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_http_suffix(&self) -> &str {
- match self.http_suffix.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_http_suffix_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.http_suffix
- }
- fn mut_http_suffix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.http_suffix
- }
- }
- impl ::protobuf::Message for UpgradeRequiredMessage {
- fn is_initialized(&self) -> bool {
- if self.upgrade_signed_part.is_none() {
- return false;
- }
- if self.signature.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.upgrade_signed_part)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signature)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.http_suffix)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.upgrade_signed_part.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- if let Some(ref v) = self.signature.as_ref() {
- my_size += ::protobuf::rt::bytes_size(20, &v);
- }
- if let Some(ref v) = self.http_suffix.as_ref() {
- my_size += ::protobuf::rt::string_size(30, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.upgrade_signed_part.as_ref() {
- os.write_bytes(10, &v)?;
- }
- if let Some(ref v) = self.signature.as_ref() {
- os.write_bytes(20, &v)?;
- }
- if let Some(ref v) = self.http_suffix.as_ref() {
- os.write_string(30, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for UpgradeRequiredMessage {
- fn new() -> UpgradeRequiredMessage {
- UpgradeRequiredMessage::new()
- }
- fn descriptor_static(_: ::std::option::Option<UpgradeRequiredMessage>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "upgrade_signed_part",
- UpgradeRequiredMessage::get_upgrade_signed_part_for_reflect,
- UpgradeRequiredMessage::mut_upgrade_signed_part_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "signature",
- UpgradeRequiredMessage::get_signature_for_reflect,
- UpgradeRequiredMessage::mut_signature_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "http_suffix",
- UpgradeRequiredMessage::get_http_suffix_for_reflect,
- UpgradeRequiredMessage::mut_http_suffix_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<UpgradeRequiredMessage>(
- "UpgradeRequiredMessage",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for UpgradeRequiredMessage {
- fn clear(&mut self) {
- self.clear_upgrade_signed_part();
- self.clear_signature();
- self.clear_http_suffix();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for UpgradeRequiredMessage {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for UpgradeRequiredMessage {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct APLoginFailed {
- // message fields
- error_code: ::std::option::Option<ErrorCode>,
- retry_delay: ::std::option::Option<i32>,
- expiry: ::std::option::Option<i32>,
- error_description: ::protobuf::SingularField<::std::string::String>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for APLoginFailed {}
- impl APLoginFailed {
- pub fn new() -> APLoginFailed {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static APLoginFailed {
- static mut instance: ::protobuf::lazy::Lazy<APLoginFailed> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const APLoginFailed,
- };
- unsafe {
- instance.get(APLoginFailed::new)
- }
- }
- // required .ErrorCode error_code = 10;
- pub fn clear_error_code(&mut self) {
- self.error_code = ::std::option::Option::None;
- }
- pub fn has_error_code(&self) -> bool {
- self.error_code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_error_code(&mut self, v: ErrorCode) {
- self.error_code = ::std::option::Option::Some(v);
- }
- pub fn get_error_code(&self) -> ErrorCode {
- self.error_code.unwrap_or(ErrorCode::ProtocolError)
- }
- fn get_error_code_for_reflect(&self) -> &::std::option::Option<ErrorCode> {
- &self.error_code
- }
- fn mut_error_code_for_reflect(&mut self) -> &mut ::std::option::Option<ErrorCode> {
- &mut self.error_code
- }
- // optional int32 retry_delay = 20;
- pub fn clear_retry_delay(&mut self) {
- self.retry_delay = ::std::option::Option::None;
- }
- pub fn has_retry_delay(&self) -> bool {
- self.retry_delay.is_some()
- }
- // Param is passed by value, moved
- pub fn set_retry_delay(&mut self, v: i32) {
- self.retry_delay = ::std::option::Option::Some(v);
- }
- pub fn get_retry_delay(&self) -> i32 {
- self.retry_delay.unwrap_or(0)
- }
- fn get_retry_delay_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.retry_delay
- }
- fn mut_retry_delay_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.retry_delay
- }
- // optional int32 expiry = 30;
- pub fn clear_expiry(&mut self) {
- self.expiry = ::std::option::Option::None;
- }
- pub fn has_expiry(&self) -> bool {
- self.expiry.is_some()
- }
- // Param is passed by value, moved
- pub fn set_expiry(&mut self, v: i32) {
- self.expiry = ::std::option::Option::Some(v);
- }
- pub fn get_expiry(&self) -> i32 {
- self.expiry.unwrap_or(0)
- }
- fn get_expiry_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.expiry
- }
- fn mut_expiry_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.expiry
- }
- // optional string error_description = 40;
- pub fn clear_error_description(&mut self) {
- self.error_description.clear();
- }
- pub fn has_error_description(&self) -> bool {
- self.error_description.is_some()
- }
- // Param is passed by value, moved
- pub fn set_error_description(&mut self, v: ::std::string::String) {
- self.error_description = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_error_description(&mut self) -> &mut ::std::string::String {
- if self.error_description.is_none() {
- self.error_description.set_default();
- }
- self.error_description.as_mut().unwrap()
- }
- // Take field
- pub fn take_error_description(&mut self) -> ::std::string::String {
- self.error_description.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_error_description(&self) -> &str {
- match self.error_description.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_error_description_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.error_description
- }
- fn mut_error_description_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.error_description
- }
- }
- impl ::protobuf::Message for APLoginFailed {
- fn is_initialized(&self) -> bool {
- if self.error_code.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_enum()?;
- self.error_code = ::std::option::Option::Some(tmp);
- },
- 20 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.retry_delay = ::std::option::Option::Some(tmp);
- },
- 30 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.expiry = ::std::option::Option::Some(tmp);
- },
- 40 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.error_description)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.error_code {
- my_size += ::protobuf::rt::enum_size(10, v);
- }
- if let Some(v) = self.retry_delay {
- my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(v) = self.expiry {
- my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
- }
- if let Some(ref v) = self.error_description.as_ref() {
- my_size += ::protobuf::rt::string_size(40, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.error_code {
- os.write_enum(10, v.value())?;
- }
- if let Some(v) = self.retry_delay {
- os.write_int32(20, v)?;
- }
- if let Some(v) = self.expiry {
- os.write_int32(30, v)?;
- }
- if let Some(ref v) = self.error_description.as_ref() {
- os.write_string(40, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for APLoginFailed {
- fn new() -> APLoginFailed {
- APLoginFailed::new()
- }
- fn descriptor_static(_: ::std::option::Option<APLoginFailed>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<ErrorCode>>(
- "error_code",
- APLoginFailed::get_error_code_for_reflect,
- APLoginFailed::mut_error_code_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "retry_delay",
- APLoginFailed::get_retry_delay_for_reflect,
- APLoginFailed::mut_retry_delay_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "expiry",
- APLoginFailed::get_expiry_for_reflect,
- APLoginFailed::mut_expiry_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "error_description",
- APLoginFailed::get_error_description_for_reflect,
- APLoginFailed::mut_error_description_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<APLoginFailed>(
- "APLoginFailed",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for APLoginFailed {
- fn clear(&mut self) {
- self.clear_error_code();
- self.clear_retry_delay();
- self.clear_expiry();
- self.clear_error_description();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for APLoginFailed {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for APLoginFailed {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct ClientResponsePlaintext {
- // message fields
- login_crypto_response: ::protobuf::SingularPtrField<LoginCryptoResponseUnion>,
- pow_response: ::protobuf::SingularPtrField<PoWResponseUnion>,
- crypto_response: ::protobuf::SingularPtrField<CryptoResponseUnion>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for ClientResponsePlaintext {}
- impl ClientResponsePlaintext {
- pub fn new() -> ClientResponsePlaintext {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static ClientResponsePlaintext {
- static mut instance: ::protobuf::lazy::Lazy<ClientResponsePlaintext> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ClientResponsePlaintext,
- };
- unsafe {
- instance.get(ClientResponsePlaintext::new)
- }
- }
- // required .LoginCryptoResponseUnion login_crypto_response = 10;
- pub fn clear_login_crypto_response(&mut self) {
- self.login_crypto_response.clear();
- }
- pub fn has_login_crypto_response(&self) -> bool {
- self.login_crypto_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_login_crypto_response(&mut self, v: LoginCryptoResponseUnion) {
- self.login_crypto_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_login_crypto_response(&mut self) -> &mut LoginCryptoResponseUnion {
- if self.login_crypto_response.is_none() {
- self.login_crypto_response.set_default();
- }
- self.login_crypto_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_login_crypto_response(&mut self) -> LoginCryptoResponseUnion {
- self.login_crypto_response.take().unwrap_or_else(|| LoginCryptoResponseUnion::new())
- }
- pub fn get_login_crypto_response(&self) -> &LoginCryptoResponseUnion {
- self.login_crypto_response.as_ref().unwrap_or_else(|| LoginCryptoResponseUnion::default_instance())
- }
- fn get_login_crypto_response_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoResponseUnion> {
- &self.login_crypto_response
- }
- fn mut_login_crypto_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoResponseUnion> {
- &mut self.login_crypto_response
- }
- // required .PoWResponseUnion pow_response = 20;
- pub fn clear_pow_response(&mut self) {
- self.pow_response.clear();
- }
- pub fn has_pow_response(&self) -> bool {
- self.pow_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_pow_response(&mut self, v: PoWResponseUnion) {
- self.pow_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_pow_response(&mut self) -> &mut PoWResponseUnion {
- if self.pow_response.is_none() {
- self.pow_response.set_default();
- }
- self.pow_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_pow_response(&mut self) -> PoWResponseUnion {
- self.pow_response.take().unwrap_or_else(|| PoWResponseUnion::new())
- }
- pub fn get_pow_response(&self) -> &PoWResponseUnion {
- self.pow_response.as_ref().unwrap_or_else(|| PoWResponseUnion::default_instance())
- }
- fn get_pow_response_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWResponseUnion> {
- &self.pow_response
- }
- fn mut_pow_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWResponseUnion> {
- &mut self.pow_response
- }
- // required .CryptoResponseUnion crypto_response = 30;
- pub fn clear_crypto_response(&mut self) {
- self.crypto_response.clear();
- }
- pub fn has_crypto_response(&self) -> bool {
- self.crypto_response.is_some()
- }
- // Param is passed by value, moved
- pub fn set_crypto_response(&mut self, v: CryptoResponseUnion) {
- self.crypto_response = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_crypto_response(&mut self) -> &mut CryptoResponseUnion {
- if self.crypto_response.is_none() {
- self.crypto_response.set_default();
- }
- self.crypto_response.as_mut().unwrap()
- }
- // Take field
- pub fn take_crypto_response(&mut self) -> CryptoResponseUnion {
- self.crypto_response.take().unwrap_or_else(|| CryptoResponseUnion::new())
- }
- pub fn get_crypto_response(&self) -> &CryptoResponseUnion {
- self.crypto_response.as_ref().unwrap_or_else(|| CryptoResponseUnion::default_instance())
- }
- fn get_crypto_response_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoResponseUnion> {
- &self.crypto_response
- }
- fn mut_crypto_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoResponseUnion> {
- &mut self.crypto_response
- }
- }
- impl ::protobuf::Message for ClientResponsePlaintext {
- fn is_initialized(&self) -> bool {
- if self.login_crypto_response.is_none() {
- return false;
- }
- if self.pow_response.is_none() {
- return false;
- }
- if self.crypto_response.is_none() {
- return false;
- }
- for v in &self.login_crypto_response {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.pow_response {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.crypto_response {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_crypto_response)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pow_response)?;
- },
- 30 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.crypto_response)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.login_crypto_response.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.pow_response.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.crypto_response.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.login_crypto_response.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.pow_response.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.crypto_response.as_ref() {
- os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for ClientResponsePlaintext {
- fn new() -> ClientResponsePlaintext {
- ClientResponsePlaintext::new()
- }
- fn descriptor_static(_: ::std::option::Option<ClientResponsePlaintext>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoResponseUnion>>(
- "login_crypto_response",
- ClientResponsePlaintext::get_login_crypto_response_for_reflect,
- ClientResponsePlaintext::mut_login_crypto_response_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWResponseUnion>>(
- "pow_response",
- ClientResponsePlaintext::get_pow_response_for_reflect,
- ClientResponsePlaintext::mut_pow_response_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoResponseUnion>>(
- "crypto_response",
- ClientResponsePlaintext::get_crypto_response_for_reflect,
- ClientResponsePlaintext::mut_crypto_response_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<ClientResponsePlaintext>(
- "ClientResponsePlaintext",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for ClientResponsePlaintext {
- fn clear(&mut self) {
- self.clear_login_crypto_response();
- self.clear_pow_response();
- self.clear_crypto_response();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for ClientResponsePlaintext {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for ClientResponsePlaintext {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoResponseUnion {
- // message fields
- diffie_hellman: ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoResponseUnion {}
- impl LoginCryptoResponseUnion {
- pub fn new() -> LoginCryptoResponseUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoResponseUnion,
- };
- unsafe {
- instance.get(LoginCryptoResponseUnion::new)
- }
- }
- // optional .LoginCryptoDiffieHellmanResponse diffie_hellman = 10;
- pub fn clear_diffie_hellman(&mut self) {
- self.diffie_hellman.clear();
- }
- pub fn has_diffie_hellman(&self) -> bool {
- self.diffie_hellman.is_some()
- }
- // Param is passed by value, moved
- pub fn set_diffie_hellman(&mut self, v: LoginCryptoDiffieHellmanResponse) {
- self.diffie_hellman = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_diffie_hellman(&mut self) -> &mut LoginCryptoDiffieHellmanResponse {
- if self.diffie_hellman.is_none() {
- self.diffie_hellman.set_default();
- }
- self.diffie_hellman.as_mut().unwrap()
- }
- // Take field
- pub fn take_diffie_hellman(&mut self) -> LoginCryptoDiffieHellmanResponse {
- self.diffie_hellman.take().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::new())
- }
- pub fn get_diffie_hellman(&self) -> &LoginCryptoDiffieHellmanResponse {
- self.diffie_hellman.as_ref().unwrap_or_else(|| LoginCryptoDiffieHellmanResponse::default_instance())
- }
- fn get_diffie_hellman_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse> {
- &self.diffie_hellman
- }
- fn mut_diffie_hellman_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCryptoDiffieHellmanResponse> {
- &mut self.diffie_hellman
- }
- }
- impl ::protobuf::Message for LoginCryptoResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.diffie_hellman {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.diffie_hellman)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.diffie_hellman.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoResponseUnion {
- fn new() -> LoginCryptoResponseUnion {
- LoginCryptoResponseUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCryptoDiffieHellmanResponse>>(
- "diffie_hellman",
- LoginCryptoResponseUnion::get_diffie_hellman_for_reflect,
- LoginCryptoResponseUnion::mut_diffie_hellman_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoResponseUnion>(
- "LoginCryptoResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoResponseUnion {
- fn clear(&mut self) {
- self.clear_diffie_hellman();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct LoginCryptoDiffieHellmanResponse {
- // message fields
- hmac: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for LoginCryptoDiffieHellmanResponse {}
- impl LoginCryptoDiffieHellmanResponse {
- pub fn new() -> LoginCryptoDiffieHellmanResponse {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static LoginCryptoDiffieHellmanResponse {
- static mut instance: ::protobuf::lazy::Lazy<LoginCryptoDiffieHellmanResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const LoginCryptoDiffieHellmanResponse,
- };
- unsafe {
- instance.get(LoginCryptoDiffieHellmanResponse::new)
- }
- }
- // required bytes hmac = 10;
- pub fn clear_hmac(&mut self) {
- self.hmac.clear();
- }
- pub fn has_hmac(&self) -> bool {
- self.hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hmac(&mut self, v: ::std::vec::Vec<u8>) {
- self.hmac = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hmac(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.hmac.is_none() {
- self.hmac.set_default();
- }
- self.hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_hmac(&mut self) -> ::std::vec::Vec<u8> {
- self.hmac.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_hmac(&self) -> &[u8] {
- match self.hmac.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_hmac_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.hmac
- }
- fn mut_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.hmac
- }
- }
- impl ::protobuf::Message for LoginCryptoDiffieHellmanResponse {
- fn is_initialized(&self) -> bool {
- if self.hmac.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hmac.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hmac.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for LoginCryptoDiffieHellmanResponse {
- fn new() -> LoginCryptoDiffieHellmanResponse {
- LoginCryptoDiffieHellmanResponse::new()
- }
- fn descriptor_static(_: ::std::option::Option<LoginCryptoDiffieHellmanResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "hmac",
- LoginCryptoDiffieHellmanResponse::get_hmac_for_reflect,
- LoginCryptoDiffieHellmanResponse::mut_hmac_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<LoginCryptoDiffieHellmanResponse>(
- "LoginCryptoDiffieHellmanResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for LoginCryptoDiffieHellmanResponse {
- fn clear(&mut self) {
- self.clear_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for LoginCryptoDiffieHellmanResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for LoginCryptoDiffieHellmanResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWResponseUnion {
- // message fields
- hash_cash: ::protobuf::SingularPtrField<PoWHashCashResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for PoWResponseUnion {}
- impl PoWResponseUnion {
- pub fn new() -> PoWResponseUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static PoWResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<PoWResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWResponseUnion,
- };
- unsafe {
- instance.get(PoWResponseUnion::new)
- }
- }
- // optional .PoWHashCashResponse hash_cash = 10;
- pub fn clear_hash_cash(&mut self) {
- self.hash_cash.clear();
- }
- pub fn has_hash_cash(&self) -> bool {
- self.hash_cash.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_cash(&mut self, v: PoWHashCashResponse) {
- self.hash_cash = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_cash(&mut self) -> &mut PoWHashCashResponse {
- if self.hash_cash.is_none() {
- self.hash_cash.set_default();
- }
- self.hash_cash.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_cash(&mut self) -> PoWHashCashResponse {
- self.hash_cash.take().unwrap_or_else(|| PoWHashCashResponse::new())
- }
- pub fn get_hash_cash(&self) -> &PoWHashCashResponse {
- self.hash_cash.as_ref().unwrap_or_else(|| PoWHashCashResponse::default_instance())
- }
- fn get_hash_cash_for_reflect(&self) -> &::protobuf::SingularPtrField<PoWHashCashResponse> {
- &self.hash_cash
- }
- fn mut_hash_cash_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PoWHashCashResponse> {
- &mut self.hash_cash
- }
- }
- impl ::protobuf::Message for PoWResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.hash_cash {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hash_cash)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_cash.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_cash.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for PoWResponseUnion {
- fn new() -> PoWResponseUnion {
- PoWResponseUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<PoWResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PoWHashCashResponse>>(
- "hash_cash",
- PoWResponseUnion::get_hash_cash_for_reflect,
- PoWResponseUnion::mut_hash_cash_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWResponseUnion>(
- "PoWResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for PoWResponseUnion {
- fn clear(&mut self) {
- self.clear_hash_cash();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct PoWHashCashResponse {
- // message fields
- hash_suffix: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for PoWHashCashResponse {}
- impl PoWHashCashResponse {
- pub fn new() -> PoWHashCashResponse {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static PoWHashCashResponse {
- static mut instance: ::protobuf::lazy::Lazy<PoWHashCashResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const PoWHashCashResponse,
- };
- unsafe {
- instance.get(PoWHashCashResponse::new)
- }
- }
- // required bytes hash_suffix = 10;
- pub fn clear_hash_suffix(&mut self) {
- self.hash_suffix.clear();
- }
- pub fn has_hash_suffix(&self) -> bool {
- self.hash_suffix.is_some()
- }
- // Param is passed by value, moved
- pub fn set_hash_suffix(&mut self, v: ::std::vec::Vec<u8>) {
- self.hash_suffix = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_hash_suffix(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.hash_suffix.is_none() {
- self.hash_suffix.set_default();
- }
- self.hash_suffix.as_mut().unwrap()
- }
- // Take field
- pub fn take_hash_suffix(&mut self) -> ::std::vec::Vec<u8> {
- self.hash_suffix.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_hash_suffix(&self) -> &[u8] {
- match self.hash_suffix.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_hash_suffix_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.hash_suffix
- }
- fn mut_hash_suffix_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.hash_suffix
- }
- }
- impl ::protobuf::Message for PoWHashCashResponse {
- fn is_initialized(&self) -> bool {
- if self.hash_suffix.is_none() {
- return false;
- }
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hash_suffix)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.hash_suffix.as_ref() {
- my_size += ::protobuf::rt::bytes_size(10, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.hash_suffix.as_ref() {
- os.write_bytes(10, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for PoWHashCashResponse {
- fn new() -> PoWHashCashResponse {
- PoWHashCashResponse::new()
- }
- fn descriptor_static(_: ::std::option::Option<PoWHashCashResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "hash_suffix",
- PoWHashCashResponse::get_hash_suffix_for_reflect,
- PoWHashCashResponse::mut_hash_suffix_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<PoWHashCashResponse>(
- "PoWHashCashResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for PoWHashCashResponse {
- fn clear(&mut self) {
- self.clear_hash_suffix();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for PoWHashCashResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for PoWHashCashResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoResponseUnion {
- // message fields
- shannon: ::protobuf::SingularPtrField<CryptoShannonResponse>,
- rc4_sha1_hmac: ::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoResponseUnion {}
- impl CryptoResponseUnion {
- pub fn new() -> CryptoResponseUnion {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoResponseUnion {
- static mut instance: ::protobuf::lazy::Lazy<CryptoResponseUnion> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoResponseUnion,
- };
- unsafe {
- instance.get(CryptoResponseUnion::new)
- }
- }
- // optional .CryptoShannonResponse shannon = 10;
- pub fn clear_shannon(&mut self) {
- self.shannon.clear();
- }
- pub fn has_shannon(&self) -> bool {
- self.shannon.is_some()
- }
- // Param is passed by value, moved
- pub fn set_shannon(&mut self, v: CryptoShannonResponse) {
- self.shannon = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_shannon(&mut self) -> &mut CryptoShannonResponse {
- if self.shannon.is_none() {
- self.shannon.set_default();
- }
- self.shannon.as_mut().unwrap()
- }
- // Take field
- pub fn take_shannon(&mut self) -> CryptoShannonResponse {
- self.shannon.take().unwrap_or_else(|| CryptoShannonResponse::new())
- }
- pub fn get_shannon(&self) -> &CryptoShannonResponse {
- self.shannon.as_ref().unwrap_or_else(|| CryptoShannonResponse::default_instance())
- }
- fn get_shannon_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoShannonResponse> {
- &self.shannon
- }
- fn mut_shannon_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoShannonResponse> {
- &mut self.shannon
- }
- // optional .CryptoRc4Sha1HmacResponse rc4_sha1_hmac = 20;
- pub fn clear_rc4_sha1_hmac(&mut self) {
- self.rc4_sha1_hmac.clear();
- }
- pub fn has_rc4_sha1_hmac(&self) -> bool {
- self.rc4_sha1_hmac.is_some()
- }
- // Param is passed by value, moved
- pub fn set_rc4_sha1_hmac(&mut self, v: CryptoRc4Sha1HmacResponse) {
- self.rc4_sha1_hmac = ::protobuf::SingularPtrField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_rc4_sha1_hmac(&mut self) -> &mut CryptoRc4Sha1HmacResponse {
- if self.rc4_sha1_hmac.is_none() {
- self.rc4_sha1_hmac.set_default();
- }
- self.rc4_sha1_hmac.as_mut().unwrap()
- }
- // Take field
- pub fn take_rc4_sha1_hmac(&mut self) -> CryptoRc4Sha1HmacResponse {
- self.rc4_sha1_hmac.take().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::new())
- }
- pub fn get_rc4_sha1_hmac(&self) -> &CryptoRc4Sha1HmacResponse {
- self.rc4_sha1_hmac.as_ref().unwrap_or_else(|| CryptoRc4Sha1HmacResponse::default_instance())
- }
- fn get_rc4_sha1_hmac_for_reflect(&self) -> &::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse> {
- &self.rc4_sha1_hmac
- }
- fn mut_rc4_sha1_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<CryptoRc4Sha1HmacResponse> {
- &mut self.rc4_sha1_hmac
- }
- }
- impl ::protobuf::Message for CryptoResponseUnion {
- fn is_initialized(&self) -> bool {
- for v in &self.shannon {
- if !v.is_initialized() {
- return false;
- }
- };
- for v in &self.rc4_sha1_hmac {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 10 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.shannon)?;
- },
- 20 => {
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rc4_sha1_hmac)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.shannon.as_ref() {
- let len = v.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- let len = v.compute_size();
- my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.shannon.as_ref() {
- os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- if let Some(ref v) = self.rc4_sha1_hmac.as_ref() {
- os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoResponseUnion {
- fn new() -> CryptoResponseUnion {
- CryptoResponseUnion::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoShannonResponse>>(
- "shannon",
- CryptoResponseUnion::get_shannon_for_reflect,
- CryptoResponseUnion::mut_shannon_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<CryptoRc4Sha1HmacResponse>>(
- "rc4_sha1_hmac",
- CryptoResponseUnion::get_rc4_sha1_hmac_for_reflect,
- CryptoResponseUnion::mut_rc4_sha1_hmac_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoResponseUnion>(
- "CryptoResponseUnion",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoResponseUnion {
- fn clear(&mut self) {
- self.clear_shannon();
- self.clear_rc4_sha1_hmac();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoResponseUnion {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoResponseUnion {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoShannonResponse {
- // message fields
- dummy: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoShannonResponse {}
- impl CryptoShannonResponse {
- pub fn new() -> CryptoShannonResponse {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoShannonResponse {
- static mut instance: ::protobuf::lazy::Lazy<CryptoShannonResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoShannonResponse,
- };
- unsafe {
- instance.get(CryptoShannonResponse::new)
- }
- }
- // optional int32 dummy = 1;
- pub fn clear_dummy(&mut self) {
- self.dummy = ::std::option::Option::None;
- }
- pub fn has_dummy(&self) -> bool {
- self.dummy.is_some()
- }
- // Param is passed by value, moved
- pub fn set_dummy(&mut self, v: i32) {
- self.dummy = ::std::option::Option::Some(v);
- }
- pub fn get_dummy(&self) -> i32 {
- self.dummy.unwrap_or(0)
- }
- fn get_dummy_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.dummy
- }
- fn mut_dummy_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.dummy
- }
- }
- impl ::protobuf::Message for CryptoShannonResponse {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.dummy = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.dummy {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.dummy {
- os.write_int32(1, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoShannonResponse {
- fn new() -> CryptoShannonResponse {
- CryptoShannonResponse::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoShannonResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "dummy",
- CryptoShannonResponse::get_dummy_for_reflect,
- CryptoShannonResponse::mut_dummy_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoShannonResponse>(
- "CryptoShannonResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoShannonResponse {
- fn clear(&mut self) {
- self.clear_dummy();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoShannonResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoShannonResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct CryptoRc4Sha1HmacResponse {
- // message fields
- dummy: ::std::option::Option<i32>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for CryptoRc4Sha1HmacResponse {}
- impl CryptoRc4Sha1HmacResponse {
- pub fn new() -> CryptoRc4Sha1HmacResponse {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static CryptoRc4Sha1HmacResponse {
- static mut instance: ::protobuf::lazy::Lazy<CryptoRc4Sha1HmacResponse> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const CryptoRc4Sha1HmacResponse,
- };
- unsafe {
- instance.get(CryptoRc4Sha1HmacResponse::new)
- }
- }
- // optional int32 dummy = 1;
- pub fn clear_dummy(&mut self) {
- self.dummy = ::std::option::Option::None;
- }
- pub fn has_dummy(&self) -> bool {
- self.dummy.is_some()
- }
- // Param is passed by value, moved
- pub fn set_dummy(&mut self, v: i32) {
- self.dummy = ::std::option::Option::Some(v);
- }
- pub fn get_dummy(&self) -> i32 {
- self.dummy.unwrap_or(0)
- }
- fn get_dummy_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.dummy
- }
- fn mut_dummy_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.dummy
- }
- }
- impl ::protobuf::Message for CryptoRc4Sha1HmacResponse {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_int32()?;
- self.dummy = ::std::option::Option::Some(tmp);
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.dummy {
- my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.dummy {
- os.write_int32(1, v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for CryptoRc4Sha1HmacResponse {
- fn new() -> CryptoRc4Sha1HmacResponse {
- CryptoRc4Sha1HmacResponse::new()
- }
- fn descriptor_static(_: ::std::option::Option<CryptoRc4Sha1HmacResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
- "dummy",
- CryptoRc4Sha1HmacResponse::get_dummy_for_reflect,
- CryptoRc4Sha1HmacResponse::mut_dummy_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<CryptoRc4Sha1HmacResponse>(
- "CryptoRc4Sha1HmacResponse",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for CryptoRc4Sha1HmacResponse {
- fn clear(&mut self) {
- self.clear_dummy();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for CryptoRc4Sha1HmacResponse {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for CryptoRc4Sha1HmacResponse {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Product {
- PRODUCT_CLIENT = 0,
- PRODUCT_LIBSPOTIFY = 1,
- PRODUCT_MOBILE = 2,
- PRODUCT_PARTNER = 3,
- PRODUCT_LIBSPOTIFY_EMBEDDED = 5,
- }
- impl ::protobuf::ProtobufEnum for Product {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Product> {
- match value {
- 0 => ::std::option::Option::Some(Product::PRODUCT_CLIENT),
- 1 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY),
- 2 => ::std::option::Option::Some(Product::PRODUCT_MOBILE),
- 3 => ::std::option::Option::Some(Product::PRODUCT_PARTNER),
- 5 => ::std::option::Option::Some(Product::PRODUCT_LIBSPOTIFY_EMBEDDED),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Product] = &[
- Product::PRODUCT_CLIENT,
- Product::PRODUCT_LIBSPOTIFY,
- Product::PRODUCT_MOBILE,
- Product::PRODUCT_PARTNER,
- Product::PRODUCT_LIBSPOTIFY_EMBEDDED,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<Product>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Product", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Product {
- }
- impl ::protobuf::reflect::ProtobufValue for Product {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ProductFlags {
- PRODUCT_FLAG_NONE = 0,
- PRODUCT_FLAG_DEV_BUILD = 1,
- }
- impl ::protobuf::ProtobufEnum for ProductFlags {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ProductFlags> {
- match value {
- 0 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_NONE),
- 1 => ::std::option::Option::Some(ProductFlags::PRODUCT_FLAG_DEV_BUILD),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ProductFlags] = &[
- ProductFlags::PRODUCT_FLAG_NONE,
- ProductFlags::PRODUCT_FLAG_DEV_BUILD,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<ProductFlags>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ProductFlags", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ProductFlags {
- }
- impl ::protobuf::reflect::ProtobufValue for ProductFlags {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Platform {
- PLATFORM_WIN32_X86 = 0,
- PLATFORM_OSX_X86 = 1,
- PLATFORM_LINUX_X86 = 2,
- PLATFORM_IPHONE_ARM = 3,
- PLATFORM_S60_ARM = 4,
- PLATFORM_OSX_PPC = 5,
- PLATFORM_ANDROID_ARM = 6,
- PLATFORM_WINDOWS_CE_ARM = 7,
- PLATFORM_LINUX_X86_64 = 8,
- PLATFORM_OSX_X86_64 = 9,
- PLATFORM_PALM_ARM = 10,
- PLATFORM_LINUX_SH = 11,
- PLATFORM_FREEBSD_X86 = 12,
- PLATFORM_FREEBSD_X86_64 = 13,
- PLATFORM_BLACKBERRY_ARM = 14,
- PLATFORM_SONOS = 15,
- PLATFORM_LINUX_MIPS = 16,
- PLATFORM_LINUX_ARM = 17,
- PLATFORM_LOGITECH_ARM = 18,
- PLATFORM_LINUX_BLACKFIN = 19,
- PLATFORM_WP7_ARM = 20,
- PLATFORM_ONKYO_ARM = 21,
- PLATFORM_QNXNTO_ARM = 22,
- PLATFORM_BCO_ARM = 23,
- }
- impl ::protobuf::ProtobufEnum for Platform {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Platform> {
- match value {
- 0 => ::std::option::Option::Some(Platform::PLATFORM_WIN32_X86),
- 1 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86),
- 2 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86),
- 3 => ::std::option::Option::Some(Platform::PLATFORM_IPHONE_ARM),
- 4 => ::std::option::Option::Some(Platform::PLATFORM_S60_ARM),
- 5 => ::std::option::Option::Some(Platform::PLATFORM_OSX_PPC),
- 6 => ::std::option::Option::Some(Platform::PLATFORM_ANDROID_ARM),
- 7 => ::std::option::Option::Some(Platform::PLATFORM_WINDOWS_CE_ARM),
- 8 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_X86_64),
- 9 => ::std::option::Option::Some(Platform::PLATFORM_OSX_X86_64),
- 10 => ::std::option::Option::Some(Platform::PLATFORM_PALM_ARM),
- 11 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_SH),
- 12 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86),
- 13 => ::std::option::Option::Some(Platform::PLATFORM_FREEBSD_X86_64),
- 14 => ::std::option::Option::Some(Platform::PLATFORM_BLACKBERRY_ARM),
- 15 => ::std::option::Option::Some(Platform::PLATFORM_SONOS),
- 16 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_MIPS),
- 17 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_ARM),
- 18 => ::std::option::Option::Some(Platform::PLATFORM_LOGITECH_ARM),
- 19 => ::std::option::Option::Some(Platform::PLATFORM_LINUX_BLACKFIN),
- 20 => ::std::option::Option::Some(Platform::PLATFORM_WP7_ARM),
- 21 => ::std::option::Option::Some(Platform::PLATFORM_ONKYO_ARM),
- 22 => ::std::option::Option::Some(Platform::PLATFORM_QNXNTO_ARM),
- 23 => ::std::option::Option::Some(Platform::PLATFORM_BCO_ARM),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Platform] = &[
- Platform::PLATFORM_WIN32_X86,
- Platform::PLATFORM_OSX_X86,
- Platform::PLATFORM_LINUX_X86,
- Platform::PLATFORM_IPHONE_ARM,
- Platform::PLATFORM_S60_ARM,
- Platform::PLATFORM_OSX_PPC,
- Platform::PLATFORM_ANDROID_ARM,
- Platform::PLATFORM_WINDOWS_CE_ARM,
- Platform::PLATFORM_LINUX_X86_64,
- Platform::PLATFORM_OSX_X86_64,
- Platform::PLATFORM_PALM_ARM,
- Platform::PLATFORM_LINUX_SH,
- Platform::PLATFORM_FREEBSD_X86,
- Platform::PLATFORM_FREEBSD_X86_64,
- Platform::PLATFORM_BLACKBERRY_ARM,
- Platform::PLATFORM_SONOS,
- Platform::PLATFORM_LINUX_MIPS,
- Platform::PLATFORM_LINUX_ARM,
- Platform::PLATFORM_LOGITECH_ARM,
- Platform::PLATFORM_LINUX_BLACKFIN,
- Platform::PLATFORM_WP7_ARM,
- Platform::PLATFORM_ONKYO_ARM,
- Platform::PLATFORM_QNXNTO_ARM,
- Platform::PLATFORM_BCO_ARM,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<Platform>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Platform", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Platform {
- }
- impl ::protobuf::reflect::ProtobufValue for Platform {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Fingerprint {
- FINGERPRINT_GRAIN = 0,
- FINGERPRINT_HMAC_RIPEMD = 1,
- }
- impl ::protobuf::ProtobufEnum for Fingerprint {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Fingerprint> {
- match value {
- 0 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_GRAIN),
- 1 => ::std::option::Option::Some(Fingerprint::FINGERPRINT_HMAC_RIPEMD),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Fingerprint] = &[
- Fingerprint::FINGERPRINT_GRAIN,
- Fingerprint::FINGERPRINT_HMAC_RIPEMD,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<Fingerprint>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Fingerprint", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Fingerprint {
- }
- impl ::protobuf::reflect::ProtobufValue for Fingerprint {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Cryptosuite {
- CRYPTO_SUITE_SHANNON = 0,
- CRYPTO_SUITE_RC4_SHA1_HMAC = 1,
- }
- impl ::protobuf::ProtobufEnum for Cryptosuite {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Cryptosuite> {
- match value {
- 0 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_SHANNON),
- 1 => ::std::option::Option::Some(Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Cryptosuite] = &[
- Cryptosuite::CRYPTO_SUITE_SHANNON,
- Cryptosuite::CRYPTO_SUITE_RC4_SHA1_HMAC,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<Cryptosuite>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Cryptosuite", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Cryptosuite {
- }
- impl ::protobuf::reflect::ProtobufValue for Cryptosuite {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum Powscheme {
- POW_HASH_CASH = 0,
- }
- impl ::protobuf::ProtobufEnum for Powscheme {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<Powscheme> {
- match value {
- 0 => ::std::option::Option::Some(Powscheme::POW_HASH_CASH),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [Powscheme] = &[
- Powscheme::POW_HASH_CASH,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<Powscheme>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("Powscheme", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for Powscheme {
- }
- impl ::protobuf::reflect::ProtobufValue for Powscheme {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum ErrorCode {
- ProtocolError = 0,
- TryAnotherAP = 2,
- BadConnectionId = 5,
- TravelRestriction = 9,
- PremiumAccountRequired = 11,
- BadCredentials = 12,
- CouldNotValidateCredentials = 13,
- AccountExists = 14,
- ExtraVerificationRequired = 15,
- InvalidAppKey = 16,
- ApplicationBanned = 17,
- }
- impl ::protobuf::ProtobufEnum for ErrorCode {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<ErrorCode> {
- match value {
- 0 => ::std::option::Option::Some(ErrorCode::ProtocolError),
- 2 => ::std::option::Option::Some(ErrorCode::TryAnotherAP),
- 5 => ::std::option::Option::Some(ErrorCode::BadConnectionId),
- 9 => ::std::option::Option::Some(ErrorCode::TravelRestriction),
- 11 => ::std::option::Option::Some(ErrorCode::PremiumAccountRequired),
- 12 => ::std::option::Option::Some(ErrorCode::BadCredentials),
- 13 => ::std::option::Option::Some(ErrorCode::CouldNotValidateCredentials),
- 14 => ::std::option::Option::Some(ErrorCode::AccountExists),
- 15 => ::std::option::Option::Some(ErrorCode::ExtraVerificationRequired),
- 16 => ::std::option::Option::Some(ErrorCode::InvalidAppKey),
- 17 => ::std::option::Option::Some(ErrorCode::ApplicationBanned),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [ErrorCode] = &[
- ErrorCode::ProtocolError,
- ErrorCode::TryAnotherAP,
- ErrorCode::BadConnectionId,
- ErrorCode::TravelRestriction,
- ErrorCode::PremiumAccountRequired,
- ErrorCode::BadCredentials,
- ErrorCode::CouldNotValidateCredentials,
- ErrorCode::AccountExists,
- ErrorCode::ExtraVerificationRequired,
- ErrorCode::InvalidAppKey,
- ErrorCode::ApplicationBanned,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<ErrorCode>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("ErrorCode", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for ErrorCode {
- }
- impl ::protobuf::reflect::ProtobufValue for ErrorCode {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x11keyexchange.proto\"\xb2\x03\n\x0bClientHello\x12)\n\nbuild_info\
- \x18\n\x20\x02(\x0b2\n.BuildInfoR\tbuildInfo\x12C\n\x16fingerprints_supp\
- orted\x18\x14\x20\x03(\x0e2\x0c.FingerprintR\x15fingerprintsSupported\
- \x12C\n\x16cryptosuites_supported\x18\x1e\x20\x03(\x0e2\x0c.CryptosuiteR\
- \x15cryptosuitesSupported\x12=\n\x14powschemes_supported\x18(\x20\x03(\
- \x0e2\n.PowschemeR\x13powschemesSupported\x12D\n\x12login_crypto_hello\
- \x182\x20\x02(\x0b2\x16.LoginCryptoHelloUnionR\x10loginCryptoHello\x12!\
- \n\x0cclient_nonce\x18<\x20\x02(\x0cR\x0bclientNonce\x12\x18\n\x07paddin\
- g\x18F\x20\x01(\x0cR\x07padding\x12,\n\x0bfeature_set\x18P\x20\x01(\x0b2\
- \x0b.FeatureSetR\nfeatureSet\"\xa4\x01\n\tBuildInfo\x12\"\n\x07product\
- \x18\n\x20\x02(\x0e2\x08.ProductR\x07product\x122\n\rproduct_flags\x18\
- \x14\x20\x03(\x0e2\r.ProductFlagsR\x0cproductFlags\x12%\n\x08platform\
- \x18\x1e\x20\x02(\x0e2\t.PlatformR\x08platform\x12\x18\n\x07version\x18(\
- \x20\x02(\x04R\x07version\"^\n\x15LoginCryptoHelloUnion\x12E\n\x0ediffie\
- _hellman\x18\n\x20\x01(\x0b2\x1e.LoginCryptoDiffieHellmanHelloR\rdiffieH\
- ellman\"[\n\x1dLoginCryptoDiffieHellmanHello\x12\x0e\n\x02gc\x18\n\x20\
- \x02(\x0cR\x02gc\x12*\n\x11server_keys_known\x18\x14\x20\x02(\rR\x0fserv\
- erKeysKnown\"Y\n\nFeatureSet\x12\x20\n\x0bautoupdate2\x18\x01\x20\x01(\
- \x08R\x0bautoupdate2\x12)\n\x10current_location\x18\x02\x20\x01(\x08R\
- \x0fcurrentLocation\"\xa5\x01\n\x11APResponseMessage\x12*\n\tchallenge\
- \x18\n\x20\x01(\x0b2\x0c.APChallengeR\tchallenge\x121\n\x07upgrade\x18\
- \x14\x20\x01(\x0b2\x17.UpgradeRequiredMessageR\x07upgrade\x121\n\x0clogi\
- n_failed\x18\x1e\x20\x01(\x0b2\x0e.APLoginFailedR\x0bloginFailed\"\xe8\
- \x02\n\x0bAPChallenge\x12P\n\x16login_crypto_challenge\x18\n\x20\x02(\
- \x0b2\x1a.LoginCryptoChallengeUnionR\x14loginCryptoChallenge\x12O\n\x15f\
- ingerprint_challenge\x18\x14\x20\x02(\x0b2\x1a.FingerprintChallengeUnion\
- R\x14fingerprintChallenge\x127\n\rpow_challenge\x18\x1e\x20\x02(\x0b2\
- \x12.PoWChallengeUnionR\x0cpowChallenge\x12@\n\x10crypto_challenge\x18(\
- \x20\x02(\x0b2\x15.CryptoChallengeUnionR\x0fcryptoChallenge\x12!\n\x0cse\
- rver_nonce\x182\x20\x02(\x0cR\x0bserverNonce\x12\x18\n\x07padding\x18<\
- \x20\x01(\x0cR\x07padding\"f\n\x19LoginCryptoChallengeUnion\x12I\n\x0edi\
- ffie_hellman\x18\n\x20\x01(\x0b2\".LoginCryptoDiffieHellmanChallengeR\rd\
- iffieHellman\"\x88\x01\n!LoginCryptoDiffieHellmanChallenge\x12\x0e\n\x02\
- gs\x18\n\x20\x02(\x0cR\x02gs\x120\n\x14server_signature_key\x18\x14\x20\
- \x02(\x05R\x12serverSignatureKey\x12!\n\x0cgs_signature\x18\x1e\x20\x02(\
- \x0cR\x0bgsSignature\"\x8f\x01\n\x19FingerprintChallengeUnion\x120\n\x05\
- grain\x18\n\x20\x01(\x0b2\x1a.FingerprintGrainChallengeR\x05grain\x12@\n\
- \x0bhmac_ripemd\x18\x14\x20\x01(\x0b2\x1f.FingerprintHmacRipemdChallenge\
- R\nhmacRipemd\"-\n\x19FingerprintGrainChallenge\x12\x10\n\x03kek\x18\n\
- \x20\x02(\x0cR\x03kek\">\n\x1eFingerprintHmacRipemdChallenge\x12\x1c\n\t\
- challenge\x18\n\x20\x02(\x0cR\tchallenge\"G\n\x11PoWChallengeUnion\x122\
- \n\thash_cash\x18\n\x20\x01(\x0b2\x15.PoWHashCashChallengeR\x08hashCash\
- \"^\n\x14PoWHashCashChallenge\x12\x16\n\x06prefix\x18\n\x20\x01(\x0cR\
- \x06prefix\x12\x16\n\x06length\x18\x14\x20\x01(\x05R\x06length\x12\x16\n\
- \x06target\x18\x1e\x20\x01(\x05R\x06target\"\x8a\x01\n\x14CryptoChalleng\
- eUnion\x121\n\x07shannon\x18\n\x20\x01(\x0b2\x17.CryptoShannonChallengeR\
- \x07shannon\x12?\n\rrc4_sha1_hmac\x18\x14\x20\x01(\x0b2\x1b.CryptoRc4Sha\
- 1HmacChallengeR\x0brc4Sha1Hmac\"\x18\n\x16CryptoShannonChallenge\"\x1c\n\
- \x1aCryptoRc4Sha1HmacChallenge\"\x87\x01\n\x16UpgradeRequiredMessage\x12\
- .\n\x13upgrade_signed_part\x18\n\x20\x02(\x0cR\x11upgradeSignedPart\x12\
- \x1c\n\tsignature\x18\x14\x20\x02(\x0cR\tsignature\x12\x1f\n\x0bhttp_suf\
- fix\x18\x1e\x20\x01(\tR\nhttpSuffix\"\xa0\x01\n\rAPLoginFailed\x12)\n\ne\
- rror_code\x18\n\x20\x02(\x0e2\n.ErrorCodeR\terrorCode\x12\x1f\n\x0bretry\
- _delay\x18\x14\x20\x01(\x05R\nretryDelay\x12\x16\n\x06expiry\x18\x1e\x20\
- \x01(\x05R\x06expiry\x12+\n\x11error_description\x18(\x20\x01(\tR\x10err\
- orDescription\"\xdd\x01\n\x17ClientResponsePlaintext\x12M\n\x15login_cry\
- pto_response\x18\n\x20\x02(\x0b2\x19.LoginCryptoResponseUnionR\x13loginC\
- ryptoResponse\x124\n\x0cpow_response\x18\x14\x20\x02(\x0b2\x11.PoWRespon\
- seUnionR\x0bpowResponse\x12=\n\x0fcrypto_response\x18\x1e\x20\x02(\x0b2\
- \x14.CryptoResponseUnionR\x0ecryptoResponse\"d\n\x18LoginCryptoResponseU\
- nion\x12H\n\x0ediffie_hellman\x18\n\x20\x01(\x0b2!.LoginCryptoDiffieHell\
- manResponseR\rdiffieHellman\"6\n\x20LoginCryptoDiffieHellmanResponse\x12\
- \x12\n\x04hmac\x18\n\x20\x02(\x0cR\x04hmac\"E\n\x10PoWResponseUnion\x121\
- \n\thash_cash\x18\n\x20\x01(\x0b2\x14.PoWHashCashResponseR\x08hashCash\"\
- 6\n\x13PoWHashCashResponse\x12\x1f\n\x0bhash_suffix\x18\n\x20\x02(\x0cR\
- \nhashSuffix\"\x87\x01\n\x13CryptoResponseUnion\x120\n\x07shannon\x18\n\
- \x20\x01(\x0b2\x16.CryptoShannonResponseR\x07shannon\x12>\n\rrc4_sha1_hm\
- ac\x18\x14\x20\x01(\x0b2\x1a.CryptoRc4Sha1HmacResponseR\x0brc4Sha1Hmac\"\
- -\n\x15CryptoShannonResponse\x12\x14\n\x05dummy\x18\x01\x20\x01(\x05R\
- \x05dummy\"1\n\x19CryptoRc4Sha1HmacResponse\x12\x14\n\x05dummy\x18\x01\
- \x20\x01(\x05R\x05dummy*\x7f\n\x07Product\x12\x12\n\x0ePRODUCT_CLIENT\
- \x10\0\x12\x16\n\x12PRODUCT_LIBSPOTIFY\x10\x01\x12\x12\n\x0ePRODUCT_MOBI\
- LE\x10\x02\x12\x13\n\x0fPRODUCT_PARTNER\x10\x03\x12\x1f\n\x1bPRODUCT_LIB\
- SPOTIFY_EMBEDDED\x10\x05*A\n\x0cProductFlags\x12\x15\n\x11PRODUCT_FLAG_N\
- ONE\x10\0\x12\x1a\n\x16PRODUCT_FLAG_DEV_BUILD\x10\x01*\xdc\x04\n\x08Plat\
- form\x12\x16\n\x12PLATFORM_WIN32_X86\x10\0\x12\x14\n\x10PLATFORM_OSX_X86\
- \x10\x01\x12\x16\n\x12PLATFORM_LINUX_X86\x10\x02\x12\x17\n\x13PLATFORM_I\
- PHONE_ARM\x10\x03\x12\x14\n\x10PLATFORM_S60_ARM\x10\x04\x12\x14\n\x10PLA\
- TFORM_OSX_PPC\x10\x05\x12\x18\n\x14PLATFORM_ANDROID_ARM\x10\x06\x12\x1b\
- \n\x17PLATFORM_WINDOWS_CE_ARM\x10\x07\x12\x19\n\x15PLATFORM_LINUX_X86_64\
- \x10\x08\x12\x17\n\x13PLATFORM_OSX_X86_64\x10\t\x12\x15\n\x11PLATFORM_PA\
- LM_ARM\x10\n\x12\x15\n\x11PLATFORM_LINUX_SH\x10\x0b\x12\x18\n\x14PLATFOR\
- M_FREEBSD_X86\x10\x0c\x12\x1b\n\x17PLATFORM_FREEBSD_X86_64\x10\r\x12\x1b\
- \n\x17PLATFORM_BLACKBERRY_ARM\x10\x0e\x12\x12\n\x0ePLATFORM_SONOS\x10\
- \x0f\x12\x17\n\x13PLATFORM_LINUX_MIPS\x10\x10\x12\x16\n\x12PLATFORM_LINU\
- X_ARM\x10\x11\x12\x19\n\x15PLATFORM_LOGITECH_ARM\x10\x12\x12\x1b\n\x17PL\
- ATFORM_LINUX_BLACKFIN\x10\x13\x12\x14\n\x10PLATFORM_WP7_ARM\x10\x14\x12\
- \x16\n\x12PLATFORM_ONKYO_ARM\x10\x15\x12\x17\n\x13PLATFORM_QNXNTO_ARM\
- \x10\x16\x12\x14\n\x10PLATFORM_BCO_ARM\x10\x17*A\n\x0bFingerprint\x12\
- \x15\n\x11FINGERPRINT_GRAIN\x10\0\x12\x1b\n\x17FINGERPRINT_HMAC_RIPEMD\
- \x10\x01*G\n\x0bCryptosuite\x12\x18\n\x14CRYPTO_SUITE_SHANNON\x10\0\x12\
- \x1e\n\x1aCRYPTO_SUITE_RC4_SHA1_HMAC\x10\x01*\x1e\n\tPowscheme\x12\x11\n\
- \rPOW_HASH_CASH\x10\0*\x89\x02\n\tErrorCode\x12\x11\n\rProtocolError\x10\
- \0\x12\x10\n\x0cTryAnotherAP\x10\x02\x12\x13\n\x0fBadConnectionId\x10\
- \x05\x12\x15\n\x11TravelRestriction\x10\t\x12\x1a\n\x16PremiumAccountReq\
- uired\x10\x0b\x12\x12\n\x0eBadCredentials\x10\x0c\x12\x1f\n\x1bCouldNotV\
- alidateCredentials\x10\r\x12\x11\n\rAccountExists\x10\x0e\x12\x1d\n\x19E\
- xtraVerificationRequired\x10\x0f\x12\x11\n\rInvalidAppKey\x10\x10\x12\
- \x15\n\x11ApplicationBanned\x10\x11J\xbd6\n\x07\x12\x05\0\0\xe2\x01\x01\
- \n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x0b\x01\n\
- \n\n\x03\x04\0\x01\x12\x03\x02\x08\x13\n\x0b\n\x04\x04\0\x02\0\x12\x03\
- \x03\x04(\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x03\x04\x0c\n\x0c\n\x05\
- \x04\0\x02\0\x06\x12\x03\x03\r\x16\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\
- \x03\x17!\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03$'\n\x0b\n\x04\x04\0\
- \x02\x01\x12\x03\x04\x047\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\x04\x04\
- \x0c\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x04\r\x18\n\x0c\n\x05\x04\0\
- \x02\x01\x01\x12\x03\x04\x19/\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x042\
- 6\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x05\x047\n\x0c\n\x05\x04\0\x02\x02\
- \x04\x12\x03\x05\x04\x0c\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\x05\r\x18\
- \n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x05\x19/\n\x0c\n\x05\x04\0\x02\
- \x02\x03\x12\x03\x0526\n\x0b\n\x04\x04\0\x02\x03\x12\x03\x06\x043\n\x0c\
- \n\x05\x04\0\x02\x03\x04\x12\x03\x06\x04\x0c\n\x0c\n\x05\x04\0\x02\x03\
- \x06\x12\x03\x06\r\x16\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\x06\x17+\n\
- \x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x06.2\n\x0b\n\x04\x04\0\x02\x04\x12\
- \x03\x07\x04=\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x03\x07\x04\x0c\n\x0c\n\
- \x05\x04\0\x02\x04\x06\x12\x03\x07\r\"\n\x0c\n\x05\x04\0\x02\x04\x01\x12\
- \x03\x07#5\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x078<\n\x0b\n\x04\x04\0\
- \x02\x05\x12\x03\x08\x04'\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03\x08\x04\
- \x0c\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03\x08\r\x12\n\x0c\n\x05\x04\0\
- \x02\x05\x01\x12\x03\x08\x13\x1f\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\
- \x08\"&\n\x0b\n\x04\x04\0\x02\x06\x12\x03\t\x04\"\n\x0c\n\x05\x04\0\x02\
- \x06\x04\x12\x03\t\x04\x0c\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03\t\r\x12\
- \n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03\t\x13\x1a\n\x0c\n\x05\x04\0\x02\
- \x06\x03\x12\x03\t\x1d!\n\x0b\n\x04\x04\0\x02\x07\x12\x03\n\x04+\n\x0c\n\
- \x05\x04\0\x02\x07\x04\x12\x03\n\x04\x0c\n\x0c\n\x05\x04\0\x02\x07\x06\
- \x12\x03\n\r\x17\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03\n\x18#\n\x0c\n\
- \x05\x04\0\x02\x07\x03\x12\x03\n&*\n\n\n\x02\x04\x01\x12\x04\x0e\0\x13\
- \x01\n\n\n\x03\x04\x01\x01\x12\x03\x0e\x08\x11\n\x0b\n\x04\x04\x01\x02\0\
- \x12\x03\x0f\x04#\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03\x0f\x04\x0c\n\
- \x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x0f\r\x14\n\x0c\n\x05\x04\x01\x02\0\
- \x01\x12\x03\x0f\x15\x1c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x0f\x1f\"\
- \n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x10\x04/\n\x0c\n\x05\x04\x01\x02\
- \x01\x04\x12\x03\x10\x04\x0c\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\x10\
- \r\x19\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\x10\x1a'\n\x0c\n\x05\x04\
- \x01\x02\x01\x03\x12\x03\x10*.\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x11\
- \x04&\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03\x11\x04\x0c\n\x0c\n\x05\
- \x04\x01\x02\x02\x06\x12\x03\x11\r\x15\n\x0c\n\x05\x04\x01\x02\x02\x01\
- \x12\x03\x11\x16\x1e\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\x11!%\n\x0b\
- \n\x04\x04\x01\x02\x03\x12\x03\x12\x04#\n\x0c\n\x05\x04\x01\x02\x03\x04\
- \x12\x03\x12\x04\x0c\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03\x12\r\x13\n\
- \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\x12\x14\x1b\n\x0c\n\x05\x04\x01\
- \x02\x03\x03\x12\x03\x12\x1e\"\n\n\n\x02\x05\0\x12\x04\x15\0\x1b\x01\n\n\
- \n\x03\x05\0\x01\x12\x03\x15\x05\x0c\n\x0b\n\x04\x05\0\x02\0\x12\x03\x16\
- \x04\x19\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x16\x04\x12\n\x0c\n\x05\x05\
- \0\x02\0\x02\x12\x03\x16\x15\x18\n\x0b\n\x04\x05\0\x02\x01\x12\x03\x17\
- \x04\x1c\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x17\x04\x16\n\x0c\n\x05\
- \x05\0\x02\x01\x02\x12\x03\x17\x18\x1b\n\x0b\n\x04\x05\0\x02\x02\x12\x03\
- \x18\x04\x19\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x18\x04\x12\n\x0c\n\
- \x05\x05\0\x02\x02\x02\x12\x03\x18\x15\x18\n\x0b\n\x04\x05\0\x02\x03\x12\
- \x03\x19\x04\x1a\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03\x19\x04\x13\n\x0c\
- \n\x05\x05\0\x02\x03\x02\x12\x03\x19\x16\x19\n\x0b\n\x04\x05\0\x02\x04\
- \x12\x03\x1a\x04&\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03\x1a\x04\x1f\n\
- \x0c\n\x05\x05\0\x02\x04\x02\x12\x03\x1a\"%\n\n\n\x02\x05\x01\x12\x04\
- \x1d\0\x20\x01\n\n\n\x03\x05\x01\x01\x12\x03\x1d\x05\x11\n\x0b\n\x04\x05\
- \x01\x02\0\x12\x03\x1e\x04\x1c\n\x0c\n\x05\x05\x01\x02\0\x01\x12\x03\x1e\
- \x04\x15\n\x0c\n\x05\x05\x01\x02\0\x02\x12\x03\x1e\x18\x1b\n\x0b\n\x04\
- \x05\x01\x02\x01\x12\x03\x1f\x04!\n\x0c\n\x05\x05\x01\x02\x01\x01\x12\
- \x03\x1f\x04\x1a\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x03\x1f\x1d\x20\n\n\
- \n\x02\x05\x02\x12\x04\"\0;\x01\n\n\n\x03\x05\x02\x01\x12\x03\"\x05\r\n\
- \x0b\n\x04\x05\x02\x02\0\x12\x03#\x04\x1d\n\x0c\n\x05\x05\x02\x02\0\x01\
- \x12\x03#\x04\x16\n\x0c\n\x05\x05\x02\x02\0\x02\x12\x03#\x19\x1c\n\x0b\n\
- \x04\x05\x02\x02\x01\x12\x03$\x04\x1b\n\x0c\n\x05\x05\x02\x02\x01\x01\
- \x12\x03$\x04\x14\n\x0c\n\x05\x05\x02\x02\x01\x02\x12\x03$\x17\x1a\n\x0b\
- \n\x04\x05\x02\x02\x02\x12\x03%\x04\x1d\n\x0c\n\x05\x05\x02\x02\x02\x01\
- \x12\x03%\x04\x16\n\x0c\n\x05\x05\x02\x02\x02\x02\x12\x03%\x19\x1c\n\x0b\
- \n\x04\x05\x02\x02\x03\x12\x03&\x04\x1e\n\x0c\n\x05\x05\x02\x02\x03\x01\
- \x12\x03&\x04\x17\n\x0c\n\x05\x05\x02\x02\x03\x02\x12\x03&\x1a\x1d\n\x0b\
- \n\x04\x05\x02\x02\x04\x12\x03'\x04\x1b\n\x0c\n\x05\x05\x02\x02\x04\x01\
- \x12\x03'\x04\x14\n\x0c\n\x05\x05\x02\x02\x04\x02\x12\x03'\x17\x1a\n\x0b\
- \n\x04\x05\x02\x02\x05\x12\x03(\x04\x1b\n\x0c\n\x05\x05\x02\x02\x05\x01\
- \x12\x03(\x04\x14\n\x0c\n\x05\x05\x02\x02\x05\x02\x12\x03(\x17\x1a\n\x0b\
- \n\x04\x05\x02\x02\x06\x12\x03)\x04\x1f\n\x0c\n\x05\x05\x02\x02\x06\x01\
- \x12\x03)\x04\x18\n\x0c\n\x05\x05\x02\x02\x06\x02\x12\x03)\x1b\x1e\n\x0b\
- \n\x04\x05\x02\x02\x07\x12\x03*\x04\"\n\x0c\n\x05\x05\x02\x02\x07\x01\
- \x12\x03*\x04\x1b\n\x0c\n\x05\x05\x02\x02\x07\x02\x12\x03*\x1e!\n\x0b\n\
- \x04\x05\x02\x02\x08\x12\x03+\x04\x20\n\x0c\n\x05\x05\x02\x02\x08\x01\
- \x12\x03+\x04\x19\n\x0c\n\x05\x05\x02\x02\x08\x02\x12\x03+\x1c\x1f\n\x0b\
- \n\x04\x05\x02\x02\t\x12\x03,\x04\x1e\n\x0c\n\x05\x05\x02\x02\t\x01\x12\
- \x03,\x04\x17\n\x0c\n\x05\x05\x02\x02\t\x02\x12\x03,\x1a\x1d\n\x0b\n\x04\
- \x05\x02\x02\n\x12\x03-\x04\x1c\n\x0c\n\x05\x05\x02\x02\n\x01\x12\x03-\
- \x04\x15\n\x0c\n\x05\x05\x02\x02\n\x02\x12\x03-\x18\x1b\n\x0b\n\x04\x05\
- \x02\x02\x0b\x12\x03.\x04\x1c\n\x0c\n\x05\x05\x02\x02\x0b\x01\x12\x03.\
- \x04\x15\n\x0c\n\x05\x05\x02\x02\x0b\x02\x12\x03.\x18\x1b\n\x0b\n\x04\
- \x05\x02\x02\x0c\x12\x03/\x04\x1f\n\x0c\n\x05\x05\x02\x02\x0c\x01\x12\
- \x03/\x04\x18\n\x0c\n\x05\x05\x02\x02\x0c\x02\x12\x03/\x1b\x1e\n\x0b\n\
- \x04\x05\x02\x02\r\x12\x030\x04\"\n\x0c\n\x05\x05\x02\x02\r\x01\x12\x030\
- \x04\x1b\n\x0c\n\x05\x05\x02\x02\r\x02\x12\x030\x1e!\n\x0b\n\x04\x05\x02\
- \x02\x0e\x12\x031\x04\"\n\x0c\n\x05\x05\x02\x02\x0e\x01\x12\x031\x04\x1b\
- \n\x0c\n\x05\x05\x02\x02\x0e\x02\x12\x031\x1e!\n\x0b\n\x04\x05\x02\x02\
- \x0f\x12\x032\x04\x19\n\x0c\n\x05\x05\x02\x02\x0f\x01\x12\x032\x04\x12\n\
- \x0c\n\x05\x05\x02\x02\x0f\x02\x12\x032\x15\x18\n\x0b\n\x04\x05\x02\x02\
- \x10\x12\x033\x04\x1f\n\x0c\n\x05\x05\x02\x02\x10\x01\x12\x033\x04\x17\n\
- \x0c\n\x05\x05\x02\x02\x10\x02\x12\x033\x1a\x1e\n\x0b\n\x04\x05\x02\x02\
- \x11\x12\x034\x04\x1e\n\x0c\n\x05\x05\x02\x02\x11\x01\x12\x034\x04\x16\n\
- \x0c\n\x05\x05\x02\x02\x11\x02\x12\x034\x19\x1d\n\x0b\n\x04\x05\x02\x02\
- \x12\x12\x035\x04!\n\x0c\n\x05\x05\x02\x02\x12\x01\x12\x035\x04\x19\n\
- \x0c\n\x05\x05\x02\x02\x12\x02\x12\x035\x1c\x20\n\x0b\n\x04\x05\x02\x02\
- \x13\x12\x036\x04#\n\x0c\n\x05\x05\x02\x02\x13\x01\x12\x036\x04\x1b\n\
- \x0c\n\x05\x05\x02\x02\x13\x02\x12\x036\x1e\"\n\x0b\n\x04\x05\x02\x02\
- \x14\x12\x037\x04\x1c\n\x0c\n\x05\x05\x02\x02\x14\x01\x12\x037\x04\x14\n\
- \x0c\n\x05\x05\x02\x02\x14\x02\x12\x037\x17\x1b\n\x0b\n\x04\x05\x02\x02\
- \x15\x12\x038\x04\x1e\n\x0c\n\x05\x05\x02\x02\x15\x01\x12\x038\x04\x16\n\
- \x0c\n\x05\x05\x02\x02\x15\x02\x12\x038\x19\x1d\n\x0b\n\x04\x05\x02\x02\
- \x16\x12\x039\x04\x1f\n\x0c\n\x05\x05\x02\x02\x16\x01\x12\x039\x04\x17\n\
- \x0c\n\x05\x05\x02\x02\x16\x02\x12\x039\x1a\x1e\n\x0b\n\x04\x05\x02\x02\
- \x17\x12\x03:\x04\x1c\n\x0c\n\x05\x05\x02\x02\x17\x01\x12\x03:\x04\x14\n\
- \x0c\n\x05\x05\x02\x02\x17\x02\x12\x03:\x17\x1b\n\n\n\x02\x05\x03\x12\
- \x04=\0@\x01\n\n\n\x03\x05\x03\x01\x12\x03=\x05\x10\n\x0b\n\x04\x05\x03\
- \x02\0\x12\x03>\x04\x1c\n\x0c\n\x05\x05\x03\x02\0\x01\x12\x03>\x04\x15\n\
- \x0c\n\x05\x05\x03\x02\0\x02\x12\x03>\x18\x1b\n\x0b\n\x04\x05\x03\x02\
- \x01\x12\x03?\x04\"\n\x0c\n\x05\x05\x03\x02\x01\x01\x12\x03?\x04\x1b\n\
- \x0c\n\x05\x05\x03\x02\x01\x02\x12\x03?\x1e!\n\n\n\x02\x05\x04\x12\x04B\
- \0E\x01\n\n\n\x03\x05\x04\x01\x12\x03B\x05\x10\n\x0b\n\x04\x05\x04\x02\0\
- \x12\x03C\x04\x1f\n\x0c\n\x05\x05\x04\x02\0\x01\x12\x03C\x04\x18\n\x0c\n\
- \x05\x05\x04\x02\0\x02\x12\x03C\x1b\x1e\n\x0b\n\x04\x05\x04\x02\x01\x12\
- \x03D\x04%\n\x0c\n\x05\x05\x04\x02\x01\x01\x12\x03D\x04\x1e\n\x0c\n\x05\
- \x05\x04\x02\x01\x02\x12\x03D!$\n\n\n\x02\x05\x05\x12\x04G\0I\x01\n\n\n\
- \x03\x05\x05\x01\x12\x03G\x05\x0e\n\x0b\n\x04\x05\x05\x02\0\x12\x03H\x04\
- \x18\n\x0c\n\x05\x05\x05\x02\0\x01\x12\x03H\x04\x11\n\x0c\n\x05\x05\x05\
- \x02\0\x02\x12\x03H\x14\x17\n\n\n\x02\x04\x02\x12\x04L\0N\x01\n\n\n\x03\
- \x04\x02\x01\x12\x03L\x08\x1d\n\x0b\n\x04\x04\x02\x02\0\x12\x03M\x04@\n\
- \x0c\n\x05\x04\x02\x02\0\x04\x12\x03M\x04\x0c\n\x0c\n\x05\x04\x02\x02\0\
- \x06\x12\x03M\r*\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03M+9\n\x0c\n\x05\
- \x04\x02\x02\0\x03\x12\x03M<?\n\n\n\x02\x04\x03\x12\x04Q\0T\x01\n\n\n\
- \x03\x04\x03\x01\x12\x03Q\x08%\n\x0b\n\x04\x04\x03\x02\0\x12\x03R\x04\
- \x1c\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03R\x04\x0c\n\x0c\n\x05\x04\x03\
- \x02\0\x05\x12\x03R\r\x12\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03R\x13\x15\
- \n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03R\x18\x1b\n\x0b\n\x04\x04\x03\x02\
- \x01\x12\x03S\x04-\n\x0c\n\x05\x04\x03\x02\x01\x04\x12\x03S\x04\x0c\n\
- \x0c\n\x05\x04\x03\x02\x01\x05\x12\x03S\r\x13\n\x0c\n\x05\x04\x03\x02\
- \x01\x01\x12\x03S\x14%\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03S(,\n\n\n\
- \x02\x04\x04\x12\x04W\0Z\x01\n\n\n\x03\x04\x04\x01\x12\x03W\x08\x12\n\
- \x0b\n\x04\x04\x04\x02\0\x12\x03X\x04$\n\x0c\n\x05\x04\x04\x02\0\x04\x12\
- \x03X\x04\x0c\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03X\r\x11\n\x0c\n\x05\
- \x04\x04\x02\0\x01\x12\x03X\x12\x1d\n\x0c\n\x05\x04\x04\x02\0\x03\x12\
- \x03X\x20#\n\x0b\n\x04\x04\x04\x02\x01\x12\x03Y\x04)\n\x0c\n\x05\x04\x04\
- \x02\x01\x04\x12\x03Y\x04\x0c\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03Y\r\
- \x11\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03Y\x12\"\n\x0c\n\x05\x04\x04\
- \x02\x01\x03\x12\x03Y%(\n\n\n\x02\x04\x05\x12\x04]\0a\x01\n\n\n\x03\x04\
- \x05\x01\x12\x03]\x08\x19\n\x0b\n\x04\x04\x05\x02\0\x12\x03^\x04)\n\x0c\
- \n\x05\x04\x05\x02\0\x04\x12\x03^\x04\x0c\n\x0c\n\x05\x04\x05\x02\0\x06\
- \x12\x03^\r\x18\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03^\x19\"\n\x0c\n\x05\
- \x04\x05\x02\0\x03\x12\x03^%(\n\x0b\n\x04\x04\x05\x02\x01\x12\x03_\x043\
- \n\x0c\n\x05\x04\x05\x02\x01\x04\x12\x03_\x04\x0c\n\x0c\n\x05\x04\x05\
- \x02\x01\x06\x12\x03_\r#\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03_$+\n\
- \x0c\n\x05\x04\x05\x02\x01\x03\x12\x03_.2\n\x0b\n\x04\x04\x05\x02\x02\
- \x12\x03`\x04/\n\x0c\n\x05\x04\x05\x02\x02\x04\x12\x03`\x04\x0c\n\x0c\n\
- \x05\x04\x05\x02\x02\x06\x12\x03`\r\x1a\n\x0c\n\x05\x04\x05\x02\x02\x01\
- \x12\x03`\x1b'\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\x03`*.\n\n\n\x02\x04\
- \x06\x12\x04c\0j\x01\n\n\n\x03\x04\x06\x01\x12\x03c\x08\x13\n\x0b\n\x04\
- \x04\x06\x02\0\x12\x03d\x04D\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x03d\x04\
- \x0c\n\x0c\n\x05\x04\x06\x02\0\x06\x12\x03d\r&\n\x0c\n\x05\x04\x06\x02\0\
- \x01\x12\x03d'=\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03d@C\n\x0b\n\x04\x04\
- \x06\x02\x01\x12\x03e\x04D\n\x0c\n\x05\x04\x06\x02\x01\x04\x12\x03e\x04\
- \x0c\n\x0c\n\x05\x04\x06\x02\x01\x06\x12\x03e\r&\n\x0c\n\x05\x04\x06\x02\
- \x01\x01\x12\x03e'<\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x03e?C\n\x0b\n\
- \x04\x04\x06\x02\x02\x12\x03f\x044\n\x0c\n\x05\x04\x06\x02\x02\x04\x12\
- \x03f\x04\x0c\n\x0c\n\x05\x04\x06\x02\x02\x06\x12\x03f\r\x1e\n\x0c\n\x05\
- \x04\x06\x02\x02\x01\x12\x03f\x1f,\n\x0c\n\x05\x04\x06\x02\x02\x03\x12\
- \x03f/3\n\x0b\n\x04\x04\x06\x02\x03\x12\x03g\x04:\n\x0c\n\x05\x04\x06\
- \x02\x03\x04\x12\x03g\x04\x0c\n\x0c\n\x05\x04\x06\x02\x03\x06\x12\x03g\r\
- !\n\x0c\n\x05\x04\x06\x02\x03\x01\x12\x03g\"2\n\x0c\n\x05\x04\x06\x02\
- \x03\x03\x12\x03g59\n\x0b\n\x04\x04\x06\x02\x04\x12\x03h\x04'\n\x0c\n\
- \x05\x04\x06\x02\x04\x04\x12\x03h\x04\x0c\n\x0c\n\x05\x04\x06\x02\x04\
- \x05\x12\x03h\r\x12\n\x0c\n\x05\x04\x06\x02\x04\x01\x12\x03h\x13\x1f\n\
- \x0c\n\x05\x04\x06\x02\x04\x03\x12\x03h\"&\n\x0b\n\x04\x04\x06\x02\x05\
- \x12\x03i\x04\"\n\x0c\n\x05\x04\x06\x02\x05\x04\x12\x03i\x04\x0c\n\x0c\n\
- \x05\x04\x06\x02\x05\x05\x12\x03i\r\x12\n\x0c\n\x05\x04\x06\x02\x05\x01\
- \x12\x03i\x13\x1a\n\x0c\n\x05\x04\x06\x02\x05\x03\x12\x03i\x1d!\n\n\n\
- \x02\x04\x07\x12\x04l\0n\x01\n\n\n\x03\x04\x07\x01\x12\x03l\x08!\n\x0b\n\
- \x04\x04\x07\x02\0\x12\x03m\x04D\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x03m\
- \x04\x0c\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x03m\r.\n\x0c\n\x05\x04\x07\
- \x02\0\x01\x12\x03m/=\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03m@C\n\n\n\x02\
- \x04\x08\x12\x04p\0t\x01\n\n\n\x03\x04\x08\x01\x12\x03p\x08)\n\x0b\n\x04\
- \x04\x08\x02\0\x12\x03q\x04\x1c\n\x0c\n\x05\x04\x08\x02\0\x04\x12\x03q\
- \x04\x0c\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03q\r\x12\n\x0c\n\x05\x04\
- \x08\x02\0\x01\x12\x03q\x13\x15\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03q\
- \x18\x1b\n\x0b\n\x04\x04\x08\x02\x01\x12\x03r\x04/\n\x0c\n\x05\x04\x08\
- \x02\x01\x04\x12\x03r\x04\x0c\n\x0c\n\x05\x04\x08\x02\x01\x05\x12\x03r\r\
- \x12\n\x0c\n\x05\x04\x08\x02\x01\x01\x12\x03r\x13'\n\x0c\n\x05\x04\x08\
- \x02\x01\x03\x12\x03r*.\n\x0b\n\x04\x04\x08\x02\x02\x12\x03s\x04'\n\x0c\
- \n\x05\x04\x08\x02\x02\x04\x12\x03s\x04\x0c\n\x0c\n\x05\x04\x08\x02\x02\
- \x05\x12\x03s\r\x12\n\x0c\n\x05\x04\x08\x02\x02\x01\x12\x03s\x13\x1f\n\
- \x0c\n\x05\x04\x08\x02\x02\x03\x12\x03s\"&\n\n\n\x02\x04\t\x12\x04v\0y\
- \x01\n\n\n\x03\x04\t\x01\x12\x03v\x08!\n\x0b\n\x04\x04\t\x02\0\x12\x03w\
- \x043\n\x0c\n\x05\x04\t\x02\0\x04\x12\x03w\x04\x0c\n\x0c\n\x05\x04\t\x02\
- \0\x06\x12\x03w\r&\n\x0c\n\x05\x04\t\x02\0\x01\x12\x03w',\n\x0c\n\x05\
- \x04\t\x02\0\x03\x12\x03w/2\n\x0b\n\x04\x04\t\x02\x01\x12\x03x\x04?\n\
- \x0c\n\x05\x04\t\x02\x01\x04\x12\x03x\x04\x0c\n\x0c\n\x05\x04\t\x02\x01\
- \x06\x12\x03x\r+\n\x0c\n\x05\x04\t\x02\x01\x01\x12\x03x,7\n\x0c\n\x05\
- \x04\t\x02\x01\x03\x12\x03x:>\n\n\n\x02\x04\n\x12\x04|\0~\x01\n\n\n\x03\
- \x04\n\x01\x12\x03|\x08!\n\x0b\n\x04\x04\n\x02\0\x12\x03}\x04\x1d\n\x0c\
- \n\x05\x04\n\x02\0\x04\x12\x03}\x04\x0c\n\x0c\n\x05\x04\n\x02\0\x05\x12\
- \x03}\r\x12\n\x0c\n\x05\x04\n\x02\0\x01\x12\x03}\x13\x16\n\x0c\n\x05\x04\
- \n\x02\0\x03\x12\x03}\x19\x1c\n\x0c\n\x02\x04\x0b\x12\x06\x81\x01\0\x83\
- \x01\x01\n\x0b\n\x03\x04\x0b\x01\x12\x04\x81\x01\x08&\n\x0c\n\x04\x04\
- \x0b\x02\0\x12\x04\x82\x01\x04#\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\x82\
- \x01\x04\x0c\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x82\x01\r\x12\n\r\n\x05\
- \x04\x0b\x02\0\x01\x12\x04\x82\x01\x13\x1c\n\r\n\x05\x04\x0b\x02\0\x03\
- \x12\x04\x82\x01\x1f\"\n\x0c\n\x02\x04\x0c\x12\x06\x86\x01\0\x88\x01\x01\
- \n\x0b\n\x03\x04\x0c\x01\x12\x04\x86\x01\x08\x19\n\x0c\n\x04\x04\x0c\x02\
- \0\x12\x04\x87\x01\x042\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\x87\x01\x04\
- \x0c\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\x87\x01\r!\n\r\n\x05\x04\x0c\
- \x02\0\x01\x12\x04\x87\x01\"+\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x87\
- \x01.1\n\x0c\n\x02\x04\r\x12\x06\x8a\x01\0\x8e\x01\x01\n\x0b\n\x03\x04\r\
- \x01\x12\x04\x8a\x01\x08\x1c\n\x0c\n\x04\x04\r\x02\0\x12\x04\x8b\x01\x04\
- \x20\n\r\n\x05\x04\r\x02\0\x04\x12\x04\x8b\x01\x04\x0c\n\r\n\x05\x04\r\
- \x02\0\x05\x12\x04\x8b\x01\r\x12\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x8b\
- \x01\x13\x19\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x8b\x01\x1c\x1f\n\x0c\n\
- \x04\x04\r\x02\x01\x12\x04\x8c\x01\x04!\n\r\n\x05\x04\r\x02\x01\x04\x12\
- \x04\x8c\x01\x04\x0c\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\x8c\x01\r\x12\n\
- \r\n\x05\x04\r\x02\x01\x01\x12\x04\x8c\x01\x13\x19\n\r\n\x05\x04\r\x02\
- \x01\x03\x12\x04\x8c\x01\x1c\x20\n\x0c\n\x04\x04\r\x02\x02\x12\x04\x8d\
- \x01\x04!\n\r\n\x05\x04\r\x02\x02\x04\x12\x04\x8d\x01\x04\x0c\n\r\n\x05\
- \x04\r\x02\x02\x05\x12\x04\x8d\x01\r\x12\n\r\n\x05\x04\r\x02\x02\x01\x12\
- \x04\x8d\x01\x13\x19\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\x8d\x01\x1c\x20\
- \n\x0c\n\x02\x04\x0e\x12\x06\x91\x01\0\x94\x01\x01\n\x0b\n\x03\x04\x0e\
- \x01\x12\x04\x91\x01\x08\x1c\n\x0c\n\x04\x04\x0e\x02\0\x12\x04\x92\x01\
- \x042\n\r\n\x05\x04\x0e\x02\0\x04\x12\x04\x92\x01\x04\x0c\n\r\n\x05\x04\
- \x0e\x02\0\x06\x12\x04\x92\x01\r#\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\
- \x92\x01$+\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x92\x01.1\n\x0c\n\x04\x04\
- \x0e\x02\x01\x12\x04\x93\x01\x04=\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\
- \x93\x01\x04\x0c\n\r\n\x05\x04\x0e\x02\x01\x06\x12\x04\x93\x01\r'\n\r\n\
- \x05\x04\x0e\x02\x01\x01\x12\x04\x93\x01(5\n\r\n\x05\x04\x0e\x02\x01\x03\
- \x12\x04\x93\x018<\n\x0c\n\x02\x04\x0f\x12\x06\x97\x01\0\x98\x01\x01\n\
- \x0b\n\x03\x04\x0f\x01\x12\x04\x97\x01\x08\x1e\n\x0c\n\x02\x04\x10\x12\
- \x06\x9b\x01\0\x9c\x01\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\x9b\x01\x08\"\
- \n\x0c\n\x02\x04\x11\x12\x06\x9f\x01\0\xa3\x01\x01\n\x0b\n\x03\x04\x11\
- \x01\x12\x04\x9f\x01\x08\x1e\n\x0c\n\x04\x04\x11\x02\0\x12\x04\xa0\x01\
- \x04-\n\r\n\x05\x04\x11\x02\0\x04\x12\x04\xa0\x01\x04\x0c\n\r\n\x05\x04\
- \x11\x02\0\x05\x12\x04\xa0\x01\r\x12\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\
- \xa0\x01\x13&\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xa0\x01),\n\x0c\n\x04\
- \x04\x11\x02\x01\x12\x04\xa1\x01\x04$\n\r\n\x05\x04\x11\x02\x01\x04\x12\
- \x04\xa1\x01\x04\x0c\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xa1\x01\r\x12\
- \n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xa1\x01\x13\x1c\n\r\n\x05\x04\x11\
- \x02\x01\x03\x12\x04\xa1\x01\x1f#\n\x0c\n\x04\x04\x11\x02\x02\x12\x04\
- \xa2\x01\x04'\n\r\n\x05\x04\x11\x02\x02\x04\x12\x04\xa2\x01\x04\x0c\n\r\
- \n\x05\x04\x11\x02\x02\x05\x12\x04\xa2\x01\r\x13\n\r\n\x05\x04\x11\x02\
- \x02\x01\x12\x04\xa2\x01\x14\x1f\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\
- \xa2\x01\"&\n\x0c\n\x02\x04\x12\x12\x06\xa5\x01\0\xaa\x01\x01\n\x0b\n\
- \x03\x04\x12\x01\x12\x04\xa5\x01\x08\x15\n\x0c\n\x04\x04\x12\x02\0\x12\
- \x04\xa6\x01\x04(\n\r\n\x05\x04\x12\x02\0\x04\x12\x04\xa6\x01\x04\x0c\n\
- \r\n\x05\x04\x12\x02\0\x06\x12\x04\xa6\x01\r\x16\n\r\n\x05\x04\x12\x02\0\
- \x01\x12\x04\xa6\x01\x17!\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xa6\x01$'\
- \n\x0c\n\x04\x04\x12\x02\x01\x12\x04\xa7\x01\x04&\n\r\n\x05\x04\x12\x02\
- \x01\x04\x12\x04\xa7\x01\x04\x0c\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\
- \xa7\x01\r\x12\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xa7\x01\x13\x1e\n\r\
- \n\x05\x04\x12\x02\x01\x03\x12\x04\xa7\x01!%\n\x0c\n\x04\x04\x12\x02\x02\
- \x12\x04\xa8\x01\x04!\n\r\n\x05\x04\x12\x02\x02\x04\x12\x04\xa8\x01\x04\
- \x0c\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\xa8\x01\r\x12\n\r\n\x05\x04\
- \x12\x02\x02\x01\x12\x04\xa8\x01\x13\x19\n\r\n\x05\x04\x12\x02\x02\x03\
- \x12\x04\xa8\x01\x1c\x20\n\x0c\n\x04\x04\x12\x02\x03\x12\x04\xa9\x01\x04\
- -\n\r\n\x05\x04\x12\x02\x03\x04\x12\x04\xa9\x01\x04\x0c\n\r\n\x05\x04\
- \x12\x02\x03\x05\x12\x04\xa9\x01\r\x13\n\r\n\x05\x04\x12\x02\x03\x01\x12\
- \x04\xa9\x01\x14%\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xa9\x01(,\n\x0c\
- \n\x02\x05\x06\x12\x06\xac\x01\0\xb8\x01\x01\n\x0b\n\x03\x05\x06\x01\x12\
- \x04\xac\x01\x05\x0e\n\x0c\n\x04\x05\x06\x02\0\x12\x04\xad\x01\x04\x18\n\
- \r\n\x05\x05\x06\x02\0\x01\x12\x04\xad\x01\x04\x11\n\r\n\x05\x05\x06\x02\
- \0\x02\x12\x04\xad\x01\x14\x17\n\x0c\n\x04\x05\x06\x02\x01\x12\x04\xae\
- \x01\x04\x17\n\r\n\x05\x05\x06\x02\x01\x01\x12\x04\xae\x01\x04\x10\n\r\n\
- \x05\x05\x06\x02\x01\x02\x12\x04\xae\x01\x13\x16\n\x0c\n\x04\x05\x06\x02\
- \x02\x12\x04\xaf\x01\x04\x1a\n\r\n\x05\x05\x06\x02\x02\x01\x12\x04\xaf\
- \x01\x04\x13\n\r\n\x05\x05\x06\x02\x02\x02\x12\x04\xaf\x01\x16\x19\n\x0c\
- \n\x04\x05\x06\x02\x03\x12\x04\xb0\x01\x04\x1c\n\r\n\x05\x05\x06\x02\x03\
- \x01\x12\x04\xb0\x01\x04\x15\n\r\n\x05\x05\x06\x02\x03\x02\x12\x04\xb0\
- \x01\x18\x1b\n\x0c\n\x04\x05\x06\x02\x04\x12\x04\xb1\x01\x04!\n\r\n\x05\
- \x05\x06\x02\x04\x01\x12\x04\xb1\x01\x04\x1a\n\r\n\x05\x05\x06\x02\x04\
- \x02\x12\x04\xb1\x01\x1d\x20\n\x0c\n\x04\x05\x06\x02\x05\x12\x04\xb2\x01\
- \x04\x19\n\r\n\x05\x05\x06\x02\x05\x01\x12\x04\xb2\x01\x04\x12\n\r\n\x05\
- \x05\x06\x02\x05\x02\x12\x04\xb2\x01\x15\x18\n\x0c\n\x04\x05\x06\x02\x06\
- \x12\x04\xb3\x01\x04&\n\r\n\x05\x05\x06\x02\x06\x01\x12\x04\xb3\x01\x04\
- \x1f\n\r\n\x05\x05\x06\x02\x06\x02\x12\x04\xb3\x01\"%\n\x0c\n\x04\x05\
- \x06\x02\x07\x12\x04\xb4\x01\x04\x18\n\r\n\x05\x05\x06\x02\x07\x01\x12\
- \x04\xb4\x01\x04\x11\n\r\n\x05\x05\x06\x02\x07\x02\x12\x04\xb4\x01\x14\
- \x17\n\x0c\n\x04\x05\x06\x02\x08\x12\x04\xb5\x01\x04$\n\r\n\x05\x05\x06\
- \x02\x08\x01\x12\x04\xb5\x01\x04\x1d\n\r\n\x05\x05\x06\x02\x08\x02\x12\
- \x04\xb5\x01\x20#\n\x0c\n\x04\x05\x06\x02\t\x12\x04\xb6\x01\x04\x19\n\r\
- \n\x05\x05\x06\x02\t\x01\x12\x04\xb6\x01\x04\x11\n\r\n\x05\x05\x06\x02\t\
- \x02\x12\x04\xb6\x01\x14\x18\n\x0c\n\x04\x05\x06\x02\n\x12\x04\xb7\x01\
- \x04\x1d\n\r\n\x05\x05\x06\x02\n\x01\x12\x04\xb7\x01\x04\x15\n\r\n\x05\
- \x05\x06\x02\n\x02\x12\x04\xb7\x01\x18\x1c\n\x0c\n\x02\x04\x13\x12\x06\
- \xba\x01\0\xbe\x01\x01\n\x0b\n\x03\x04\x13\x01\x12\x04\xba\x01\x08\x1f\n\
- \x0c\n\x04\x04\x13\x02\0\x12\x04\xbb\x01\x04B\n\r\n\x05\x04\x13\x02\0\
- \x04\x12\x04\xbb\x01\x04\x0c\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\xbb\x01\
- \r%\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xbb\x01&;\n\r\n\x05\x04\x13\x02\
- \0\x03\x12\x04\xbb\x01>A\n\x0c\n\x04\x04\x13\x02\x01\x12\x04\xbc\x01\x04\
- 2\n\r\n\x05\x04\x13\x02\x01\x04\x12\x04\xbc\x01\x04\x0c\n\r\n\x05\x04\
- \x13\x02\x01\x06\x12\x04\xbc\x01\r\x1d\n\r\n\x05\x04\x13\x02\x01\x01\x12\
- \x04\xbc\x01\x1e*\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xbc\x01-1\n\x0c\
- \n\x04\x04\x13\x02\x02\x12\x04\xbd\x01\x048\n\r\n\x05\x04\x13\x02\x02\
- \x04\x12\x04\xbd\x01\x04\x0c\n\r\n\x05\x04\x13\x02\x02\x06\x12\x04\xbd\
- \x01\r\x20\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xbd\x01!0\n\r\n\x05\x04\
- \x13\x02\x02\x03\x12\x04\xbd\x0137\n\x0c\n\x02\x04\x14\x12\x06\xc1\x01\0\
- \xc3\x01\x01\n\x0b\n\x03\x04\x14\x01\x12\x04\xc1\x01\x08\x20\n\x0c\n\x04\
- \x04\x14\x02\0\x12\x04\xc2\x01\x04C\n\r\n\x05\x04\x14\x02\0\x04\x12\x04\
- \xc2\x01\x04\x0c\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xc2\x01\r-\n\r\n\
- \x05\x04\x14\x02\0\x01\x12\x04\xc2\x01.<\n\r\n\x05\x04\x14\x02\0\x03\x12\
- \x04\xc2\x01?B\n\x0c\n\x02\x04\x15\x12\x06\xc6\x01\0\xc8\x01\x01\n\x0b\n\
- \x03\x04\x15\x01\x12\x04\xc6\x01\x08(\n\x0c\n\x04\x04\x15\x02\0\x12\x04\
- \xc7\x01\x04\x1e\n\r\n\x05\x04\x15\x02\0\x04\x12\x04\xc7\x01\x04\x0c\n\r\
- \n\x05\x04\x15\x02\0\x05\x12\x04\xc7\x01\r\x12\n\r\n\x05\x04\x15\x02\0\
- \x01\x12\x04\xc7\x01\x13\x17\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xc7\x01\
- \x1a\x1d\n\x0c\n\x02\x04\x16\x12\x06\xcb\x01\0\xcd\x01\x01\n\x0b\n\x03\
- \x04\x16\x01\x12\x04\xcb\x01\x08\x18\n\x0c\n\x04\x04\x16\x02\0\x12\x04\
- \xcc\x01\x041\n\r\n\x05\x04\x16\x02\0\x04\x12\x04\xcc\x01\x04\x0c\n\r\n\
- \x05\x04\x16\x02\0\x06\x12\x04\xcc\x01\r\x20\n\r\n\x05\x04\x16\x02\0\x01\
- \x12\x04\xcc\x01!*\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\xcc\x01-0\n\x0c\n\
- \x02\x04\x17\x12\x06\xd0\x01\0\xd2\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\
- \x04\xd0\x01\x08\x1b\n\x0c\n\x04\x04\x17\x02\0\x12\x04\xd1\x01\x04%\n\r\
- \n\x05\x04\x17\x02\0\x04\x12\x04\xd1\x01\x04\x0c\n\r\n\x05\x04\x17\x02\0\
- \x05\x12\x04\xd1\x01\r\x12\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xd1\x01\
- \x13\x1e\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xd1\x01!$\n\x0c\n\x02\x04\
- \x18\x12\x06\xd5\x01\0\xd8\x01\x01\n\x0b\n\x03\x04\x18\x01\x12\x04\xd5\
- \x01\x08\x1b\n\x0c\n\x04\x04\x18\x02\0\x12\x04\xd6\x01\x041\n\r\n\x05\
- \x04\x18\x02\0\x04\x12\x04\xd6\x01\x04\x0c\n\r\n\x05\x04\x18\x02\0\x06\
- \x12\x04\xd6\x01\r\"\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\xd6\x01#*\n\r\n\
- \x05\x04\x18\x02\0\x03\x12\x04\xd6\x01-0\n\x0c\n\x04\x04\x18\x02\x01\x12\
- \x04\xd7\x01\x04<\n\r\n\x05\x04\x18\x02\x01\x04\x12\x04\xd7\x01\x04\x0c\
- \n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\xd7\x01\r&\n\r\n\x05\x04\x18\x02\
- \x01\x01\x12\x04\xd7\x01'4\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xd7\x01\
- 7;\n\x0c\n\x02\x04\x19\x12\x06\xdb\x01\0\xdd\x01\x01\n\x0b\n\x03\x04\x19\
- \x01\x12\x04\xdb\x01\x08\x1d\n\x0c\n\x04\x04\x19\x02\0\x12\x04\xdc\x01\
- \x04\x1f\n\r\n\x05\x04\x19\x02\0\x04\x12\x04\xdc\x01\x04\x0c\n\r\n\x05\
- \x04\x19\x02\0\x05\x12\x04\xdc\x01\r\x12\n\r\n\x05\x04\x19\x02\0\x01\x12\
- \x04\xdc\x01\x13\x18\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xdc\x01\x1b\x1e\
- \n\x0c\n\x02\x04\x1a\x12\x06\xe0\x01\0\xe2\x01\x01\n\x0b\n\x03\x04\x1a\
- \x01\x12\x04\xe0\x01\x08!\n\x0c\n\x04\x04\x1a\x02\0\x12\x04\xe1\x01\x04\
- \x1f\n\r\n\x05\x04\x1a\x02\0\x04\x12\x04\xe1\x01\x04\x0c\n\r\n\x05\x04\
- \x1a\x02\0\x05\x12\x04\xe1\x01\r\x12\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\
- \xe1\x01\x13\x18\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xe1\x01\x1b\x1e\
- ";
- static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
- };
- fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
- ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
- }
- pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
- unsafe {
- file_descriptor_proto_lazy.get(|| {
- parse_descriptor_proto()
- })
- }
- }
|