authentication.rs 212 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881
  1. // This file is generated. Do not edit
  2. // @generated
  3. // https://github.com/Manishearth/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy)]
  6. #![cfg_attr(rustfmt, rustfmt_skip)]
  7. #![allow(box_pointers)]
  8. #![allow(dead_code)]
  9. #![allow(missing_docs)]
  10. #![allow(non_camel_case_types)]
  11. #![allow(non_snake_case)]
  12. #![allow(non_upper_case_globals)]
  13. #![allow(trivial_casts)]
  14. #![allow(unsafe_code)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. use protobuf::Message as Message_imported_for_functions;
  18. use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
  19. #[derive(PartialEq,Clone,Default)]
  20. pub struct ClientResponseEncrypted {
  21. // message fields
  22. login_credentials: ::protobuf::SingularPtrField<LoginCredentials>,
  23. account_creation: ::std::option::Option<AccountCreation>,
  24. fingerprint_response: ::protobuf::SingularPtrField<FingerprintResponseUnion>,
  25. peer_ticket: ::protobuf::SingularPtrField<PeerTicketUnion>,
  26. system_info: ::protobuf::SingularPtrField<SystemInfo>,
  27. platform_model: ::protobuf::SingularField<::std::string::String>,
  28. version_string: ::protobuf::SingularField<::std::string::String>,
  29. appkey: ::protobuf::SingularPtrField<LibspotifyAppKey>,
  30. client_info: ::protobuf::SingularPtrField<ClientInfo>,
  31. // special fields
  32. unknown_fields: ::protobuf::UnknownFields,
  33. cached_size: ::protobuf::CachedSize,
  34. }
  35. // see codegen.rs for the explanation why impl Sync explicitly
  36. unsafe impl ::std::marker::Sync for ClientResponseEncrypted {}
  37. impl ClientResponseEncrypted {
  38. pub fn new() -> ClientResponseEncrypted {
  39. ::std::default::Default::default()
  40. }
  41. pub fn default_instance() -> &'static ClientResponseEncrypted {
  42. static mut instance: ::protobuf::lazy::Lazy<ClientResponseEncrypted> = ::protobuf::lazy::Lazy {
  43. lock: ::protobuf::lazy::ONCE_INIT,
  44. ptr: 0 as *const ClientResponseEncrypted,
  45. };
  46. unsafe {
  47. instance.get(ClientResponseEncrypted::new)
  48. }
  49. }
  50. // required .LoginCredentials login_credentials = 10;
  51. pub fn clear_login_credentials(&mut self) {
  52. self.login_credentials.clear();
  53. }
  54. pub fn has_login_credentials(&self) -> bool {
  55. self.login_credentials.is_some()
  56. }
  57. // Param is passed by value, moved
  58. pub fn set_login_credentials(&mut self, v: LoginCredentials) {
  59. self.login_credentials = ::protobuf::SingularPtrField::some(v);
  60. }
  61. // Mutable pointer to the field.
  62. // If field is not initialized, it is initialized with default value first.
  63. pub fn mut_login_credentials(&mut self) -> &mut LoginCredentials {
  64. if self.login_credentials.is_none() {
  65. self.login_credentials.set_default();
  66. }
  67. self.login_credentials.as_mut().unwrap()
  68. }
  69. // Take field
  70. pub fn take_login_credentials(&mut self) -> LoginCredentials {
  71. self.login_credentials.take().unwrap_or_else(|| LoginCredentials::new())
  72. }
  73. pub fn get_login_credentials(&self) -> &LoginCredentials {
  74. self.login_credentials.as_ref().unwrap_or_else(|| LoginCredentials::default_instance())
  75. }
  76. fn get_login_credentials_for_reflect(&self) -> &::protobuf::SingularPtrField<LoginCredentials> {
  77. &self.login_credentials
  78. }
  79. fn mut_login_credentials_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LoginCredentials> {
  80. &mut self.login_credentials
  81. }
  82. // optional .AccountCreation account_creation = 20;
  83. pub fn clear_account_creation(&mut self) {
  84. self.account_creation = ::std::option::Option::None;
  85. }
  86. pub fn has_account_creation(&self) -> bool {
  87. self.account_creation.is_some()
  88. }
  89. // Param is passed by value, moved
  90. pub fn set_account_creation(&mut self, v: AccountCreation) {
  91. self.account_creation = ::std::option::Option::Some(v);
  92. }
  93. pub fn get_account_creation(&self) -> AccountCreation {
  94. self.account_creation.unwrap_or(AccountCreation::ACCOUNT_CREATION_ALWAYS_PROMPT)
  95. }
  96. fn get_account_creation_for_reflect(&self) -> &::std::option::Option<AccountCreation> {
  97. &self.account_creation
  98. }
  99. fn mut_account_creation_for_reflect(&mut self) -> &mut ::std::option::Option<AccountCreation> {
  100. &mut self.account_creation
  101. }
  102. // optional .FingerprintResponseUnion fingerprint_response = 30;
  103. pub fn clear_fingerprint_response(&mut self) {
  104. self.fingerprint_response.clear();
  105. }
  106. pub fn has_fingerprint_response(&self) -> bool {
  107. self.fingerprint_response.is_some()
  108. }
  109. // Param is passed by value, moved
  110. pub fn set_fingerprint_response(&mut self, v: FingerprintResponseUnion) {
  111. self.fingerprint_response = ::protobuf::SingularPtrField::some(v);
  112. }
  113. // Mutable pointer to the field.
  114. // If field is not initialized, it is initialized with default value first.
  115. pub fn mut_fingerprint_response(&mut self) -> &mut FingerprintResponseUnion {
  116. if self.fingerprint_response.is_none() {
  117. self.fingerprint_response.set_default();
  118. }
  119. self.fingerprint_response.as_mut().unwrap()
  120. }
  121. // Take field
  122. pub fn take_fingerprint_response(&mut self) -> FingerprintResponseUnion {
  123. self.fingerprint_response.take().unwrap_or_else(|| FingerprintResponseUnion::new())
  124. }
  125. pub fn get_fingerprint_response(&self) -> &FingerprintResponseUnion {
  126. self.fingerprint_response.as_ref().unwrap_or_else(|| FingerprintResponseUnion::default_instance())
  127. }
  128. fn get_fingerprint_response_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintResponseUnion> {
  129. &self.fingerprint_response
  130. }
  131. fn mut_fingerprint_response_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintResponseUnion> {
  132. &mut self.fingerprint_response
  133. }
  134. // optional .PeerTicketUnion peer_ticket = 40;
  135. pub fn clear_peer_ticket(&mut self) {
  136. self.peer_ticket.clear();
  137. }
  138. pub fn has_peer_ticket(&self) -> bool {
  139. self.peer_ticket.is_some()
  140. }
  141. // Param is passed by value, moved
  142. pub fn set_peer_ticket(&mut self, v: PeerTicketUnion) {
  143. self.peer_ticket = ::protobuf::SingularPtrField::some(v);
  144. }
  145. // Mutable pointer to the field.
  146. // If field is not initialized, it is initialized with default value first.
  147. pub fn mut_peer_ticket(&mut self) -> &mut PeerTicketUnion {
  148. if self.peer_ticket.is_none() {
  149. self.peer_ticket.set_default();
  150. }
  151. self.peer_ticket.as_mut().unwrap()
  152. }
  153. // Take field
  154. pub fn take_peer_ticket(&mut self) -> PeerTicketUnion {
  155. self.peer_ticket.take().unwrap_or_else(|| PeerTicketUnion::new())
  156. }
  157. pub fn get_peer_ticket(&self) -> &PeerTicketUnion {
  158. self.peer_ticket.as_ref().unwrap_or_else(|| PeerTicketUnion::default_instance())
  159. }
  160. fn get_peer_ticket_for_reflect(&self) -> &::protobuf::SingularPtrField<PeerTicketUnion> {
  161. &self.peer_ticket
  162. }
  163. fn mut_peer_ticket_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PeerTicketUnion> {
  164. &mut self.peer_ticket
  165. }
  166. // required .SystemInfo system_info = 50;
  167. pub fn clear_system_info(&mut self) {
  168. self.system_info.clear();
  169. }
  170. pub fn has_system_info(&self) -> bool {
  171. self.system_info.is_some()
  172. }
  173. // Param is passed by value, moved
  174. pub fn set_system_info(&mut self, v: SystemInfo) {
  175. self.system_info = ::protobuf::SingularPtrField::some(v);
  176. }
  177. // Mutable pointer to the field.
  178. // If field is not initialized, it is initialized with default value first.
  179. pub fn mut_system_info(&mut self) -> &mut SystemInfo {
  180. if self.system_info.is_none() {
  181. self.system_info.set_default();
  182. }
  183. self.system_info.as_mut().unwrap()
  184. }
  185. // Take field
  186. pub fn take_system_info(&mut self) -> SystemInfo {
  187. self.system_info.take().unwrap_or_else(|| SystemInfo::new())
  188. }
  189. pub fn get_system_info(&self) -> &SystemInfo {
  190. self.system_info.as_ref().unwrap_or_else(|| SystemInfo::default_instance())
  191. }
  192. fn get_system_info_for_reflect(&self) -> &::protobuf::SingularPtrField<SystemInfo> {
  193. &self.system_info
  194. }
  195. fn mut_system_info_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<SystemInfo> {
  196. &mut self.system_info
  197. }
  198. // optional string platform_model = 60;
  199. pub fn clear_platform_model(&mut self) {
  200. self.platform_model.clear();
  201. }
  202. pub fn has_platform_model(&self) -> bool {
  203. self.platform_model.is_some()
  204. }
  205. // Param is passed by value, moved
  206. pub fn set_platform_model(&mut self, v: ::std::string::String) {
  207. self.platform_model = ::protobuf::SingularField::some(v);
  208. }
  209. // Mutable pointer to the field.
  210. // If field is not initialized, it is initialized with default value first.
  211. pub fn mut_platform_model(&mut self) -> &mut ::std::string::String {
  212. if self.platform_model.is_none() {
  213. self.platform_model.set_default();
  214. }
  215. self.platform_model.as_mut().unwrap()
  216. }
  217. // Take field
  218. pub fn take_platform_model(&mut self) -> ::std::string::String {
  219. self.platform_model.take().unwrap_or_else(|| ::std::string::String::new())
  220. }
  221. pub fn get_platform_model(&self) -> &str {
  222. match self.platform_model.as_ref() {
  223. Some(v) => &v,
  224. None => "",
  225. }
  226. }
  227. fn get_platform_model_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  228. &self.platform_model
  229. }
  230. fn mut_platform_model_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  231. &mut self.platform_model
  232. }
  233. // optional string version_string = 70;
  234. pub fn clear_version_string(&mut self) {
  235. self.version_string.clear();
  236. }
  237. pub fn has_version_string(&self) -> bool {
  238. self.version_string.is_some()
  239. }
  240. // Param is passed by value, moved
  241. pub fn set_version_string(&mut self, v: ::std::string::String) {
  242. self.version_string = ::protobuf::SingularField::some(v);
  243. }
  244. // Mutable pointer to the field.
  245. // If field is not initialized, it is initialized with default value first.
  246. pub fn mut_version_string(&mut self) -> &mut ::std::string::String {
  247. if self.version_string.is_none() {
  248. self.version_string.set_default();
  249. }
  250. self.version_string.as_mut().unwrap()
  251. }
  252. // Take field
  253. pub fn take_version_string(&mut self) -> ::std::string::String {
  254. self.version_string.take().unwrap_or_else(|| ::std::string::String::new())
  255. }
  256. pub fn get_version_string(&self) -> &str {
  257. match self.version_string.as_ref() {
  258. Some(v) => &v,
  259. None => "",
  260. }
  261. }
  262. fn get_version_string_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  263. &self.version_string
  264. }
  265. fn mut_version_string_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  266. &mut self.version_string
  267. }
  268. // optional .LibspotifyAppKey appkey = 80;
  269. pub fn clear_appkey(&mut self) {
  270. self.appkey.clear();
  271. }
  272. pub fn has_appkey(&self) -> bool {
  273. self.appkey.is_some()
  274. }
  275. // Param is passed by value, moved
  276. pub fn set_appkey(&mut self, v: LibspotifyAppKey) {
  277. self.appkey = ::protobuf::SingularPtrField::some(v);
  278. }
  279. // Mutable pointer to the field.
  280. // If field is not initialized, it is initialized with default value first.
  281. pub fn mut_appkey(&mut self) -> &mut LibspotifyAppKey {
  282. if self.appkey.is_none() {
  283. self.appkey.set_default();
  284. }
  285. self.appkey.as_mut().unwrap()
  286. }
  287. // Take field
  288. pub fn take_appkey(&mut self) -> LibspotifyAppKey {
  289. self.appkey.take().unwrap_or_else(|| LibspotifyAppKey::new())
  290. }
  291. pub fn get_appkey(&self) -> &LibspotifyAppKey {
  292. self.appkey.as_ref().unwrap_or_else(|| LibspotifyAppKey::default_instance())
  293. }
  294. fn get_appkey_for_reflect(&self) -> &::protobuf::SingularPtrField<LibspotifyAppKey> {
  295. &self.appkey
  296. }
  297. fn mut_appkey_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<LibspotifyAppKey> {
  298. &mut self.appkey
  299. }
  300. // optional .ClientInfo client_info = 90;
  301. pub fn clear_client_info(&mut self) {
  302. self.client_info.clear();
  303. }
  304. pub fn has_client_info(&self) -> bool {
  305. self.client_info.is_some()
  306. }
  307. // Param is passed by value, moved
  308. pub fn set_client_info(&mut self, v: ClientInfo) {
  309. self.client_info = ::protobuf::SingularPtrField::some(v);
  310. }
  311. // Mutable pointer to the field.
  312. // If field is not initialized, it is initialized with default value first.
  313. pub fn mut_client_info(&mut self) -> &mut ClientInfo {
  314. if self.client_info.is_none() {
  315. self.client_info.set_default();
  316. }
  317. self.client_info.as_mut().unwrap()
  318. }
  319. // Take field
  320. pub fn take_client_info(&mut self) -> ClientInfo {
  321. self.client_info.take().unwrap_or_else(|| ClientInfo::new())
  322. }
  323. pub fn get_client_info(&self) -> &ClientInfo {
  324. self.client_info.as_ref().unwrap_or_else(|| ClientInfo::default_instance())
  325. }
  326. fn get_client_info_for_reflect(&self) -> &::protobuf::SingularPtrField<ClientInfo> {
  327. &self.client_info
  328. }
  329. fn mut_client_info_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<ClientInfo> {
  330. &mut self.client_info
  331. }
  332. }
  333. impl ::protobuf::Message for ClientResponseEncrypted {
  334. fn is_initialized(&self) -> bool {
  335. if self.login_credentials.is_none() {
  336. return false;
  337. }
  338. if self.system_info.is_none() {
  339. return false;
  340. }
  341. for v in &self.login_credentials {
  342. if !v.is_initialized() {
  343. return false;
  344. }
  345. };
  346. for v in &self.fingerprint_response {
  347. if !v.is_initialized() {
  348. return false;
  349. }
  350. };
  351. for v in &self.peer_ticket {
  352. if !v.is_initialized() {
  353. return false;
  354. }
  355. };
  356. for v in &self.system_info {
  357. if !v.is_initialized() {
  358. return false;
  359. }
  360. };
  361. for v in &self.appkey {
  362. if !v.is_initialized() {
  363. return false;
  364. }
  365. };
  366. for v in &self.client_info {
  367. if !v.is_initialized() {
  368. return false;
  369. }
  370. };
  371. true
  372. }
  373. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  374. while !is.eof()? {
  375. let (field_number, wire_type) = is.read_tag_unpack()?;
  376. match field_number {
  377. 10 => {
  378. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.login_credentials)?;
  379. },
  380. 20 => {
  381. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  382. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  383. }
  384. let tmp = is.read_enum()?;
  385. self.account_creation = ::std::option::Option::Some(tmp);
  386. },
  387. 30 => {
  388. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fingerprint_response)?;
  389. },
  390. 40 => {
  391. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.peer_ticket)?;
  392. },
  393. 50 => {
  394. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.system_info)?;
  395. },
  396. 60 => {
  397. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.platform_model)?;
  398. },
  399. 70 => {
  400. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.version_string)?;
  401. },
  402. 80 => {
  403. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.appkey)?;
  404. },
  405. 90 => {
  406. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.client_info)?;
  407. },
  408. _ => {
  409. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  410. },
  411. };
  412. }
  413. ::std::result::Result::Ok(())
  414. }
  415. // Compute sizes of nested messages
  416. #[allow(unused_variables)]
  417. fn compute_size(&self) -> u32 {
  418. let mut my_size = 0;
  419. if let Some(ref v) = self.login_credentials.as_ref() {
  420. let len = v.compute_size();
  421. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  422. }
  423. if let Some(v) = self.account_creation {
  424. my_size += ::protobuf::rt::enum_size(20, v);
  425. }
  426. if let Some(ref v) = self.fingerprint_response.as_ref() {
  427. let len = v.compute_size();
  428. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  429. }
  430. if let Some(ref v) = self.peer_ticket.as_ref() {
  431. let len = v.compute_size();
  432. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  433. }
  434. if let Some(ref v) = self.system_info.as_ref() {
  435. let len = v.compute_size();
  436. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  437. }
  438. if let Some(ref v) = self.platform_model.as_ref() {
  439. my_size += ::protobuf::rt::string_size(60, &v);
  440. }
  441. if let Some(ref v) = self.version_string.as_ref() {
  442. my_size += ::protobuf::rt::string_size(70, &v);
  443. }
  444. if let Some(ref v) = self.appkey.as_ref() {
  445. let len = v.compute_size();
  446. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  447. }
  448. if let Some(ref v) = self.client_info.as_ref() {
  449. let len = v.compute_size();
  450. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  451. }
  452. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  453. self.cached_size.set(my_size);
  454. my_size
  455. }
  456. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  457. if let Some(ref v) = self.login_credentials.as_ref() {
  458. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  459. os.write_raw_varint32(v.get_cached_size())?;
  460. v.write_to_with_cached_sizes(os)?;
  461. }
  462. if let Some(v) = self.account_creation {
  463. os.write_enum(20, v.value())?;
  464. }
  465. if let Some(ref v) = self.fingerprint_response.as_ref() {
  466. os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  467. os.write_raw_varint32(v.get_cached_size())?;
  468. v.write_to_with_cached_sizes(os)?;
  469. }
  470. if let Some(ref v) = self.peer_ticket.as_ref() {
  471. os.write_tag(40, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  472. os.write_raw_varint32(v.get_cached_size())?;
  473. v.write_to_with_cached_sizes(os)?;
  474. }
  475. if let Some(ref v) = self.system_info.as_ref() {
  476. os.write_tag(50, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  477. os.write_raw_varint32(v.get_cached_size())?;
  478. v.write_to_with_cached_sizes(os)?;
  479. }
  480. if let Some(ref v) = self.platform_model.as_ref() {
  481. os.write_string(60, &v)?;
  482. }
  483. if let Some(ref v) = self.version_string.as_ref() {
  484. os.write_string(70, &v)?;
  485. }
  486. if let Some(ref v) = self.appkey.as_ref() {
  487. os.write_tag(80, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  488. os.write_raw_varint32(v.get_cached_size())?;
  489. v.write_to_with_cached_sizes(os)?;
  490. }
  491. if let Some(ref v) = self.client_info.as_ref() {
  492. os.write_tag(90, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  493. os.write_raw_varint32(v.get_cached_size())?;
  494. v.write_to_with_cached_sizes(os)?;
  495. }
  496. os.write_unknown_fields(self.get_unknown_fields())?;
  497. ::std::result::Result::Ok(())
  498. }
  499. fn get_cached_size(&self) -> u32 {
  500. self.cached_size.get()
  501. }
  502. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  503. &self.unknown_fields
  504. }
  505. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  506. &mut self.unknown_fields
  507. }
  508. fn as_any(&self) -> &::std::any::Any {
  509. self as &::std::any::Any
  510. }
  511. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  512. self as &mut ::std::any::Any
  513. }
  514. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  515. self
  516. }
  517. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  518. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  519. }
  520. }
  521. impl ::protobuf::MessageStatic for ClientResponseEncrypted {
  522. fn new() -> ClientResponseEncrypted {
  523. ClientResponseEncrypted::new()
  524. }
  525. fn descriptor_static(_: ::std::option::Option<ClientResponseEncrypted>) -> &'static ::protobuf::reflect::MessageDescriptor {
  526. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  527. lock: ::protobuf::lazy::ONCE_INIT,
  528. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  529. };
  530. unsafe {
  531. descriptor.get(|| {
  532. let mut fields = ::std::vec::Vec::new();
  533. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LoginCredentials>>(
  534. "login_credentials",
  535. ClientResponseEncrypted::get_login_credentials_for_reflect,
  536. ClientResponseEncrypted::mut_login_credentials_for_reflect,
  537. ));
  538. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<AccountCreation>>(
  539. "account_creation",
  540. ClientResponseEncrypted::get_account_creation_for_reflect,
  541. ClientResponseEncrypted::mut_account_creation_for_reflect,
  542. ));
  543. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintResponseUnion>>(
  544. "fingerprint_response",
  545. ClientResponseEncrypted::get_fingerprint_response_for_reflect,
  546. ClientResponseEncrypted::mut_fingerprint_response_for_reflect,
  547. ));
  548. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PeerTicketUnion>>(
  549. "peer_ticket",
  550. ClientResponseEncrypted::get_peer_ticket_for_reflect,
  551. ClientResponseEncrypted::mut_peer_ticket_for_reflect,
  552. ));
  553. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<SystemInfo>>(
  554. "system_info",
  555. ClientResponseEncrypted::get_system_info_for_reflect,
  556. ClientResponseEncrypted::mut_system_info_for_reflect,
  557. ));
  558. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  559. "platform_model",
  560. ClientResponseEncrypted::get_platform_model_for_reflect,
  561. ClientResponseEncrypted::mut_platform_model_for_reflect,
  562. ));
  563. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  564. "version_string",
  565. ClientResponseEncrypted::get_version_string_for_reflect,
  566. ClientResponseEncrypted::mut_version_string_for_reflect,
  567. ));
  568. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<LibspotifyAppKey>>(
  569. "appkey",
  570. ClientResponseEncrypted::get_appkey_for_reflect,
  571. ClientResponseEncrypted::mut_appkey_for_reflect,
  572. ));
  573. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ClientInfo>>(
  574. "client_info",
  575. ClientResponseEncrypted::get_client_info_for_reflect,
  576. ClientResponseEncrypted::mut_client_info_for_reflect,
  577. ));
  578. ::protobuf::reflect::MessageDescriptor::new::<ClientResponseEncrypted>(
  579. "ClientResponseEncrypted",
  580. fields,
  581. file_descriptor_proto()
  582. )
  583. })
  584. }
  585. }
  586. }
  587. impl ::protobuf::Clear for ClientResponseEncrypted {
  588. fn clear(&mut self) {
  589. self.clear_login_credentials();
  590. self.clear_account_creation();
  591. self.clear_fingerprint_response();
  592. self.clear_peer_ticket();
  593. self.clear_system_info();
  594. self.clear_platform_model();
  595. self.clear_version_string();
  596. self.clear_appkey();
  597. self.clear_client_info();
  598. self.unknown_fields.clear();
  599. }
  600. }
  601. impl ::std::fmt::Debug for ClientResponseEncrypted {
  602. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  603. ::protobuf::text_format::fmt(self, f)
  604. }
  605. }
  606. impl ::protobuf::reflect::ProtobufValue for ClientResponseEncrypted {
  607. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  608. ::protobuf::reflect::ProtobufValueRef::Message(self)
  609. }
  610. }
  611. #[derive(PartialEq,Clone,Default)]
  612. pub struct LoginCredentials {
  613. // message fields
  614. username: ::protobuf::SingularField<::std::string::String>,
  615. typ: ::std::option::Option<AuthenticationType>,
  616. auth_data: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  617. // special fields
  618. unknown_fields: ::protobuf::UnknownFields,
  619. cached_size: ::protobuf::CachedSize,
  620. }
  621. // see codegen.rs for the explanation why impl Sync explicitly
  622. unsafe impl ::std::marker::Sync for LoginCredentials {}
  623. impl LoginCredentials {
  624. pub fn new() -> LoginCredentials {
  625. ::std::default::Default::default()
  626. }
  627. pub fn default_instance() -> &'static LoginCredentials {
  628. static mut instance: ::protobuf::lazy::Lazy<LoginCredentials> = ::protobuf::lazy::Lazy {
  629. lock: ::protobuf::lazy::ONCE_INIT,
  630. ptr: 0 as *const LoginCredentials,
  631. };
  632. unsafe {
  633. instance.get(LoginCredentials::new)
  634. }
  635. }
  636. // optional string username = 10;
  637. pub fn clear_username(&mut self) {
  638. self.username.clear();
  639. }
  640. pub fn has_username(&self) -> bool {
  641. self.username.is_some()
  642. }
  643. // Param is passed by value, moved
  644. pub fn set_username(&mut self, v: ::std::string::String) {
  645. self.username = ::protobuf::SingularField::some(v);
  646. }
  647. // Mutable pointer to the field.
  648. // If field is not initialized, it is initialized with default value first.
  649. pub fn mut_username(&mut self) -> &mut ::std::string::String {
  650. if self.username.is_none() {
  651. self.username.set_default();
  652. }
  653. self.username.as_mut().unwrap()
  654. }
  655. // Take field
  656. pub fn take_username(&mut self) -> ::std::string::String {
  657. self.username.take().unwrap_or_else(|| ::std::string::String::new())
  658. }
  659. pub fn get_username(&self) -> &str {
  660. match self.username.as_ref() {
  661. Some(v) => &v,
  662. None => "",
  663. }
  664. }
  665. fn get_username_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  666. &self.username
  667. }
  668. fn mut_username_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  669. &mut self.username
  670. }
  671. // required .AuthenticationType typ = 20;
  672. pub fn clear_typ(&mut self) {
  673. self.typ = ::std::option::Option::None;
  674. }
  675. pub fn has_typ(&self) -> bool {
  676. self.typ.is_some()
  677. }
  678. // Param is passed by value, moved
  679. pub fn set_typ(&mut self, v: AuthenticationType) {
  680. self.typ = ::std::option::Option::Some(v);
  681. }
  682. pub fn get_typ(&self) -> AuthenticationType {
  683. self.typ.unwrap_or(AuthenticationType::AUTHENTICATION_USER_PASS)
  684. }
  685. fn get_typ_for_reflect(&self) -> &::std::option::Option<AuthenticationType> {
  686. &self.typ
  687. }
  688. fn mut_typ_for_reflect(&mut self) -> &mut ::std::option::Option<AuthenticationType> {
  689. &mut self.typ
  690. }
  691. // optional bytes auth_data = 30;
  692. pub fn clear_auth_data(&mut self) {
  693. self.auth_data.clear();
  694. }
  695. pub fn has_auth_data(&self) -> bool {
  696. self.auth_data.is_some()
  697. }
  698. // Param is passed by value, moved
  699. pub fn set_auth_data(&mut self, v: ::std::vec::Vec<u8>) {
  700. self.auth_data = ::protobuf::SingularField::some(v);
  701. }
  702. // Mutable pointer to the field.
  703. // If field is not initialized, it is initialized with default value first.
  704. pub fn mut_auth_data(&mut self) -> &mut ::std::vec::Vec<u8> {
  705. if self.auth_data.is_none() {
  706. self.auth_data.set_default();
  707. }
  708. self.auth_data.as_mut().unwrap()
  709. }
  710. // Take field
  711. pub fn take_auth_data(&mut self) -> ::std::vec::Vec<u8> {
  712. self.auth_data.take().unwrap_or_else(|| ::std::vec::Vec::new())
  713. }
  714. pub fn get_auth_data(&self) -> &[u8] {
  715. match self.auth_data.as_ref() {
  716. Some(v) => &v,
  717. None => &[],
  718. }
  719. }
  720. fn get_auth_data_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  721. &self.auth_data
  722. }
  723. fn mut_auth_data_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  724. &mut self.auth_data
  725. }
  726. }
  727. impl ::protobuf::Message for LoginCredentials {
  728. fn is_initialized(&self) -> bool {
  729. if self.typ.is_none() {
  730. return false;
  731. }
  732. true
  733. }
  734. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  735. while !is.eof()? {
  736. let (field_number, wire_type) = is.read_tag_unpack()?;
  737. match field_number {
  738. 10 => {
  739. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.username)?;
  740. },
  741. 20 => {
  742. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  743. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  744. }
  745. let tmp = is.read_enum()?;
  746. self.typ = ::std::option::Option::Some(tmp);
  747. },
  748. 30 => {
  749. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.auth_data)?;
  750. },
  751. _ => {
  752. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  753. },
  754. };
  755. }
  756. ::std::result::Result::Ok(())
  757. }
  758. // Compute sizes of nested messages
  759. #[allow(unused_variables)]
  760. fn compute_size(&self) -> u32 {
  761. let mut my_size = 0;
  762. if let Some(ref v) = self.username.as_ref() {
  763. my_size += ::protobuf::rt::string_size(10, &v);
  764. }
  765. if let Some(v) = self.typ {
  766. my_size += ::protobuf::rt::enum_size(20, v);
  767. }
  768. if let Some(ref v) = self.auth_data.as_ref() {
  769. my_size += ::protobuf::rt::bytes_size(30, &v);
  770. }
  771. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  772. self.cached_size.set(my_size);
  773. my_size
  774. }
  775. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  776. if let Some(ref v) = self.username.as_ref() {
  777. os.write_string(10, &v)?;
  778. }
  779. if let Some(v) = self.typ {
  780. os.write_enum(20, v.value())?;
  781. }
  782. if let Some(ref v) = self.auth_data.as_ref() {
  783. os.write_bytes(30, &v)?;
  784. }
  785. os.write_unknown_fields(self.get_unknown_fields())?;
  786. ::std::result::Result::Ok(())
  787. }
  788. fn get_cached_size(&self) -> u32 {
  789. self.cached_size.get()
  790. }
  791. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  792. &self.unknown_fields
  793. }
  794. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  795. &mut self.unknown_fields
  796. }
  797. fn as_any(&self) -> &::std::any::Any {
  798. self as &::std::any::Any
  799. }
  800. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  801. self as &mut ::std::any::Any
  802. }
  803. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  804. self
  805. }
  806. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  807. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  808. }
  809. }
  810. impl ::protobuf::MessageStatic for LoginCredentials {
  811. fn new() -> LoginCredentials {
  812. LoginCredentials::new()
  813. }
  814. fn descriptor_static(_: ::std::option::Option<LoginCredentials>) -> &'static ::protobuf::reflect::MessageDescriptor {
  815. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  816. lock: ::protobuf::lazy::ONCE_INIT,
  817. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  818. };
  819. unsafe {
  820. descriptor.get(|| {
  821. let mut fields = ::std::vec::Vec::new();
  822. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  823. "username",
  824. LoginCredentials::get_username_for_reflect,
  825. LoginCredentials::mut_username_for_reflect,
  826. ));
  827. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<AuthenticationType>>(
  828. "typ",
  829. LoginCredentials::get_typ_for_reflect,
  830. LoginCredentials::mut_typ_for_reflect,
  831. ));
  832. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  833. "auth_data",
  834. LoginCredentials::get_auth_data_for_reflect,
  835. LoginCredentials::mut_auth_data_for_reflect,
  836. ));
  837. ::protobuf::reflect::MessageDescriptor::new::<LoginCredentials>(
  838. "LoginCredentials",
  839. fields,
  840. file_descriptor_proto()
  841. )
  842. })
  843. }
  844. }
  845. }
  846. impl ::protobuf::Clear for LoginCredentials {
  847. fn clear(&mut self) {
  848. self.clear_username();
  849. self.clear_typ();
  850. self.clear_auth_data();
  851. self.unknown_fields.clear();
  852. }
  853. }
  854. impl ::std::fmt::Debug for LoginCredentials {
  855. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  856. ::protobuf::text_format::fmt(self, f)
  857. }
  858. }
  859. impl ::protobuf::reflect::ProtobufValue for LoginCredentials {
  860. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  861. ::protobuf::reflect::ProtobufValueRef::Message(self)
  862. }
  863. }
  864. #[derive(PartialEq,Clone,Default)]
  865. pub struct FingerprintResponseUnion {
  866. // message fields
  867. grain: ::protobuf::SingularPtrField<FingerprintGrainResponse>,
  868. hmac_ripemd: ::protobuf::SingularPtrField<FingerprintHmacRipemdResponse>,
  869. // special fields
  870. unknown_fields: ::protobuf::UnknownFields,
  871. cached_size: ::protobuf::CachedSize,
  872. }
  873. // see codegen.rs for the explanation why impl Sync explicitly
  874. unsafe impl ::std::marker::Sync for FingerprintResponseUnion {}
  875. impl FingerprintResponseUnion {
  876. pub fn new() -> FingerprintResponseUnion {
  877. ::std::default::Default::default()
  878. }
  879. pub fn default_instance() -> &'static FingerprintResponseUnion {
  880. static mut instance: ::protobuf::lazy::Lazy<FingerprintResponseUnion> = ::protobuf::lazy::Lazy {
  881. lock: ::protobuf::lazy::ONCE_INIT,
  882. ptr: 0 as *const FingerprintResponseUnion,
  883. };
  884. unsafe {
  885. instance.get(FingerprintResponseUnion::new)
  886. }
  887. }
  888. // optional .FingerprintGrainResponse grain = 10;
  889. pub fn clear_grain(&mut self) {
  890. self.grain.clear();
  891. }
  892. pub fn has_grain(&self) -> bool {
  893. self.grain.is_some()
  894. }
  895. // Param is passed by value, moved
  896. pub fn set_grain(&mut self, v: FingerprintGrainResponse) {
  897. self.grain = ::protobuf::SingularPtrField::some(v);
  898. }
  899. // Mutable pointer to the field.
  900. // If field is not initialized, it is initialized with default value first.
  901. pub fn mut_grain(&mut self) -> &mut FingerprintGrainResponse {
  902. if self.grain.is_none() {
  903. self.grain.set_default();
  904. }
  905. self.grain.as_mut().unwrap()
  906. }
  907. // Take field
  908. pub fn take_grain(&mut self) -> FingerprintGrainResponse {
  909. self.grain.take().unwrap_or_else(|| FingerprintGrainResponse::new())
  910. }
  911. pub fn get_grain(&self) -> &FingerprintGrainResponse {
  912. self.grain.as_ref().unwrap_or_else(|| FingerprintGrainResponse::default_instance())
  913. }
  914. fn get_grain_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintGrainResponse> {
  915. &self.grain
  916. }
  917. fn mut_grain_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintGrainResponse> {
  918. &mut self.grain
  919. }
  920. // optional .FingerprintHmacRipemdResponse hmac_ripemd = 20;
  921. pub fn clear_hmac_ripemd(&mut self) {
  922. self.hmac_ripemd.clear();
  923. }
  924. pub fn has_hmac_ripemd(&self) -> bool {
  925. self.hmac_ripemd.is_some()
  926. }
  927. // Param is passed by value, moved
  928. pub fn set_hmac_ripemd(&mut self, v: FingerprintHmacRipemdResponse) {
  929. self.hmac_ripemd = ::protobuf::SingularPtrField::some(v);
  930. }
  931. // Mutable pointer to the field.
  932. // If field is not initialized, it is initialized with default value first.
  933. pub fn mut_hmac_ripemd(&mut self) -> &mut FingerprintHmacRipemdResponse {
  934. if self.hmac_ripemd.is_none() {
  935. self.hmac_ripemd.set_default();
  936. }
  937. self.hmac_ripemd.as_mut().unwrap()
  938. }
  939. // Take field
  940. pub fn take_hmac_ripemd(&mut self) -> FingerprintHmacRipemdResponse {
  941. self.hmac_ripemd.take().unwrap_or_else(|| FingerprintHmacRipemdResponse::new())
  942. }
  943. pub fn get_hmac_ripemd(&self) -> &FingerprintHmacRipemdResponse {
  944. self.hmac_ripemd.as_ref().unwrap_or_else(|| FingerprintHmacRipemdResponse::default_instance())
  945. }
  946. fn get_hmac_ripemd_for_reflect(&self) -> &::protobuf::SingularPtrField<FingerprintHmacRipemdResponse> {
  947. &self.hmac_ripemd
  948. }
  949. fn mut_hmac_ripemd_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<FingerprintHmacRipemdResponse> {
  950. &mut self.hmac_ripemd
  951. }
  952. }
  953. impl ::protobuf::Message for FingerprintResponseUnion {
  954. fn is_initialized(&self) -> bool {
  955. for v in &self.grain {
  956. if !v.is_initialized() {
  957. return false;
  958. }
  959. };
  960. for v in &self.hmac_ripemd {
  961. if !v.is_initialized() {
  962. return false;
  963. }
  964. };
  965. true
  966. }
  967. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  968. while !is.eof()? {
  969. let (field_number, wire_type) = is.read_tag_unpack()?;
  970. match field_number {
  971. 10 => {
  972. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.grain)?;
  973. },
  974. 20 => {
  975. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.hmac_ripemd)?;
  976. },
  977. _ => {
  978. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  979. },
  980. };
  981. }
  982. ::std::result::Result::Ok(())
  983. }
  984. // Compute sizes of nested messages
  985. #[allow(unused_variables)]
  986. fn compute_size(&self) -> u32 {
  987. let mut my_size = 0;
  988. if let Some(ref v) = self.grain.as_ref() {
  989. let len = v.compute_size();
  990. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  991. }
  992. if let Some(ref v) = self.hmac_ripemd.as_ref() {
  993. let len = v.compute_size();
  994. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  995. }
  996. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  997. self.cached_size.set(my_size);
  998. my_size
  999. }
  1000. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1001. if let Some(ref v) = self.grain.as_ref() {
  1002. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1003. os.write_raw_varint32(v.get_cached_size())?;
  1004. v.write_to_with_cached_sizes(os)?;
  1005. }
  1006. if let Some(ref v) = self.hmac_ripemd.as_ref() {
  1007. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1008. os.write_raw_varint32(v.get_cached_size())?;
  1009. v.write_to_with_cached_sizes(os)?;
  1010. }
  1011. os.write_unknown_fields(self.get_unknown_fields())?;
  1012. ::std::result::Result::Ok(())
  1013. }
  1014. fn get_cached_size(&self) -> u32 {
  1015. self.cached_size.get()
  1016. }
  1017. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1018. &self.unknown_fields
  1019. }
  1020. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1021. &mut self.unknown_fields
  1022. }
  1023. fn as_any(&self) -> &::std::any::Any {
  1024. self as &::std::any::Any
  1025. }
  1026. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1027. self as &mut ::std::any::Any
  1028. }
  1029. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1030. self
  1031. }
  1032. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1033. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1034. }
  1035. }
  1036. impl ::protobuf::MessageStatic for FingerprintResponseUnion {
  1037. fn new() -> FingerprintResponseUnion {
  1038. FingerprintResponseUnion::new()
  1039. }
  1040. fn descriptor_static(_: ::std::option::Option<FingerprintResponseUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1041. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1042. lock: ::protobuf::lazy::ONCE_INIT,
  1043. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1044. };
  1045. unsafe {
  1046. descriptor.get(|| {
  1047. let mut fields = ::std::vec::Vec::new();
  1048. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintGrainResponse>>(
  1049. "grain",
  1050. FingerprintResponseUnion::get_grain_for_reflect,
  1051. FingerprintResponseUnion::mut_grain_for_reflect,
  1052. ));
  1053. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<FingerprintHmacRipemdResponse>>(
  1054. "hmac_ripemd",
  1055. FingerprintResponseUnion::get_hmac_ripemd_for_reflect,
  1056. FingerprintResponseUnion::mut_hmac_ripemd_for_reflect,
  1057. ));
  1058. ::protobuf::reflect::MessageDescriptor::new::<FingerprintResponseUnion>(
  1059. "FingerprintResponseUnion",
  1060. fields,
  1061. file_descriptor_proto()
  1062. )
  1063. })
  1064. }
  1065. }
  1066. }
  1067. impl ::protobuf::Clear for FingerprintResponseUnion {
  1068. fn clear(&mut self) {
  1069. self.clear_grain();
  1070. self.clear_hmac_ripemd();
  1071. self.unknown_fields.clear();
  1072. }
  1073. }
  1074. impl ::std::fmt::Debug for FingerprintResponseUnion {
  1075. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1076. ::protobuf::text_format::fmt(self, f)
  1077. }
  1078. }
  1079. impl ::protobuf::reflect::ProtobufValue for FingerprintResponseUnion {
  1080. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1081. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1082. }
  1083. }
  1084. #[derive(PartialEq,Clone,Default)]
  1085. pub struct FingerprintGrainResponse {
  1086. // message fields
  1087. encrypted_key: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1088. // special fields
  1089. unknown_fields: ::protobuf::UnknownFields,
  1090. cached_size: ::protobuf::CachedSize,
  1091. }
  1092. // see codegen.rs for the explanation why impl Sync explicitly
  1093. unsafe impl ::std::marker::Sync for FingerprintGrainResponse {}
  1094. impl FingerprintGrainResponse {
  1095. pub fn new() -> FingerprintGrainResponse {
  1096. ::std::default::Default::default()
  1097. }
  1098. pub fn default_instance() -> &'static FingerprintGrainResponse {
  1099. static mut instance: ::protobuf::lazy::Lazy<FingerprintGrainResponse> = ::protobuf::lazy::Lazy {
  1100. lock: ::protobuf::lazy::ONCE_INIT,
  1101. ptr: 0 as *const FingerprintGrainResponse,
  1102. };
  1103. unsafe {
  1104. instance.get(FingerprintGrainResponse::new)
  1105. }
  1106. }
  1107. // required bytes encrypted_key = 10;
  1108. pub fn clear_encrypted_key(&mut self) {
  1109. self.encrypted_key.clear();
  1110. }
  1111. pub fn has_encrypted_key(&self) -> bool {
  1112. self.encrypted_key.is_some()
  1113. }
  1114. // Param is passed by value, moved
  1115. pub fn set_encrypted_key(&mut self, v: ::std::vec::Vec<u8>) {
  1116. self.encrypted_key = ::protobuf::SingularField::some(v);
  1117. }
  1118. // Mutable pointer to the field.
  1119. // If field is not initialized, it is initialized with default value first.
  1120. pub fn mut_encrypted_key(&mut self) -> &mut ::std::vec::Vec<u8> {
  1121. if self.encrypted_key.is_none() {
  1122. self.encrypted_key.set_default();
  1123. }
  1124. self.encrypted_key.as_mut().unwrap()
  1125. }
  1126. // Take field
  1127. pub fn take_encrypted_key(&mut self) -> ::std::vec::Vec<u8> {
  1128. self.encrypted_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1129. }
  1130. pub fn get_encrypted_key(&self) -> &[u8] {
  1131. match self.encrypted_key.as_ref() {
  1132. Some(v) => &v,
  1133. None => &[],
  1134. }
  1135. }
  1136. fn get_encrypted_key_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1137. &self.encrypted_key
  1138. }
  1139. fn mut_encrypted_key_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1140. &mut self.encrypted_key
  1141. }
  1142. }
  1143. impl ::protobuf::Message for FingerprintGrainResponse {
  1144. fn is_initialized(&self) -> bool {
  1145. if self.encrypted_key.is_none() {
  1146. return false;
  1147. }
  1148. true
  1149. }
  1150. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1151. while !is.eof()? {
  1152. let (field_number, wire_type) = is.read_tag_unpack()?;
  1153. match field_number {
  1154. 10 => {
  1155. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.encrypted_key)?;
  1156. },
  1157. _ => {
  1158. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1159. },
  1160. };
  1161. }
  1162. ::std::result::Result::Ok(())
  1163. }
  1164. // Compute sizes of nested messages
  1165. #[allow(unused_variables)]
  1166. fn compute_size(&self) -> u32 {
  1167. let mut my_size = 0;
  1168. if let Some(ref v) = self.encrypted_key.as_ref() {
  1169. my_size += ::protobuf::rt::bytes_size(10, &v);
  1170. }
  1171. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1172. self.cached_size.set(my_size);
  1173. my_size
  1174. }
  1175. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1176. if let Some(ref v) = self.encrypted_key.as_ref() {
  1177. os.write_bytes(10, &v)?;
  1178. }
  1179. os.write_unknown_fields(self.get_unknown_fields())?;
  1180. ::std::result::Result::Ok(())
  1181. }
  1182. fn get_cached_size(&self) -> u32 {
  1183. self.cached_size.get()
  1184. }
  1185. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1186. &self.unknown_fields
  1187. }
  1188. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1189. &mut self.unknown_fields
  1190. }
  1191. fn as_any(&self) -> &::std::any::Any {
  1192. self as &::std::any::Any
  1193. }
  1194. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1195. self as &mut ::std::any::Any
  1196. }
  1197. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1198. self
  1199. }
  1200. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1201. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1202. }
  1203. }
  1204. impl ::protobuf::MessageStatic for FingerprintGrainResponse {
  1205. fn new() -> FingerprintGrainResponse {
  1206. FingerprintGrainResponse::new()
  1207. }
  1208. fn descriptor_static(_: ::std::option::Option<FingerprintGrainResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1209. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1210. lock: ::protobuf::lazy::ONCE_INIT,
  1211. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1212. };
  1213. unsafe {
  1214. descriptor.get(|| {
  1215. let mut fields = ::std::vec::Vec::new();
  1216. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1217. "encrypted_key",
  1218. FingerprintGrainResponse::get_encrypted_key_for_reflect,
  1219. FingerprintGrainResponse::mut_encrypted_key_for_reflect,
  1220. ));
  1221. ::protobuf::reflect::MessageDescriptor::new::<FingerprintGrainResponse>(
  1222. "FingerprintGrainResponse",
  1223. fields,
  1224. file_descriptor_proto()
  1225. )
  1226. })
  1227. }
  1228. }
  1229. }
  1230. impl ::protobuf::Clear for FingerprintGrainResponse {
  1231. fn clear(&mut self) {
  1232. self.clear_encrypted_key();
  1233. self.unknown_fields.clear();
  1234. }
  1235. }
  1236. impl ::std::fmt::Debug for FingerprintGrainResponse {
  1237. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1238. ::protobuf::text_format::fmt(self, f)
  1239. }
  1240. }
  1241. impl ::protobuf::reflect::ProtobufValue for FingerprintGrainResponse {
  1242. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1243. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1244. }
  1245. }
  1246. #[derive(PartialEq,Clone,Default)]
  1247. pub struct FingerprintHmacRipemdResponse {
  1248. // message fields
  1249. hmac: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1250. // special fields
  1251. unknown_fields: ::protobuf::UnknownFields,
  1252. cached_size: ::protobuf::CachedSize,
  1253. }
  1254. // see codegen.rs for the explanation why impl Sync explicitly
  1255. unsafe impl ::std::marker::Sync for FingerprintHmacRipemdResponse {}
  1256. impl FingerprintHmacRipemdResponse {
  1257. pub fn new() -> FingerprintHmacRipemdResponse {
  1258. ::std::default::Default::default()
  1259. }
  1260. pub fn default_instance() -> &'static FingerprintHmacRipemdResponse {
  1261. static mut instance: ::protobuf::lazy::Lazy<FingerprintHmacRipemdResponse> = ::protobuf::lazy::Lazy {
  1262. lock: ::protobuf::lazy::ONCE_INIT,
  1263. ptr: 0 as *const FingerprintHmacRipemdResponse,
  1264. };
  1265. unsafe {
  1266. instance.get(FingerprintHmacRipemdResponse::new)
  1267. }
  1268. }
  1269. // required bytes hmac = 10;
  1270. pub fn clear_hmac(&mut self) {
  1271. self.hmac.clear();
  1272. }
  1273. pub fn has_hmac(&self) -> bool {
  1274. self.hmac.is_some()
  1275. }
  1276. // Param is passed by value, moved
  1277. pub fn set_hmac(&mut self, v: ::std::vec::Vec<u8>) {
  1278. self.hmac = ::protobuf::SingularField::some(v);
  1279. }
  1280. // Mutable pointer to the field.
  1281. // If field is not initialized, it is initialized with default value first.
  1282. pub fn mut_hmac(&mut self) -> &mut ::std::vec::Vec<u8> {
  1283. if self.hmac.is_none() {
  1284. self.hmac.set_default();
  1285. }
  1286. self.hmac.as_mut().unwrap()
  1287. }
  1288. // Take field
  1289. pub fn take_hmac(&mut self) -> ::std::vec::Vec<u8> {
  1290. self.hmac.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1291. }
  1292. pub fn get_hmac(&self) -> &[u8] {
  1293. match self.hmac.as_ref() {
  1294. Some(v) => &v,
  1295. None => &[],
  1296. }
  1297. }
  1298. fn get_hmac_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1299. &self.hmac
  1300. }
  1301. fn mut_hmac_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1302. &mut self.hmac
  1303. }
  1304. }
  1305. impl ::protobuf::Message for FingerprintHmacRipemdResponse {
  1306. fn is_initialized(&self) -> bool {
  1307. if self.hmac.is_none() {
  1308. return false;
  1309. }
  1310. true
  1311. }
  1312. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1313. while !is.eof()? {
  1314. let (field_number, wire_type) = is.read_tag_unpack()?;
  1315. match field_number {
  1316. 10 => {
  1317. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.hmac)?;
  1318. },
  1319. _ => {
  1320. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1321. },
  1322. };
  1323. }
  1324. ::std::result::Result::Ok(())
  1325. }
  1326. // Compute sizes of nested messages
  1327. #[allow(unused_variables)]
  1328. fn compute_size(&self) -> u32 {
  1329. let mut my_size = 0;
  1330. if let Some(ref v) = self.hmac.as_ref() {
  1331. my_size += ::protobuf::rt::bytes_size(10, &v);
  1332. }
  1333. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1334. self.cached_size.set(my_size);
  1335. my_size
  1336. }
  1337. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1338. if let Some(ref v) = self.hmac.as_ref() {
  1339. os.write_bytes(10, &v)?;
  1340. }
  1341. os.write_unknown_fields(self.get_unknown_fields())?;
  1342. ::std::result::Result::Ok(())
  1343. }
  1344. fn get_cached_size(&self) -> u32 {
  1345. self.cached_size.get()
  1346. }
  1347. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1348. &self.unknown_fields
  1349. }
  1350. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1351. &mut self.unknown_fields
  1352. }
  1353. fn as_any(&self) -> &::std::any::Any {
  1354. self as &::std::any::Any
  1355. }
  1356. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1357. self as &mut ::std::any::Any
  1358. }
  1359. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1360. self
  1361. }
  1362. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1363. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1364. }
  1365. }
  1366. impl ::protobuf::MessageStatic for FingerprintHmacRipemdResponse {
  1367. fn new() -> FingerprintHmacRipemdResponse {
  1368. FingerprintHmacRipemdResponse::new()
  1369. }
  1370. fn descriptor_static(_: ::std::option::Option<FingerprintHmacRipemdResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1371. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1372. lock: ::protobuf::lazy::ONCE_INIT,
  1373. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1374. };
  1375. unsafe {
  1376. descriptor.get(|| {
  1377. let mut fields = ::std::vec::Vec::new();
  1378. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1379. "hmac",
  1380. FingerprintHmacRipemdResponse::get_hmac_for_reflect,
  1381. FingerprintHmacRipemdResponse::mut_hmac_for_reflect,
  1382. ));
  1383. ::protobuf::reflect::MessageDescriptor::new::<FingerprintHmacRipemdResponse>(
  1384. "FingerprintHmacRipemdResponse",
  1385. fields,
  1386. file_descriptor_proto()
  1387. )
  1388. })
  1389. }
  1390. }
  1391. }
  1392. impl ::protobuf::Clear for FingerprintHmacRipemdResponse {
  1393. fn clear(&mut self) {
  1394. self.clear_hmac();
  1395. self.unknown_fields.clear();
  1396. }
  1397. }
  1398. impl ::std::fmt::Debug for FingerprintHmacRipemdResponse {
  1399. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1400. ::protobuf::text_format::fmt(self, f)
  1401. }
  1402. }
  1403. impl ::protobuf::reflect::ProtobufValue for FingerprintHmacRipemdResponse {
  1404. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1405. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1406. }
  1407. }
  1408. #[derive(PartialEq,Clone,Default)]
  1409. pub struct PeerTicketUnion {
  1410. // message fields
  1411. public_key: ::protobuf::SingularPtrField<PeerTicketPublicKey>,
  1412. old_ticket: ::protobuf::SingularPtrField<PeerTicketOld>,
  1413. // special fields
  1414. unknown_fields: ::protobuf::UnknownFields,
  1415. cached_size: ::protobuf::CachedSize,
  1416. }
  1417. // see codegen.rs for the explanation why impl Sync explicitly
  1418. unsafe impl ::std::marker::Sync for PeerTicketUnion {}
  1419. impl PeerTicketUnion {
  1420. pub fn new() -> PeerTicketUnion {
  1421. ::std::default::Default::default()
  1422. }
  1423. pub fn default_instance() -> &'static PeerTicketUnion {
  1424. static mut instance: ::protobuf::lazy::Lazy<PeerTicketUnion> = ::protobuf::lazy::Lazy {
  1425. lock: ::protobuf::lazy::ONCE_INIT,
  1426. ptr: 0 as *const PeerTicketUnion,
  1427. };
  1428. unsafe {
  1429. instance.get(PeerTicketUnion::new)
  1430. }
  1431. }
  1432. // optional .PeerTicketPublicKey public_key = 10;
  1433. pub fn clear_public_key(&mut self) {
  1434. self.public_key.clear();
  1435. }
  1436. pub fn has_public_key(&self) -> bool {
  1437. self.public_key.is_some()
  1438. }
  1439. // Param is passed by value, moved
  1440. pub fn set_public_key(&mut self, v: PeerTicketPublicKey) {
  1441. self.public_key = ::protobuf::SingularPtrField::some(v);
  1442. }
  1443. // Mutable pointer to the field.
  1444. // If field is not initialized, it is initialized with default value first.
  1445. pub fn mut_public_key(&mut self) -> &mut PeerTicketPublicKey {
  1446. if self.public_key.is_none() {
  1447. self.public_key.set_default();
  1448. }
  1449. self.public_key.as_mut().unwrap()
  1450. }
  1451. // Take field
  1452. pub fn take_public_key(&mut self) -> PeerTicketPublicKey {
  1453. self.public_key.take().unwrap_or_else(|| PeerTicketPublicKey::new())
  1454. }
  1455. pub fn get_public_key(&self) -> &PeerTicketPublicKey {
  1456. self.public_key.as_ref().unwrap_or_else(|| PeerTicketPublicKey::default_instance())
  1457. }
  1458. fn get_public_key_for_reflect(&self) -> &::protobuf::SingularPtrField<PeerTicketPublicKey> {
  1459. &self.public_key
  1460. }
  1461. fn mut_public_key_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PeerTicketPublicKey> {
  1462. &mut self.public_key
  1463. }
  1464. // optional .PeerTicketOld old_ticket = 20;
  1465. pub fn clear_old_ticket(&mut self) {
  1466. self.old_ticket.clear();
  1467. }
  1468. pub fn has_old_ticket(&self) -> bool {
  1469. self.old_ticket.is_some()
  1470. }
  1471. // Param is passed by value, moved
  1472. pub fn set_old_ticket(&mut self, v: PeerTicketOld) {
  1473. self.old_ticket = ::protobuf::SingularPtrField::some(v);
  1474. }
  1475. // Mutable pointer to the field.
  1476. // If field is not initialized, it is initialized with default value first.
  1477. pub fn mut_old_ticket(&mut self) -> &mut PeerTicketOld {
  1478. if self.old_ticket.is_none() {
  1479. self.old_ticket.set_default();
  1480. }
  1481. self.old_ticket.as_mut().unwrap()
  1482. }
  1483. // Take field
  1484. pub fn take_old_ticket(&mut self) -> PeerTicketOld {
  1485. self.old_ticket.take().unwrap_or_else(|| PeerTicketOld::new())
  1486. }
  1487. pub fn get_old_ticket(&self) -> &PeerTicketOld {
  1488. self.old_ticket.as_ref().unwrap_or_else(|| PeerTicketOld::default_instance())
  1489. }
  1490. fn get_old_ticket_for_reflect(&self) -> &::protobuf::SingularPtrField<PeerTicketOld> {
  1491. &self.old_ticket
  1492. }
  1493. fn mut_old_ticket_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PeerTicketOld> {
  1494. &mut self.old_ticket
  1495. }
  1496. }
  1497. impl ::protobuf::Message for PeerTicketUnion {
  1498. fn is_initialized(&self) -> bool {
  1499. for v in &self.public_key {
  1500. if !v.is_initialized() {
  1501. return false;
  1502. }
  1503. };
  1504. for v in &self.old_ticket {
  1505. if !v.is_initialized() {
  1506. return false;
  1507. }
  1508. };
  1509. true
  1510. }
  1511. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1512. while !is.eof()? {
  1513. let (field_number, wire_type) = is.read_tag_unpack()?;
  1514. match field_number {
  1515. 10 => {
  1516. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.public_key)?;
  1517. },
  1518. 20 => {
  1519. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.old_ticket)?;
  1520. },
  1521. _ => {
  1522. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1523. },
  1524. };
  1525. }
  1526. ::std::result::Result::Ok(())
  1527. }
  1528. // Compute sizes of nested messages
  1529. #[allow(unused_variables)]
  1530. fn compute_size(&self) -> u32 {
  1531. let mut my_size = 0;
  1532. if let Some(ref v) = self.public_key.as_ref() {
  1533. let len = v.compute_size();
  1534. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1535. }
  1536. if let Some(ref v) = self.old_ticket.as_ref() {
  1537. let len = v.compute_size();
  1538. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1539. }
  1540. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1541. self.cached_size.set(my_size);
  1542. my_size
  1543. }
  1544. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1545. if let Some(ref v) = self.public_key.as_ref() {
  1546. os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1547. os.write_raw_varint32(v.get_cached_size())?;
  1548. v.write_to_with_cached_sizes(os)?;
  1549. }
  1550. if let Some(ref v) = self.old_ticket.as_ref() {
  1551. os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1552. os.write_raw_varint32(v.get_cached_size())?;
  1553. v.write_to_with_cached_sizes(os)?;
  1554. }
  1555. os.write_unknown_fields(self.get_unknown_fields())?;
  1556. ::std::result::Result::Ok(())
  1557. }
  1558. fn get_cached_size(&self) -> u32 {
  1559. self.cached_size.get()
  1560. }
  1561. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1562. &self.unknown_fields
  1563. }
  1564. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1565. &mut self.unknown_fields
  1566. }
  1567. fn as_any(&self) -> &::std::any::Any {
  1568. self as &::std::any::Any
  1569. }
  1570. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1571. self as &mut ::std::any::Any
  1572. }
  1573. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1574. self
  1575. }
  1576. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1577. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1578. }
  1579. }
  1580. impl ::protobuf::MessageStatic for PeerTicketUnion {
  1581. fn new() -> PeerTicketUnion {
  1582. PeerTicketUnion::new()
  1583. }
  1584. fn descriptor_static(_: ::std::option::Option<PeerTicketUnion>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1585. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1586. lock: ::protobuf::lazy::ONCE_INIT,
  1587. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1588. };
  1589. unsafe {
  1590. descriptor.get(|| {
  1591. let mut fields = ::std::vec::Vec::new();
  1592. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PeerTicketPublicKey>>(
  1593. "public_key",
  1594. PeerTicketUnion::get_public_key_for_reflect,
  1595. PeerTicketUnion::mut_public_key_for_reflect,
  1596. ));
  1597. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PeerTicketOld>>(
  1598. "old_ticket",
  1599. PeerTicketUnion::get_old_ticket_for_reflect,
  1600. PeerTicketUnion::mut_old_ticket_for_reflect,
  1601. ));
  1602. ::protobuf::reflect::MessageDescriptor::new::<PeerTicketUnion>(
  1603. "PeerTicketUnion",
  1604. fields,
  1605. file_descriptor_proto()
  1606. )
  1607. })
  1608. }
  1609. }
  1610. }
  1611. impl ::protobuf::Clear for PeerTicketUnion {
  1612. fn clear(&mut self) {
  1613. self.clear_public_key();
  1614. self.clear_old_ticket();
  1615. self.unknown_fields.clear();
  1616. }
  1617. }
  1618. impl ::std::fmt::Debug for PeerTicketUnion {
  1619. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1620. ::protobuf::text_format::fmt(self, f)
  1621. }
  1622. }
  1623. impl ::protobuf::reflect::ProtobufValue for PeerTicketUnion {
  1624. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1625. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1626. }
  1627. }
  1628. #[derive(PartialEq,Clone,Default)]
  1629. pub struct PeerTicketPublicKey {
  1630. // message fields
  1631. public_key: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1632. // special fields
  1633. unknown_fields: ::protobuf::UnknownFields,
  1634. cached_size: ::protobuf::CachedSize,
  1635. }
  1636. // see codegen.rs for the explanation why impl Sync explicitly
  1637. unsafe impl ::std::marker::Sync for PeerTicketPublicKey {}
  1638. impl PeerTicketPublicKey {
  1639. pub fn new() -> PeerTicketPublicKey {
  1640. ::std::default::Default::default()
  1641. }
  1642. pub fn default_instance() -> &'static PeerTicketPublicKey {
  1643. static mut instance: ::protobuf::lazy::Lazy<PeerTicketPublicKey> = ::protobuf::lazy::Lazy {
  1644. lock: ::protobuf::lazy::ONCE_INIT,
  1645. ptr: 0 as *const PeerTicketPublicKey,
  1646. };
  1647. unsafe {
  1648. instance.get(PeerTicketPublicKey::new)
  1649. }
  1650. }
  1651. // required bytes public_key = 10;
  1652. pub fn clear_public_key(&mut self) {
  1653. self.public_key.clear();
  1654. }
  1655. pub fn has_public_key(&self) -> bool {
  1656. self.public_key.is_some()
  1657. }
  1658. // Param is passed by value, moved
  1659. pub fn set_public_key(&mut self, v: ::std::vec::Vec<u8>) {
  1660. self.public_key = ::protobuf::SingularField::some(v);
  1661. }
  1662. // Mutable pointer to the field.
  1663. // If field is not initialized, it is initialized with default value first.
  1664. pub fn mut_public_key(&mut self) -> &mut ::std::vec::Vec<u8> {
  1665. if self.public_key.is_none() {
  1666. self.public_key.set_default();
  1667. }
  1668. self.public_key.as_mut().unwrap()
  1669. }
  1670. // Take field
  1671. pub fn take_public_key(&mut self) -> ::std::vec::Vec<u8> {
  1672. self.public_key.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1673. }
  1674. pub fn get_public_key(&self) -> &[u8] {
  1675. match self.public_key.as_ref() {
  1676. Some(v) => &v,
  1677. None => &[],
  1678. }
  1679. }
  1680. fn get_public_key_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1681. &self.public_key
  1682. }
  1683. fn mut_public_key_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1684. &mut self.public_key
  1685. }
  1686. }
  1687. impl ::protobuf::Message for PeerTicketPublicKey {
  1688. fn is_initialized(&self) -> bool {
  1689. if self.public_key.is_none() {
  1690. return false;
  1691. }
  1692. true
  1693. }
  1694. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1695. while !is.eof()? {
  1696. let (field_number, wire_type) = is.read_tag_unpack()?;
  1697. match field_number {
  1698. 10 => {
  1699. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.public_key)?;
  1700. },
  1701. _ => {
  1702. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1703. },
  1704. };
  1705. }
  1706. ::std::result::Result::Ok(())
  1707. }
  1708. // Compute sizes of nested messages
  1709. #[allow(unused_variables)]
  1710. fn compute_size(&self) -> u32 {
  1711. let mut my_size = 0;
  1712. if let Some(ref v) = self.public_key.as_ref() {
  1713. my_size += ::protobuf::rt::bytes_size(10, &v);
  1714. }
  1715. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1716. self.cached_size.set(my_size);
  1717. my_size
  1718. }
  1719. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1720. if let Some(ref v) = self.public_key.as_ref() {
  1721. os.write_bytes(10, &v)?;
  1722. }
  1723. os.write_unknown_fields(self.get_unknown_fields())?;
  1724. ::std::result::Result::Ok(())
  1725. }
  1726. fn get_cached_size(&self) -> u32 {
  1727. self.cached_size.get()
  1728. }
  1729. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1730. &self.unknown_fields
  1731. }
  1732. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1733. &mut self.unknown_fields
  1734. }
  1735. fn as_any(&self) -> &::std::any::Any {
  1736. self as &::std::any::Any
  1737. }
  1738. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1739. self as &mut ::std::any::Any
  1740. }
  1741. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1742. self
  1743. }
  1744. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1745. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1746. }
  1747. }
  1748. impl ::protobuf::MessageStatic for PeerTicketPublicKey {
  1749. fn new() -> PeerTicketPublicKey {
  1750. PeerTicketPublicKey::new()
  1751. }
  1752. fn descriptor_static(_: ::std::option::Option<PeerTicketPublicKey>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1753. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1754. lock: ::protobuf::lazy::ONCE_INIT,
  1755. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1756. };
  1757. unsafe {
  1758. descriptor.get(|| {
  1759. let mut fields = ::std::vec::Vec::new();
  1760. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1761. "public_key",
  1762. PeerTicketPublicKey::get_public_key_for_reflect,
  1763. PeerTicketPublicKey::mut_public_key_for_reflect,
  1764. ));
  1765. ::protobuf::reflect::MessageDescriptor::new::<PeerTicketPublicKey>(
  1766. "PeerTicketPublicKey",
  1767. fields,
  1768. file_descriptor_proto()
  1769. )
  1770. })
  1771. }
  1772. }
  1773. }
  1774. impl ::protobuf::Clear for PeerTicketPublicKey {
  1775. fn clear(&mut self) {
  1776. self.clear_public_key();
  1777. self.unknown_fields.clear();
  1778. }
  1779. }
  1780. impl ::std::fmt::Debug for PeerTicketPublicKey {
  1781. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1782. ::protobuf::text_format::fmt(self, f)
  1783. }
  1784. }
  1785. impl ::protobuf::reflect::ProtobufValue for PeerTicketPublicKey {
  1786. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1787. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1788. }
  1789. }
  1790. #[derive(PartialEq,Clone,Default)]
  1791. pub struct PeerTicketOld {
  1792. // message fields
  1793. peer_ticket: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1794. peer_ticket_signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1795. // special fields
  1796. unknown_fields: ::protobuf::UnknownFields,
  1797. cached_size: ::protobuf::CachedSize,
  1798. }
  1799. // see codegen.rs for the explanation why impl Sync explicitly
  1800. unsafe impl ::std::marker::Sync for PeerTicketOld {}
  1801. impl PeerTicketOld {
  1802. pub fn new() -> PeerTicketOld {
  1803. ::std::default::Default::default()
  1804. }
  1805. pub fn default_instance() -> &'static PeerTicketOld {
  1806. static mut instance: ::protobuf::lazy::Lazy<PeerTicketOld> = ::protobuf::lazy::Lazy {
  1807. lock: ::protobuf::lazy::ONCE_INIT,
  1808. ptr: 0 as *const PeerTicketOld,
  1809. };
  1810. unsafe {
  1811. instance.get(PeerTicketOld::new)
  1812. }
  1813. }
  1814. // required bytes peer_ticket = 10;
  1815. pub fn clear_peer_ticket(&mut self) {
  1816. self.peer_ticket.clear();
  1817. }
  1818. pub fn has_peer_ticket(&self) -> bool {
  1819. self.peer_ticket.is_some()
  1820. }
  1821. // Param is passed by value, moved
  1822. pub fn set_peer_ticket(&mut self, v: ::std::vec::Vec<u8>) {
  1823. self.peer_ticket = ::protobuf::SingularField::some(v);
  1824. }
  1825. // Mutable pointer to the field.
  1826. // If field is not initialized, it is initialized with default value first.
  1827. pub fn mut_peer_ticket(&mut self) -> &mut ::std::vec::Vec<u8> {
  1828. if self.peer_ticket.is_none() {
  1829. self.peer_ticket.set_default();
  1830. }
  1831. self.peer_ticket.as_mut().unwrap()
  1832. }
  1833. // Take field
  1834. pub fn take_peer_ticket(&mut self) -> ::std::vec::Vec<u8> {
  1835. self.peer_ticket.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1836. }
  1837. pub fn get_peer_ticket(&self) -> &[u8] {
  1838. match self.peer_ticket.as_ref() {
  1839. Some(v) => &v,
  1840. None => &[],
  1841. }
  1842. }
  1843. fn get_peer_ticket_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1844. &self.peer_ticket
  1845. }
  1846. fn mut_peer_ticket_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1847. &mut self.peer_ticket
  1848. }
  1849. // required bytes peer_ticket_signature = 20;
  1850. pub fn clear_peer_ticket_signature(&mut self) {
  1851. self.peer_ticket_signature.clear();
  1852. }
  1853. pub fn has_peer_ticket_signature(&self) -> bool {
  1854. self.peer_ticket_signature.is_some()
  1855. }
  1856. // Param is passed by value, moved
  1857. pub fn set_peer_ticket_signature(&mut self, v: ::std::vec::Vec<u8>) {
  1858. self.peer_ticket_signature = ::protobuf::SingularField::some(v);
  1859. }
  1860. // Mutable pointer to the field.
  1861. // If field is not initialized, it is initialized with default value first.
  1862. pub fn mut_peer_ticket_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
  1863. if self.peer_ticket_signature.is_none() {
  1864. self.peer_ticket_signature.set_default();
  1865. }
  1866. self.peer_ticket_signature.as_mut().unwrap()
  1867. }
  1868. // Take field
  1869. pub fn take_peer_ticket_signature(&mut self) -> ::std::vec::Vec<u8> {
  1870. self.peer_ticket_signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1871. }
  1872. pub fn get_peer_ticket_signature(&self) -> &[u8] {
  1873. match self.peer_ticket_signature.as_ref() {
  1874. Some(v) => &v,
  1875. None => &[],
  1876. }
  1877. }
  1878. fn get_peer_ticket_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1879. &self.peer_ticket_signature
  1880. }
  1881. fn mut_peer_ticket_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1882. &mut self.peer_ticket_signature
  1883. }
  1884. }
  1885. impl ::protobuf::Message for PeerTicketOld {
  1886. fn is_initialized(&self) -> bool {
  1887. if self.peer_ticket.is_none() {
  1888. return false;
  1889. }
  1890. if self.peer_ticket_signature.is_none() {
  1891. return false;
  1892. }
  1893. true
  1894. }
  1895. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1896. while !is.eof()? {
  1897. let (field_number, wire_type) = is.read_tag_unpack()?;
  1898. match field_number {
  1899. 10 => {
  1900. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.peer_ticket)?;
  1901. },
  1902. 20 => {
  1903. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.peer_ticket_signature)?;
  1904. },
  1905. _ => {
  1906. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1907. },
  1908. };
  1909. }
  1910. ::std::result::Result::Ok(())
  1911. }
  1912. // Compute sizes of nested messages
  1913. #[allow(unused_variables)]
  1914. fn compute_size(&self) -> u32 {
  1915. let mut my_size = 0;
  1916. if let Some(ref v) = self.peer_ticket.as_ref() {
  1917. my_size += ::protobuf::rt::bytes_size(10, &v);
  1918. }
  1919. if let Some(ref v) = self.peer_ticket_signature.as_ref() {
  1920. my_size += ::protobuf::rt::bytes_size(20, &v);
  1921. }
  1922. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1923. self.cached_size.set(my_size);
  1924. my_size
  1925. }
  1926. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1927. if let Some(ref v) = self.peer_ticket.as_ref() {
  1928. os.write_bytes(10, &v)?;
  1929. }
  1930. if let Some(ref v) = self.peer_ticket_signature.as_ref() {
  1931. os.write_bytes(20, &v)?;
  1932. }
  1933. os.write_unknown_fields(self.get_unknown_fields())?;
  1934. ::std::result::Result::Ok(())
  1935. }
  1936. fn get_cached_size(&self) -> u32 {
  1937. self.cached_size.get()
  1938. }
  1939. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1940. &self.unknown_fields
  1941. }
  1942. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1943. &mut self.unknown_fields
  1944. }
  1945. fn as_any(&self) -> &::std::any::Any {
  1946. self as &::std::any::Any
  1947. }
  1948. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1949. self as &mut ::std::any::Any
  1950. }
  1951. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1952. self
  1953. }
  1954. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1955. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1956. }
  1957. }
  1958. impl ::protobuf::MessageStatic for PeerTicketOld {
  1959. fn new() -> PeerTicketOld {
  1960. PeerTicketOld::new()
  1961. }
  1962. fn descriptor_static(_: ::std::option::Option<PeerTicketOld>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1963. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1964. lock: ::protobuf::lazy::ONCE_INIT,
  1965. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1966. };
  1967. unsafe {
  1968. descriptor.get(|| {
  1969. let mut fields = ::std::vec::Vec::new();
  1970. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1971. "peer_ticket",
  1972. PeerTicketOld::get_peer_ticket_for_reflect,
  1973. PeerTicketOld::mut_peer_ticket_for_reflect,
  1974. ));
  1975. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1976. "peer_ticket_signature",
  1977. PeerTicketOld::get_peer_ticket_signature_for_reflect,
  1978. PeerTicketOld::mut_peer_ticket_signature_for_reflect,
  1979. ));
  1980. ::protobuf::reflect::MessageDescriptor::new::<PeerTicketOld>(
  1981. "PeerTicketOld",
  1982. fields,
  1983. file_descriptor_proto()
  1984. )
  1985. })
  1986. }
  1987. }
  1988. }
  1989. impl ::protobuf::Clear for PeerTicketOld {
  1990. fn clear(&mut self) {
  1991. self.clear_peer_ticket();
  1992. self.clear_peer_ticket_signature();
  1993. self.unknown_fields.clear();
  1994. }
  1995. }
  1996. impl ::std::fmt::Debug for PeerTicketOld {
  1997. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1998. ::protobuf::text_format::fmt(self, f)
  1999. }
  2000. }
  2001. impl ::protobuf::reflect::ProtobufValue for PeerTicketOld {
  2002. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2003. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2004. }
  2005. }
  2006. #[derive(PartialEq,Clone,Default)]
  2007. pub struct SystemInfo {
  2008. // message fields
  2009. cpu_family: ::std::option::Option<CpuFamily>,
  2010. cpu_subtype: ::std::option::Option<u32>,
  2011. cpu_ext: ::std::option::Option<u32>,
  2012. brand: ::std::option::Option<Brand>,
  2013. brand_flags: ::std::option::Option<u32>,
  2014. os: ::std::option::Option<Os>,
  2015. os_version: ::std::option::Option<u32>,
  2016. os_ext: ::std::option::Option<u32>,
  2017. system_information_string: ::protobuf::SingularField<::std::string::String>,
  2018. device_id: ::protobuf::SingularField<::std::string::String>,
  2019. // special fields
  2020. unknown_fields: ::protobuf::UnknownFields,
  2021. cached_size: ::protobuf::CachedSize,
  2022. }
  2023. // see codegen.rs for the explanation why impl Sync explicitly
  2024. unsafe impl ::std::marker::Sync for SystemInfo {}
  2025. impl SystemInfo {
  2026. pub fn new() -> SystemInfo {
  2027. ::std::default::Default::default()
  2028. }
  2029. pub fn default_instance() -> &'static SystemInfo {
  2030. static mut instance: ::protobuf::lazy::Lazy<SystemInfo> = ::protobuf::lazy::Lazy {
  2031. lock: ::protobuf::lazy::ONCE_INIT,
  2032. ptr: 0 as *const SystemInfo,
  2033. };
  2034. unsafe {
  2035. instance.get(SystemInfo::new)
  2036. }
  2037. }
  2038. // required .CpuFamily cpu_family = 10;
  2039. pub fn clear_cpu_family(&mut self) {
  2040. self.cpu_family = ::std::option::Option::None;
  2041. }
  2042. pub fn has_cpu_family(&self) -> bool {
  2043. self.cpu_family.is_some()
  2044. }
  2045. // Param is passed by value, moved
  2046. pub fn set_cpu_family(&mut self, v: CpuFamily) {
  2047. self.cpu_family = ::std::option::Option::Some(v);
  2048. }
  2049. pub fn get_cpu_family(&self) -> CpuFamily {
  2050. self.cpu_family.unwrap_or(CpuFamily::CPU_UNKNOWN)
  2051. }
  2052. fn get_cpu_family_for_reflect(&self) -> &::std::option::Option<CpuFamily> {
  2053. &self.cpu_family
  2054. }
  2055. fn mut_cpu_family_for_reflect(&mut self) -> &mut ::std::option::Option<CpuFamily> {
  2056. &mut self.cpu_family
  2057. }
  2058. // optional uint32 cpu_subtype = 20;
  2059. pub fn clear_cpu_subtype(&mut self) {
  2060. self.cpu_subtype = ::std::option::Option::None;
  2061. }
  2062. pub fn has_cpu_subtype(&self) -> bool {
  2063. self.cpu_subtype.is_some()
  2064. }
  2065. // Param is passed by value, moved
  2066. pub fn set_cpu_subtype(&mut self, v: u32) {
  2067. self.cpu_subtype = ::std::option::Option::Some(v);
  2068. }
  2069. pub fn get_cpu_subtype(&self) -> u32 {
  2070. self.cpu_subtype.unwrap_or(0)
  2071. }
  2072. fn get_cpu_subtype_for_reflect(&self) -> &::std::option::Option<u32> {
  2073. &self.cpu_subtype
  2074. }
  2075. fn mut_cpu_subtype_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2076. &mut self.cpu_subtype
  2077. }
  2078. // optional uint32 cpu_ext = 30;
  2079. pub fn clear_cpu_ext(&mut self) {
  2080. self.cpu_ext = ::std::option::Option::None;
  2081. }
  2082. pub fn has_cpu_ext(&self) -> bool {
  2083. self.cpu_ext.is_some()
  2084. }
  2085. // Param is passed by value, moved
  2086. pub fn set_cpu_ext(&mut self, v: u32) {
  2087. self.cpu_ext = ::std::option::Option::Some(v);
  2088. }
  2089. pub fn get_cpu_ext(&self) -> u32 {
  2090. self.cpu_ext.unwrap_or(0)
  2091. }
  2092. fn get_cpu_ext_for_reflect(&self) -> &::std::option::Option<u32> {
  2093. &self.cpu_ext
  2094. }
  2095. fn mut_cpu_ext_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2096. &mut self.cpu_ext
  2097. }
  2098. // optional .Brand brand = 40;
  2099. pub fn clear_brand(&mut self) {
  2100. self.brand = ::std::option::Option::None;
  2101. }
  2102. pub fn has_brand(&self) -> bool {
  2103. self.brand.is_some()
  2104. }
  2105. // Param is passed by value, moved
  2106. pub fn set_brand(&mut self, v: Brand) {
  2107. self.brand = ::std::option::Option::Some(v);
  2108. }
  2109. pub fn get_brand(&self) -> Brand {
  2110. self.brand.unwrap_or(Brand::BRAND_UNBRANDED)
  2111. }
  2112. fn get_brand_for_reflect(&self) -> &::std::option::Option<Brand> {
  2113. &self.brand
  2114. }
  2115. fn mut_brand_for_reflect(&mut self) -> &mut ::std::option::Option<Brand> {
  2116. &mut self.brand
  2117. }
  2118. // optional uint32 brand_flags = 50;
  2119. pub fn clear_brand_flags(&mut self) {
  2120. self.brand_flags = ::std::option::Option::None;
  2121. }
  2122. pub fn has_brand_flags(&self) -> bool {
  2123. self.brand_flags.is_some()
  2124. }
  2125. // Param is passed by value, moved
  2126. pub fn set_brand_flags(&mut self, v: u32) {
  2127. self.brand_flags = ::std::option::Option::Some(v);
  2128. }
  2129. pub fn get_brand_flags(&self) -> u32 {
  2130. self.brand_flags.unwrap_or(0)
  2131. }
  2132. fn get_brand_flags_for_reflect(&self) -> &::std::option::Option<u32> {
  2133. &self.brand_flags
  2134. }
  2135. fn mut_brand_flags_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2136. &mut self.brand_flags
  2137. }
  2138. // required .Os os = 60;
  2139. pub fn clear_os(&mut self) {
  2140. self.os = ::std::option::Option::None;
  2141. }
  2142. pub fn has_os(&self) -> bool {
  2143. self.os.is_some()
  2144. }
  2145. // Param is passed by value, moved
  2146. pub fn set_os(&mut self, v: Os) {
  2147. self.os = ::std::option::Option::Some(v);
  2148. }
  2149. pub fn get_os(&self) -> Os {
  2150. self.os.unwrap_or(Os::OS_UNKNOWN)
  2151. }
  2152. fn get_os_for_reflect(&self) -> &::std::option::Option<Os> {
  2153. &self.os
  2154. }
  2155. fn mut_os_for_reflect(&mut self) -> &mut ::std::option::Option<Os> {
  2156. &mut self.os
  2157. }
  2158. // optional uint32 os_version = 70;
  2159. pub fn clear_os_version(&mut self) {
  2160. self.os_version = ::std::option::Option::None;
  2161. }
  2162. pub fn has_os_version(&self) -> bool {
  2163. self.os_version.is_some()
  2164. }
  2165. // Param is passed by value, moved
  2166. pub fn set_os_version(&mut self, v: u32) {
  2167. self.os_version = ::std::option::Option::Some(v);
  2168. }
  2169. pub fn get_os_version(&self) -> u32 {
  2170. self.os_version.unwrap_or(0)
  2171. }
  2172. fn get_os_version_for_reflect(&self) -> &::std::option::Option<u32> {
  2173. &self.os_version
  2174. }
  2175. fn mut_os_version_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2176. &mut self.os_version
  2177. }
  2178. // optional uint32 os_ext = 80;
  2179. pub fn clear_os_ext(&mut self) {
  2180. self.os_ext = ::std::option::Option::None;
  2181. }
  2182. pub fn has_os_ext(&self) -> bool {
  2183. self.os_ext.is_some()
  2184. }
  2185. // Param is passed by value, moved
  2186. pub fn set_os_ext(&mut self, v: u32) {
  2187. self.os_ext = ::std::option::Option::Some(v);
  2188. }
  2189. pub fn get_os_ext(&self) -> u32 {
  2190. self.os_ext.unwrap_or(0)
  2191. }
  2192. fn get_os_ext_for_reflect(&self) -> &::std::option::Option<u32> {
  2193. &self.os_ext
  2194. }
  2195. fn mut_os_ext_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2196. &mut self.os_ext
  2197. }
  2198. // optional string system_information_string = 90;
  2199. pub fn clear_system_information_string(&mut self) {
  2200. self.system_information_string.clear();
  2201. }
  2202. pub fn has_system_information_string(&self) -> bool {
  2203. self.system_information_string.is_some()
  2204. }
  2205. // Param is passed by value, moved
  2206. pub fn set_system_information_string(&mut self, v: ::std::string::String) {
  2207. self.system_information_string = ::protobuf::SingularField::some(v);
  2208. }
  2209. // Mutable pointer to the field.
  2210. // If field is not initialized, it is initialized with default value first.
  2211. pub fn mut_system_information_string(&mut self) -> &mut ::std::string::String {
  2212. if self.system_information_string.is_none() {
  2213. self.system_information_string.set_default();
  2214. }
  2215. self.system_information_string.as_mut().unwrap()
  2216. }
  2217. // Take field
  2218. pub fn take_system_information_string(&mut self) -> ::std::string::String {
  2219. self.system_information_string.take().unwrap_or_else(|| ::std::string::String::new())
  2220. }
  2221. pub fn get_system_information_string(&self) -> &str {
  2222. match self.system_information_string.as_ref() {
  2223. Some(v) => &v,
  2224. None => "",
  2225. }
  2226. }
  2227. fn get_system_information_string_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  2228. &self.system_information_string
  2229. }
  2230. fn mut_system_information_string_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  2231. &mut self.system_information_string
  2232. }
  2233. // optional string device_id = 100;
  2234. pub fn clear_device_id(&mut self) {
  2235. self.device_id.clear();
  2236. }
  2237. pub fn has_device_id(&self) -> bool {
  2238. self.device_id.is_some()
  2239. }
  2240. // Param is passed by value, moved
  2241. pub fn set_device_id(&mut self, v: ::std::string::String) {
  2242. self.device_id = ::protobuf::SingularField::some(v);
  2243. }
  2244. // Mutable pointer to the field.
  2245. // If field is not initialized, it is initialized with default value first.
  2246. pub fn mut_device_id(&mut self) -> &mut ::std::string::String {
  2247. if self.device_id.is_none() {
  2248. self.device_id.set_default();
  2249. }
  2250. self.device_id.as_mut().unwrap()
  2251. }
  2252. // Take field
  2253. pub fn take_device_id(&mut self) -> ::std::string::String {
  2254. self.device_id.take().unwrap_or_else(|| ::std::string::String::new())
  2255. }
  2256. pub fn get_device_id(&self) -> &str {
  2257. match self.device_id.as_ref() {
  2258. Some(v) => &v,
  2259. None => "",
  2260. }
  2261. }
  2262. fn get_device_id_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  2263. &self.device_id
  2264. }
  2265. fn mut_device_id_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  2266. &mut self.device_id
  2267. }
  2268. }
  2269. impl ::protobuf::Message for SystemInfo {
  2270. fn is_initialized(&self) -> bool {
  2271. if self.cpu_family.is_none() {
  2272. return false;
  2273. }
  2274. if self.os.is_none() {
  2275. return false;
  2276. }
  2277. true
  2278. }
  2279. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2280. while !is.eof()? {
  2281. let (field_number, wire_type) = is.read_tag_unpack()?;
  2282. match field_number {
  2283. 10 => {
  2284. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2285. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2286. }
  2287. let tmp = is.read_enum()?;
  2288. self.cpu_family = ::std::option::Option::Some(tmp);
  2289. },
  2290. 20 => {
  2291. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2292. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2293. }
  2294. let tmp = is.read_uint32()?;
  2295. self.cpu_subtype = ::std::option::Option::Some(tmp);
  2296. },
  2297. 30 => {
  2298. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2299. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2300. }
  2301. let tmp = is.read_uint32()?;
  2302. self.cpu_ext = ::std::option::Option::Some(tmp);
  2303. },
  2304. 40 => {
  2305. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2306. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2307. }
  2308. let tmp = is.read_enum()?;
  2309. self.brand = ::std::option::Option::Some(tmp);
  2310. },
  2311. 50 => {
  2312. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2313. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2314. }
  2315. let tmp = is.read_uint32()?;
  2316. self.brand_flags = ::std::option::Option::Some(tmp);
  2317. },
  2318. 60 => {
  2319. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2320. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2321. }
  2322. let tmp = is.read_enum()?;
  2323. self.os = ::std::option::Option::Some(tmp);
  2324. },
  2325. 70 => {
  2326. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2327. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2328. }
  2329. let tmp = is.read_uint32()?;
  2330. self.os_version = ::std::option::Option::Some(tmp);
  2331. },
  2332. 80 => {
  2333. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2334. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2335. }
  2336. let tmp = is.read_uint32()?;
  2337. self.os_ext = ::std::option::Option::Some(tmp);
  2338. },
  2339. 90 => {
  2340. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.system_information_string)?;
  2341. },
  2342. 100 => {
  2343. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.device_id)?;
  2344. },
  2345. _ => {
  2346. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2347. },
  2348. };
  2349. }
  2350. ::std::result::Result::Ok(())
  2351. }
  2352. // Compute sizes of nested messages
  2353. #[allow(unused_variables)]
  2354. fn compute_size(&self) -> u32 {
  2355. let mut my_size = 0;
  2356. if let Some(v) = self.cpu_family {
  2357. my_size += ::protobuf::rt::enum_size(10, v);
  2358. }
  2359. if let Some(v) = self.cpu_subtype {
  2360. my_size += ::protobuf::rt::value_size(20, v, ::protobuf::wire_format::WireTypeVarint);
  2361. }
  2362. if let Some(v) = self.cpu_ext {
  2363. my_size += ::protobuf::rt::value_size(30, v, ::protobuf::wire_format::WireTypeVarint);
  2364. }
  2365. if let Some(v) = self.brand {
  2366. my_size += ::protobuf::rt::enum_size(40, v);
  2367. }
  2368. if let Some(v) = self.brand_flags {
  2369. my_size += ::protobuf::rt::value_size(50, v, ::protobuf::wire_format::WireTypeVarint);
  2370. }
  2371. if let Some(v) = self.os {
  2372. my_size += ::protobuf::rt::enum_size(60, v);
  2373. }
  2374. if let Some(v) = self.os_version {
  2375. my_size += ::protobuf::rt::value_size(70, v, ::protobuf::wire_format::WireTypeVarint);
  2376. }
  2377. if let Some(v) = self.os_ext {
  2378. my_size += ::protobuf::rt::value_size(80, v, ::protobuf::wire_format::WireTypeVarint);
  2379. }
  2380. if let Some(ref v) = self.system_information_string.as_ref() {
  2381. my_size += ::protobuf::rt::string_size(90, &v);
  2382. }
  2383. if let Some(ref v) = self.device_id.as_ref() {
  2384. my_size += ::protobuf::rt::string_size(100, &v);
  2385. }
  2386. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2387. self.cached_size.set(my_size);
  2388. my_size
  2389. }
  2390. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2391. if let Some(v) = self.cpu_family {
  2392. os.write_enum(10, v.value())?;
  2393. }
  2394. if let Some(v) = self.cpu_subtype {
  2395. os.write_uint32(20, v)?;
  2396. }
  2397. if let Some(v) = self.cpu_ext {
  2398. os.write_uint32(30, v)?;
  2399. }
  2400. if let Some(v) = self.brand {
  2401. os.write_enum(40, v.value())?;
  2402. }
  2403. if let Some(v) = self.brand_flags {
  2404. os.write_uint32(50, v)?;
  2405. }
  2406. if let Some(v) = self.os {
  2407. os.write_enum(60, v.value())?;
  2408. }
  2409. if let Some(v) = self.os_version {
  2410. os.write_uint32(70, v)?;
  2411. }
  2412. if let Some(v) = self.os_ext {
  2413. os.write_uint32(80, v)?;
  2414. }
  2415. if let Some(ref v) = self.system_information_string.as_ref() {
  2416. os.write_string(90, &v)?;
  2417. }
  2418. if let Some(ref v) = self.device_id.as_ref() {
  2419. os.write_string(100, &v)?;
  2420. }
  2421. os.write_unknown_fields(self.get_unknown_fields())?;
  2422. ::std::result::Result::Ok(())
  2423. }
  2424. fn get_cached_size(&self) -> u32 {
  2425. self.cached_size.get()
  2426. }
  2427. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2428. &self.unknown_fields
  2429. }
  2430. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2431. &mut self.unknown_fields
  2432. }
  2433. fn as_any(&self) -> &::std::any::Any {
  2434. self as &::std::any::Any
  2435. }
  2436. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2437. self as &mut ::std::any::Any
  2438. }
  2439. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2440. self
  2441. }
  2442. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2443. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2444. }
  2445. }
  2446. impl ::protobuf::MessageStatic for SystemInfo {
  2447. fn new() -> SystemInfo {
  2448. SystemInfo::new()
  2449. }
  2450. fn descriptor_static(_: ::std::option::Option<SystemInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2451. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2452. lock: ::protobuf::lazy::ONCE_INIT,
  2453. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2454. };
  2455. unsafe {
  2456. descriptor.get(|| {
  2457. let mut fields = ::std::vec::Vec::new();
  2458. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<CpuFamily>>(
  2459. "cpu_family",
  2460. SystemInfo::get_cpu_family_for_reflect,
  2461. SystemInfo::mut_cpu_family_for_reflect,
  2462. ));
  2463. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2464. "cpu_subtype",
  2465. SystemInfo::get_cpu_subtype_for_reflect,
  2466. SystemInfo::mut_cpu_subtype_for_reflect,
  2467. ));
  2468. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2469. "cpu_ext",
  2470. SystemInfo::get_cpu_ext_for_reflect,
  2471. SystemInfo::mut_cpu_ext_for_reflect,
  2472. ));
  2473. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Brand>>(
  2474. "brand",
  2475. SystemInfo::get_brand_for_reflect,
  2476. SystemInfo::mut_brand_for_reflect,
  2477. ));
  2478. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2479. "brand_flags",
  2480. SystemInfo::get_brand_flags_for_reflect,
  2481. SystemInfo::mut_brand_flags_for_reflect,
  2482. ));
  2483. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Os>>(
  2484. "os",
  2485. SystemInfo::get_os_for_reflect,
  2486. SystemInfo::mut_os_for_reflect,
  2487. ));
  2488. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2489. "os_version",
  2490. SystemInfo::get_os_version_for_reflect,
  2491. SystemInfo::mut_os_version_for_reflect,
  2492. ));
  2493. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2494. "os_ext",
  2495. SystemInfo::get_os_ext_for_reflect,
  2496. SystemInfo::mut_os_ext_for_reflect,
  2497. ));
  2498. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2499. "system_information_string",
  2500. SystemInfo::get_system_information_string_for_reflect,
  2501. SystemInfo::mut_system_information_string_for_reflect,
  2502. ));
  2503. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2504. "device_id",
  2505. SystemInfo::get_device_id_for_reflect,
  2506. SystemInfo::mut_device_id_for_reflect,
  2507. ));
  2508. ::protobuf::reflect::MessageDescriptor::new::<SystemInfo>(
  2509. "SystemInfo",
  2510. fields,
  2511. file_descriptor_proto()
  2512. )
  2513. })
  2514. }
  2515. }
  2516. }
  2517. impl ::protobuf::Clear for SystemInfo {
  2518. fn clear(&mut self) {
  2519. self.clear_cpu_family();
  2520. self.clear_cpu_subtype();
  2521. self.clear_cpu_ext();
  2522. self.clear_brand();
  2523. self.clear_brand_flags();
  2524. self.clear_os();
  2525. self.clear_os_version();
  2526. self.clear_os_ext();
  2527. self.clear_system_information_string();
  2528. self.clear_device_id();
  2529. self.unknown_fields.clear();
  2530. }
  2531. }
  2532. impl ::std::fmt::Debug for SystemInfo {
  2533. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2534. ::protobuf::text_format::fmt(self, f)
  2535. }
  2536. }
  2537. impl ::protobuf::reflect::ProtobufValue for SystemInfo {
  2538. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2539. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2540. }
  2541. }
  2542. #[derive(PartialEq,Clone,Default)]
  2543. pub struct LibspotifyAppKey {
  2544. // message fields
  2545. version: ::std::option::Option<u32>,
  2546. devkey: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2547. signature: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2548. useragent: ::protobuf::SingularField<::std::string::String>,
  2549. callback_hash: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  2550. // special fields
  2551. unknown_fields: ::protobuf::UnknownFields,
  2552. cached_size: ::protobuf::CachedSize,
  2553. }
  2554. // see codegen.rs for the explanation why impl Sync explicitly
  2555. unsafe impl ::std::marker::Sync for LibspotifyAppKey {}
  2556. impl LibspotifyAppKey {
  2557. pub fn new() -> LibspotifyAppKey {
  2558. ::std::default::Default::default()
  2559. }
  2560. pub fn default_instance() -> &'static LibspotifyAppKey {
  2561. static mut instance: ::protobuf::lazy::Lazy<LibspotifyAppKey> = ::protobuf::lazy::Lazy {
  2562. lock: ::protobuf::lazy::ONCE_INIT,
  2563. ptr: 0 as *const LibspotifyAppKey,
  2564. };
  2565. unsafe {
  2566. instance.get(LibspotifyAppKey::new)
  2567. }
  2568. }
  2569. // required uint32 version = 1;
  2570. pub fn clear_version(&mut self) {
  2571. self.version = ::std::option::Option::None;
  2572. }
  2573. pub fn has_version(&self) -> bool {
  2574. self.version.is_some()
  2575. }
  2576. // Param is passed by value, moved
  2577. pub fn set_version(&mut self, v: u32) {
  2578. self.version = ::std::option::Option::Some(v);
  2579. }
  2580. pub fn get_version(&self) -> u32 {
  2581. self.version.unwrap_or(0)
  2582. }
  2583. fn get_version_for_reflect(&self) -> &::std::option::Option<u32> {
  2584. &self.version
  2585. }
  2586. fn mut_version_for_reflect(&mut self) -> &mut ::std::option::Option<u32> {
  2587. &mut self.version
  2588. }
  2589. // required bytes devkey = 2;
  2590. pub fn clear_devkey(&mut self) {
  2591. self.devkey.clear();
  2592. }
  2593. pub fn has_devkey(&self) -> bool {
  2594. self.devkey.is_some()
  2595. }
  2596. // Param is passed by value, moved
  2597. pub fn set_devkey(&mut self, v: ::std::vec::Vec<u8>) {
  2598. self.devkey = ::protobuf::SingularField::some(v);
  2599. }
  2600. // Mutable pointer to the field.
  2601. // If field is not initialized, it is initialized with default value first.
  2602. pub fn mut_devkey(&mut self) -> &mut ::std::vec::Vec<u8> {
  2603. if self.devkey.is_none() {
  2604. self.devkey.set_default();
  2605. }
  2606. self.devkey.as_mut().unwrap()
  2607. }
  2608. // Take field
  2609. pub fn take_devkey(&mut self) -> ::std::vec::Vec<u8> {
  2610. self.devkey.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2611. }
  2612. pub fn get_devkey(&self) -> &[u8] {
  2613. match self.devkey.as_ref() {
  2614. Some(v) => &v,
  2615. None => &[],
  2616. }
  2617. }
  2618. fn get_devkey_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2619. &self.devkey
  2620. }
  2621. fn mut_devkey_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2622. &mut self.devkey
  2623. }
  2624. // required bytes signature = 3;
  2625. pub fn clear_signature(&mut self) {
  2626. self.signature.clear();
  2627. }
  2628. pub fn has_signature(&self) -> bool {
  2629. self.signature.is_some()
  2630. }
  2631. // Param is passed by value, moved
  2632. pub fn set_signature(&mut self, v: ::std::vec::Vec<u8>) {
  2633. self.signature = ::protobuf::SingularField::some(v);
  2634. }
  2635. // Mutable pointer to the field.
  2636. // If field is not initialized, it is initialized with default value first.
  2637. pub fn mut_signature(&mut self) -> &mut ::std::vec::Vec<u8> {
  2638. if self.signature.is_none() {
  2639. self.signature.set_default();
  2640. }
  2641. self.signature.as_mut().unwrap()
  2642. }
  2643. // Take field
  2644. pub fn take_signature(&mut self) -> ::std::vec::Vec<u8> {
  2645. self.signature.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2646. }
  2647. pub fn get_signature(&self) -> &[u8] {
  2648. match self.signature.as_ref() {
  2649. Some(v) => &v,
  2650. None => &[],
  2651. }
  2652. }
  2653. fn get_signature_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2654. &self.signature
  2655. }
  2656. fn mut_signature_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2657. &mut self.signature
  2658. }
  2659. // required string useragent = 4;
  2660. pub fn clear_useragent(&mut self) {
  2661. self.useragent.clear();
  2662. }
  2663. pub fn has_useragent(&self) -> bool {
  2664. self.useragent.is_some()
  2665. }
  2666. // Param is passed by value, moved
  2667. pub fn set_useragent(&mut self, v: ::std::string::String) {
  2668. self.useragent = ::protobuf::SingularField::some(v);
  2669. }
  2670. // Mutable pointer to the field.
  2671. // If field is not initialized, it is initialized with default value first.
  2672. pub fn mut_useragent(&mut self) -> &mut ::std::string::String {
  2673. if self.useragent.is_none() {
  2674. self.useragent.set_default();
  2675. }
  2676. self.useragent.as_mut().unwrap()
  2677. }
  2678. // Take field
  2679. pub fn take_useragent(&mut self) -> ::std::string::String {
  2680. self.useragent.take().unwrap_or_else(|| ::std::string::String::new())
  2681. }
  2682. pub fn get_useragent(&self) -> &str {
  2683. match self.useragent.as_ref() {
  2684. Some(v) => &v,
  2685. None => "",
  2686. }
  2687. }
  2688. fn get_useragent_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  2689. &self.useragent
  2690. }
  2691. fn mut_useragent_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  2692. &mut self.useragent
  2693. }
  2694. // required bytes callback_hash = 5;
  2695. pub fn clear_callback_hash(&mut self) {
  2696. self.callback_hash.clear();
  2697. }
  2698. pub fn has_callback_hash(&self) -> bool {
  2699. self.callback_hash.is_some()
  2700. }
  2701. // Param is passed by value, moved
  2702. pub fn set_callback_hash(&mut self, v: ::std::vec::Vec<u8>) {
  2703. self.callback_hash = ::protobuf::SingularField::some(v);
  2704. }
  2705. // Mutable pointer to the field.
  2706. // If field is not initialized, it is initialized with default value first.
  2707. pub fn mut_callback_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
  2708. if self.callback_hash.is_none() {
  2709. self.callback_hash.set_default();
  2710. }
  2711. self.callback_hash.as_mut().unwrap()
  2712. }
  2713. // Take field
  2714. pub fn take_callback_hash(&mut self) -> ::std::vec::Vec<u8> {
  2715. self.callback_hash.take().unwrap_or_else(|| ::std::vec::Vec::new())
  2716. }
  2717. pub fn get_callback_hash(&self) -> &[u8] {
  2718. match self.callback_hash.as_ref() {
  2719. Some(v) => &v,
  2720. None => &[],
  2721. }
  2722. }
  2723. fn get_callback_hash_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  2724. &self.callback_hash
  2725. }
  2726. fn mut_callback_hash_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  2727. &mut self.callback_hash
  2728. }
  2729. }
  2730. impl ::protobuf::Message for LibspotifyAppKey {
  2731. fn is_initialized(&self) -> bool {
  2732. if self.version.is_none() {
  2733. return false;
  2734. }
  2735. if self.devkey.is_none() {
  2736. return false;
  2737. }
  2738. if self.signature.is_none() {
  2739. return false;
  2740. }
  2741. if self.useragent.is_none() {
  2742. return false;
  2743. }
  2744. if self.callback_hash.is_none() {
  2745. return false;
  2746. }
  2747. true
  2748. }
  2749. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  2750. while !is.eof()? {
  2751. let (field_number, wire_type) = is.read_tag_unpack()?;
  2752. match field_number {
  2753. 1 => {
  2754. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  2755. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  2756. }
  2757. let tmp = is.read_uint32()?;
  2758. self.version = ::std::option::Option::Some(tmp);
  2759. },
  2760. 2 => {
  2761. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.devkey)?;
  2762. },
  2763. 3 => {
  2764. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.signature)?;
  2765. },
  2766. 4 => {
  2767. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.useragent)?;
  2768. },
  2769. 5 => {
  2770. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.callback_hash)?;
  2771. },
  2772. _ => {
  2773. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  2774. },
  2775. };
  2776. }
  2777. ::std::result::Result::Ok(())
  2778. }
  2779. // Compute sizes of nested messages
  2780. #[allow(unused_variables)]
  2781. fn compute_size(&self) -> u32 {
  2782. let mut my_size = 0;
  2783. if let Some(v) = self.version {
  2784. my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint);
  2785. }
  2786. if let Some(ref v) = self.devkey.as_ref() {
  2787. my_size += ::protobuf::rt::bytes_size(2, &v);
  2788. }
  2789. if let Some(ref v) = self.signature.as_ref() {
  2790. my_size += ::protobuf::rt::bytes_size(3, &v);
  2791. }
  2792. if let Some(ref v) = self.useragent.as_ref() {
  2793. my_size += ::protobuf::rt::string_size(4, &v);
  2794. }
  2795. if let Some(ref v) = self.callback_hash.as_ref() {
  2796. my_size += ::protobuf::rt::bytes_size(5, &v);
  2797. }
  2798. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  2799. self.cached_size.set(my_size);
  2800. my_size
  2801. }
  2802. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  2803. if let Some(v) = self.version {
  2804. os.write_uint32(1, v)?;
  2805. }
  2806. if let Some(ref v) = self.devkey.as_ref() {
  2807. os.write_bytes(2, &v)?;
  2808. }
  2809. if let Some(ref v) = self.signature.as_ref() {
  2810. os.write_bytes(3, &v)?;
  2811. }
  2812. if let Some(ref v) = self.useragent.as_ref() {
  2813. os.write_string(4, &v)?;
  2814. }
  2815. if let Some(ref v) = self.callback_hash.as_ref() {
  2816. os.write_bytes(5, &v)?;
  2817. }
  2818. os.write_unknown_fields(self.get_unknown_fields())?;
  2819. ::std::result::Result::Ok(())
  2820. }
  2821. fn get_cached_size(&self) -> u32 {
  2822. self.cached_size.get()
  2823. }
  2824. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  2825. &self.unknown_fields
  2826. }
  2827. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  2828. &mut self.unknown_fields
  2829. }
  2830. fn as_any(&self) -> &::std::any::Any {
  2831. self as &::std::any::Any
  2832. }
  2833. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  2834. self as &mut ::std::any::Any
  2835. }
  2836. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  2837. self
  2838. }
  2839. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  2840. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  2841. }
  2842. }
  2843. impl ::protobuf::MessageStatic for LibspotifyAppKey {
  2844. fn new() -> LibspotifyAppKey {
  2845. LibspotifyAppKey::new()
  2846. }
  2847. fn descriptor_static(_: ::std::option::Option<LibspotifyAppKey>) -> &'static ::protobuf::reflect::MessageDescriptor {
  2848. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  2849. lock: ::protobuf::lazy::ONCE_INIT,
  2850. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  2851. };
  2852. unsafe {
  2853. descriptor.get(|| {
  2854. let mut fields = ::std::vec::Vec::new();
  2855. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
  2856. "version",
  2857. LibspotifyAppKey::get_version_for_reflect,
  2858. LibspotifyAppKey::mut_version_for_reflect,
  2859. ));
  2860. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2861. "devkey",
  2862. LibspotifyAppKey::get_devkey_for_reflect,
  2863. LibspotifyAppKey::mut_devkey_for_reflect,
  2864. ));
  2865. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2866. "signature",
  2867. LibspotifyAppKey::get_signature_for_reflect,
  2868. LibspotifyAppKey::mut_signature_for_reflect,
  2869. ));
  2870. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  2871. "useragent",
  2872. LibspotifyAppKey::get_useragent_for_reflect,
  2873. LibspotifyAppKey::mut_useragent_for_reflect,
  2874. ));
  2875. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  2876. "callback_hash",
  2877. LibspotifyAppKey::get_callback_hash_for_reflect,
  2878. LibspotifyAppKey::mut_callback_hash_for_reflect,
  2879. ));
  2880. ::protobuf::reflect::MessageDescriptor::new::<LibspotifyAppKey>(
  2881. "LibspotifyAppKey",
  2882. fields,
  2883. file_descriptor_proto()
  2884. )
  2885. })
  2886. }
  2887. }
  2888. }
  2889. impl ::protobuf::Clear for LibspotifyAppKey {
  2890. fn clear(&mut self) {
  2891. self.clear_version();
  2892. self.clear_devkey();
  2893. self.clear_signature();
  2894. self.clear_useragent();
  2895. self.clear_callback_hash();
  2896. self.unknown_fields.clear();
  2897. }
  2898. }
  2899. impl ::std::fmt::Debug for LibspotifyAppKey {
  2900. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  2901. ::protobuf::text_format::fmt(self, f)
  2902. }
  2903. }
  2904. impl ::protobuf::reflect::ProtobufValue for LibspotifyAppKey {
  2905. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  2906. ::protobuf::reflect::ProtobufValueRef::Message(self)
  2907. }
  2908. }
  2909. #[derive(PartialEq,Clone,Default)]
  2910. pub struct ClientInfo {
  2911. // message fields
  2912. limited: ::std::option::Option<bool>,
  2913. fb: ::protobuf::SingularPtrField<ClientInfoFacebook>,
  2914. language: ::protobuf::SingularField<::std::string::String>,
  2915. // special fields
  2916. unknown_fields: ::protobuf::UnknownFields,
  2917. cached_size: ::protobuf::CachedSize,
  2918. }
  2919. // see codegen.rs for the explanation why impl Sync explicitly
  2920. unsafe impl ::std::marker::Sync for ClientInfo {}
  2921. impl ClientInfo {
  2922. pub fn new() -> ClientInfo {
  2923. ::std::default::Default::default()
  2924. }
  2925. pub fn default_instance() -> &'static ClientInfo {
  2926. static mut instance: ::protobuf::lazy::Lazy<ClientInfo> = ::protobuf::lazy::Lazy {
  2927. lock: ::protobuf::lazy::ONCE_INIT,
  2928. ptr: 0 as *const ClientInfo,
  2929. };
  2930. unsafe {
  2931. instance.get(ClientInfo::new)
  2932. }
  2933. }
  2934. // optional bool limited = 1;
  2935. pub fn clear_limited(&mut self) {
  2936. self.limited = ::std::option::Option::None;
  2937. }
  2938. pub fn has_limited(&self) -> bool {
  2939. self.limited.is_some()
  2940. }
  2941. // Param is passed by value, moved
  2942. pub fn set_limited(&mut self, v: bool) {
  2943. self.limited = ::std::option::Option::Some(v);
  2944. }
  2945. pub fn get_limited(&self) -> bool {
  2946. self.limited.unwrap_or(false)
  2947. }
  2948. fn get_limited_for_reflect(&self) -> &::std::option::Option<bool> {
  2949. &self.limited
  2950. }
  2951. fn mut_limited_for_reflect(&mut self) -> &mut ::std::option::Option<bool> {
  2952. &mut self.limited
  2953. }
  2954. // optional .ClientInfoFacebook fb = 2;
  2955. pub fn clear_fb(&mut self) {
  2956. self.fb.clear();
  2957. }
  2958. pub fn has_fb(&self) -> bool {
  2959. self.fb.is_some()
  2960. }
  2961. // Param is passed by value, moved
  2962. pub fn set_fb(&mut self, v: ClientInfoFacebook) {
  2963. self.fb = ::protobuf::SingularPtrField::some(v);
  2964. }
  2965. // Mutable pointer to the field.
  2966. // If field is not initialized, it is initialized with default value first.
  2967. pub fn mut_fb(&mut self) -> &mut ClientInfoFacebook {
  2968. if self.fb.is_none() {
  2969. self.fb.set_default();
  2970. }
  2971. self.fb.as_mut().unwrap()
  2972. }
  2973. // Take field
  2974. pub fn take_fb(&mut self) -> ClientInfoFacebook {
  2975. self.fb.take().unwrap_or_else(|| ClientInfoFacebook::new())
  2976. }
  2977. pub fn get_fb(&self) -> &ClientInfoFacebook {
  2978. self.fb.as_ref().unwrap_or_else(|| ClientInfoFacebook::default_instance())
  2979. }
  2980. fn get_fb_for_reflect(&self) -> &::protobuf::SingularPtrField<ClientInfoFacebook> {
  2981. &self.fb
  2982. }
  2983. fn mut_fb_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<ClientInfoFacebook> {
  2984. &mut self.fb
  2985. }
  2986. // optional string language = 3;
  2987. pub fn clear_language(&mut self) {
  2988. self.language.clear();
  2989. }
  2990. pub fn has_language(&self) -> bool {
  2991. self.language.is_some()
  2992. }
  2993. // Param is passed by value, moved
  2994. pub fn set_language(&mut self, v: ::std::string::String) {
  2995. self.language = ::protobuf::SingularField::some(v);
  2996. }
  2997. // Mutable pointer to the field.
  2998. // If field is not initialized, it is initialized with default value first.
  2999. pub fn mut_language(&mut self) -> &mut ::std::string::String {
  3000. if self.language.is_none() {
  3001. self.language.set_default();
  3002. }
  3003. self.language.as_mut().unwrap()
  3004. }
  3005. // Take field
  3006. pub fn take_language(&mut self) -> ::std::string::String {
  3007. self.language.take().unwrap_or_else(|| ::std::string::String::new())
  3008. }
  3009. pub fn get_language(&self) -> &str {
  3010. match self.language.as_ref() {
  3011. Some(v) => &v,
  3012. None => "",
  3013. }
  3014. }
  3015. fn get_language_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  3016. &self.language
  3017. }
  3018. fn mut_language_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  3019. &mut self.language
  3020. }
  3021. }
  3022. impl ::protobuf::Message for ClientInfo {
  3023. fn is_initialized(&self) -> bool {
  3024. for v in &self.fb {
  3025. if !v.is_initialized() {
  3026. return false;
  3027. }
  3028. };
  3029. true
  3030. }
  3031. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3032. while !is.eof()? {
  3033. let (field_number, wire_type) = is.read_tag_unpack()?;
  3034. match field_number {
  3035. 1 => {
  3036. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3037. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3038. }
  3039. let tmp = is.read_bool()?;
  3040. self.limited = ::std::option::Option::Some(tmp);
  3041. },
  3042. 2 => {
  3043. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fb)?;
  3044. },
  3045. 3 => {
  3046. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.language)?;
  3047. },
  3048. _ => {
  3049. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3050. },
  3051. };
  3052. }
  3053. ::std::result::Result::Ok(())
  3054. }
  3055. // Compute sizes of nested messages
  3056. #[allow(unused_variables)]
  3057. fn compute_size(&self) -> u32 {
  3058. let mut my_size = 0;
  3059. if let Some(v) = self.limited {
  3060. my_size += 2;
  3061. }
  3062. if let Some(ref v) = self.fb.as_ref() {
  3063. let len = v.compute_size();
  3064. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3065. }
  3066. if let Some(ref v) = self.language.as_ref() {
  3067. my_size += ::protobuf::rt::string_size(3, &v);
  3068. }
  3069. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3070. self.cached_size.set(my_size);
  3071. my_size
  3072. }
  3073. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3074. if let Some(v) = self.limited {
  3075. os.write_bool(1, v)?;
  3076. }
  3077. if let Some(ref v) = self.fb.as_ref() {
  3078. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3079. os.write_raw_varint32(v.get_cached_size())?;
  3080. v.write_to_with_cached_sizes(os)?;
  3081. }
  3082. if let Some(ref v) = self.language.as_ref() {
  3083. os.write_string(3, &v)?;
  3084. }
  3085. os.write_unknown_fields(self.get_unknown_fields())?;
  3086. ::std::result::Result::Ok(())
  3087. }
  3088. fn get_cached_size(&self) -> u32 {
  3089. self.cached_size.get()
  3090. }
  3091. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3092. &self.unknown_fields
  3093. }
  3094. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3095. &mut self.unknown_fields
  3096. }
  3097. fn as_any(&self) -> &::std::any::Any {
  3098. self as &::std::any::Any
  3099. }
  3100. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3101. self as &mut ::std::any::Any
  3102. }
  3103. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3104. self
  3105. }
  3106. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3107. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3108. }
  3109. }
  3110. impl ::protobuf::MessageStatic for ClientInfo {
  3111. fn new() -> ClientInfo {
  3112. ClientInfo::new()
  3113. }
  3114. fn descriptor_static(_: ::std::option::Option<ClientInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3115. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3116. lock: ::protobuf::lazy::ONCE_INIT,
  3117. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3118. };
  3119. unsafe {
  3120. descriptor.get(|| {
  3121. let mut fields = ::std::vec::Vec::new();
  3122. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  3123. "limited",
  3124. ClientInfo::get_limited_for_reflect,
  3125. ClientInfo::mut_limited_for_reflect,
  3126. ));
  3127. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<ClientInfoFacebook>>(
  3128. "fb",
  3129. ClientInfo::get_fb_for_reflect,
  3130. ClientInfo::mut_fb_for_reflect,
  3131. ));
  3132. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3133. "language",
  3134. ClientInfo::get_language_for_reflect,
  3135. ClientInfo::mut_language_for_reflect,
  3136. ));
  3137. ::protobuf::reflect::MessageDescriptor::new::<ClientInfo>(
  3138. "ClientInfo",
  3139. fields,
  3140. file_descriptor_proto()
  3141. )
  3142. })
  3143. }
  3144. }
  3145. }
  3146. impl ::protobuf::Clear for ClientInfo {
  3147. fn clear(&mut self) {
  3148. self.clear_limited();
  3149. self.clear_fb();
  3150. self.clear_language();
  3151. self.unknown_fields.clear();
  3152. }
  3153. }
  3154. impl ::std::fmt::Debug for ClientInfo {
  3155. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3156. ::protobuf::text_format::fmt(self, f)
  3157. }
  3158. }
  3159. impl ::protobuf::reflect::ProtobufValue for ClientInfo {
  3160. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3161. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3162. }
  3163. }
  3164. #[derive(PartialEq,Clone,Default)]
  3165. pub struct ClientInfoFacebook {
  3166. // message fields
  3167. machine_id: ::protobuf::SingularField<::std::string::String>,
  3168. // special fields
  3169. unknown_fields: ::protobuf::UnknownFields,
  3170. cached_size: ::protobuf::CachedSize,
  3171. }
  3172. // see codegen.rs for the explanation why impl Sync explicitly
  3173. unsafe impl ::std::marker::Sync for ClientInfoFacebook {}
  3174. impl ClientInfoFacebook {
  3175. pub fn new() -> ClientInfoFacebook {
  3176. ::std::default::Default::default()
  3177. }
  3178. pub fn default_instance() -> &'static ClientInfoFacebook {
  3179. static mut instance: ::protobuf::lazy::Lazy<ClientInfoFacebook> = ::protobuf::lazy::Lazy {
  3180. lock: ::protobuf::lazy::ONCE_INIT,
  3181. ptr: 0 as *const ClientInfoFacebook,
  3182. };
  3183. unsafe {
  3184. instance.get(ClientInfoFacebook::new)
  3185. }
  3186. }
  3187. // optional string machine_id = 1;
  3188. pub fn clear_machine_id(&mut self) {
  3189. self.machine_id.clear();
  3190. }
  3191. pub fn has_machine_id(&self) -> bool {
  3192. self.machine_id.is_some()
  3193. }
  3194. // Param is passed by value, moved
  3195. pub fn set_machine_id(&mut self, v: ::std::string::String) {
  3196. self.machine_id = ::protobuf::SingularField::some(v);
  3197. }
  3198. // Mutable pointer to the field.
  3199. // If field is not initialized, it is initialized with default value first.
  3200. pub fn mut_machine_id(&mut self) -> &mut ::std::string::String {
  3201. if self.machine_id.is_none() {
  3202. self.machine_id.set_default();
  3203. }
  3204. self.machine_id.as_mut().unwrap()
  3205. }
  3206. // Take field
  3207. pub fn take_machine_id(&mut self) -> ::std::string::String {
  3208. self.machine_id.take().unwrap_or_else(|| ::std::string::String::new())
  3209. }
  3210. pub fn get_machine_id(&self) -> &str {
  3211. match self.machine_id.as_ref() {
  3212. Some(v) => &v,
  3213. None => "",
  3214. }
  3215. }
  3216. fn get_machine_id_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  3217. &self.machine_id
  3218. }
  3219. fn mut_machine_id_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  3220. &mut self.machine_id
  3221. }
  3222. }
  3223. impl ::protobuf::Message for ClientInfoFacebook {
  3224. fn is_initialized(&self) -> bool {
  3225. true
  3226. }
  3227. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3228. while !is.eof()? {
  3229. let (field_number, wire_type) = is.read_tag_unpack()?;
  3230. match field_number {
  3231. 1 => {
  3232. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.machine_id)?;
  3233. },
  3234. _ => {
  3235. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3236. },
  3237. };
  3238. }
  3239. ::std::result::Result::Ok(())
  3240. }
  3241. // Compute sizes of nested messages
  3242. #[allow(unused_variables)]
  3243. fn compute_size(&self) -> u32 {
  3244. let mut my_size = 0;
  3245. if let Some(ref v) = self.machine_id.as_ref() {
  3246. my_size += ::protobuf::rt::string_size(1, &v);
  3247. }
  3248. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3249. self.cached_size.set(my_size);
  3250. my_size
  3251. }
  3252. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3253. if let Some(ref v) = self.machine_id.as_ref() {
  3254. os.write_string(1, &v)?;
  3255. }
  3256. os.write_unknown_fields(self.get_unknown_fields())?;
  3257. ::std::result::Result::Ok(())
  3258. }
  3259. fn get_cached_size(&self) -> u32 {
  3260. self.cached_size.get()
  3261. }
  3262. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3263. &self.unknown_fields
  3264. }
  3265. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3266. &mut self.unknown_fields
  3267. }
  3268. fn as_any(&self) -> &::std::any::Any {
  3269. self as &::std::any::Any
  3270. }
  3271. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3272. self as &mut ::std::any::Any
  3273. }
  3274. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3275. self
  3276. }
  3277. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3278. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3279. }
  3280. }
  3281. impl ::protobuf::MessageStatic for ClientInfoFacebook {
  3282. fn new() -> ClientInfoFacebook {
  3283. ClientInfoFacebook::new()
  3284. }
  3285. fn descriptor_static(_: ::std::option::Option<ClientInfoFacebook>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3286. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3287. lock: ::protobuf::lazy::ONCE_INIT,
  3288. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3289. };
  3290. unsafe {
  3291. descriptor.get(|| {
  3292. let mut fields = ::std::vec::Vec::new();
  3293. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3294. "machine_id",
  3295. ClientInfoFacebook::get_machine_id_for_reflect,
  3296. ClientInfoFacebook::mut_machine_id_for_reflect,
  3297. ));
  3298. ::protobuf::reflect::MessageDescriptor::new::<ClientInfoFacebook>(
  3299. "ClientInfoFacebook",
  3300. fields,
  3301. file_descriptor_proto()
  3302. )
  3303. })
  3304. }
  3305. }
  3306. }
  3307. impl ::protobuf::Clear for ClientInfoFacebook {
  3308. fn clear(&mut self) {
  3309. self.clear_machine_id();
  3310. self.unknown_fields.clear();
  3311. }
  3312. }
  3313. impl ::std::fmt::Debug for ClientInfoFacebook {
  3314. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3315. ::protobuf::text_format::fmt(self, f)
  3316. }
  3317. }
  3318. impl ::protobuf::reflect::ProtobufValue for ClientInfoFacebook {
  3319. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3320. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3321. }
  3322. }
  3323. #[derive(PartialEq,Clone,Default)]
  3324. pub struct APWelcome {
  3325. // message fields
  3326. canonical_username: ::protobuf::SingularField<::std::string::String>,
  3327. account_type_logged_in: ::std::option::Option<AccountType>,
  3328. credentials_type_logged_in: ::std::option::Option<AccountType>,
  3329. reusable_auth_credentials_type: ::std::option::Option<AuthenticationType>,
  3330. reusable_auth_credentials: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  3331. lfs_secret: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  3332. account_info: ::protobuf::SingularPtrField<AccountInfo>,
  3333. fb: ::protobuf::SingularPtrField<AccountInfoFacebook>,
  3334. // special fields
  3335. unknown_fields: ::protobuf::UnknownFields,
  3336. cached_size: ::protobuf::CachedSize,
  3337. }
  3338. // see codegen.rs for the explanation why impl Sync explicitly
  3339. unsafe impl ::std::marker::Sync for APWelcome {}
  3340. impl APWelcome {
  3341. pub fn new() -> APWelcome {
  3342. ::std::default::Default::default()
  3343. }
  3344. pub fn default_instance() -> &'static APWelcome {
  3345. static mut instance: ::protobuf::lazy::Lazy<APWelcome> = ::protobuf::lazy::Lazy {
  3346. lock: ::protobuf::lazy::ONCE_INIT,
  3347. ptr: 0 as *const APWelcome,
  3348. };
  3349. unsafe {
  3350. instance.get(APWelcome::new)
  3351. }
  3352. }
  3353. // required string canonical_username = 10;
  3354. pub fn clear_canonical_username(&mut self) {
  3355. self.canonical_username.clear();
  3356. }
  3357. pub fn has_canonical_username(&self) -> bool {
  3358. self.canonical_username.is_some()
  3359. }
  3360. // Param is passed by value, moved
  3361. pub fn set_canonical_username(&mut self, v: ::std::string::String) {
  3362. self.canonical_username = ::protobuf::SingularField::some(v);
  3363. }
  3364. // Mutable pointer to the field.
  3365. // If field is not initialized, it is initialized with default value first.
  3366. pub fn mut_canonical_username(&mut self) -> &mut ::std::string::String {
  3367. if self.canonical_username.is_none() {
  3368. self.canonical_username.set_default();
  3369. }
  3370. self.canonical_username.as_mut().unwrap()
  3371. }
  3372. // Take field
  3373. pub fn take_canonical_username(&mut self) -> ::std::string::String {
  3374. self.canonical_username.take().unwrap_or_else(|| ::std::string::String::new())
  3375. }
  3376. pub fn get_canonical_username(&self) -> &str {
  3377. match self.canonical_username.as_ref() {
  3378. Some(v) => &v,
  3379. None => "",
  3380. }
  3381. }
  3382. fn get_canonical_username_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  3383. &self.canonical_username
  3384. }
  3385. fn mut_canonical_username_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  3386. &mut self.canonical_username
  3387. }
  3388. // required .AccountType account_type_logged_in = 20;
  3389. pub fn clear_account_type_logged_in(&mut self) {
  3390. self.account_type_logged_in = ::std::option::Option::None;
  3391. }
  3392. pub fn has_account_type_logged_in(&self) -> bool {
  3393. self.account_type_logged_in.is_some()
  3394. }
  3395. // Param is passed by value, moved
  3396. pub fn set_account_type_logged_in(&mut self, v: AccountType) {
  3397. self.account_type_logged_in = ::std::option::Option::Some(v);
  3398. }
  3399. pub fn get_account_type_logged_in(&self) -> AccountType {
  3400. self.account_type_logged_in.unwrap_or(AccountType::Spotify)
  3401. }
  3402. fn get_account_type_logged_in_for_reflect(&self) -> &::std::option::Option<AccountType> {
  3403. &self.account_type_logged_in
  3404. }
  3405. fn mut_account_type_logged_in_for_reflect(&mut self) -> &mut ::std::option::Option<AccountType> {
  3406. &mut self.account_type_logged_in
  3407. }
  3408. // required .AccountType credentials_type_logged_in = 25;
  3409. pub fn clear_credentials_type_logged_in(&mut self) {
  3410. self.credentials_type_logged_in = ::std::option::Option::None;
  3411. }
  3412. pub fn has_credentials_type_logged_in(&self) -> bool {
  3413. self.credentials_type_logged_in.is_some()
  3414. }
  3415. // Param is passed by value, moved
  3416. pub fn set_credentials_type_logged_in(&mut self, v: AccountType) {
  3417. self.credentials_type_logged_in = ::std::option::Option::Some(v);
  3418. }
  3419. pub fn get_credentials_type_logged_in(&self) -> AccountType {
  3420. self.credentials_type_logged_in.unwrap_or(AccountType::Spotify)
  3421. }
  3422. fn get_credentials_type_logged_in_for_reflect(&self) -> &::std::option::Option<AccountType> {
  3423. &self.credentials_type_logged_in
  3424. }
  3425. fn mut_credentials_type_logged_in_for_reflect(&mut self) -> &mut ::std::option::Option<AccountType> {
  3426. &mut self.credentials_type_logged_in
  3427. }
  3428. // required .AuthenticationType reusable_auth_credentials_type = 30;
  3429. pub fn clear_reusable_auth_credentials_type(&mut self) {
  3430. self.reusable_auth_credentials_type = ::std::option::Option::None;
  3431. }
  3432. pub fn has_reusable_auth_credentials_type(&self) -> bool {
  3433. self.reusable_auth_credentials_type.is_some()
  3434. }
  3435. // Param is passed by value, moved
  3436. pub fn set_reusable_auth_credentials_type(&mut self, v: AuthenticationType) {
  3437. self.reusable_auth_credentials_type = ::std::option::Option::Some(v);
  3438. }
  3439. pub fn get_reusable_auth_credentials_type(&self) -> AuthenticationType {
  3440. self.reusable_auth_credentials_type.unwrap_or(AuthenticationType::AUTHENTICATION_USER_PASS)
  3441. }
  3442. fn get_reusable_auth_credentials_type_for_reflect(&self) -> &::std::option::Option<AuthenticationType> {
  3443. &self.reusable_auth_credentials_type
  3444. }
  3445. fn mut_reusable_auth_credentials_type_for_reflect(&mut self) -> &mut ::std::option::Option<AuthenticationType> {
  3446. &mut self.reusable_auth_credentials_type
  3447. }
  3448. // required bytes reusable_auth_credentials = 40;
  3449. pub fn clear_reusable_auth_credentials(&mut self) {
  3450. self.reusable_auth_credentials.clear();
  3451. }
  3452. pub fn has_reusable_auth_credentials(&self) -> bool {
  3453. self.reusable_auth_credentials.is_some()
  3454. }
  3455. // Param is passed by value, moved
  3456. pub fn set_reusable_auth_credentials(&mut self, v: ::std::vec::Vec<u8>) {
  3457. self.reusable_auth_credentials = ::protobuf::SingularField::some(v);
  3458. }
  3459. // Mutable pointer to the field.
  3460. // If field is not initialized, it is initialized with default value first.
  3461. pub fn mut_reusable_auth_credentials(&mut self) -> &mut ::std::vec::Vec<u8> {
  3462. if self.reusable_auth_credentials.is_none() {
  3463. self.reusable_auth_credentials.set_default();
  3464. }
  3465. self.reusable_auth_credentials.as_mut().unwrap()
  3466. }
  3467. // Take field
  3468. pub fn take_reusable_auth_credentials(&mut self) -> ::std::vec::Vec<u8> {
  3469. self.reusable_auth_credentials.take().unwrap_or_else(|| ::std::vec::Vec::new())
  3470. }
  3471. pub fn get_reusable_auth_credentials(&self) -> &[u8] {
  3472. match self.reusable_auth_credentials.as_ref() {
  3473. Some(v) => &v,
  3474. None => &[],
  3475. }
  3476. }
  3477. fn get_reusable_auth_credentials_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  3478. &self.reusable_auth_credentials
  3479. }
  3480. fn mut_reusable_auth_credentials_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  3481. &mut self.reusable_auth_credentials
  3482. }
  3483. // optional bytes lfs_secret = 50;
  3484. pub fn clear_lfs_secret(&mut self) {
  3485. self.lfs_secret.clear();
  3486. }
  3487. pub fn has_lfs_secret(&self) -> bool {
  3488. self.lfs_secret.is_some()
  3489. }
  3490. // Param is passed by value, moved
  3491. pub fn set_lfs_secret(&mut self, v: ::std::vec::Vec<u8>) {
  3492. self.lfs_secret = ::protobuf::SingularField::some(v);
  3493. }
  3494. // Mutable pointer to the field.
  3495. // If field is not initialized, it is initialized with default value first.
  3496. pub fn mut_lfs_secret(&mut self) -> &mut ::std::vec::Vec<u8> {
  3497. if self.lfs_secret.is_none() {
  3498. self.lfs_secret.set_default();
  3499. }
  3500. self.lfs_secret.as_mut().unwrap()
  3501. }
  3502. // Take field
  3503. pub fn take_lfs_secret(&mut self) -> ::std::vec::Vec<u8> {
  3504. self.lfs_secret.take().unwrap_or_else(|| ::std::vec::Vec::new())
  3505. }
  3506. pub fn get_lfs_secret(&self) -> &[u8] {
  3507. match self.lfs_secret.as_ref() {
  3508. Some(v) => &v,
  3509. None => &[],
  3510. }
  3511. }
  3512. fn get_lfs_secret_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  3513. &self.lfs_secret
  3514. }
  3515. fn mut_lfs_secret_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  3516. &mut self.lfs_secret
  3517. }
  3518. // optional .AccountInfo account_info = 60;
  3519. pub fn clear_account_info(&mut self) {
  3520. self.account_info.clear();
  3521. }
  3522. pub fn has_account_info(&self) -> bool {
  3523. self.account_info.is_some()
  3524. }
  3525. // Param is passed by value, moved
  3526. pub fn set_account_info(&mut self, v: AccountInfo) {
  3527. self.account_info = ::protobuf::SingularPtrField::some(v);
  3528. }
  3529. // Mutable pointer to the field.
  3530. // If field is not initialized, it is initialized with default value first.
  3531. pub fn mut_account_info(&mut self) -> &mut AccountInfo {
  3532. if self.account_info.is_none() {
  3533. self.account_info.set_default();
  3534. }
  3535. self.account_info.as_mut().unwrap()
  3536. }
  3537. // Take field
  3538. pub fn take_account_info(&mut self) -> AccountInfo {
  3539. self.account_info.take().unwrap_or_else(|| AccountInfo::new())
  3540. }
  3541. pub fn get_account_info(&self) -> &AccountInfo {
  3542. self.account_info.as_ref().unwrap_or_else(|| AccountInfo::default_instance())
  3543. }
  3544. fn get_account_info_for_reflect(&self) -> &::protobuf::SingularPtrField<AccountInfo> {
  3545. &self.account_info
  3546. }
  3547. fn mut_account_info_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<AccountInfo> {
  3548. &mut self.account_info
  3549. }
  3550. // optional .AccountInfoFacebook fb = 70;
  3551. pub fn clear_fb(&mut self) {
  3552. self.fb.clear();
  3553. }
  3554. pub fn has_fb(&self) -> bool {
  3555. self.fb.is_some()
  3556. }
  3557. // Param is passed by value, moved
  3558. pub fn set_fb(&mut self, v: AccountInfoFacebook) {
  3559. self.fb = ::protobuf::SingularPtrField::some(v);
  3560. }
  3561. // Mutable pointer to the field.
  3562. // If field is not initialized, it is initialized with default value first.
  3563. pub fn mut_fb(&mut self) -> &mut AccountInfoFacebook {
  3564. if self.fb.is_none() {
  3565. self.fb.set_default();
  3566. }
  3567. self.fb.as_mut().unwrap()
  3568. }
  3569. // Take field
  3570. pub fn take_fb(&mut self) -> AccountInfoFacebook {
  3571. self.fb.take().unwrap_or_else(|| AccountInfoFacebook::new())
  3572. }
  3573. pub fn get_fb(&self) -> &AccountInfoFacebook {
  3574. self.fb.as_ref().unwrap_or_else(|| AccountInfoFacebook::default_instance())
  3575. }
  3576. fn get_fb_for_reflect(&self) -> &::protobuf::SingularPtrField<AccountInfoFacebook> {
  3577. &self.fb
  3578. }
  3579. fn mut_fb_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<AccountInfoFacebook> {
  3580. &mut self.fb
  3581. }
  3582. }
  3583. impl ::protobuf::Message for APWelcome {
  3584. fn is_initialized(&self) -> bool {
  3585. if self.canonical_username.is_none() {
  3586. return false;
  3587. }
  3588. if self.account_type_logged_in.is_none() {
  3589. return false;
  3590. }
  3591. if self.credentials_type_logged_in.is_none() {
  3592. return false;
  3593. }
  3594. if self.reusable_auth_credentials_type.is_none() {
  3595. return false;
  3596. }
  3597. if self.reusable_auth_credentials.is_none() {
  3598. return false;
  3599. }
  3600. for v in &self.account_info {
  3601. if !v.is_initialized() {
  3602. return false;
  3603. }
  3604. };
  3605. for v in &self.fb {
  3606. if !v.is_initialized() {
  3607. return false;
  3608. }
  3609. };
  3610. true
  3611. }
  3612. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3613. while !is.eof()? {
  3614. let (field_number, wire_type) = is.read_tag_unpack()?;
  3615. match field_number {
  3616. 10 => {
  3617. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.canonical_username)?;
  3618. },
  3619. 20 => {
  3620. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3621. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3622. }
  3623. let tmp = is.read_enum()?;
  3624. self.account_type_logged_in = ::std::option::Option::Some(tmp);
  3625. },
  3626. 25 => {
  3627. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3628. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3629. }
  3630. let tmp = is.read_enum()?;
  3631. self.credentials_type_logged_in = ::std::option::Option::Some(tmp);
  3632. },
  3633. 30 => {
  3634. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  3635. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  3636. }
  3637. let tmp = is.read_enum()?;
  3638. self.reusable_auth_credentials_type = ::std::option::Option::Some(tmp);
  3639. },
  3640. 40 => {
  3641. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.reusable_auth_credentials)?;
  3642. },
  3643. 50 => {
  3644. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.lfs_secret)?;
  3645. },
  3646. 60 => {
  3647. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.account_info)?;
  3648. },
  3649. 70 => {
  3650. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.fb)?;
  3651. },
  3652. _ => {
  3653. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3654. },
  3655. };
  3656. }
  3657. ::std::result::Result::Ok(())
  3658. }
  3659. // Compute sizes of nested messages
  3660. #[allow(unused_variables)]
  3661. fn compute_size(&self) -> u32 {
  3662. let mut my_size = 0;
  3663. if let Some(ref v) = self.canonical_username.as_ref() {
  3664. my_size += ::protobuf::rt::string_size(10, &v);
  3665. }
  3666. if let Some(v) = self.account_type_logged_in {
  3667. my_size += ::protobuf::rt::enum_size(20, v);
  3668. }
  3669. if let Some(v) = self.credentials_type_logged_in {
  3670. my_size += ::protobuf::rt::enum_size(25, v);
  3671. }
  3672. if let Some(v) = self.reusable_auth_credentials_type {
  3673. my_size += ::protobuf::rt::enum_size(30, v);
  3674. }
  3675. if let Some(ref v) = self.reusable_auth_credentials.as_ref() {
  3676. my_size += ::protobuf::rt::bytes_size(40, &v);
  3677. }
  3678. if let Some(ref v) = self.lfs_secret.as_ref() {
  3679. my_size += ::protobuf::rt::bytes_size(50, &v);
  3680. }
  3681. if let Some(ref v) = self.account_info.as_ref() {
  3682. let len = v.compute_size();
  3683. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3684. }
  3685. if let Some(ref v) = self.fb.as_ref() {
  3686. let len = v.compute_size();
  3687. my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3688. }
  3689. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3690. self.cached_size.set(my_size);
  3691. my_size
  3692. }
  3693. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3694. if let Some(ref v) = self.canonical_username.as_ref() {
  3695. os.write_string(10, &v)?;
  3696. }
  3697. if let Some(v) = self.account_type_logged_in {
  3698. os.write_enum(20, v.value())?;
  3699. }
  3700. if let Some(v) = self.credentials_type_logged_in {
  3701. os.write_enum(25, v.value())?;
  3702. }
  3703. if let Some(v) = self.reusable_auth_credentials_type {
  3704. os.write_enum(30, v.value())?;
  3705. }
  3706. if let Some(ref v) = self.reusable_auth_credentials.as_ref() {
  3707. os.write_bytes(40, &v)?;
  3708. }
  3709. if let Some(ref v) = self.lfs_secret.as_ref() {
  3710. os.write_bytes(50, &v)?;
  3711. }
  3712. if let Some(ref v) = self.account_info.as_ref() {
  3713. os.write_tag(60, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3714. os.write_raw_varint32(v.get_cached_size())?;
  3715. v.write_to_with_cached_sizes(os)?;
  3716. }
  3717. if let Some(ref v) = self.fb.as_ref() {
  3718. os.write_tag(70, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3719. os.write_raw_varint32(v.get_cached_size())?;
  3720. v.write_to_with_cached_sizes(os)?;
  3721. }
  3722. os.write_unknown_fields(self.get_unknown_fields())?;
  3723. ::std::result::Result::Ok(())
  3724. }
  3725. fn get_cached_size(&self) -> u32 {
  3726. self.cached_size.get()
  3727. }
  3728. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3729. &self.unknown_fields
  3730. }
  3731. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3732. &mut self.unknown_fields
  3733. }
  3734. fn as_any(&self) -> &::std::any::Any {
  3735. self as &::std::any::Any
  3736. }
  3737. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3738. self as &mut ::std::any::Any
  3739. }
  3740. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3741. self
  3742. }
  3743. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  3744. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  3745. }
  3746. }
  3747. impl ::protobuf::MessageStatic for APWelcome {
  3748. fn new() -> APWelcome {
  3749. APWelcome::new()
  3750. }
  3751. fn descriptor_static(_: ::std::option::Option<APWelcome>) -> &'static ::protobuf::reflect::MessageDescriptor {
  3752. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  3753. lock: ::protobuf::lazy::ONCE_INIT,
  3754. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  3755. };
  3756. unsafe {
  3757. descriptor.get(|| {
  3758. let mut fields = ::std::vec::Vec::new();
  3759. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  3760. "canonical_username",
  3761. APWelcome::get_canonical_username_for_reflect,
  3762. APWelcome::mut_canonical_username_for_reflect,
  3763. ));
  3764. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<AccountType>>(
  3765. "account_type_logged_in",
  3766. APWelcome::get_account_type_logged_in_for_reflect,
  3767. APWelcome::mut_account_type_logged_in_for_reflect,
  3768. ));
  3769. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<AccountType>>(
  3770. "credentials_type_logged_in",
  3771. APWelcome::get_credentials_type_logged_in_for_reflect,
  3772. APWelcome::mut_credentials_type_logged_in_for_reflect,
  3773. ));
  3774. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<AuthenticationType>>(
  3775. "reusable_auth_credentials_type",
  3776. APWelcome::get_reusable_auth_credentials_type_for_reflect,
  3777. APWelcome::mut_reusable_auth_credentials_type_for_reflect,
  3778. ));
  3779. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  3780. "reusable_auth_credentials",
  3781. APWelcome::get_reusable_auth_credentials_for_reflect,
  3782. APWelcome::mut_reusable_auth_credentials_for_reflect,
  3783. ));
  3784. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  3785. "lfs_secret",
  3786. APWelcome::get_lfs_secret_for_reflect,
  3787. APWelcome::mut_lfs_secret_for_reflect,
  3788. ));
  3789. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AccountInfo>>(
  3790. "account_info",
  3791. APWelcome::get_account_info_for_reflect,
  3792. APWelcome::mut_account_info_for_reflect,
  3793. ));
  3794. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AccountInfoFacebook>>(
  3795. "fb",
  3796. APWelcome::get_fb_for_reflect,
  3797. APWelcome::mut_fb_for_reflect,
  3798. ));
  3799. ::protobuf::reflect::MessageDescriptor::new::<APWelcome>(
  3800. "APWelcome",
  3801. fields,
  3802. file_descriptor_proto()
  3803. )
  3804. })
  3805. }
  3806. }
  3807. }
  3808. impl ::protobuf::Clear for APWelcome {
  3809. fn clear(&mut self) {
  3810. self.clear_canonical_username();
  3811. self.clear_account_type_logged_in();
  3812. self.clear_credentials_type_logged_in();
  3813. self.clear_reusable_auth_credentials_type();
  3814. self.clear_reusable_auth_credentials();
  3815. self.clear_lfs_secret();
  3816. self.clear_account_info();
  3817. self.clear_fb();
  3818. self.unknown_fields.clear();
  3819. }
  3820. }
  3821. impl ::std::fmt::Debug for APWelcome {
  3822. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  3823. ::protobuf::text_format::fmt(self, f)
  3824. }
  3825. }
  3826. impl ::protobuf::reflect::ProtobufValue for APWelcome {
  3827. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  3828. ::protobuf::reflect::ProtobufValueRef::Message(self)
  3829. }
  3830. }
  3831. #[derive(PartialEq,Clone,Default)]
  3832. pub struct AccountInfo {
  3833. // message fields
  3834. spotify: ::protobuf::SingularPtrField<AccountInfoSpotify>,
  3835. facebook: ::protobuf::SingularPtrField<AccountInfoFacebook>,
  3836. // special fields
  3837. unknown_fields: ::protobuf::UnknownFields,
  3838. cached_size: ::protobuf::CachedSize,
  3839. }
  3840. // see codegen.rs for the explanation why impl Sync explicitly
  3841. unsafe impl ::std::marker::Sync for AccountInfo {}
  3842. impl AccountInfo {
  3843. pub fn new() -> AccountInfo {
  3844. ::std::default::Default::default()
  3845. }
  3846. pub fn default_instance() -> &'static AccountInfo {
  3847. static mut instance: ::protobuf::lazy::Lazy<AccountInfo> = ::protobuf::lazy::Lazy {
  3848. lock: ::protobuf::lazy::ONCE_INIT,
  3849. ptr: 0 as *const AccountInfo,
  3850. };
  3851. unsafe {
  3852. instance.get(AccountInfo::new)
  3853. }
  3854. }
  3855. // optional .AccountInfoSpotify spotify = 1;
  3856. pub fn clear_spotify(&mut self) {
  3857. self.spotify.clear();
  3858. }
  3859. pub fn has_spotify(&self) -> bool {
  3860. self.spotify.is_some()
  3861. }
  3862. // Param is passed by value, moved
  3863. pub fn set_spotify(&mut self, v: AccountInfoSpotify) {
  3864. self.spotify = ::protobuf::SingularPtrField::some(v);
  3865. }
  3866. // Mutable pointer to the field.
  3867. // If field is not initialized, it is initialized with default value first.
  3868. pub fn mut_spotify(&mut self) -> &mut AccountInfoSpotify {
  3869. if self.spotify.is_none() {
  3870. self.spotify.set_default();
  3871. }
  3872. self.spotify.as_mut().unwrap()
  3873. }
  3874. // Take field
  3875. pub fn take_spotify(&mut self) -> AccountInfoSpotify {
  3876. self.spotify.take().unwrap_or_else(|| AccountInfoSpotify::new())
  3877. }
  3878. pub fn get_spotify(&self) -> &AccountInfoSpotify {
  3879. self.spotify.as_ref().unwrap_or_else(|| AccountInfoSpotify::default_instance())
  3880. }
  3881. fn get_spotify_for_reflect(&self) -> &::protobuf::SingularPtrField<AccountInfoSpotify> {
  3882. &self.spotify
  3883. }
  3884. fn mut_spotify_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<AccountInfoSpotify> {
  3885. &mut self.spotify
  3886. }
  3887. // optional .AccountInfoFacebook facebook = 2;
  3888. pub fn clear_facebook(&mut self) {
  3889. self.facebook.clear();
  3890. }
  3891. pub fn has_facebook(&self) -> bool {
  3892. self.facebook.is_some()
  3893. }
  3894. // Param is passed by value, moved
  3895. pub fn set_facebook(&mut self, v: AccountInfoFacebook) {
  3896. self.facebook = ::protobuf::SingularPtrField::some(v);
  3897. }
  3898. // Mutable pointer to the field.
  3899. // If field is not initialized, it is initialized with default value first.
  3900. pub fn mut_facebook(&mut self) -> &mut AccountInfoFacebook {
  3901. if self.facebook.is_none() {
  3902. self.facebook.set_default();
  3903. }
  3904. self.facebook.as_mut().unwrap()
  3905. }
  3906. // Take field
  3907. pub fn take_facebook(&mut self) -> AccountInfoFacebook {
  3908. self.facebook.take().unwrap_or_else(|| AccountInfoFacebook::new())
  3909. }
  3910. pub fn get_facebook(&self) -> &AccountInfoFacebook {
  3911. self.facebook.as_ref().unwrap_or_else(|| AccountInfoFacebook::default_instance())
  3912. }
  3913. fn get_facebook_for_reflect(&self) -> &::protobuf::SingularPtrField<AccountInfoFacebook> {
  3914. &self.facebook
  3915. }
  3916. fn mut_facebook_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<AccountInfoFacebook> {
  3917. &mut self.facebook
  3918. }
  3919. }
  3920. impl ::protobuf::Message for AccountInfo {
  3921. fn is_initialized(&self) -> bool {
  3922. for v in &self.spotify {
  3923. if !v.is_initialized() {
  3924. return false;
  3925. }
  3926. };
  3927. for v in &self.facebook {
  3928. if !v.is_initialized() {
  3929. return false;
  3930. }
  3931. };
  3932. true
  3933. }
  3934. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  3935. while !is.eof()? {
  3936. let (field_number, wire_type) = is.read_tag_unpack()?;
  3937. match field_number {
  3938. 1 => {
  3939. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.spotify)?;
  3940. },
  3941. 2 => {
  3942. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.facebook)?;
  3943. },
  3944. _ => {
  3945. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  3946. },
  3947. };
  3948. }
  3949. ::std::result::Result::Ok(())
  3950. }
  3951. // Compute sizes of nested messages
  3952. #[allow(unused_variables)]
  3953. fn compute_size(&self) -> u32 {
  3954. let mut my_size = 0;
  3955. if let Some(ref v) = self.spotify.as_ref() {
  3956. let len = v.compute_size();
  3957. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3958. }
  3959. if let Some(ref v) = self.facebook.as_ref() {
  3960. let len = v.compute_size();
  3961. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  3962. }
  3963. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  3964. self.cached_size.set(my_size);
  3965. my_size
  3966. }
  3967. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  3968. if let Some(ref v) = self.spotify.as_ref() {
  3969. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3970. os.write_raw_varint32(v.get_cached_size())?;
  3971. v.write_to_with_cached_sizes(os)?;
  3972. }
  3973. if let Some(ref v) = self.facebook.as_ref() {
  3974. os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  3975. os.write_raw_varint32(v.get_cached_size())?;
  3976. v.write_to_with_cached_sizes(os)?;
  3977. }
  3978. os.write_unknown_fields(self.get_unknown_fields())?;
  3979. ::std::result::Result::Ok(())
  3980. }
  3981. fn get_cached_size(&self) -> u32 {
  3982. self.cached_size.get()
  3983. }
  3984. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  3985. &self.unknown_fields
  3986. }
  3987. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  3988. &mut self.unknown_fields
  3989. }
  3990. fn as_any(&self) -> &::std::any::Any {
  3991. self as &::std::any::Any
  3992. }
  3993. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  3994. self as &mut ::std::any::Any
  3995. }
  3996. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  3997. self
  3998. }
  3999. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4000. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4001. }
  4002. }
  4003. impl ::protobuf::MessageStatic for AccountInfo {
  4004. fn new() -> AccountInfo {
  4005. AccountInfo::new()
  4006. }
  4007. fn descriptor_static(_: ::std::option::Option<AccountInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4008. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4009. lock: ::protobuf::lazy::ONCE_INIT,
  4010. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4011. };
  4012. unsafe {
  4013. descriptor.get(|| {
  4014. let mut fields = ::std::vec::Vec::new();
  4015. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AccountInfoSpotify>>(
  4016. "spotify",
  4017. AccountInfo::get_spotify_for_reflect,
  4018. AccountInfo::mut_spotify_for_reflect,
  4019. ));
  4020. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<AccountInfoFacebook>>(
  4021. "facebook",
  4022. AccountInfo::get_facebook_for_reflect,
  4023. AccountInfo::mut_facebook_for_reflect,
  4024. ));
  4025. ::protobuf::reflect::MessageDescriptor::new::<AccountInfo>(
  4026. "AccountInfo",
  4027. fields,
  4028. file_descriptor_proto()
  4029. )
  4030. })
  4031. }
  4032. }
  4033. }
  4034. impl ::protobuf::Clear for AccountInfo {
  4035. fn clear(&mut self) {
  4036. self.clear_spotify();
  4037. self.clear_facebook();
  4038. self.unknown_fields.clear();
  4039. }
  4040. }
  4041. impl ::std::fmt::Debug for AccountInfo {
  4042. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4043. ::protobuf::text_format::fmt(self, f)
  4044. }
  4045. }
  4046. impl ::protobuf::reflect::ProtobufValue for AccountInfo {
  4047. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4048. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4049. }
  4050. }
  4051. #[derive(PartialEq,Clone,Default)]
  4052. pub struct AccountInfoSpotify {
  4053. // special fields
  4054. unknown_fields: ::protobuf::UnknownFields,
  4055. cached_size: ::protobuf::CachedSize,
  4056. }
  4057. // see codegen.rs for the explanation why impl Sync explicitly
  4058. unsafe impl ::std::marker::Sync for AccountInfoSpotify {}
  4059. impl AccountInfoSpotify {
  4060. pub fn new() -> AccountInfoSpotify {
  4061. ::std::default::Default::default()
  4062. }
  4063. pub fn default_instance() -> &'static AccountInfoSpotify {
  4064. static mut instance: ::protobuf::lazy::Lazy<AccountInfoSpotify> = ::protobuf::lazy::Lazy {
  4065. lock: ::protobuf::lazy::ONCE_INIT,
  4066. ptr: 0 as *const AccountInfoSpotify,
  4067. };
  4068. unsafe {
  4069. instance.get(AccountInfoSpotify::new)
  4070. }
  4071. }
  4072. }
  4073. impl ::protobuf::Message for AccountInfoSpotify {
  4074. fn is_initialized(&self) -> bool {
  4075. true
  4076. }
  4077. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4078. while !is.eof()? {
  4079. let (field_number, wire_type) = is.read_tag_unpack()?;
  4080. match field_number {
  4081. _ => {
  4082. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4083. },
  4084. };
  4085. }
  4086. ::std::result::Result::Ok(())
  4087. }
  4088. // Compute sizes of nested messages
  4089. #[allow(unused_variables)]
  4090. fn compute_size(&self) -> u32 {
  4091. let mut my_size = 0;
  4092. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4093. self.cached_size.set(my_size);
  4094. my_size
  4095. }
  4096. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4097. os.write_unknown_fields(self.get_unknown_fields())?;
  4098. ::std::result::Result::Ok(())
  4099. }
  4100. fn get_cached_size(&self) -> u32 {
  4101. self.cached_size.get()
  4102. }
  4103. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4104. &self.unknown_fields
  4105. }
  4106. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4107. &mut self.unknown_fields
  4108. }
  4109. fn as_any(&self) -> &::std::any::Any {
  4110. self as &::std::any::Any
  4111. }
  4112. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4113. self as &mut ::std::any::Any
  4114. }
  4115. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4116. self
  4117. }
  4118. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4119. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4120. }
  4121. }
  4122. impl ::protobuf::MessageStatic for AccountInfoSpotify {
  4123. fn new() -> AccountInfoSpotify {
  4124. AccountInfoSpotify::new()
  4125. }
  4126. fn descriptor_static(_: ::std::option::Option<AccountInfoSpotify>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4127. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4128. lock: ::protobuf::lazy::ONCE_INIT,
  4129. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4130. };
  4131. unsafe {
  4132. descriptor.get(|| {
  4133. let fields = ::std::vec::Vec::new();
  4134. ::protobuf::reflect::MessageDescriptor::new::<AccountInfoSpotify>(
  4135. "AccountInfoSpotify",
  4136. fields,
  4137. file_descriptor_proto()
  4138. )
  4139. })
  4140. }
  4141. }
  4142. }
  4143. impl ::protobuf::Clear for AccountInfoSpotify {
  4144. fn clear(&mut self) {
  4145. self.unknown_fields.clear();
  4146. }
  4147. }
  4148. impl ::std::fmt::Debug for AccountInfoSpotify {
  4149. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4150. ::protobuf::text_format::fmt(self, f)
  4151. }
  4152. }
  4153. impl ::protobuf::reflect::ProtobufValue for AccountInfoSpotify {
  4154. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4155. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4156. }
  4157. }
  4158. #[derive(PartialEq,Clone,Default)]
  4159. pub struct AccountInfoFacebook {
  4160. // message fields
  4161. access_token: ::protobuf::SingularField<::std::string::String>,
  4162. machine_id: ::protobuf::SingularField<::std::string::String>,
  4163. // special fields
  4164. unknown_fields: ::protobuf::UnknownFields,
  4165. cached_size: ::protobuf::CachedSize,
  4166. }
  4167. // see codegen.rs for the explanation why impl Sync explicitly
  4168. unsafe impl ::std::marker::Sync for AccountInfoFacebook {}
  4169. impl AccountInfoFacebook {
  4170. pub fn new() -> AccountInfoFacebook {
  4171. ::std::default::Default::default()
  4172. }
  4173. pub fn default_instance() -> &'static AccountInfoFacebook {
  4174. static mut instance: ::protobuf::lazy::Lazy<AccountInfoFacebook> = ::protobuf::lazy::Lazy {
  4175. lock: ::protobuf::lazy::ONCE_INIT,
  4176. ptr: 0 as *const AccountInfoFacebook,
  4177. };
  4178. unsafe {
  4179. instance.get(AccountInfoFacebook::new)
  4180. }
  4181. }
  4182. // optional string access_token = 1;
  4183. pub fn clear_access_token(&mut self) {
  4184. self.access_token.clear();
  4185. }
  4186. pub fn has_access_token(&self) -> bool {
  4187. self.access_token.is_some()
  4188. }
  4189. // Param is passed by value, moved
  4190. pub fn set_access_token(&mut self, v: ::std::string::String) {
  4191. self.access_token = ::protobuf::SingularField::some(v);
  4192. }
  4193. // Mutable pointer to the field.
  4194. // If field is not initialized, it is initialized with default value first.
  4195. pub fn mut_access_token(&mut self) -> &mut ::std::string::String {
  4196. if self.access_token.is_none() {
  4197. self.access_token.set_default();
  4198. }
  4199. self.access_token.as_mut().unwrap()
  4200. }
  4201. // Take field
  4202. pub fn take_access_token(&mut self) -> ::std::string::String {
  4203. self.access_token.take().unwrap_or_else(|| ::std::string::String::new())
  4204. }
  4205. pub fn get_access_token(&self) -> &str {
  4206. match self.access_token.as_ref() {
  4207. Some(v) => &v,
  4208. None => "",
  4209. }
  4210. }
  4211. fn get_access_token_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  4212. &self.access_token
  4213. }
  4214. fn mut_access_token_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  4215. &mut self.access_token
  4216. }
  4217. // optional string machine_id = 2;
  4218. pub fn clear_machine_id(&mut self) {
  4219. self.machine_id.clear();
  4220. }
  4221. pub fn has_machine_id(&self) -> bool {
  4222. self.machine_id.is_some()
  4223. }
  4224. // Param is passed by value, moved
  4225. pub fn set_machine_id(&mut self, v: ::std::string::String) {
  4226. self.machine_id = ::protobuf::SingularField::some(v);
  4227. }
  4228. // Mutable pointer to the field.
  4229. // If field is not initialized, it is initialized with default value first.
  4230. pub fn mut_machine_id(&mut self) -> &mut ::std::string::String {
  4231. if self.machine_id.is_none() {
  4232. self.machine_id.set_default();
  4233. }
  4234. self.machine_id.as_mut().unwrap()
  4235. }
  4236. // Take field
  4237. pub fn take_machine_id(&mut self) -> ::std::string::String {
  4238. self.machine_id.take().unwrap_or_else(|| ::std::string::String::new())
  4239. }
  4240. pub fn get_machine_id(&self) -> &str {
  4241. match self.machine_id.as_ref() {
  4242. Some(v) => &v,
  4243. None => "",
  4244. }
  4245. }
  4246. fn get_machine_id_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  4247. &self.machine_id
  4248. }
  4249. fn mut_machine_id_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  4250. &mut self.machine_id
  4251. }
  4252. }
  4253. impl ::protobuf::Message for AccountInfoFacebook {
  4254. fn is_initialized(&self) -> bool {
  4255. true
  4256. }
  4257. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  4258. while !is.eof()? {
  4259. let (field_number, wire_type) = is.read_tag_unpack()?;
  4260. match field_number {
  4261. 1 => {
  4262. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.access_token)?;
  4263. },
  4264. 2 => {
  4265. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.machine_id)?;
  4266. },
  4267. _ => {
  4268. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  4269. },
  4270. };
  4271. }
  4272. ::std::result::Result::Ok(())
  4273. }
  4274. // Compute sizes of nested messages
  4275. #[allow(unused_variables)]
  4276. fn compute_size(&self) -> u32 {
  4277. let mut my_size = 0;
  4278. if let Some(ref v) = self.access_token.as_ref() {
  4279. my_size += ::protobuf::rt::string_size(1, &v);
  4280. }
  4281. if let Some(ref v) = self.machine_id.as_ref() {
  4282. my_size += ::protobuf::rt::string_size(2, &v);
  4283. }
  4284. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  4285. self.cached_size.set(my_size);
  4286. my_size
  4287. }
  4288. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  4289. if let Some(ref v) = self.access_token.as_ref() {
  4290. os.write_string(1, &v)?;
  4291. }
  4292. if let Some(ref v) = self.machine_id.as_ref() {
  4293. os.write_string(2, &v)?;
  4294. }
  4295. os.write_unknown_fields(self.get_unknown_fields())?;
  4296. ::std::result::Result::Ok(())
  4297. }
  4298. fn get_cached_size(&self) -> u32 {
  4299. self.cached_size.get()
  4300. }
  4301. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  4302. &self.unknown_fields
  4303. }
  4304. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  4305. &mut self.unknown_fields
  4306. }
  4307. fn as_any(&self) -> &::std::any::Any {
  4308. self as &::std::any::Any
  4309. }
  4310. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  4311. self as &mut ::std::any::Any
  4312. }
  4313. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  4314. self
  4315. }
  4316. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  4317. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  4318. }
  4319. }
  4320. impl ::protobuf::MessageStatic for AccountInfoFacebook {
  4321. fn new() -> AccountInfoFacebook {
  4322. AccountInfoFacebook::new()
  4323. }
  4324. fn descriptor_static(_: ::std::option::Option<AccountInfoFacebook>) -> &'static ::protobuf::reflect::MessageDescriptor {
  4325. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  4326. lock: ::protobuf::lazy::ONCE_INIT,
  4327. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  4328. };
  4329. unsafe {
  4330. descriptor.get(|| {
  4331. let mut fields = ::std::vec::Vec::new();
  4332. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4333. "access_token",
  4334. AccountInfoFacebook::get_access_token_for_reflect,
  4335. AccountInfoFacebook::mut_access_token_for_reflect,
  4336. ));
  4337. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  4338. "machine_id",
  4339. AccountInfoFacebook::get_machine_id_for_reflect,
  4340. AccountInfoFacebook::mut_machine_id_for_reflect,
  4341. ));
  4342. ::protobuf::reflect::MessageDescriptor::new::<AccountInfoFacebook>(
  4343. "AccountInfoFacebook",
  4344. fields,
  4345. file_descriptor_proto()
  4346. )
  4347. })
  4348. }
  4349. }
  4350. }
  4351. impl ::protobuf::Clear for AccountInfoFacebook {
  4352. fn clear(&mut self) {
  4353. self.clear_access_token();
  4354. self.clear_machine_id();
  4355. self.unknown_fields.clear();
  4356. }
  4357. }
  4358. impl ::std::fmt::Debug for AccountInfoFacebook {
  4359. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  4360. ::protobuf::text_format::fmt(self, f)
  4361. }
  4362. }
  4363. impl ::protobuf::reflect::ProtobufValue for AccountInfoFacebook {
  4364. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4365. ::protobuf::reflect::ProtobufValueRef::Message(self)
  4366. }
  4367. }
  4368. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4369. pub enum AuthenticationType {
  4370. AUTHENTICATION_USER_PASS = 0,
  4371. AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS = 1,
  4372. AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS = 2,
  4373. AUTHENTICATION_SPOTIFY_TOKEN = 3,
  4374. AUTHENTICATION_FACEBOOK_TOKEN = 4,
  4375. }
  4376. impl ::protobuf::ProtobufEnum for AuthenticationType {
  4377. fn value(&self) -> i32 {
  4378. *self as i32
  4379. }
  4380. fn from_i32(value: i32) -> ::std::option::Option<AuthenticationType> {
  4381. match value {
  4382. 0 => ::std::option::Option::Some(AuthenticationType::AUTHENTICATION_USER_PASS),
  4383. 1 => ::std::option::Option::Some(AuthenticationType::AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS),
  4384. 2 => ::std::option::Option::Some(AuthenticationType::AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS),
  4385. 3 => ::std::option::Option::Some(AuthenticationType::AUTHENTICATION_SPOTIFY_TOKEN),
  4386. 4 => ::std::option::Option::Some(AuthenticationType::AUTHENTICATION_FACEBOOK_TOKEN),
  4387. _ => ::std::option::Option::None
  4388. }
  4389. }
  4390. fn values() -> &'static [Self] {
  4391. static values: &'static [AuthenticationType] = &[
  4392. AuthenticationType::AUTHENTICATION_USER_PASS,
  4393. AuthenticationType::AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS,
  4394. AuthenticationType::AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS,
  4395. AuthenticationType::AUTHENTICATION_SPOTIFY_TOKEN,
  4396. AuthenticationType::AUTHENTICATION_FACEBOOK_TOKEN,
  4397. ];
  4398. values
  4399. }
  4400. fn enum_descriptor_static(_: ::std::option::Option<AuthenticationType>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4401. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4402. lock: ::protobuf::lazy::ONCE_INIT,
  4403. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4404. };
  4405. unsafe {
  4406. descriptor.get(|| {
  4407. ::protobuf::reflect::EnumDescriptor::new("AuthenticationType", file_descriptor_proto())
  4408. })
  4409. }
  4410. }
  4411. }
  4412. impl ::std::marker::Copy for AuthenticationType {
  4413. }
  4414. impl ::protobuf::reflect::ProtobufValue for AuthenticationType {
  4415. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4416. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4417. }
  4418. }
  4419. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4420. pub enum AccountCreation {
  4421. ACCOUNT_CREATION_ALWAYS_PROMPT = 1,
  4422. ACCOUNT_CREATION_ALWAYS_CREATE = 3,
  4423. }
  4424. impl ::protobuf::ProtobufEnum for AccountCreation {
  4425. fn value(&self) -> i32 {
  4426. *self as i32
  4427. }
  4428. fn from_i32(value: i32) -> ::std::option::Option<AccountCreation> {
  4429. match value {
  4430. 1 => ::std::option::Option::Some(AccountCreation::ACCOUNT_CREATION_ALWAYS_PROMPT),
  4431. 3 => ::std::option::Option::Some(AccountCreation::ACCOUNT_CREATION_ALWAYS_CREATE),
  4432. _ => ::std::option::Option::None
  4433. }
  4434. }
  4435. fn values() -> &'static [Self] {
  4436. static values: &'static [AccountCreation] = &[
  4437. AccountCreation::ACCOUNT_CREATION_ALWAYS_PROMPT,
  4438. AccountCreation::ACCOUNT_CREATION_ALWAYS_CREATE,
  4439. ];
  4440. values
  4441. }
  4442. fn enum_descriptor_static(_: ::std::option::Option<AccountCreation>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4443. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4444. lock: ::protobuf::lazy::ONCE_INIT,
  4445. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4446. };
  4447. unsafe {
  4448. descriptor.get(|| {
  4449. ::protobuf::reflect::EnumDescriptor::new("AccountCreation", file_descriptor_proto())
  4450. })
  4451. }
  4452. }
  4453. }
  4454. impl ::std::marker::Copy for AccountCreation {
  4455. }
  4456. impl ::protobuf::reflect::ProtobufValue for AccountCreation {
  4457. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4458. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4459. }
  4460. }
  4461. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4462. pub enum CpuFamily {
  4463. CPU_UNKNOWN = 0,
  4464. CPU_X86 = 1,
  4465. CPU_X86_64 = 2,
  4466. CPU_PPC = 3,
  4467. CPU_PPC_64 = 4,
  4468. CPU_ARM = 5,
  4469. CPU_IA64 = 6,
  4470. CPU_SH = 7,
  4471. CPU_MIPS = 8,
  4472. CPU_BLACKFIN = 9,
  4473. }
  4474. impl ::protobuf::ProtobufEnum for CpuFamily {
  4475. fn value(&self) -> i32 {
  4476. *self as i32
  4477. }
  4478. fn from_i32(value: i32) -> ::std::option::Option<CpuFamily> {
  4479. match value {
  4480. 0 => ::std::option::Option::Some(CpuFamily::CPU_UNKNOWN),
  4481. 1 => ::std::option::Option::Some(CpuFamily::CPU_X86),
  4482. 2 => ::std::option::Option::Some(CpuFamily::CPU_X86_64),
  4483. 3 => ::std::option::Option::Some(CpuFamily::CPU_PPC),
  4484. 4 => ::std::option::Option::Some(CpuFamily::CPU_PPC_64),
  4485. 5 => ::std::option::Option::Some(CpuFamily::CPU_ARM),
  4486. 6 => ::std::option::Option::Some(CpuFamily::CPU_IA64),
  4487. 7 => ::std::option::Option::Some(CpuFamily::CPU_SH),
  4488. 8 => ::std::option::Option::Some(CpuFamily::CPU_MIPS),
  4489. 9 => ::std::option::Option::Some(CpuFamily::CPU_BLACKFIN),
  4490. _ => ::std::option::Option::None
  4491. }
  4492. }
  4493. fn values() -> &'static [Self] {
  4494. static values: &'static [CpuFamily] = &[
  4495. CpuFamily::CPU_UNKNOWN,
  4496. CpuFamily::CPU_X86,
  4497. CpuFamily::CPU_X86_64,
  4498. CpuFamily::CPU_PPC,
  4499. CpuFamily::CPU_PPC_64,
  4500. CpuFamily::CPU_ARM,
  4501. CpuFamily::CPU_IA64,
  4502. CpuFamily::CPU_SH,
  4503. CpuFamily::CPU_MIPS,
  4504. CpuFamily::CPU_BLACKFIN,
  4505. ];
  4506. values
  4507. }
  4508. fn enum_descriptor_static(_: ::std::option::Option<CpuFamily>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4509. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4510. lock: ::protobuf::lazy::ONCE_INIT,
  4511. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4512. };
  4513. unsafe {
  4514. descriptor.get(|| {
  4515. ::protobuf::reflect::EnumDescriptor::new("CpuFamily", file_descriptor_proto())
  4516. })
  4517. }
  4518. }
  4519. }
  4520. impl ::std::marker::Copy for CpuFamily {
  4521. }
  4522. impl ::protobuf::reflect::ProtobufValue for CpuFamily {
  4523. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4524. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4525. }
  4526. }
  4527. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4528. pub enum Brand {
  4529. BRAND_UNBRANDED = 0,
  4530. BRAND_INQ = 1,
  4531. BRAND_HTC = 2,
  4532. BRAND_NOKIA = 3,
  4533. }
  4534. impl ::protobuf::ProtobufEnum for Brand {
  4535. fn value(&self) -> i32 {
  4536. *self as i32
  4537. }
  4538. fn from_i32(value: i32) -> ::std::option::Option<Brand> {
  4539. match value {
  4540. 0 => ::std::option::Option::Some(Brand::BRAND_UNBRANDED),
  4541. 1 => ::std::option::Option::Some(Brand::BRAND_INQ),
  4542. 2 => ::std::option::Option::Some(Brand::BRAND_HTC),
  4543. 3 => ::std::option::Option::Some(Brand::BRAND_NOKIA),
  4544. _ => ::std::option::Option::None
  4545. }
  4546. }
  4547. fn values() -> &'static [Self] {
  4548. static values: &'static [Brand] = &[
  4549. Brand::BRAND_UNBRANDED,
  4550. Brand::BRAND_INQ,
  4551. Brand::BRAND_HTC,
  4552. Brand::BRAND_NOKIA,
  4553. ];
  4554. values
  4555. }
  4556. fn enum_descriptor_static(_: ::std::option::Option<Brand>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4557. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4558. lock: ::protobuf::lazy::ONCE_INIT,
  4559. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4560. };
  4561. unsafe {
  4562. descriptor.get(|| {
  4563. ::protobuf::reflect::EnumDescriptor::new("Brand", file_descriptor_proto())
  4564. })
  4565. }
  4566. }
  4567. }
  4568. impl ::std::marker::Copy for Brand {
  4569. }
  4570. impl ::protobuf::reflect::ProtobufValue for Brand {
  4571. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4572. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4573. }
  4574. }
  4575. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4576. pub enum Os {
  4577. OS_UNKNOWN = 0,
  4578. OS_WINDOWS = 1,
  4579. OS_OSX = 2,
  4580. OS_IPHONE = 3,
  4581. OS_S60 = 4,
  4582. OS_LINUX = 5,
  4583. OS_WINDOWS_CE = 6,
  4584. OS_ANDROID = 7,
  4585. OS_PALM = 8,
  4586. OS_FREEBSD = 9,
  4587. OS_BLACKBERRY = 10,
  4588. OS_SONOS = 11,
  4589. OS_LOGITECH = 12,
  4590. OS_WP7 = 13,
  4591. OS_ONKYO = 14,
  4592. OS_PHILIPS = 15,
  4593. OS_WD = 16,
  4594. OS_VOLVO = 17,
  4595. OS_TIVO = 18,
  4596. OS_AWOX = 19,
  4597. OS_MEEGO = 20,
  4598. OS_QNXNTO = 21,
  4599. OS_BCO = 22,
  4600. }
  4601. impl ::protobuf::ProtobufEnum for Os {
  4602. fn value(&self) -> i32 {
  4603. *self as i32
  4604. }
  4605. fn from_i32(value: i32) -> ::std::option::Option<Os> {
  4606. match value {
  4607. 0 => ::std::option::Option::Some(Os::OS_UNKNOWN),
  4608. 1 => ::std::option::Option::Some(Os::OS_WINDOWS),
  4609. 2 => ::std::option::Option::Some(Os::OS_OSX),
  4610. 3 => ::std::option::Option::Some(Os::OS_IPHONE),
  4611. 4 => ::std::option::Option::Some(Os::OS_S60),
  4612. 5 => ::std::option::Option::Some(Os::OS_LINUX),
  4613. 6 => ::std::option::Option::Some(Os::OS_WINDOWS_CE),
  4614. 7 => ::std::option::Option::Some(Os::OS_ANDROID),
  4615. 8 => ::std::option::Option::Some(Os::OS_PALM),
  4616. 9 => ::std::option::Option::Some(Os::OS_FREEBSD),
  4617. 10 => ::std::option::Option::Some(Os::OS_BLACKBERRY),
  4618. 11 => ::std::option::Option::Some(Os::OS_SONOS),
  4619. 12 => ::std::option::Option::Some(Os::OS_LOGITECH),
  4620. 13 => ::std::option::Option::Some(Os::OS_WP7),
  4621. 14 => ::std::option::Option::Some(Os::OS_ONKYO),
  4622. 15 => ::std::option::Option::Some(Os::OS_PHILIPS),
  4623. 16 => ::std::option::Option::Some(Os::OS_WD),
  4624. 17 => ::std::option::Option::Some(Os::OS_VOLVO),
  4625. 18 => ::std::option::Option::Some(Os::OS_TIVO),
  4626. 19 => ::std::option::Option::Some(Os::OS_AWOX),
  4627. 20 => ::std::option::Option::Some(Os::OS_MEEGO),
  4628. 21 => ::std::option::Option::Some(Os::OS_QNXNTO),
  4629. 22 => ::std::option::Option::Some(Os::OS_BCO),
  4630. _ => ::std::option::Option::None
  4631. }
  4632. }
  4633. fn values() -> &'static [Self] {
  4634. static values: &'static [Os] = &[
  4635. Os::OS_UNKNOWN,
  4636. Os::OS_WINDOWS,
  4637. Os::OS_OSX,
  4638. Os::OS_IPHONE,
  4639. Os::OS_S60,
  4640. Os::OS_LINUX,
  4641. Os::OS_WINDOWS_CE,
  4642. Os::OS_ANDROID,
  4643. Os::OS_PALM,
  4644. Os::OS_FREEBSD,
  4645. Os::OS_BLACKBERRY,
  4646. Os::OS_SONOS,
  4647. Os::OS_LOGITECH,
  4648. Os::OS_WP7,
  4649. Os::OS_ONKYO,
  4650. Os::OS_PHILIPS,
  4651. Os::OS_WD,
  4652. Os::OS_VOLVO,
  4653. Os::OS_TIVO,
  4654. Os::OS_AWOX,
  4655. Os::OS_MEEGO,
  4656. Os::OS_QNXNTO,
  4657. Os::OS_BCO,
  4658. ];
  4659. values
  4660. }
  4661. fn enum_descriptor_static(_: ::std::option::Option<Os>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4662. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4663. lock: ::protobuf::lazy::ONCE_INIT,
  4664. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4665. };
  4666. unsafe {
  4667. descriptor.get(|| {
  4668. ::protobuf::reflect::EnumDescriptor::new("Os", file_descriptor_proto())
  4669. })
  4670. }
  4671. }
  4672. }
  4673. impl ::std::marker::Copy for Os {
  4674. }
  4675. impl ::protobuf::reflect::ProtobufValue for Os {
  4676. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4677. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4678. }
  4679. }
  4680. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  4681. pub enum AccountType {
  4682. Spotify = 0,
  4683. Facebook = 1,
  4684. }
  4685. impl ::protobuf::ProtobufEnum for AccountType {
  4686. fn value(&self) -> i32 {
  4687. *self as i32
  4688. }
  4689. fn from_i32(value: i32) -> ::std::option::Option<AccountType> {
  4690. match value {
  4691. 0 => ::std::option::Option::Some(AccountType::Spotify),
  4692. 1 => ::std::option::Option::Some(AccountType::Facebook),
  4693. _ => ::std::option::Option::None
  4694. }
  4695. }
  4696. fn values() -> &'static [Self] {
  4697. static values: &'static [AccountType] = &[
  4698. AccountType::Spotify,
  4699. AccountType::Facebook,
  4700. ];
  4701. values
  4702. }
  4703. fn enum_descriptor_static(_: ::std::option::Option<AccountType>) -> &'static ::protobuf::reflect::EnumDescriptor {
  4704. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  4705. lock: ::protobuf::lazy::ONCE_INIT,
  4706. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  4707. };
  4708. unsafe {
  4709. descriptor.get(|| {
  4710. ::protobuf::reflect::EnumDescriptor::new("AccountType", file_descriptor_proto())
  4711. })
  4712. }
  4713. }
  4714. }
  4715. impl ::std::marker::Copy for AccountType {
  4716. }
  4717. impl ::protobuf::reflect::ProtobufValue for AccountType {
  4718. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  4719. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  4720. }
  4721. }
  4722. static file_descriptor_proto_data: &'static [u8] = b"\
  4723. \n\x14authentication.proto\"\xec\x03\n\x17ClientResponseEncrypted\x12>\n\
  4724. \x11login_credentials\x18\n\x20\x02(\x0b2\x11.LoginCredentialsR\x10login\
  4725. Credentials\x12;\n\x10account_creation\x18\x14\x20\x01(\x0e2\x10.Account\
  4726. CreationR\x0faccountCreation\x12L\n\x14fingerprint_response\x18\x1e\x20\
  4727. \x01(\x0b2\x19.FingerprintResponseUnionR\x13fingerprintResponse\x121\n\
  4728. \x0bpeer_ticket\x18(\x20\x01(\x0b2\x10.PeerTicketUnionR\npeerTicket\x12,\
  4729. \n\x0bsystem_info\x182\x20\x02(\x0b2\x0b.SystemInfoR\nsystemInfo\x12%\n\
  4730. \x0eplatform_model\x18<\x20\x01(\tR\rplatformModel\x12%\n\x0eversion_str\
  4731. ing\x18F\x20\x01(\tR\rversionString\x12)\n\x06appkey\x18P\x20\x01(\x0b2\
  4732. \x11.LibspotifyAppKeyR\x06appkey\x12,\n\x0bclient_info\x18Z\x20\x01(\x0b\
  4733. 2\x0b.ClientInfoR\nclientInfo\"r\n\x10LoginCredentials\x12\x1a\n\x08user\
  4734. name\x18\n\x20\x01(\tR\x08username\x12%\n\x03typ\x18\x14\x20\x02(\x0e2\
  4735. \x13.AuthenticationTypeR\x03typ\x12\x1b\n\tauth_data\x18\x1e\x20\x01(\
  4736. \x0cR\x08authData\"\x8c\x01\n\x18FingerprintResponseUnion\x12/\n\x05grai\
  4737. n\x18\n\x20\x01(\x0b2\x19.FingerprintGrainResponseR\x05grain\x12?\n\x0bh\
  4738. mac_ripemd\x18\x14\x20\x01(\x0b2\x1e.FingerprintHmacRipemdResponseR\nhma\
  4739. cRipemd\"?\n\x18FingerprintGrainResponse\x12#\n\rencrypted_key\x18\n\x20\
  4740. \x02(\x0cR\x0cencryptedKey\"3\n\x1dFingerprintHmacRipemdResponse\x12\x12\
  4741. \n\x04hmac\x18\n\x20\x02(\x0cR\x04hmac\"u\n\x0fPeerTicketUnion\x123\n\np\
  4742. ublic_key\x18\n\x20\x01(\x0b2\x14.PeerTicketPublicKeyR\tpublicKey\x12-\n\
  4743. \nold_ticket\x18\x14\x20\x01(\x0b2\x0e.PeerTicketOldR\toldTicket\"4\n\
  4744. \x13PeerTicketPublicKey\x12\x1d\n\npublic_key\x18\n\x20\x02(\x0cR\tpubli\
  4745. cKey\"d\n\rPeerTicketOld\x12\x1f\n\x0bpeer_ticket\x18\n\x20\x02(\x0cR\np\
  4746. eerTicket\x122\n\x15peer_ticket_signature\x18\x14\x20\x02(\x0cR\x13peerT\
  4747. icketSignature\"\xd4\x02\n\nSystemInfo\x12)\n\ncpu_family\x18\n\x20\x02(\
  4748. \x0e2\n.CpuFamilyR\tcpuFamily\x12\x1f\n\x0bcpu_subtype\x18\x14\x20\x01(\
  4749. \rR\ncpuSubtype\x12\x17\n\x07cpu_ext\x18\x1e\x20\x01(\rR\x06cpuExt\x12\
  4750. \x1c\n\x05brand\x18(\x20\x01(\x0e2\x06.BrandR\x05brand\x12\x1f\n\x0bbran\
  4751. d_flags\x182\x20\x01(\rR\nbrandFlags\x12\x13\n\x02os\x18<\x20\x02(\x0e2\
  4752. \x03.OsR\x02os\x12\x1d\n\nos_version\x18F\x20\x01(\rR\tosVersion\x12\x15\
  4753. \n\x06os_ext\x18P\x20\x01(\rR\x05osExt\x12:\n\x19system_information_stri\
  4754. ng\x18Z\x20\x01(\tR\x17systemInformationString\x12\x1b\n\tdevice_id\x18d\
  4755. \x20\x01(\tR\x08deviceId\"\xa5\x01\n\x10LibspotifyAppKey\x12\x18\n\x07ve\
  4756. rsion\x18\x01\x20\x02(\rR\x07version\x12\x16\n\x06devkey\x18\x02\x20\x02\
  4757. (\x0cR\x06devkey\x12\x1c\n\tsignature\x18\x03\x20\x02(\x0cR\tsignature\
  4758. \x12\x1c\n\tuseragent\x18\x04\x20\x02(\tR\tuseragent\x12#\n\rcallback_ha\
  4759. sh\x18\x05\x20\x02(\x0cR\x0ccallbackHash\"g\n\nClientInfo\x12\x18\n\x07l\
  4760. imited\x18\x01\x20\x01(\x08R\x07limited\x12#\n\x02fb\x18\x02\x20\x01(\
  4761. \x0b2\x13.ClientInfoFacebookR\x02fb\x12\x1a\n\x08language\x18\x03\x20\
  4762. \x01(\tR\x08language\"3\n\x12ClientInfoFacebook\x12\x1d\n\nmachine_id\
  4763. \x18\x01\x20\x01(\tR\tmachineId\"\xd4\x03\n\tAPWelcome\x12-\n\x12canonic\
  4764. al_username\x18\n\x20\x02(\tR\x11canonicalUsername\x12A\n\x16account_typ\
  4765. e_logged_in\x18\x14\x20\x02(\x0e2\x0c.AccountTypeR\x13accountTypeLoggedI\
  4766. n\x12I\n\x1acredentials_type_logged_in\x18\x19\x20\x02(\x0e2\x0c.Account\
  4767. TypeR\x17credentialsTypeLoggedIn\x12X\n\x1ereusable_auth_credentials_typ\
  4768. e\x18\x1e\x20\x02(\x0e2\x13.AuthenticationTypeR\x1breusableAuthCredentia\
  4769. lsType\x12:\n\x19reusable_auth_credentials\x18(\x20\x02(\x0cR\x17reusabl\
  4770. eAuthCredentials\x12\x1d\n\nlfs_secret\x182\x20\x01(\x0cR\tlfsSecret\x12\
  4771. /\n\x0caccount_info\x18<\x20\x01(\x0b2\x0c.AccountInfoR\x0baccountInfo\
  4772. \x12$\n\x02fb\x18F\x20\x01(\x0b2\x14.AccountInfoFacebookR\x02fb\"n\n\x0b\
  4773. AccountInfo\x12-\n\x07spotify\x18\x01\x20\x01(\x0b2\x13.AccountInfoSpoti\
  4774. fyR\x07spotify\x120\n\x08facebook\x18\x02\x20\x01(\x0b2\x14.AccountInfoF\
  4775. acebookR\x08facebook\"\x14\n\x12AccountInfoSpotify\"W\n\x13AccountInfoFa\
  4776. cebook\x12!\n\x0caccess_token\x18\x01\x20\x01(\tR\x0baccessToken\x12\x1d\
  4777. \n\nmachine_id\x18\x02\x20\x01(\tR\tmachineId*\xd6\x01\n\x12Authenticati\
  4778. onType\x12\x1c\n\x18AUTHENTICATION_USER_PASS\x10\0\x12-\n)AUTHENTICATION\
  4779. _STORED_SPOTIFY_CREDENTIALS\x10\x01\x12.\n*AUTHENTICATION_STORED_FACEBOO\
  4780. K_CREDENTIALS\x10\x02\x12\x20\n\x1cAUTHENTICATION_SPOTIFY_TOKEN\x10\x03\
  4781. \x12!\n\x1dAUTHENTICATION_FACEBOOK_TOKEN\x10\x04*Y\n\x0fAccountCreation\
  4782. \x12\"\n\x1eACCOUNT_CREATION_ALWAYS_PROMPT\x10\x01\x12\"\n\x1eACCOUNT_CR\
  4783. EATION_ALWAYS_CREATE\x10\x03*\x9d\x01\n\tCpuFamily\x12\x0f\n\x0bCPU_UNKN\
  4784. OWN\x10\0\x12\x0b\n\x07CPU_X86\x10\x01\x12\x0e\n\nCPU_X86_64\x10\x02\x12\
  4785. \x0b\n\x07CPU_PPC\x10\x03\x12\x0e\n\nCPU_PPC_64\x10\x04\x12\x0b\n\x07CPU\
  4786. _ARM\x10\x05\x12\x0c\n\x08CPU_IA64\x10\x06\x12\n\n\x06CPU_SH\x10\x07\x12\
  4787. \x0c\n\x08CPU_MIPS\x10\x08\x12\x10\n\x0cCPU_BLACKFIN\x10\t*K\n\x05Brand\
  4788. \x12\x13\n\x0fBRAND_UNBRANDED\x10\0\x12\r\n\tBRAND_INQ\x10\x01\x12\r\n\t\
  4789. BRAND_HTC\x10\x02\x12\x0f\n\x0bBRAND_NOKIA\x10\x03*\xd1\x02\n\x02Os\x12\
  4790. \x0e\n\nOS_UNKNOWN\x10\0\x12\x0e\n\nOS_WINDOWS\x10\x01\x12\n\n\x06OS_OSX\
  4791. \x10\x02\x12\r\n\tOS_IPHONE\x10\x03\x12\n\n\x06OS_S60\x10\x04\x12\x0c\n\
  4792. \x08OS_LINUX\x10\x05\x12\x11\n\rOS_WINDOWS_CE\x10\x06\x12\x0e\n\nOS_ANDR\
  4793. OID\x10\x07\x12\x0b\n\x07OS_PALM\x10\x08\x12\x0e\n\nOS_FREEBSD\x10\t\x12\
  4794. \x11\n\rOS_BLACKBERRY\x10\n\x12\x0c\n\x08OS_SONOS\x10\x0b\x12\x0f\n\x0bO\
  4795. S_LOGITECH\x10\x0c\x12\n\n\x06OS_WP7\x10\r\x12\x0c\n\x08OS_ONKYO\x10\x0e\
  4796. \x12\x0e\n\nOS_PHILIPS\x10\x0f\x12\t\n\x05OS_WD\x10\x10\x12\x0c\n\x08OS_\
  4797. VOLVO\x10\x11\x12\x0b\n\x07OS_TIVO\x10\x12\x12\x0b\n\x07OS_AWOX\x10\x13\
  4798. \x12\x0c\n\x08OS_MEEGO\x10\x14\x12\r\n\tOS_QNXNTO\x10\x15\x12\n\n\x06OS_\
  4799. BCO\x10\x16*(\n\x0bAccountType\x12\x0b\n\x07Spotify\x10\0\x12\x0c\n\x08F\
  4800. acebook\x10\x01J\xee/\n\x07\x12\x05\0\0\xa4\x01\x01\n\x08\n\x01\x0c\x12\
  4801. \x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x0c\x01\n\n\n\x03\x04\0\x01\
  4802. \x12\x03\x02\x08\x1f\n\x0b\n\x04\x04\0\x02\0\x12\x03\x03\x046\n\x0c\n\
  4803. \x05\x04\0\x02\0\x04\x12\x03\x03\x04\x0c\n\x0c\n\x05\x04\0\x02\0\x06\x12\
  4804. \x03\x03\r\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x03\x1e/\n\x0c\n\x05\
  4805. \x04\0\x02\0\x03\x12\x03\x0325\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x04\x04\
  4806. 5\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\x04\x04\x0c\n\x0c\n\x05\x04\0\
  4807. \x02\x01\x06\x12\x03\x04\r\x1c\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x04\
  4808. \x1d-\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x0404\n\x0b\n\x04\x04\0\x02\
  4809. \x02\x12\x03\x05\x04B\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\x05\x04\x0c\
  4810. \n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\x05\r%\n\x0c\n\x05\x04\0\x02\x02\
  4811. \x01\x12\x03\x05&:\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x05=A\n\x0b\n\
  4812. \x04\x04\0\x02\x03\x12\x03\x06\x040\n\x0c\n\x05\x04\0\x02\x03\x04\x12\
  4813. \x03\x06\x04\x0c\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03\x06\r\x1c\n\x0c\n\
  4814. \x05\x04\0\x02\x03\x01\x12\x03\x06\x1d(\n\x0c\n\x05\x04\0\x02\x03\x03\
  4815. \x12\x03\x06+/\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x07\x04+\n\x0c\n\x05\
  4816. \x04\0\x02\x04\x04\x12\x03\x07\x04\x0c\n\x0c\n\x05\x04\0\x02\x04\x06\x12\
  4817. \x03\x07\r\x17\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x07\x18#\n\x0c\n\
  4818. \x05\x04\0\x02\x04\x03\x12\x03\x07&*\n\x0b\n\x04\x04\0\x02\x05\x12\x03\
  4819. \x08\x04*\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03\x08\x04\x0c\n\x0c\n\x05\
  4820. \x04\0\x02\x05\x05\x12\x03\x08\r\x13\n\x0c\n\x05\x04\0\x02\x05\x01\x12\
  4821. \x03\x08\x14\"\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\x08%)\n\x0b\n\x04\
  4822. \x04\0\x02\x06\x12\x03\t\x04*\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03\t\
  4823. \x04\x0c\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03\t\r\x13\n\x0c\n\x05\x04\0\
  4824. \x02\x06\x01\x12\x03\t\x14\"\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03\t%)\n\
  4825. \x0b\n\x04\x04\0\x02\x07\x12\x03\n\x04,\n\x0c\n\x05\x04\0\x02\x07\x04\
  4826. \x12\x03\n\x04\x0c\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03\n\r\x1d\n\x0c\n\
  4827. \x05\x04\0\x02\x07\x01\x12\x03\n\x1e$\n\x0c\n\x05\x04\0\x02\x07\x03\x12\
  4828. \x03\n'+\n\x0b\n\x04\x04\0\x02\x08\x12\x03\x0b\x04+\n\x0c\n\x05\x04\0\
  4829. \x02\x08\x04\x12\x03\x0b\x04\x0c\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03\
  4830. \x0b\r\x17\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03\x0b\x18#\n\x0c\n\x05\
  4831. \x04\0\x02\x08\x03\x12\x03\x0b&*\n\n\n\x02\x04\x01\x12\x04\x0e\0\x12\x01\
  4832. \n\n\n\x03\x04\x01\x01\x12\x03\x0e\x08\x18\n\x0b\n\x04\x04\x01\x02\0\x12\
  4833. \x03\x0f\x04#\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03\x0f\x04\x0c\n\x0c\n\
  4834. \x05\x04\x01\x02\0\x05\x12\x03\x0f\r\x13\n\x0c\n\x05\x04\x01\x02\0\x01\
  4835. \x12\x03\x0f\x14\x1c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x0f\x1f\"\n\
  4836. \x0b\n\x04\x04\x01\x02\x01\x12\x03\x10\x04+\n\x0c\n\x05\x04\x01\x02\x01\
  4837. \x04\x12\x03\x10\x04\x0c\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\x10\r\
  4838. \x1f\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\x10\x20#\n\x0c\n\x05\x04\
  4839. \x01\x02\x01\x03\x12\x03\x10&*\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\x11\
  4840. \x04$\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03\x11\x04\x0c\n\x0c\n\x05\
  4841. \x04\x01\x02\x02\x05\x12\x03\x11\r\x12\n\x0c\n\x05\x04\x01\x02\x02\x01\
  4842. \x12\x03\x11\x13\x1c\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\x11\x1f#\n\
  4843. \n\n\x02\x05\0\x12\x04\x14\0\x1a\x01\n\n\n\x03\x05\0\x01\x12\x03\x14\x05\
  4844. \x17\n\x0b\n\x04\x05\0\x02\0\x12\x03\x15\x04#\n\x0c\n\x05\x05\0\x02\0\
  4845. \x01\x12\x03\x15\x04\x1c\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x15\x1f\"\n\
  4846. \x0b\n\x04\x05\0\x02\x01\x12\x03\x16\x044\n\x0c\n\x05\x05\0\x02\x01\x01\
  4847. \x12\x03\x16\x04-\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1603\n\x0b\n\
  4848. \x04\x05\0\x02\x02\x12\x03\x17\x045\n\x0c\n\x05\x05\0\x02\x02\x01\x12\
  4849. \x03\x17\x04.\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\x1714\n\x0b\n\x04\
  4850. \x05\0\x02\x03\x12\x03\x18\x04'\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03\
  4851. \x18\x04\x20\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03\x18#&\n\x0b\n\x04\x05\
  4852. \0\x02\x04\x12\x03\x19\x04(\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03\x19\
  4853. \x04!\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03\x19$'\n\n\n\x02\x05\x01\x12\
  4854. \x04\x1c\0\x1f\x01\n\n\n\x03\x05\x01\x01\x12\x03\x1c\x05\x14\n\x0b\n\x04\
  4855. \x05\x01\x02\0\x12\x03\x1d\x04)\n\x0c\n\x05\x05\x01\x02\0\x01\x12\x03\
  4856. \x1d\x04\"\n\x0c\n\x05\x05\x01\x02\0\x02\x12\x03\x1d%(\n\x0b\n\x04\x05\
  4857. \x01\x02\x01\x12\x03\x1e\x04)\n\x0c\n\x05\x05\x01\x02\x01\x01\x12\x03\
  4858. \x1e\x04\"\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x03\x1e%(\n\n\n\x02\x04\
  4859. \x02\x12\x04!\0$\x01\n\n\n\x03\x04\x02\x01\x12\x03!\x08\x20\n\x0b\n\x04\
  4860. \x04\x02\x02\0\x12\x03\"\x042\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03\"\
  4861. \x04\x0c\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03\"\r%\n\x0c\n\x05\x04\x02\
  4862. \x02\0\x01\x12\x03\"&+\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\".1\n\x0b\n\
  4863. \x04\x04\x02\x02\x01\x12\x03#\x04>\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\
  4864. \x03#\x04\x0c\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03#\r*\n\x0c\n\x05\
  4865. \x04\x02\x02\x01\x01\x12\x03#+6\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03#\
  4866. 9=\n\n\n\x02\x04\x03\x12\x04&\0(\x01\n\n\n\x03\x04\x03\x01\x12\x03&\x08\
  4867. \x20\n\x0b\n\x04\x04\x03\x02\0\x12\x03'\x04'\n\x0c\n\x05\x04\x03\x02\0\
  4868. \x04\x12\x03'\x04\x0c\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03'\r\x12\n\x0c\
  4869. \n\x05\x04\x03\x02\0\x01\x12\x03'\x13\x20\n\x0c\n\x05\x04\x03\x02\0\x03\
  4870. \x12\x03'#&\n\n\n\x02\x04\x04\x12\x04*\0,\x01\n\n\n\x03\x04\x04\x01\x12\
  4871. \x03*\x08%\n\x0b\n\x04\x04\x04\x02\0\x12\x03+\x04\x1e\n\x0c\n\x05\x04\
  4872. \x04\x02\0\x04\x12\x03+\x04\x0c\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03+\r\
  4873. \x12\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03+\x13\x17\n\x0c\n\x05\x04\x04\
  4874. \x02\0\x03\x12\x03+\x1a\x1d\n\n\n\x02\x04\x05\x12\x04.\01\x01\n\n\n\x03\
  4875. \x04\x05\x01\x12\x03.\x08\x17\n\x0b\n\x04\x04\x05\x02\0\x12\x03/\x042\n\
  4876. \x0c\n\x05\x04\x05\x02\0\x04\x12\x03/\x04\x0c\n\x0c\n\x05\x04\x05\x02\0\
  4877. \x06\x12\x03/\r\x20\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03/!+\n\x0c\n\x05\
  4878. \x04\x05\x02\0\x03\x12\x03/.1\n\x0b\n\x04\x04\x05\x02\x01\x12\x030\x04-\
  4879. \n\x0c\n\x05\x04\x05\x02\x01\x04\x12\x030\x04\x0c\n\x0c\n\x05\x04\x05\
  4880. \x02\x01\x06\x12\x030\r\x1a\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x030\x1b\
  4881. %\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x030(,\n\n\n\x02\x04\x06\x12\x043\
  4882. \05\x01\n\n\n\x03\x04\x06\x01\x12\x033\x08\x1b\n\x0b\n\x04\x04\x06\x02\0\
  4883. \x12\x034\x04$\n\x0c\n\x05\x04\x06\x02\0\x04\x12\x034\x04\x0c\n\x0c\n\
  4884. \x05\x04\x06\x02\0\x05\x12\x034\r\x12\n\x0c\n\x05\x04\x06\x02\0\x01\x12\
  4885. \x034\x13\x1d\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x034\x20#\n\n\n\x02\x04\
  4886. \x07\x12\x047\0:\x01\n\n\n\x03\x04\x07\x01\x12\x037\x08\x15\n\x0b\n\x04\
  4887. \x04\x07\x02\0\x12\x038\x04%\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x038\x04\
  4888. \x0c\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x038\r\x12\n\x0c\n\x05\x04\x07\
  4889. \x02\0\x01\x12\x038\x13\x1e\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x038!$\n\
  4890. \x0b\n\x04\x04\x07\x02\x01\x12\x039\x040\n\x0c\n\x05\x04\x07\x02\x01\x04\
  4891. \x12\x039\x04\x0c\n\x0c\n\x05\x04\x07\x02\x01\x05\x12\x039\r\x12\n\x0c\n\
  4892. \x05\x04\x07\x02\x01\x01\x12\x039\x13(\n\x0c\n\x05\x04\x07\x02\x01\x03\
  4893. \x12\x039+/\n\n\n\x02\x04\x08\x12\x04<\0G\x01\n\n\n\x03\x04\x08\x01\x12\
  4894. \x03<\x08\x12\n\x0b\n\x04\x04\x08\x02\0\x12\x03=\x04(\n\x0c\n\x05\x04\
  4895. \x08\x02\0\x04\x12\x03=\x04\x0c\n\x0c\n\x05\x04\x08\x02\0\x06\x12\x03=\r\
  4896. \x16\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x03=\x17!\n\x0c\n\x05\x04\x08\x02\
  4897. \0\x03\x12\x03=$'\n\x0b\n\x04\x04\x08\x02\x01\x12\x03>\x04'\n\x0c\n\x05\
  4898. \x04\x08\x02\x01\x04\x12\x03>\x04\x0c\n\x0c\n\x05\x04\x08\x02\x01\x05\
  4899. \x12\x03>\r\x13\n\x0c\n\x05\x04\x08\x02\x01\x01\x12\x03>\x14\x1f\n\x0c\n\
  4900. \x05\x04\x08\x02\x01\x03\x12\x03>\"&\n\x0b\n\x04\x04\x08\x02\x02\x12\x03\
  4901. ?\x04#\n\x0c\n\x05\x04\x08\x02\x02\x04\x12\x03?\x04\x0c\n\x0c\n\x05\x04\
  4902. \x08\x02\x02\x05\x12\x03?\r\x13\n\x0c\n\x05\x04\x08\x02\x02\x01\x12\x03?\
  4903. \x14\x1b\n\x0c\n\x05\x04\x08\x02\x02\x03\x12\x03?\x1e\"\n\x0b\n\x04\x04\
  4904. \x08\x02\x03\x12\x03@\x04\x20\n\x0c\n\x05\x04\x08\x02\x03\x04\x12\x03@\
  4905. \x04\x0c\n\x0c\n\x05\x04\x08\x02\x03\x06\x12\x03@\r\x12\n\x0c\n\x05\x04\
  4906. \x08\x02\x03\x01\x12\x03@\x13\x18\n\x0c\n\x05\x04\x08\x02\x03\x03\x12\
  4907. \x03@\x1b\x1f\n\x0b\n\x04\x04\x08\x02\x04\x12\x03A\x04'\n\x0c\n\x05\x04\
  4908. \x08\x02\x04\x04\x12\x03A\x04\x0c\n\x0c\n\x05\x04\x08\x02\x04\x05\x12\
  4909. \x03A\r\x13\n\x0c\n\x05\x04\x08\x02\x04\x01\x12\x03A\x14\x1f\n\x0c\n\x05\
  4910. \x04\x08\x02\x04\x03\x12\x03A\"&\n\x0b\n\x04\x04\x08\x02\x05\x12\x03B\
  4911. \x04\x1a\n\x0c\n\x05\x04\x08\x02\x05\x04\x12\x03B\x04\x0c\n\x0c\n\x05\
  4912. \x04\x08\x02\x05\x06\x12\x03B\r\x0f\n\x0c\n\x05\x04\x08\x02\x05\x01\x12\
  4913. \x03B\x10\x12\n\x0c\n\x05\x04\x08\x02\x05\x03\x12\x03B\x15\x19\n\x0b\n\
  4914. \x04\x04\x08\x02\x06\x12\x03C\x04&\n\x0c\n\x05\x04\x08\x02\x06\x04\x12\
  4915. \x03C\x04\x0c\n\x0c\n\x05\x04\x08\x02\x06\x05\x12\x03C\r\x13\n\x0c\n\x05\
  4916. \x04\x08\x02\x06\x01\x12\x03C\x14\x1e\n\x0c\n\x05\x04\x08\x02\x06\x03\
  4917. \x12\x03C!%\n\x0b\n\x04\x04\x08\x02\x07\x12\x03D\x04\"\n\x0c\n\x05\x04\
  4918. \x08\x02\x07\x04\x12\x03D\x04\x0c\n\x0c\n\x05\x04\x08\x02\x07\x05\x12\
  4919. \x03D\r\x13\n\x0c\n\x05\x04\x08\x02\x07\x01\x12\x03D\x14\x1a\n\x0c\n\x05\
  4920. \x04\x08\x02\x07\x03\x12\x03D\x1d!\n\x0b\n\x04\x04\x08\x02\x08\x12\x03E\
  4921. \x045\n\x0c\n\x05\x04\x08\x02\x08\x04\x12\x03E\x04\x0c\n\x0c\n\x05\x04\
  4922. \x08\x02\x08\x05\x12\x03E\r\x13\n\x0c\n\x05\x04\x08\x02\x08\x01\x12\x03E\
  4923. \x14-\n\x0c\n\x05\x04\x08\x02\x08\x03\x12\x03E04\n\x0b\n\x04\x04\x08\x02\
  4924. \t\x12\x03F\x04%\n\x0c\n\x05\x04\x08\x02\t\x04\x12\x03F\x04\x0c\n\x0c\n\
  4925. \x05\x04\x08\x02\t\x05\x12\x03F\r\x13\n\x0c\n\x05\x04\x08\x02\t\x01\x12\
  4926. \x03F\x14\x1d\n\x0c\n\x05\x04\x08\x02\t\x03\x12\x03F\x20$\n\n\n\x02\x05\
  4927. \x02\x12\x04I\0T\x01\n\n\n\x03\x05\x02\x01\x12\x03I\x05\x0e\n\x0b\n\x04\
  4928. \x05\x02\x02\0\x12\x03J\x04\x16\n\x0c\n\x05\x05\x02\x02\0\x01\x12\x03J\
  4929. \x04\x0f\n\x0c\n\x05\x05\x02\x02\0\x02\x12\x03J\x12\x15\n\x0b\n\x04\x05\
  4930. \x02\x02\x01\x12\x03K\x04\x12\n\x0c\n\x05\x05\x02\x02\x01\x01\x12\x03K\
  4931. \x04\x0b\n\x0c\n\x05\x05\x02\x02\x01\x02\x12\x03K\x0e\x11\n\x0b\n\x04\
  4932. \x05\x02\x02\x02\x12\x03L\x04\x15\n\x0c\n\x05\x05\x02\x02\x02\x01\x12\
  4933. \x03L\x04\x0e\n\x0c\n\x05\x05\x02\x02\x02\x02\x12\x03L\x11\x14\n\x0b\n\
  4934. \x04\x05\x02\x02\x03\x12\x03M\x04\x12\n\x0c\n\x05\x05\x02\x02\x03\x01\
  4935. \x12\x03M\x04\x0b\n\x0c\n\x05\x05\x02\x02\x03\x02\x12\x03M\x0e\x11\n\x0b\
  4936. \n\x04\x05\x02\x02\x04\x12\x03N\x04\x15\n\x0c\n\x05\x05\x02\x02\x04\x01\
  4937. \x12\x03N\x04\x0e\n\x0c\n\x05\x05\x02\x02\x04\x02\x12\x03N\x11\x14\n\x0b\
  4938. \n\x04\x05\x02\x02\x05\x12\x03O\x04\x12\n\x0c\n\x05\x05\x02\x02\x05\x01\
  4939. \x12\x03O\x04\x0b\n\x0c\n\x05\x05\x02\x02\x05\x02\x12\x03O\x0e\x11\n\x0b\
  4940. \n\x04\x05\x02\x02\x06\x12\x03P\x04\x13\n\x0c\n\x05\x05\x02\x02\x06\x01\
  4941. \x12\x03P\x04\x0c\n\x0c\n\x05\x05\x02\x02\x06\x02\x12\x03P\x0f\x12\n\x0b\
  4942. \n\x04\x05\x02\x02\x07\x12\x03Q\x04\x11\n\x0c\n\x05\x05\x02\x02\x07\x01\
  4943. \x12\x03Q\x04\n\n\x0c\n\x05\x05\x02\x02\x07\x02\x12\x03Q\r\x10\n\x0b\n\
  4944. \x04\x05\x02\x02\x08\x12\x03R\x04\x13\n\x0c\n\x05\x05\x02\x02\x08\x01\
  4945. \x12\x03R\x04\x0c\n\x0c\n\x05\x05\x02\x02\x08\x02\x12\x03R\x0f\x12\n\x0b\
  4946. \n\x04\x05\x02\x02\t\x12\x03S\x04\x17\n\x0c\n\x05\x05\x02\x02\t\x01\x12\
  4947. \x03S\x04\x10\n\x0c\n\x05\x05\x02\x02\t\x02\x12\x03S\x13\x16\n\n\n\x02\
  4948. \x05\x03\x12\x04V\0[\x01\n\n\n\x03\x05\x03\x01\x12\x03V\x05\n\n\x0b\n\
  4949. \x04\x05\x03\x02\0\x12\x03W\x04\x1a\n\x0c\n\x05\x05\x03\x02\0\x01\x12\
  4950. \x03W\x04\x13\n\x0c\n\x05\x05\x03\x02\0\x02\x12\x03W\x16\x19\n\x0b\n\x04\
  4951. \x05\x03\x02\x01\x12\x03X\x04\x14\n\x0c\n\x05\x05\x03\x02\x01\x01\x12\
  4952. \x03X\x04\r\n\x0c\n\x05\x05\x03\x02\x01\x02\x12\x03X\x10\x13\n\x0b\n\x04\
  4953. \x05\x03\x02\x02\x12\x03Y\x04\x14\n\x0c\n\x05\x05\x03\x02\x02\x01\x12\
  4954. \x03Y\x04\r\n\x0c\n\x05\x05\x03\x02\x02\x02\x12\x03Y\x10\x13\n\x0b\n\x04\
  4955. \x05\x03\x02\x03\x12\x03Z\x04\x16\n\x0c\n\x05\x05\x03\x02\x03\x01\x12\
  4956. \x03Z\x04\x0f\n\x0c\n\x05\x05\x03\x02\x03\x02\x12\x03Z\x12\x15\n\n\n\x02\
  4957. \x05\x04\x12\x04]\0u\x01\n\n\n\x03\x05\x04\x01\x12\x03]\x05\x07\n\x0b\n\
  4958. \x04\x05\x04\x02\0\x12\x03^\x04\x15\n\x0c\n\x05\x05\x04\x02\0\x01\x12\
  4959. \x03^\x04\x0e\n\x0c\n\x05\x05\x04\x02\0\x02\x12\x03^\x11\x14\n\x0b\n\x04\
  4960. \x05\x04\x02\x01\x12\x03_\x04\x15\n\x0c\n\x05\x05\x04\x02\x01\x01\x12\
  4961. \x03_\x04\x0e\n\x0c\n\x05\x05\x04\x02\x01\x02\x12\x03_\x11\x14\n\x0b\n\
  4962. \x04\x05\x04\x02\x02\x12\x03`\x04\x11\n\x0c\n\x05\x05\x04\x02\x02\x01\
  4963. \x12\x03`\x04\n\n\x0c\n\x05\x05\x04\x02\x02\x02\x12\x03`\r\x10\n\x0b\n\
  4964. \x04\x05\x04\x02\x03\x12\x03a\x04\x14\n\x0c\n\x05\x05\x04\x02\x03\x01\
  4965. \x12\x03a\x04\r\n\x0c\n\x05\x05\x04\x02\x03\x02\x12\x03a\x10\x13\n\x0b\n\
  4966. \x04\x05\x04\x02\x04\x12\x03b\x04\x11\n\x0c\n\x05\x05\x04\x02\x04\x01\
  4967. \x12\x03b\x04\n\n\x0c\n\x05\x05\x04\x02\x04\x02\x12\x03b\r\x10\n\x0b\n\
  4968. \x04\x05\x04\x02\x05\x12\x03c\x04\x13\n\x0c\n\x05\x05\x04\x02\x05\x01\
  4969. \x12\x03c\x04\x0c\n\x0c\n\x05\x05\x04\x02\x05\x02\x12\x03c\x0f\x12\n\x0b\
  4970. \n\x04\x05\x04\x02\x06\x12\x03d\x04\x18\n\x0c\n\x05\x05\x04\x02\x06\x01\
  4971. \x12\x03d\x04\x11\n\x0c\n\x05\x05\x04\x02\x06\x02\x12\x03d\x14\x17\n\x0b\
  4972. \n\x04\x05\x04\x02\x07\x12\x03e\x04\x15\n\x0c\n\x05\x05\x04\x02\x07\x01\
  4973. \x12\x03e\x04\x0e\n\x0c\n\x05\x05\x04\x02\x07\x02\x12\x03e\x11\x14\n\x0b\
  4974. \n\x04\x05\x04\x02\x08\x12\x03f\x04\x12\n\x0c\n\x05\x05\x04\x02\x08\x01\
  4975. \x12\x03f\x04\x0b\n\x0c\n\x05\x05\x04\x02\x08\x02\x12\x03f\x0e\x11\n\x0b\
  4976. \n\x04\x05\x04\x02\t\x12\x03g\x04\x15\n\x0c\n\x05\x05\x04\x02\t\x01\x12\
  4977. \x03g\x04\x0e\n\x0c\n\x05\x05\x04\x02\t\x02\x12\x03g\x11\x14\n\x0b\n\x04\
  4978. \x05\x04\x02\n\x12\x03h\x04\x18\n\x0c\n\x05\x05\x04\x02\n\x01\x12\x03h\
  4979. \x04\x11\n\x0c\n\x05\x05\x04\x02\n\x02\x12\x03h\x14\x17\n\x0b\n\x04\x05\
  4980. \x04\x02\x0b\x12\x03i\x04\x13\n\x0c\n\x05\x05\x04\x02\x0b\x01\x12\x03i\
  4981. \x04\x0c\n\x0c\n\x05\x05\x04\x02\x0b\x02\x12\x03i\x0f\x12\n\x0b\n\x04\
  4982. \x05\x04\x02\x0c\x12\x03j\x04\x16\n\x0c\n\x05\x05\x04\x02\x0c\x01\x12\
  4983. \x03j\x04\x0f\n\x0c\n\x05\x05\x04\x02\x0c\x02\x12\x03j\x12\x15\n\x0b\n\
  4984. \x04\x05\x04\x02\r\x12\x03k\x04\x11\n\x0c\n\x05\x05\x04\x02\r\x01\x12\
  4985. \x03k\x04\n\n\x0c\n\x05\x05\x04\x02\r\x02\x12\x03k\r\x10\n\x0b\n\x04\x05\
  4986. \x04\x02\x0e\x12\x03l\x04\x13\n\x0c\n\x05\x05\x04\x02\x0e\x01\x12\x03l\
  4987. \x04\x0c\n\x0c\n\x05\x05\x04\x02\x0e\x02\x12\x03l\x0f\x12\n\x0b\n\x04\
  4988. \x05\x04\x02\x0f\x12\x03m\x04\x15\n\x0c\n\x05\x05\x04\x02\x0f\x01\x12\
  4989. \x03m\x04\x0e\n\x0c\n\x05\x05\x04\x02\x0f\x02\x12\x03m\x11\x14\n\x0b\n\
  4990. \x04\x05\x04\x02\x10\x12\x03n\x04\x11\n\x0c\n\x05\x05\x04\x02\x10\x01\
  4991. \x12\x03n\x04\t\n\x0c\n\x05\x05\x04\x02\x10\x02\x12\x03n\x0c\x10\n\x0b\n\
  4992. \x04\x05\x04\x02\x11\x12\x03o\x04\x14\n\x0c\n\x05\x05\x04\x02\x11\x01\
  4993. \x12\x03o\x04\x0c\n\x0c\n\x05\x05\x04\x02\x11\x02\x12\x03o\x0f\x13\n\x0b\
  4994. \n\x04\x05\x04\x02\x12\x12\x03p\x04\x13\n\x0c\n\x05\x05\x04\x02\x12\x01\
  4995. \x12\x03p\x04\x0b\n\x0c\n\x05\x05\x04\x02\x12\x02\x12\x03p\x0e\x12\n\x0b\
  4996. \n\x04\x05\x04\x02\x13\x12\x03q\x04\x13\n\x0c\n\x05\x05\x04\x02\x13\x01\
  4997. \x12\x03q\x04\x0b\n\x0c\n\x05\x05\x04\x02\x13\x02\x12\x03q\x0e\x12\n\x0b\
  4998. \n\x04\x05\x04\x02\x14\x12\x03r\x04\x14\n\x0c\n\x05\x05\x04\x02\x14\x01\
  4999. \x12\x03r\x04\x0c\n\x0c\n\x05\x05\x04\x02\x14\x02\x12\x03r\x0f\x13\n\x0b\
  5000. \n\x04\x05\x04\x02\x15\x12\x03s\x04\x15\n\x0c\n\x05\x05\x04\x02\x15\x01\
  5001. \x12\x03s\x04\r\n\x0c\n\x05\x05\x04\x02\x15\x02\x12\x03s\x10\x14\n\x0b\n\
  5002. \x04\x05\x04\x02\x16\x12\x03t\x04\x12\n\x0c\n\x05\x05\x04\x02\x16\x01\
  5003. \x12\x03t\x04\n\n\x0c\n\x05\x05\x04\x02\x16\x02\x12\x03t\r\x11\n\n\n\x02\
  5004. \x04\t\x12\x04w\0}\x01\n\n\n\x03\x04\t\x01\x12\x03w\x08\x18\n\x0b\n\x04\
  5005. \x04\t\x02\0\x12\x03x\x04\"\n\x0c\n\x05\x04\t\x02\0\x04\x12\x03x\x04\x0c\
  5006. \n\x0c\n\x05\x04\t\x02\0\x05\x12\x03x\r\x13\n\x0c\n\x05\x04\t\x02\0\x01\
  5007. \x12\x03x\x14\x1b\n\x0c\n\x05\x04\t\x02\0\x03\x12\x03x\x1e!\n\x0b\n\x04\
  5008. \x04\t\x02\x01\x12\x03y\x04\x20\n\x0c\n\x05\x04\t\x02\x01\x04\x12\x03y\
  5009. \x04\x0c\n\x0c\n\x05\x04\t\x02\x01\x05\x12\x03y\r\x12\n\x0c\n\x05\x04\t\
  5010. \x02\x01\x01\x12\x03y\x13\x19\n\x0c\n\x05\x04\t\x02\x01\x03\x12\x03y\x1c\
  5011. \x1f\n\x0b\n\x04\x04\t\x02\x02\x12\x03z\x04#\n\x0c\n\x05\x04\t\x02\x02\
  5012. \x04\x12\x03z\x04\x0c\n\x0c\n\x05\x04\t\x02\x02\x05\x12\x03z\r\x12\n\x0c\
  5013. \n\x05\x04\t\x02\x02\x01\x12\x03z\x13\x1c\n\x0c\n\x05\x04\t\x02\x02\x03\
  5014. \x12\x03z\x1f\"\n\x0b\n\x04\x04\t\x02\x03\x12\x03{\x04$\n\x0c\n\x05\x04\
  5015. \t\x02\x03\x04\x12\x03{\x04\x0c\n\x0c\n\x05\x04\t\x02\x03\x05\x12\x03{\r\
  5016. \x13\n\x0c\n\x05\x04\t\x02\x03\x01\x12\x03{\x14\x1d\n\x0c\n\x05\x04\t\
  5017. \x02\x03\x03\x12\x03{\x20#\n\x0b\n\x04\x04\t\x02\x04\x12\x03|\x04'\n\x0c\
  5018. \n\x05\x04\t\x02\x04\x04\x12\x03|\x04\x0c\n\x0c\n\x05\x04\t\x02\x04\x05\
  5019. \x12\x03|\r\x12\n\x0c\n\x05\x04\t\x02\x04\x01\x12\x03|\x13\x20\n\x0c\n\
  5020. \x05\x04\t\x02\x04\x03\x12\x03|#&\n\x0b\n\x02\x04\n\x12\x05\x7f\0\x83\
  5021. \x01\x01\n\n\n\x03\x04\n\x01\x12\x03\x7f\x08\x12\n\x0c\n\x04\x04\n\x02\0\
  5022. \x12\x04\x80\x01\x04\x20\n\r\n\x05\x04\n\x02\0\x04\x12\x04\x80\x01\x04\
  5023. \x0c\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x80\x01\r\x11\n\r\n\x05\x04\n\x02\
  5024. \0\x01\x12\x04\x80\x01\x12\x19\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x80\x01\
  5025. \x1c\x1f\n\x0c\n\x04\x04\n\x02\x01\x12\x04\x81\x01\x04)\n\r\n\x05\x04\n\
  5026. \x02\x01\x04\x12\x04\x81\x01\x04\x0c\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\
  5027. \x81\x01\r\x1f\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x81\x01\x20\"\n\r\n\
  5028. \x05\x04\n\x02\x01\x03\x12\x04\x81\x01%(\n\x0c\n\x04\x04\n\x02\x02\x12\
  5029. \x04\x82\x01\x04#\n\r\n\x05\x04\n\x02\x02\x04\x12\x04\x82\x01\x04\x0c\n\
  5030. \r\n\x05\x04\n\x02\x02\x05\x12\x04\x82\x01\r\x13\n\r\n\x05\x04\n\x02\x02\
  5031. \x01\x12\x04\x82\x01\x14\x1c\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x82\x01\
  5032. \x1f\"\n\x0c\n\x02\x04\x0b\x12\x06\x85\x01\0\x87\x01\x01\n\x0b\n\x03\x04\
  5033. \x0b\x01\x12\x04\x85\x01\x08\x1a\n\x0c\n\x04\x04\x0b\x02\0\x12\x04\x86\
  5034. \x01\x04%\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\x86\x01\x04\x0c\n\r\n\x05\
  5035. \x04\x0b\x02\0\x05\x12\x04\x86\x01\r\x13\n\r\n\x05\x04\x0b\x02\0\x01\x12\
  5036. \x04\x86\x01\x14\x1e\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x86\x01!$\n\x0c\
  5037. \n\x02\x04\x0c\x12\x06\x89\x01\0\x92\x01\x01\n\x0b\n\x03\x04\x0c\x01\x12\
  5038. \x04\x89\x01\x08\x11\n\x0c\n\x04\x04\x0c\x02\0\x12\x04\x8a\x01\x04-\n\r\
  5039. \n\x05\x04\x0c\x02\0\x04\x12\x04\x8a\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\0\
  5040. \x05\x12\x04\x8a\x01\r\x13\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\x8a\x01\
  5041. \x14&\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x8a\x01),\n\x0c\n\x04\x04\x0c\
  5042. \x02\x01\x12\x04\x8b\x01\x047\n\r\n\x05\x04\x0c\x02\x01\x04\x12\x04\x8b\
  5043. \x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\x8b\x01\r\x18\n\r\n\
  5044. \x05\x04\x0c\x02\x01\x01\x12\x04\x8b\x01\x19/\n\r\n\x05\x04\x0c\x02\x01\
  5045. \x03\x12\x04\x8b\x0126\n\x0c\n\x04\x04\x0c\x02\x02\x12\x04\x8c\x01\x04;\
  5046. \n\r\n\x05\x04\x0c\x02\x02\x04\x12\x04\x8c\x01\x04\x0c\n\r\n\x05\x04\x0c\
  5047. \x02\x02\x06\x12\x04\x8c\x01\r\x18\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\
  5048. \x8c\x01\x193\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\x8c\x016:\n\x0c\n\
  5049. \x04\x04\x0c\x02\x03\x12\x04\x8d\x01\x04F\n\r\n\x05\x04\x0c\x02\x03\x04\
  5050. \x12\x04\x8d\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x03\x06\x12\x04\x8d\x01\r\
  5051. \x1f\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\x8d\x01\x20>\n\r\n\x05\x04\
  5052. \x0c\x02\x03\x03\x12\x04\x8d\x01AE\n\x0c\n\x04\x04\x0c\x02\x04\x12\x04\
  5053. \x8e\x01\x044\n\r\n\x05\x04\x0c\x02\x04\x04\x12\x04\x8e\x01\x04\x0c\n\r\
  5054. \n\x05\x04\x0c\x02\x04\x05\x12\x04\x8e\x01\r\x12\n\r\n\x05\x04\x0c\x02\
  5055. \x04\x01\x12\x04\x8e\x01\x13,\n\r\n\x05\x04\x0c\x02\x04\x03\x12\x04\x8e\
  5056. \x01/3\n\x0c\n\x04\x04\x0c\x02\x05\x12\x04\x8f\x01\x04%\n\r\n\x05\x04\
  5057. \x0c\x02\x05\x04\x12\x04\x8f\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x05\x05\
  5058. \x12\x04\x8f\x01\r\x12\n\r\n\x05\x04\x0c\x02\x05\x01\x12\x04\x8f\x01\x13\
  5059. \x1d\n\r\n\x05\x04\x0c\x02\x05\x03\x12\x04\x8f\x01\x20$\n\x0c\n\x04\x04\
  5060. \x0c\x02\x06\x12\x04\x90\x01\x04-\n\r\n\x05\x04\x0c\x02\x06\x04\x12\x04\
  5061. \x90\x01\x04\x0c\n\r\n\x05\x04\x0c\x02\x06\x06\x12\x04\x90\x01\r\x18\n\r\
  5062. \n\x05\x04\x0c\x02\x06\x01\x12\x04\x90\x01\x19%\n\r\n\x05\x04\x0c\x02\
  5063. \x06\x03\x12\x04\x90\x01(,\n\x0c\n\x04\x04\x0c\x02\x07\x12\x04\x91\x01\
  5064. \x04+\n\r\n\x05\x04\x0c\x02\x07\x04\x12\x04\x91\x01\x04\x0c\n\r\n\x05\
  5065. \x04\x0c\x02\x07\x06\x12\x04\x91\x01\r\x20\n\r\n\x05\x04\x0c\x02\x07\x01\
  5066. \x12\x04\x91\x01!#\n\r\n\x05\x04\x0c\x02\x07\x03\x12\x04\x91\x01&*\n\x0c\
  5067. \n\x02\x05\x05\x12\x06\x94\x01\0\x97\x01\x01\n\x0b\n\x03\x05\x05\x01\x12\
  5068. \x04\x94\x01\x05\x10\n\x0c\n\x04\x05\x05\x02\0\x12\x04\x95\x01\x04\x12\n\
  5069. \r\n\x05\x05\x05\x02\0\x01\x12\x04\x95\x01\x04\x0b\n\r\n\x05\x05\x05\x02\
  5070. \0\x02\x12\x04\x95\x01\x0e\x11\n\x0c\n\x04\x05\x05\x02\x01\x12\x04\x96\
  5071. \x01\x04\x13\n\r\n\x05\x05\x05\x02\x01\x01\x12\x04\x96\x01\x04\x0c\n\r\n\
  5072. \x05\x05\x05\x02\x01\x02\x12\x04\x96\x01\x0f\x12\n\x0c\n\x02\x04\r\x12\
  5073. \x06\x99\x01\0\x9c\x01\x01\n\x0b\n\x03\x04\r\x01\x12\x04\x99\x01\x08\x13\
  5074. \n\x0c\n\x04\x04\r\x02\0\x12\x04\x9a\x01\x04.\n\r\n\x05\x04\r\x02\0\x04\
  5075. \x12\x04\x9a\x01\x04\x0c\n\r\n\x05\x04\r\x02\0\x06\x12\x04\x9a\x01\r\x1f\
  5076. \n\r\n\x05\x04\r\x02\0\x01\x12\x04\x9a\x01\x20'\n\r\n\x05\x04\r\x02\0\
  5077. \x03\x12\x04\x9a\x01*-\n\x0c\n\x04\x04\r\x02\x01\x12\x04\x9b\x01\x040\n\
  5078. \r\n\x05\x04\r\x02\x01\x04\x12\x04\x9b\x01\x04\x0c\n\r\n\x05\x04\r\x02\
  5079. \x01\x06\x12\x04\x9b\x01\r\x20\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x9b\
  5080. \x01!)\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\x9b\x01,/\n\x0c\n\x02\x04\x0e\
  5081. \x12\x06\x9e\x01\0\x9f\x01\x01\n\x0b\n\x03\x04\x0e\x01\x12\x04\x9e\x01\
  5082. \x08\x1a\n\x0c\n\x02\x04\x0f\x12\x06\xa1\x01\0\xa4\x01\x01\n\x0b\n\x03\
  5083. \x04\x0f\x01\x12\x04\xa1\x01\x08\x1b\n\x0c\n\x04\x04\x0f\x02\0\x12\x04\
  5084. \xa2\x01\x04'\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xa2\x01\x04\x0c\n\r\n\
  5085. \x05\x04\x0f\x02\0\x05\x12\x04\xa2\x01\r\x13\n\r\n\x05\x04\x0f\x02\0\x01\
  5086. \x12\x04\xa2\x01\x14\x20\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xa2\x01#&\n\
  5087. \x0c\n\x04\x04\x0f\x02\x01\x12\x04\xa3\x01\x04%\n\r\n\x05\x04\x0f\x02\
  5088. \x01\x04\x12\x04\xa3\x01\x04\x0c\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\
  5089. \xa3\x01\r\x13\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xa3\x01\x14\x1e\n\r\
  5090. \n\x05\x04\x0f\x02\x01\x03\x12\x04\xa3\x01!$\
  5091. ";
  5092. static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
  5093. lock: ::protobuf::lazy::ONCE_INIT,
  5094. ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
  5095. };
  5096. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  5097. ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
  5098. }
  5099. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  5100. unsafe {
  5101. file_descriptor_proto_lazy.get(|| {
  5102. parse_descriptor_proto()
  5103. })
  5104. }
  5105. }