app_api_pb.js 375 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235
  1. // source: app_api.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {missingRequire} reports error on implicit type usages.
  6. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  7. * field starts with 'MSG_' and isn't a translatable message.
  8. * @public
  9. */
  10. // GENERATED CODE -- DO NOT EDIT!
  11. /* eslint-disable */
  12. // @ts-nocheck
  13. var jspb = require('google-protobuf');
  14. var goog = jspb;
  15. var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
  16. var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
  17. goog.object.extend(proto, google_protobuf_duration_pb);
  18. var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
  19. goog.object.extend(proto, google_protobuf_timestamp_pb);
  20. goog.exportSymbol('proto.app.v1.AssControlInfoDetailReply', null, global);
  21. goog.exportSymbol('proto.app.v1.AssControlInfoGpsSaveRequest', null, global);
  22. goog.exportSymbol('proto.app.v1.AssControlInfoListReply', null, global);
  23. goog.exportSymbol('proto.app.v1.AssControlInfoSaveRequest', null, global);
  24. goog.exportSymbol('proto.app.v1.AssShopListReply', null, global);
  25. goog.exportSymbol('proto.app.v1.AssVerificationRequest', null, global);
  26. goog.exportSymbol('proto.app.v1.AuthSendCodeToPhoneRequest', null, global);
  27. goog.exportSymbol('proto.app.v1.CType', null, global);
  28. goog.exportSymbol('proto.app.v1.ControlInfoList', null, global);
  29. goog.exportSymbol('proto.app.v1.ControlPoint', null, global);
  30. goog.exportSymbol('proto.app.v1.ControlPointInfo', null, global);
  31. goog.exportSymbol('proto.app.v1.ControlPointSimple', null, global);
  32. goog.exportSymbol('proto.app.v1.DefaultReply', null, global);
  33. goog.exportSymbol('proto.app.v1.DefaultRequest', null, global);
  34. goog.exportSymbol('proto.app.v1.ErrorCode', null, global);
  35. goog.exportSymbol('proto.app.v1.GameControlPoint', null, global);
  36. goog.exportSymbol('proto.app.v1.GameData', null, global);
  37. goog.exportSymbol('proto.app.v1.GameDetailReply', null, global);
  38. goog.exportSymbol('proto.app.v1.GameFinishRequest', null, global);
  39. goog.exportSymbol('proto.app.v1.GameHistory', null, global);
  40. goog.exportSymbol('proto.app.v1.GameSave', null, global);
  41. goog.exportSymbol('proto.app.v1.GameSaveControlPoint', null, global);
  42. goog.exportSymbol('proto.app.v1.GameSaveUploadRequest', null, global);
  43. goog.exportSymbol('proto.app.v1.GameStartReply', null, global);
  44. goog.exportSymbol('proto.app.v1.GameStartRequest', null, global);
  45. goog.exportSymbol('proto.app.v1.GetInGameDataReply', null, global);
  46. goog.exportSymbol('proto.app.v1.GetRegionReply', null, global);
  47. goog.exportSymbol('proto.app.v1.GetServerTimeReply', null, global);
  48. goog.exportSymbol('proto.app.v1.GetSmsSendLeftTimeReply', null, global);
  49. goog.exportSymbol('proto.app.v1.GetSmsSendLeftTimeRequest', null, global);
  50. goog.exportSymbol('proto.app.v1.GetUpdateVersionReply', null, global);
  51. goog.exportSymbol('proto.app.v1.GetUpdateVersionRequest', null, global);
  52. goog.exportSymbol('proto.app.v1.HistoryGameDetailReply', null, global);
  53. goog.exportSymbol('proto.app.v1.IdRequest', null, global);
  54. goog.exportSymbol('proto.app.v1.Image', null, global);
  55. goog.exportSymbol('proto.app.v1.LoginSource', null, global);
  56. goog.exportSymbol('proto.app.v1.MapRoute', null, global);
  57. goog.exportSymbol('proto.app.v1.MyHistoryGameReply', null, global);
  58. goog.exportSymbol('proto.app.v1.MyUserQueryReply', null, global);
  59. goog.exportSymbol('proto.app.v1.NetImage', null, global);
  60. goog.exportSymbol('proto.app.v1.Position', null, global);
  61. goog.exportSymbol('proto.app.v1.PositionRequest', null, global);
  62. goog.exportSymbol('proto.app.v1.ProjectContentType', null, global);
  63. goog.exportSymbol('proto.app.v1.ProjectDetailReply', null, global);
  64. goog.exportSymbol('proto.app.v1.ProjectInfoSimple', null, global);
  65. goog.exportSymbol('proto.app.v1.ProjectListReply', null, global);
  66. goog.exportSymbol('proto.app.v1.ProviderDetailReply', null, global);
  67. goog.exportSymbol('proto.app.v1.ProviderInfoSimple', null, global);
  68. goog.exportSymbol('proto.app.v1.ProviderListReply', null, global);
  69. goog.exportSymbol('proto.app.v1.ProviderListRequest', null, global);
  70. goog.exportSymbol('proto.app.v1.Region', null, global);
  71. goog.exportSymbol('proto.app.v1.RegionListReply', null, global);
  72. goog.exportSymbol('proto.app.v1.RegionListRequest', null, global);
  73. goog.exportSymbol('proto.app.v1.ShopList', null, global);
  74. goog.exportSymbol('proto.app.v1.SignInReply', null, global);
  75. goog.exportSymbol('proto.app.v1.SignInRequest', null, global);
  76. goog.exportSymbol('proto.app.v1.SignOutRequest', null, global);
  77. goog.exportSymbol('proto.app.v1.SignUpRequest', null, global);
  78. goog.exportSymbol('proto.app.v1.SmsType', null, global);
  79. goog.exportSymbol('proto.app.v1.User', null, global);
  80. goog.exportSymbol('proto.app.v1.User.Sex', null, global);
  81. goog.exportSymbol('proto.app.v1.UserNameEditRequest', null, global);
  82. goog.exportSymbol('proto.app.v1.UserType', null, global);
  83. /**
  84. * Generated by JsPbCodeGenerator.
  85. * @param {Array=} opt_data Optional initial data array, typically from a
  86. * server response, or constructed directly in Javascript. The array is used
  87. * in place and becomes part of the constructed object. It is not cloned.
  88. * If no data is provided, the constructed object will be empty, but still
  89. * valid.
  90. * @extends {jspb.Message}
  91. * @constructor
  92. */
  93. proto.app.v1.Image = function(opt_data) {
  94. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  95. };
  96. goog.inherits(proto.app.v1.Image, jspb.Message);
  97. if (goog.DEBUG && !COMPILED) {
  98. /**
  99. * @public
  100. * @override
  101. */
  102. proto.app.v1.Image.displayName = 'proto.app.v1.Image';
  103. }
  104. /**
  105. * Generated by JsPbCodeGenerator.
  106. * @param {Array=} opt_data Optional initial data array, typically from a
  107. * server response, or constructed directly in Javascript. The array is used
  108. * in place and becomes part of the constructed object. It is not cloned.
  109. * If no data is provided, the constructed object will be empty, but still
  110. * valid.
  111. * @extends {jspb.Message}
  112. * @constructor
  113. */
  114. proto.app.v1.GameFinishRequest = function(opt_data) {
  115. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  116. };
  117. goog.inherits(proto.app.v1.GameFinishRequest, jspb.Message);
  118. if (goog.DEBUG && !COMPILED) {
  119. /**
  120. * @public
  121. * @override
  122. */
  123. proto.app.v1.GameFinishRequest.displayName = 'proto.app.v1.GameFinishRequest';
  124. }
  125. /**
  126. * Generated by JsPbCodeGenerator.
  127. * @param {Array=} opt_data Optional initial data array, typically from a
  128. * server response, or constructed directly in Javascript. The array is used
  129. * in place and becomes part of the constructed object. It is not cloned.
  130. * If no data is provided, the constructed object will be empty, but still
  131. * valid.
  132. * @extends {jspb.Message}
  133. * @constructor
  134. */
  135. proto.app.v1.GameDetailReply = function(opt_data) {
  136. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.GameDetailReply.repeatedFields_, null);
  137. };
  138. goog.inherits(proto.app.v1.GameDetailReply, jspb.Message);
  139. if (goog.DEBUG && !COMPILED) {
  140. /**
  141. * @public
  142. * @override
  143. */
  144. proto.app.v1.GameDetailReply.displayName = 'proto.app.v1.GameDetailReply';
  145. }
  146. /**
  147. * Generated by JsPbCodeGenerator.
  148. * @param {Array=} opt_data Optional initial data array, typically from a
  149. * server response, or constructed directly in Javascript. The array is used
  150. * in place and becomes part of the constructed object. It is not cloned.
  151. * If no data is provided, the constructed object will be empty, but still
  152. * valid.
  153. * @extends {jspb.Message}
  154. * @constructor
  155. */
  156. proto.app.v1.GameControlPoint = function(opt_data) {
  157. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  158. };
  159. goog.inherits(proto.app.v1.GameControlPoint, jspb.Message);
  160. if (goog.DEBUG && !COMPILED) {
  161. /**
  162. * @public
  163. * @override
  164. */
  165. proto.app.v1.GameControlPoint.displayName = 'proto.app.v1.GameControlPoint';
  166. }
  167. /**
  168. * Generated by JsPbCodeGenerator.
  169. * @param {Array=} opt_data Optional initial data array, typically from a
  170. * server response, or constructed directly in Javascript. The array is used
  171. * in place and becomes part of the constructed object. It is not cloned.
  172. * If no data is provided, the constructed object will be empty, but still
  173. * valid.
  174. * @extends {jspb.Message}
  175. * @constructor
  176. */
  177. proto.app.v1.AssVerificationRequest = function(opt_data) {
  178. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  179. };
  180. goog.inherits(proto.app.v1.AssVerificationRequest, jspb.Message);
  181. if (goog.DEBUG && !COMPILED) {
  182. /**
  183. * @public
  184. * @override
  185. */
  186. proto.app.v1.AssVerificationRequest.displayName = 'proto.app.v1.AssVerificationRequest';
  187. }
  188. /**
  189. * Generated by JsPbCodeGenerator.
  190. * @param {Array=} opt_data Optional initial data array, typically from a
  191. * server response, or constructed directly in Javascript. The array is used
  192. * in place and becomes part of the constructed object. It is not cloned.
  193. * If no data is provided, the constructed object will be empty, but still
  194. * valid.
  195. * @extends {jspb.Message}
  196. * @constructor
  197. */
  198. proto.app.v1.GameHistory = function(opt_data) {
  199. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  200. };
  201. goog.inherits(proto.app.v1.GameHistory, jspb.Message);
  202. if (goog.DEBUG && !COMPILED) {
  203. /**
  204. * @public
  205. * @override
  206. */
  207. proto.app.v1.GameHistory.displayName = 'proto.app.v1.GameHistory';
  208. }
  209. /**
  210. * Generated by JsPbCodeGenerator.
  211. * @param {Array=} opt_data Optional initial data array, typically from a
  212. * server response, or constructed directly in Javascript. The array is used
  213. * in place and becomes part of the constructed object. It is not cloned.
  214. * If no data is provided, the constructed object will be empty, but still
  215. * valid.
  216. * @extends {jspb.Message}
  217. * @constructor
  218. */
  219. proto.app.v1.NetImage = function(opt_data) {
  220. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  221. };
  222. goog.inherits(proto.app.v1.NetImage, jspb.Message);
  223. if (goog.DEBUG && !COMPILED) {
  224. /**
  225. * @public
  226. * @override
  227. */
  228. proto.app.v1.NetImage.displayName = 'proto.app.v1.NetImage';
  229. }
  230. /**
  231. * Generated by JsPbCodeGenerator.
  232. * @param {Array=} opt_data Optional initial data array, typically from a
  233. * server response, or constructed directly in Javascript. The array is used
  234. * in place and becomes part of the constructed object. It is not cloned.
  235. * If no data is provided, the constructed object will be empty, but still
  236. * valid.
  237. * @extends {jspb.Message}
  238. * @constructor
  239. */
  240. proto.app.v1.Position = function(opt_data) {
  241. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  242. };
  243. goog.inherits(proto.app.v1.Position, jspb.Message);
  244. if (goog.DEBUG && !COMPILED) {
  245. /**
  246. * @public
  247. * @override
  248. */
  249. proto.app.v1.Position.displayName = 'proto.app.v1.Position';
  250. }
  251. /**
  252. * Generated by JsPbCodeGenerator.
  253. * @param {Array=} opt_data Optional initial data array, typically from a
  254. * server response, or constructed directly in Javascript. The array is used
  255. * in place and becomes part of the constructed object. It is not cloned.
  256. * If no data is provided, the constructed object will be empty, but still
  257. * valid.
  258. * @extends {jspb.Message}
  259. * @constructor
  260. */
  261. proto.app.v1.ControlPointInfo = function(opt_data) {
  262. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  263. };
  264. goog.inherits(proto.app.v1.ControlPointInfo, jspb.Message);
  265. if (goog.DEBUG && !COMPILED) {
  266. /**
  267. * @public
  268. * @override
  269. */
  270. proto.app.v1.ControlPointInfo.displayName = 'proto.app.v1.ControlPointInfo';
  271. }
  272. /**
  273. * Generated by JsPbCodeGenerator.
  274. * @param {Array=} opt_data Optional initial data array, typically from a
  275. * server response, or constructed directly in Javascript. The array is used
  276. * in place and becomes part of the constructed object. It is not cloned.
  277. * If no data is provided, the constructed object will be empty, but still
  278. * valid.
  279. * @extends {jspb.Message}
  280. * @constructor
  281. */
  282. proto.app.v1.ControlPoint = function(opt_data) {
  283. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.ControlPoint.repeatedFields_, null);
  284. };
  285. goog.inherits(proto.app.v1.ControlPoint, jspb.Message);
  286. if (goog.DEBUG && !COMPILED) {
  287. /**
  288. * @public
  289. * @override
  290. */
  291. proto.app.v1.ControlPoint.displayName = 'proto.app.v1.ControlPoint';
  292. }
  293. /**
  294. * Generated by JsPbCodeGenerator.
  295. * @param {Array=} opt_data Optional initial data array, typically from a
  296. * server response, or constructed directly in Javascript. The array is used
  297. * in place and becomes part of the constructed object. It is not cloned.
  298. * If no data is provided, the constructed object will be empty, but still
  299. * valid.
  300. * @extends {jspb.Message}
  301. * @constructor
  302. */
  303. proto.app.v1.ControlPointSimple = function(opt_data) {
  304. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.ControlPointSimple.repeatedFields_, null);
  305. };
  306. goog.inherits(proto.app.v1.ControlPointSimple, jspb.Message);
  307. if (goog.DEBUG && !COMPILED) {
  308. /**
  309. * @public
  310. * @override
  311. */
  312. proto.app.v1.ControlPointSimple.displayName = 'proto.app.v1.ControlPointSimple';
  313. }
  314. /**
  315. * Generated by JsPbCodeGenerator.
  316. * @param {Array=} opt_data Optional initial data array, typically from a
  317. * server response, or constructed directly in Javascript. The array is used
  318. * in place and becomes part of the constructed object. It is not cloned.
  319. * If no data is provided, the constructed object will be empty, but still
  320. * valid.
  321. * @extends {jspb.Message}
  322. * @constructor
  323. */
  324. proto.app.v1.GameData = function(opt_data) {
  325. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.GameData.repeatedFields_, null);
  326. };
  327. goog.inherits(proto.app.v1.GameData, jspb.Message);
  328. if (goog.DEBUG && !COMPILED) {
  329. /**
  330. * @public
  331. * @override
  332. */
  333. proto.app.v1.GameData.displayName = 'proto.app.v1.GameData';
  334. }
  335. /**
  336. * Generated by JsPbCodeGenerator.
  337. * @param {Array=} opt_data Optional initial data array, typically from a
  338. * server response, or constructed directly in Javascript. The array is used
  339. * in place and becomes part of the constructed object. It is not cloned.
  340. * If no data is provided, the constructed object will be empty, but still
  341. * valid.
  342. * @extends {jspb.Message}
  343. * @constructor
  344. */
  345. proto.app.v1.GameSaveControlPoint = function(opt_data) {
  346. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  347. };
  348. goog.inherits(proto.app.v1.GameSaveControlPoint, jspb.Message);
  349. if (goog.DEBUG && !COMPILED) {
  350. /**
  351. * @public
  352. * @override
  353. */
  354. proto.app.v1.GameSaveControlPoint.displayName = 'proto.app.v1.GameSaveControlPoint';
  355. }
  356. /**
  357. * Generated by JsPbCodeGenerator.
  358. * @param {Array=} opt_data Optional initial data array, typically from a
  359. * server response, or constructed directly in Javascript. The array is used
  360. * in place and becomes part of the constructed object. It is not cloned.
  361. * If no data is provided, the constructed object will be empty, but still
  362. * valid.
  363. * @extends {jspb.Message}
  364. * @constructor
  365. */
  366. proto.app.v1.GameSave = function(opt_data) {
  367. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.GameSave.repeatedFields_, null);
  368. };
  369. goog.inherits(proto.app.v1.GameSave, jspb.Message);
  370. if (goog.DEBUG && !COMPILED) {
  371. /**
  372. * @public
  373. * @override
  374. */
  375. proto.app.v1.GameSave.displayName = 'proto.app.v1.GameSave';
  376. }
  377. /**
  378. * Generated by JsPbCodeGenerator.
  379. * @param {Array=} opt_data Optional initial data array, typically from a
  380. * server response, or constructed directly in Javascript. The array is used
  381. * in place and becomes part of the constructed object. It is not cloned.
  382. * If no data is provided, the constructed object will be empty, but still
  383. * valid.
  384. * @extends {jspb.Message}
  385. * @constructor
  386. */
  387. proto.app.v1.AuthSendCodeToPhoneRequest = function(opt_data) {
  388. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  389. };
  390. goog.inherits(proto.app.v1.AuthSendCodeToPhoneRequest, jspb.Message);
  391. if (goog.DEBUG && !COMPILED) {
  392. /**
  393. * @public
  394. * @override
  395. */
  396. proto.app.v1.AuthSendCodeToPhoneRequest.displayName = 'proto.app.v1.AuthSendCodeToPhoneRequest';
  397. }
  398. /**
  399. * Generated by JsPbCodeGenerator.
  400. * @param {Array=} opt_data Optional initial data array, typically from a
  401. * server response, or constructed directly in Javascript. The array is used
  402. * in place and becomes part of the constructed object. It is not cloned.
  403. * If no data is provided, the constructed object will be empty, but still
  404. * valid.
  405. * @extends {jspb.Message}
  406. * @constructor
  407. */
  408. proto.app.v1.PositionRequest = function(opt_data) {
  409. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  410. };
  411. goog.inherits(proto.app.v1.PositionRequest, jspb.Message);
  412. if (goog.DEBUG && !COMPILED) {
  413. /**
  414. * @public
  415. * @override
  416. */
  417. proto.app.v1.PositionRequest.displayName = 'proto.app.v1.PositionRequest';
  418. }
  419. /**
  420. * Generated by JsPbCodeGenerator.
  421. * @param {Array=} opt_data Optional initial data array, typically from a
  422. * server response, or constructed directly in Javascript. The array is used
  423. * in place and becomes part of the constructed object. It is not cloned.
  424. * If no data is provided, the constructed object will be empty, but still
  425. * valid.
  426. * @extends {jspb.Message}
  427. * @constructor
  428. */
  429. proto.app.v1.IdRequest = function(opt_data) {
  430. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  431. };
  432. goog.inherits(proto.app.v1.IdRequest, jspb.Message);
  433. if (goog.DEBUG && !COMPILED) {
  434. /**
  435. * @public
  436. * @override
  437. */
  438. proto.app.v1.IdRequest.displayName = 'proto.app.v1.IdRequest';
  439. }
  440. /**
  441. * Generated by JsPbCodeGenerator.
  442. * @param {Array=} opt_data Optional initial data array, typically from a
  443. * server response, or constructed directly in Javascript. The array is used
  444. * in place and becomes part of the constructed object. It is not cloned.
  445. * If no data is provided, the constructed object will be empty, but still
  446. * valid.
  447. * @extends {jspb.Message}
  448. * @constructor
  449. */
  450. proto.app.v1.SignOutRequest = function(opt_data) {
  451. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  452. };
  453. goog.inherits(proto.app.v1.SignOutRequest, jspb.Message);
  454. if (goog.DEBUG && !COMPILED) {
  455. /**
  456. * @public
  457. * @override
  458. */
  459. proto.app.v1.SignOutRequest.displayName = 'proto.app.v1.SignOutRequest';
  460. }
  461. /**
  462. * Generated by JsPbCodeGenerator.
  463. * @param {Array=} opt_data Optional initial data array, typically from a
  464. * server response, or constructed directly in Javascript. The array is used
  465. * in place and becomes part of the constructed object. It is not cloned.
  466. * If no data is provided, the constructed object will be empty, but still
  467. * valid.
  468. * @extends {jspb.Message}
  469. * @constructor
  470. */
  471. proto.app.v1.UserNameEditRequest = function(opt_data) {
  472. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  473. };
  474. goog.inherits(proto.app.v1.UserNameEditRequest, jspb.Message);
  475. if (goog.DEBUG && !COMPILED) {
  476. /**
  477. * @public
  478. * @override
  479. */
  480. proto.app.v1.UserNameEditRequest.displayName = 'proto.app.v1.UserNameEditRequest';
  481. }
  482. /**
  483. * Generated by JsPbCodeGenerator.
  484. * @param {Array=} opt_data Optional initial data array, typically from a
  485. * server response, or constructed directly in Javascript. The array is used
  486. * in place and becomes part of the constructed object. It is not cloned.
  487. * If no data is provided, the constructed object will be empty, but still
  488. * valid.
  489. * @extends {jspb.Message}
  490. * @constructor
  491. */
  492. proto.app.v1.GetSmsSendLeftTimeRequest = function(opt_data) {
  493. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  494. };
  495. goog.inherits(proto.app.v1.GetSmsSendLeftTimeRequest, jspb.Message);
  496. if (goog.DEBUG && !COMPILED) {
  497. /**
  498. * @public
  499. * @override
  500. */
  501. proto.app.v1.GetSmsSendLeftTimeRequest.displayName = 'proto.app.v1.GetSmsSendLeftTimeRequest';
  502. }
  503. /**
  504. * Generated by JsPbCodeGenerator.
  505. * @param {Array=} opt_data Optional initial data array, typically from a
  506. * server response, or constructed directly in Javascript. The array is used
  507. * in place and becomes part of the constructed object. It is not cloned.
  508. * If no data is provided, the constructed object will be empty, but still
  509. * valid.
  510. * @extends {jspb.Message}
  511. * @constructor
  512. */
  513. proto.app.v1.ProviderListRequest = function(opt_data) {
  514. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  515. };
  516. goog.inherits(proto.app.v1.ProviderListRequest, jspb.Message);
  517. if (goog.DEBUG && !COMPILED) {
  518. /**
  519. * @public
  520. * @override
  521. */
  522. proto.app.v1.ProviderListRequest.displayName = 'proto.app.v1.ProviderListRequest';
  523. }
  524. /**
  525. * Generated by JsPbCodeGenerator.
  526. * @param {Array=} opt_data Optional initial data array, typically from a
  527. * server response, or constructed directly in Javascript. The array is used
  528. * in place and becomes part of the constructed object. It is not cloned.
  529. * If no data is provided, the constructed object will be empty, but still
  530. * valid.
  531. * @extends {jspb.Message}
  532. * @constructor
  533. */
  534. proto.app.v1.AssControlInfoSaveRequest = function(opt_data) {
  535. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.AssControlInfoSaveRequest.repeatedFields_, null);
  536. };
  537. goog.inherits(proto.app.v1.AssControlInfoSaveRequest, jspb.Message);
  538. if (goog.DEBUG && !COMPILED) {
  539. /**
  540. * @public
  541. * @override
  542. */
  543. proto.app.v1.AssControlInfoSaveRequest.displayName = 'proto.app.v1.AssControlInfoSaveRequest';
  544. }
  545. /**
  546. * Generated by JsPbCodeGenerator.
  547. * @param {Array=} opt_data Optional initial data array, typically from a
  548. * server response, or constructed directly in Javascript. The array is used
  549. * in place and becomes part of the constructed object. It is not cloned.
  550. * If no data is provided, the constructed object will be empty, but still
  551. * valid.
  552. * @extends {jspb.Message}
  553. * @constructor
  554. */
  555. proto.app.v1.AssControlInfoGpsSaveRequest = function(opt_data) {
  556. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  557. };
  558. goog.inherits(proto.app.v1.AssControlInfoGpsSaveRequest, jspb.Message);
  559. if (goog.DEBUG && !COMPILED) {
  560. /**
  561. * @public
  562. * @override
  563. */
  564. proto.app.v1.AssControlInfoGpsSaveRequest.displayName = 'proto.app.v1.AssControlInfoGpsSaveRequest';
  565. }
  566. /**
  567. * Generated by JsPbCodeGenerator.
  568. * @param {Array=} opt_data Optional initial data array, typically from a
  569. * server response, or constructed directly in Javascript. The array is used
  570. * in place and becomes part of the constructed object. It is not cloned.
  571. * If no data is provided, the constructed object will be empty, but still
  572. * valid.
  573. * @extends {jspb.Message}
  574. * @constructor
  575. */
  576. proto.app.v1.GetUpdateVersionRequest = function(opt_data) {
  577. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  578. };
  579. goog.inherits(proto.app.v1.GetUpdateVersionRequest, jspb.Message);
  580. if (goog.DEBUG && !COMPILED) {
  581. /**
  582. * @public
  583. * @override
  584. */
  585. proto.app.v1.GetUpdateVersionRequest.displayName = 'proto.app.v1.GetUpdateVersionRequest';
  586. }
  587. /**
  588. * Generated by JsPbCodeGenerator.
  589. * @param {Array=} opt_data Optional initial data array, typically from a
  590. * server response, or constructed directly in Javascript. The array is used
  591. * in place and becomes part of the constructed object. It is not cloned.
  592. * If no data is provided, the constructed object will be empty, but still
  593. * valid.
  594. * @extends {jspb.Message}
  595. * @constructor
  596. */
  597. proto.app.v1.DefaultRequest = function(opt_data) {
  598. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  599. };
  600. goog.inherits(proto.app.v1.DefaultRequest, jspb.Message);
  601. if (goog.DEBUG && !COMPILED) {
  602. /**
  603. * @public
  604. * @override
  605. */
  606. proto.app.v1.DefaultRequest.displayName = 'proto.app.v1.DefaultRequest';
  607. }
  608. /**
  609. * Generated by JsPbCodeGenerator.
  610. * @param {Array=} opt_data Optional initial data array, typically from a
  611. * server response, or constructed directly in Javascript. The array is used
  612. * in place and becomes part of the constructed object. It is not cloned.
  613. * If no data is provided, the constructed object will be empty, but still
  614. * valid.
  615. * @extends {jspb.Message}
  616. * @constructor
  617. */
  618. proto.app.v1.SignUpRequest = function(opt_data) {
  619. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  620. };
  621. goog.inherits(proto.app.v1.SignUpRequest, jspb.Message);
  622. if (goog.DEBUG && !COMPILED) {
  623. /**
  624. * @public
  625. * @override
  626. */
  627. proto.app.v1.SignUpRequest.displayName = 'proto.app.v1.SignUpRequest';
  628. }
  629. /**
  630. * Generated by JsPbCodeGenerator.
  631. * @param {Array=} opt_data Optional initial data array, typically from a
  632. * server response, or constructed directly in Javascript. The array is used
  633. * in place and becomes part of the constructed object. It is not cloned.
  634. * If no data is provided, the constructed object will be empty, but still
  635. * valid.
  636. * @extends {jspb.Message}
  637. * @constructor
  638. */
  639. proto.app.v1.User = function(opt_data) {
  640. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  641. };
  642. goog.inherits(proto.app.v1.User, jspb.Message);
  643. if (goog.DEBUG && !COMPILED) {
  644. /**
  645. * @public
  646. * @override
  647. */
  648. proto.app.v1.User.displayName = 'proto.app.v1.User';
  649. }
  650. /**
  651. * Generated by JsPbCodeGenerator.
  652. * @param {Array=} opt_data Optional initial data array, typically from a
  653. * server response, or constructed directly in Javascript. The array is used
  654. * in place and becomes part of the constructed object. It is not cloned.
  655. * If no data is provided, the constructed object will be empty, but still
  656. * valid.
  657. * @extends {jspb.Message}
  658. * @constructor
  659. */
  660. proto.app.v1.SignInRequest = function(opt_data) {
  661. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  662. };
  663. goog.inherits(proto.app.v1.SignInRequest, jspb.Message);
  664. if (goog.DEBUG && !COMPILED) {
  665. /**
  666. * @public
  667. * @override
  668. */
  669. proto.app.v1.SignInRequest.displayName = 'proto.app.v1.SignInRequest';
  670. }
  671. /**
  672. * Generated by JsPbCodeGenerator.
  673. * @param {Array=} opt_data Optional initial data array, typically from a
  674. * server response, or constructed directly in Javascript. The array is used
  675. * in place and becomes part of the constructed object. It is not cloned.
  676. * If no data is provided, the constructed object will be empty, but still
  677. * valid.
  678. * @extends {jspb.Message}
  679. * @constructor
  680. */
  681. proto.app.v1.GameStartRequest = function(opt_data) {
  682. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  683. };
  684. goog.inherits(proto.app.v1.GameStartRequest, jspb.Message);
  685. if (goog.DEBUG && !COMPILED) {
  686. /**
  687. * @public
  688. * @override
  689. */
  690. proto.app.v1.GameStartRequest.displayName = 'proto.app.v1.GameStartRequest';
  691. }
  692. /**
  693. * Generated by JsPbCodeGenerator.
  694. * @param {Array=} opt_data Optional initial data array, typically from a
  695. * server response, or constructed directly in Javascript. The array is used
  696. * in place and becomes part of the constructed object. It is not cloned.
  697. * If no data is provided, the constructed object will be empty, but still
  698. * valid.
  699. * @extends {jspb.Message}
  700. * @constructor
  701. */
  702. proto.app.v1.GameSaveUploadRequest = function(opt_data) {
  703. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  704. };
  705. goog.inherits(proto.app.v1.GameSaveUploadRequest, jspb.Message);
  706. if (goog.DEBUG && !COMPILED) {
  707. /**
  708. * @public
  709. * @override
  710. */
  711. proto.app.v1.GameSaveUploadRequest.displayName = 'proto.app.v1.GameSaveUploadRequest';
  712. }
  713. /**
  714. * Generated by JsPbCodeGenerator.
  715. * @param {Array=} opt_data Optional initial data array, typically from a
  716. * server response, or constructed directly in Javascript. The array is used
  717. * in place and becomes part of the constructed object. It is not cloned.
  718. * If no data is provided, the constructed object will be empty, but still
  719. * valid.
  720. * @extends {jspb.Message}
  721. * @constructor
  722. */
  723. proto.app.v1.DefaultReply = function(opt_data) {
  724. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  725. };
  726. goog.inherits(proto.app.v1.DefaultReply, jspb.Message);
  727. if (goog.DEBUG && !COMPILED) {
  728. /**
  729. * @public
  730. * @override
  731. */
  732. proto.app.v1.DefaultReply.displayName = 'proto.app.v1.DefaultReply';
  733. }
  734. /**
  735. * Generated by JsPbCodeGenerator.
  736. * @param {Array=} opt_data Optional initial data array, typically from a
  737. * server response, or constructed directly in Javascript. The array is used
  738. * in place and becomes part of the constructed object. It is not cloned.
  739. * If no data is provided, the constructed object will be empty, but still
  740. * valid.
  741. * @extends {jspb.Message}
  742. * @constructor
  743. */
  744. proto.app.v1.SignInReply = function(opt_data) {
  745. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  746. };
  747. goog.inherits(proto.app.v1.SignInReply, jspb.Message);
  748. if (goog.DEBUG && !COMPILED) {
  749. /**
  750. * @public
  751. * @override
  752. */
  753. proto.app.v1.SignInReply.displayName = 'proto.app.v1.SignInReply';
  754. }
  755. /**
  756. * Generated by JsPbCodeGenerator.
  757. * @param {Array=} opt_data Optional initial data array, typically from a
  758. * server response, or constructed directly in Javascript. The array is used
  759. * in place and becomes part of the constructed object. It is not cloned.
  760. * If no data is provided, the constructed object will be empty, but still
  761. * valid.
  762. * @extends {jspb.Message}
  763. * @constructor
  764. */
  765. proto.app.v1.HistoryGameDetailReply = function(opt_data) {
  766. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  767. };
  768. goog.inherits(proto.app.v1.HistoryGameDetailReply, jspb.Message);
  769. if (goog.DEBUG && !COMPILED) {
  770. /**
  771. * @public
  772. * @override
  773. */
  774. proto.app.v1.HistoryGameDetailReply.displayName = 'proto.app.v1.HistoryGameDetailReply';
  775. }
  776. /**
  777. * Generated by JsPbCodeGenerator.
  778. * @param {Array=} opt_data Optional initial data array, typically from a
  779. * server response, or constructed directly in Javascript. The array is used
  780. * in place and becomes part of the constructed object. It is not cloned.
  781. * If no data is provided, the constructed object will be empty, but still
  782. * valid.
  783. * @extends {jspb.Message}
  784. * @constructor
  785. */
  786. proto.app.v1.MyHistoryGameReply = function(opt_data) {
  787. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.MyHistoryGameReply.repeatedFields_, null);
  788. };
  789. goog.inherits(proto.app.v1.MyHistoryGameReply, jspb.Message);
  790. if (goog.DEBUG && !COMPILED) {
  791. /**
  792. * @public
  793. * @override
  794. */
  795. proto.app.v1.MyHistoryGameReply.displayName = 'proto.app.v1.MyHistoryGameReply';
  796. }
  797. /**
  798. * Generated by JsPbCodeGenerator.
  799. * @param {Array=} opt_data Optional initial data array, typically from a
  800. * server response, or constructed directly in Javascript. The array is used
  801. * in place and becomes part of the constructed object. It is not cloned.
  802. * If no data is provided, the constructed object will be empty, but still
  803. * valid.
  804. * @extends {jspb.Message}
  805. * @constructor
  806. */
  807. proto.app.v1.ProviderInfoSimple = function(opt_data) {
  808. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  809. };
  810. goog.inherits(proto.app.v1.ProviderInfoSimple, jspb.Message);
  811. if (goog.DEBUG && !COMPILED) {
  812. /**
  813. * @public
  814. * @override
  815. */
  816. proto.app.v1.ProviderInfoSimple.displayName = 'proto.app.v1.ProviderInfoSimple';
  817. }
  818. /**
  819. * Generated by JsPbCodeGenerator.
  820. * @param {Array=} opt_data Optional initial data array, typically from a
  821. * server response, or constructed directly in Javascript. The array is used
  822. * in place and becomes part of the constructed object. It is not cloned.
  823. * If no data is provided, the constructed object will be empty, but still
  824. * valid.
  825. * @extends {jspb.Message}
  826. * @constructor
  827. */
  828. proto.app.v1.ProviderListReply = function(opt_data) {
  829. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.ProviderListReply.repeatedFields_, null);
  830. };
  831. goog.inherits(proto.app.v1.ProviderListReply, jspb.Message);
  832. if (goog.DEBUG && !COMPILED) {
  833. /**
  834. * @public
  835. * @override
  836. */
  837. proto.app.v1.ProviderListReply.displayName = 'proto.app.v1.ProviderListReply';
  838. }
  839. /**
  840. * Generated by JsPbCodeGenerator.
  841. * @param {Array=} opt_data Optional initial data array, typically from a
  842. * server response, or constructed directly in Javascript. The array is used
  843. * in place and becomes part of the constructed object. It is not cloned.
  844. * If no data is provided, the constructed object will be empty, but still
  845. * valid.
  846. * @extends {jspb.Message}
  847. * @constructor
  848. */
  849. proto.app.v1.ProviderDetailReply = function(opt_data) {
  850. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  851. };
  852. goog.inherits(proto.app.v1.ProviderDetailReply, jspb.Message);
  853. if (goog.DEBUG && !COMPILED) {
  854. /**
  855. * @public
  856. * @override
  857. */
  858. proto.app.v1.ProviderDetailReply.displayName = 'proto.app.v1.ProviderDetailReply';
  859. }
  860. /**
  861. * Generated by JsPbCodeGenerator.
  862. * @param {Array=} opt_data Optional initial data array, typically from a
  863. * server response, or constructed directly in Javascript. The array is used
  864. * in place and becomes part of the constructed object. It is not cloned.
  865. * If no data is provided, the constructed object will be empty, but still
  866. * valid.
  867. * @extends {jspb.Message}
  868. * @constructor
  869. */
  870. proto.app.v1.ProjectInfoSimple = function(opt_data) {
  871. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  872. };
  873. goog.inherits(proto.app.v1.ProjectInfoSimple, jspb.Message);
  874. if (goog.DEBUG && !COMPILED) {
  875. /**
  876. * @public
  877. * @override
  878. */
  879. proto.app.v1.ProjectInfoSimple.displayName = 'proto.app.v1.ProjectInfoSimple';
  880. }
  881. /**
  882. * Generated by JsPbCodeGenerator.
  883. * @param {Array=} opt_data Optional initial data array, typically from a
  884. * server response, or constructed directly in Javascript. The array is used
  885. * in place and becomes part of the constructed object. It is not cloned.
  886. * If no data is provided, the constructed object will be empty, but still
  887. * valid.
  888. * @extends {jspb.Message}
  889. * @constructor
  890. */
  891. proto.app.v1.ProjectListReply = function(opt_data) {
  892. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.ProjectListReply.repeatedFields_, null);
  893. };
  894. goog.inherits(proto.app.v1.ProjectListReply, jspb.Message);
  895. if (goog.DEBUG && !COMPILED) {
  896. /**
  897. * @public
  898. * @override
  899. */
  900. proto.app.v1.ProjectListReply.displayName = 'proto.app.v1.ProjectListReply';
  901. }
  902. /**
  903. * Generated by JsPbCodeGenerator.
  904. * @param {Array=} opt_data Optional initial data array, typically from a
  905. * server response, or constructed directly in Javascript. The array is used
  906. * in place and becomes part of the constructed object. It is not cloned.
  907. * If no data is provided, the constructed object will be empty, but still
  908. * valid.
  909. * @extends {jspb.Message}
  910. * @constructor
  911. */
  912. proto.app.v1.MapRoute = function(opt_data) {
  913. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  914. };
  915. goog.inherits(proto.app.v1.MapRoute, jspb.Message);
  916. if (goog.DEBUG && !COMPILED) {
  917. /**
  918. * @public
  919. * @override
  920. */
  921. proto.app.v1.MapRoute.displayName = 'proto.app.v1.MapRoute';
  922. }
  923. /**
  924. * Generated by JsPbCodeGenerator.
  925. * @param {Array=} opt_data Optional initial data array, typically from a
  926. * server response, or constructed directly in Javascript. The array is used
  927. * in place and becomes part of the constructed object. It is not cloned.
  928. * If no data is provided, the constructed object will be empty, but still
  929. * valid.
  930. * @extends {jspb.Message}
  931. * @constructor
  932. */
  933. proto.app.v1.ProjectDetailReply = function(opt_data) {
  934. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.ProjectDetailReply.repeatedFields_, null);
  935. };
  936. goog.inherits(proto.app.v1.ProjectDetailReply, jspb.Message);
  937. if (goog.DEBUG && !COMPILED) {
  938. /**
  939. * @public
  940. * @override
  941. */
  942. proto.app.v1.ProjectDetailReply.displayName = 'proto.app.v1.ProjectDetailReply';
  943. }
  944. /**
  945. * Generated by JsPbCodeGenerator.
  946. * @param {Array=} opt_data Optional initial data array, typically from a
  947. * server response, or constructed directly in Javascript. The array is used
  948. * in place and becomes part of the constructed object. It is not cloned.
  949. * If no data is provided, the constructed object will be empty, but still
  950. * valid.
  951. * @extends {jspb.Message}
  952. * @constructor
  953. */
  954. proto.app.v1.GameStartReply = function(opt_data) {
  955. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  956. };
  957. goog.inherits(proto.app.v1.GameStartReply, jspb.Message);
  958. if (goog.DEBUG && !COMPILED) {
  959. /**
  960. * @public
  961. * @override
  962. */
  963. proto.app.v1.GameStartReply.displayName = 'proto.app.v1.GameStartReply';
  964. }
  965. /**
  966. * Generated by JsPbCodeGenerator.
  967. * @param {Array=} opt_data Optional initial data array, typically from a
  968. * server response, or constructed directly in Javascript. The array is used
  969. * in place and becomes part of the constructed object. It is not cloned.
  970. * If no data is provided, the constructed object will be empty, but still
  971. * valid.
  972. * @extends {jspb.Message}
  973. * @constructor
  974. */
  975. proto.app.v1.GetRegionReply = function(opt_data) {
  976. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  977. };
  978. goog.inherits(proto.app.v1.GetRegionReply, jspb.Message);
  979. if (goog.DEBUG && !COMPILED) {
  980. /**
  981. * @public
  982. * @override
  983. */
  984. proto.app.v1.GetRegionReply.displayName = 'proto.app.v1.GetRegionReply';
  985. }
  986. /**
  987. * Generated by JsPbCodeGenerator.
  988. * @param {Array=} opt_data Optional initial data array, typically from a
  989. * server response, or constructed directly in Javascript. The array is used
  990. * in place and becomes part of the constructed object. It is not cloned.
  991. * If no data is provided, the constructed object will be empty, but still
  992. * valid.
  993. * @extends {jspb.Message}
  994. * @constructor
  995. */
  996. proto.app.v1.RegionListRequest = function(opt_data) {
  997. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  998. };
  999. goog.inherits(proto.app.v1.RegionListRequest, jspb.Message);
  1000. if (goog.DEBUG && !COMPILED) {
  1001. /**
  1002. * @public
  1003. * @override
  1004. */
  1005. proto.app.v1.RegionListRequest.displayName = 'proto.app.v1.RegionListRequest';
  1006. }
  1007. /**
  1008. * Generated by JsPbCodeGenerator.
  1009. * @param {Array=} opt_data Optional initial data array, typically from a
  1010. * server response, or constructed directly in Javascript. The array is used
  1011. * in place and becomes part of the constructed object. It is not cloned.
  1012. * If no data is provided, the constructed object will be empty, but still
  1013. * valid.
  1014. * @extends {jspb.Message}
  1015. * @constructor
  1016. */
  1017. proto.app.v1.Region = function(opt_data) {
  1018. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1019. };
  1020. goog.inherits(proto.app.v1.Region, jspb.Message);
  1021. if (goog.DEBUG && !COMPILED) {
  1022. /**
  1023. * @public
  1024. * @override
  1025. */
  1026. proto.app.v1.Region.displayName = 'proto.app.v1.Region';
  1027. }
  1028. /**
  1029. * Generated by JsPbCodeGenerator.
  1030. * @param {Array=} opt_data Optional initial data array, typically from a
  1031. * server response, or constructed directly in Javascript. The array is used
  1032. * in place and becomes part of the constructed object. It is not cloned.
  1033. * If no data is provided, the constructed object will be empty, but still
  1034. * valid.
  1035. * @extends {jspb.Message}
  1036. * @constructor
  1037. */
  1038. proto.app.v1.RegionListReply = function(opt_data) {
  1039. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.RegionListReply.repeatedFields_, null);
  1040. };
  1041. goog.inherits(proto.app.v1.RegionListReply, jspb.Message);
  1042. if (goog.DEBUG && !COMPILED) {
  1043. /**
  1044. * @public
  1045. * @override
  1046. */
  1047. proto.app.v1.RegionListReply.displayName = 'proto.app.v1.RegionListReply';
  1048. }
  1049. /**
  1050. * Generated by JsPbCodeGenerator.
  1051. * @param {Array=} opt_data Optional initial data array, typically from a
  1052. * server response, or constructed directly in Javascript. The array is used
  1053. * in place and becomes part of the constructed object. It is not cloned.
  1054. * If no data is provided, the constructed object will be empty, but still
  1055. * valid.
  1056. * @extends {jspb.Message}
  1057. * @constructor
  1058. */
  1059. proto.app.v1.GetInGameDataReply = function(opt_data) {
  1060. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1061. };
  1062. goog.inherits(proto.app.v1.GetInGameDataReply, jspb.Message);
  1063. if (goog.DEBUG && !COMPILED) {
  1064. /**
  1065. * @public
  1066. * @override
  1067. */
  1068. proto.app.v1.GetInGameDataReply.displayName = 'proto.app.v1.GetInGameDataReply';
  1069. }
  1070. /**
  1071. * Generated by JsPbCodeGenerator.
  1072. * @param {Array=} opt_data Optional initial data array, typically from a
  1073. * server response, or constructed directly in Javascript. The array is used
  1074. * in place and becomes part of the constructed object. It is not cloned.
  1075. * If no data is provided, the constructed object will be empty, but still
  1076. * valid.
  1077. * @extends {jspb.Message}
  1078. * @constructor
  1079. */
  1080. proto.app.v1.MyUserQueryReply = function(opt_data) {
  1081. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1082. };
  1083. goog.inherits(proto.app.v1.MyUserQueryReply, jspb.Message);
  1084. if (goog.DEBUG && !COMPILED) {
  1085. /**
  1086. * @public
  1087. * @override
  1088. */
  1089. proto.app.v1.MyUserQueryReply.displayName = 'proto.app.v1.MyUserQueryReply';
  1090. }
  1091. /**
  1092. * Generated by JsPbCodeGenerator.
  1093. * @param {Array=} opt_data Optional initial data array, typically from a
  1094. * server response, or constructed directly in Javascript. The array is used
  1095. * in place and becomes part of the constructed object. It is not cloned.
  1096. * If no data is provided, the constructed object will be empty, but still
  1097. * valid.
  1098. * @extends {jspb.Message}
  1099. * @constructor
  1100. */
  1101. proto.app.v1.AssShopListReply = function(opt_data) {
  1102. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.AssShopListReply.repeatedFields_, null);
  1103. };
  1104. goog.inherits(proto.app.v1.AssShopListReply, jspb.Message);
  1105. if (goog.DEBUG && !COMPILED) {
  1106. /**
  1107. * @public
  1108. * @override
  1109. */
  1110. proto.app.v1.AssShopListReply.displayName = 'proto.app.v1.AssShopListReply';
  1111. }
  1112. /**
  1113. * Generated by JsPbCodeGenerator.
  1114. * @param {Array=} opt_data Optional initial data array, typically from a
  1115. * server response, or constructed directly in Javascript. The array is used
  1116. * in place and becomes part of the constructed object. It is not cloned.
  1117. * If no data is provided, the constructed object will be empty, but still
  1118. * valid.
  1119. * @extends {jspb.Message}
  1120. * @constructor
  1121. */
  1122. proto.app.v1.ShopList = function(opt_data) {
  1123. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1124. };
  1125. goog.inherits(proto.app.v1.ShopList, jspb.Message);
  1126. if (goog.DEBUG && !COMPILED) {
  1127. /**
  1128. * @public
  1129. * @override
  1130. */
  1131. proto.app.v1.ShopList.displayName = 'proto.app.v1.ShopList';
  1132. }
  1133. /**
  1134. * Generated by JsPbCodeGenerator.
  1135. * @param {Array=} opt_data Optional initial data array, typically from a
  1136. * server response, or constructed directly in Javascript. The array is used
  1137. * in place and becomes part of the constructed object. It is not cloned.
  1138. * If no data is provided, the constructed object will be empty, but still
  1139. * valid.
  1140. * @extends {jspb.Message}
  1141. * @constructor
  1142. */
  1143. proto.app.v1.AssControlInfoListReply = function(opt_data) {
  1144. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.AssControlInfoListReply.repeatedFields_, null);
  1145. };
  1146. goog.inherits(proto.app.v1.AssControlInfoListReply, jspb.Message);
  1147. if (goog.DEBUG && !COMPILED) {
  1148. /**
  1149. * @public
  1150. * @override
  1151. */
  1152. proto.app.v1.AssControlInfoListReply.displayName = 'proto.app.v1.AssControlInfoListReply';
  1153. }
  1154. /**
  1155. * Generated by JsPbCodeGenerator.
  1156. * @param {Array=} opt_data Optional initial data array, typically from a
  1157. * server response, or constructed directly in Javascript. The array is used
  1158. * in place and becomes part of the constructed object. It is not cloned.
  1159. * If no data is provided, the constructed object will be empty, but still
  1160. * valid.
  1161. * @extends {jspb.Message}
  1162. * @constructor
  1163. */
  1164. proto.app.v1.ControlInfoList = function(opt_data) {
  1165. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1166. };
  1167. goog.inherits(proto.app.v1.ControlInfoList, jspb.Message);
  1168. if (goog.DEBUG && !COMPILED) {
  1169. /**
  1170. * @public
  1171. * @override
  1172. */
  1173. proto.app.v1.ControlInfoList.displayName = 'proto.app.v1.ControlInfoList';
  1174. }
  1175. /**
  1176. * Generated by JsPbCodeGenerator.
  1177. * @param {Array=} opt_data Optional initial data array, typically from a
  1178. * server response, or constructed directly in Javascript. The array is used
  1179. * in place and becomes part of the constructed object. It is not cloned.
  1180. * If no data is provided, the constructed object will be empty, but still
  1181. * valid.
  1182. * @extends {jspb.Message}
  1183. * @constructor
  1184. */
  1185. proto.app.v1.AssControlInfoDetailReply = function(opt_data) {
  1186. jspb.Message.initialize(this, opt_data, 0, -1, proto.app.v1.AssControlInfoDetailReply.repeatedFields_, null);
  1187. };
  1188. goog.inherits(proto.app.v1.AssControlInfoDetailReply, jspb.Message);
  1189. if (goog.DEBUG && !COMPILED) {
  1190. /**
  1191. * @public
  1192. * @override
  1193. */
  1194. proto.app.v1.AssControlInfoDetailReply.displayName = 'proto.app.v1.AssControlInfoDetailReply';
  1195. }
  1196. /**
  1197. * Generated by JsPbCodeGenerator.
  1198. * @param {Array=} opt_data Optional initial data array, typically from a
  1199. * server response, or constructed directly in Javascript. The array is used
  1200. * in place and becomes part of the constructed object. It is not cloned.
  1201. * If no data is provided, the constructed object will be empty, but still
  1202. * valid.
  1203. * @extends {jspb.Message}
  1204. * @constructor
  1205. */
  1206. proto.app.v1.GetUpdateVersionReply = function(opt_data) {
  1207. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1208. };
  1209. goog.inherits(proto.app.v1.GetUpdateVersionReply, jspb.Message);
  1210. if (goog.DEBUG && !COMPILED) {
  1211. /**
  1212. * @public
  1213. * @override
  1214. */
  1215. proto.app.v1.GetUpdateVersionReply.displayName = 'proto.app.v1.GetUpdateVersionReply';
  1216. }
  1217. /**
  1218. * Generated by JsPbCodeGenerator.
  1219. * @param {Array=} opt_data Optional initial data array, typically from a
  1220. * server response, or constructed directly in Javascript. The array is used
  1221. * in place and becomes part of the constructed object. It is not cloned.
  1222. * If no data is provided, the constructed object will be empty, but still
  1223. * valid.
  1224. * @extends {jspb.Message}
  1225. * @constructor
  1226. */
  1227. proto.app.v1.GetSmsSendLeftTimeReply = function(opt_data) {
  1228. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1229. };
  1230. goog.inherits(proto.app.v1.GetSmsSendLeftTimeReply, jspb.Message);
  1231. if (goog.DEBUG && !COMPILED) {
  1232. /**
  1233. * @public
  1234. * @override
  1235. */
  1236. proto.app.v1.GetSmsSendLeftTimeReply.displayName = 'proto.app.v1.GetSmsSendLeftTimeReply';
  1237. }
  1238. /**
  1239. * Generated by JsPbCodeGenerator.
  1240. * @param {Array=} opt_data Optional initial data array, typically from a
  1241. * server response, or constructed directly in Javascript. The array is used
  1242. * in place and becomes part of the constructed object. It is not cloned.
  1243. * If no data is provided, the constructed object will be empty, but still
  1244. * valid.
  1245. * @extends {jspb.Message}
  1246. * @constructor
  1247. */
  1248. proto.app.v1.GetServerTimeReply = function(opt_data) {
  1249. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  1250. };
  1251. goog.inherits(proto.app.v1.GetServerTimeReply, jspb.Message);
  1252. if (goog.DEBUG && !COMPILED) {
  1253. /**
  1254. * @public
  1255. * @override
  1256. */
  1257. proto.app.v1.GetServerTimeReply.displayName = 'proto.app.v1.GetServerTimeReply';
  1258. }
  1259. if (jspb.Message.GENERATE_TO_OBJECT) {
  1260. /**
  1261. * Creates an object representation of this proto.
  1262. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1263. * Optional fields that are not set will be set to undefined.
  1264. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1265. * For the list of reserved names please see:
  1266. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1267. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1268. * JSPB instance for transitional soy proto support:
  1269. * http://goto/soy-param-migration
  1270. * @return {!Object}
  1271. */
  1272. proto.app.v1.Image.prototype.toObject = function(opt_includeInstance) {
  1273. return proto.app.v1.Image.toObject(opt_includeInstance, this);
  1274. };
  1275. /**
  1276. * Static version of the {@see toObject} method.
  1277. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1278. * the JSPB instance for transitional soy proto support:
  1279. * http://goto/soy-param-migration
  1280. * @param {!proto.app.v1.Image} msg The msg instance to transform.
  1281. * @return {!Object}
  1282. * @suppress {unusedLocalVariables} f is only used for nested messages
  1283. */
  1284. proto.app.v1.Image.toObject = function(includeInstance, msg) {
  1285. var f, obj = {
  1286. ext: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1287. data: msg.getData_asB64()
  1288. };
  1289. if (includeInstance) {
  1290. obj.$jspbMessageInstance = msg;
  1291. }
  1292. return obj;
  1293. };
  1294. }
  1295. /**
  1296. * Deserializes binary data (in protobuf wire format).
  1297. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1298. * @return {!proto.app.v1.Image}
  1299. */
  1300. proto.app.v1.Image.deserializeBinary = function(bytes) {
  1301. var reader = new jspb.BinaryReader(bytes);
  1302. var msg = new proto.app.v1.Image;
  1303. return proto.app.v1.Image.deserializeBinaryFromReader(msg, reader);
  1304. };
  1305. /**
  1306. * Deserializes binary data (in protobuf wire format) from the
  1307. * given reader into the given message object.
  1308. * @param {!proto.app.v1.Image} msg The message object to deserialize into.
  1309. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1310. * @return {!proto.app.v1.Image}
  1311. */
  1312. proto.app.v1.Image.deserializeBinaryFromReader = function(msg, reader) {
  1313. while (reader.nextField()) {
  1314. if (reader.isEndGroup()) {
  1315. break;
  1316. }
  1317. var field = reader.getFieldNumber();
  1318. switch (field) {
  1319. case 1:
  1320. var value = /** @type {string} */ (reader.readString());
  1321. msg.setExt(value);
  1322. break;
  1323. case 2:
  1324. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  1325. msg.setData(value);
  1326. break;
  1327. default:
  1328. reader.skipField();
  1329. break;
  1330. }
  1331. }
  1332. return msg;
  1333. };
  1334. /**
  1335. * Serializes the message to binary data (in protobuf wire format).
  1336. * @return {!Uint8Array}
  1337. */
  1338. proto.app.v1.Image.prototype.serializeBinary = function() {
  1339. var writer = new jspb.BinaryWriter();
  1340. proto.app.v1.Image.serializeBinaryToWriter(this, writer);
  1341. return writer.getResultBuffer();
  1342. };
  1343. /**
  1344. * Serializes the given message to binary data (in protobuf wire
  1345. * format), writing to the given BinaryWriter.
  1346. * @param {!proto.app.v1.Image} message
  1347. * @param {!jspb.BinaryWriter} writer
  1348. * @suppress {unusedLocalVariables} f is only used for nested messages
  1349. */
  1350. proto.app.v1.Image.serializeBinaryToWriter = function(message, writer) {
  1351. var f = undefined;
  1352. f = message.getExt();
  1353. if (f.length > 0) {
  1354. writer.writeString(
  1355. 1,
  1356. f
  1357. );
  1358. }
  1359. f = message.getData_asU8();
  1360. if (f.length > 0) {
  1361. writer.writeBytes(
  1362. 2,
  1363. f
  1364. );
  1365. }
  1366. };
  1367. /**
  1368. * optional string ext = 1;
  1369. * @return {string}
  1370. */
  1371. proto.app.v1.Image.prototype.getExt = function() {
  1372. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1373. };
  1374. /**
  1375. * @param {string} value
  1376. * @return {!proto.app.v1.Image} returns this
  1377. */
  1378. proto.app.v1.Image.prototype.setExt = function(value) {
  1379. return jspb.Message.setProto3StringField(this, 1, value);
  1380. };
  1381. /**
  1382. * optional bytes data = 2;
  1383. * @return {string}
  1384. */
  1385. proto.app.v1.Image.prototype.getData = function() {
  1386. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1387. };
  1388. /**
  1389. * optional bytes data = 2;
  1390. * This is a type-conversion wrapper around `getData()`
  1391. * @return {string}
  1392. */
  1393. proto.app.v1.Image.prototype.getData_asB64 = function() {
  1394. return /** @type {string} */ (jspb.Message.bytesAsB64(
  1395. this.getData()));
  1396. };
  1397. /**
  1398. * optional bytes data = 2;
  1399. * Note that Uint8Array is not supported on all browsers.
  1400. * @see http://caniuse.com/Uint8Array
  1401. * This is a type-conversion wrapper around `getData()`
  1402. * @return {!Uint8Array}
  1403. */
  1404. proto.app.v1.Image.prototype.getData_asU8 = function() {
  1405. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  1406. this.getData()));
  1407. };
  1408. /**
  1409. * @param {!(string|Uint8Array)} value
  1410. * @return {!proto.app.v1.Image} returns this
  1411. */
  1412. proto.app.v1.Image.prototype.setData = function(value) {
  1413. return jspb.Message.setProto3BytesField(this, 2, value);
  1414. };
  1415. if (jspb.Message.GENERATE_TO_OBJECT) {
  1416. /**
  1417. * Creates an object representation of this proto.
  1418. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1419. * Optional fields that are not set will be set to undefined.
  1420. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1421. * For the list of reserved names please see:
  1422. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1423. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1424. * JSPB instance for transitional soy proto support:
  1425. * http://goto/soy-param-migration
  1426. * @return {!Object}
  1427. */
  1428. proto.app.v1.GameFinishRequest.prototype.toObject = function(opt_includeInstance) {
  1429. return proto.app.v1.GameFinishRequest.toObject(opt_includeInstance, this);
  1430. };
  1431. /**
  1432. * Static version of the {@see toObject} method.
  1433. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1434. * the JSPB instance for transitional soy proto support:
  1435. * http://goto/soy-param-migration
  1436. * @param {!proto.app.v1.GameFinishRequest} msg The msg instance to transform.
  1437. * @return {!Object}
  1438. * @suppress {unusedLocalVariables} f is only used for nested messages
  1439. */
  1440. proto.app.v1.GameFinishRequest.toObject = function(includeInstance, msg) {
  1441. var f, obj = {
  1442. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1443. isdrop: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
  1444. };
  1445. if (includeInstance) {
  1446. obj.$jspbMessageInstance = msg;
  1447. }
  1448. return obj;
  1449. };
  1450. }
  1451. /**
  1452. * Deserializes binary data (in protobuf wire format).
  1453. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1454. * @return {!proto.app.v1.GameFinishRequest}
  1455. */
  1456. proto.app.v1.GameFinishRequest.deserializeBinary = function(bytes) {
  1457. var reader = new jspb.BinaryReader(bytes);
  1458. var msg = new proto.app.v1.GameFinishRequest;
  1459. return proto.app.v1.GameFinishRequest.deserializeBinaryFromReader(msg, reader);
  1460. };
  1461. /**
  1462. * Deserializes binary data (in protobuf wire format) from the
  1463. * given reader into the given message object.
  1464. * @param {!proto.app.v1.GameFinishRequest} msg The message object to deserialize into.
  1465. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1466. * @return {!proto.app.v1.GameFinishRequest}
  1467. */
  1468. proto.app.v1.GameFinishRequest.deserializeBinaryFromReader = function(msg, reader) {
  1469. while (reader.nextField()) {
  1470. if (reader.isEndGroup()) {
  1471. break;
  1472. }
  1473. var field = reader.getFieldNumber();
  1474. switch (field) {
  1475. case 1:
  1476. var value = /** @type {number} */ (reader.readInt32());
  1477. msg.setGameId(value);
  1478. break;
  1479. case 2:
  1480. var value = /** @type {boolean} */ (reader.readBool());
  1481. msg.setIsdrop(value);
  1482. break;
  1483. default:
  1484. reader.skipField();
  1485. break;
  1486. }
  1487. }
  1488. return msg;
  1489. };
  1490. /**
  1491. * Serializes the message to binary data (in protobuf wire format).
  1492. * @return {!Uint8Array}
  1493. */
  1494. proto.app.v1.GameFinishRequest.prototype.serializeBinary = function() {
  1495. var writer = new jspb.BinaryWriter();
  1496. proto.app.v1.GameFinishRequest.serializeBinaryToWriter(this, writer);
  1497. return writer.getResultBuffer();
  1498. };
  1499. /**
  1500. * Serializes the given message to binary data (in protobuf wire
  1501. * format), writing to the given BinaryWriter.
  1502. * @param {!proto.app.v1.GameFinishRequest} message
  1503. * @param {!jspb.BinaryWriter} writer
  1504. * @suppress {unusedLocalVariables} f is only used for nested messages
  1505. */
  1506. proto.app.v1.GameFinishRequest.serializeBinaryToWriter = function(message, writer) {
  1507. var f = undefined;
  1508. f = message.getGameId();
  1509. if (f !== 0) {
  1510. writer.writeInt32(
  1511. 1,
  1512. f
  1513. );
  1514. }
  1515. f = message.getIsdrop();
  1516. if (f) {
  1517. writer.writeBool(
  1518. 2,
  1519. f
  1520. );
  1521. }
  1522. };
  1523. /**
  1524. * optional int32 game_id = 1;
  1525. * @return {number}
  1526. */
  1527. proto.app.v1.GameFinishRequest.prototype.getGameId = function() {
  1528. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1529. };
  1530. /**
  1531. * @param {number} value
  1532. * @return {!proto.app.v1.GameFinishRequest} returns this
  1533. */
  1534. proto.app.v1.GameFinishRequest.prototype.setGameId = function(value) {
  1535. return jspb.Message.setProto3IntField(this, 1, value);
  1536. };
  1537. /**
  1538. * optional bool isDrop = 2;
  1539. * @return {boolean}
  1540. */
  1541. proto.app.v1.GameFinishRequest.prototype.getIsdrop = function() {
  1542. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  1543. };
  1544. /**
  1545. * @param {boolean} value
  1546. * @return {!proto.app.v1.GameFinishRequest} returns this
  1547. */
  1548. proto.app.v1.GameFinishRequest.prototype.setIsdrop = function(value) {
  1549. return jspb.Message.setProto3BooleanField(this, 2, value);
  1550. };
  1551. /**
  1552. * List of repeated fields within this message type.
  1553. * @private {!Array<number>}
  1554. * @const
  1555. */
  1556. proto.app.v1.GameDetailReply.repeatedFields_ = [4];
  1557. if (jspb.Message.GENERATE_TO_OBJECT) {
  1558. /**
  1559. * Creates an object representation of this proto.
  1560. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1561. * Optional fields that are not set will be set to undefined.
  1562. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1563. * For the list of reserved names please see:
  1564. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1565. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1566. * JSPB instance for transitional soy proto support:
  1567. * http://goto/soy-param-migration
  1568. * @return {!Object}
  1569. */
  1570. proto.app.v1.GameDetailReply.prototype.toObject = function(opt_includeInstance) {
  1571. return proto.app.v1.GameDetailReply.toObject(opt_includeInstance, this);
  1572. };
  1573. /**
  1574. * Static version of the {@see toObject} method.
  1575. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1576. * the JSPB instance for transitional soy proto support:
  1577. * http://goto/soy-param-migration
  1578. * @param {!proto.app.v1.GameDetailReply} msg The msg instance to transform.
  1579. * @return {!Object}
  1580. * @suppress {unusedLocalVariables} f is only used for nested messages
  1581. */
  1582. proto.app.v1.GameDetailReply.toObject = function(includeInstance, msg) {
  1583. var f, obj = {
  1584. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1585. iscomplete: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  1586. startAt: (f = msg.getStartAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  1587. checkedSortedListList: jspb.Message.toObjectList(msg.getCheckedSortedListList(),
  1588. proto.app.v1.GameControlPoint.toObject, includeInstance),
  1589. duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  1590. stopAt: (f = msg.getStopAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  1591. qrjsoncode: jspb.Message.getFieldWithDefault(msg, 7, ""),
  1592. issuccess: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
  1593. syspoint: jspb.Message.getFieldWithDefault(msg, 9, 0)
  1594. };
  1595. if (includeInstance) {
  1596. obj.$jspbMessageInstance = msg;
  1597. }
  1598. return obj;
  1599. };
  1600. }
  1601. /**
  1602. * Deserializes binary data (in protobuf wire format).
  1603. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1604. * @return {!proto.app.v1.GameDetailReply}
  1605. */
  1606. proto.app.v1.GameDetailReply.deserializeBinary = function(bytes) {
  1607. var reader = new jspb.BinaryReader(bytes);
  1608. var msg = new proto.app.v1.GameDetailReply;
  1609. return proto.app.v1.GameDetailReply.deserializeBinaryFromReader(msg, reader);
  1610. };
  1611. /**
  1612. * Deserializes binary data (in protobuf wire format) from the
  1613. * given reader into the given message object.
  1614. * @param {!proto.app.v1.GameDetailReply} msg The message object to deserialize into.
  1615. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1616. * @return {!proto.app.v1.GameDetailReply}
  1617. */
  1618. proto.app.v1.GameDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  1619. while (reader.nextField()) {
  1620. if (reader.isEndGroup()) {
  1621. break;
  1622. }
  1623. var field = reader.getFieldNumber();
  1624. switch (field) {
  1625. case 1:
  1626. var value = /** @type {number} */ (reader.readInt32());
  1627. msg.setGameId(value);
  1628. break;
  1629. case 2:
  1630. var value = /** @type {boolean} */ (reader.readBool());
  1631. msg.setIscomplete(value);
  1632. break;
  1633. case 3:
  1634. var value = new google_protobuf_timestamp_pb.Timestamp;
  1635. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  1636. msg.setStartAt(value);
  1637. break;
  1638. case 4:
  1639. var value = new proto.app.v1.GameControlPoint;
  1640. reader.readMessage(value,proto.app.v1.GameControlPoint.deserializeBinaryFromReader);
  1641. msg.addCheckedSortedList(value);
  1642. break;
  1643. case 5:
  1644. var value = new google_protobuf_duration_pb.Duration;
  1645. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  1646. msg.setDuration(value);
  1647. break;
  1648. case 6:
  1649. var value = new google_protobuf_timestamp_pb.Timestamp;
  1650. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  1651. msg.setStopAt(value);
  1652. break;
  1653. case 7:
  1654. var value = /** @type {string} */ (reader.readString());
  1655. msg.setQrjsoncode(value);
  1656. break;
  1657. case 8:
  1658. var value = /** @type {boolean} */ (reader.readBool());
  1659. msg.setIssuccess(value);
  1660. break;
  1661. case 9:
  1662. var value = /** @type {number} */ (reader.readInt32());
  1663. msg.setSyspoint(value);
  1664. break;
  1665. default:
  1666. reader.skipField();
  1667. break;
  1668. }
  1669. }
  1670. return msg;
  1671. };
  1672. /**
  1673. * Serializes the message to binary data (in protobuf wire format).
  1674. * @return {!Uint8Array}
  1675. */
  1676. proto.app.v1.GameDetailReply.prototype.serializeBinary = function() {
  1677. var writer = new jspb.BinaryWriter();
  1678. proto.app.v1.GameDetailReply.serializeBinaryToWriter(this, writer);
  1679. return writer.getResultBuffer();
  1680. };
  1681. /**
  1682. * Serializes the given message to binary data (in protobuf wire
  1683. * format), writing to the given BinaryWriter.
  1684. * @param {!proto.app.v1.GameDetailReply} message
  1685. * @param {!jspb.BinaryWriter} writer
  1686. * @suppress {unusedLocalVariables} f is only used for nested messages
  1687. */
  1688. proto.app.v1.GameDetailReply.serializeBinaryToWriter = function(message, writer) {
  1689. var f = undefined;
  1690. f = message.getGameId();
  1691. if (f !== 0) {
  1692. writer.writeInt32(
  1693. 1,
  1694. f
  1695. );
  1696. }
  1697. f = message.getIscomplete();
  1698. if (f) {
  1699. writer.writeBool(
  1700. 2,
  1701. f
  1702. );
  1703. }
  1704. f = message.getStartAt();
  1705. if (f != null) {
  1706. writer.writeMessage(
  1707. 3,
  1708. f,
  1709. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  1710. );
  1711. }
  1712. f = message.getCheckedSortedListList();
  1713. if (f.length > 0) {
  1714. writer.writeRepeatedMessage(
  1715. 4,
  1716. f,
  1717. proto.app.v1.GameControlPoint.serializeBinaryToWriter
  1718. );
  1719. }
  1720. f = message.getDuration();
  1721. if (f != null) {
  1722. writer.writeMessage(
  1723. 5,
  1724. f,
  1725. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  1726. );
  1727. }
  1728. f = message.getStopAt();
  1729. if (f != null) {
  1730. writer.writeMessage(
  1731. 6,
  1732. f,
  1733. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  1734. );
  1735. }
  1736. f = message.getQrjsoncode();
  1737. if (f.length > 0) {
  1738. writer.writeString(
  1739. 7,
  1740. f
  1741. );
  1742. }
  1743. f = message.getIssuccess();
  1744. if (f) {
  1745. writer.writeBool(
  1746. 8,
  1747. f
  1748. );
  1749. }
  1750. f = message.getSyspoint();
  1751. if (f !== 0) {
  1752. writer.writeInt32(
  1753. 9,
  1754. f
  1755. );
  1756. }
  1757. };
  1758. /**
  1759. * optional int32 game_id = 1;
  1760. * @return {number}
  1761. */
  1762. proto.app.v1.GameDetailReply.prototype.getGameId = function() {
  1763. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1764. };
  1765. /**
  1766. * @param {number} value
  1767. * @return {!proto.app.v1.GameDetailReply} returns this
  1768. */
  1769. proto.app.v1.GameDetailReply.prototype.setGameId = function(value) {
  1770. return jspb.Message.setProto3IntField(this, 1, value);
  1771. };
  1772. /**
  1773. * optional bool isComplete = 2;
  1774. * @return {boolean}
  1775. */
  1776. proto.app.v1.GameDetailReply.prototype.getIscomplete = function() {
  1777. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  1778. };
  1779. /**
  1780. * @param {boolean} value
  1781. * @return {!proto.app.v1.GameDetailReply} returns this
  1782. */
  1783. proto.app.v1.GameDetailReply.prototype.setIscomplete = function(value) {
  1784. return jspb.Message.setProto3BooleanField(this, 2, value);
  1785. };
  1786. /**
  1787. * optional google.protobuf.Timestamp start_at = 3;
  1788. * @return {?proto.google.protobuf.Timestamp}
  1789. */
  1790. proto.app.v1.GameDetailReply.prototype.getStartAt = function() {
  1791. return /** @type{?proto.google.protobuf.Timestamp} */ (
  1792. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
  1793. };
  1794. /**
  1795. * @param {?proto.google.protobuf.Timestamp|undefined} value
  1796. * @return {!proto.app.v1.GameDetailReply} returns this
  1797. */
  1798. proto.app.v1.GameDetailReply.prototype.setStartAt = function(value) {
  1799. return jspb.Message.setWrapperField(this, 3, value);
  1800. };
  1801. /**
  1802. * Clears the message field making it undefined.
  1803. * @return {!proto.app.v1.GameDetailReply} returns this
  1804. */
  1805. proto.app.v1.GameDetailReply.prototype.clearStartAt = function() {
  1806. return this.setStartAt(undefined);
  1807. };
  1808. /**
  1809. * Returns whether this field is set.
  1810. * @return {boolean}
  1811. */
  1812. proto.app.v1.GameDetailReply.prototype.hasStartAt = function() {
  1813. return jspb.Message.getField(this, 3) != null;
  1814. };
  1815. /**
  1816. * repeated GameControlPoint checked_sorted_list = 4;
  1817. * @return {!Array<!proto.app.v1.GameControlPoint>}
  1818. */
  1819. proto.app.v1.GameDetailReply.prototype.getCheckedSortedListList = function() {
  1820. return /** @type{!Array<!proto.app.v1.GameControlPoint>} */ (
  1821. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameControlPoint, 4));
  1822. };
  1823. /**
  1824. * @param {!Array<!proto.app.v1.GameControlPoint>} value
  1825. * @return {!proto.app.v1.GameDetailReply} returns this
  1826. */
  1827. proto.app.v1.GameDetailReply.prototype.setCheckedSortedListList = function(value) {
  1828. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  1829. };
  1830. /**
  1831. * @param {!proto.app.v1.GameControlPoint=} opt_value
  1832. * @param {number=} opt_index
  1833. * @return {!proto.app.v1.GameControlPoint}
  1834. */
  1835. proto.app.v1.GameDetailReply.prototype.addCheckedSortedList = function(opt_value, opt_index) {
  1836. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.app.v1.GameControlPoint, opt_index);
  1837. };
  1838. /**
  1839. * Clears the list making it empty but non-null.
  1840. * @return {!proto.app.v1.GameDetailReply} returns this
  1841. */
  1842. proto.app.v1.GameDetailReply.prototype.clearCheckedSortedListList = function() {
  1843. return this.setCheckedSortedListList([]);
  1844. };
  1845. /**
  1846. * optional google.protobuf.Duration duration = 5;
  1847. * @return {?proto.google.protobuf.Duration}
  1848. */
  1849. proto.app.v1.GameDetailReply.prototype.getDuration = function() {
  1850. return /** @type{?proto.google.protobuf.Duration} */ (
  1851. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5));
  1852. };
  1853. /**
  1854. * @param {?proto.google.protobuf.Duration|undefined} value
  1855. * @return {!proto.app.v1.GameDetailReply} returns this
  1856. */
  1857. proto.app.v1.GameDetailReply.prototype.setDuration = function(value) {
  1858. return jspb.Message.setWrapperField(this, 5, value);
  1859. };
  1860. /**
  1861. * Clears the message field making it undefined.
  1862. * @return {!proto.app.v1.GameDetailReply} returns this
  1863. */
  1864. proto.app.v1.GameDetailReply.prototype.clearDuration = function() {
  1865. return this.setDuration(undefined);
  1866. };
  1867. /**
  1868. * Returns whether this field is set.
  1869. * @return {boolean}
  1870. */
  1871. proto.app.v1.GameDetailReply.prototype.hasDuration = function() {
  1872. return jspb.Message.getField(this, 5) != null;
  1873. };
  1874. /**
  1875. * optional google.protobuf.Timestamp stop_at = 6;
  1876. * @return {?proto.google.protobuf.Timestamp}
  1877. */
  1878. proto.app.v1.GameDetailReply.prototype.getStopAt = function() {
  1879. return /** @type{?proto.google.protobuf.Timestamp} */ (
  1880. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
  1881. };
  1882. /**
  1883. * @param {?proto.google.protobuf.Timestamp|undefined} value
  1884. * @return {!proto.app.v1.GameDetailReply} returns this
  1885. */
  1886. proto.app.v1.GameDetailReply.prototype.setStopAt = function(value) {
  1887. return jspb.Message.setWrapperField(this, 6, value);
  1888. };
  1889. /**
  1890. * Clears the message field making it undefined.
  1891. * @return {!proto.app.v1.GameDetailReply} returns this
  1892. */
  1893. proto.app.v1.GameDetailReply.prototype.clearStopAt = function() {
  1894. return this.setStopAt(undefined);
  1895. };
  1896. /**
  1897. * Returns whether this field is set.
  1898. * @return {boolean}
  1899. */
  1900. proto.app.v1.GameDetailReply.prototype.hasStopAt = function() {
  1901. return jspb.Message.getField(this, 6) != null;
  1902. };
  1903. /**
  1904. * optional string qrJsonCode = 7;
  1905. * @return {string}
  1906. */
  1907. proto.app.v1.GameDetailReply.prototype.getQrjsoncode = function() {
  1908. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  1909. };
  1910. /**
  1911. * @param {string} value
  1912. * @return {!proto.app.v1.GameDetailReply} returns this
  1913. */
  1914. proto.app.v1.GameDetailReply.prototype.setQrjsoncode = function(value) {
  1915. return jspb.Message.setProto3StringField(this, 7, value);
  1916. };
  1917. /**
  1918. * optional bool isSuccess = 8;
  1919. * @return {boolean}
  1920. */
  1921. proto.app.v1.GameDetailReply.prototype.getIssuccess = function() {
  1922. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
  1923. };
  1924. /**
  1925. * @param {boolean} value
  1926. * @return {!proto.app.v1.GameDetailReply} returns this
  1927. */
  1928. proto.app.v1.GameDetailReply.prototype.setIssuccess = function(value) {
  1929. return jspb.Message.setProto3BooleanField(this, 8, value);
  1930. };
  1931. /**
  1932. * optional int32 sysPoint = 9;
  1933. * @return {number}
  1934. */
  1935. proto.app.v1.GameDetailReply.prototype.getSyspoint = function() {
  1936. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  1937. };
  1938. /**
  1939. * @param {number} value
  1940. * @return {!proto.app.v1.GameDetailReply} returns this
  1941. */
  1942. proto.app.v1.GameDetailReply.prototype.setSyspoint = function(value) {
  1943. return jspb.Message.setProto3IntField(this, 9, value);
  1944. };
  1945. if (jspb.Message.GENERATE_TO_OBJECT) {
  1946. /**
  1947. * Creates an object representation of this proto.
  1948. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1949. * Optional fields that are not set will be set to undefined.
  1950. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1951. * For the list of reserved names please see:
  1952. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1953. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1954. * JSPB instance for transitional soy proto support:
  1955. * http://goto/soy-param-migration
  1956. * @return {!Object}
  1957. */
  1958. proto.app.v1.GameControlPoint.prototype.toObject = function(opt_includeInstance) {
  1959. return proto.app.v1.GameControlPoint.toObject(opt_includeInstance, this);
  1960. };
  1961. /**
  1962. * Static version of the {@see toObject} method.
  1963. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1964. * the JSPB instance for transitional soy proto support:
  1965. * http://goto/soy-param-migration
  1966. * @param {!proto.app.v1.GameControlPoint} msg The msg instance to transform.
  1967. * @return {!Object}
  1968. * @suppress {unusedLocalVariables} f is only used for nested messages
  1969. */
  1970. proto.app.v1.GameControlPoint.toObject = function(includeInstance, msg) {
  1971. var f, obj = {
  1972. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1973. sn: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1974. ctype: jspb.Message.getFieldWithDefault(msg, 3, 0),
  1975. orderno: jspb.Message.getFieldWithDefault(msg, 4, 0),
  1976. isCheckSuccess: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
  1977. checkAfterLast: (f = msg.getCheckAfterLast()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  1978. punchtime: (f = msg.getPunchtime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
  1979. };
  1980. if (includeInstance) {
  1981. obj.$jspbMessageInstance = msg;
  1982. }
  1983. return obj;
  1984. };
  1985. }
  1986. /**
  1987. * Deserializes binary data (in protobuf wire format).
  1988. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1989. * @return {!proto.app.v1.GameControlPoint}
  1990. */
  1991. proto.app.v1.GameControlPoint.deserializeBinary = function(bytes) {
  1992. var reader = new jspb.BinaryReader(bytes);
  1993. var msg = new proto.app.v1.GameControlPoint;
  1994. return proto.app.v1.GameControlPoint.deserializeBinaryFromReader(msg, reader);
  1995. };
  1996. /**
  1997. * Deserializes binary data (in protobuf wire format) from the
  1998. * given reader into the given message object.
  1999. * @param {!proto.app.v1.GameControlPoint} msg The message object to deserialize into.
  2000. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2001. * @return {!proto.app.v1.GameControlPoint}
  2002. */
  2003. proto.app.v1.GameControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  2004. while (reader.nextField()) {
  2005. if (reader.isEndGroup()) {
  2006. break;
  2007. }
  2008. var field = reader.getFieldNumber();
  2009. switch (field) {
  2010. case 1:
  2011. var value = /** @type {number} */ (reader.readInt64());
  2012. msg.setId(value);
  2013. break;
  2014. case 2:
  2015. var value = /** @type {string} */ (reader.readString());
  2016. msg.setSn(value);
  2017. break;
  2018. case 3:
  2019. var value = /** @type {!proto.app.v1.CType} */ (reader.readEnum());
  2020. msg.setCtype(value);
  2021. break;
  2022. case 4:
  2023. var value = /** @type {number} */ (reader.readInt32());
  2024. msg.setOrderno(value);
  2025. break;
  2026. case 5:
  2027. var value = /** @type {boolean} */ (reader.readBool());
  2028. msg.setIsCheckSuccess(value);
  2029. break;
  2030. case 6:
  2031. var value = new google_protobuf_duration_pb.Duration;
  2032. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  2033. msg.setCheckAfterLast(value);
  2034. break;
  2035. case 7:
  2036. var value = new google_protobuf_timestamp_pb.Timestamp;
  2037. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  2038. msg.setPunchtime(value);
  2039. break;
  2040. default:
  2041. reader.skipField();
  2042. break;
  2043. }
  2044. }
  2045. return msg;
  2046. };
  2047. /**
  2048. * Serializes the message to binary data (in protobuf wire format).
  2049. * @return {!Uint8Array}
  2050. */
  2051. proto.app.v1.GameControlPoint.prototype.serializeBinary = function() {
  2052. var writer = new jspb.BinaryWriter();
  2053. proto.app.v1.GameControlPoint.serializeBinaryToWriter(this, writer);
  2054. return writer.getResultBuffer();
  2055. };
  2056. /**
  2057. * Serializes the given message to binary data (in protobuf wire
  2058. * format), writing to the given BinaryWriter.
  2059. * @param {!proto.app.v1.GameControlPoint} message
  2060. * @param {!jspb.BinaryWriter} writer
  2061. * @suppress {unusedLocalVariables} f is only used for nested messages
  2062. */
  2063. proto.app.v1.GameControlPoint.serializeBinaryToWriter = function(message, writer) {
  2064. var f = undefined;
  2065. f = message.getId();
  2066. if (f !== 0) {
  2067. writer.writeInt64(
  2068. 1,
  2069. f
  2070. );
  2071. }
  2072. f = message.getSn();
  2073. if (f.length > 0) {
  2074. writer.writeString(
  2075. 2,
  2076. f
  2077. );
  2078. }
  2079. f = message.getCtype();
  2080. if (f !== 0.0) {
  2081. writer.writeEnum(
  2082. 3,
  2083. f
  2084. );
  2085. }
  2086. f = message.getOrderno();
  2087. if (f !== 0) {
  2088. writer.writeInt32(
  2089. 4,
  2090. f
  2091. );
  2092. }
  2093. f = message.getIsCheckSuccess();
  2094. if (f) {
  2095. writer.writeBool(
  2096. 5,
  2097. f
  2098. );
  2099. }
  2100. f = message.getCheckAfterLast();
  2101. if (f != null) {
  2102. writer.writeMessage(
  2103. 6,
  2104. f,
  2105. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  2106. );
  2107. }
  2108. f = message.getPunchtime();
  2109. if (f != null) {
  2110. writer.writeMessage(
  2111. 7,
  2112. f,
  2113. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  2114. );
  2115. }
  2116. };
  2117. /**
  2118. * optional int64 id = 1;
  2119. * @return {number}
  2120. */
  2121. proto.app.v1.GameControlPoint.prototype.getId = function() {
  2122. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2123. };
  2124. /**
  2125. * @param {number} value
  2126. * @return {!proto.app.v1.GameControlPoint} returns this
  2127. */
  2128. proto.app.v1.GameControlPoint.prototype.setId = function(value) {
  2129. return jspb.Message.setProto3IntField(this, 1, value);
  2130. };
  2131. /**
  2132. * optional string sn = 2;
  2133. * @return {string}
  2134. */
  2135. proto.app.v1.GameControlPoint.prototype.getSn = function() {
  2136. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2137. };
  2138. /**
  2139. * @param {string} value
  2140. * @return {!proto.app.v1.GameControlPoint} returns this
  2141. */
  2142. proto.app.v1.GameControlPoint.prototype.setSn = function(value) {
  2143. return jspb.Message.setProto3StringField(this, 2, value);
  2144. };
  2145. /**
  2146. * optional CType cType = 3;
  2147. * @return {!proto.app.v1.CType}
  2148. */
  2149. proto.app.v1.GameControlPoint.prototype.getCtype = function() {
  2150. return /** @type {!proto.app.v1.CType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2151. };
  2152. /**
  2153. * @param {!proto.app.v1.CType} value
  2154. * @return {!proto.app.v1.GameControlPoint} returns this
  2155. */
  2156. proto.app.v1.GameControlPoint.prototype.setCtype = function(value) {
  2157. return jspb.Message.setProto3EnumField(this, 3, value);
  2158. };
  2159. /**
  2160. * optional int32 orderNo = 4;
  2161. * @return {number}
  2162. */
  2163. proto.app.v1.GameControlPoint.prototype.getOrderno = function() {
  2164. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  2165. };
  2166. /**
  2167. * @param {number} value
  2168. * @return {!proto.app.v1.GameControlPoint} returns this
  2169. */
  2170. proto.app.v1.GameControlPoint.prototype.setOrderno = function(value) {
  2171. return jspb.Message.setProto3IntField(this, 4, value);
  2172. };
  2173. /**
  2174. * optional bool is_check_success = 5;
  2175. * @return {boolean}
  2176. */
  2177. proto.app.v1.GameControlPoint.prototype.getIsCheckSuccess = function() {
  2178. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
  2179. };
  2180. /**
  2181. * @param {boolean} value
  2182. * @return {!proto.app.v1.GameControlPoint} returns this
  2183. */
  2184. proto.app.v1.GameControlPoint.prototype.setIsCheckSuccess = function(value) {
  2185. return jspb.Message.setProto3BooleanField(this, 5, value);
  2186. };
  2187. /**
  2188. * optional google.protobuf.Duration check_after_last = 6;
  2189. * @return {?proto.google.protobuf.Duration}
  2190. */
  2191. proto.app.v1.GameControlPoint.prototype.getCheckAfterLast = function() {
  2192. return /** @type{?proto.google.protobuf.Duration} */ (
  2193. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6));
  2194. };
  2195. /**
  2196. * @param {?proto.google.protobuf.Duration|undefined} value
  2197. * @return {!proto.app.v1.GameControlPoint} returns this
  2198. */
  2199. proto.app.v1.GameControlPoint.prototype.setCheckAfterLast = function(value) {
  2200. return jspb.Message.setWrapperField(this, 6, value);
  2201. };
  2202. /**
  2203. * Clears the message field making it undefined.
  2204. * @return {!proto.app.v1.GameControlPoint} returns this
  2205. */
  2206. proto.app.v1.GameControlPoint.prototype.clearCheckAfterLast = function() {
  2207. return this.setCheckAfterLast(undefined);
  2208. };
  2209. /**
  2210. * Returns whether this field is set.
  2211. * @return {boolean}
  2212. */
  2213. proto.app.v1.GameControlPoint.prototype.hasCheckAfterLast = function() {
  2214. return jspb.Message.getField(this, 6) != null;
  2215. };
  2216. /**
  2217. * optional google.protobuf.Timestamp punchTime = 7;
  2218. * @return {?proto.google.protobuf.Timestamp}
  2219. */
  2220. proto.app.v1.GameControlPoint.prototype.getPunchtime = function() {
  2221. return /** @type{?proto.google.protobuf.Timestamp} */ (
  2222. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
  2223. };
  2224. /**
  2225. * @param {?proto.google.protobuf.Timestamp|undefined} value
  2226. * @return {!proto.app.v1.GameControlPoint} returns this
  2227. */
  2228. proto.app.v1.GameControlPoint.prototype.setPunchtime = function(value) {
  2229. return jspb.Message.setWrapperField(this, 7, value);
  2230. };
  2231. /**
  2232. * Clears the message field making it undefined.
  2233. * @return {!proto.app.v1.GameControlPoint} returns this
  2234. */
  2235. proto.app.v1.GameControlPoint.prototype.clearPunchtime = function() {
  2236. return this.setPunchtime(undefined);
  2237. };
  2238. /**
  2239. * Returns whether this field is set.
  2240. * @return {boolean}
  2241. */
  2242. proto.app.v1.GameControlPoint.prototype.hasPunchtime = function() {
  2243. return jspb.Message.getField(this, 7) != null;
  2244. };
  2245. if (jspb.Message.GENERATE_TO_OBJECT) {
  2246. /**
  2247. * Creates an object representation of this proto.
  2248. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2249. * Optional fields that are not set will be set to undefined.
  2250. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2251. * For the list of reserved names please see:
  2252. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2253. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2254. * JSPB instance for transitional soy proto support:
  2255. * http://goto/soy-param-migration
  2256. * @return {!Object}
  2257. */
  2258. proto.app.v1.AssVerificationRequest.prototype.toObject = function(opt_includeInstance) {
  2259. return proto.app.v1.AssVerificationRequest.toObject(opt_includeInstance, this);
  2260. };
  2261. /**
  2262. * Static version of the {@see toObject} method.
  2263. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2264. * the JSPB instance for transitional soy proto support:
  2265. * http://goto/soy-param-migration
  2266. * @param {!proto.app.v1.AssVerificationRequest} msg The msg instance to transform.
  2267. * @return {!Object}
  2268. * @suppress {unusedLocalVariables} f is only used for nested messages
  2269. */
  2270. proto.app.v1.AssVerificationRequest.toObject = function(includeInstance, msg) {
  2271. var f, obj = {
  2272. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2273. uoid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  2274. };
  2275. if (includeInstance) {
  2276. obj.$jspbMessageInstance = msg;
  2277. }
  2278. return obj;
  2279. };
  2280. }
  2281. /**
  2282. * Deserializes binary data (in protobuf wire format).
  2283. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2284. * @return {!proto.app.v1.AssVerificationRequest}
  2285. */
  2286. proto.app.v1.AssVerificationRequest.deserializeBinary = function(bytes) {
  2287. var reader = new jspb.BinaryReader(bytes);
  2288. var msg = new proto.app.v1.AssVerificationRequest;
  2289. return proto.app.v1.AssVerificationRequest.deserializeBinaryFromReader(msg, reader);
  2290. };
  2291. /**
  2292. * Deserializes binary data (in protobuf wire format) from the
  2293. * given reader into the given message object.
  2294. * @param {!proto.app.v1.AssVerificationRequest} msg The message object to deserialize into.
  2295. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2296. * @return {!proto.app.v1.AssVerificationRequest}
  2297. */
  2298. proto.app.v1.AssVerificationRequest.deserializeBinaryFromReader = function(msg, reader) {
  2299. while (reader.nextField()) {
  2300. if (reader.isEndGroup()) {
  2301. break;
  2302. }
  2303. var field = reader.getFieldNumber();
  2304. switch (field) {
  2305. case 1:
  2306. var value = /** @type {number} */ (reader.readInt32());
  2307. msg.setUserid(value);
  2308. break;
  2309. case 2:
  2310. var value = /** @type {number} */ (reader.readInt32());
  2311. msg.setUoid(value);
  2312. break;
  2313. default:
  2314. reader.skipField();
  2315. break;
  2316. }
  2317. }
  2318. return msg;
  2319. };
  2320. /**
  2321. * Serializes the message to binary data (in protobuf wire format).
  2322. * @return {!Uint8Array}
  2323. */
  2324. proto.app.v1.AssVerificationRequest.prototype.serializeBinary = function() {
  2325. var writer = new jspb.BinaryWriter();
  2326. proto.app.v1.AssVerificationRequest.serializeBinaryToWriter(this, writer);
  2327. return writer.getResultBuffer();
  2328. };
  2329. /**
  2330. * Serializes the given message to binary data (in protobuf wire
  2331. * format), writing to the given BinaryWriter.
  2332. * @param {!proto.app.v1.AssVerificationRequest} message
  2333. * @param {!jspb.BinaryWriter} writer
  2334. * @suppress {unusedLocalVariables} f is only used for nested messages
  2335. */
  2336. proto.app.v1.AssVerificationRequest.serializeBinaryToWriter = function(message, writer) {
  2337. var f = undefined;
  2338. f = message.getUserid();
  2339. if (f !== 0) {
  2340. writer.writeInt32(
  2341. 1,
  2342. f
  2343. );
  2344. }
  2345. f = message.getUoid();
  2346. if (f !== 0) {
  2347. writer.writeInt32(
  2348. 2,
  2349. f
  2350. );
  2351. }
  2352. };
  2353. /**
  2354. * optional int32 userId = 1;
  2355. * @return {number}
  2356. */
  2357. proto.app.v1.AssVerificationRequest.prototype.getUserid = function() {
  2358. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2359. };
  2360. /**
  2361. * @param {number} value
  2362. * @return {!proto.app.v1.AssVerificationRequest} returns this
  2363. */
  2364. proto.app.v1.AssVerificationRequest.prototype.setUserid = function(value) {
  2365. return jspb.Message.setProto3IntField(this, 1, value);
  2366. };
  2367. /**
  2368. * optional int32 uoId = 2;
  2369. * @return {number}
  2370. */
  2371. proto.app.v1.AssVerificationRequest.prototype.getUoid = function() {
  2372. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2373. };
  2374. /**
  2375. * @param {number} value
  2376. * @return {!proto.app.v1.AssVerificationRequest} returns this
  2377. */
  2378. proto.app.v1.AssVerificationRequest.prototype.setUoid = function(value) {
  2379. return jspb.Message.setProto3IntField(this, 2, value);
  2380. };
  2381. if (jspb.Message.GENERATE_TO_OBJECT) {
  2382. /**
  2383. * Creates an object representation of this proto.
  2384. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2385. * Optional fields that are not set will be set to undefined.
  2386. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2387. * For the list of reserved names please see:
  2388. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2389. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2390. * JSPB instance for transitional soy proto support:
  2391. * http://goto/soy-param-migration
  2392. * @return {!Object}
  2393. */
  2394. proto.app.v1.GameHistory.prototype.toObject = function(opt_includeInstance) {
  2395. return proto.app.v1.GameHistory.toObject(opt_includeInstance, this);
  2396. };
  2397. /**
  2398. * Static version of the {@see toObject} method.
  2399. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2400. * the JSPB instance for transitional soy proto support:
  2401. * http://goto/soy-param-migration
  2402. * @param {!proto.app.v1.GameHistory} msg The msg instance to transform.
  2403. * @return {!Object}
  2404. * @suppress {unusedLocalVariables} f is only used for nested messages
  2405. */
  2406. proto.app.v1.GameHistory.toObject = function(includeInstance, msg) {
  2407. var f, obj = {
  2408. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2409. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2410. shopname: jspb.Message.getFieldWithDefault(msg, 3, ""),
  2411. iscomplete: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
  2412. gameTime: (f = msg.getGameTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  2413. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  2414. };
  2415. if (includeInstance) {
  2416. obj.$jspbMessageInstance = msg;
  2417. }
  2418. return obj;
  2419. };
  2420. }
  2421. /**
  2422. * Deserializes binary data (in protobuf wire format).
  2423. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2424. * @return {!proto.app.v1.GameHistory}
  2425. */
  2426. proto.app.v1.GameHistory.deserializeBinary = function(bytes) {
  2427. var reader = new jspb.BinaryReader(bytes);
  2428. var msg = new proto.app.v1.GameHistory;
  2429. return proto.app.v1.GameHistory.deserializeBinaryFromReader(msg, reader);
  2430. };
  2431. /**
  2432. * Deserializes binary data (in protobuf wire format) from the
  2433. * given reader into the given message object.
  2434. * @param {!proto.app.v1.GameHistory} msg The message object to deserialize into.
  2435. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2436. * @return {!proto.app.v1.GameHistory}
  2437. */
  2438. proto.app.v1.GameHistory.deserializeBinaryFromReader = function(msg, reader) {
  2439. while (reader.nextField()) {
  2440. if (reader.isEndGroup()) {
  2441. break;
  2442. }
  2443. var field = reader.getFieldNumber();
  2444. switch (field) {
  2445. case 1:
  2446. var value = /** @type {number} */ (reader.readInt64());
  2447. msg.setGameId(value);
  2448. break;
  2449. case 2:
  2450. var value = /** @type {string} */ (reader.readString());
  2451. msg.setName(value);
  2452. break;
  2453. case 3:
  2454. var value = /** @type {string} */ (reader.readString());
  2455. msg.setShopname(value);
  2456. break;
  2457. case 4:
  2458. var value = /** @type {boolean} */ (reader.readBool());
  2459. msg.setIscomplete(value);
  2460. break;
  2461. case 5:
  2462. var value = new google_protobuf_timestamp_pb.Timestamp;
  2463. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  2464. msg.setGameTime(value);
  2465. break;
  2466. case 6:
  2467. var value = new proto.app.v1.NetImage;
  2468. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  2469. msg.setImage(value);
  2470. break;
  2471. default:
  2472. reader.skipField();
  2473. break;
  2474. }
  2475. }
  2476. return msg;
  2477. };
  2478. /**
  2479. * Serializes the message to binary data (in protobuf wire format).
  2480. * @return {!Uint8Array}
  2481. */
  2482. proto.app.v1.GameHistory.prototype.serializeBinary = function() {
  2483. var writer = new jspb.BinaryWriter();
  2484. proto.app.v1.GameHistory.serializeBinaryToWriter(this, writer);
  2485. return writer.getResultBuffer();
  2486. };
  2487. /**
  2488. * Serializes the given message to binary data (in protobuf wire
  2489. * format), writing to the given BinaryWriter.
  2490. * @param {!proto.app.v1.GameHistory} message
  2491. * @param {!jspb.BinaryWriter} writer
  2492. * @suppress {unusedLocalVariables} f is only used for nested messages
  2493. */
  2494. proto.app.v1.GameHistory.serializeBinaryToWriter = function(message, writer) {
  2495. var f = undefined;
  2496. f = message.getGameId();
  2497. if (f !== 0) {
  2498. writer.writeInt64(
  2499. 1,
  2500. f
  2501. );
  2502. }
  2503. f = message.getName();
  2504. if (f.length > 0) {
  2505. writer.writeString(
  2506. 2,
  2507. f
  2508. );
  2509. }
  2510. f = message.getShopname();
  2511. if (f.length > 0) {
  2512. writer.writeString(
  2513. 3,
  2514. f
  2515. );
  2516. }
  2517. f = message.getIscomplete();
  2518. if (f) {
  2519. writer.writeBool(
  2520. 4,
  2521. f
  2522. );
  2523. }
  2524. f = message.getGameTime();
  2525. if (f != null) {
  2526. writer.writeMessage(
  2527. 5,
  2528. f,
  2529. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  2530. );
  2531. }
  2532. f = message.getImage();
  2533. if (f != null) {
  2534. writer.writeMessage(
  2535. 6,
  2536. f,
  2537. proto.app.v1.NetImage.serializeBinaryToWriter
  2538. );
  2539. }
  2540. };
  2541. /**
  2542. * optional int64 game_id = 1;
  2543. * @return {number}
  2544. */
  2545. proto.app.v1.GameHistory.prototype.getGameId = function() {
  2546. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2547. };
  2548. /**
  2549. * @param {number} value
  2550. * @return {!proto.app.v1.GameHistory} returns this
  2551. */
  2552. proto.app.v1.GameHistory.prototype.setGameId = function(value) {
  2553. return jspb.Message.setProto3IntField(this, 1, value);
  2554. };
  2555. /**
  2556. * optional string name = 2;
  2557. * @return {string}
  2558. */
  2559. proto.app.v1.GameHistory.prototype.getName = function() {
  2560. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2561. };
  2562. /**
  2563. * @param {string} value
  2564. * @return {!proto.app.v1.GameHistory} returns this
  2565. */
  2566. proto.app.v1.GameHistory.prototype.setName = function(value) {
  2567. return jspb.Message.setProto3StringField(this, 2, value);
  2568. };
  2569. /**
  2570. * optional string shopName = 3;
  2571. * @return {string}
  2572. */
  2573. proto.app.v1.GameHistory.prototype.getShopname = function() {
  2574. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  2575. };
  2576. /**
  2577. * @param {string} value
  2578. * @return {!proto.app.v1.GameHistory} returns this
  2579. */
  2580. proto.app.v1.GameHistory.prototype.setShopname = function(value) {
  2581. return jspb.Message.setProto3StringField(this, 3, value);
  2582. };
  2583. /**
  2584. * optional bool isComplete = 4;
  2585. * @return {boolean}
  2586. */
  2587. proto.app.v1.GameHistory.prototype.getIscomplete = function() {
  2588. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
  2589. };
  2590. /**
  2591. * @param {boolean} value
  2592. * @return {!proto.app.v1.GameHistory} returns this
  2593. */
  2594. proto.app.v1.GameHistory.prototype.setIscomplete = function(value) {
  2595. return jspb.Message.setProto3BooleanField(this, 4, value);
  2596. };
  2597. /**
  2598. * optional google.protobuf.Timestamp game_time = 5;
  2599. * @return {?proto.google.protobuf.Timestamp}
  2600. */
  2601. proto.app.v1.GameHistory.prototype.getGameTime = function() {
  2602. return /** @type{?proto.google.protobuf.Timestamp} */ (
  2603. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
  2604. };
  2605. /**
  2606. * @param {?proto.google.protobuf.Timestamp|undefined} value
  2607. * @return {!proto.app.v1.GameHistory} returns this
  2608. */
  2609. proto.app.v1.GameHistory.prototype.setGameTime = function(value) {
  2610. return jspb.Message.setWrapperField(this, 5, value);
  2611. };
  2612. /**
  2613. * Clears the message field making it undefined.
  2614. * @return {!proto.app.v1.GameHistory} returns this
  2615. */
  2616. proto.app.v1.GameHistory.prototype.clearGameTime = function() {
  2617. return this.setGameTime(undefined);
  2618. };
  2619. /**
  2620. * Returns whether this field is set.
  2621. * @return {boolean}
  2622. */
  2623. proto.app.v1.GameHistory.prototype.hasGameTime = function() {
  2624. return jspb.Message.getField(this, 5) != null;
  2625. };
  2626. /**
  2627. * optional NetImage image = 6;
  2628. * @return {?proto.app.v1.NetImage}
  2629. */
  2630. proto.app.v1.GameHistory.prototype.getImage = function() {
  2631. return /** @type{?proto.app.v1.NetImage} */ (
  2632. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 6));
  2633. };
  2634. /**
  2635. * @param {?proto.app.v1.NetImage|undefined} value
  2636. * @return {!proto.app.v1.GameHistory} returns this
  2637. */
  2638. proto.app.v1.GameHistory.prototype.setImage = function(value) {
  2639. return jspb.Message.setWrapperField(this, 6, value);
  2640. };
  2641. /**
  2642. * Clears the message field making it undefined.
  2643. * @return {!proto.app.v1.GameHistory} returns this
  2644. */
  2645. proto.app.v1.GameHistory.prototype.clearImage = function() {
  2646. return this.setImage(undefined);
  2647. };
  2648. /**
  2649. * Returns whether this field is set.
  2650. * @return {boolean}
  2651. */
  2652. proto.app.v1.GameHistory.prototype.hasImage = function() {
  2653. return jspb.Message.getField(this, 6) != null;
  2654. };
  2655. if (jspb.Message.GENERATE_TO_OBJECT) {
  2656. /**
  2657. * Creates an object representation of this proto.
  2658. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2659. * Optional fields that are not set will be set to undefined.
  2660. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2661. * For the list of reserved names please see:
  2662. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2663. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2664. * JSPB instance for transitional soy proto support:
  2665. * http://goto/soy-param-migration
  2666. * @return {!Object}
  2667. */
  2668. proto.app.v1.NetImage.prototype.toObject = function(opt_includeInstance) {
  2669. return proto.app.v1.NetImage.toObject(opt_includeInstance, this);
  2670. };
  2671. /**
  2672. * Static version of the {@see toObject} method.
  2673. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2674. * the JSPB instance for transitional soy proto support:
  2675. * http://goto/soy-param-migration
  2676. * @param {!proto.app.v1.NetImage} msg The msg instance to transform.
  2677. * @return {!Object}
  2678. * @suppress {unusedLocalVariables} f is only used for nested messages
  2679. */
  2680. proto.app.v1.NetImage.toObject = function(includeInstance, msg) {
  2681. var f, obj = {
  2682. url: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2683. md5: msg.getMd5_asB64()
  2684. };
  2685. if (includeInstance) {
  2686. obj.$jspbMessageInstance = msg;
  2687. }
  2688. return obj;
  2689. };
  2690. }
  2691. /**
  2692. * Deserializes binary data (in protobuf wire format).
  2693. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2694. * @return {!proto.app.v1.NetImage}
  2695. */
  2696. proto.app.v1.NetImage.deserializeBinary = function(bytes) {
  2697. var reader = new jspb.BinaryReader(bytes);
  2698. var msg = new proto.app.v1.NetImage;
  2699. return proto.app.v1.NetImage.deserializeBinaryFromReader(msg, reader);
  2700. };
  2701. /**
  2702. * Deserializes binary data (in protobuf wire format) from the
  2703. * given reader into the given message object.
  2704. * @param {!proto.app.v1.NetImage} msg The message object to deserialize into.
  2705. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2706. * @return {!proto.app.v1.NetImage}
  2707. */
  2708. proto.app.v1.NetImage.deserializeBinaryFromReader = function(msg, reader) {
  2709. while (reader.nextField()) {
  2710. if (reader.isEndGroup()) {
  2711. break;
  2712. }
  2713. var field = reader.getFieldNumber();
  2714. switch (field) {
  2715. case 1:
  2716. var value = /** @type {string} */ (reader.readString());
  2717. msg.setUrl(value);
  2718. break;
  2719. case 2:
  2720. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2721. msg.setMd5(value);
  2722. break;
  2723. default:
  2724. reader.skipField();
  2725. break;
  2726. }
  2727. }
  2728. return msg;
  2729. };
  2730. /**
  2731. * Serializes the message to binary data (in protobuf wire format).
  2732. * @return {!Uint8Array}
  2733. */
  2734. proto.app.v1.NetImage.prototype.serializeBinary = function() {
  2735. var writer = new jspb.BinaryWriter();
  2736. proto.app.v1.NetImage.serializeBinaryToWriter(this, writer);
  2737. return writer.getResultBuffer();
  2738. };
  2739. /**
  2740. * Serializes the given message to binary data (in protobuf wire
  2741. * format), writing to the given BinaryWriter.
  2742. * @param {!proto.app.v1.NetImage} message
  2743. * @param {!jspb.BinaryWriter} writer
  2744. * @suppress {unusedLocalVariables} f is only used for nested messages
  2745. */
  2746. proto.app.v1.NetImage.serializeBinaryToWriter = function(message, writer) {
  2747. var f = undefined;
  2748. f = message.getUrl();
  2749. if (f.length > 0) {
  2750. writer.writeString(
  2751. 1,
  2752. f
  2753. );
  2754. }
  2755. f = message.getMd5_asU8();
  2756. if (f.length > 0) {
  2757. writer.writeBytes(
  2758. 2,
  2759. f
  2760. );
  2761. }
  2762. };
  2763. /**
  2764. * optional string url = 1;
  2765. * @return {string}
  2766. */
  2767. proto.app.v1.NetImage.prototype.getUrl = function() {
  2768. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2769. };
  2770. /**
  2771. * @param {string} value
  2772. * @return {!proto.app.v1.NetImage} returns this
  2773. */
  2774. proto.app.v1.NetImage.prototype.setUrl = function(value) {
  2775. return jspb.Message.setProto3StringField(this, 1, value);
  2776. };
  2777. /**
  2778. * optional bytes md5 = 2;
  2779. * @return {string}
  2780. */
  2781. proto.app.v1.NetImage.prototype.getMd5 = function() {
  2782. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2783. };
  2784. /**
  2785. * optional bytes md5 = 2;
  2786. * This is a type-conversion wrapper around `getMd5()`
  2787. * @return {string}
  2788. */
  2789. proto.app.v1.NetImage.prototype.getMd5_asB64 = function() {
  2790. return /** @type {string} */ (jspb.Message.bytesAsB64(
  2791. this.getMd5()));
  2792. };
  2793. /**
  2794. * optional bytes md5 = 2;
  2795. * Note that Uint8Array is not supported on all browsers.
  2796. * @see http://caniuse.com/Uint8Array
  2797. * This is a type-conversion wrapper around `getMd5()`
  2798. * @return {!Uint8Array}
  2799. */
  2800. proto.app.v1.NetImage.prototype.getMd5_asU8 = function() {
  2801. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2802. this.getMd5()));
  2803. };
  2804. /**
  2805. * @param {!(string|Uint8Array)} value
  2806. * @return {!proto.app.v1.NetImage} returns this
  2807. */
  2808. proto.app.v1.NetImage.prototype.setMd5 = function(value) {
  2809. return jspb.Message.setProto3BytesField(this, 2, value);
  2810. };
  2811. if (jspb.Message.GENERATE_TO_OBJECT) {
  2812. /**
  2813. * Creates an object representation of this proto.
  2814. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2815. * Optional fields that are not set will be set to undefined.
  2816. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2817. * For the list of reserved names please see:
  2818. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2819. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2820. * JSPB instance for transitional soy proto support:
  2821. * http://goto/soy-param-migration
  2822. * @return {!Object}
  2823. */
  2824. proto.app.v1.Position.prototype.toObject = function(opt_includeInstance) {
  2825. return proto.app.v1.Position.toObject(opt_includeInstance, this);
  2826. };
  2827. /**
  2828. * Static version of the {@see toObject} method.
  2829. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2830. * the JSPB instance for transitional soy proto support:
  2831. * http://goto/soy-param-migration
  2832. * @param {!proto.app.v1.Position} msg The msg instance to transform.
  2833. * @return {!Object}
  2834. * @suppress {unusedLocalVariables} f is only used for nested messages
  2835. */
  2836. proto.app.v1.Position.toObject = function(includeInstance, msg) {
  2837. var f, obj = {
  2838. longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  2839. latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
  2840. };
  2841. if (includeInstance) {
  2842. obj.$jspbMessageInstance = msg;
  2843. }
  2844. return obj;
  2845. };
  2846. }
  2847. /**
  2848. * Deserializes binary data (in protobuf wire format).
  2849. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2850. * @return {!proto.app.v1.Position}
  2851. */
  2852. proto.app.v1.Position.deserializeBinary = function(bytes) {
  2853. var reader = new jspb.BinaryReader(bytes);
  2854. var msg = new proto.app.v1.Position;
  2855. return proto.app.v1.Position.deserializeBinaryFromReader(msg, reader);
  2856. };
  2857. /**
  2858. * Deserializes binary data (in protobuf wire format) from the
  2859. * given reader into the given message object.
  2860. * @param {!proto.app.v1.Position} msg The message object to deserialize into.
  2861. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2862. * @return {!proto.app.v1.Position}
  2863. */
  2864. proto.app.v1.Position.deserializeBinaryFromReader = function(msg, reader) {
  2865. while (reader.nextField()) {
  2866. if (reader.isEndGroup()) {
  2867. break;
  2868. }
  2869. var field = reader.getFieldNumber();
  2870. switch (field) {
  2871. case 1:
  2872. var value = /** @type {number} */ (reader.readDouble());
  2873. msg.setLongitude(value);
  2874. break;
  2875. case 2:
  2876. var value = /** @type {number} */ (reader.readDouble());
  2877. msg.setLatitude(value);
  2878. break;
  2879. default:
  2880. reader.skipField();
  2881. break;
  2882. }
  2883. }
  2884. return msg;
  2885. };
  2886. /**
  2887. * Serializes the message to binary data (in protobuf wire format).
  2888. * @return {!Uint8Array}
  2889. */
  2890. proto.app.v1.Position.prototype.serializeBinary = function() {
  2891. var writer = new jspb.BinaryWriter();
  2892. proto.app.v1.Position.serializeBinaryToWriter(this, writer);
  2893. return writer.getResultBuffer();
  2894. };
  2895. /**
  2896. * Serializes the given message to binary data (in protobuf wire
  2897. * format), writing to the given BinaryWriter.
  2898. * @param {!proto.app.v1.Position} message
  2899. * @param {!jspb.BinaryWriter} writer
  2900. * @suppress {unusedLocalVariables} f is only used for nested messages
  2901. */
  2902. proto.app.v1.Position.serializeBinaryToWriter = function(message, writer) {
  2903. var f = undefined;
  2904. f = message.getLongitude();
  2905. if (f !== 0.0) {
  2906. writer.writeDouble(
  2907. 1,
  2908. f
  2909. );
  2910. }
  2911. f = message.getLatitude();
  2912. if (f !== 0.0) {
  2913. writer.writeDouble(
  2914. 2,
  2915. f
  2916. );
  2917. }
  2918. };
  2919. /**
  2920. * optional double longitude = 1;
  2921. * @return {number}
  2922. */
  2923. proto.app.v1.Position.prototype.getLongitude = function() {
  2924. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  2925. };
  2926. /**
  2927. * @param {number} value
  2928. * @return {!proto.app.v1.Position} returns this
  2929. */
  2930. proto.app.v1.Position.prototype.setLongitude = function(value) {
  2931. return jspb.Message.setProto3FloatField(this, 1, value);
  2932. };
  2933. /**
  2934. * optional double latitude = 2;
  2935. * @return {number}
  2936. */
  2937. proto.app.v1.Position.prototype.getLatitude = function() {
  2938. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  2939. };
  2940. /**
  2941. * @param {number} value
  2942. * @return {!proto.app.v1.Position} returns this
  2943. */
  2944. proto.app.v1.Position.prototype.setLatitude = function(value) {
  2945. return jspb.Message.setProto3FloatField(this, 2, value);
  2946. };
  2947. if (jspb.Message.GENERATE_TO_OBJECT) {
  2948. /**
  2949. * Creates an object representation of this proto.
  2950. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2951. * Optional fields that are not set will be set to undefined.
  2952. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2953. * For the list of reserved names please see:
  2954. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2955. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2956. * JSPB instance for transitional soy proto support:
  2957. * http://goto/soy-param-migration
  2958. * @return {!Object}
  2959. */
  2960. proto.app.v1.ControlPointInfo.prototype.toObject = function(opt_includeInstance) {
  2961. return proto.app.v1.ControlPointInfo.toObject(opt_includeInstance, this);
  2962. };
  2963. /**
  2964. * Static version of the {@see toObject} method.
  2965. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2966. * the JSPB instance for transitional soy proto support:
  2967. * http://goto/soy-param-migration
  2968. * @param {!proto.app.v1.ControlPointInfo} msg The msg instance to transform.
  2969. * @return {!Object}
  2970. * @suppress {unusedLocalVariables} f is only used for nested messages
  2971. */
  2972. proto.app.v1.ControlPointInfo.toObject = function(includeInstance, msg) {
  2973. var f, obj = {
  2974. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  2975. content: jspb.Message.getFieldWithDefault(msg, 2, "")
  2976. };
  2977. if (includeInstance) {
  2978. obj.$jspbMessageInstance = msg;
  2979. }
  2980. return obj;
  2981. };
  2982. }
  2983. /**
  2984. * Deserializes binary data (in protobuf wire format).
  2985. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2986. * @return {!proto.app.v1.ControlPointInfo}
  2987. */
  2988. proto.app.v1.ControlPointInfo.deserializeBinary = function(bytes) {
  2989. var reader = new jspb.BinaryReader(bytes);
  2990. var msg = new proto.app.v1.ControlPointInfo;
  2991. return proto.app.v1.ControlPointInfo.deserializeBinaryFromReader(msg, reader);
  2992. };
  2993. /**
  2994. * Deserializes binary data (in protobuf wire format) from the
  2995. * given reader into the given message object.
  2996. * @param {!proto.app.v1.ControlPointInfo} msg The message object to deserialize into.
  2997. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2998. * @return {!proto.app.v1.ControlPointInfo}
  2999. */
  3000. proto.app.v1.ControlPointInfo.deserializeBinaryFromReader = function(msg, reader) {
  3001. while (reader.nextField()) {
  3002. if (reader.isEndGroup()) {
  3003. break;
  3004. }
  3005. var field = reader.getFieldNumber();
  3006. switch (field) {
  3007. case 1:
  3008. var value = new proto.app.v1.NetImage;
  3009. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  3010. msg.setImage(value);
  3011. break;
  3012. case 2:
  3013. var value = /** @type {string} */ (reader.readString());
  3014. msg.setContent(value);
  3015. break;
  3016. default:
  3017. reader.skipField();
  3018. break;
  3019. }
  3020. }
  3021. return msg;
  3022. };
  3023. /**
  3024. * Serializes the message to binary data (in protobuf wire format).
  3025. * @return {!Uint8Array}
  3026. */
  3027. proto.app.v1.ControlPointInfo.prototype.serializeBinary = function() {
  3028. var writer = new jspb.BinaryWriter();
  3029. proto.app.v1.ControlPointInfo.serializeBinaryToWriter(this, writer);
  3030. return writer.getResultBuffer();
  3031. };
  3032. /**
  3033. * Serializes the given message to binary data (in protobuf wire
  3034. * format), writing to the given BinaryWriter.
  3035. * @param {!proto.app.v1.ControlPointInfo} message
  3036. * @param {!jspb.BinaryWriter} writer
  3037. * @suppress {unusedLocalVariables} f is only used for nested messages
  3038. */
  3039. proto.app.v1.ControlPointInfo.serializeBinaryToWriter = function(message, writer) {
  3040. var f = undefined;
  3041. f = message.getImage();
  3042. if (f != null) {
  3043. writer.writeMessage(
  3044. 1,
  3045. f,
  3046. proto.app.v1.NetImage.serializeBinaryToWriter
  3047. );
  3048. }
  3049. f = message.getContent();
  3050. if (f.length > 0) {
  3051. writer.writeString(
  3052. 2,
  3053. f
  3054. );
  3055. }
  3056. };
  3057. /**
  3058. * optional NetImage image = 1;
  3059. * @return {?proto.app.v1.NetImage}
  3060. */
  3061. proto.app.v1.ControlPointInfo.prototype.getImage = function() {
  3062. return /** @type{?proto.app.v1.NetImage} */ (
  3063. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 1));
  3064. };
  3065. /**
  3066. * @param {?proto.app.v1.NetImage|undefined} value
  3067. * @return {!proto.app.v1.ControlPointInfo} returns this
  3068. */
  3069. proto.app.v1.ControlPointInfo.prototype.setImage = function(value) {
  3070. return jspb.Message.setWrapperField(this, 1, value);
  3071. };
  3072. /**
  3073. * Clears the message field making it undefined.
  3074. * @return {!proto.app.v1.ControlPointInfo} returns this
  3075. */
  3076. proto.app.v1.ControlPointInfo.prototype.clearImage = function() {
  3077. return this.setImage(undefined);
  3078. };
  3079. /**
  3080. * Returns whether this field is set.
  3081. * @return {boolean}
  3082. */
  3083. proto.app.v1.ControlPointInfo.prototype.hasImage = function() {
  3084. return jspb.Message.getField(this, 1) != null;
  3085. };
  3086. /**
  3087. * optional string content = 2;
  3088. * @return {string}
  3089. */
  3090. proto.app.v1.ControlPointInfo.prototype.getContent = function() {
  3091. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3092. };
  3093. /**
  3094. * @param {string} value
  3095. * @return {!proto.app.v1.ControlPointInfo} returns this
  3096. */
  3097. proto.app.v1.ControlPointInfo.prototype.setContent = function(value) {
  3098. return jspb.Message.setProto3StringField(this, 2, value);
  3099. };
  3100. /**
  3101. * List of repeated fields within this message type.
  3102. * @private {!Array<number>}
  3103. * @const
  3104. */
  3105. proto.app.v1.ControlPoint.repeatedFields_ = [3];
  3106. if (jspb.Message.GENERATE_TO_OBJECT) {
  3107. /**
  3108. * Creates an object representation of this proto.
  3109. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3110. * Optional fields that are not set will be set to undefined.
  3111. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3112. * For the list of reserved names please see:
  3113. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3114. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3115. * JSPB instance for transitional soy proto support:
  3116. * http://goto/soy-param-migration
  3117. * @return {!Object}
  3118. */
  3119. proto.app.v1.ControlPoint.prototype.toObject = function(opt_includeInstance) {
  3120. return proto.app.v1.ControlPoint.toObject(opt_includeInstance, this);
  3121. };
  3122. /**
  3123. * Static version of the {@see toObject} method.
  3124. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3125. * the JSPB instance for transitional soy proto support:
  3126. * http://goto/soy-param-migration
  3127. * @param {!proto.app.v1.ControlPoint} msg The msg instance to transform.
  3128. * @return {!Object}
  3129. * @suppress {unusedLocalVariables} f is only used for nested messages
  3130. */
  3131. proto.app.v1.ControlPoint.toObject = function(includeInstance, msg) {
  3132. var f, obj = {
  3133. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3134. info: (f = msg.getInfo()) && proto.app.v1.ControlPointInfo.toObject(includeInstance, f),
  3135. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
  3136. onMapX: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3137. onMapY: jspb.Message.getFieldWithDefault(msg, 5, 0),
  3138. sn: jspb.Message.getFieldWithDefault(msg, 6, "")
  3139. };
  3140. if (includeInstance) {
  3141. obj.$jspbMessageInstance = msg;
  3142. }
  3143. return obj;
  3144. };
  3145. }
  3146. /**
  3147. * Deserializes binary data (in protobuf wire format).
  3148. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3149. * @return {!proto.app.v1.ControlPoint}
  3150. */
  3151. proto.app.v1.ControlPoint.deserializeBinary = function(bytes) {
  3152. var reader = new jspb.BinaryReader(bytes);
  3153. var msg = new proto.app.v1.ControlPoint;
  3154. return proto.app.v1.ControlPoint.deserializeBinaryFromReader(msg, reader);
  3155. };
  3156. /**
  3157. * Deserializes binary data (in protobuf wire format) from the
  3158. * given reader into the given message object.
  3159. * @param {!proto.app.v1.ControlPoint} msg The message object to deserialize into.
  3160. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3161. * @return {!proto.app.v1.ControlPoint}
  3162. */
  3163. proto.app.v1.ControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  3164. while (reader.nextField()) {
  3165. if (reader.isEndGroup()) {
  3166. break;
  3167. }
  3168. var field = reader.getFieldNumber();
  3169. switch (field) {
  3170. case 1:
  3171. var value = /** @type {number} */ (reader.readInt64());
  3172. msg.setId(value);
  3173. break;
  3174. case 2:
  3175. var value = new proto.app.v1.ControlPointInfo;
  3176. reader.readMessage(value,proto.app.v1.ControlPointInfo.deserializeBinaryFromReader);
  3177. msg.setInfo(value);
  3178. break;
  3179. case 3:
  3180. var value = /** @type {string} */ (reader.readString());
  3181. msg.addNfcIdList(value);
  3182. break;
  3183. case 4:
  3184. var value = /** @type {number} */ (reader.readInt64());
  3185. msg.setOnMapX(value);
  3186. break;
  3187. case 5:
  3188. var value = /** @type {number} */ (reader.readInt64());
  3189. msg.setOnMapY(value);
  3190. break;
  3191. case 6:
  3192. var value = /** @type {string} */ (reader.readString());
  3193. msg.setSn(value);
  3194. break;
  3195. default:
  3196. reader.skipField();
  3197. break;
  3198. }
  3199. }
  3200. return msg;
  3201. };
  3202. /**
  3203. * Serializes the message to binary data (in protobuf wire format).
  3204. * @return {!Uint8Array}
  3205. */
  3206. proto.app.v1.ControlPoint.prototype.serializeBinary = function() {
  3207. var writer = new jspb.BinaryWriter();
  3208. proto.app.v1.ControlPoint.serializeBinaryToWriter(this, writer);
  3209. return writer.getResultBuffer();
  3210. };
  3211. /**
  3212. * Serializes the given message to binary data (in protobuf wire
  3213. * format), writing to the given BinaryWriter.
  3214. * @param {!proto.app.v1.ControlPoint} message
  3215. * @param {!jspb.BinaryWriter} writer
  3216. * @suppress {unusedLocalVariables} f is only used for nested messages
  3217. */
  3218. proto.app.v1.ControlPoint.serializeBinaryToWriter = function(message, writer) {
  3219. var f = undefined;
  3220. f = message.getId();
  3221. if (f !== 0) {
  3222. writer.writeInt64(
  3223. 1,
  3224. f
  3225. );
  3226. }
  3227. f = message.getInfo();
  3228. if (f != null) {
  3229. writer.writeMessage(
  3230. 2,
  3231. f,
  3232. proto.app.v1.ControlPointInfo.serializeBinaryToWriter
  3233. );
  3234. }
  3235. f = message.getNfcIdListList();
  3236. if (f.length > 0) {
  3237. writer.writeRepeatedString(
  3238. 3,
  3239. f
  3240. );
  3241. }
  3242. f = message.getOnMapX();
  3243. if (f !== 0) {
  3244. writer.writeInt64(
  3245. 4,
  3246. f
  3247. );
  3248. }
  3249. f = message.getOnMapY();
  3250. if (f !== 0) {
  3251. writer.writeInt64(
  3252. 5,
  3253. f
  3254. );
  3255. }
  3256. f = message.getSn();
  3257. if (f.length > 0) {
  3258. writer.writeString(
  3259. 6,
  3260. f
  3261. );
  3262. }
  3263. };
  3264. /**
  3265. * optional int64 id = 1;
  3266. * @return {number}
  3267. */
  3268. proto.app.v1.ControlPoint.prototype.getId = function() {
  3269. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3270. };
  3271. /**
  3272. * @param {number} value
  3273. * @return {!proto.app.v1.ControlPoint} returns this
  3274. */
  3275. proto.app.v1.ControlPoint.prototype.setId = function(value) {
  3276. return jspb.Message.setProto3IntField(this, 1, value);
  3277. };
  3278. /**
  3279. * optional ControlPointInfo info = 2;
  3280. * @return {?proto.app.v1.ControlPointInfo}
  3281. */
  3282. proto.app.v1.ControlPoint.prototype.getInfo = function() {
  3283. return /** @type{?proto.app.v1.ControlPointInfo} */ (
  3284. jspb.Message.getWrapperField(this, proto.app.v1.ControlPointInfo, 2));
  3285. };
  3286. /**
  3287. * @param {?proto.app.v1.ControlPointInfo|undefined} value
  3288. * @return {!proto.app.v1.ControlPoint} returns this
  3289. */
  3290. proto.app.v1.ControlPoint.prototype.setInfo = function(value) {
  3291. return jspb.Message.setWrapperField(this, 2, value);
  3292. };
  3293. /**
  3294. * Clears the message field making it undefined.
  3295. * @return {!proto.app.v1.ControlPoint} returns this
  3296. */
  3297. proto.app.v1.ControlPoint.prototype.clearInfo = function() {
  3298. return this.setInfo(undefined);
  3299. };
  3300. /**
  3301. * Returns whether this field is set.
  3302. * @return {boolean}
  3303. */
  3304. proto.app.v1.ControlPoint.prototype.hasInfo = function() {
  3305. return jspb.Message.getField(this, 2) != null;
  3306. };
  3307. /**
  3308. * repeated string nfc_id_list = 3;
  3309. * @return {!Array<string>}
  3310. */
  3311. proto.app.v1.ControlPoint.prototype.getNfcIdListList = function() {
  3312. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
  3313. };
  3314. /**
  3315. * @param {!Array<string>} value
  3316. * @return {!proto.app.v1.ControlPoint} returns this
  3317. */
  3318. proto.app.v1.ControlPoint.prototype.setNfcIdListList = function(value) {
  3319. return jspb.Message.setField(this, 3, value || []);
  3320. };
  3321. /**
  3322. * @param {string} value
  3323. * @param {number=} opt_index
  3324. * @return {!proto.app.v1.ControlPoint} returns this
  3325. */
  3326. proto.app.v1.ControlPoint.prototype.addNfcIdList = function(value, opt_index) {
  3327. return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
  3328. };
  3329. /**
  3330. * Clears the list making it empty but non-null.
  3331. * @return {!proto.app.v1.ControlPoint} returns this
  3332. */
  3333. proto.app.v1.ControlPoint.prototype.clearNfcIdListList = function() {
  3334. return this.setNfcIdListList([]);
  3335. };
  3336. /**
  3337. * optional int64 on_map_x = 4;
  3338. * @return {number}
  3339. */
  3340. proto.app.v1.ControlPoint.prototype.getOnMapX = function() {
  3341. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3342. };
  3343. /**
  3344. * @param {number} value
  3345. * @return {!proto.app.v1.ControlPoint} returns this
  3346. */
  3347. proto.app.v1.ControlPoint.prototype.setOnMapX = function(value) {
  3348. return jspb.Message.setProto3IntField(this, 4, value);
  3349. };
  3350. /**
  3351. * optional int64 on_map_y = 5;
  3352. * @return {number}
  3353. */
  3354. proto.app.v1.ControlPoint.prototype.getOnMapY = function() {
  3355. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  3356. };
  3357. /**
  3358. * @param {number} value
  3359. * @return {!proto.app.v1.ControlPoint} returns this
  3360. */
  3361. proto.app.v1.ControlPoint.prototype.setOnMapY = function(value) {
  3362. return jspb.Message.setProto3IntField(this, 5, value);
  3363. };
  3364. /**
  3365. * optional string sn = 6;
  3366. * @return {string}
  3367. */
  3368. proto.app.v1.ControlPoint.prototype.getSn = function() {
  3369. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  3370. };
  3371. /**
  3372. * @param {string} value
  3373. * @return {!proto.app.v1.ControlPoint} returns this
  3374. */
  3375. proto.app.v1.ControlPoint.prototype.setSn = function(value) {
  3376. return jspb.Message.setProto3StringField(this, 6, value);
  3377. };
  3378. /**
  3379. * List of repeated fields within this message type.
  3380. * @private {!Array<number>}
  3381. * @const
  3382. */
  3383. proto.app.v1.ControlPointSimple.repeatedFields_ = [2];
  3384. if (jspb.Message.GENERATE_TO_OBJECT) {
  3385. /**
  3386. * Creates an object representation of this proto.
  3387. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3388. * Optional fields that are not set will be set to undefined.
  3389. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3390. * For the list of reserved names please see:
  3391. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3392. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3393. * JSPB instance for transitional soy proto support:
  3394. * http://goto/soy-param-migration
  3395. * @return {!Object}
  3396. */
  3397. proto.app.v1.ControlPointSimple.prototype.toObject = function(opt_includeInstance) {
  3398. return proto.app.v1.ControlPointSimple.toObject(opt_includeInstance, this);
  3399. };
  3400. /**
  3401. * Static version of the {@see toObject} method.
  3402. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3403. * the JSPB instance for transitional soy proto support:
  3404. * http://goto/soy-param-migration
  3405. * @param {!proto.app.v1.ControlPointSimple} msg The msg instance to transform.
  3406. * @return {!Object}
  3407. * @suppress {unusedLocalVariables} f is only used for nested messages
  3408. */
  3409. proto.app.v1.ControlPointSimple.toObject = function(includeInstance, msg) {
  3410. var f, obj = {
  3411. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3412. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
  3413. sn: jspb.Message.getFieldWithDefault(msg, 3, "")
  3414. };
  3415. if (includeInstance) {
  3416. obj.$jspbMessageInstance = msg;
  3417. }
  3418. return obj;
  3419. };
  3420. }
  3421. /**
  3422. * Deserializes binary data (in protobuf wire format).
  3423. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3424. * @return {!proto.app.v1.ControlPointSimple}
  3425. */
  3426. proto.app.v1.ControlPointSimple.deserializeBinary = function(bytes) {
  3427. var reader = new jspb.BinaryReader(bytes);
  3428. var msg = new proto.app.v1.ControlPointSimple;
  3429. return proto.app.v1.ControlPointSimple.deserializeBinaryFromReader(msg, reader);
  3430. };
  3431. /**
  3432. * Deserializes binary data (in protobuf wire format) from the
  3433. * given reader into the given message object.
  3434. * @param {!proto.app.v1.ControlPointSimple} msg The message object to deserialize into.
  3435. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3436. * @return {!proto.app.v1.ControlPointSimple}
  3437. */
  3438. proto.app.v1.ControlPointSimple.deserializeBinaryFromReader = function(msg, reader) {
  3439. while (reader.nextField()) {
  3440. if (reader.isEndGroup()) {
  3441. break;
  3442. }
  3443. var field = reader.getFieldNumber();
  3444. switch (field) {
  3445. case 1:
  3446. var value = /** @type {number} */ (reader.readInt64());
  3447. msg.setId(value);
  3448. break;
  3449. case 2:
  3450. var value = /** @type {string} */ (reader.readString());
  3451. msg.addNfcIdList(value);
  3452. break;
  3453. case 3:
  3454. var value = /** @type {string} */ (reader.readString());
  3455. msg.setSn(value);
  3456. break;
  3457. default:
  3458. reader.skipField();
  3459. break;
  3460. }
  3461. }
  3462. return msg;
  3463. };
  3464. /**
  3465. * Serializes the message to binary data (in protobuf wire format).
  3466. * @return {!Uint8Array}
  3467. */
  3468. proto.app.v1.ControlPointSimple.prototype.serializeBinary = function() {
  3469. var writer = new jspb.BinaryWriter();
  3470. proto.app.v1.ControlPointSimple.serializeBinaryToWriter(this, writer);
  3471. return writer.getResultBuffer();
  3472. };
  3473. /**
  3474. * Serializes the given message to binary data (in protobuf wire
  3475. * format), writing to the given BinaryWriter.
  3476. * @param {!proto.app.v1.ControlPointSimple} message
  3477. * @param {!jspb.BinaryWriter} writer
  3478. * @suppress {unusedLocalVariables} f is only used for nested messages
  3479. */
  3480. proto.app.v1.ControlPointSimple.serializeBinaryToWriter = function(message, writer) {
  3481. var f = undefined;
  3482. f = message.getId();
  3483. if (f !== 0) {
  3484. writer.writeInt64(
  3485. 1,
  3486. f
  3487. );
  3488. }
  3489. f = message.getNfcIdListList();
  3490. if (f.length > 0) {
  3491. writer.writeRepeatedString(
  3492. 2,
  3493. f
  3494. );
  3495. }
  3496. f = message.getSn();
  3497. if (f.length > 0) {
  3498. writer.writeString(
  3499. 3,
  3500. f
  3501. );
  3502. }
  3503. };
  3504. /**
  3505. * optional int64 id = 1;
  3506. * @return {number}
  3507. */
  3508. proto.app.v1.ControlPointSimple.prototype.getId = function() {
  3509. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3510. };
  3511. /**
  3512. * @param {number} value
  3513. * @return {!proto.app.v1.ControlPointSimple} returns this
  3514. */
  3515. proto.app.v1.ControlPointSimple.prototype.setId = function(value) {
  3516. return jspb.Message.setProto3IntField(this, 1, value);
  3517. };
  3518. /**
  3519. * repeated string nfc_id_list = 2;
  3520. * @return {!Array<string>}
  3521. */
  3522. proto.app.v1.ControlPointSimple.prototype.getNfcIdListList = function() {
  3523. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  3524. };
  3525. /**
  3526. * @param {!Array<string>} value
  3527. * @return {!proto.app.v1.ControlPointSimple} returns this
  3528. */
  3529. proto.app.v1.ControlPointSimple.prototype.setNfcIdListList = function(value) {
  3530. return jspb.Message.setField(this, 2, value || []);
  3531. };
  3532. /**
  3533. * @param {string} value
  3534. * @param {number=} opt_index
  3535. * @return {!proto.app.v1.ControlPointSimple} returns this
  3536. */
  3537. proto.app.v1.ControlPointSimple.prototype.addNfcIdList = function(value, opt_index) {
  3538. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  3539. };
  3540. /**
  3541. * Clears the list making it empty but non-null.
  3542. * @return {!proto.app.v1.ControlPointSimple} returns this
  3543. */
  3544. proto.app.v1.ControlPointSimple.prototype.clearNfcIdListList = function() {
  3545. return this.setNfcIdListList([]);
  3546. };
  3547. /**
  3548. * optional string sn = 3;
  3549. * @return {string}
  3550. */
  3551. proto.app.v1.ControlPointSimple.prototype.getSn = function() {
  3552. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  3553. };
  3554. /**
  3555. * @param {string} value
  3556. * @return {!proto.app.v1.ControlPointSimple} returns this
  3557. */
  3558. proto.app.v1.ControlPointSimple.prototype.setSn = function(value) {
  3559. return jspb.Message.setProto3StringField(this, 3, value);
  3560. };
  3561. /**
  3562. * List of repeated fields within this message type.
  3563. * @private {!Array<number>}
  3564. * @const
  3565. */
  3566. proto.app.v1.GameData.repeatedFields_ = [5,11];
  3567. if (jspb.Message.GENERATE_TO_OBJECT) {
  3568. /**
  3569. * Creates an object representation of this proto.
  3570. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3571. * Optional fields that are not set will be set to undefined.
  3572. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3573. * For the list of reserved names please see:
  3574. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3575. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3576. * JSPB instance for transitional soy proto support:
  3577. * http://goto/soy-param-migration
  3578. * @return {!Object}
  3579. */
  3580. proto.app.v1.GameData.prototype.toObject = function(opt_includeInstance) {
  3581. return proto.app.v1.GameData.toObject(opt_includeInstance, this);
  3582. };
  3583. /**
  3584. * Static version of the {@see toObject} method.
  3585. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3586. * the JSPB instance for transitional soy proto support:
  3587. * http://goto/soy-param-migration
  3588. * @param {!proto.app.v1.GameData} msg The msg instance to transform.
  3589. * @return {!Object}
  3590. * @suppress {unusedLocalVariables} f is only used for nested messages
  3591. */
  3592. proto.app.v1.GameData.toObject = function(includeInstance, msg) {
  3593. var f, obj = {
  3594. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3595. mapImage: (f = msg.getMapImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  3596. mapWidthCm: jspb.Message.getFieldWithDefault(msg, 3, 0),
  3597. mapHeightCm: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3598. controlPointSortedListList: jspb.Message.toObjectList(msg.getControlPointSortedListList(),
  3599. proto.app.v1.ControlPoint.toObject, includeInstance),
  3600. maxDuration: (f = msg.getMaxDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  3601. maxForcedEndDuration: (f = msg.getMaxForcedEndDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  3602. mapDirectionOffsetAngle: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
  3603. mapLeftBottomPosition: (f = msg.getMapLeftBottomPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  3604. gameStart: (f = msg.getGameStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  3605. controlPointAllList: jspb.Message.toObjectList(msg.getControlPointAllList(),
  3606. proto.app.v1.ControlPointSimple.toObject, includeInstance),
  3607. legendImage: (f = msg.getLegendImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  3608. };
  3609. if (includeInstance) {
  3610. obj.$jspbMessageInstance = msg;
  3611. }
  3612. return obj;
  3613. };
  3614. }
  3615. /**
  3616. * Deserializes binary data (in protobuf wire format).
  3617. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3618. * @return {!proto.app.v1.GameData}
  3619. */
  3620. proto.app.v1.GameData.deserializeBinary = function(bytes) {
  3621. var reader = new jspb.BinaryReader(bytes);
  3622. var msg = new proto.app.v1.GameData;
  3623. return proto.app.v1.GameData.deserializeBinaryFromReader(msg, reader);
  3624. };
  3625. /**
  3626. * Deserializes binary data (in protobuf wire format) from the
  3627. * given reader into the given message object.
  3628. * @param {!proto.app.v1.GameData} msg The message object to deserialize into.
  3629. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3630. * @return {!proto.app.v1.GameData}
  3631. */
  3632. proto.app.v1.GameData.deserializeBinaryFromReader = function(msg, reader) {
  3633. while (reader.nextField()) {
  3634. if (reader.isEndGroup()) {
  3635. break;
  3636. }
  3637. var field = reader.getFieldNumber();
  3638. switch (field) {
  3639. case 1:
  3640. var value = /** @type {number} */ (reader.readInt64());
  3641. msg.setGameId(value);
  3642. break;
  3643. case 2:
  3644. var value = new proto.app.v1.NetImage;
  3645. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  3646. msg.setMapImage(value);
  3647. break;
  3648. case 3:
  3649. var value = /** @type {number} */ (reader.readInt64());
  3650. msg.setMapWidthCm(value);
  3651. break;
  3652. case 4:
  3653. var value = /** @type {number} */ (reader.readInt64());
  3654. msg.setMapHeightCm(value);
  3655. break;
  3656. case 5:
  3657. var value = new proto.app.v1.ControlPoint;
  3658. reader.readMessage(value,proto.app.v1.ControlPoint.deserializeBinaryFromReader);
  3659. msg.addControlPointSortedList(value);
  3660. break;
  3661. case 6:
  3662. var value = new google_protobuf_duration_pb.Duration;
  3663. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3664. msg.setMaxDuration(value);
  3665. break;
  3666. case 7:
  3667. var value = new google_protobuf_duration_pb.Duration;
  3668. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3669. msg.setMaxForcedEndDuration(value);
  3670. break;
  3671. case 8:
  3672. var value = /** @type {number} */ (reader.readDouble());
  3673. msg.setMapDirectionOffsetAngle(value);
  3674. break;
  3675. case 9:
  3676. var value = new proto.app.v1.Position;
  3677. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  3678. msg.setMapLeftBottomPosition(value);
  3679. break;
  3680. case 10:
  3681. var value = new google_protobuf_timestamp_pb.Timestamp;
  3682. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  3683. msg.setGameStart(value);
  3684. break;
  3685. case 11:
  3686. var value = new proto.app.v1.ControlPointSimple;
  3687. reader.readMessage(value,proto.app.v1.ControlPointSimple.deserializeBinaryFromReader);
  3688. msg.addControlPointAll(value);
  3689. break;
  3690. case 12:
  3691. var value = new proto.app.v1.NetImage;
  3692. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  3693. msg.setLegendImage(value);
  3694. break;
  3695. default:
  3696. reader.skipField();
  3697. break;
  3698. }
  3699. }
  3700. return msg;
  3701. };
  3702. /**
  3703. * Serializes the message to binary data (in protobuf wire format).
  3704. * @return {!Uint8Array}
  3705. */
  3706. proto.app.v1.GameData.prototype.serializeBinary = function() {
  3707. var writer = new jspb.BinaryWriter();
  3708. proto.app.v1.GameData.serializeBinaryToWriter(this, writer);
  3709. return writer.getResultBuffer();
  3710. };
  3711. /**
  3712. * Serializes the given message to binary data (in protobuf wire
  3713. * format), writing to the given BinaryWriter.
  3714. * @param {!proto.app.v1.GameData} message
  3715. * @param {!jspb.BinaryWriter} writer
  3716. * @suppress {unusedLocalVariables} f is only used for nested messages
  3717. */
  3718. proto.app.v1.GameData.serializeBinaryToWriter = function(message, writer) {
  3719. var f = undefined;
  3720. f = message.getGameId();
  3721. if (f !== 0) {
  3722. writer.writeInt64(
  3723. 1,
  3724. f
  3725. );
  3726. }
  3727. f = message.getMapImage();
  3728. if (f != null) {
  3729. writer.writeMessage(
  3730. 2,
  3731. f,
  3732. proto.app.v1.NetImage.serializeBinaryToWriter
  3733. );
  3734. }
  3735. f = message.getMapWidthCm();
  3736. if (f !== 0) {
  3737. writer.writeInt64(
  3738. 3,
  3739. f
  3740. );
  3741. }
  3742. f = message.getMapHeightCm();
  3743. if (f !== 0) {
  3744. writer.writeInt64(
  3745. 4,
  3746. f
  3747. );
  3748. }
  3749. f = message.getControlPointSortedListList();
  3750. if (f.length > 0) {
  3751. writer.writeRepeatedMessage(
  3752. 5,
  3753. f,
  3754. proto.app.v1.ControlPoint.serializeBinaryToWriter
  3755. );
  3756. }
  3757. f = message.getMaxDuration();
  3758. if (f != null) {
  3759. writer.writeMessage(
  3760. 6,
  3761. f,
  3762. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3763. );
  3764. }
  3765. f = message.getMaxForcedEndDuration();
  3766. if (f != null) {
  3767. writer.writeMessage(
  3768. 7,
  3769. f,
  3770. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3771. );
  3772. }
  3773. f = message.getMapDirectionOffsetAngle();
  3774. if (f !== 0.0) {
  3775. writer.writeDouble(
  3776. 8,
  3777. f
  3778. );
  3779. }
  3780. f = message.getMapLeftBottomPosition();
  3781. if (f != null) {
  3782. writer.writeMessage(
  3783. 9,
  3784. f,
  3785. proto.app.v1.Position.serializeBinaryToWriter
  3786. );
  3787. }
  3788. f = message.getGameStart();
  3789. if (f != null) {
  3790. writer.writeMessage(
  3791. 10,
  3792. f,
  3793. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  3794. );
  3795. }
  3796. f = message.getControlPointAllList();
  3797. if (f.length > 0) {
  3798. writer.writeRepeatedMessage(
  3799. 11,
  3800. f,
  3801. proto.app.v1.ControlPointSimple.serializeBinaryToWriter
  3802. );
  3803. }
  3804. f = message.getLegendImage();
  3805. if (f != null) {
  3806. writer.writeMessage(
  3807. 12,
  3808. f,
  3809. proto.app.v1.NetImage.serializeBinaryToWriter
  3810. );
  3811. }
  3812. };
  3813. /**
  3814. * optional int64 game_id = 1;
  3815. * @return {number}
  3816. */
  3817. proto.app.v1.GameData.prototype.getGameId = function() {
  3818. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3819. };
  3820. /**
  3821. * @param {number} value
  3822. * @return {!proto.app.v1.GameData} returns this
  3823. */
  3824. proto.app.v1.GameData.prototype.setGameId = function(value) {
  3825. return jspb.Message.setProto3IntField(this, 1, value);
  3826. };
  3827. /**
  3828. * optional NetImage map_image = 2;
  3829. * @return {?proto.app.v1.NetImage}
  3830. */
  3831. proto.app.v1.GameData.prototype.getMapImage = function() {
  3832. return /** @type{?proto.app.v1.NetImage} */ (
  3833. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 2));
  3834. };
  3835. /**
  3836. * @param {?proto.app.v1.NetImage|undefined} value
  3837. * @return {!proto.app.v1.GameData} returns this
  3838. */
  3839. proto.app.v1.GameData.prototype.setMapImage = function(value) {
  3840. return jspb.Message.setWrapperField(this, 2, value);
  3841. };
  3842. /**
  3843. * Clears the message field making it undefined.
  3844. * @return {!proto.app.v1.GameData} returns this
  3845. */
  3846. proto.app.v1.GameData.prototype.clearMapImage = function() {
  3847. return this.setMapImage(undefined);
  3848. };
  3849. /**
  3850. * Returns whether this field is set.
  3851. * @return {boolean}
  3852. */
  3853. proto.app.v1.GameData.prototype.hasMapImage = function() {
  3854. return jspb.Message.getField(this, 2) != null;
  3855. };
  3856. /**
  3857. * optional int64 map_width_cm = 3;
  3858. * @return {number}
  3859. */
  3860. proto.app.v1.GameData.prototype.getMapWidthCm = function() {
  3861. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  3862. };
  3863. /**
  3864. * @param {number} value
  3865. * @return {!proto.app.v1.GameData} returns this
  3866. */
  3867. proto.app.v1.GameData.prototype.setMapWidthCm = function(value) {
  3868. return jspb.Message.setProto3IntField(this, 3, value);
  3869. };
  3870. /**
  3871. * optional int64 map_height_cm = 4;
  3872. * @return {number}
  3873. */
  3874. proto.app.v1.GameData.prototype.getMapHeightCm = function() {
  3875. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3876. };
  3877. /**
  3878. * @param {number} value
  3879. * @return {!proto.app.v1.GameData} returns this
  3880. */
  3881. proto.app.v1.GameData.prototype.setMapHeightCm = function(value) {
  3882. return jspb.Message.setProto3IntField(this, 4, value);
  3883. };
  3884. /**
  3885. * repeated ControlPoint control_point_sorted_list = 5;
  3886. * @return {!Array<!proto.app.v1.ControlPoint>}
  3887. */
  3888. proto.app.v1.GameData.prototype.getControlPointSortedListList = function() {
  3889. return /** @type{!Array<!proto.app.v1.ControlPoint>} */ (
  3890. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlPoint, 5));
  3891. };
  3892. /**
  3893. * @param {!Array<!proto.app.v1.ControlPoint>} value
  3894. * @return {!proto.app.v1.GameData} returns this
  3895. */
  3896. proto.app.v1.GameData.prototype.setControlPointSortedListList = function(value) {
  3897. return jspb.Message.setRepeatedWrapperField(this, 5, value);
  3898. };
  3899. /**
  3900. * @param {!proto.app.v1.ControlPoint=} opt_value
  3901. * @param {number=} opt_index
  3902. * @return {!proto.app.v1.ControlPoint}
  3903. */
  3904. proto.app.v1.GameData.prototype.addControlPointSortedList = function(opt_value, opt_index) {
  3905. return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.app.v1.ControlPoint, opt_index);
  3906. };
  3907. /**
  3908. * Clears the list making it empty but non-null.
  3909. * @return {!proto.app.v1.GameData} returns this
  3910. */
  3911. proto.app.v1.GameData.prototype.clearControlPointSortedListList = function() {
  3912. return this.setControlPointSortedListList([]);
  3913. };
  3914. /**
  3915. * optional google.protobuf.Duration max_duration = 6;
  3916. * @return {?proto.google.protobuf.Duration}
  3917. */
  3918. proto.app.v1.GameData.prototype.getMaxDuration = function() {
  3919. return /** @type{?proto.google.protobuf.Duration} */ (
  3920. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6));
  3921. };
  3922. /**
  3923. * @param {?proto.google.protobuf.Duration|undefined} value
  3924. * @return {!proto.app.v1.GameData} returns this
  3925. */
  3926. proto.app.v1.GameData.prototype.setMaxDuration = function(value) {
  3927. return jspb.Message.setWrapperField(this, 6, value);
  3928. };
  3929. /**
  3930. * Clears the message field making it undefined.
  3931. * @return {!proto.app.v1.GameData} returns this
  3932. */
  3933. proto.app.v1.GameData.prototype.clearMaxDuration = function() {
  3934. return this.setMaxDuration(undefined);
  3935. };
  3936. /**
  3937. * Returns whether this field is set.
  3938. * @return {boolean}
  3939. */
  3940. proto.app.v1.GameData.prototype.hasMaxDuration = function() {
  3941. return jspb.Message.getField(this, 6) != null;
  3942. };
  3943. /**
  3944. * optional google.protobuf.Duration max_forced_end_duration = 7;
  3945. * @return {?proto.google.protobuf.Duration}
  3946. */
  3947. proto.app.v1.GameData.prototype.getMaxForcedEndDuration = function() {
  3948. return /** @type{?proto.google.protobuf.Duration} */ (
  3949. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 7));
  3950. };
  3951. /**
  3952. * @param {?proto.google.protobuf.Duration|undefined} value
  3953. * @return {!proto.app.v1.GameData} returns this
  3954. */
  3955. proto.app.v1.GameData.prototype.setMaxForcedEndDuration = function(value) {
  3956. return jspb.Message.setWrapperField(this, 7, value);
  3957. };
  3958. /**
  3959. * Clears the message field making it undefined.
  3960. * @return {!proto.app.v1.GameData} returns this
  3961. */
  3962. proto.app.v1.GameData.prototype.clearMaxForcedEndDuration = function() {
  3963. return this.setMaxForcedEndDuration(undefined);
  3964. };
  3965. /**
  3966. * Returns whether this field is set.
  3967. * @return {boolean}
  3968. */
  3969. proto.app.v1.GameData.prototype.hasMaxForcedEndDuration = function() {
  3970. return jspb.Message.getField(this, 7) != null;
  3971. };
  3972. /**
  3973. * optional double map_direction_offset_angle = 8;
  3974. * @return {number}
  3975. */
  3976. proto.app.v1.GameData.prototype.getMapDirectionOffsetAngle = function() {
  3977. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
  3978. };
  3979. /**
  3980. * @param {number} value
  3981. * @return {!proto.app.v1.GameData} returns this
  3982. */
  3983. proto.app.v1.GameData.prototype.setMapDirectionOffsetAngle = function(value) {
  3984. return jspb.Message.setProto3FloatField(this, 8, value);
  3985. };
  3986. /**
  3987. * optional Position map_left_bottom_position = 9;
  3988. * @return {?proto.app.v1.Position}
  3989. */
  3990. proto.app.v1.GameData.prototype.getMapLeftBottomPosition = function() {
  3991. return /** @type{?proto.app.v1.Position} */ (
  3992. jspb.Message.getWrapperField(this, proto.app.v1.Position, 9));
  3993. };
  3994. /**
  3995. * @param {?proto.app.v1.Position|undefined} value
  3996. * @return {!proto.app.v1.GameData} returns this
  3997. */
  3998. proto.app.v1.GameData.prototype.setMapLeftBottomPosition = function(value) {
  3999. return jspb.Message.setWrapperField(this, 9, value);
  4000. };
  4001. /**
  4002. * Clears the message field making it undefined.
  4003. * @return {!proto.app.v1.GameData} returns this
  4004. */
  4005. proto.app.v1.GameData.prototype.clearMapLeftBottomPosition = function() {
  4006. return this.setMapLeftBottomPosition(undefined);
  4007. };
  4008. /**
  4009. * Returns whether this field is set.
  4010. * @return {boolean}
  4011. */
  4012. proto.app.v1.GameData.prototype.hasMapLeftBottomPosition = function() {
  4013. return jspb.Message.getField(this, 9) != null;
  4014. };
  4015. /**
  4016. * optional google.protobuf.Timestamp game_start = 10;
  4017. * @return {?proto.google.protobuf.Timestamp}
  4018. */
  4019. proto.app.v1.GameData.prototype.getGameStart = function() {
  4020. return /** @type{?proto.google.protobuf.Timestamp} */ (
  4021. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
  4022. };
  4023. /**
  4024. * @param {?proto.google.protobuf.Timestamp|undefined} value
  4025. * @return {!proto.app.v1.GameData} returns this
  4026. */
  4027. proto.app.v1.GameData.prototype.setGameStart = function(value) {
  4028. return jspb.Message.setWrapperField(this, 10, value);
  4029. };
  4030. /**
  4031. * Clears the message field making it undefined.
  4032. * @return {!proto.app.v1.GameData} returns this
  4033. */
  4034. proto.app.v1.GameData.prototype.clearGameStart = function() {
  4035. return this.setGameStart(undefined);
  4036. };
  4037. /**
  4038. * Returns whether this field is set.
  4039. * @return {boolean}
  4040. */
  4041. proto.app.v1.GameData.prototype.hasGameStart = function() {
  4042. return jspb.Message.getField(this, 10) != null;
  4043. };
  4044. /**
  4045. * repeated ControlPointSimple control_point_all = 11;
  4046. * @return {!Array<!proto.app.v1.ControlPointSimple>}
  4047. */
  4048. proto.app.v1.GameData.prototype.getControlPointAllList = function() {
  4049. return /** @type{!Array<!proto.app.v1.ControlPointSimple>} */ (
  4050. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlPointSimple, 11));
  4051. };
  4052. /**
  4053. * @param {!Array<!proto.app.v1.ControlPointSimple>} value
  4054. * @return {!proto.app.v1.GameData} returns this
  4055. */
  4056. proto.app.v1.GameData.prototype.setControlPointAllList = function(value) {
  4057. return jspb.Message.setRepeatedWrapperField(this, 11, value);
  4058. };
  4059. /**
  4060. * @param {!proto.app.v1.ControlPointSimple=} opt_value
  4061. * @param {number=} opt_index
  4062. * @return {!proto.app.v1.ControlPointSimple}
  4063. */
  4064. proto.app.v1.GameData.prototype.addControlPointAll = function(opt_value, opt_index) {
  4065. return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.app.v1.ControlPointSimple, opt_index);
  4066. };
  4067. /**
  4068. * Clears the list making it empty but non-null.
  4069. * @return {!proto.app.v1.GameData} returns this
  4070. */
  4071. proto.app.v1.GameData.prototype.clearControlPointAllList = function() {
  4072. return this.setControlPointAllList([]);
  4073. };
  4074. /**
  4075. * optional NetImage legend_image = 12;
  4076. * @return {?proto.app.v1.NetImage}
  4077. */
  4078. proto.app.v1.GameData.prototype.getLegendImage = function() {
  4079. return /** @type{?proto.app.v1.NetImage} */ (
  4080. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 12));
  4081. };
  4082. /**
  4083. * @param {?proto.app.v1.NetImage|undefined} value
  4084. * @return {!proto.app.v1.GameData} returns this
  4085. */
  4086. proto.app.v1.GameData.prototype.setLegendImage = function(value) {
  4087. return jspb.Message.setWrapperField(this, 12, value);
  4088. };
  4089. /**
  4090. * Clears the message field making it undefined.
  4091. * @return {!proto.app.v1.GameData} returns this
  4092. */
  4093. proto.app.v1.GameData.prototype.clearLegendImage = function() {
  4094. return this.setLegendImage(undefined);
  4095. };
  4096. /**
  4097. * Returns whether this field is set.
  4098. * @return {boolean}
  4099. */
  4100. proto.app.v1.GameData.prototype.hasLegendImage = function() {
  4101. return jspb.Message.getField(this, 12) != null;
  4102. };
  4103. if (jspb.Message.GENERATE_TO_OBJECT) {
  4104. /**
  4105. * Creates an object representation of this proto.
  4106. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4107. * Optional fields that are not set will be set to undefined.
  4108. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4109. * For the list of reserved names please see:
  4110. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4111. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4112. * JSPB instance for transitional soy proto support:
  4113. * http://goto/soy-param-migration
  4114. * @return {!Object}
  4115. */
  4116. proto.app.v1.GameSaveControlPoint.prototype.toObject = function(opt_includeInstance) {
  4117. return proto.app.v1.GameSaveControlPoint.toObject(opt_includeInstance, this);
  4118. };
  4119. /**
  4120. * Static version of the {@see toObject} method.
  4121. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4122. * the JSPB instance for transitional soy proto support:
  4123. * http://goto/soy-param-migration
  4124. * @param {!proto.app.v1.GameSaveControlPoint} msg The msg instance to transform.
  4125. * @return {!Object}
  4126. * @suppress {unusedLocalVariables} f is only used for nested messages
  4127. */
  4128. proto.app.v1.GameSaveControlPoint.toObject = function(includeInstance, msg) {
  4129. var f, obj = {
  4130. controlPointId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4131. isCheckSuccess: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  4132. checkAfterStart: (f = msg.getCheckAfterStart()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
  4133. };
  4134. if (includeInstance) {
  4135. obj.$jspbMessageInstance = msg;
  4136. }
  4137. return obj;
  4138. };
  4139. }
  4140. /**
  4141. * Deserializes binary data (in protobuf wire format).
  4142. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4143. * @return {!proto.app.v1.GameSaveControlPoint}
  4144. */
  4145. proto.app.v1.GameSaveControlPoint.deserializeBinary = function(bytes) {
  4146. var reader = new jspb.BinaryReader(bytes);
  4147. var msg = new proto.app.v1.GameSaveControlPoint;
  4148. return proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader(msg, reader);
  4149. };
  4150. /**
  4151. * Deserializes binary data (in protobuf wire format) from the
  4152. * given reader into the given message object.
  4153. * @param {!proto.app.v1.GameSaveControlPoint} msg The message object to deserialize into.
  4154. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4155. * @return {!proto.app.v1.GameSaveControlPoint}
  4156. */
  4157. proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  4158. while (reader.nextField()) {
  4159. if (reader.isEndGroup()) {
  4160. break;
  4161. }
  4162. var field = reader.getFieldNumber();
  4163. switch (field) {
  4164. case 1:
  4165. var value = /** @type {number} */ (reader.readInt64());
  4166. msg.setControlPointId(value);
  4167. break;
  4168. case 2:
  4169. var value = /** @type {boolean} */ (reader.readBool());
  4170. msg.setIsCheckSuccess(value);
  4171. break;
  4172. case 3:
  4173. var value = new google_protobuf_duration_pb.Duration;
  4174. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  4175. msg.setCheckAfterStart(value);
  4176. break;
  4177. default:
  4178. reader.skipField();
  4179. break;
  4180. }
  4181. }
  4182. return msg;
  4183. };
  4184. /**
  4185. * Serializes the message to binary data (in protobuf wire format).
  4186. * @return {!Uint8Array}
  4187. */
  4188. proto.app.v1.GameSaveControlPoint.prototype.serializeBinary = function() {
  4189. var writer = new jspb.BinaryWriter();
  4190. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter(this, writer);
  4191. return writer.getResultBuffer();
  4192. };
  4193. /**
  4194. * Serializes the given message to binary data (in protobuf wire
  4195. * format), writing to the given BinaryWriter.
  4196. * @param {!proto.app.v1.GameSaveControlPoint} message
  4197. * @param {!jspb.BinaryWriter} writer
  4198. * @suppress {unusedLocalVariables} f is only used for nested messages
  4199. */
  4200. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter = function(message, writer) {
  4201. var f = undefined;
  4202. f = message.getControlPointId();
  4203. if (f !== 0) {
  4204. writer.writeInt64(
  4205. 1,
  4206. f
  4207. );
  4208. }
  4209. f = message.getIsCheckSuccess();
  4210. if (f) {
  4211. writer.writeBool(
  4212. 2,
  4213. f
  4214. );
  4215. }
  4216. f = message.getCheckAfterStart();
  4217. if (f != null) {
  4218. writer.writeMessage(
  4219. 3,
  4220. f,
  4221. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  4222. );
  4223. }
  4224. };
  4225. /**
  4226. * optional int64 control_point_id = 1;
  4227. * @return {number}
  4228. */
  4229. proto.app.v1.GameSaveControlPoint.prototype.getControlPointId = function() {
  4230. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4231. };
  4232. /**
  4233. * @param {number} value
  4234. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4235. */
  4236. proto.app.v1.GameSaveControlPoint.prototype.setControlPointId = function(value) {
  4237. return jspb.Message.setProto3IntField(this, 1, value);
  4238. };
  4239. /**
  4240. * optional bool is_check_success = 2;
  4241. * @return {boolean}
  4242. */
  4243. proto.app.v1.GameSaveControlPoint.prototype.getIsCheckSuccess = function() {
  4244. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  4245. };
  4246. /**
  4247. * @param {boolean} value
  4248. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4249. */
  4250. proto.app.v1.GameSaveControlPoint.prototype.setIsCheckSuccess = function(value) {
  4251. return jspb.Message.setProto3BooleanField(this, 2, value);
  4252. };
  4253. /**
  4254. * optional google.protobuf.Duration check_after_start = 3;
  4255. * @return {?proto.google.protobuf.Duration}
  4256. */
  4257. proto.app.v1.GameSaveControlPoint.prototype.getCheckAfterStart = function() {
  4258. return /** @type{?proto.google.protobuf.Duration} */ (
  4259. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
  4260. };
  4261. /**
  4262. * @param {?proto.google.protobuf.Duration|undefined} value
  4263. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4264. */
  4265. proto.app.v1.GameSaveControlPoint.prototype.setCheckAfterStart = function(value) {
  4266. return jspb.Message.setWrapperField(this, 3, value);
  4267. };
  4268. /**
  4269. * Clears the message field making it undefined.
  4270. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4271. */
  4272. proto.app.v1.GameSaveControlPoint.prototype.clearCheckAfterStart = function() {
  4273. return this.setCheckAfterStart(undefined);
  4274. };
  4275. /**
  4276. * Returns whether this field is set.
  4277. * @return {boolean}
  4278. */
  4279. proto.app.v1.GameSaveControlPoint.prototype.hasCheckAfterStart = function() {
  4280. return jspb.Message.getField(this, 3) != null;
  4281. };
  4282. /**
  4283. * List of repeated fields within this message type.
  4284. * @private {!Array<number>}
  4285. * @const
  4286. */
  4287. proto.app.v1.GameSave.repeatedFields_ = [3];
  4288. if (jspb.Message.GENERATE_TO_OBJECT) {
  4289. /**
  4290. * Creates an object representation of this proto.
  4291. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4292. * Optional fields that are not set will be set to undefined.
  4293. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4294. * For the list of reserved names please see:
  4295. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4296. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4297. * JSPB instance for transitional soy proto support:
  4298. * http://goto/soy-param-migration
  4299. * @return {!Object}
  4300. */
  4301. proto.app.v1.GameSave.prototype.toObject = function(opt_includeInstance) {
  4302. return proto.app.v1.GameSave.toObject(opt_includeInstance, this);
  4303. };
  4304. /**
  4305. * Static version of the {@see toObject} method.
  4306. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4307. * the JSPB instance for transitional soy proto support:
  4308. * http://goto/soy-param-migration
  4309. * @param {!proto.app.v1.GameSave} msg The msg instance to transform.
  4310. * @return {!Object}
  4311. * @suppress {unusedLocalVariables} f is only used for nested messages
  4312. */
  4313. proto.app.v1.GameSave.toObject = function(includeInstance, msg) {
  4314. var f, obj = {
  4315. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4316. startAt: (f = msg.getStartAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  4317. checkedSortedListList: jspb.Message.toObjectList(msg.getCheckedSortedListList(),
  4318. proto.app.v1.GameSaveControlPoint.toObject, includeInstance),
  4319. duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  4320. stopAt: (f = msg.getStopAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
  4321. };
  4322. if (includeInstance) {
  4323. obj.$jspbMessageInstance = msg;
  4324. }
  4325. return obj;
  4326. };
  4327. }
  4328. /**
  4329. * Deserializes binary data (in protobuf wire format).
  4330. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4331. * @return {!proto.app.v1.GameSave}
  4332. */
  4333. proto.app.v1.GameSave.deserializeBinary = function(bytes) {
  4334. var reader = new jspb.BinaryReader(bytes);
  4335. var msg = new proto.app.v1.GameSave;
  4336. return proto.app.v1.GameSave.deserializeBinaryFromReader(msg, reader);
  4337. };
  4338. /**
  4339. * Deserializes binary data (in protobuf wire format) from the
  4340. * given reader into the given message object.
  4341. * @param {!proto.app.v1.GameSave} msg The message object to deserialize into.
  4342. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4343. * @return {!proto.app.v1.GameSave}
  4344. */
  4345. proto.app.v1.GameSave.deserializeBinaryFromReader = function(msg, reader) {
  4346. while (reader.nextField()) {
  4347. if (reader.isEndGroup()) {
  4348. break;
  4349. }
  4350. var field = reader.getFieldNumber();
  4351. switch (field) {
  4352. case 1:
  4353. var value = /** @type {number} */ (reader.readInt64());
  4354. msg.setGameId(value);
  4355. break;
  4356. case 2:
  4357. var value = new google_protobuf_timestamp_pb.Timestamp;
  4358. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  4359. msg.setStartAt(value);
  4360. break;
  4361. case 3:
  4362. var value = new proto.app.v1.GameSaveControlPoint;
  4363. reader.readMessage(value,proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader);
  4364. msg.addCheckedSortedList(value);
  4365. break;
  4366. case 4:
  4367. var value = new google_protobuf_duration_pb.Duration;
  4368. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  4369. msg.setDuration(value);
  4370. break;
  4371. case 5:
  4372. var value = new google_protobuf_timestamp_pb.Timestamp;
  4373. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  4374. msg.setStopAt(value);
  4375. break;
  4376. default:
  4377. reader.skipField();
  4378. break;
  4379. }
  4380. }
  4381. return msg;
  4382. };
  4383. /**
  4384. * Serializes the message to binary data (in protobuf wire format).
  4385. * @return {!Uint8Array}
  4386. */
  4387. proto.app.v1.GameSave.prototype.serializeBinary = function() {
  4388. var writer = new jspb.BinaryWriter();
  4389. proto.app.v1.GameSave.serializeBinaryToWriter(this, writer);
  4390. return writer.getResultBuffer();
  4391. };
  4392. /**
  4393. * Serializes the given message to binary data (in protobuf wire
  4394. * format), writing to the given BinaryWriter.
  4395. * @param {!proto.app.v1.GameSave} message
  4396. * @param {!jspb.BinaryWriter} writer
  4397. * @suppress {unusedLocalVariables} f is only used for nested messages
  4398. */
  4399. proto.app.v1.GameSave.serializeBinaryToWriter = function(message, writer) {
  4400. var f = undefined;
  4401. f = message.getGameId();
  4402. if (f !== 0) {
  4403. writer.writeInt64(
  4404. 1,
  4405. f
  4406. );
  4407. }
  4408. f = message.getStartAt();
  4409. if (f != null) {
  4410. writer.writeMessage(
  4411. 2,
  4412. f,
  4413. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  4414. );
  4415. }
  4416. f = message.getCheckedSortedListList();
  4417. if (f.length > 0) {
  4418. writer.writeRepeatedMessage(
  4419. 3,
  4420. f,
  4421. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter
  4422. );
  4423. }
  4424. f = message.getDuration();
  4425. if (f != null) {
  4426. writer.writeMessage(
  4427. 4,
  4428. f,
  4429. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  4430. );
  4431. }
  4432. f = message.getStopAt();
  4433. if (f != null) {
  4434. writer.writeMessage(
  4435. 5,
  4436. f,
  4437. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  4438. );
  4439. }
  4440. };
  4441. /**
  4442. * optional int64 game_id = 1;
  4443. * @return {number}
  4444. */
  4445. proto.app.v1.GameSave.prototype.getGameId = function() {
  4446. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4447. };
  4448. /**
  4449. * @param {number} value
  4450. * @return {!proto.app.v1.GameSave} returns this
  4451. */
  4452. proto.app.v1.GameSave.prototype.setGameId = function(value) {
  4453. return jspb.Message.setProto3IntField(this, 1, value);
  4454. };
  4455. /**
  4456. * optional google.protobuf.Timestamp start_at = 2;
  4457. * @return {?proto.google.protobuf.Timestamp}
  4458. */
  4459. proto.app.v1.GameSave.prototype.getStartAt = function() {
  4460. return /** @type{?proto.google.protobuf.Timestamp} */ (
  4461. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
  4462. };
  4463. /**
  4464. * @param {?proto.google.protobuf.Timestamp|undefined} value
  4465. * @return {!proto.app.v1.GameSave} returns this
  4466. */
  4467. proto.app.v1.GameSave.prototype.setStartAt = function(value) {
  4468. return jspb.Message.setWrapperField(this, 2, value);
  4469. };
  4470. /**
  4471. * Clears the message field making it undefined.
  4472. * @return {!proto.app.v1.GameSave} returns this
  4473. */
  4474. proto.app.v1.GameSave.prototype.clearStartAt = function() {
  4475. return this.setStartAt(undefined);
  4476. };
  4477. /**
  4478. * Returns whether this field is set.
  4479. * @return {boolean}
  4480. */
  4481. proto.app.v1.GameSave.prototype.hasStartAt = function() {
  4482. return jspb.Message.getField(this, 2) != null;
  4483. };
  4484. /**
  4485. * repeated GameSaveControlPoint checked_sorted_list = 3;
  4486. * @return {!Array<!proto.app.v1.GameSaveControlPoint>}
  4487. */
  4488. proto.app.v1.GameSave.prototype.getCheckedSortedListList = function() {
  4489. return /** @type{!Array<!proto.app.v1.GameSaveControlPoint>} */ (
  4490. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameSaveControlPoint, 3));
  4491. };
  4492. /**
  4493. * @param {!Array<!proto.app.v1.GameSaveControlPoint>} value
  4494. * @return {!proto.app.v1.GameSave} returns this
  4495. */
  4496. proto.app.v1.GameSave.prototype.setCheckedSortedListList = function(value) {
  4497. return jspb.Message.setRepeatedWrapperField(this, 3, value);
  4498. };
  4499. /**
  4500. * @param {!proto.app.v1.GameSaveControlPoint=} opt_value
  4501. * @param {number=} opt_index
  4502. * @return {!proto.app.v1.GameSaveControlPoint}
  4503. */
  4504. proto.app.v1.GameSave.prototype.addCheckedSortedList = function(opt_value, opt_index) {
  4505. return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.app.v1.GameSaveControlPoint, opt_index);
  4506. };
  4507. /**
  4508. * Clears the list making it empty but non-null.
  4509. * @return {!proto.app.v1.GameSave} returns this
  4510. */
  4511. proto.app.v1.GameSave.prototype.clearCheckedSortedListList = function() {
  4512. return this.setCheckedSortedListList([]);
  4513. };
  4514. /**
  4515. * optional google.protobuf.Duration duration = 4;
  4516. * @return {?proto.google.protobuf.Duration}
  4517. */
  4518. proto.app.v1.GameSave.prototype.getDuration = function() {
  4519. return /** @type{?proto.google.protobuf.Duration} */ (
  4520. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4));
  4521. };
  4522. /**
  4523. * @param {?proto.google.protobuf.Duration|undefined} value
  4524. * @return {!proto.app.v1.GameSave} returns this
  4525. */
  4526. proto.app.v1.GameSave.prototype.setDuration = function(value) {
  4527. return jspb.Message.setWrapperField(this, 4, value);
  4528. };
  4529. /**
  4530. * Clears the message field making it undefined.
  4531. * @return {!proto.app.v1.GameSave} returns this
  4532. */
  4533. proto.app.v1.GameSave.prototype.clearDuration = function() {
  4534. return this.setDuration(undefined);
  4535. };
  4536. /**
  4537. * Returns whether this field is set.
  4538. * @return {boolean}
  4539. */
  4540. proto.app.v1.GameSave.prototype.hasDuration = function() {
  4541. return jspb.Message.getField(this, 4) != null;
  4542. };
  4543. /**
  4544. * optional google.protobuf.Timestamp stop_at = 5;
  4545. * @return {?proto.google.protobuf.Timestamp}
  4546. */
  4547. proto.app.v1.GameSave.prototype.getStopAt = function() {
  4548. return /** @type{?proto.google.protobuf.Timestamp} */ (
  4549. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
  4550. };
  4551. /**
  4552. * @param {?proto.google.protobuf.Timestamp|undefined} value
  4553. * @return {!proto.app.v1.GameSave} returns this
  4554. */
  4555. proto.app.v1.GameSave.prototype.setStopAt = function(value) {
  4556. return jspb.Message.setWrapperField(this, 5, value);
  4557. };
  4558. /**
  4559. * Clears the message field making it undefined.
  4560. * @return {!proto.app.v1.GameSave} returns this
  4561. */
  4562. proto.app.v1.GameSave.prototype.clearStopAt = function() {
  4563. return this.setStopAt(undefined);
  4564. };
  4565. /**
  4566. * Returns whether this field is set.
  4567. * @return {boolean}
  4568. */
  4569. proto.app.v1.GameSave.prototype.hasStopAt = function() {
  4570. return jspb.Message.getField(this, 5) != null;
  4571. };
  4572. if (jspb.Message.GENERATE_TO_OBJECT) {
  4573. /**
  4574. * Creates an object representation of this proto.
  4575. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4576. * Optional fields that are not set will be set to undefined.
  4577. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4578. * For the list of reserved names please see:
  4579. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4580. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4581. * JSPB instance for transitional soy proto support:
  4582. * http://goto/soy-param-migration
  4583. * @return {!Object}
  4584. */
  4585. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.toObject = function(opt_includeInstance) {
  4586. return proto.app.v1.AuthSendCodeToPhoneRequest.toObject(opt_includeInstance, this);
  4587. };
  4588. /**
  4589. * Static version of the {@see toObject} method.
  4590. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4591. * the JSPB instance for transitional soy proto support:
  4592. * http://goto/soy-param-migration
  4593. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} msg The msg instance to transform.
  4594. * @return {!Object}
  4595. * @suppress {unusedLocalVariables} f is only used for nested messages
  4596. */
  4597. proto.app.v1.AuthSendCodeToPhoneRequest.toObject = function(includeInstance, msg) {
  4598. var f, obj = {
  4599. phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
  4600. usertype: jspb.Message.getFieldWithDefault(msg, 2, 0),
  4601. smstype: jspb.Message.getFieldWithDefault(msg, 3, 0)
  4602. };
  4603. if (includeInstance) {
  4604. obj.$jspbMessageInstance = msg;
  4605. }
  4606. return obj;
  4607. };
  4608. }
  4609. /**
  4610. * Deserializes binary data (in protobuf wire format).
  4611. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4612. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest}
  4613. */
  4614. proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinary = function(bytes) {
  4615. var reader = new jspb.BinaryReader(bytes);
  4616. var msg = new proto.app.v1.AuthSendCodeToPhoneRequest;
  4617. return proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinaryFromReader(msg, reader);
  4618. };
  4619. /**
  4620. * Deserializes binary data (in protobuf wire format) from the
  4621. * given reader into the given message object.
  4622. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} msg The message object to deserialize into.
  4623. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4624. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest}
  4625. */
  4626. proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinaryFromReader = function(msg, reader) {
  4627. while (reader.nextField()) {
  4628. if (reader.isEndGroup()) {
  4629. break;
  4630. }
  4631. var field = reader.getFieldNumber();
  4632. switch (field) {
  4633. case 1:
  4634. var value = /** @type {string} */ (reader.readString());
  4635. msg.setPhone(value);
  4636. break;
  4637. case 2:
  4638. var value = /** @type {!proto.app.v1.UserType} */ (reader.readEnum());
  4639. msg.setUsertype(value);
  4640. break;
  4641. case 3:
  4642. var value = /** @type {!proto.app.v1.SmsType} */ (reader.readEnum());
  4643. msg.setSmstype(value);
  4644. break;
  4645. default:
  4646. reader.skipField();
  4647. break;
  4648. }
  4649. }
  4650. return msg;
  4651. };
  4652. /**
  4653. * Serializes the message to binary data (in protobuf wire format).
  4654. * @return {!Uint8Array}
  4655. */
  4656. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.serializeBinary = function() {
  4657. var writer = new jspb.BinaryWriter();
  4658. proto.app.v1.AuthSendCodeToPhoneRequest.serializeBinaryToWriter(this, writer);
  4659. return writer.getResultBuffer();
  4660. };
  4661. /**
  4662. * Serializes the given message to binary data (in protobuf wire
  4663. * format), writing to the given BinaryWriter.
  4664. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} message
  4665. * @param {!jspb.BinaryWriter} writer
  4666. * @suppress {unusedLocalVariables} f is only used for nested messages
  4667. */
  4668. proto.app.v1.AuthSendCodeToPhoneRequest.serializeBinaryToWriter = function(message, writer) {
  4669. var f = undefined;
  4670. f = message.getPhone();
  4671. if (f.length > 0) {
  4672. writer.writeString(
  4673. 1,
  4674. f
  4675. );
  4676. }
  4677. f = message.getUsertype();
  4678. if (f !== 0.0) {
  4679. writer.writeEnum(
  4680. 2,
  4681. f
  4682. );
  4683. }
  4684. f = message.getSmstype();
  4685. if (f !== 0.0) {
  4686. writer.writeEnum(
  4687. 3,
  4688. f
  4689. );
  4690. }
  4691. };
  4692. /**
  4693. * optional string phone = 1;
  4694. * @return {string}
  4695. */
  4696. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getPhone = function() {
  4697. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  4698. };
  4699. /**
  4700. * @param {string} value
  4701. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4702. */
  4703. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setPhone = function(value) {
  4704. return jspb.Message.setProto3StringField(this, 1, value);
  4705. };
  4706. /**
  4707. * optional UserType userType = 2;
  4708. * @return {!proto.app.v1.UserType}
  4709. */
  4710. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getUsertype = function() {
  4711. return /** @type {!proto.app.v1.UserType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  4712. };
  4713. /**
  4714. * @param {!proto.app.v1.UserType} value
  4715. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4716. */
  4717. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setUsertype = function(value) {
  4718. return jspb.Message.setProto3EnumField(this, 2, value);
  4719. };
  4720. /**
  4721. * optional SmsType smsType = 3;
  4722. * @return {!proto.app.v1.SmsType}
  4723. */
  4724. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getSmstype = function() {
  4725. return /** @type {!proto.app.v1.SmsType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  4726. };
  4727. /**
  4728. * @param {!proto.app.v1.SmsType} value
  4729. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4730. */
  4731. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setSmstype = function(value) {
  4732. return jspb.Message.setProto3EnumField(this, 3, value);
  4733. };
  4734. if (jspb.Message.GENERATE_TO_OBJECT) {
  4735. /**
  4736. * Creates an object representation of this proto.
  4737. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4738. * Optional fields that are not set will be set to undefined.
  4739. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4740. * For the list of reserved names please see:
  4741. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4742. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4743. * JSPB instance for transitional soy proto support:
  4744. * http://goto/soy-param-migration
  4745. * @return {!Object}
  4746. */
  4747. proto.app.v1.PositionRequest.prototype.toObject = function(opt_includeInstance) {
  4748. return proto.app.v1.PositionRequest.toObject(opt_includeInstance, this);
  4749. };
  4750. /**
  4751. * Static version of the {@see toObject} method.
  4752. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4753. * the JSPB instance for transitional soy proto support:
  4754. * http://goto/soy-param-migration
  4755. * @param {!proto.app.v1.PositionRequest} msg The msg instance to transform.
  4756. * @return {!Object}
  4757. * @suppress {unusedLocalVariables} f is only used for nested messages
  4758. */
  4759. proto.app.v1.PositionRequest.toObject = function(includeInstance, msg) {
  4760. var f, obj = {
  4761. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f)
  4762. };
  4763. if (includeInstance) {
  4764. obj.$jspbMessageInstance = msg;
  4765. }
  4766. return obj;
  4767. };
  4768. }
  4769. /**
  4770. * Deserializes binary data (in protobuf wire format).
  4771. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4772. * @return {!proto.app.v1.PositionRequest}
  4773. */
  4774. proto.app.v1.PositionRequest.deserializeBinary = function(bytes) {
  4775. var reader = new jspb.BinaryReader(bytes);
  4776. var msg = new proto.app.v1.PositionRequest;
  4777. return proto.app.v1.PositionRequest.deserializeBinaryFromReader(msg, reader);
  4778. };
  4779. /**
  4780. * Deserializes binary data (in protobuf wire format) from the
  4781. * given reader into the given message object.
  4782. * @param {!proto.app.v1.PositionRequest} msg The message object to deserialize into.
  4783. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4784. * @return {!proto.app.v1.PositionRequest}
  4785. */
  4786. proto.app.v1.PositionRequest.deserializeBinaryFromReader = function(msg, reader) {
  4787. while (reader.nextField()) {
  4788. if (reader.isEndGroup()) {
  4789. break;
  4790. }
  4791. var field = reader.getFieldNumber();
  4792. switch (field) {
  4793. case 1:
  4794. var value = new proto.app.v1.Position;
  4795. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  4796. msg.setPosition(value);
  4797. break;
  4798. default:
  4799. reader.skipField();
  4800. break;
  4801. }
  4802. }
  4803. return msg;
  4804. };
  4805. /**
  4806. * Serializes the message to binary data (in protobuf wire format).
  4807. * @return {!Uint8Array}
  4808. */
  4809. proto.app.v1.PositionRequest.prototype.serializeBinary = function() {
  4810. var writer = new jspb.BinaryWriter();
  4811. proto.app.v1.PositionRequest.serializeBinaryToWriter(this, writer);
  4812. return writer.getResultBuffer();
  4813. };
  4814. /**
  4815. * Serializes the given message to binary data (in protobuf wire
  4816. * format), writing to the given BinaryWriter.
  4817. * @param {!proto.app.v1.PositionRequest} message
  4818. * @param {!jspb.BinaryWriter} writer
  4819. * @suppress {unusedLocalVariables} f is only used for nested messages
  4820. */
  4821. proto.app.v1.PositionRequest.serializeBinaryToWriter = function(message, writer) {
  4822. var f = undefined;
  4823. f = message.getPosition();
  4824. if (f != null) {
  4825. writer.writeMessage(
  4826. 1,
  4827. f,
  4828. proto.app.v1.Position.serializeBinaryToWriter
  4829. );
  4830. }
  4831. };
  4832. /**
  4833. * optional Position position = 1;
  4834. * @return {?proto.app.v1.Position}
  4835. */
  4836. proto.app.v1.PositionRequest.prototype.getPosition = function() {
  4837. return /** @type{?proto.app.v1.Position} */ (
  4838. jspb.Message.getWrapperField(this, proto.app.v1.Position, 1));
  4839. };
  4840. /**
  4841. * @param {?proto.app.v1.Position|undefined} value
  4842. * @return {!proto.app.v1.PositionRequest} returns this
  4843. */
  4844. proto.app.v1.PositionRequest.prototype.setPosition = function(value) {
  4845. return jspb.Message.setWrapperField(this, 1, value);
  4846. };
  4847. /**
  4848. * Clears the message field making it undefined.
  4849. * @return {!proto.app.v1.PositionRequest} returns this
  4850. */
  4851. proto.app.v1.PositionRequest.prototype.clearPosition = function() {
  4852. return this.setPosition(undefined);
  4853. };
  4854. /**
  4855. * Returns whether this field is set.
  4856. * @return {boolean}
  4857. */
  4858. proto.app.v1.PositionRequest.prototype.hasPosition = function() {
  4859. return jspb.Message.getField(this, 1) != null;
  4860. };
  4861. if (jspb.Message.GENERATE_TO_OBJECT) {
  4862. /**
  4863. * Creates an object representation of this proto.
  4864. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4865. * Optional fields that are not set will be set to undefined.
  4866. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4867. * For the list of reserved names please see:
  4868. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4869. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4870. * JSPB instance for transitional soy proto support:
  4871. * http://goto/soy-param-migration
  4872. * @return {!Object}
  4873. */
  4874. proto.app.v1.IdRequest.prototype.toObject = function(opt_includeInstance) {
  4875. return proto.app.v1.IdRequest.toObject(opt_includeInstance, this);
  4876. };
  4877. /**
  4878. * Static version of the {@see toObject} method.
  4879. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4880. * the JSPB instance for transitional soy proto support:
  4881. * http://goto/soy-param-migration
  4882. * @param {!proto.app.v1.IdRequest} msg The msg instance to transform.
  4883. * @return {!Object}
  4884. * @suppress {unusedLocalVariables} f is only used for nested messages
  4885. */
  4886. proto.app.v1.IdRequest.toObject = function(includeInstance, msg) {
  4887. var f, obj = {
  4888. id: jspb.Message.getFieldWithDefault(msg, 1, 0)
  4889. };
  4890. if (includeInstance) {
  4891. obj.$jspbMessageInstance = msg;
  4892. }
  4893. return obj;
  4894. };
  4895. }
  4896. /**
  4897. * Deserializes binary data (in protobuf wire format).
  4898. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4899. * @return {!proto.app.v1.IdRequest}
  4900. */
  4901. proto.app.v1.IdRequest.deserializeBinary = function(bytes) {
  4902. var reader = new jspb.BinaryReader(bytes);
  4903. var msg = new proto.app.v1.IdRequest;
  4904. return proto.app.v1.IdRequest.deserializeBinaryFromReader(msg, reader);
  4905. };
  4906. /**
  4907. * Deserializes binary data (in protobuf wire format) from the
  4908. * given reader into the given message object.
  4909. * @param {!proto.app.v1.IdRequest} msg The message object to deserialize into.
  4910. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4911. * @return {!proto.app.v1.IdRequest}
  4912. */
  4913. proto.app.v1.IdRequest.deserializeBinaryFromReader = function(msg, reader) {
  4914. while (reader.nextField()) {
  4915. if (reader.isEndGroup()) {
  4916. break;
  4917. }
  4918. var field = reader.getFieldNumber();
  4919. switch (field) {
  4920. case 1:
  4921. var value = /** @type {number} */ (reader.readInt64());
  4922. msg.setId(value);
  4923. break;
  4924. default:
  4925. reader.skipField();
  4926. break;
  4927. }
  4928. }
  4929. return msg;
  4930. };
  4931. /**
  4932. * Serializes the message to binary data (in protobuf wire format).
  4933. * @return {!Uint8Array}
  4934. */
  4935. proto.app.v1.IdRequest.prototype.serializeBinary = function() {
  4936. var writer = new jspb.BinaryWriter();
  4937. proto.app.v1.IdRequest.serializeBinaryToWriter(this, writer);
  4938. return writer.getResultBuffer();
  4939. };
  4940. /**
  4941. * Serializes the given message to binary data (in protobuf wire
  4942. * format), writing to the given BinaryWriter.
  4943. * @param {!proto.app.v1.IdRequest} message
  4944. * @param {!jspb.BinaryWriter} writer
  4945. * @suppress {unusedLocalVariables} f is only used for nested messages
  4946. */
  4947. proto.app.v1.IdRequest.serializeBinaryToWriter = function(message, writer) {
  4948. var f = undefined;
  4949. f = message.getId();
  4950. if (f !== 0) {
  4951. writer.writeInt64(
  4952. 1,
  4953. f
  4954. );
  4955. }
  4956. };
  4957. /**
  4958. * optional int64 id = 1;
  4959. * @return {number}
  4960. */
  4961. proto.app.v1.IdRequest.prototype.getId = function() {
  4962. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4963. };
  4964. /**
  4965. * @param {number} value
  4966. * @return {!proto.app.v1.IdRequest} returns this
  4967. */
  4968. proto.app.v1.IdRequest.prototype.setId = function(value) {
  4969. return jspb.Message.setProto3IntField(this, 1, value);
  4970. };
  4971. if (jspb.Message.GENERATE_TO_OBJECT) {
  4972. /**
  4973. * Creates an object representation of this proto.
  4974. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4975. * Optional fields that are not set will be set to undefined.
  4976. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4977. * For the list of reserved names please see:
  4978. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4979. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4980. * JSPB instance for transitional soy proto support:
  4981. * http://goto/soy-param-migration
  4982. * @return {!Object}
  4983. */
  4984. proto.app.v1.SignOutRequest.prototype.toObject = function(opt_includeInstance) {
  4985. return proto.app.v1.SignOutRequest.toObject(opt_includeInstance, this);
  4986. };
  4987. /**
  4988. * Static version of the {@see toObject} method.
  4989. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4990. * the JSPB instance for transitional soy proto support:
  4991. * http://goto/soy-param-migration
  4992. * @param {!proto.app.v1.SignOutRequest} msg The msg instance to transform.
  4993. * @return {!Object}
  4994. * @suppress {unusedLocalVariables} f is only used for nested messages
  4995. */
  4996. proto.app.v1.SignOutRequest.toObject = function(includeInstance, msg) {
  4997. var f, obj = {
  4998. name: jspb.Message.getFieldWithDefault(msg, 1, "")
  4999. };
  5000. if (includeInstance) {
  5001. obj.$jspbMessageInstance = msg;
  5002. }
  5003. return obj;
  5004. };
  5005. }
  5006. /**
  5007. * Deserializes binary data (in protobuf wire format).
  5008. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5009. * @return {!proto.app.v1.SignOutRequest}
  5010. */
  5011. proto.app.v1.SignOutRequest.deserializeBinary = function(bytes) {
  5012. var reader = new jspb.BinaryReader(bytes);
  5013. var msg = new proto.app.v1.SignOutRequest;
  5014. return proto.app.v1.SignOutRequest.deserializeBinaryFromReader(msg, reader);
  5015. };
  5016. /**
  5017. * Deserializes binary data (in protobuf wire format) from the
  5018. * given reader into the given message object.
  5019. * @param {!proto.app.v1.SignOutRequest} msg The message object to deserialize into.
  5020. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5021. * @return {!proto.app.v1.SignOutRequest}
  5022. */
  5023. proto.app.v1.SignOutRequest.deserializeBinaryFromReader = function(msg, reader) {
  5024. while (reader.nextField()) {
  5025. if (reader.isEndGroup()) {
  5026. break;
  5027. }
  5028. var field = reader.getFieldNumber();
  5029. switch (field) {
  5030. case 1:
  5031. var value = /** @type {string} */ (reader.readString());
  5032. msg.setName(value);
  5033. break;
  5034. default:
  5035. reader.skipField();
  5036. break;
  5037. }
  5038. }
  5039. return msg;
  5040. };
  5041. /**
  5042. * Serializes the message to binary data (in protobuf wire format).
  5043. * @return {!Uint8Array}
  5044. */
  5045. proto.app.v1.SignOutRequest.prototype.serializeBinary = function() {
  5046. var writer = new jspb.BinaryWriter();
  5047. proto.app.v1.SignOutRequest.serializeBinaryToWriter(this, writer);
  5048. return writer.getResultBuffer();
  5049. };
  5050. /**
  5051. * Serializes the given message to binary data (in protobuf wire
  5052. * format), writing to the given BinaryWriter.
  5053. * @param {!proto.app.v1.SignOutRequest} message
  5054. * @param {!jspb.BinaryWriter} writer
  5055. * @suppress {unusedLocalVariables} f is only used for nested messages
  5056. */
  5057. proto.app.v1.SignOutRequest.serializeBinaryToWriter = function(message, writer) {
  5058. var f = undefined;
  5059. f = message.getName();
  5060. if (f.length > 0) {
  5061. writer.writeString(
  5062. 1,
  5063. f
  5064. );
  5065. }
  5066. };
  5067. /**
  5068. * optional string name = 1;
  5069. * @return {string}
  5070. */
  5071. proto.app.v1.SignOutRequest.prototype.getName = function() {
  5072. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5073. };
  5074. /**
  5075. * @param {string} value
  5076. * @return {!proto.app.v1.SignOutRequest} returns this
  5077. */
  5078. proto.app.v1.SignOutRequest.prototype.setName = function(value) {
  5079. return jspb.Message.setProto3StringField(this, 1, value);
  5080. };
  5081. if (jspb.Message.GENERATE_TO_OBJECT) {
  5082. /**
  5083. * Creates an object representation of this proto.
  5084. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5085. * Optional fields that are not set will be set to undefined.
  5086. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5087. * For the list of reserved names please see:
  5088. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5089. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5090. * JSPB instance for transitional soy proto support:
  5091. * http://goto/soy-param-migration
  5092. * @return {!Object}
  5093. */
  5094. proto.app.v1.UserNameEditRequest.prototype.toObject = function(opt_includeInstance) {
  5095. return proto.app.v1.UserNameEditRequest.toObject(opt_includeInstance, this);
  5096. };
  5097. /**
  5098. * Static version of the {@see toObject} method.
  5099. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5100. * the JSPB instance for transitional soy proto support:
  5101. * http://goto/soy-param-migration
  5102. * @param {!proto.app.v1.UserNameEditRequest} msg The msg instance to transform.
  5103. * @return {!Object}
  5104. * @suppress {unusedLocalVariables} f is only used for nested messages
  5105. */
  5106. proto.app.v1.UserNameEditRequest.toObject = function(includeInstance, msg) {
  5107. var f, obj = {
  5108. name: jspb.Message.getFieldWithDefault(msg, 1, "")
  5109. };
  5110. if (includeInstance) {
  5111. obj.$jspbMessageInstance = msg;
  5112. }
  5113. return obj;
  5114. };
  5115. }
  5116. /**
  5117. * Deserializes binary data (in protobuf wire format).
  5118. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5119. * @return {!proto.app.v1.UserNameEditRequest}
  5120. */
  5121. proto.app.v1.UserNameEditRequest.deserializeBinary = function(bytes) {
  5122. var reader = new jspb.BinaryReader(bytes);
  5123. var msg = new proto.app.v1.UserNameEditRequest;
  5124. return proto.app.v1.UserNameEditRequest.deserializeBinaryFromReader(msg, reader);
  5125. };
  5126. /**
  5127. * Deserializes binary data (in protobuf wire format) from the
  5128. * given reader into the given message object.
  5129. * @param {!proto.app.v1.UserNameEditRequest} msg The message object to deserialize into.
  5130. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5131. * @return {!proto.app.v1.UserNameEditRequest}
  5132. */
  5133. proto.app.v1.UserNameEditRequest.deserializeBinaryFromReader = function(msg, reader) {
  5134. while (reader.nextField()) {
  5135. if (reader.isEndGroup()) {
  5136. break;
  5137. }
  5138. var field = reader.getFieldNumber();
  5139. switch (field) {
  5140. case 1:
  5141. var value = /** @type {string} */ (reader.readString());
  5142. msg.setName(value);
  5143. break;
  5144. default:
  5145. reader.skipField();
  5146. break;
  5147. }
  5148. }
  5149. return msg;
  5150. };
  5151. /**
  5152. * Serializes the message to binary data (in protobuf wire format).
  5153. * @return {!Uint8Array}
  5154. */
  5155. proto.app.v1.UserNameEditRequest.prototype.serializeBinary = function() {
  5156. var writer = new jspb.BinaryWriter();
  5157. proto.app.v1.UserNameEditRequest.serializeBinaryToWriter(this, writer);
  5158. return writer.getResultBuffer();
  5159. };
  5160. /**
  5161. * Serializes the given message to binary data (in protobuf wire
  5162. * format), writing to the given BinaryWriter.
  5163. * @param {!proto.app.v1.UserNameEditRequest} message
  5164. * @param {!jspb.BinaryWriter} writer
  5165. * @suppress {unusedLocalVariables} f is only used for nested messages
  5166. */
  5167. proto.app.v1.UserNameEditRequest.serializeBinaryToWriter = function(message, writer) {
  5168. var f = undefined;
  5169. f = message.getName();
  5170. if (f.length > 0) {
  5171. writer.writeString(
  5172. 1,
  5173. f
  5174. );
  5175. }
  5176. };
  5177. /**
  5178. * optional string name = 1;
  5179. * @return {string}
  5180. */
  5181. proto.app.v1.UserNameEditRequest.prototype.getName = function() {
  5182. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5183. };
  5184. /**
  5185. * @param {string} value
  5186. * @return {!proto.app.v1.UserNameEditRequest} returns this
  5187. */
  5188. proto.app.v1.UserNameEditRequest.prototype.setName = function(value) {
  5189. return jspb.Message.setProto3StringField(this, 1, value);
  5190. };
  5191. if (jspb.Message.GENERATE_TO_OBJECT) {
  5192. /**
  5193. * Creates an object representation of this proto.
  5194. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5195. * Optional fields that are not set will be set to undefined.
  5196. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5197. * For the list of reserved names please see:
  5198. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5199. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5200. * JSPB instance for transitional soy proto support:
  5201. * http://goto/soy-param-migration
  5202. * @return {!Object}
  5203. */
  5204. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.toObject = function(opt_includeInstance) {
  5205. return proto.app.v1.GetSmsSendLeftTimeRequest.toObject(opt_includeInstance, this);
  5206. };
  5207. /**
  5208. * Static version of the {@see toObject} method.
  5209. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5210. * the JSPB instance for transitional soy proto support:
  5211. * http://goto/soy-param-migration
  5212. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} msg The msg instance to transform.
  5213. * @return {!Object}
  5214. * @suppress {unusedLocalVariables} f is only used for nested messages
  5215. */
  5216. proto.app.v1.GetSmsSendLeftTimeRequest.toObject = function(includeInstance, msg) {
  5217. var f, obj = {
  5218. phone: jspb.Message.getFieldWithDefault(msg, 1, "")
  5219. };
  5220. if (includeInstance) {
  5221. obj.$jspbMessageInstance = msg;
  5222. }
  5223. return obj;
  5224. };
  5225. }
  5226. /**
  5227. * Deserializes binary data (in protobuf wire format).
  5228. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5229. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest}
  5230. */
  5231. proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinary = function(bytes) {
  5232. var reader = new jspb.BinaryReader(bytes);
  5233. var msg = new proto.app.v1.GetSmsSendLeftTimeRequest;
  5234. return proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader(msg, reader);
  5235. };
  5236. /**
  5237. * Deserializes binary data (in protobuf wire format) from the
  5238. * given reader into the given message object.
  5239. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} msg The message object to deserialize into.
  5240. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5241. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest}
  5242. */
  5243. proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader = function(msg, reader) {
  5244. while (reader.nextField()) {
  5245. if (reader.isEndGroup()) {
  5246. break;
  5247. }
  5248. var field = reader.getFieldNumber();
  5249. switch (field) {
  5250. case 1:
  5251. var value = /** @type {string} */ (reader.readString());
  5252. msg.setPhone(value);
  5253. break;
  5254. default:
  5255. reader.skipField();
  5256. break;
  5257. }
  5258. }
  5259. return msg;
  5260. };
  5261. /**
  5262. * Serializes the message to binary data (in protobuf wire format).
  5263. * @return {!Uint8Array}
  5264. */
  5265. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.serializeBinary = function() {
  5266. var writer = new jspb.BinaryWriter();
  5267. proto.app.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter(this, writer);
  5268. return writer.getResultBuffer();
  5269. };
  5270. /**
  5271. * Serializes the given message to binary data (in protobuf wire
  5272. * format), writing to the given BinaryWriter.
  5273. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} message
  5274. * @param {!jspb.BinaryWriter} writer
  5275. * @suppress {unusedLocalVariables} f is only used for nested messages
  5276. */
  5277. proto.app.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter = function(message, writer) {
  5278. var f = undefined;
  5279. f = message.getPhone();
  5280. if (f.length > 0) {
  5281. writer.writeString(
  5282. 1,
  5283. f
  5284. );
  5285. }
  5286. };
  5287. /**
  5288. * optional string phone = 1;
  5289. * @return {string}
  5290. */
  5291. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.getPhone = function() {
  5292. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5293. };
  5294. /**
  5295. * @param {string} value
  5296. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest} returns this
  5297. */
  5298. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.setPhone = function(value) {
  5299. return jspb.Message.setProto3StringField(this, 1, value);
  5300. };
  5301. if (jspb.Message.GENERATE_TO_OBJECT) {
  5302. /**
  5303. * Creates an object representation of this proto.
  5304. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5305. * Optional fields that are not set will be set to undefined.
  5306. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5307. * For the list of reserved names please see:
  5308. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5309. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5310. * JSPB instance for transitional soy proto support:
  5311. * http://goto/soy-param-migration
  5312. * @return {!Object}
  5313. */
  5314. proto.app.v1.ProviderListRequest.prototype.toObject = function(opt_includeInstance) {
  5315. return proto.app.v1.ProviderListRequest.toObject(opt_includeInstance, this);
  5316. };
  5317. /**
  5318. * Static version of the {@see toObject} method.
  5319. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5320. * the JSPB instance for transitional soy proto support:
  5321. * http://goto/soy-param-migration
  5322. * @param {!proto.app.v1.ProviderListRequest} msg The msg instance to transform.
  5323. * @return {!Object}
  5324. * @suppress {unusedLocalVariables} f is only used for nested messages
  5325. */
  5326. proto.app.v1.ProviderListRequest.toObject = function(includeInstance, msg) {
  5327. var f, obj = {
  5328. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  5329. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5330. isOpen: jspb.Message.getFieldWithDefault(msg, 3, 0),
  5331. regionId: jspb.Message.getFieldWithDefault(msg, 4, "")
  5332. };
  5333. if (includeInstance) {
  5334. obj.$jspbMessageInstance = msg;
  5335. }
  5336. return obj;
  5337. };
  5338. }
  5339. /**
  5340. * Deserializes binary data (in protobuf wire format).
  5341. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5342. * @return {!proto.app.v1.ProviderListRequest}
  5343. */
  5344. proto.app.v1.ProviderListRequest.deserializeBinary = function(bytes) {
  5345. var reader = new jspb.BinaryReader(bytes);
  5346. var msg = new proto.app.v1.ProviderListRequest;
  5347. return proto.app.v1.ProviderListRequest.deserializeBinaryFromReader(msg, reader);
  5348. };
  5349. /**
  5350. * Deserializes binary data (in protobuf wire format) from the
  5351. * given reader into the given message object.
  5352. * @param {!proto.app.v1.ProviderListRequest} msg The message object to deserialize into.
  5353. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5354. * @return {!proto.app.v1.ProviderListRequest}
  5355. */
  5356. proto.app.v1.ProviderListRequest.deserializeBinaryFromReader = function(msg, reader) {
  5357. while (reader.nextField()) {
  5358. if (reader.isEndGroup()) {
  5359. break;
  5360. }
  5361. var field = reader.getFieldNumber();
  5362. switch (field) {
  5363. case 1:
  5364. var value = new proto.app.v1.Position;
  5365. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  5366. msg.setPosition(value);
  5367. break;
  5368. case 2:
  5369. var value = /** @type {string} */ (reader.readString());
  5370. msg.setName(value);
  5371. break;
  5372. case 3:
  5373. var value = /** @type {number} */ (reader.readInt32());
  5374. msg.setIsOpen(value);
  5375. break;
  5376. case 4:
  5377. var value = /** @type {string} */ (reader.readString());
  5378. msg.setRegionId(value);
  5379. break;
  5380. default:
  5381. reader.skipField();
  5382. break;
  5383. }
  5384. }
  5385. return msg;
  5386. };
  5387. /**
  5388. * Serializes the message to binary data (in protobuf wire format).
  5389. * @return {!Uint8Array}
  5390. */
  5391. proto.app.v1.ProviderListRequest.prototype.serializeBinary = function() {
  5392. var writer = new jspb.BinaryWriter();
  5393. proto.app.v1.ProviderListRequest.serializeBinaryToWriter(this, writer);
  5394. return writer.getResultBuffer();
  5395. };
  5396. /**
  5397. * Serializes the given message to binary data (in protobuf wire
  5398. * format), writing to the given BinaryWriter.
  5399. * @param {!proto.app.v1.ProviderListRequest} message
  5400. * @param {!jspb.BinaryWriter} writer
  5401. * @suppress {unusedLocalVariables} f is only used for nested messages
  5402. */
  5403. proto.app.v1.ProviderListRequest.serializeBinaryToWriter = function(message, writer) {
  5404. var f = undefined;
  5405. f = message.getPosition();
  5406. if (f != null) {
  5407. writer.writeMessage(
  5408. 1,
  5409. f,
  5410. proto.app.v1.Position.serializeBinaryToWriter
  5411. );
  5412. }
  5413. f = message.getName();
  5414. if (f.length > 0) {
  5415. writer.writeString(
  5416. 2,
  5417. f
  5418. );
  5419. }
  5420. f = message.getIsOpen();
  5421. if (f !== 0) {
  5422. writer.writeInt32(
  5423. 3,
  5424. f
  5425. );
  5426. }
  5427. f = message.getRegionId();
  5428. if (f.length > 0) {
  5429. writer.writeString(
  5430. 4,
  5431. f
  5432. );
  5433. }
  5434. };
  5435. /**
  5436. * optional Position position = 1;
  5437. * @return {?proto.app.v1.Position}
  5438. */
  5439. proto.app.v1.ProviderListRequest.prototype.getPosition = function() {
  5440. return /** @type{?proto.app.v1.Position} */ (
  5441. jspb.Message.getWrapperField(this, proto.app.v1.Position, 1));
  5442. };
  5443. /**
  5444. * @param {?proto.app.v1.Position|undefined} value
  5445. * @return {!proto.app.v1.ProviderListRequest} returns this
  5446. */
  5447. proto.app.v1.ProviderListRequest.prototype.setPosition = function(value) {
  5448. return jspb.Message.setWrapperField(this, 1, value);
  5449. };
  5450. /**
  5451. * Clears the message field making it undefined.
  5452. * @return {!proto.app.v1.ProviderListRequest} returns this
  5453. */
  5454. proto.app.v1.ProviderListRequest.prototype.clearPosition = function() {
  5455. return this.setPosition(undefined);
  5456. };
  5457. /**
  5458. * Returns whether this field is set.
  5459. * @return {boolean}
  5460. */
  5461. proto.app.v1.ProviderListRequest.prototype.hasPosition = function() {
  5462. return jspb.Message.getField(this, 1) != null;
  5463. };
  5464. /**
  5465. * optional string name = 2;
  5466. * @return {string}
  5467. */
  5468. proto.app.v1.ProviderListRequest.prototype.getName = function() {
  5469. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5470. };
  5471. /**
  5472. * @param {string} value
  5473. * @return {!proto.app.v1.ProviderListRequest} returns this
  5474. */
  5475. proto.app.v1.ProviderListRequest.prototype.setName = function(value) {
  5476. return jspb.Message.setProto3StringField(this, 2, value);
  5477. };
  5478. /**
  5479. * optional int32 is_open = 3;
  5480. * @return {number}
  5481. */
  5482. proto.app.v1.ProviderListRequest.prototype.getIsOpen = function() {
  5483. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5484. };
  5485. /**
  5486. * @param {number} value
  5487. * @return {!proto.app.v1.ProviderListRequest} returns this
  5488. */
  5489. proto.app.v1.ProviderListRequest.prototype.setIsOpen = function(value) {
  5490. return jspb.Message.setProto3IntField(this, 3, value);
  5491. };
  5492. /**
  5493. * optional string region_id = 4;
  5494. * @return {string}
  5495. */
  5496. proto.app.v1.ProviderListRequest.prototype.getRegionId = function() {
  5497. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  5498. };
  5499. /**
  5500. * @param {string} value
  5501. * @return {!proto.app.v1.ProviderListRequest} returns this
  5502. */
  5503. proto.app.v1.ProviderListRequest.prototype.setRegionId = function(value) {
  5504. return jspb.Message.setProto3StringField(this, 4, value);
  5505. };
  5506. /**
  5507. * List of repeated fields within this message type.
  5508. * @private {!Array<number>}
  5509. * @const
  5510. */
  5511. proto.app.v1.AssControlInfoSaveRequest.repeatedFields_ = [2];
  5512. if (jspb.Message.GENERATE_TO_OBJECT) {
  5513. /**
  5514. * Creates an object representation of this proto.
  5515. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5516. * Optional fields that are not set will be set to undefined.
  5517. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5518. * For the list of reserved names please see:
  5519. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5520. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5521. * JSPB instance for transitional soy proto support:
  5522. * http://goto/soy-param-migration
  5523. * @return {!Object}
  5524. */
  5525. proto.app.v1.AssControlInfoSaveRequest.prototype.toObject = function(opt_includeInstance) {
  5526. return proto.app.v1.AssControlInfoSaveRequest.toObject(opt_includeInstance, this);
  5527. };
  5528. /**
  5529. * Static version of the {@see toObject} method.
  5530. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5531. * the JSPB instance for transitional soy proto support:
  5532. * http://goto/soy-param-migration
  5533. * @param {!proto.app.v1.AssControlInfoSaveRequest} msg The msg instance to transform.
  5534. * @return {!Object}
  5535. * @suppress {unusedLocalVariables} f is only used for nested messages
  5536. */
  5537. proto.app.v1.AssControlInfoSaveRequest.toObject = function(includeInstance, msg) {
  5538. var f, obj = {
  5539. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5540. nfccodelistList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
  5541. };
  5542. if (includeInstance) {
  5543. obj.$jspbMessageInstance = msg;
  5544. }
  5545. return obj;
  5546. };
  5547. }
  5548. /**
  5549. * Deserializes binary data (in protobuf wire format).
  5550. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5551. * @return {!proto.app.v1.AssControlInfoSaveRequest}
  5552. */
  5553. proto.app.v1.AssControlInfoSaveRequest.deserializeBinary = function(bytes) {
  5554. var reader = new jspb.BinaryReader(bytes);
  5555. var msg = new proto.app.v1.AssControlInfoSaveRequest;
  5556. return proto.app.v1.AssControlInfoSaveRequest.deserializeBinaryFromReader(msg, reader);
  5557. };
  5558. /**
  5559. * Deserializes binary data (in protobuf wire format) from the
  5560. * given reader into the given message object.
  5561. * @param {!proto.app.v1.AssControlInfoSaveRequest} msg The message object to deserialize into.
  5562. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5563. * @return {!proto.app.v1.AssControlInfoSaveRequest}
  5564. */
  5565. proto.app.v1.AssControlInfoSaveRequest.deserializeBinaryFromReader = function(msg, reader) {
  5566. while (reader.nextField()) {
  5567. if (reader.isEndGroup()) {
  5568. break;
  5569. }
  5570. var field = reader.getFieldNumber();
  5571. switch (field) {
  5572. case 1:
  5573. var value = /** @type {number} */ (reader.readInt32());
  5574. msg.setCiid(value);
  5575. break;
  5576. case 2:
  5577. var value = /** @type {string} */ (reader.readString());
  5578. msg.addNfccodelist(value);
  5579. break;
  5580. default:
  5581. reader.skipField();
  5582. break;
  5583. }
  5584. }
  5585. return msg;
  5586. };
  5587. /**
  5588. * Serializes the message to binary data (in protobuf wire format).
  5589. * @return {!Uint8Array}
  5590. */
  5591. proto.app.v1.AssControlInfoSaveRequest.prototype.serializeBinary = function() {
  5592. var writer = new jspb.BinaryWriter();
  5593. proto.app.v1.AssControlInfoSaveRequest.serializeBinaryToWriter(this, writer);
  5594. return writer.getResultBuffer();
  5595. };
  5596. /**
  5597. * Serializes the given message to binary data (in protobuf wire
  5598. * format), writing to the given BinaryWriter.
  5599. * @param {!proto.app.v1.AssControlInfoSaveRequest} message
  5600. * @param {!jspb.BinaryWriter} writer
  5601. * @suppress {unusedLocalVariables} f is only used for nested messages
  5602. */
  5603. proto.app.v1.AssControlInfoSaveRequest.serializeBinaryToWriter = function(message, writer) {
  5604. var f = undefined;
  5605. f = message.getCiid();
  5606. if (f !== 0) {
  5607. writer.writeInt32(
  5608. 1,
  5609. f
  5610. );
  5611. }
  5612. f = message.getNfccodelistList();
  5613. if (f.length > 0) {
  5614. writer.writeRepeatedString(
  5615. 2,
  5616. f
  5617. );
  5618. }
  5619. };
  5620. /**
  5621. * optional int32 ciId = 1;
  5622. * @return {number}
  5623. */
  5624. proto.app.v1.AssControlInfoSaveRequest.prototype.getCiid = function() {
  5625. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5626. };
  5627. /**
  5628. * @param {number} value
  5629. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5630. */
  5631. proto.app.v1.AssControlInfoSaveRequest.prototype.setCiid = function(value) {
  5632. return jspb.Message.setProto3IntField(this, 1, value);
  5633. };
  5634. /**
  5635. * repeated string nfcCodeList = 2;
  5636. * @return {!Array<string>}
  5637. */
  5638. proto.app.v1.AssControlInfoSaveRequest.prototype.getNfccodelistList = function() {
  5639. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  5640. };
  5641. /**
  5642. * @param {!Array<string>} value
  5643. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5644. */
  5645. proto.app.v1.AssControlInfoSaveRequest.prototype.setNfccodelistList = function(value) {
  5646. return jspb.Message.setField(this, 2, value || []);
  5647. };
  5648. /**
  5649. * @param {string} value
  5650. * @param {number=} opt_index
  5651. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5652. */
  5653. proto.app.v1.AssControlInfoSaveRequest.prototype.addNfccodelist = function(value, opt_index) {
  5654. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  5655. };
  5656. /**
  5657. * Clears the list making it empty but non-null.
  5658. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5659. */
  5660. proto.app.v1.AssControlInfoSaveRequest.prototype.clearNfccodelistList = function() {
  5661. return this.setNfccodelistList([]);
  5662. };
  5663. if (jspb.Message.GENERATE_TO_OBJECT) {
  5664. /**
  5665. * Creates an object representation of this proto.
  5666. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5667. * Optional fields that are not set will be set to undefined.
  5668. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5669. * For the list of reserved names please see:
  5670. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5671. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5672. * JSPB instance for transitional soy proto support:
  5673. * http://goto/soy-param-migration
  5674. * @return {!Object}
  5675. */
  5676. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.toObject = function(opt_includeInstance) {
  5677. return proto.app.v1.AssControlInfoGpsSaveRequest.toObject(opt_includeInstance, this);
  5678. };
  5679. /**
  5680. * Static version of the {@see toObject} method.
  5681. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5682. * the JSPB instance for transitional soy proto support:
  5683. * http://goto/soy-param-migration
  5684. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} msg The msg instance to transform.
  5685. * @return {!Object}
  5686. * @suppress {unusedLocalVariables} f is only used for nested messages
  5687. */
  5688. proto.app.v1.AssControlInfoGpsSaveRequest.toObject = function(includeInstance, msg) {
  5689. var f, obj = {
  5690. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5691. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f)
  5692. };
  5693. if (includeInstance) {
  5694. obj.$jspbMessageInstance = msg;
  5695. }
  5696. return obj;
  5697. };
  5698. }
  5699. /**
  5700. * Deserializes binary data (in protobuf wire format).
  5701. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5702. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest}
  5703. */
  5704. proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinary = function(bytes) {
  5705. var reader = new jspb.BinaryReader(bytes);
  5706. var msg = new proto.app.v1.AssControlInfoGpsSaveRequest;
  5707. return proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinaryFromReader(msg, reader);
  5708. };
  5709. /**
  5710. * Deserializes binary data (in protobuf wire format) from the
  5711. * given reader into the given message object.
  5712. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} msg The message object to deserialize into.
  5713. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5714. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest}
  5715. */
  5716. proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinaryFromReader = function(msg, reader) {
  5717. while (reader.nextField()) {
  5718. if (reader.isEndGroup()) {
  5719. break;
  5720. }
  5721. var field = reader.getFieldNumber();
  5722. switch (field) {
  5723. case 1:
  5724. var value = /** @type {number} */ (reader.readInt32());
  5725. msg.setCiid(value);
  5726. break;
  5727. case 2:
  5728. var value = new proto.app.v1.Position;
  5729. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  5730. msg.setPosition(value);
  5731. break;
  5732. default:
  5733. reader.skipField();
  5734. break;
  5735. }
  5736. }
  5737. return msg;
  5738. };
  5739. /**
  5740. * Serializes the message to binary data (in protobuf wire format).
  5741. * @return {!Uint8Array}
  5742. */
  5743. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.serializeBinary = function() {
  5744. var writer = new jspb.BinaryWriter();
  5745. proto.app.v1.AssControlInfoGpsSaveRequest.serializeBinaryToWriter(this, writer);
  5746. return writer.getResultBuffer();
  5747. };
  5748. /**
  5749. * Serializes the given message to binary data (in protobuf wire
  5750. * format), writing to the given BinaryWriter.
  5751. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} message
  5752. * @param {!jspb.BinaryWriter} writer
  5753. * @suppress {unusedLocalVariables} f is only used for nested messages
  5754. */
  5755. proto.app.v1.AssControlInfoGpsSaveRequest.serializeBinaryToWriter = function(message, writer) {
  5756. var f = undefined;
  5757. f = message.getCiid();
  5758. if (f !== 0) {
  5759. writer.writeInt32(
  5760. 1,
  5761. f
  5762. );
  5763. }
  5764. f = message.getPosition();
  5765. if (f != null) {
  5766. writer.writeMessage(
  5767. 2,
  5768. f,
  5769. proto.app.v1.Position.serializeBinaryToWriter
  5770. );
  5771. }
  5772. };
  5773. /**
  5774. * optional int32 ciId = 1;
  5775. * @return {number}
  5776. */
  5777. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.getCiid = function() {
  5778. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5779. };
  5780. /**
  5781. * @param {number} value
  5782. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5783. */
  5784. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.setCiid = function(value) {
  5785. return jspb.Message.setProto3IntField(this, 1, value);
  5786. };
  5787. /**
  5788. * optional Position position = 2;
  5789. * @return {?proto.app.v1.Position}
  5790. */
  5791. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.getPosition = function() {
  5792. return /** @type{?proto.app.v1.Position} */ (
  5793. jspb.Message.getWrapperField(this, proto.app.v1.Position, 2));
  5794. };
  5795. /**
  5796. * @param {?proto.app.v1.Position|undefined} value
  5797. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5798. */
  5799. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.setPosition = function(value) {
  5800. return jspb.Message.setWrapperField(this, 2, value);
  5801. };
  5802. /**
  5803. * Clears the message field making it undefined.
  5804. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5805. */
  5806. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.clearPosition = function() {
  5807. return this.setPosition(undefined);
  5808. };
  5809. /**
  5810. * Returns whether this field is set.
  5811. * @return {boolean}
  5812. */
  5813. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.hasPosition = function() {
  5814. return jspb.Message.getField(this, 2) != null;
  5815. };
  5816. if (jspb.Message.GENERATE_TO_OBJECT) {
  5817. /**
  5818. * Creates an object representation of this proto.
  5819. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5820. * Optional fields that are not set will be set to undefined.
  5821. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5822. * For the list of reserved names please see:
  5823. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5824. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5825. * JSPB instance for transitional soy proto support:
  5826. * http://goto/soy-param-migration
  5827. * @return {!Object}
  5828. */
  5829. proto.app.v1.GetUpdateVersionRequest.prototype.toObject = function(opt_includeInstance) {
  5830. return proto.app.v1.GetUpdateVersionRequest.toObject(opt_includeInstance, this);
  5831. };
  5832. /**
  5833. * Static version of the {@see toObject} method.
  5834. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5835. * the JSPB instance for transitional soy proto support:
  5836. * http://goto/soy-param-migration
  5837. * @param {!proto.app.v1.GetUpdateVersionRequest} msg The msg instance to transform.
  5838. * @return {!Object}
  5839. * @suppress {unusedLocalVariables} f is only used for nested messages
  5840. */
  5841. proto.app.v1.GetUpdateVersionRequest.toObject = function(includeInstance, msg) {
  5842. var f, obj = {
  5843. vcode: jspb.Message.getFieldWithDefault(msg, 1, "")
  5844. };
  5845. if (includeInstance) {
  5846. obj.$jspbMessageInstance = msg;
  5847. }
  5848. return obj;
  5849. };
  5850. }
  5851. /**
  5852. * Deserializes binary data (in protobuf wire format).
  5853. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5854. * @return {!proto.app.v1.GetUpdateVersionRequest}
  5855. */
  5856. proto.app.v1.GetUpdateVersionRequest.deserializeBinary = function(bytes) {
  5857. var reader = new jspb.BinaryReader(bytes);
  5858. var msg = new proto.app.v1.GetUpdateVersionRequest;
  5859. return proto.app.v1.GetUpdateVersionRequest.deserializeBinaryFromReader(msg, reader);
  5860. };
  5861. /**
  5862. * Deserializes binary data (in protobuf wire format) from the
  5863. * given reader into the given message object.
  5864. * @param {!proto.app.v1.GetUpdateVersionRequest} msg The message object to deserialize into.
  5865. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5866. * @return {!proto.app.v1.GetUpdateVersionRequest}
  5867. */
  5868. proto.app.v1.GetUpdateVersionRequest.deserializeBinaryFromReader = function(msg, reader) {
  5869. while (reader.nextField()) {
  5870. if (reader.isEndGroup()) {
  5871. break;
  5872. }
  5873. var field = reader.getFieldNumber();
  5874. switch (field) {
  5875. case 1:
  5876. var value = /** @type {string} */ (reader.readString());
  5877. msg.setVcode(value);
  5878. break;
  5879. default:
  5880. reader.skipField();
  5881. break;
  5882. }
  5883. }
  5884. return msg;
  5885. };
  5886. /**
  5887. * Serializes the message to binary data (in protobuf wire format).
  5888. * @return {!Uint8Array}
  5889. */
  5890. proto.app.v1.GetUpdateVersionRequest.prototype.serializeBinary = function() {
  5891. var writer = new jspb.BinaryWriter();
  5892. proto.app.v1.GetUpdateVersionRequest.serializeBinaryToWriter(this, writer);
  5893. return writer.getResultBuffer();
  5894. };
  5895. /**
  5896. * Serializes the given message to binary data (in protobuf wire
  5897. * format), writing to the given BinaryWriter.
  5898. * @param {!proto.app.v1.GetUpdateVersionRequest} message
  5899. * @param {!jspb.BinaryWriter} writer
  5900. * @suppress {unusedLocalVariables} f is only used for nested messages
  5901. */
  5902. proto.app.v1.GetUpdateVersionRequest.serializeBinaryToWriter = function(message, writer) {
  5903. var f = undefined;
  5904. f = message.getVcode();
  5905. if (f.length > 0) {
  5906. writer.writeString(
  5907. 1,
  5908. f
  5909. );
  5910. }
  5911. };
  5912. /**
  5913. * optional string vCode = 1;
  5914. * @return {string}
  5915. */
  5916. proto.app.v1.GetUpdateVersionRequest.prototype.getVcode = function() {
  5917. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5918. };
  5919. /**
  5920. * @param {string} value
  5921. * @return {!proto.app.v1.GetUpdateVersionRequest} returns this
  5922. */
  5923. proto.app.v1.GetUpdateVersionRequest.prototype.setVcode = function(value) {
  5924. return jspb.Message.setProto3StringField(this, 1, value);
  5925. };
  5926. if (jspb.Message.GENERATE_TO_OBJECT) {
  5927. /**
  5928. * Creates an object representation of this proto.
  5929. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5930. * Optional fields that are not set will be set to undefined.
  5931. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5932. * For the list of reserved names please see:
  5933. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5934. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5935. * JSPB instance for transitional soy proto support:
  5936. * http://goto/soy-param-migration
  5937. * @return {!Object}
  5938. */
  5939. proto.app.v1.DefaultRequest.prototype.toObject = function(opt_includeInstance) {
  5940. return proto.app.v1.DefaultRequest.toObject(opt_includeInstance, this);
  5941. };
  5942. /**
  5943. * Static version of the {@see toObject} method.
  5944. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5945. * the JSPB instance for transitional soy proto support:
  5946. * http://goto/soy-param-migration
  5947. * @param {!proto.app.v1.DefaultRequest} msg The msg instance to transform.
  5948. * @return {!Object}
  5949. * @suppress {unusedLocalVariables} f is only used for nested messages
  5950. */
  5951. proto.app.v1.DefaultRequest.toObject = function(includeInstance, msg) {
  5952. var f, obj = {
  5953. };
  5954. if (includeInstance) {
  5955. obj.$jspbMessageInstance = msg;
  5956. }
  5957. return obj;
  5958. };
  5959. }
  5960. /**
  5961. * Deserializes binary data (in protobuf wire format).
  5962. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5963. * @return {!proto.app.v1.DefaultRequest}
  5964. */
  5965. proto.app.v1.DefaultRequest.deserializeBinary = function(bytes) {
  5966. var reader = new jspb.BinaryReader(bytes);
  5967. var msg = new proto.app.v1.DefaultRequest;
  5968. return proto.app.v1.DefaultRequest.deserializeBinaryFromReader(msg, reader);
  5969. };
  5970. /**
  5971. * Deserializes binary data (in protobuf wire format) from the
  5972. * given reader into the given message object.
  5973. * @param {!proto.app.v1.DefaultRequest} msg The message object to deserialize into.
  5974. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5975. * @return {!proto.app.v1.DefaultRequest}
  5976. */
  5977. proto.app.v1.DefaultRequest.deserializeBinaryFromReader = function(msg, reader) {
  5978. while (reader.nextField()) {
  5979. if (reader.isEndGroup()) {
  5980. break;
  5981. }
  5982. var field = reader.getFieldNumber();
  5983. switch (field) {
  5984. default:
  5985. reader.skipField();
  5986. break;
  5987. }
  5988. }
  5989. return msg;
  5990. };
  5991. /**
  5992. * Serializes the message to binary data (in protobuf wire format).
  5993. * @return {!Uint8Array}
  5994. */
  5995. proto.app.v1.DefaultRequest.prototype.serializeBinary = function() {
  5996. var writer = new jspb.BinaryWriter();
  5997. proto.app.v1.DefaultRequest.serializeBinaryToWriter(this, writer);
  5998. return writer.getResultBuffer();
  5999. };
  6000. /**
  6001. * Serializes the given message to binary data (in protobuf wire
  6002. * format), writing to the given BinaryWriter.
  6003. * @param {!proto.app.v1.DefaultRequest} message
  6004. * @param {!jspb.BinaryWriter} writer
  6005. * @suppress {unusedLocalVariables} f is only used for nested messages
  6006. */
  6007. proto.app.v1.DefaultRequest.serializeBinaryToWriter = function(message, writer) {
  6008. var f = undefined;
  6009. };
  6010. if (jspb.Message.GENERATE_TO_OBJECT) {
  6011. /**
  6012. * Creates an object representation of this proto.
  6013. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6014. * Optional fields that are not set will be set to undefined.
  6015. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6016. * For the list of reserved names please see:
  6017. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6018. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6019. * JSPB instance for transitional soy proto support:
  6020. * http://goto/soy-param-migration
  6021. * @return {!Object}
  6022. */
  6023. proto.app.v1.SignUpRequest.prototype.toObject = function(opt_includeInstance) {
  6024. return proto.app.v1.SignUpRequest.toObject(opt_includeInstance, this);
  6025. };
  6026. /**
  6027. * Static version of the {@see toObject} method.
  6028. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6029. * the JSPB instance for transitional soy proto support:
  6030. * http://goto/soy-param-migration
  6031. * @param {!proto.app.v1.SignUpRequest} msg The msg instance to transform.
  6032. * @return {!Object}
  6033. * @suppress {unusedLocalVariables} f is only used for nested messages
  6034. */
  6035. proto.app.v1.SignUpRequest.toObject = function(includeInstance, msg) {
  6036. var f, obj = {
  6037. phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
  6038. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  6039. nickname: jspb.Message.getFieldWithDefault(msg, 3, ""),
  6040. usertype: jspb.Message.getFieldWithDefault(msg, 4, 0),
  6041. headurl: jspb.Message.getFieldWithDefault(msg, 5, ""),
  6042. sex: jspb.Message.getFieldWithDefault(msg, 6, 0)
  6043. };
  6044. if (includeInstance) {
  6045. obj.$jspbMessageInstance = msg;
  6046. }
  6047. return obj;
  6048. };
  6049. }
  6050. /**
  6051. * Deserializes binary data (in protobuf wire format).
  6052. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6053. * @return {!proto.app.v1.SignUpRequest}
  6054. */
  6055. proto.app.v1.SignUpRequest.deserializeBinary = function(bytes) {
  6056. var reader = new jspb.BinaryReader(bytes);
  6057. var msg = new proto.app.v1.SignUpRequest;
  6058. return proto.app.v1.SignUpRequest.deserializeBinaryFromReader(msg, reader);
  6059. };
  6060. /**
  6061. * Deserializes binary data (in protobuf wire format) from the
  6062. * given reader into the given message object.
  6063. * @param {!proto.app.v1.SignUpRequest} msg The message object to deserialize into.
  6064. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6065. * @return {!proto.app.v1.SignUpRequest}
  6066. */
  6067. proto.app.v1.SignUpRequest.deserializeBinaryFromReader = function(msg, reader) {
  6068. while (reader.nextField()) {
  6069. if (reader.isEndGroup()) {
  6070. break;
  6071. }
  6072. var field = reader.getFieldNumber();
  6073. switch (field) {
  6074. case 1:
  6075. var value = /** @type {string} */ (reader.readString());
  6076. msg.setPhone(value);
  6077. break;
  6078. case 2:
  6079. var value = /** @type {string} */ (reader.readString());
  6080. msg.setPassword(value);
  6081. break;
  6082. case 3:
  6083. var value = /** @type {string} */ (reader.readString());
  6084. msg.setNickname(value);
  6085. break;
  6086. case 4:
  6087. var value = /** @type {!proto.app.v1.UserType} */ (reader.readEnum());
  6088. msg.setUsertype(value);
  6089. break;
  6090. case 5:
  6091. var value = /** @type {string} */ (reader.readString());
  6092. msg.setHeadurl(value);
  6093. break;
  6094. case 6:
  6095. var value = /** @type {!proto.app.v1.User.Sex} */ (reader.readEnum());
  6096. msg.setSex(value);
  6097. break;
  6098. default:
  6099. reader.skipField();
  6100. break;
  6101. }
  6102. }
  6103. return msg;
  6104. };
  6105. /**
  6106. * Serializes the message to binary data (in protobuf wire format).
  6107. * @return {!Uint8Array}
  6108. */
  6109. proto.app.v1.SignUpRequest.prototype.serializeBinary = function() {
  6110. var writer = new jspb.BinaryWriter();
  6111. proto.app.v1.SignUpRequest.serializeBinaryToWriter(this, writer);
  6112. return writer.getResultBuffer();
  6113. };
  6114. /**
  6115. * Serializes the given message to binary data (in protobuf wire
  6116. * format), writing to the given BinaryWriter.
  6117. * @param {!proto.app.v1.SignUpRequest} message
  6118. * @param {!jspb.BinaryWriter} writer
  6119. * @suppress {unusedLocalVariables} f is only used for nested messages
  6120. */
  6121. proto.app.v1.SignUpRequest.serializeBinaryToWriter = function(message, writer) {
  6122. var f = undefined;
  6123. f = message.getPhone();
  6124. if (f.length > 0) {
  6125. writer.writeString(
  6126. 1,
  6127. f
  6128. );
  6129. }
  6130. f = message.getPassword();
  6131. if (f.length > 0) {
  6132. writer.writeString(
  6133. 2,
  6134. f
  6135. );
  6136. }
  6137. f = message.getNickname();
  6138. if (f.length > 0) {
  6139. writer.writeString(
  6140. 3,
  6141. f
  6142. );
  6143. }
  6144. f = message.getUsertype();
  6145. if (f !== 0.0) {
  6146. writer.writeEnum(
  6147. 4,
  6148. f
  6149. );
  6150. }
  6151. f = message.getHeadurl();
  6152. if (f.length > 0) {
  6153. writer.writeString(
  6154. 5,
  6155. f
  6156. );
  6157. }
  6158. f = message.getSex();
  6159. if (f !== 0.0) {
  6160. writer.writeEnum(
  6161. 6,
  6162. f
  6163. );
  6164. }
  6165. };
  6166. /**
  6167. * optional string phone = 1;
  6168. * @return {string}
  6169. */
  6170. proto.app.v1.SignUpRequest.prototype.getPhone = function() {
  6171. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6172. };
  6173. /**
  6174. * @param {string} value
  6175. * @return {!proto.app.v1.SignUpRequest} returns this
  6176. */
  6177. proto.app.v1.SignUpRequest.prototype.setPhone = function(value) {
  6178. return jspb.Message.setProto3StringField(this, 1, value);
  6179. };
  6180. /**
  6181. * optional string password = 2;
  6182. * @return {string}
  6183. */
  6184. proto.app.v1.SignUpRequest.prototype.getPassword = function() {
  6185. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  6186. };
  6187. /**
  6188. * @param {string} value
  6189. * @return {!proto.app.v1.SignUpRequest} returns this
  6190. */
  6191. proto.app.v1.SignUpRequest.prototype.setPassword = function(value) {
  6192. return jspb.Message.setProto3StringField(this, 2, value);
  6193. };
  6194. /**
  6195. * optional string nickname = 3;
  6196. * @return {string}
  6197. */
  6198. proto.app.v1.SignUpRequest.prototype.getNickname = function() {
  6199. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  6200. };
  6201. /**
  6202. * @param {string} value
  6203. * @return {!proto.app.v1.SignUpRequest} returns this
  6204. */
  6205. proto.app.v1.SignUpRequest.prototype.setNickname = function(value) {
  6206. return jspb.Message.setProto3StringField(this, 3, value);
  6207. };
  6208. /**
  6209. * optional UserType userType = 4;
  6210. * @return {!proto.app.v1.UserType}
  6211. */
  6212. proto.app.v1.SignUpRequest.prototype.getUsertype = function() {
  6213. return /** @type {!proto.app.v1.UserType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  6214. };
  6215. /**
  6216. * @param {!proto.app.v1.UserType} value
  6217. * @return {!proto.app.v1.SignUpRequest} returns this
  6218. */
  6219. proto.app.v1.SignUpRequest.prototype.setUsertype = function(value) {
  6220. return jspb.Message.setProto3EnumField(this, 4, value);
  6221. };
  6222. /**
  6223. * optional string headUrl = 5;
  6224. * @return {string}
  6225. */
  6226. proto.app.v1.SignUpRequest.prototype.getHeadurl = function() {
  6227. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  6228. };
  6229. /**
  6230. * @param {string} value
  6231. * @return {!proto.app.v1.SignUpRequest} returns this
  6232. */
  6233. proto.app.v1.SignUpRequest.prototype.setHeadurl = function(value) {
  6234. return jspb.Message.setProto3StringField(this, 5, value);
  6235. };
  6236. /**
  6237. * optional User.Sex sex = 6;
  6238. * @return {!proto.app.v1.User.Sex}
  6239. */
  6240. proto.app.v1.SignUpRequest.prototype.getSex = function() {
  6241. return /** @type {!proto.app.v1.User.Sex} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  6242. };
  6243. /**
  6244. * @param {!proto.app.v1.User.Sex} value
  6245. * @return {!proto.app.v1.SignUpRequest} returns this
  6246. */
  6247. proto.app.v1.SignUpRequest.prototype.setSex = function(value) {
  6248. return jspb.Message.setProto3EnumField(this, 6, value);
  6249. };
  6250. if (jspb.Message.GENERATE_TO_OBJECT) {
  6251. /**
  6252. * Creates an object representation of this proto.
  6253. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6254. * Optional fields that are not set will be set to undefined.
  6255. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6256. * For the list of reserved names please see:
  6257. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6258. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6259. * JSPB instance for transitional soy proto support:
  6260. * http://goto/soy-param-migration
  6261. * @return {!Object}
  6262. */
  6263. proto.app.v1.User.prototype.toObject = function(opt_includeInstance) {
  6264. return proto.app.v1.User.toObject(opt_includeInstance, this);
  6265. };
  6266. /**
  6267. * Static version of the {@see toObject} method.
  6268. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6269. * the JSPB instance for transitional soy proto support:
  6270. * http://goto/soy-param-migration
  6271. * @param {!proto.app.v1.User} msg The msg instance to transform.
  6272. * @return {!Object}
  6273. * @suppress {unusedLocalVariables} f is only used for nested messages
  6274. */
  6275. proto.app.v1.User.toObject = function(includeInstance, msg) {
  6276. var f, obj = {
  6277. };
  6278. if (includeInstance) {
  6279. obj.$jspbMessageInstance = msg;
  6280. }
  6281. return obj;
  6282. };
  6283. }
  6284. /**
  6285. * Deserializes binary data (in protobuf wire format).
  6286. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6287. * @return {!proto.app.v1.User}
  6288. */
  6289. proto.app.v1.User.deserializeBinary = function(bytes) {
  6290. var reader = new jspb.BinaryReader(bytes);
  6291. var msg = new proto.app.v1.User;
  6292. return proto.app.v1.User.deserializeBinaryFromReader(msg, reader);
  6293. };
  6294. /**
  6295. * Deserializes binary data (in protobuf wire format) from the
  6296. * given reader into the given message object.
  6297. * @param {!proto.app.v1.User} msg The message object to deserialize into.
  6298. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6299. * @return {!proto.app.v1.User}
  6300. */
  6301. proto.app.v1.User.deserializeBinaryFromReader = function(msg, reader) {
  6302. while (reader.nextField()) {
  6303. if (reader.isEndGroup()) {
  6304. break;
  6305. }
  6306. var field = reader.getFieldNumber();
  6307. switch (field) {
  6308. default:
  6309. reader.skipField();
  6310. break;
  6311. }
  6312. }
  6313. return msg;
  6314. };
  6315. /**
  6316. * Serializes the message to binary data (in protobuf wire format).
  6317. * @return {!Uint8Array}
  6318. */
  6319. proto.app.v1.User.prototype.serializeBinary = function() {
  6320. var writer = new jspb.BinaryWriter();
  6321. proto.app.v1.User.serializeBinaryToWriter(this, writer);
  6322. return writer.getResultBuffer();
  6323. };
  6324. /**
  6325. * Serializes the given message to binary data (in protobuf wire
  6326. * format), writing to the given BinaryWriter.
  6327. * @param {!proto.app.v1.User} message
  6328. * @param {!jspb.BinaryWriter} writer
  6329. * @suppress {unusedLocalVariables} f is only used for nested messages
  6330. */
  6331. proto.app.v1.User.serializeBinaryToWriter = function(message, writer) {
  6332. var f = undefined;
  6333. };
  6334. /**
  6335. * @enum {number}
  6336. */
  6337. proto.app.v1.User.Sex = {
  6338. UNDEFINE: 0,
  6339. MALE: 1,
  6340. FEMALE: 2
  6341. };
  6342. if (jspb.Message.GENERATE_TO_OBJECT) {
  6343. /**
  6344. * Creates an object representation of this proto.
  6345. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6346. * Optional fields that are not set will be set to undefined.
  6347. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6348. * For the list of reserved names please see:
  6349. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6350. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6351. * JSPB instance for transitional soy proto support:
  6352. * http://goto/soy-param-migration
  6353. * @return {!Object}
  6354. */
  6355. proto.app.v1.SignInRequest.prototype.toObject = function(opt_includeInstance) {
  6356. return proto.app.v1.SignInRequest.toObject(opt_includeInstance, this);
  6357. };
  6358. /**
  6359. * Static version of the {@see toObject} method.
  6360. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6361. * the JSPB instance for transitional soy proto support:
  6362. * http://goto/soy-param-migration
  6363. * @param {!proto.app.v1.SignInRequest} msg The msg instance to transform.
  6364. * @return {!Object}
  6365. * @suppress {unusedLocalVariables} f is only used for nested messages
  6366. */
  6367. proto.app.v1.SignInRequest.toObject = function(includeInstance, msg) {
  6368. var f, obj = {
  6369. name: jspb.Message.getFieldWithDefault(msg, 1, ""),
  6370. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  6371. deviceid: jspb.Message.getFieldWithDefault(msg, 3, "")
  6372. };
  6373. if (includeInstance) {
  6374. obj.$jspbMessageInstance = msg;
  6375. }
  6376. return obj;
  6377. };
  6378. }
  6379. /**
  6380. * Deserializes binary data (in protobuf wire format).
  6381. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6382. * @return {!proto.app.v1.SignInRequest}
  6383. */
  6384. proto.app.v1.SignInRequest.deserializeBinary = function(bytes) {
  6385. var reader = new jspb.BinaryReader(bytes);
  6386. var msg = new proto.app.v1.SignInRequest;
  6387. return proto.app.v1.SignInRequest.deserializeBinaryFromReader(msg, reader);
  6388. };
  6389. /**
  6390. * Deserializes binary data (in protobuf wire format) from the
  6391. * given reader into the given message object.
  6392. * @param {!proto.app.v1.SignInRequest} msg The message object to deserialize into.
  6393. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6394. * @return {!proto.app.v1.SignInRequest}
  6395. */
  6396. proto.app.v1.SignInRequest.deserializeBinaryFromReader = function(msg, reader) {
  6397. while (reader.nextField()) {
  6398. if (reader.isEndGroup()) {
  6399. break;
  6400. }
  6401. var field = reader.getFieldNumber();
  6402. switch (field) {
  6403. case 1:
  6404. var value = /** @type {string} */ (reader.readString());
  6405. msg.setName(value);
  6406. break;
  6407. case 2:
  6408. var value = /** @type {string} */ (reader.readString());
  6409. msg.setPassword(value);
  6410. break;
  6411. case 3:
  6412. var value = /** @type {string} */ (reader.readString());
  6413. msg.setDeviceid(value);
  6414. break;
  6415. default:
  6416. reader.skipField();
  6417. break;
  6418. }
  6419. }
  6420. return msg;
  6421. };
  6422. /**
  6423. * Serializes the message to binary data (in protobuf wire format).
  6424. * @return {!Uint8Array}
  6425. */
  6426. proto.app.v1.SignInRequest.prototype.serializeBinary = function() {
  6427. var writer = new jspb.BinaryWriter();
  6428. proto.app.v1.SignInRequest.serializeBinaryToWriter(this, writer);
  6429. return writer.getResultBuffer();
  6430. };
  6431. /**
  6432. * Serializes the given message to binary data (in protobuf wire
  6433. * format), writing to the given BinaryWriter.
  6434. * @param {!proto.app.v1.SignInRequest} message
  6435. * @param {!jspb.BinaryWriter} writer
  6436. * @suppress {unusedLocalVariables} f is only used for nested messages
  6437. */
  6438. proto.app.v1.SignInRequest.serializeBinaryToWriter = function(message, writer) {
  6439. var f = undefined;
  6440. f = message.getName();
  6441. if (f.length > 0) {
  6442. writer.writeString(
  6443. 1,
  6444. f
  6445. );
  6446. }
  6447. f = message.getPassword();
  6448. if (f.length > 0) {
  6449. writer.writeString(
  6450. 2,
  6451. f
  6452. );
  6453. }
  6454. f = message.getDeviceid();
  6455. if (f.length > 0) {
  6456. writer.writeString(
  6457. 3,
  6458. f
  6459. );
  6460. }
  6461. };
  6462. /**
  6463. * optional string name = 1;
  6464. * @return {string}
  6465. */
  6466. proto.app.v1.SignInRequest.prototype.getName = function() {
  6467. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6468. };
  6469. /**
  6470. * @param {string} value
  6471. * @return {!proto.app.v1.SignInRequest} returns this
  6472. */
  6473. proto.app.v1.SignInRequest.prototype.setName = function(value) {
  6474. return jspb.Message.setProto3StringField(this, 1, value);
  6475. };
  6476. /**
  6477. * optional string password = 2;
  6478. * @return {string}
  6479. */
  6480. proto.app.v1.SignInRequest.prototype.getPassword = function() {
  6481. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  6482. };
  6483. /**
  6484. * @param {string} value
  6485. * @return {!proto.app.v1.SignInRequest} returns this
  6486. */
  6487. proto.app.v1.SignInRequest.prototype.setPassword = function(value) {
  6488. return jspb.Message.setProto3StringField(this, 2, value);
  6489. };
  6490. /**
  6491. * optional string deviceId = 3;
  6492. * @return {string}
  6493. */
  6494. proto.app.v1.SignInRequest.prototype.getDeviceid = function() {
  6495. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  6496. };
  6497. /**
  6498. * @param {string} value
  6499. * @return {!proto.app.v1.SignInRequest} returns this
  6500. */
  6501. proto.app.v1.SignInRequest.prototype.setDeviceid = function(value) {
  6502. return jspb.Message.setProto3StringField(this, 3, value);
  6503. };
  6504. if (jspb.Message.GENERATE_TO_OBJECT) {
  6505. /**
  6506. * Creates an object representation of this proto.
  6507. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6508. * Optional fields that are not set will be set to undefined.
  6509. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6510. * For the list of reserved names please see:
  6511. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6512. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6513. * JSPB instance for transitional soy proto support:
  6514. * http://goto/soy-param-migration
  6515. * @return {!Object}
  6516. */
  6517. proto.app.v1.GameStartRequest.prototype.toObject = function(opt_includeInstance) {
  6518. return proto.app.v1.GameStartRequest.toObject(opt_includeInstance, this);
  6519. };
  6520. /**
  6521. * Static version of the {@see toObject} method.
  6522. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6523. * the JSPB instance for transitional soy proto support:
  6524. * http://goto/soy-param-migration
  6525. * @param {!proto.app.v1.GameStartRequest} msg The msg instance to transform.
  6526. * @return {!Object}
  6527. * @suppress {unusedLocalVariables} f is only used for nested messages
  6528. */
  6529. proto.app.v1.GameStartRequest.toObject = function(includeInstance, msg) {
  6530. var f, obj = {
  6531. projectId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  6532. mapRouteId: jspb.Message.getFieldWithDefault(msg, 2, 0)
  6533. };
  6534. if (includeInstance) {
  6535. obj.$jspbMessageInstance = msg;
  6536. }
  6537. return obj;
  6538. };
  6539. }
  6540. /**
  6541. * Deserializes binary data (in protobuf wire format).
  6542. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6543. * @return {!proto.app.v1.GameStartRequest}
  6544. */
  6545. proto.app.v1.GameStartRequest.deserializeBinary = function(bytes) {
  6546. var reader = new jspb.BinaryReader(bytes);
  6547. var msg = new proto.app.v1.GameStartRequest;
  6548. return proto.app.v1.GameStartRequest.deserializeBinaryFromReader(msg, reader);
  6549. };
  6550. /**
  6551. * Deserializes binary data (in protobuf wire format) from the
  6552. * given reader into the given message object.
  6553. * @param {!proto.app.v1.GameStartRequest} msg The message object to deserialize into.
  6554. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6555. * @return {!proto.app.v1.GameStartRequest}
  6556. */
  6557. proto.app.v1.GameStartRequest.deserializeBinaryFromReader = function(msg, reader) {
  6558. while (reader.nextField()) {
  6559. if (reader.isEndGroup()) {
  6560. break;
  6561. }
  6562. var field = reader.getFieldNumber();
  6563. switch (field) {
  6564. case 1:
  6565. var value = /** @type {number} */ (reader.readInt64());
  6566. msg.setProjectId(value);
  6567. break;
  6568. case 2:
  6569. var value = /** @type {number} */ (reader.readInt64());
  6570. msg.setMapRouteId(value);
  6571. break;
  6572. default:
  6573. reader.skipField();
  6574. break;
  6575. }
  6576. }
  6577. return msg;
  6578. };
  6579. /**
  6580. * Serializes the message to binary data (in protobuf wire format).
  6581. * @return {!Uint8Array}
  6582. */
  6583. proto.app.v1.GameStartRequest.prototype.serializeBinary = function() {
  6584. var writer = new jspb.BinaryWriter();
  6585. proto.app.v1.GameStartRequest.serializeBinaryToWriter(this, writer);
  6586. return writer.getResultBuffer();
  6587. };
  6588. /**
  6589. * Serializes the given message to binary data (in protobuf wire
  6590. * format), writing to the given BinaryWriter.
  6591. * @param {!proto.app.v1.GameStartRequest} message
  6592. * @param {!jspb.BinaryWriter} writer
  6593. * @suppress {unusedLocalVariables} f is only used for nested messages
  6594. */
  6595. proto.app.v1.GameStartRequest.serializeBinaryToWriter = function(message, writer) {
  6596. var f = undefined;
  6597. f = message.getProjectId();
  6598. if (f !== 0) {
  6599. writer.writeInt64(
  6600. 1,
  6601. f
  6602. );
  6603. }
  6604. f = message.getMapRouteId();
  6605. if (f !== 0) {
  6606. writer.writeInt64(
  6607. 2,
  6608. f
  6609. );
  6610. }
  6611. };
  6612. /**
  6613. * optional int64 project_id = 1;
  6614. * @return {number}
  6615. */
  6616. proto.app.v1.GameStartRequest.prototype.getProjectId = function() {
  6617. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6618. };
  6619. /**
  6620. * @param {number} value
  6621. * @return {!proto.app.v1.GameStartRequest} returns this
  6622. */
  6623. proto.app.v1.GameStartRequest.prototype.setProjectId = function(value) {
  6624. return jspb.Message.setProto3IntField(this, 1, value);
  6625. };
  6626. /**
  6627. * optional int64 map_route_id = 2;
  6628. * @return {number}
  6629. */
  6630. proto.app.v1.GameStartRequest.prototype.getMapRouteId = function() {
  6631. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  6632. };
  6633. /**
  6634. * @param {number} value
  6635. * @return {!proto.app.v1.GameStartRequest} returns this
  6636. */
  6637. proto.app.v1.GameStartRequest.prototype.setMapRouteId = function(value) {
  6638. return jspb.Message.setProto3IntField(this, 2, value);
  6639. };
  6640. if (jspb.Message.GENERATE_TO_OBJECT) {
  6641. /**
  6642. * Creates an object representation of this proto.
  6643. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6644. * Optional fields that are not set will be set to undefined.
  6645. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6646. * For the list of reserved names please see:
  6647. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6648. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6649. * JSPB instance for transitional soy proto support:
  6650. * http://goto/soy-param-migration
  6651. * @return {!Object}
  6652. */
  6653. proto.app.v1.GameSaveUploadRequest.prototype.toObject = function(opt_includeInstance) {
  6654. return proto.app.v1.GameSaveUploadRequest.toObject(opt_includeInstance, this);
  6655. };
  6656. /**
  6657. * Static version of the {@see toObject} method.
  6658. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6659. * the JSPB instance for transitional soy proto support:
  6660. * http://goto/soy-param-migration
  6661. * @param {!proto.app.v1.GameSaveUploadRequest} msg The msg instance to transform.
  6662. * @return {!Object}
  6663. * @suppress {unusedLocalVariables} f is only used for nested messages
  6664. */
  6665. proto.app.v1.GameSaveUploadRequest.toObject = function(includeInstance, msg) {
  6666. var f, obj = {
  6667. gameSave: (f = msg.getGameSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  6668. };
  6669. if (includeInstance) {
  6670. obj.$jspbMessageInstance = msg;
  6671. }
  6672. return obj;
  6673. };
  6674. }
  6675. /**
  6676. * Deserializes binary data (in protobuf wire format).
  6677. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6678. * @return {!proto.app.v1.GameSaveUploadRequest}
  6679. */
  6680. proto.app.v1.GameSaveUploadRequest.deserializeBinary = function(bytes) {
  6681. var reader = new jspb.BinaryReader(bytes);
  6682. var msg = new proto.app.v1.GameSaveUploadRequest;
  6683. return proto.app.v1.GameSaveUploadRequest.deserializeBinaryFromReader(msg, reader);
  6684. };
  6685. /**
  6686. * Deserializes binary data (in protobuf wire format) from the
  6687. * given reader into the given message object.
  6688. * @param {!proto.app.v1.GameSaveUploadRequest} msg The message object to deserialize into.
  6689. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6690. * @return {!proto.app.v1.GameSaveUploadRequest}
  6691. */
  6692. proto.app.v1.GameSaveUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
  6693. while (reader.nextField()) {
  6694. if (reader.isEndGroup()) {
  6695. break;
  6696. }
  6697. var field = reader.getFieldNumber();
  6698. switch (field) {
  6699. case 1:
  6700. var value = new proto.app.v1.GameSave;
  6701. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  6702. msg.setGameSave(value);
  6703. break;
  6704. default:
  6705. reader.skipField();
  6706. break;
  6707. }
  6708. }
  6709. return msg;
  6710. };
  6711. /**
  6712. * Serializes the message to binary data (in protobuf wire format).
  6713. * @return {!Uint8Array}
  6714. */
  6715. proto.app.v1.GameSaveUploadRequest.prototype.serializeBinary = function() {
  6716. var writer = new jspb.BinaryWriter();
  6717. proto.app.v1.GameSaveUploadRequest.serializeBinaryToWriter(this, writer);
  6718. return writer.getResultBuffer();
  6719. };
  6720. /**
  6721. * Serializes the given message to binary data (in protobuf wire
  6722. * format), writing to the given BinaryWriter.
  6723. * @param {!proto.app.v1.GameSaveUploadRequest} message
  6724. * @param {!jspb.BinaryWriter} writer
  6725. * @suppress {unusedLocalVariables} f is only used for nested messages
  6726. */
  6727. proto.app.v1.GameSaveUploadRequest.serializeBinaryToWriter = function(message, writer) {
  6728. var f = undefined;
  6729. f = message.getGameSave();
  6730. if (f != null) {
  6731. writer.writeMessage(
  6732. 1,
  6733. f,
  6734. proto.app.v1.GameSave.serializeBinaryToWriter
  6735. );
  6736. }
  6737. };
  6738. /**
  6739. * optional GameSave game_save = 1;
  6740. * @return {?proto.app.v1.GameSave}
  6741. */
  6742. proto.app.v1.GameSaveUploadRequest.prototype.getGameSave = function() {
  6743. return /** @type{?proto.app.v1.GameSave} */ (
  6744. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 1));
  6745. };
  6746. /**
  6747. * @param {?proto.app.v1.GameSave|undefined} value
  6748. * @return {!proto.app.v1.GameSaveUploadRequest} returns this
  6749. */
  6750. proto.app.v1.GameSaveUploadRequest.prototype.setGameSave = function(value) {
  6751. return jspb.Message.setWrapperField(this, 1, value);
  6752. };
  6753. /**
  6754. * Clears the message field making it undefined.
  6755. * @return {!proto.app.v1.GameSaveUploadRequest} returns this
  6756. */
  6757. proto.app.v1.GameSaveUploadRequest.prototype.clearGameSave = function() {
  6758. return this.setGameSave(undefined);
  6759. };
  6760. /**
  6761. * Returns whether this field is set.
  6762. * @return {boolean}
  6763. */
  6764. proto.app.v1.GameSaveUploadRequest.prototype.hasGameSave = function() {
  6765. return jspb.Message.getField(this, 1) != null;
  6766. };
  6767. if (jspb.Message.GENERATE_TO_OBJECT) {
  6768. /**
  6769. * Creates an object representation of this proto.
  6770. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6771. * Optional fields that are not set will be set to undefined.
  6772. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6773. * For the list of reserved names please see:
  6774. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6775. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6776. * JSPB instance for transitional soy proto support:
  6777. * http://goto/soy-param-migration
  6778. * @return {!Object}
  6779. */
  6780. proto.app.v1.DefaultReply.prototype.toObject = function(opt_includeInstance) {
  6781. return proto.app.v1.DefaultReply.toObject(opt_includeInstance, this);
  6782. };
  6783. /**
  6784. * Static version of the {@see toObject} method.
  6785. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6786. * the JSPB instance for transitional soy proto support:
  6787. * http://goto/soy-param-migration
  6788. * @param {!proto.app.v1.DefaultReply} msg The msg instance to transform.
  6789. * @return {!Object}
  6790. * @suppress {unusedLocalVariables} f is only used for nested messages
  6791. */
  6792. proto.app.v1.DefaultReply.toObject = function(includeInstance, msg) {
  6793. var f, obj = {
  6794. };
  6795. if (includeInstance) {
  6796. obj.$jspbMessageInstance = msg;
  6797. }
  6798. return obj;
  6799. };
  6800. }
  6801. /**
  6802. * Deserializes binary data (in protobuf wire format).
  6803. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6804. * @return {!proto.app.v1.DefaultReply}
  6805. */
  6806. proto.app.v1.DefaultReply.deserializeBinary = function(bytes) {
  6807. var reader = new jspb.BinaryReader(bytes);
  6808. var msg = new proto.app.v1.DefaultReply;
  6809. return proto.app.v1.DefaultReply.deserializeBinaryFromReader(msg, reader);
  6810. };
  6811. /**
  6812. * Deserializes binary data (in protobuf wire format) from the
  6813. * given reader into the given message object.
  6814. * @param {!proto.app.v1.DefaultReply} msg The message object to deserialize into.
  6815. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6816. * @return {!proto.app.v1.DefaultReply}
  6817. */
  6818. proto.app.v1.DefaultReply.deserializeBinaryFromReader = function(msg, reader) {
  6819. while (reader.nextField()) {
  6820. if (reader.isEndGroup()) {
  6821. break;
  6822. }
  6823. var field = reader.getFieldNumber();
  6824. switch (field) {
  6825. default:
  6826. reader.skipField();
  6827. break;
  6828. }
  6829. }
  6830. return msg;
  6831. };
  6832. /**
  6833. * Serializes the message to binary data (in protobuf wire format).
  6834. * @return {!Uint8Array}
  6835. */
  6836. proto.app.v1.DefaultReply.prototype.serializeBinary = function() {
  6837. var writer = new jspb.BinaryWriter();
  6838. proto.app.v1.DefaultReply.serializeBinaryToWriter(this, writer);
  6839. return writer.getResultBuffer();
  6840. };
  6841. /**
  6842. * Serializes the given message to binary data (in protobuf wire
  6843. * format), writing to the given BinaryWriter.
  6844. * @param {!proto.app.v1.DefaultReply} message
  6845. * @param {!jspb.BinaryWriter} writer
  6846. * @suppress {unusedLocalVariables} f is only used for nested messages
  6847. */
  6848. proto.app.v1.DefaultReply.serializeBinaryToWriter = function(message, writer) {
  6849. var f = undefined;
  6850. };
  6851. if (jspb.Message.GENERATE_TO_OBJECT) {
  6852. /**
  6853. * Creates an object representation of this proto.
  6854. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6855. * Optional fields that are not set will be set to undefined.
  6856. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6857. * For the list of reserved names please see:
  6858. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6859. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6860. * JSPB instance for transitional soy proto support:
  6861. * http://goto/soy-param-migration
  6862. * @return {!Object}
  6863. */
  6864. proto.app.v1.SignInReply.prototype.toObject = function(opt_includeInstance) {
  6865. return proto.app.v1.SignInReply.toObject(opt_includeInstance, this);
  6866. };
  6867. /**
  6868. * Static version of the {@see toObject} method.
  6869. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6870. * the JSPB instance for transitional soy proto support:
  6871. * http://goto/soy-param-migration
  6872. * @param {!proto.app.v1.SignInReply} msg The msg instance to transform.
  6873. * @return {!Object}
  6874. * @suppress {unusedLocalVariables} f is only used for nested messages
  6875. */
  6876. proto.app.v1.SignInReply.toObject = function(includeInstance, msg) {
  6877. var f, obj = {
  6878. token: jspb.Message.getFieldWithDefault(msg, 1, "")
  6879. };
  6880. if (includeInstance) {
  6881. obj.$jspbMessageInstance = msg;
  6882. }
  6883. return obj;
  6884. };
  6885. }
  6886. /**
  6887. * Deserializes binary data (in protobuf wire format).
  6888. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6889. * @return {!proto.app.v1.SignInReply}
  6890. */
  6891. proto.app.v1.SignInReply.deserializeBinary = function(bytes) {
  6892. var reader = new jspb.BinaryReader(bytes);
  6893. var msg = new proto.app.v1.SignInReply;
  6894. return proto.app.v1.SignInReply.deserializeBinaryFromReader(msg, reader);
  6895. };
  6896. /**
  6897. * Deserializes binary data (in protobuf wire format) from the
  6898. * given reader into the given message object.
  6899. * @param {!proto.app.v1.SignInReply} msg The message object to deserialize into.
  6900. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6901. * @return {!proto.app.v1.SignInReply}
  6902. */
  6903. proto.app.v1.SignInReply.deserializeBinaryFromReader = function(msg, reader) {
  6904. while (reader.nextField()) {
  6905. if (reader.isEndGroup()) {
  6906. break;
  6907. }
  6908. var field = reader.getFieldNumber();
  6909. switch (field) {
  6910. case 1:
  6911. var value = /** @type {string} */ (reader.readString());
  6912. msg.setToken(value);
  6913. break;
  6914. default:
  6915. reader.skipField();
  6916. break;
  6917. }
  6918. }
  6919. return msg;
  6920. };
  6921. /**
  6922. * Serializes the message to binary data (in protobuf wire format).
  6923. * @return {!Uint8Array}
  6924. */
  6925. proto.app.v1.SignInReply.prototype.serializeBinary = function() {
  6926. var writer = new jspb.BinaryWriter();
  6927. proto.app.v1.SignInReply.serializeBinaryToWriter(this, writer);
  6928. return writer.getResultBuffer();
  6929. };
  6930. /**
  6931. * Serializes the given message to binary data (in protobuf wire
  6932. * format), writing to the given BinaryWriter.
  6933. * @param {!proto.app.v1.SignInReply} message
  6934. * @param {!jspb.BinaryWriter} writer
  6935. * @suppress {unusedLocalVariables} f is only used for nested messages
  6936. */
  6937. proto.app.v1.SignInReply.serializeBinaryToWriter = function(message, writer) {
  6938. var f = undefined;
  6939. f = message.getToken();
  6940. if (f.length > 0) {
  6941. writer.writeString(
  6942. 1,
  6943. f
  6944. );
  6945. }
  6946. };
  6947. /**
  6948. * optional string token = 1;
  6949. * @return {string}
  6950. */
  6951. proto.app.v1.SignInReply.prototype.getToken = function() {
  6952. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6953. };
  6954. /**
  6955. * @param {string} value
  6956. * @return {!proto.app.v1.SignInReply} returns this
  6957. */
  6958. proto.app.v1.SignInReply.prototype.setToken = function(value) {
  6959. return jspb.Message.setProto3StringField(this, 1, value);
  6960. };
  6961. if (jspb.Message.GENERATE_TO_OBJECT) {
  6962. /**
  6963. * Creates an object representation of this proto.
  6964. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6965. * Optional fields that are not set will be set to undefined.
  6966. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6967. * For the list of reserved names please see:
  6968. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6969. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6970. * JSPB instance for transitional soy proto support:
  6971. * http://goto/soy-param-migration
  6972. * @return {!Object}
  6973. */
  6974. proto.app.v1.HistoryGameDetailReply.prototype.toObject = function(opt_includeInstance) {
  6975. return proto.app.v1.HistoryGameDetailReply.toObject(opt_includeInstance, this);
  6976. };
  6977. /**
  6978. * Static version of the {@see toObject} method.
  6979. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6980. * the JSPB instance for transitional soy proto support:
  6981. * http://goto/soy-param-migration
  6982. * @param {!proto.app.v1.HistoryGameDetailReply} msg The msg instance to transform.
  6983. * @return {!Object}
  6984. * @suppress {unusedLocalVariables} f is only used for nested messages
  6985. */
  6986. proto.app.v1.HistoryGameDetailReply.toObject = function(includeInstance, msg) {
  6987. var f, obj = {
  6988. gameData: (f = msg.getGameData()) && proto.app.v1.GameData.toObject(includeInstance, f),
  6989. gameSave: (f = msg.getGameSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  6990. };
  6991. if (includeInstance) {
  6992. obj.$jspbMessageInstance = msg;
  6993. }
  6994. return obj;
  6995. };
  6996. }
  6997. /**
  6998. * Deserializes binary data (in protobuf wire format).
  6999. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7000. * @return {!proto.app.v1.HistoryGameDetailReply}
  7001. */
  7002. proto.app.v1.HistoryGameDetailReply.deserializeBinary = function(bytes) {
  7003. var reader = new jspb.BinaryReader(bytes);
  7004. var msg = new proto.app.v1.HistoryGameDetailReply;
  7005. return proto.app.v1.HistoryGameDetailReply.deserializeBinaryFromReader(msg, reader);
  7006. };
  7007. /**
  7008. * Deserializes binary data (in protobuf wire format) from the
  7009. * given reader into the given message object.
  7010. * @param {!proto.app.v1.HistoryGameDetailReply} msg The message object to deserialize into.
  7011. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7012. * @return {!proto.app.v1.HistoryGameDetailReply}
  7013. */
  7014. proto.app.v1.HistoryGameDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  7015. while (reader.nextField()) {
  7016. if (reader.isEndGroup()) {
  7017. break;
  7018. }
  7019. var field = reader.getFieldNumber();
  7020. switch (field) {
  7021. case 1:
  7022. var value = new proto.app.v1.GameData;
  7023. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  7024. msg.setGameData(value);
  7025. break;
  7026. case 2:
  7027. var value = new proto.app.v1.GameSave;
  7028. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  7029. msg.setGameSave(value);
  7030. break;
  7031. default:
  7032. reader.skipField();
  7033. break;
  7034. }
  7035. }
  7036. return msg;
  7037. };
  7038. /**
  7039. * Serializes the message to binary data (in protobuf wire format).
  7040. * @return {!Uint8Array}
  7041. */
  7042. proto.app.v1.HistoryGameDetailReply.prototype.serializeBinary = function() {
  7043. var writer = new jspb.BinaryWriter();
  7044. proto.app.v1.HistoryGameDetailReply.serializeBinaryToWriter(this, writer);
  7045. return writer.getResultBuffer();
  7046. };
  7047. /**
  7048. * Serializes the given message to binary data (in protobuf wire
  7049. * format), writing to the given BinaryWriter.
  7050. * @param {!proto.app.v1.HistoryGameDetailReply} message
  7051. * @param {!jspb.BinaryWriter} writer
  7052. * @suppress {unusedLocalVariables} f is only used for nested messages
  7053. */
  7054. proto.app.v1.HistoryGameDetailReply.serializeBinaryToWriter = function(message, writer) {
  7055. var f = undefined;
  7056. f = message.getGameData();
  7057. if (f != null) {
  7058. writer.writeMessage(
  7059. 1,
  7060. f,
  7061. proto.app.v1.GameData.serializeBinaryToWriter
  7062. );
  7063. }
  7064. f = message.getGameSave();
  7065. if (f != null) {
  7066. writer.writeMessage(
  7067. 2,
  7068. f,
  7069. proto.app.v1.GameSave.serializeBinaryToWriter
  7070. );
  7071. }
  7072. };
  7073. /**
  7074. * optional GameData game_data = 1;
  7075. * @return {?proto.app.v1.GameData}
  7076. */
  7077. proto.app.v1.HistoryGameDetailReply.prototype.getGameData = function() {
  7078. return /** @type{?proto.app.v1.GameData} */ (
  7079. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  7080. };
  7081. /**
  7082. * @param {?proto.app.v1.GameData|undefined} value
  7083. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7084. */
  7085. proto.app.v1.HistoryGameDetailReply.prototype.setGameData = function(value) {
  7086. return jspb.Message.setWrapperField(this, 1, value);
  7087. };
  7088. /**
  7089. * Clears the message field making it undefined.
  7090. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7091. */
  7092. proto.app.v1.HistoryGameDetailReply.prototype.clearGameData = function() {
  7093. return this.setGameData(undefined);
  7094. };
  7095. /**
  7096. * Returns whether this field is set.
  7097. * @return {boolean}
  7098. */
  7099. proto.app.v1.HistoryGameDetailReply.prototype.hasGameData = function() {
  7100. return jspb.Message.getField(this, 1) != null;
  7101. };
  7102. /**
  7103. * optional GameSave game_save = 2;
  7104. * @return {?proto.app.v1.GameSave}
  7105. */
  7106. proto.app.v1.HistoryGameDetailReply.prototype.getGameSave = function() {
  7107. return /** @type{?proto.app.v1.GameSave} */ (
  7108. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 2));
  7109. };
  7110. /**
  7111. * @param {?proto.app.v1.GameSave|undefined} value
  7112. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7113. */
  7114. proto.app.v1.HistoryGameDetailReply.prototype.setGameSave = function(value) {
  7115. return jspb.Message.setWrapperField(this, 2, value);
  7116. };
  7117. /**
  7118. * Clears the message field making it undefined.
  7119. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7120. */
  7121. proto.app.v1.HistoryGameDetailReply.prototype.clearGameSave = function() {
  7122. return this.setGameSave(undefined);
  7123. };
  7124. /**
  7125. * Returns whether this field is set.
  7126. * @return {boolean}
  7127. */
  7128. proto.app.v1.HistoryGameDetailReply.prototype.hasGameSave = function() {
  7129. return jspb.Message.getField(this, 2) != null;
  7130. };
  7131. /**
  7132. * List of repeated fields within this message type.
  7133. * @private {!Array<number>}
  7134. * @const
  7135. */
  7136. proto.app.v1.MyHistoryGameReply.repeatedFields_ = [1];
  7137. if (jspb.Message.GENERATE_TO_OBJECT) {
  7138. /**
  7139. * Creates an object representation of this proto.
  7140. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7141. * Optional fields that are not set will be set to undefined.
  7142. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7143. * For the list of reserved names please see:
  7144. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7145. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7146. * JSPB instance for transitional soy proto support:
  7147. * http://goto/soy-param-migration
  7148. * @return {!Object}
  7149. */
  7150. proto.app.v1.MyHistoryGameReply.prototype.toObject = function(opt_includeInstance) {
  7151. return proto.app.v1.MyHistoryGameReply.toObject(opt_includeInstance, this);
  7152. };
  7153. /**
  7154. * Static version of the {@see toObject} method.
  7155. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7156. * the JSPB instance for transitional soy proto support:
  7157. * http://goto/soy-param-migration
  7158. * @param {!proto.app.v1.MyHistoryGameReply} msg The msg instance to transform.
  7159. * @return {!Object}
  7160. * @suppress {unusedLocalVariables} f is only used for nested messages
  7161. */
  7162. proto.app.v1.MyHistoryGameReply.toObject = function(includeInstance, msg) {
  7163. var f, obj = {
  7164. gamesList: jspb.Message.toObjectList(msg.getGamesList(),
  7165. proto.app.v1.GameHistory.toObject, includeInstance)
  7166. };
  7167. if (includeInstance) {
  7168. obj.$jspbMessageInstance = msg;
  7169. }
  7170. return obj;
  7171. };
  7172. }
  7173. /**
  7174. * Deserializes binary data (in protobuf wire format).
  7175. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7176. * @return {!proto.app.v1.MyHistoryGameReply}
  7177. */
  7178. proto.app.v1.MyHistoryGameReply.deserializeBinary = function(bytes) {
  7179. var reader = new jspb.BinaryReader(bytes);
  7180. var msg = new proto.app.v1.MyHistoryGameReply;
  7181. return proto.app.v1.MyHistoryGameReply.deserializeBinaryFromReader(msg, reader);
  7182. };
  7183. /**
  7184. * Deserializes binary data (in protobuf wire format) from the
  7185. * given reader into the given message object.
  7186. * @param {!proto.app.v1.MyHistoryGameReply} msg The message object to deserialize into.
  7187. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7188. * @return {!proto.app.v1.MyHistoryGameReply}
  7189. */
  7190. proto.app.v1.MyHistoryGameReply.deserializeBinaryFromReader = function(msg, reader) {
  7191. while (reader.nextField()) {
  7192. if (reader.isEndGroup()) {
  7193. break;
  7194. }
  7195. var field = reader.getFieldNumber();
  7196. switch (field) {
  7197. case 1:
  7198. var value = new proto.app.v1.GameHistory;
  7199. reader.readMessage(value,proto.app.v1.GameHistory.deserializeBinaryFromReader);
  7200. msg.addGames(value);
  7201. break;
  7202. default:
  7203. reader.skipField();
  7204. break;
  7205. }
  7206. }
  7207. return msg;
  7208. };
  7209. /**
  7210. * Serializes the message to binary data (in protobuf wire format).
  7211. * @return {!Uint8Array}
  7212. */
  7213. proto.app.v1.MyHistoryGameReply.prototype.serializeBinary = function() {
  7214. var writer = new jspb.BinaryWriter();
  7215. proto.app.v1.MyHistoryGameReply.serializeBinaryToWriter(this, writer);
  7216. return writer.getResultBuffer();
  7217. };
  7218. /**
  7219. * Serializes the given message to binary data (in protobuf wire
  7220. * format), writing to the given BinaryWriter.
  7221. * @param {!proto.app.v1.MyHistoryGameReply} message
  7222. * @param {!jspb.BinaryWriter} writer
  7223. * @suppress {unusedLocalVariables} f is only used for nested messages
  7224. */
  7225. proto.app.v1.MyHistoryGameReply.serializeBinaryToWriter = function(message, writer) {
  7226. var f = undefined;
  7227. f = message.getGamesList();
  7228. if (f.length > 0) {
  7229. writer.writeRepeatedMessage(
  7230. 1,
  7231. f,
  7232. proto.app.v1.GameHistory.serializeBinaryToWriter
  7233. );
  7234. }
  7235. };
  7236. /**
  7237. * repeated GameHistory games = 1;
  7238. * @return {!Array<!proto.app.v1.GameHistory>}
  7239. */
  7240. proto.app.v1.MyHistoryGameReply.prototype.getGamesList = function() {
  7241. return /** @type{!Array<!proto.app.v1.GameHistory>} */ (
  7242. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameHistory, 1));
  7243. };
  7244. /**
  7245. * @param {!Array<!proto.app.v1.GameHistory>} value
  7246. * @return {!proto.app.v1.MyHistoryGameReply} returns this
  7247. */
  7248. proto.app.v1.MyHistoryGameReply.prototype.setGamesList = function(value) {
  7249. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  7250. };
  7251. /**
  7252. * @param {!proto.app.v1.GameHistory=} opt_value
  7253. * @param {number=} opt_index
  7254. * @return {!proto.app.v1.GameHistory}
  7255. */
  7256. proto.app.v1.MyHistoryGameReply.prototype.addGames = function(opt_value, opt_index) {
  7257. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.GameHistory, opt_index);
  7258. };
  7259. /**
  7260. * Clears the list making it empty but non-null.
  7261. * @return {!proto.app.v1.MyHistoryGameReply} returns this
  7262. */
  7263. proto.app.v1.MyHistoryGameReply.prototype.clearGamesList = function() {
  7264. return this.setGamesList([]);
  7265. };
  7266. if (jspb.Message.GENERATE_TO_OBJECT) {
  7267. /**
  7268. * Creates an object representation of this proto.
  7269. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7270. * Optional fields that are not set will be set to undefined.
  7271. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7272. * For the list of reserved names please see:
  7273. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7274. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7275. * JSPB instance for transitional soy proto support:
  7276. * http://goto/soy-param-migration
  7277. * @return {!Object}
  7278. */
  7279. proto.app.v1.ProviderInfoSimple.prototype.toObject = function(opt_includeInstance) {
  7280. return proto.app.v1.ProviderInfoSimple.toObject(opt_includeInstance, this);
  7281. };
  7282. /**
  7283. * Static version of the {@see toObject} method.
  7284. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7285. * the JSPB instance for transitional soy proto support:
  7286. * http://goto/soy-param-migration
  7287. * @param {!proto.app.v1.ProviderInfoSimple} msg The msg instance to transform.
  7288. * @return {!Object}
  7289. * @suppress {unusedLocalVariables} f is only used for nested messages
  7290. */
  7291. proto.app.v1.ProviderInfoSimple.toObject = function(includeInstance, msg) {
  7292. var f, obj = {
  7293. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  7294. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  7295. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  7296. address: jspb.Message.getFieldWithDefault(msg, 4, ""),
  7297. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  7298. distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
  7299. isOpen: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
  7300. projectNum: jspb.Message.getFieldWithDefault(msg, 8, 0),
  7301. phone: jspb.Message.getFieldWithDefault(msg, 9, "")
  7302. };
  7303. if (includeInstance) {
  7304. obj.$jspbMessageInstance = msg;
  7305. }
  7306. return obj;
  7307. };
  7308. }
  7309. /**
  7310. * Deserializes binary data (in protobuf wire format).
  7311. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7312. * @return {!proto.app.v1.ProviderInfoSimple}
  7313. */
  7314. proto.app.v1.ProviderInfoSimple.deserializeBinary = function(bytes) {
  7315. var reader = new jspb.BinaryReader(bytes);
  7316. var msg = new proto.app.v1.ProviderInfoSimple;
  7317. return proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader(msg, reader);
  7318. };
  7319. /**
  7320. * Deserializes binary data (in protobuf wire format) from the
  7321. * given reader into the given message object.
  7322. * @param {!proto.app.v1.ProviderInfoSimple} msg The message object to deserialize into.
  7323. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7324. * @return {!proto.app.v1.ProviderInfoSimple}
  7325. */
  7326. proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader = function(msg, reader) {
  7327. while (reader.nextField()) {
  7328. if (reader.isEndGroup()) {
  7329. break;
  7330. }
  7331. var field = reader.getFieldNumber();
  7332. switch (field) {
  7333. case 1:
  7334. var value = /** @type {number} */ (reader.readInt64());
  7335. msg.setId(value);
  7336. break;
  7337. case 2:
  7338. var value = /** @type {string} */ (reader.readString());
  7339. msg.setName(value);
  7340. break;
  7341. case 3:
  7342. var value = new proto.app.v1.Position;
  7343. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  7344. msg.setPosition(value);
  7345. break;
  7346. case 4:
  7347. var value = /** @type {string} */ (reader.readString());
  7348. msg.setAddress(value);
  7349. break;
  7350. case 5:
  7351. var value = new proto.app.v1.NetImage;
  7352. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  7353. msg.setImage(value);
  7354. break;
  7355. case 6:
  7356. var value = /** @type {number} */ (reader.readDouble());
  7357. msg.setDistance(value);
  7358. break;
  7359. case 7:
  7360. var value = /** @type {boolean} */ (reader.readBool());
  7361. msg.setIsOpen(value);
  7362. break;
  7363. case 8:
  7364. var value = /** @type {number} */ (reader.readInt32());
  7365. msg.setProjectNum(value);
  7366. break;
  7367. case 9:
  7368. var value = /** @type {string} */ (reader.readString());
  7369. msg.setPhone(value);
  7370. break;
  7371. default:
  7372. reader.skipField();
  7373. break;
  7374. }
  7375. }
  7376. return msg;
  7377. };
  7378. /**
  7379. * Serializes the message to binary data (in protobuf wire format).
  7380. * @return {!Uint8Array}
  7381. */
  7382. proto.app.v1.ProviderInfoSimple.prototype.serializeBinary = function() {
  7383. var writer = new jspb.BinaryWriter();
  7384. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter(this, writer);
  7385. return writer.getResultBuffer();
  7386. };
  7387. /**
  7388. * Serializes the given message to binary data (in protobuf wire
  7389. * format), writing to the given BinaryWriter.
  7390. * @param {!proto.app.v1.ProviderInfoSimple} message
  7391. * @param {!jspb.BinaryWriter} writer
  7392. * @suppress {unusedLocalVariables} f is only used for nested messages
  7393. */
  7394. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter = function(message, writer) {
  7395. var f = undefined;
  7396. f = message.getId();
  7397. if (f !== 0) {
  7398. writer.writeInt64(
  7399. 1,
  7400. f
  7401. );
  7402. }
  7403. f = message.getName();
  7404. if (f.length > 0) {
  7405. writer.writeString(
  7406. 2,
  7407. f
  7408. );
  7409. }
  7410. f = message.getPosition();
  7411. if (f != null) {
  7412. writer.writeMessage(
  7413. 3,
  7414. f,
  7415. proto.app.v1.Position.serializeBinaryToWriter
  7416. );
  7417. }
  7418. f = message.getAddress();
  7419. if (f.length > 0) {
  7420. writer.writeString(
  7421. 4,
  7422. f
  7423. );
  7424. }
  7425. f = message.getImage();
  7426. if (f != null) {
  7427. writer.writeMessage(
  7428. 5,
  7429. f,
  7430. proto.app.v1.NetImage.serializeBinaryToWriter
  7431. );
  7432. }
  7433. f = message.getDistance();
  7434. if (f !== 0.0) {
  7435. writer.writeDouble(
  7436. 6,
  7437. f
  7438. );
  7439. }
  7440. f = message.getIsOpen();
  7441. if (f) {
  7442. writer.writeBool(
  7443. 7,
  7444. f
  7445. );
  7446. }
  7447. f = message.getProjectNum();
  7448. if (f !== 0) {
  7449. writer.writeInt32(
  7450. 8,
  7451. f
  7452. );
  7453. }
  7454. f = message.getPhone();
  7455. if (f.length > 0) {
  7456. writer.writeString(
  7457. 9,
  7458. f
  7459. );
  7460. }
  7461. };
  7462. /**
  7463. * optional int64 id = 1;
  7464. * @return {number}
  7465. */
  7466. proto.app.v1.ProviderInfoSimple.prototype.getId = function() {
  7467. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  7468. };
  7469. /**
  7470. * @param {number} value
  7471. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7472. */
  7473. proto.app.v1.ProviderInfoSimple.prototype.setId = function(value) {
  7474. return jspb.Message.setProto3IntField(this, 1, value);
  7475. };
  7476. /**
  7477. * optional string name = 2;
  7478. * @return {string}
  7479. */
  7480. proto.app.v1.ProviderInfoSimple.prototype.getName = function() {
  7481. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  7482. };
  7483. /**
  7484. * @param {string} value
  7485. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7486. */
  7487. proto.app.v1.ProviderInfoSimple.prototype.setName = function(value) {
  7488. return jspb.Message.setProto3StringField(this, 2, value);
  7489. };
  7490. /**
  7491. * optional Position position = 3;
  7492. * @return {?proto.app.v1.Position}
  7493. */
  7494. proto.app.v1.ProviderInfoSimple.prototype.getPosition = function() {
  7495. return /** @type{?proto.app.v1.Position} */ (
  7496. jspb.Message.getWrapperField(this, proto.app.v1.Position, 3));
  7497. };
  7498. /**
  7499. * @param {?proto.app.v1.Position|undefined} value
  7500. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7501. */
  7502. proto.app.v1.ProviderInfoSimple.prototype.setPosition = function(value) {
  7503. return jspb.Message.setWrapperField(this, 3, value);
  7504. };
  7505. /**
  7506. * Clears the message field making it undefined.
  7507. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7508. */
  7509. proto.app.v1.ProviderInfoSimple.prototype.clearPosition = function() {
  7510. return this.setPosition(undefined);
  7511. };
  7512. /**
  7513. * Returns whether this field is set.
  7514. * @return {boolean}
  7515. */
  7516. proto.app.v1.ProviderInfoSimple.prototype.hasPosition = function() {
  7517. return jspb.Message.getField(this, 3) != null;
  7518. };
  7519. /**
  7520. * optional string address = 4;
  7521. * @return {string}
  7522. */
  7523. proto.app.v1.ProviderInfoSimple.prototype.getAddress = function() {
  7524. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  7525. };
  7526. /**
  7527. * @param {string} value
  7528. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7529. */
  7530. proto.app.v1.ProviderInfoSimple.prototype.setAddress = function(value) {
  7531. return jspb.Message.setProto3StringField(this, 4, value);
  7532. };
  7533. /**
  7534. * optional NetImage image = 5;
  7535. * @return {?proto.app.v1.NetImage}
  7536. */
  7537. proto.app.v1.ProviderInfoSimple.prototype.getImage = function() {
  7538. return /** @type{?proto.app.v1.NetImage} */ (
  7539. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 5));
  7540. };
  7541. /**
  7542. * @param {?proto.app.v1.NetImage|undefined} value
  7543. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7544. */
  7545. proto.app.v1.ProviderInfoSimple.prototype.setImage = function(value) {
  7546. return jspb.Message.setWrapperField(this, 5, value);
  7547. };
  7548. /**
  7549. * Clears the message field making it undefined.
  7550. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7551. */
  7552. proto.app.v1.ProviderInfoSimple.prototype.clearImage = function() {
  7553. return this.setImage(undefined);
  7554. };
  7555. /**
  7556. * Returns whether this field is set.
  7557. * @return {boolean}
  7558. */
  7559. proto.app.v1.ProviderInfoSimple.prototype.hasImage = function() {
  7560. return jspb.Message.getField(this, 5) != null;
  7561. };
  7562. /**
  7563. * optional double distance = 6;
  7564. * @return {number}
  7565. */
  7566. proto.app.v1.ProviderInfoSimple.prototype.getDistance = function() {
  7567. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
  7568. };
  7569. /**
  7570. * @param {number} value
  7571. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7572. */
  7573. proto.app.v1.ProviderInfoSimple.prototype.setDistance = function(value) {
  7574. return jspb.Message.setProto3FloatField(this, 6, value);
  7575. };
  7576. /**
  7577. * optional bool is_open = 7;
  7578. * @return {boolean}
  7579. */
  7580. proto.app.v1.ProviderInfoSimple.prototype.getIsOpen = function() {
  7581. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
  7582. };
  7583. /**
  7584. * @param {boolean} value
  7585. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7586. */
  7587. proto.app.v1.ProviderInfoSimple.prototype.setIsOpen = function(value) {
  7588. return jspb.Message.setProto3BooleanField(this, 7, value);
  7589. };
  7590. /**
  7591. * optional int32 project_num = 8;
  7592. * @return {number}
  7593. */
  7594. proto.app.v1.ProviderInfoSimple.prototype.getProjectNum = function() {
  7595. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
  7596. };
  7597. /**
  7598. * @param {number} value
  7599. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7600. */
  7601. proto.app.v1.ProviderInfoSimple.prototype.setProjectNum = function(value) {
  7602. return jspb.Message.setProto3IntField(this, 8, value);
  7603. };
  7604. /**
  7605. * optional string phone = 9;
  7606. * @return {string}
  7607. */
  7608. proto.app.v1.ProviderInfoSimple.prototype.getPhone = function() {
  7609. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
  7610. };
  7611. /**
  7612. * @param {string} value
  7613. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7614. */
  7615. proto.app.v1.ProviderInfoSimple.prototype.setPhone = function(value) {
  7616. return jspb.Message.setProto3StringField(this, 9, value);
  7617. };
  7618. /**
  7619. * List of repeated fields within this message type.
  7620. * @private {!Array<number>}
  7621. * @const
  7622. */
  7623. proto.app.v1.ProviderListReply.repeatedFields_ = [1];
  7624. if (jspb.Message.GENERATE_TO_OBJECT) {
  7625. /**
  7626. * Creates an object representation of this proto.
  7627. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7628. * Optional fields that are not set will be set to undefined.
  7629. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7630. * For the list of reserved names please see:
  7631. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7632. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7633. * JSPB instance for transitional soy proto support:
  7634. * http://goto/soy-param-migration
  7635. * @return {!Object}
  7636. */
  7637. proto.app.v1.ProviderListReply.prototype.toObject = function(opt_includeInstance) {
  7638. return proto.app.v1.ProviderListReply.toObject(opt_includeInstance, this);
  7639. };
  7640. /**
  7641. * Static version of the {@see toObject} method.
  7642. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7643. * the JSPB instance for transitional soy proto support:
  7644. * http://goto/soy-param-migration
  7645. * @param {!proto.app.v1.ProviderListReply} msg The msg instance to transform.
  7646. * @return {!Object}
  7647. * @suppress {unusedLocalVariables} f is only used for nested messages
  7648. */
  7649. proto.app.v1.ProviderListReply.toObject = function(includeInstance, msg) {
  7650. var f, obj = {
  7651. listList: jspb.Message.toObjectList(msg.getListList(),
  7652. proto.app.v1.ProviderInfoSimple.toObject, includeInstance)
  7653. };
  7654. if (includeInstance) {
  7655. obj.$jspbMessageInstance = msg;
  7656. }
  7657. return obj;
  7658. };
  7659. }
  7660. /**
  7661. * Deserializes binary data (in protobuf wire format).
  7662. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7663. * @return {!proto.app.v1.ProviderListReply}
  7664. */
  7665. proto.app.v1.ProviderListReply.deserializeBinary = function(bytes) {
  7666. var reader = new jspb.BinaryReader(bytes);
  7667. var msg = new proto.app.v1.ProviderListReply;
  7668. return proto.app.v1.ProviderListReply.deserializeBinaryFromReader(msg, reader);
  7669. };
  7670. /**
  7671. * Deserializes binary data (in protobuf wire format) from the
  7672. * given reader into the given message object.
  7673. * @param {!proto.app.v1.ProviderListReply} msg The message object to deserialize into.
  7674. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7675. * @return {!proto.app.v1.ProviderListReply}
  7676. */
  7677. proto.app.v1.ProviderListReply.deserializeBinaryFromReader = function(msg, reader) {
  7678. while (reader.nextField()) {
  7679. if (reader.isEndGroup()) {
  7680. break;
  7681. }
  7682. var field = reader.getFieldNumber();
  7683. switch (field) {
  7684. case 1:
  7685. var value = new proto.app.v1.ProviderInfoSimple;
  7686. reader.readMessage(value,proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader);
  7687. msg.addList(value);
  7688. break;
  7689. default:
  7690. reader.skipField();
  7691. break;
  7692. }
  7693. }
  7694. return msg;
  7695. };
  7696. /**
  7697. * Serializes the message to binary data (in protobuf wire format).
  7698. * @return {!Uint8Array}
  7699. */
  7700. proto.app.v1.ProviderListReply.prototype.serializeBinary = function() {
  7701. var writer = new jspb.BinaryWriter();
  7702. proto.app.v1.ProviderListReply.serializeBinaryToWriter(this, writer);
  7703. return writer.getResultBuffer();
  7704. };
  7705. /**
  7706. * Serializes the given message to binary data (in protobuf wire
  7707. * format), writing to the given BinaryWriter.
  7708. * @param {!proto.app.v1.ProviderListReply} message
  7709. * @param {!jspb.BinaryWriter} writer
  7710. * @suppress {unusedLocalVariables} f is only used for nested messages
  7711. */
  7712. proto.app.v1.ProviderListReply.serializeBinaryToWriter = function(message, writer) {
  7713. var f = undefined;
  7714. f = message.getListList();
  7715. if (f.length > 0) {
  7716. writer.writeRepeatedMessage(
  7717. 1,
  7718. f,
  7719. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter
  7720. );
  7721. }
  7722. };
  7723. /**
  7724. * repeated ProviderInfoSimple list = 1;
  7725. * @return {!Array<!proto.app.v1.ProviderInfoSimple>}
  7726. */
  7727. proto.app.v1.ProviderListReply.prototype.getListList = function() {
  7728. return /** @type{!Array<!proto.app.v1.ProviderInfoSimple>} */ (
  7729. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ProviderInfoSimple, 1));
  7730. };
  7731. /**
  7732. * @param {!Array<!proto.app.v1.ProviderInfoSimple>} value
  7733. * @return {!proto.app.v1.ProviderListReply} returns this
  7734. */
  7735. proto.app.v1.ProviderListReply.prototype.setListList = function(value) {
  7736. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  7737. };
  7738. /**
  7739. * @param {!proto.app.v1.ProviderInfoSimple=} opt_value
  7740. * @param {number=} opt_index
  7741. * @return {!proto.app.v1.ProviderInfoSimple}
  7742. */
  7743. proto.app.v1.ProviderListReply.prototype.addList = function(opt_value, opt_index) {
  7744. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ProviderInfoSimple, opt_index);
  7745. };
  7746. /**
  7747. * Clears the list making it empty but non-null.
  7748. * @return {!proto.app.v1.ProviderListReply} returns this
  7749. */
  7750. proto.app.v1.ProviderListReply.prototype.clearListList = function() {
  7751. return this.setListList([]);
  7752. };
  7753. if (jspb.Message.GENERATE_TO_OBJECT) {
  7754. /**
  7755. * Creates an object representation of this proto.
  7756. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7757. * Optional fields that are not set will be set to undefined.
  7758. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7759. * For the list of reserved names please see:
  7760. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7761. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7762. * JSPB instance for transitional soy proto support:
  7763. * http://goto/soy-param-migration
  7764. * @return {!Object}
  7765. */
  7766. proto.app.v1.ProviderDetailReply.prototype.toObject = function(opt_includeInstance) {
  7767. return proto.app.v1.ProviderDetailReply.toObject(opt_includeInstance, this);
  7768. };
  7769. /**
  7770. * Static version of the {@see toObject} method.
  7771. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7772. * the JSPB instance for transitional soy proto support:
  7773. * http://goto/soy-param-migration
  7774. * @param {!proto.app.v1.ProviderDetailReply} msg The msg instance to transform.
  7775. * @return {!Object}
  7776. * @suppress {unusedLocalVariables} f is only used for nested messages
  7777. */
  7778. proto.app.v1.ProviderDetailReply.toObject = function(includeInstance, msg) {
  7779. var f, obj = {
  7780. base: (f = msg.getBase()) && proto.app.v1.ProviderInfoSimple.toObject(includeInstance, f),
  7781. openBegin: (f = msg.getOpenBegin()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  7782. openEnd: (f = msg.getOpenEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  7783. telephone: jspb.Message.getFieldWithDefault(msg, 4, ""),
  7784. introduction: jspb.Message.getFieldWithDefault(msg, 5, "")
  7785. };
  7786. if (includeInstance) {
  7787. obj.$jspbMessageInstance = msg;
  7788. }
  7789. return obj;
  7790. };
  7791. }
  7792. /**
  7793. * Deserializes binary data (in protobuf wire format).
  7794. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7795. * @return {!proto.app.v1.ProviderDetailReply}
  7796. */
  7797. proto.app.v1.ProviderDetailReply.deserializeBinary = function(bytes) {
  7798. var reader = new jspb.BinaryReader(bytes);
  7799. var msg = new proto.app.v1.ProviderDetailReply;
  7800. return proto.app.v1.ProviderDetailReply.deserializeBinaryFromReader(msg, reader);
  7801. };
  7802. /**
  7803. * Deserializes binary data (in protobuf wire format) from the
  7804. * given reader into the given message object.
  7805. * @param {!proto.app.v1.ProviderDetailReply} msg The message object to deserialize into.
  7806. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7807. * @return {!proto.app.v1.ProviderDetailReply}
  7808. */
  7809. proto.app.v1.ProviderDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  7810. while (reader.nextField()) {
  7811. if (reader.isEndGroup()) {
  7812. break;
  7813. }
  7814. var field = reader.getFieldNumber();
  7815. switch (field) {
  7816. case 1:
  7817. var value = new proto.app.v1.ProviderInfoSimple;
  7818. reader.readMessage(value,proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader);
  7819. msg.setBase(value);
  7820. break;
  7821. case 2:
  7822. var value = new google_protobuf_timestamp_pb.Timestamp;
  7823. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  7824. msg.setOpenBegin(value);
  7825. break;
  7826. case 3:
  7827. var value = new google_protobuf_timestamp_pb.Timestamp;
  7828. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  7829. msg.setOpenEnd(value);
  7830. break;
  7831. case 4:
  7832. var value = /** @type {string} */ (reader.readString());
  7833. msg.setTelephone(value);
  7834. break;
  7835. case 5:
  7836. var value = /** @type {string} */ (reader.readString());
  7837. msg.setIntroduction(value);
  7838. break;
  7839. default:
  7840. reader.skipField();
  7841. break;
  7842. }
  7843. }
  7844. return msg;
  7845. };
  7846. /**
  7847. * Serializes the message to binary data (in protobuf wire format).
  7848. * @return {!Uint8Array}
  7849. */
  7850. proto.app.v1.ProviderDetailReply.prototype.serializeBinary = function() {
  7851. var writer = new jspb.BinaryWriter();
  7852. proto.app.v1.ProviderDetailReply.serializeBinaryToWriter(this, writer);
  7853. return writer.getResultBuffer();
  7854. };
  7855. /**
  7856. * Serializes the given message to binary data (in protobuf wire
  7857. * format), writing to the given BinaryWriter.
  7858. * @param {!proto.app.v1.ProviderDetailReply} message
  7859. * @param {!jspb.BinaryWriter} writer
  7860. * @suppress {unusedLocalVariables} f is only used for nested messages
  7861. */
  7862. proto.app.v1.ProviderDetailReply.serializeBinaryToWriter = function(message, writer) {
  7863. var f = undefined;
  7864. f = message.getBase();
  7865. if (f != null) {
  7866. writer.writeMessage(
  7867. 1,
  7868. f,
  7869. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter
  7870. );
  7871. }
  7872. f = message.getOpenBegin();
  7873. if (f != null) {
  7874. writer.writeMessage(
  7875. 2,
  7876. f,
  7877. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  7878. );
  7879. }
  7880. f = message.getOpenEnd();
  7881. if (f != null) {
  7882. writer.writeMessage(
  7883. 3,
  7884. f,
  7885. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  7886. );
  7887. }
  7888. f = message.getTelephone();
  7889. if (f.length > 0) {
  7890. writer.writeString(
  7891. 4,
  7892. f
  7893. );
  7894. }
  7895. f = message.getIntroduction();
  7896. if (f.length > 0) {
  7897. writer.writeString(
  7898. 5,
  7899. f
  7900. );
  7901. }
  7902. };
  7903. /**
  7904. * optional ProviderInfoSimple base = 1;
  7905. * @return {?proto.app.v1.ProviderInfoSimple}
  7906. */
  7907. proto.app.v1.ProviderDetailReply.prototype.getBase = function() {
  7908. return /** @type{?proto.app.v1.ProviderInfoSimple} */ (
  7909. jspb.Message.getWrapperField(this, proto.app.v1.ProviderInfoSimple, 1));
  7910. };
  7911. /**
  7912. * @param {?proto.app.v1.ProviderInfoSimple|undefined} value
  7913. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7914. */
  7915. proto.app.v1.ProviderDetailReply.prototype.setBase = function(value) {
  7916. return jspb.Message.setWrapperField(this, 1, value);
  7917. };
  7918. /**
  7919. * Clears the message field making it undefined.
  7920. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7921. */
  7922. proto.app.v1.ProviderDetailReply.prototype.clearBase = function() {
  7923. return this.setBase(undefined);
  7924. };
  7925. /**
  7926. * Returns whether this field is set.
  7927. * @return {boolean}
  7928. */
  7929. proto.app.v1.ProviderDetailReply.prototype.hasBase = function() {
  7930. return jspb.Message.getField(this, 1) != null;
  7931. };
  7932. /**
  7933. * optional google.protobuf.Timestamp open_begin = 2;
  7934. * @return {?proto.google.protobuf.Timestamp}
  7935. */
  7936. proto.app.v1.ProviderDetailReply.prototype.getOpenBegin = function() {
  7937. return /** @type{?proto.google.protobuf.Timestamp} */ (
  7938. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
  7939. };
  7940. /**
  7941. * @param {?proto.google.protobuf.Timestamp|undefined} value
  7942. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7943. */
  7944. proto.app.v1.ProviderDetailReply.prototype.setOpenBegin = function(value) {
  7945. return jspb.Message.setWrapperField(this, 2, value);
  7946. };
  7947. /**
  7948. * Clears the message field making it undefined.
  7949. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7950. */
  7951. proto.app.v1.ProviderDetailReply.prototype.clearOpenBegin = function() {
  7952. return this.setOpenBegin(undefined);
  7953. };
  7954. /**
  7955. * Returns whether this field is set.
  7956. * @return {boolean}
  7957. */
  7958. proto.app.v1.ProviderDetailReply.prototype.hasOpenBegin = function() {
  7959. return jspb.Message.getField(this, 2) != null;
  7960. };
  7961. /**
  7962. * optional google.protobuf.Timestamp open_end = 3;
  7963. * @return {?proto.google.protobuf.Timestamp}
  7964. */
  7965. proto.app.v1.ProviderDetailReply.prototype.getOpenEnd = function() {
  7966. return /** @type{?proto.google.protobuf.Timestamp} */ (
  7967. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
  7968. };
  7969. /**
  7970. * @param {?proto.google.protobuf.Timestamp|undefined} value
  7971. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7972. */
  7973. proto.app.v1.ProviderDetailReply.prototype.setOpenEnd = function(value) {
  7974. return jspb.Message.setWrapperField(this, 3, value);
  7975. };
  7976. /**
  7977. * Clears the message field making it undefined.
  7978. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7979. */
  7980. proto.app.v1.ProviderDetailReply.prototype.clearOpenEnd = function() {
  7981. return this.setOpenEnd(undefined);
  7982. };
  7983. /**
  7984. * Returns whether this field is set.
  7985. * @return {boolean}
  7986. */
  7987. proto.app.v1.ProviderDetailReply.prototype.hasOpenEnd = function() {
  7988. return jspb.Message.getField(this, 3) != null;
  7989. };
  7990. /**
  7991. * optional string telephone = 4;
  7992. * @return {string}
  7993. */
  7994. proto.app.v1.ProviderDetailReply.prototype.getTelephone = function() {
  7995. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  7996. };
  7997. /**
  7998. * @param {string} value
  7999. * @return {!proto.app.v1.ProviderDetailReply} returns this
  8000. */
  8001. proto.app.v1.ProviderDetailReply.prototype.setTelephone = function(value) {
  8002. return jspb.Message.setProto3StringField(this, 4, value);
  8003. };
  8004. /**
  8005. * optional string introduction = 5;
  8006. * @return {string}
  8007. */
  8008. proto.app.v1.ProviderDetailReply.prototype.getIntroduction = function() {
  8009. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  8010. };
  8011. /**
  8012. * @param {string} value
  8013. * @return {!proto.app.v1.ProviderDetailReply} returns this
  8014. */
  8015. proto.app.v1.ProviderDetailReply.prototype.setIntroduction = function(value) {
  8016. return jspb.Message.setProto3StringField(this, 5, value);
  8017. };
  8018. if (jspb.Message.GENERATE_TO_OBJECT) {
  8019. /**
  8020. * Creates an object representation of this proto.
  8021. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8022. * Optional fields that are not set will be set to undefined.
  8023. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8024. * For the list of reserved names please see:
  8025. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8026. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8027. * JSPB instance for transitional soy proto support:
  8028. * http://goto/soy-param-migration
  8029. * @return {!Object}
  8030. */
  8031. proto.app.v1.ProjectInfoSimple.prototype.toObject = function(opt_includeInstance) {
  8032. return proto.app.v1.ProjectInfoSimple.toObject(opt_includeInstance, this);
  8033. };
  8034. /**
  8035. * Static version of the {@see toObject} method.
  8036. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8037. * the JSPB instance for transitional soy proto support:
  8038. * http://goto/soy-param-migration
  8039. * @param {!proto.app.v1.ProjectInfoSimple} msg The msg instance to transform.
  8040. * @return {!Object}
  8041. * @suppress {unusedLocalVariables} f is only used for nested messages
  8042. */
  8043. proto.app.v1.ProjectInfoSimple.toObject = function(includeInstance, msg) {
  8044. var f, obj = {
  8045. rsid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  8046. rsname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  8047. projectimage: (f = msg.getProjectimage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  8048. shopname: jspb.Message.getFieldWithDefault(msg, 4, ""),
  8049. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  8050. addr: jspb.Message.getFieldWithDefault(msg, 6, ""),
  8051. distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
  8052. isingame: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
  8053. };
  8054. if (includeInstance) {
  8055. obj.$jspbMessageInstance = msg;
  8056. }
  8057. return obj;
  8058. };
  8059. }
  8060. /**
  8061. * Deserializes binary data (in protobuf wire format).
  8062. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8063. * @return {!proto.app.v1.ProjectInfoSimple}
  8064. */
  8065. proto.app.v1.ProjectInfoSimple.deserializeBinary = function(bytes) {
  8066. var reader = new jspb.BinaryReader(bytes);
  8067. var msg = new proto.app.v1.ProjectInfoSimple;
  8068. return proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader(msg, reader);
  8069. };
  8070. /**
  8071. * Deserializes binary data (in protobuf wire format) from the
  8072. * given reader into the given message object.
  8073. * @param {!proto.app.v1.ProjectInfoSimple} msg The message object to deserialize into.
  8074. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8075. * @return {!proto.app.v1.ProjectInfoSimple}
  8076. */
  8077. proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader = function(msg, reader) {
  8078. while (reader.nextField()) {
  8079. if (reader.isEndGroup()) {
  8080. break;
  8081. }
  8082. var field = reader.getFieldNumber();
  8083. switch (field) {
  8084. case 1:
  8085. var value = /** @type {number} */ (reader.readInt64());
  8086. msg.setRsid(value);
  8087. break;
  8088. case 2:
  8089. var value = /** @type {string} */ (reader.readString());
  8090. msg.setRsname(value);
  8091. break;
  8092. case 3:
  8093. var value = new proto.app.v1.NetImage;
  8094. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8095. msg.setProjectimage(value);
  8096. break;
  8097. case 4:
  8098. var value = /** @type {string} */ (reader.readString());
  8099. msg.setShopname(value);
  8100. break;
  8101. case 5:
  8102. var value = new proto.app.v1.Position;
  8103. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  8104. msg.setPosition(value);
  8105. break;
  8106. case 6:
  8107. var value = /** @type {string} */ (reader.readString());
  8108. msg.setAddr(value);
  8109. break;
  8110. case 7:
  8111. var value = /** @type {number} */ (reader.readDouble());
  8112. msg.setDistance(value);
  8113. break;
  8114. case 8:
  8115. var value = /** @type {boolean} */ (reader.readBool());
  8116. msg.setIsingame(value);
  8117. break;
  8118. default:
  8119. reader.skipField();
  8120. break;
  8121. }
  8122. }
  8123. return msg;
  8124. };
  8125. /**
  8126. * Serializes the message to binary data (in protobuf wire format).
  8127. * @return {!Uint8Array}
  8128. */
  8129. proto.app.v1.ProjectInfoSimple.prototype.serializeBinary = function() {
  8130. var writer = new jspb.BinaryWriter();
  8131. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter(this, writer);
  8132. return writer.getResultBuffer();
  8133. };
  8134. /**
  8135. * Serializes the given message to binary data (in protobuf wire
  8136. * format), writing to the given BinaryWriter.
  8137. * @param {!proto.app.v1.ProjectInfoSimple} message
  8138. * @param {!jspb.BinaryWriter} writer
  8139. * @suppress {unusedLocalVariables} f is only used for nested messages
  8140. */
  8141. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter = function(message, writer) {
  8142. var f = undefined;
  8143. f = message.getRsid();
  8144. if (f !== 0) {
  8145. writer.writeInt64(
  8146. 1,
  8147. f
  8148. );
  8149. }
  8150. f = message.getRsname();
  8151. if (f.length > 0) {
  8152. writer.writeString(
  8153. 2,
  8154. f
  8155. );
  8156. }
  8157. f = message.getProjectimage();
  8158. if (f != null) {
  8159. writer.writeMessage(
  8160. 3,
  8161. f,
  8162. proto.app.v1.NetImage.serializeBinaryToWriter
  8163. );
  8164. }
  8165. f = message.getShopname();
  8166. if (f.length > 0) {
  8167. writer.writeString(
  8168. 4,
  8169. f
  8170. );
  8171. }
  8172. f = message.getPosition();
  8173. if (f != null) {
  8174. writer.writeMessage(
  8175. 5,
  8176. f,
  8177. proto.app.v1.Position.serializeBinaryToWriter
  8178. );
  8179. }
  8180. f = message.getAddr();
  8181. if (f.length > 0) {
  8182. writer.writeString(
  8183. 6,
  8184. f
  8185. );
  8186. }
  8187. f = message.getDistance();
  8188. if (f !== 0.0) {
  8189. writer.writeDouble(
  8190. 7,
  8191. f
  8192. );
  8193. }
  8194. f = message.getIsingame();
  8195. if (f) {
  8196. writer.writeBool(
  8197. 8,
  8198. f
  8199. );
  8200. }
  8201. };
  8202. /**
  8203. * optional int64 rsId = 1;
  8204. * @return {number}
  8205. */
  8206. proto.app.v1.ProjectInfoSimple.prototype.getRsid = function() {
  8207. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  8208. };
  8209. /**
  8210. * @param {number} value
  8211. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8212. */
  8213. proto.app.v1.ProjectInfoSimple.prototype.setRsid = function(value) {
  8214. return jspb.Message.setProto3IntField(this, 1, value);
  8215. };
  8216. /**
  8217. * optional string rsName = 2;
  8218. * @return {string}
  8219. */
  8220. proto.app.v1.ProjectInfoSimple.prototype.getRsname = function() {
  8221. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  8222. };
  8223. /**
  8224. * @param {string} value
  8225. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8226. */
  8227. proto.app.v1.ProjectInfoSimple.prototype.setRsname = function(value) {
  8228. return jspb.Message.setProto3StringField(this, 2, value);
  8229. };
  8230. /**
  8231. * optional NetImage projectImage = 3;
  8232. * @return {?proto.app.v1.NetImage}
  8233. */
  8234. proto.app.v1.ProjectInfoSimple.prototype.getProjectimage = function() {
  8235. return /** @type{?proto.app.v1.NetImage} */ (
  8236. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  8237. };
  8238. /**
  8239. * @param {?proto.app.v1.NetImage|undefined} value
  8240. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8241. */
  8242. proto.app.v1.ProjectInfoSimple.prototype.setProjectimage = function(value) {
  8243. return jspb.Message.setWrapperField(this, 3, value);
  8244. };
  8245. /**
  8246. * Clears the message field making it undefined.
  8247. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8248. */
  8249. proto.app.v1.ProjectInfoSimple.prototype.clearProjectimage = function() {
  8250. return this.setProjectimage(undefined);
  8251. };
  8252. /**
  8253. * Returns whether this field is set.
  8254. * @return {boolean}
  8255. */
  8256. proto.app.v1.ProjectInfoSimple.prototype.hasProjectimage = function() {
  8257. return jspb.Message.getField(this, 3) != null;
  8258. };
  8259. /**
  8260. * optional string shopName = 4;
  8261. * @return {string}
  8262. */
  8263. proto.app.v1.ProjectInfoSimple.prototype.getShopname = function() {
  8264. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  8265. };
  8266. /**
  8267. * @param {string} value
  8268. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8269. */
  8270. proto.app.v1.ProjectInfoSimple.prototype.setShopname = function(value) {
  8271. return jspb.Message.setProto3StringField(this, 4, value);
  8272. };
  8273. /**
  8274. * optional Position Position = 5;
  8275. * @return {?proto.app.v1.Position}
  8276. */
  8277. proto.app.v1.ProjectInfoSimple.prototype.getPosition = function() {
  8278. return /** @type{?proto.app.v1.Position} */ (
  8279. jspb.Message.getWrapperField(this, proto.app.v1.Position, 5));
  8280. };
  8281. /**
  8282. * @param {?proto.app.v1.Position|undefined} value
  8283. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8284. */
  8285. proto.app.v1.ProjectInfoSimple.prototype.setPosition = function(value) {
  8286. return jspb.Message.setWrapperField(this, 5, value);
  8287. };
  8288. /**
  8289. * Clears the message field making it undefined.
  8290. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8291. */
  8292. proto.app.v1.ProjectInfoSimple.prototype.clearPosition = function() {
  8293. return this.setPosition(undefined);
  8294. };
  8295. /**
  8296. * Returns whether this field is set.
  8297. * @return {boolean}
  8298. */
  8299. proto.app.v1.ProjectInfoSimple.prototype.hasPosition = function() {
  8300. return jspb.Message.getField(this, 5) != null;
  8301. };
  8302. /**
  8303. * optional string addr = 6;
  8304. * @return {string}
  8305. */
  8306. proto.app.v1.ProjectInfoSimple.prototype.getAddr = function() {
  8307. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  8308. };
  8309. /**
  8310. * @param {string} value
  8311. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8312. */
  8313. proto.app.v1.ProjectInfoSimple.prototype.setAddr = function(value) {
  8314. return jspb.Message.setProto3StringField(this, 6, value);
  8315. };
  8316. /**
  8317. * optional double distance = 7;
  8318. * @return {number}
  8319. */
  8320. proto.app.v1.ProjectInfoSimple.prototype.getDistance = function() {
  8321. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
  8322. };
  8323. /**
  8324. * @param {number} value
  8325. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8326. */
  8327. proto.app.v1.ProjectInfoSimple.prototype.setDistance = function(value) {
  8328. return jspb.Message.setProto3FloatField(this, 7, value);
  8329. };
  8330. /**
  8331. * optional bool isInGame = 8;
  8332. * @return {boolean}
  8333. */
  8334. proto.app.v1.ProjectInfoSimple.prototype.getIsingame = function() {
  8335. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
  8336. };
  8337. /**
  8338. * @param {boolean} value
  8339. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8340. */
  8341. proto.app.v1.ProjectInfoSimple.prototype.setIsingame = function(value) {
  8342. return jspb.Message.setProto3BooleanField(this, 8, value);
  8343. };
  8344. /**
  8345. * List of repeated fields within this message type.
  8346. * @private {!Array<number>}
  8347. * @const
  8348. */
  8349. proto.app.v1.ProjectListReply.repeatedFields_ = [1];
  8350. if (jspb.Message.GENERATE_TO_OBJECT) {
  8351. /**
  8352. * Creates an object representation of this proto.
  8353. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8354. * Optional fields that are not set will be set to undefined.
  8355. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8356. * For the list of reserved names please see:
  8357. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8358. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8359. * JSPB instance for transitional soy proto support:
  8360. * http://goto/soy-param-migration
  8361. * @return {!Object}
  8362. */
  8363. proto.app.v1.ProjectListReply.prototype.toObject = function(opt_includeInstance) {
  8364. return proto.app.v1.ProjectListReply.toObject(opt_includeInstance, this);
  8365. };
  8366. /**
  8367. * Static version of the {@see toObject} method.
  8368. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8369. * the JSPB instance for transitional soy proto support:
  8370. * http://goto/soy-param-migration
  8371. * @param {!proto.app.v1.ProjectListReply} msg The msg instance to transform.
  8372. * @return {!Object}
  8373. * @suppress {unusedLocalVariables} f is only used for nested messages
  8374. */
  8375. proto.app.v1.ProjectListReply.toObject = function(includeInstance, msg) {
  8376. var f, obj = {
  8377. listList: jspb.Message.toObjectList(msg.getListList(),
  8378. proto.app.v1.ProjectInfoSimple.toObject, includeInstance)
  8379. };
  8380. if (includeInstance) {
  8381. obj.$jspbMessageInstance = msg;
  8382. }
  8383. return obj;
  8384. };
  8385. }
  8386. /**
  8387. * Deserializes binary data (in protobuf wire format).
  8388. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8389. * @return {!proto.app.v1.ProjectListReply}
  8390. */
  8391. proto.app.v1.ProjectListReply.deserializeBinary = function(bytes) {
  8392. var reader = new jspb.BinaryReader(bytes);
  8393. var msg = new proto.app.v1.ProjectListReply;
  8394. return proto.app.v1.ProjectListReply.deserializeBinaryFromReader(msg, reader);
  8395. };
  8396. /**
  8397. * Deserializes binary data (in protobuf wire format) from the
  8398. * given reader into the given message object.
  8399. * @param {!proto.app.v1.ProjectListReply} msg The message object to deserialize into.
  8400. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8401. * @return {!proto.app.v1.ProjectListReply}
  8402. */
  8403. proto.app.v1.ProjectListReply.deserializeBinaryFromReader = function(msg, reader) {
  8404. while (reader.nextField()) {
  8405. if (reader.isEndGroup()) {
  8406. break;
  8407. }
  8408. var field = reader.getFieldNumber();
  8409. switch (field) {
  8410. case 1:
  8411. var value = new proto.app.v1.ProjectInfoSimple;
  8412. reader.readMessage(value,proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader);
  8413. msg.addList(value);
  8414. break;
  8415. default:
  8416. reader.skipField();
  8417. break;
  8418. }
  8419. }
  8420. return msg;
  8421. };
  8422. /**
  8423. * Serializes the message to binary data (in protobuf wire format).
  8424. * @return {!Uint8Array}
  8425. */
  8426. proto.app.v1.ProjectListReply.prototype.serializeBinary = function() {
  8427. var writer = new jspb.BinaryWriter();
  8428. proto.app.v1.ProjectListReply.serializeBinaryToWriter(this, writer);
  8429. return writer.getResultBuffer();
  8430. };
  8431. /**
  8432. * Serializes the given message to binary data (in protobuf wire
  8433. * format), writing to the given BinaryWriter.
  8434. * @param {!proto.app.v1.ProjectListReply} message
  8435. * @param {!jspb.BinaryWriter} writer
  8436. * @suppress {unusedLocalVariables} f is only used for nested messages
  8437. */
  8438. proto.app.v1.ProjectListReply.serializeBinaryToWriter = function(message, writer) {
  8439. var f = undefined;
  8440. f = message.getListList();
  8441. if (f.length > 0) {
  8442. writer.writeRepeatedMessage(
  8443. 1,
  8444. f,
  8445. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter
  8446. );
  8447. }
  8448. };
  8449. /**
  8450. * repeated ProjectInfoSimple list = 1;
  8451. * @return {!Array<!proto.app.v1.ProjectInfoSimple>}
  8452. */
  8453. proto.app.v1.ProjectListReply.prototype.getListList = function() {
  8454. return /** @type{!Array<!proto.app.v1.ProjectInfoSimple>} */ (
  8455. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ProjectInfoSimple, 1));
  8456. };
  8457. /**
  8458. * @param {!Array<!proto.app.v1.ProjectInfoSimple>} value
  8459. * @return {!proto.app.v1.ProjectListReply} returns this
  8460. */
  8461. proto.app.v1.ProjectListReply.prototype.setListList = function(value) {
  8462. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  8463. };
  8464. /**
  8465. * @param {!proto.app.v1.ProjectInfoSimple=} opt_value
  8466. * @param {number=} opt_index
  8467. * @return {!proto.app.v1.ProjectInfoSimple}
  8468. */
  8469. proto.app.v1.ProjectListReply.prototype.addList = function(opt_value, opt_index) {
  8470. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ProjectInfoSimple, opt_index);
  8471. };
  8472. /**
  8473. * Clears the list making it empty but non-null.
  8474. * @return {!proto.app.v1.ProjectListReply} returns this
  8475. */
  8476. proto.app.v1.ProjectListReply.prototype.clearListList = function() {
  8477. return this.setListList([]);
  8478. };
  8479. if (jspb.Message.GENERATE_TO_OBJECT) {
  8480. /**
  8481. * Creates an object representation of this proto.
  8482. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8483. * Optional fields that are not set will be set to undefined.
  8484. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8485. * For the list of reserved names please see:
  8486. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8487. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8488. * JSPB instance for transitional soy proto support:
  8489. * http://goto/soy-param-migration
  8490. * @return {!Object}
  8491. */
  8492. proto.app.v1.MapRoute.prototype.toObject = function(opt_includeInstance) {
  8493. return proto.app.v1.MapRoute.toObject(opt_includeInstance, this);
  8494. };
  8495. /**
  8496. * Static version of the {@see toObject} method.
  8497. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8498. * the JSPB instance for transitional soy proto support:
  8499. * http://goto/soy-param-migration
  8500. * @param {!proto.app.v1.MapRoute} msg The msg instance to transform.
  8501. * @return {!Object}
  8502. * @suppress {unusedLocalVariables} f is only used for nested messages
  8503. */
  8504. proto.app.v1.MapRoute.toObject = function(includeInstance, msg) {
  8505. var f, obj = {
  8506. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  8507. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  8508. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  8509. };
  8510. if (includeInstance) {
  8511. obj.$jspbMessageInstance = msg;
  8512. }
  8513. return obj;
  8514. };
  8515. }
  8516. /**
  8517. * Deserializes binary data (in protobuf wire format).
  8518. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8519. * @return {!proto.app.v1.MapRoute}
  8520. */
  8521. proto.app.v1.MapRoute.deserializeBinary = function(bytes) {
  8522. var reader = new jspb.BinaryReader(bytes);
  8523. var msg = new proto.app.v1.MapRoute;
  8524. return proto.app.v1.MapRoute.deserializeBinaryFromReader(msg, reader);
  8525. };
  8526. /**
  8527. * Deserializes binary data (in protobuf wire format) from the
  8528. * given reader into the given message object.
  8529. * @param {!proto.app.v1.MapRoute} msg The message object to deserialize into.
  8530. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8531. * @return {!proto.app.v1.MapRoute}
  8532. */
  8533. proto.app.v1.MapRoute.deserializeBinaryFromReader = function(msg, reader) {
  8534. while (reader.nextField()) {
  8535. if (reader.isEndGroup()) {
  8536. break;
  8537. }
  8538. var field = reader.getFieldNumber();
  8539. switch (field) {
  8540. case 1:
  8541. var value = /** @type {number} */ (reader.readInt64());
  8542. msg.setId(value);
  8543. break;
  8544. case 2:
  8545. var value = /** @type {string} */ (reader.readString());
  8546. msg.setName(value);
  8547. break;
  8548. case 3:
  8549. var value = new proto.app.v1.NetImage;
  8550. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8551. msg.setImage(value);
  8552. break;
  8553. default:
  8554. reader.skipField();
  8555. break;
  8556. }
  8557. }
  8558. return msg;
  8559. };
  8560. /**
  8561. * Serializes the message to binary data (in protobuf wire format).
  8562. * @return {!Uint8Array}
  8563. */
  8564. proto.app.v1.MapRoute.prototype.serializeBinary = function() {
  8565. var writer = new jspb.BinaryWriter();
  8566. proto.app.v1.MapRoute.serializeBinaryToWriter(this, writer);
  8567. return writer.getResultBuffer();
  8568. };
  8569. /**
  8570. * Serializes the given message to binary data (in protobuf wire
  8571. * format), writing to the given BinaryWriter.
  8572. * @param {!proto.app.v1.MapRoute} message
  8573. * @param {!jspb.BinaryWriter} writer
  8574. * @suppress {unusedLocalVariables} f is only used for nested messages
  8575. */
  8576. proto.app.v1.MapRoute.serializeBinaryToWriter = function(message, writer) {
  8577. var f = undefined;
  8578. f = message.getId();
  8579. if (f !== 0) {
  8580. writer.writeInt64(
  8581. 1,
  8582. f
  8583. );
  8584. }
  8585. f = message.getName();
  8586. if (f.length > 0) {
  8587. writer.writeString(
  8588. 2,
  8589. f
  8590. );
  8591. }
  8592. f = message.getImage();
  8593. if (f != null) {
  8594. writer.writeMessage(
  8595. 3,
  8596. f,
  8597. proto.app.v1.NetImage.serializeBinaryToWriter
  8598. );
  8599. }
  8600. };
  8601. /**
  8602. * optional int64 id = 1;
  8603. * @return {number}
  8604. */
  8605. proto.app.v1.MapRoute.prototype.getId = function() {
  8606. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  8607. };
  8608. /**
  8609. * @param {number} value
  8610. * @return {!proto.app.v1.MapRoute} returns this
  8611. */
  8612. proto.app.v1.MapRoute.prototype.setId = function(value) {
  8613. return jspb.Message.setProto3IntField(this, 1, value);
  8614. };
  8615. /**
  8616. * optional string name = 2;
  8617. * @return {string}
  8618. */
  8619. proto.app.v1.MapRoute.prototype.getName = function() {
  8620. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  8621. };
  8622. /**
  8623. * @param {string} value
  8624. * @return {!proto.app.v1.MapRoute} returns this
  8625. */
  8626. proto.app.v1.MapRoute.prototype.setName = function(value) {
  8627. return jspb.Message.setProto3StringField(this, 2, value);
  8628. };
  8629. /**
  8630. * optional NetImage image = 3;
  8631. * @return {?proto.app.v1.NetImage}
  8632. */
  8633. proto.app.v1.MapRoute.prototype.getImage = function() {
  8634. return /** @type{?proto.app.v1.NetImage} */ (
  8635. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  8636. };
  8637. /**
  8638. * @param {?proto.app.v1.NetImage|undefined} value
  8639. * @return {!proto.app.v1.MapRoute} returns this
  8640. */
  8641. proto.app.v1.MapRoute.prototype.setImage = function(value) {
  8642. return jspb.Message.setWrapperField(this, 3, value);
  8643. };
  8644. /**
  8645. * Clears the message field making it undefined.
  8646. * @return {!proto.app.v1.MapRoute} returns this
  8647. */
  8648. proto.app.v1.MapRoute.prototype.clearImage = function() {
  8649. return this.setImage(undefined);
  8650. };
  8651. /**
  8652. * Returns whether this field is set.
  8653. * @return {boolean}
  8654. */
  8655. proto.app.v1.MapRoute.prototype.hasImage = function() {
  8656. return jspb.Message.getField(this, 3) != null;
  8657. };
  8658. /**
  8659. * List of repeated fields within this message type.
  8660. * @private {!Array<number>}
  8661. * @const
  8662. */
  8663. proto.app.v1.ProjectDetailReply.repeatedFields_ = [11];
  8664. if (jspb.Message.GENERATE_TO_OBJECT) {
  8665. /**
  8666. * Creates an object representation of this proto.
  8667. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8668. * Optional fields that are not set will be set to undefined.
  8669. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8670. * For the list of reserved names please see:
  8671. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8672. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8673. * JSPB instance for transitional soy proto support:
  8674. * http://goto/soy-param-migration
  8675. * @return {!Object}
  8676. */
  8677. proto.app.v1.ProjectDetailReply.prototype.toObject = function(opt_includeInstance) {
  8678. return proto.app.v1.ProjectDetailReply.toObject(opt_includeInstance, this);
  8679. };
  8680. /**
  8681. * Static version of the {@see toObject} method.
  8682. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8683. * the JSPB instance for transitional soy proto support:
  8684. * http://goto/soy-param-migration
  8685. * @param {!proto.app.v1.ProjectDetailReply} msg The msg instance to transform.
  8686. * @return {!Object}
  8687. * @suppress {unusedLocalVariables} f is only used for nested messages
  8688. */
  8689. proto.app.v1.ProjectDetailReply.toObject = function(includeInstance, msg) {
  8690. var f, obj = {
  8691. baseInfo: (f = msg.getBaseInfo()) && proto.app.v1.ProjectInfoSimple.toObject(includeInstance, f),
  8692. contentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
  8693. content: jspb.Message.getFieldWithDefault(msg, 3, ""),
  8694. lockup: jspb.Message.getFieldWithDefault(msg, 4, 0),
  8695. forcedenttime: jspb.Message.getFieldWithDefault(msg, 5, 0),
  8696. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 6, 0),
  8697. maxrange: jspb.Message.getFieldWithDefault(msg, 7, 0),
  8698. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  8699. mapscalenumber: jspb.Message.getFieldWithDefault(msg, 9, 0),
  8700. contourinterval: jspb.Message.getFieldWithDefault(msg, 10, 0),
  8701. routesList: jspb.Message.toObjectList(msg.getRoutesList(),
  8702. proto.app.v1.MapRoute.toObject, includeInstance)
  8703. };
  8704. if (includeInstance) {
  8705. obj.$jspbMessageInstance = msg;
  8706. }
  8707. return obj;
  8708. };
  8709. }
  8710. /**
  8711. * Deserializes binary data (in protobuf wire format).
  8712. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8713. * @return {!proto.app.v1.ProjectDetailReply}
  8714. */
  8715. proto.app.v1.ProjectDetailReply.deserializeBinary = function(bytes) {
  8716. var reader = new jspb.BinaryReader(bytes);
  8717. var msg = new proto.app.v1.ProjectDetailReply;
  8718. return proto.app.v1.ProjectDetailReply.deserializeBinaryFromReader(msg, reader);
  8719. };
  8720. /**
  8721. * Deserializes binary data (in protobuf wire format) from the
  8722. * given reader into the given message object.
  8723. * @param {!proto.app.v1.ProjectDetailReply} msg The message object to deserialize into.
  8724. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8725. * @return {!proto.app.v1.ProjectDetailReply}
  8726. */
  8727. proto.app.v1.ProjectDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  8728. while (reader.nextField()) {
  8729. if (reader.isEndGroup()) {
  8730. break;
  8731. }
  8732. var field = reader.getFieldNumber();
  8733. switch (field) {
  8734. case 1:
  8735. var value = new proto.app.v1.ProjectInfoSimple;
  8736. reader.readMessage(value,proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader);
  8737. msg.setBaseInfo(value);
  8738. break;
  8739. case 2:
  8740. var value = /** @type {!proto.app.v1.ProjectContentType} */ (reader.readEnum());
  8741. msg.setContentType(value);
  8742. break;
  8743. case 3:
  8744. var value = /** @type {string} */ (reader.readString());
  8745. msg.setContent(value);
  8746. break;
  8747. case 4:
  8748. var value = /** @type {number} */ (reader.readInt32());
  8749. msg.setLockup(value);
  8750. break;
  8751. case 5:
  8752. var value = /** @type {number} */ (reader.readInt32());
  8753. msg.setForcedenttime(value);
  8754. break;
  8755. case 6:
  8756. var value = /** @type {number} */ (reader.readInt32());
  8757. msg.setTotalcontrolnum(value);
  8758. break;
  8759. case 7:
  8760. var value = /** @type {number} */ (reader.readInt32());
  8761. msg.setMaxrange(value);
  8762. break;
  8763. case 8:
  8764. var value = new proto.app.v1.NetImage;
  8765. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8766. msg.setImage(value);
  8767. break;
  8768. case 9:
  8769. var value = /** @type {number} */ (reader.readInt32());
  8770. msg.setMapscalenumber(value);
  8771. break;
  8772. case 10:
  8773. var value = /** @type {number} */ (reader.readInt32());
  8774. msg.setContourinterval(value);
  8775. break;
  8776. case 11:
  8777. var value = new proto.app.v1.MapRoute;
  8778. reader.readMessage(value,proto.app.v1.MapRoute.deserializeBinaryFromReader);
  8779. msg.addRoutes(value);
  8780. break;
  8781. default:
  8782. reader.skipField();
  8783. break;
  8784. }
  8785. }
  8786. return msg;
  8787. };
  8788. /**
  8789. * Serializes the message to binary data (in protobuf wire format).
  8790. * @return {!Uint8Array}
  8791. */
  8792. proto.app.v1.ProjectDetailReply.prototype.serializeBinary = function() {
  8793. var writer = new jspb.BinaryWriter();
  8794. proto.app.v1.ProjectDetailReply.serializeBinaryToWriter(this, writer);
  8795. return writer.getResultBuffer();
  8796. };
  8797. /**
  8798. * Serializes the given message to binary data (in protobuf wire
  8799. * format), writing to the given BinaryWriter.
  8800. * @param {!proto.app.v1.ProjectDetailReply} message
  8801. * @param {!jspb.BinaryWriter} writer
  8802. * @suppress {unusedLocalVariables} f is only used for nested messages
  8803. */
  8804. proto.app.v1.ProjectDetailReply.serializeBinaryToWriter = function(message, writer) {
  8805. var f = undefined;
  8806. f = message.getBaseInfo();
  8807. if (f != null) {
  8808. writer.writeMessage(
  8809. 1,
  8810. f,
  8811. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter
  8812. );
  8813. }
  8814. f = message.getContentType();
  8815. if (f !== 0.0) {
  8816. writer.writeEnum(
  8817. 2,
  8818. f
  8819. );
  8820. }
  8821. f = message.getContent();
  8822. if (f.length > 0) {
  8823. writer.writeString(
  8824. 3,
  8825. f
  8826. );
  8827. }
  8828. f = message.getLockup();
  8829. if (f !== 0) {
  8830. writer.writeInt32(
  8831. 4,
  8832. f
  8833. );
  8834. }
  8835. f = message.getForcedenttime();
  8836. if (f !== 0) {
  8837. writer.writeInt32(
  8838. 5,
  8839. f
  8840. );
  8841. }
  8842. f = message.getTotalcontrolnum();
  8843. if (f !== 0) {
  8844. writer.writeInt32(
  8845. 6,
  8846. f
  8847. );
  8848. }
  8849. f = message.getMaxrange();
  8850. if (f !== 0) {
  8851. writer.writeInt32(
  8852. 7,
  8853. f
  8854. );
  8855. }
  8856. f = message.getImage();
  8857. if (f != null) {
  8858. writer.writeMessage(
  8859. 8,
  8860. f,
  8861. proto.app.v1.NetImage.serializeBinaryToWriter
  8862. );
  8863. }
  8864. f = message.getMapscalenumber();
  8865. if (f !== 0) {
  8866. writer.writeInt32(
  8867. 9,
  8868. f
  8869. );
  8870. }
  8871. f = message.getContourinterval();
  8872. if (f !== 0) {
  8873. writer.writeInt32(
  8874. 10,
  8875. f
  8876. );
  8877. }
  8878. f = message.getRoutesList();
  8879. if (f.length > 0) {
  8880. writer.writeRepeatedMessage(
  8881. 11,
  8882. f,
  8883. proto.app.v1.MapRoute.serializeBinaryToWriter
  8884. );
  8885. }
  8886. };
  8887. /**
  8888. * optional ProjectInfoSimple base_info = 1;
  8889. * @return {?proto.app.v1.ProjectInfoSimple}
  8890. */
  8891. proto.app.v1.ProjectDetailReply.prototype.getBaseInfo = function() {
  8892. return /** @type{?proto.app.v1.ProjectInfoSimple} */ (
  8893. jspb.Message.getWrapperField(this, proto.app.v1.ProjectInfoSimple, 1));
  8894. };
  8895. /**
  8896. * @param {?proto.app.v1.ProjectInfoSimple|undefined} value
  8897. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8898. */
  8899. proto.app.v1.ProjectDetailReply.prototype.setBaseInfo = function(value) {
  8900. return jspb.Message.setWrapperField(this, 1, value);
  8901. };
  8902. /**
  8903. * Clears the message field making it undefined.
  8904. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8905. */
  8906. proto.app.v1.ProjectDetailReply.prototype.clearBaseInfo = function() {
  8907. return this.setBaseInfo(undefined);
  8908. };
  8909. /**
  8910. * Returns whether this field is set.
  8911. * @return {boolean}
  8912. */
  8913. proto.app.v1.ProjectDetailReply.prototype.hasBaseInfo = function() {
  8914. return jspb.Message.getField(this, 1) != null;
  8915. };
  8916. /**
  8917. * optional ProjectContentType content_type = 2;
  8918. * @return {!proto.app.v1.ProjectContentType}
  8919. */
  8920. proto.app.v1.ProjectDetailReply.prototype.getContentType = function() {
  8921. return /** @type {!proto.app.v1.ProjectContentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  8922. };
  8923. /**
  8924. * @param {!proto.app.v1.ProjectContentType} value
  8925. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8926. */
  8927. proto.app.v1.ProjectDetailReply.prototype.setContentType = function(value) {
  8928. return jspb.Message.setProto3EnumField(this, 2, value);
  8929. };
  8930. /**
  8931. * optional string content = 3;
  8932. * @return {string}
  8933. */
  8934. proto.app.v1.ProjectDetailReply.prototype.getContent = function() {
  8935. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  8936. };
  8937. /**
  8938. * @param {string} value
  8939. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8940. */
  8941. proto.app.v1.ProjectDetailReply.prototype.setContent = function(value) {
  8942. return jspb.Message.setProto3StringField(this, 3, value);
  8943. };
  8944. /**
  8945. * optional int32 lockup = 4;
  8946. * @return {number}
  8947. */
  8948. proto.app.v1.ProjectDetailReply.prototype.getLockup = function() {
  8949. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  8950. };
  8951. /**
  8952. * @param {number} value
  8953. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8954. */
  8955. proto.app.v1.ProjectDetailReply.prototype.setLockup = function(value) {
  8956. return jspb.Message.setProto3IntField(this, 4, value);
  8957. };
  8958. /**
  8959. * optional int32 forcedEntTime = 5;
  8960. * @return {number}
  8961. */
  8962. proto.app.v1.ProjectDetailReply.prototype.getForcedenttime = function() {
  8963. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  8964. };
  8965. /**
  8966. * @param {number} value
  8967. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8968. */
  8969. proto.app.v1.ProjectDetailReply.prototype.setForcedenttime = function(value) {
  8970. return jspb.Message.setProto3IntField(this, 5, value);
  8971. };
  8972. /**
  8973. * optional int32 totalControlNum = 6;
  8974. * @return {number}
  8975. */
  8976. proto.app.v1.ProjectDetailReply.prototype.getTotalcontrolnum = function() {
  8977. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  8978. };
  8979. /**
  8980. * @param {number} value
  8981. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8982. */
  8983. proto.app.v1.ProjectDetailReply.prototype.setTotalcontrolnum = function(value) {
  8984. return jspb.Message.setProto3IntField(this, 6, value);
  8985. };
  8986. /**
  8987. * optional int32 maxRange = 7;
  8988. * @return {number}
  8989. */
  8990. proto.app.v1.ProjectDetailReply.prototype.getMaxrange = function() {
  8991. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  8992. };
  8993. /**
  8994. * @param {number} value
  8995. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8996. */
  8997. proto.app.v1.ProjectDetailReply.prototype.setMaxrange = function(value) {
  8998. return jspb.Message.setProto3IntField(this, 7, value);
  8999. };
  9000. /**
  9001. * optional NetImage image = 8;
  9002. * @return {?proto.app.v1.NetImage}
  9003. */
  9004. proto.app.v1.ProjectDetailReply.prototype.getImage = function() {
  9005. return /** @type{?proto.app.v1.NetImage} */ (
  9006. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 8));
  9007. };
  9008. /**
  9009. * @param {?proto.app.v1.NetImage|undefined} value
  9010. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9011. */
  9012. proto.app.v1.ProjectDetailReply.prototype.setImage = function(value) {
  9013. return jspb.Message.setWrapperField(this, 8, value);
  9014. };
  9015. /**
  9016. * Clears the message field making it undefined.
  9017. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9018. */
  9019. proto.app.v1.ProjectDetailReply.prototype.clearImage = function() {
  9020. return this.setImage(undefined);
  9021. };
  9022. /**
  9023. * Returns whether this field is set.
  9024. * @return {boolean}
  9025. */
  9026. proto.app.v1.ProjectDetailReply.prototype.hasImage = function() {
  9027. return jspb.Message.getField(this, 8) != null;
  9028. };
  9029. /**
  9030. * optional int32 mapScaleNumber = 9;
  9031. * @return {number}
  9032. */
  9033. proto.app.v1.ProjectDetailReply.prototype.getMapscalenumber = function() {
  9034. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  9035. };
  9036. /**
  9037. * @param {number} value
  9038. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9039. */
  9040. proto.app.v1.ProjectDetailReply.prototype.setMapscalenumber = function(value) {
  9041. return jspb.Message.setProto3IntField(this, 9, value);
  9042. };
  9043. /**
  9044. * optional int32 contourInterval = 10;
  9045. * @return {number}
  9046. */
  9047. proto.app.v1.ProjectDetailReply.prototype.getContourinterval = function() {
  9048. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
  9049. };
  9050. /**
  9051. * @param {number} value
  9052. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9053. */
  9054. proto.app.v1.ProjectDetailReply.prototype.setContourinterval = function(value) {
  9055. return jspb.Message.setProto3IntField(this, 10, value);
  9056. };
  9057. /**
  9058. * repeated MapRoute routes = 11;
  9059. * @return {!Array<!proto.app.v1.MapRoute>}
  9060. */
  9061. proto.app.v1.ProjectDetailReply.prototype.getRoutesList = function() {
  9062. return /** @type{!Array<!proto.app.v1.MapRoute>} */ (
  9063. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.MapRoute, 11));
  9064. };
  9065. /**
  9066. * @param {!Array<!proto.app.v1.MapRoute>} value
  9067. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9068. */
  9069. proto.app.v1.ProjectDetailReply.prototype.setRoutesList = function(value) {
  9070. return jspb.Message.setRepeatedWrapperField(this, 11, value);
  9071. };
  9072. /**
  9073. * @param {!proto.app.v1.MapRoute=} opt_value
  9074. * @param {number=} opt_index
  9075. * @return {!proto.app.v1.MapRoute}
  9076. */
  9077. proto.app.v1.ProjectDetailReply.prototype.addRoutes = function(opt_value, opt_index) {
  9078. return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.app.v1.MapRoute, opt_index);
  9079. };
  9080. /**
  9081. * Clears the list making it empty but non-null.
  9082. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9083. */
  9084. proto.app.v1.ProjectDetailReply.prototype.clearRoutesList = function() {
  9085. return this.setRoutesList([]);
  9086. };
  9087. if (jspb.Message.GENERATE_TO_OBJECT) {
  9088. /**
  9089. * Creates an object representation of this proto.
  9090. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9091. * Optional fields that are not set will be set to undefined.
  9092. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9093. * For the list of reserved names please see:
  9094. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9095. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9096. * JSPB instance for transitional soy proto support:
  9097. * http://goto/soy-param-migration
  9098. * @return {!Object}
  9099. */
  9100. proto.app.v1.GameStartReply.prototype.toObject = function(opt_includeInstance) {
  9101. return proto.app.v1.GameStartReply.toObject(opt_includeInstance, this);
  9102. };
  9103. /**
  9104. * Static version of the {@see toObject} method.
  9105. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9106. * the JSPB instance for transitional soy proto support:
  9107. * http://goto/soy-param-migration
  9108. * @param {!proto.app.v1.GameStartReply} msg The msg instance to transform.
  9109. * @return {!Object}
  9110. * @suppress {unusedLocalVariables} f is only used for nested messages
  9111. */
  9112. proto.app.v1.GameStartReply.toObject = function(includeInstance, msg) {
  9113. var f, obj = {
  9114. gameData: (f = msg.getGameData()) && proto.app.v1.GameData.toObject(includeInstance, f)
  9115. };
  9116. if (includeInstance) {
  9117. obj.$jspbMessageInstance = msg;
  9118. }
  9119. return obj;
  9120. };
  9121. }
  9122. /**
  9123. * Deserializes binary data (in protobuf wire format).
  9124. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9125. * @return {!proto.app.v1.GameStartReply}
  9126. */
  9127. proto.app.v1.GameStartReply.deserializeBinary = function(bytes) {
  9128. var reader = new jspb.BinaryReader(bytes);
  9129. var msg = new proto.app.v1.GameStartReply;
  9130. return proto.app.v1.GameStartReply.deserializeBinaryFromReader(msg, reader);
  9131. };
  9132. /**
  9133. * Deserializes binary data (in protobuf wire format) from the
  9134. * given reader into the given message object.
  9135. * @param {!proto.app.v1.GameStartReply} msg The message object to deserialize into.
  9136. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9137. * @return {!proto.app.v1.GameStartReply}
  9138. */
  9139. proto.app.v1.GameStartReply.deserializeBinaryFromReader = function(msg, reader) {
  9140. while (reader.nextField()) {
  9141. if (reader.isEndGroup()) {
  9142. break;
  9143. }
  9144. var field = reader.getFieldNumber();
  9145. switch (field) {
  9146. case 1:
  9147. var value = new proto.app.v1.GameData;
  9148. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  9149. msg.setGameData(value);
  9150. break;
  9151. default:
  9152. reader.skipField();
  9153. break;
  9154. }
  9155. }
  9156. return msg;
  9157. };
  9158. /**
  9159. * Serializes the message to binary data (in protobuf wire format).
  9160. * @return {!Uint8Array}
  9161. */
  9162. proto.app.v1.GameStartReply.prototype.serializeBinary = function() {
  9163. var writer = new jspb.BinaryWriter();
  9164. proto.app.v1.GameStartReply.serializeBinaryToWriter(this, writer);
  9165. return writer.getResultBuffer();
  9166. };
  9167. /**
  9168. * Serializes the given message to binary data (in protobuf wire
  9169. * format), writing to the given BinaryWriter.
  9170. * @param {!proto.app.v1.GameStartReply} message
  9171. * @param {!jspb.BinaryWriter} writer
  9172. * @suppress {unusedLocalVariables} f is only used for nested messages
  9173. */
  9174. proto.app.v1.GameStartReply.serializeBinaryToWriter = function(message, writer) {
  9175. var f = undefined;
  9176. f = message.getGameData();
  9177. if (f != null) {
  9178. writer.writeMessage(
  9179. 1,
  9180. f,
  9181. proto.app.v1.GameData.serializeBinaryToWriter
  9182. );
  9183. }
  9184. };
  9185. /**
  9186. * optional GameData game_data = 1;
  9187. * @return {?proto.app.v1.GameData}
  9188. */
  9189. proto.app.v1.GameStartReply.prototype.getGameData = function() {
  9190. return /** @type{?proto.app.v1.GameData} */ (
  9191. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  9192. };
  9193. /**
  9194. * @param {?proto.app.v1.GameData|undefined} value
  9195. * @return {!proto.app.v1.GameStartReply} returns this
  9196. */
  9197. proto.app.v1.GameStartReply.prototype.setGameData = function(value) {
  9198. return jspb.Message.setWrapperField(this, 1, value);
  9199. };
  9200. /**
  9201. * Clears the message field making it undefined.
  9202. * @return {!proto.app.v1.GameStartReply} returns this
  9203. */
  9204. proto.app.v1.GameStartReply.prototype.clearGameData = function() {
  9205. return this.setGameData(undefined);
  9206. };
  9207. /**
  9208. * Returns whether this field is set.
  9209. * @return {boolean}
  9210. */
  9211. proto.app.v1.GameStartReply.prototype.hasGameData = function() {
  9212. return jspb.Message.getField(this, 1) != null;
  9213. };
  9214. if (jspb.Message.GENERATE_TO_OBJECT) {
  9215. /**
  9216. * Creates an object representation of this proto.
  9217. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9218. * Optional fields that are not set will be set to undefined.
  9219. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9220. * For the list of reserved names please see:
  9221. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9222. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9223. * JSPB instance for transitional soy proto support:
  9224. * http://goto/soy-param-migration
  9225. * @return {!Object}
  9226. */
  9227. proto.app.v1.GetRegionReply.prototype.toObject = function(opt_includeInstance) {
  9228. return proto.app.v1.GetRegionReply.toObject(opt_includeInstance, this);
  9229. };
  9230. /**
  9231. * Static version of the {@see toObject} method.
  9232. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9233. * the JSPB instance for transitional soy proto support:
  9234. * http://goto/soy-param-migration
  9235. * @param {!proto.app.v1.GetRegionReply} msg The msg instance to transform.
  9236. * @return {!Object}
  9237. * @suppress {unusedLocalVariables} f is only used for nested messages
  9238. */
  9239. proto.app.v1.GetRegionReply.toObject = function(includeInstance, msg) {
  9240. var f, obj = {
  9241. province: jspb.Message.getFieldWithDefault(msg, 1, ""),
  9242. provinceid: jspb.Message.getFieldWithDefault(msg, 2, ""),
  9243. city: jspb.Message.getFieldWithDefault(msg, 3, ""),
  9244. cityid: jspb.Message.getFieldWithDefault(msg, 4, "")
  9245. };
  9246. if (includeInstance) {
  9247. obj.$jspbMessageInstance = msg;
  9248. }
  9249. return obj;
  9250. };
  9251. }
  9252. /**
  9253. * Deserializes binary data (in protobuf wire format).
  9254. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9255. * @return {!proto.app.v1.GetRegionReply}
  9256. */
  9257. proto.app.v1.GetRegionReply.deserializeBinary = function(bytes) {
  9258. var reader = new jspb.BinaryReader(bytes);
  9259. var msg = new proto.app.v1.GetRegionReply;
  9260. return proto.app.v1.GetRegionReply.deserializeBinaryFromReader(msg, reader);
  9261. };
  9262. /**
  9263. * Deserializes binary data (in protobuf wire format) from the
  9264. * given reader into the given message object.
  9265. * @param {!proto.app.v1.GetRegionReply} msg The message object to deserialize into.
  9266. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9267. * @return {!proto.app.v1.GetRegionReply}
  9268. */
  9269. proto.app.v1.GetRegionReply.deserializeBinaryFromReader = function(msg, reader) {
  9270. while (reader.nextField()) {
  9271. if (reader.isEndGroup()) {
  9272. break;
  9273. }
  9274. var field = reader.getFieldNumber();
  9275. switch (field) {
  9276. case 1:
  9277. var value = /** @type {string} */ (reader.readString());
  9278. msg.setProvince(value);
  9279. break;
  9280. case 2:
  9281. var value = /** @type {string} */ (reader.readString());
  9282. msg.setProvinceid(value);
  9283. break;
  9284. case 3:
  9285. var value = /** @type {string} */ (reader.readString());
  9286. msg.setCity(value);
  9287. break;
  9288. case 4:
  9289. var value = /** @type {string} */ (reader.readString());
  9290. msg.setCityid(value);
  9291. break;
  9292. default:
  9293. reader.skipField();
  9294. break;
  9295. }
  9296. }
  9297. return msg;
  9298. };
  9299. /**
  9300. * Serializes the message to binary data (in protobuf wire format).
  9301. * @return {!Uint8Array}
  9302. */
  9303. proto.app.v1.GetRegionReply.prototype.serializeBinary = function() {
  9304. var writer = new jspb.BinaryWriter();
  9305. proto.app.v1.GetRegionReply.serializeBinaryToWriter(this, writer);
  9306. return writer.getResultBuffer();
  9307. };
  9308. /**
  9309. * Serializes the given message to binary data (in protobuf wire
  9310. * format), writing to the given BinaryWriter.
  9311. * @param {!proto.app.v1.GetRegionReply} message
  9312. * @param {!jspb.BinaryWriter} writer
  9313. * @suppress {unusedLocalVariables} f is only used for nested messages
  9314. */
  9315. proto.app.v1.GetRegionReply.serializeBinaryToWriter = function(message, writer) {
  9316. var f = undefined;
  9317. f = message.getProvince();
  9318. if (f.length > 0) {
  9319. writer.writeString(
  9320. 1,
  9321. f
  9322. );
  9323. }
  9324. f = message.getProvinceid();
  9325. if (f.length > 0) {
  9326. writer.writeString(
  9327. 2,
  9328. f
  9329. );
  9330. }
  9331. f = message.getCity();
  9332. if (f.length > 0) {
  9333. writer.writeString(
  9334. 3,
  9335. f
  9336. );
  9337. }
  9338. f = message.getCityid();
  9339. if (f.length > 0) {
  9340. writer.writeString(
  9341. 4,
  9342. f
  9343. );
  9344. }
  9345. };
  9346. /**
  9347. * optional string province = 1;
  9348. * @return {string}
  9349. */
  9350. proto.app.v1.GetRegionReply.prototype.getProvince = function() {
  9351. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9352. };
  9353. /**
  9354. * @param {string} value
  9355. * @return {!proto.app.v1.GetRegionReply} returns this
  9356. */
  9357. proto.app.v1.GetRegionReply.prototype.setProvince = function(value) {
  9358. return jspb.Message.setProto3StringField(this, 1, value);
  9359. };
  9360. /**
  9361. * optional string provinceId = 2;
  9362. * @return {string}
  9363. */
  9364. proto.app.v1.GetRegionReply.prototype.getProvinceid = function() {
  9365. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  9366. };
  9367. /**
  9368. * @param {string} value
  9369. * @return {!proto.app.v1.GetRegionReply} returns this
  9370. */
  9371. proto.app.v1.GetRegionReply.prototype.setProvinceid = function(value) {
  9372. return jspb.Message.setProto3StringField(this, 2, value);
  9373. };
  9374. /**
  9375. * optional string city = 3;
  9376. * @return {string}
  9377. */
  9378. proto.app.v1.GetRegionReply.prototype.getCity = function() {
  9379. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  9380. };
  9381. /**
  9382. * @param {string} value
  9383. * @return {!proto.app.v1.GetRegionReply} returns this
  9384. */
  9385. proto.app.v1.GetRegionReply.prototype.setCity = function(value) {
  9386. return jspb.Message.setProto3StringField(this, 3, value);
  9387. };
  9388. /**
  9389. * optional string cityId = 4;
  9390. * @return {string}
  9391. */
  9392. proto.app.v1.GetRegionReply.prototype.getCityid = function() {
  9393. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  9394. };
  9395. /**
  9396. * @param {string} value
  9397. * @return {!proto.app.v1.GetRegionReply} returns this
  9398. */
  9399. proto.app.v1.GetRegionReply.prototype.setCityid = function(value) {
  9400. return jspb.Message.setProto3StringField(this, 4, value);
  9401. };
  9402. if (jspb.Message.GENERATE_TO_OBJECT) {
  9403. /**
  9404. * Creates an object representation of this proto.
  9405. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9406. * Optional fields that are not set will be set to undefined.
  9407. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9408. * For the list of reserved names please see:
  9409. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9410. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9411. * JSPB instance for transitional soy proto support:
  9412. * http://goto/soy-param-migration
  9413. * @return {!Object}
  9414. */
  9415. proto.app.v1.RegionListRequest.prototype.toObject = function(opt_includeInstance) {
  9416. return proto.app.v1.RegionListRequest.toObject(opt_includeInstance, this);
  9417. };
  9418. /**
  9419. * Static version of the {@see toObject} method.
  9420. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9421. * the JSPB instance for transitional soy proto support:
  9422. * http://goto/soy-param-migration
  9423. * @param {!proto.app.v1.RegionListRequest} msg The msg instance to transform.
  9424. * @return {!Object}
  9425. * @suppress {unusedLocalVariables} f is only used for nested messages
  9426. */
  9427. proto.app.v1.RegionListRequest.toObject = function(includeInstance, msg) {
  9428. var f, obj = {
  9429. countryCode: jspb.Message.getFieldWithDefault(msg, 1, "")
  9430. };
  9431. if (includeInstance) {
  9432. obj.$jspbMessageInstance = msg;
  9433. }
  9434. return obj;
  9435. };
  9436. }
  9437. /**
  9438. * Deserializes binary data (in protobuf wire format).
  9439. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9440. * @return {!proto.app.v1.RegionListRequest}
  9441. */
  9442. proto.app.v1.RegionListRequest.deserializeBinary = function(bytes) {
  9443. var reader = new jspb.BinaryReader(bytes);
  9444. var msg = new proto.app.v1.RegionListRequest;
  9445. return proto.app.v1.RegionListRequest.deserializeBinaryFromReader(msg, reader);
  9446. };
  9447. /**
  9448. * Deserializes binary data (in protobuf wire format) from the
  9449. * given reader into the given message object.
  9450. * @param {!proto.app.v1.RegionListRequest} msg The message object to deserialize into.
  9451. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9452. * @return {!proto.app.v1.RegionListRequest}
  9453. */
  9454. proto.app.v1.RegionListRequest.deserializeBinaryFromReader = function(msg, reader) {
  9455. while (reader.nextField()) {
  9456. if (reader.isEndGroup()) {
  9457. break;
  9458. }
  9459. var field = reader.getFieldNumber();
  9460. switch (field) {
  9461. case 1:
  9462. var value = /** @type {string} */ (reader.readString());
  9463. msg.setCountryCode(value);
  9464. break;
  9465. default:
  9466. reader.skipField();
  9467. break;
  9468. }
  9469. }
  9470. return msg;
  9471. };
  9472. /**
  9473. * Serializes the message to binary data (in protobuf wire format).
  9474. * @return {!Uint8Array}
  9475. */
  9476. proto.app.v1.RegionListRequest.prototype.serializeBinary = function() {
  9477. var writer = new jspb.BinaryWriter();
  9478. proto.app.v1.RegionListRequest.serializeBinaryToWriter(this, writer);
  9479. return writer.getResultBuffer();
  9480. };
  9481. /**
  9482. * Serializes the given message to binary data (in protobuf wire
  9483. * format), writing to the given BinaryWriter.
  9484. * @param {!proto.app.v1.RegionListRequest} message
  9485. * @param {!jspb.BinaryWriter} writer
  9486. * @suppress {unusedLocalVariables} f is only used for nested messages
  9487. */
  9488. proto.app.v1.RegionListRequest.serializeBinaryToWriter = function(message, writer) {
  9489. var f = undefined;
  9490. f = message.getCountryCode();
  9491. if (f.length > 0) {
  9492. writer.writeString(
  9493. 1,
  9494. f
  9495. );
  9496. }
  9497. };
  9498. /**
  9499. * optional string country_code = 1;
  9500. * @return {string}
  9501. */
  9502. proto.app.v1.RegionListRequest.prototype.getCountryCode = function() {
  9503. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9504. };
  9505. /**
  9506. * @param {string} value
  9507. * @return {!proto.app.v1.RegionListRequest} returns this
  9508. */
  9509. proto.app.v1.RegionListRequest.prototype.setCountryCode = function(value) {
  9510. return jspb.Message.setProto3StringField(this, 1, value);
  9511. };
  9512. if (jspb.Message.GENERATE_TO_OBJECT) {
  9513. /**
  9514. * Creates an object representation of this proto.
  9515. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9516. * Optional fields that are not set will be set to undefined.
  9517. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9518. * For the list of reserved names please see:
  9519. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9520. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9521. * JSPB instance for transitional soy proto support:
  9522. * http://goto/soy-param-migration
  9523. * @return {!Object}
  9524. */
  9525. proto.app.v1.Region.prototype.toObject = function(opt_includeInstance) {
  9526. return proto.app.v1.Region.toObject(opt_includeInstance, this);
  9527. };
  9528. /**
  9529. * Static version of the {@see toObject} method.
  9530. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9531. * the JSPB instance for transitional soy proto support:
  9532. * http://goto/soy-param-migration
  9533. * @param {!proto.app.v1.Region} msg The msg instance to transform.
  9534. * @return {!Object}
  9535. * @suppress {unusedLocalVariables} f is only used for nested messages
  9536. */
  9537. proto.app.v1.Region.toObject = function(includeInstance, msg) {
  9538. var f, obj = {
  9539. code: jspb.Message.getFieldWithDefault(msg, 1, ""),
  9540. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  9541. };
  9542. if (includeInstance) {
  9543. obj.$jspbMessageInstance = msg;
  9544. }
  9545. return obj;
  9546. };
  9547. }
  9548. /**
  9549. * Deserializes binary data (in protobuf wire format).
  9550. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9551. * @return {!proto.app.v1.Region}
  9552. */
  9553. proto.app.v1.Region.deserializeBinary = function(bytes) {
  9554. var reader = new jspb.BinaryReader(bytes);
  9555. var msg = new proto.app.v1.Region;
  9556. return proto.app.v1.Region.deserializeBinaryFromReader(msg, reader);
  9557. };
  9558. /**
  9559. * Deserializes binary data (in protobuf wire format) from the
  9560. * given reader into the given message object.
  9561. * @param {!proto.app.v1.Region} msg The message object to deserialize into.
  9562. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9563. * @return {!proto.app.v1.Region}
  9564. */
  9565. proto.app.v1.Region.deserializeBinaryFromReader = function(msg, reader) {
  9566. while (reader.nextField()) {
  9567. if (reader.isEndGroup()) {
  9568. break;
  9569. }
  9570. var field = reader.getFieldNumber();
  9571. switch (field) {
  9572. case 1:
  9573. var value = /** @type {string} */ (reader.readString());
  9574. msg.setCode(value);
  9575. break;
  9576. case 2:
  9577. var value = /** @type {string} */ (reader.readString());
  9578. msg.setName(value);
  9579. break;
  9580. default:
  9581. reader.skipField();
  9582. break;
  9583. }
  9584. }
  9585. return msg;
  9586. };
  9587. /**
  9588. * Serializes the message to binary data (in protobuf wire format).
  9589. * @return {!Uint8Array}
  9590. */
  9591. proto.app.v1.Region.prototype.serializeBinary = function() {
  9592. var writer = new jspb.BinaryWriter();
  9593. proto.app.v1.Region.serializeBinaryToWriter(this, writer);
  9594. return writer.getResultBuffer();
  9595. };
  9596. /**
  9597. * Serializes the given message to binary data (in protobuf wire
  9598. * format), writing to the given BinaryWriter.
  9599. * @param {!proto.app.v1.Region} message
  9600. * @param {!jspb.BinaryWriter} writer
  9601. * @suppress {unusedLocalVariables} f is only used for nested messages
  9602. */
  9603. proto.app.v1.Region.serializeBinaryToWriter = function(message, writer) {
  9604. var f = undefined;
  9605. f = message.getCode();
  9606. if (f.length > 0) {
  9607. writer.writeString(
  9608. 1,
  9609. f
  9610. );
  9611. }
  9612. f = message.getName();
  9613. if (f.length > 0) {
  9614. writer.writeString(
  9615. 2,
  9616. f
  9617. );
  9618. }
  9619. };
  9620. /**
  9621. * optional string code = 1;
  9622. * @return {string}
  9623. */
  9624. proto.app.v1.Region.prototype.getCode = function() {
  9625. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9626. };
  9627. /**
  9628. * @param {string} value
  9629. * @return {!proto.app.v1.Region} returns this
  9630. */
  9631. proto.app.v1.Region.prototype.setCode = function(value) {
  9632. return jspb.Message.setProto3StringField(this, 1, value);
  9633. };
  9634. /**
  9635. * optional string name = 2;
  9636. * @return {string}
  9637. */
  9638. proto.app.v1.Region.prototype.getName = function() {
  9639. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  9640. };
  9641. /**
  9642. * @param {string} value
  9643. * @return {!proto.app.v1.Region} returns this
  9644. */
  9645. proto.app.v1.Region.prototype.setName = function(value) {
  9646. return jspb.Message.setProto3StringField(this, 2, value);
  9647. };
  9648. /**
  9649. * List of repeated fields within this message type.
  9650. * @private {!Array<number>}
  9651. * @const
  9652. */
  9653. proto.app.v1.RegionListReply.repeatedFields_ = [1];
  9654. if (jspb.Message.GENERATE_TO_OBJECT) {
  9655. /**
  9656. * Creates an object representation of this proto.
  9657. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9658. * Optional fields that are not set will be set to undefined.
  9659. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9660. * For the list of reserved names please see:
  9661. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9662. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9663. * JSPB instance for transitional soy proto support:
  9664. * http://goto/soy-param-migration
  9665. * @return {!Object}
  9666. */
  9667. proto.app.v1.RegionListReply.prototype.toObject = function(opt_includeInstance) {
  9668. return proto.app.v1.RegionListReply.toObject(opt_includeInstance, this);
  9669. };
  9670. /**
  9671. * Static version of the {@see toObject} method.
  9672. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9673. * the JSPB instance for transitional soy proto support:
  9674. * http://goto/soy-param-migration
  9675. * @param {!proto.app.v1.RegionListReply} msg The msg instance to transform.
  9676. * @return {!Object}
  9677. * @suppress {unusedLocalVariables} f is only used for nested messages
  9678. */
  9679. proto.app.v1.RegionListReply.toObject = function(includeInstance, msg) {
  9680. var f, obj = {
  9681. regionList: jspb.Message.toObjectList(msg.getRegionList(),
  9682. proto.app.v1.Region.toObject, includeInstance)
  9683. };
  9684. if (includeInstance) {
  9685. obj.$jspbMessageInstance = msg;
  9686. }
  9687. return obj;
  9688. };
  9689. }
  9690. /**
  9691. * Deserializes binary data (in protobuf wire format).
  9692. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9693. * @return {!proto.app.v1.RegionListReply}
  9694. */
  9695. proto.app.v1.RegionListReply.deserializeBinary = function(bytes) {
  9696. var reader = new jspb.BinaryReader(bytes);
  9697. var msg = new proto.app.v1.RegionListReply;
  9698. return proto.app.v1.RegionListReply.deserializeBinaryFromReader(msg, reader);
  9699. };
  9700. /**
  9701. * Deserializes binary data (in protobuf wire format) from the
  9702. * given reader into the given message object.
  9703. * @param {!proto.app.v1.RegionListReply} msg The message object to deserialize into.
  9704. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9705. * @return {!proto.app.v1.RegionListReply}
  9706. */
  9707. proto.app.v1.RegionListReply.deserializeBinaryFromReader = function(msg, reader) {
  9708. while (reader.nextField()) {
  9709. if (reader.isEndGroup()) {
  9710. break;
  9711. }
  9712. var field = reader.getFieldNumber();
  9713. switch (field) {
  9714. case 1:
  9715. var value = new proto.app.v1.Region;
  9716. reader.readMessage(value,proto.app.v1.Region.deserializeBinaryFromReader);
  9717. msg.addRegion(value);
  9718. break;
  9719. default:
  9720. reader.skipField();
  9721. break;
  9722. }
  9723. }
  9724. return msg;
  9725. };
  9726. /**
  9727. * Serializes the message to binary data (in protobuf wire format).
  9728. * @return {!Uint8Array}
  9729. */
  9730. proto.app.v1.RegionListReply.prototype.serializeBinary = function() {
  9731. var writer = new jspb.BinaryWriter();
  9732. proto.app.v1.RegionListReply.serializeBinaryToWriter(this, writer);
  9733. return writer.getResultBuffer();
  9734. };
  9735. /**
  9736. * Serializes the given message to binary data (in protobuf wire
  9737. * format), writing to the given BinaryWriter.
  9738. * @param {!proto.app.v1.RegionListReply} message
  9739. * @param {!jspb.BinaryWriter} writer
  9740. * @suppress {unusedLocalVariables} f is only used for nested messages
  9741. */
  9742. proto.app.v1.RegionListReply.serializeBinaryToWriter = function(message, writer) {
  9743. var f = undefined;
  9744. f = message.getRegionList();
  9745. if (f.length > 0) {
  9746. writer.writeRepeatedMessage(
  9747. 1,
  9748. f,
  9749. proto.app.v1.Region.serializeBinaryToWriter
  9750. );
  9751. }
  9752. };
  9753. /**
  9754. * repeated Region region = 1;
  9755. * @return {!Array<!proto.app.v1.Region>}
  9756. */
  9757. proto.app.v1.RegionListReply.prototype.getRegionList = function() {
  9758. return /** @type{!Array<!proto.app.v1.Region>} */ (
  9759. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.Region, 1));
  9760. };
  9761. /**
  9762. * @param {!Array<!proto.app.v1.Region>} value
  9763. * @return {!proto.app.v1.RegionListReply} returns this
  9764. */
  9765. proto.app.v1.RegionListReply.prototype.setRegionList = function(value) {
  9766. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  9767. };
  9768. /**
  9769. * @param {!proto.app.v1.Region=} opt_value
  9770. * @param {number=} opt_index
  9771. * @return {!proto.app.v1.Region}
  9772. */
  9773. proto.app.v1.RegionListReply.prototype.addRegion = function(opt_value, opt_index) {
  9774. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.Region, opt_index);
  9775. };
  9776. /**
  9777. * Clears the list making it empty but non-null.
  9778. * @return {!proto.app.v1.RegionListReply} returns this
  9779. */
  9780. proto.app.v1.RegionListReply.prototype.clearRegionList = function() {
  9781. return this.setRegionList([]);
  9782. };
  9783. if (jspb.Message.GENERATE_TO_OBJECT) {
  9784. /**
  9785. * Creates an object representation of this proto.
  9786. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9787. * Optional fields that are not set will be set to undefined.
  9788. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9789. * For the list of reserved names please see:
  9790. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9791. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9792. * JSPB instance for transitional soy proto support:
  9793. * http://goto/soy-param-migration
  9794. * @return {!Object}
  9795. */
  9796. proto.app.v1.GetInGameDataReply.prototype.toObject = function(opt_includeInstance) {
  9797. return proto.app.v1.GetInGameDataReply.toObject(opt_includeInstance, this);
  9798. };
  9799. /**
  9800. * Static version of the {@see toObject} method.
  9801. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9802. * the JSPB instance for transitional soy proto support:
  9803. * http://goto/soy-param-migration
  9804. * @param {!proto.app.v1.GetInGameDataReply} msg The msg instance to transform.
  9805. * @return {!Object}
  9806. * @suppress {unusedLocalVariables} f is only used for nested messages
  9807. */
  9808. proto.app.v1.GetInGameDataReply.toObject = function(includeInstance, msg) {
  9809. var f, obj = {
  9810. data: (f = msg.getData()) && proto.app.v1.GameData.toObject(includeInstance, f),
  9811. save: (f = msg.getSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  9812. };
  9813. if (includeInstance) {
  9814. obj.$jspbMessageInstance = msg;
  9815. }
  9816. return obj;
  9817. };
  9818. }
  9819. /**
  9820. * Deserializes binary data (in protobuf wire format).
  9821. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9822. * @return {!proto.app.v1.GetInGameDataReply}
  9823. */
  9824. proto.app.v1.GetInGameDataReply.deserializeBinary = function(bytes) {
  9825. var reader = new jspb.BinaryReader(bytes);
  9826. var msg = new proto.app.v1.GetInGameDataReply;
  9827. return proto.app.v1.GetInGameDataReply.deserializeBinaryFromReader(msg, reader);
  9828. };
  9829. /**
  9830. * Deserializes binary data (in protobuf wire format) from the
  9831. * given reader into the given message object.
  9832. * @param {!proto.app.v1.GetInGameDataReply} msg The message object to deserialize into.
  9833. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9834. * @return {!proto.app.v1.GetInGameDataReply}
  9835. */
  9836. proto.app.v1.GetInGameDataReply.deserializeBinaryFromReader = function(msg, reader) {
  9837. while (reader.nextField()) {
  9838. if (reader.isEndGroup()) {
  9839. break;
  9840. }
  9841. var field = reader.getFieldNumber();
  9842. switch (field) {
  9843. case 1:
  9844. var value = new proto.app.v1.GameData;
  9845. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  9846. msg.setData(value);
  9847. break;
  9848. case 2:
  9849. var value = new proto.app.v1.GameSave;
  9850. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  9851. msg.setSave(value);
  9852. break;
  9853. default:
  9854. reader.skipField();
  9855. break;
  9856. }
  9857. }
  9858. return msg;
  9859. };
  9860. /**
  9861. * Serializes the message to binary data (in protobuf wire format).
  9862. * @return {!Uint8Array}
  9863. */
  9864. proto.app.v1.GetInGameDataReply.prototype.serializeBinary = function() {
  9865. var writer = new jspb.BinaryWriter();
  9866. proto.app.v1.GetInGameDataReply.serializeBinaryToWriter(this, writer);
  9867. return writer.getResultBuffer();
  9868. };
  9869. /**
  9870. * Serializes the given message to binary data (in protobuf wire
  9871. * format), writing to the given BinaryWriter.
  9872. * @param {!proto.app.v1.GetInGameDataReply} message
  9873. * @param {!jspb.BinaryWriter} writer
  9874. * @suppress {unusedLocalVariables} f is only used for nested messages
  9875. */
  9876. proto.app.v1.GetInGameDataReply.serializeBinaryToWriter = function(message, writer) {
  9877. var f = undefined;
  9878. f = message.getData();
  9879. if (f != null) {
  9880. writer.writeMessage(
  9881. 1,
  9882. f,
  9883. proto.app.v1.GameData.serializeBinaryToWriter
  9884. );
  9885. }
  9886. f = message.getSave();
  9887. if (f != null) {
  9888. writer.writeMessage(
  9889. 2,
  9890. f,
  9891. proto.app.v1.GameSave.serializeBinaryToWriter
  9892. );
  9893. }
  9894. };
  9895. /**
  9896. * optional GameData data = 1;
  9897. * @return {?proto.app.v1.GameData}
  9898. */
  9899. proto.app.v1.GetInGameDataReply.prototype.getData = function() {
  9900. return /** @type{?proto.app.v1.GameData} */ (
  9901. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  9902. };
  9903. /**
  9904. * @param {?proto.app.v1.GameData|undefined} value
  9905. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9906. */
  9907. proto.app.v1.GetInGameDataReply.prototype.setData = function(value) {
  9908. return jspb.Message.setWrapperField(this, 1, value);
  9909. };
  9910. /**
  9911. * Clears the message field making it undefined.
  9912. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9913. */
  9914. proto.app.v1.GetInGameDataReply.prototype.clearData = function() {
  9915. return this.setData(undefined);
  9916. };
  9917. /**
  9918. * Returns whether this field is set.
  9919. * @return {boolean}
  9920. */
  9921. proto.app.v1.GetInGameDataReply.prototype.hasData = function() {
  9922. return jspb.Message.getField(this, 1) != null;
  9923. };
  9924. /**
  9925. * optional GameSave save = 2;
  9926. * @return {?proto.app.v1.GameSave}
  9927. */
  9928. proto.app.v1.GetInGameDataReply.prototype.getSave = function() {
  9929. return /** @type{?proto.app.v1.GameSave} */ (
  9930. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 2));
  9931. };
  9932. /**
  9933. * @param {?proto.app.v1.GameSave|undefined} value
  9934. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9935. */
  9936. proto.app.v1.GetInGameDataReply.prototype.setSave = function(value) {
  9937. return jspb.Message.setWrapperField(this, 2, value);
  9938. };
  9939. /**
  9940. * Clears the message field making it undefined.
  9941. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9942. */
  9943. proto.app.v1.GetInGameDataReply.prototype.clearSave = function() {
  9944. return this.setSave(undefined);
  9945. };
  9946. /**
  9947. * Returns whether this field is set.
  9948. * @return {boolean}
  9949. */
  9950. proto.app.v1.GetInGameDataReply.prototype.hasSave = function() {
  9951. return jspb.Message.getField(this, 2) != null;
  9952. };
  9953. if (jspb.Message.GENERATE_TO_OBJECT) {
  9954. /**
  9955. * Creates an object representation of this proto.
  9956. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9957. * Optional fields that are not set will be set to undefined.
  9958. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9959. * For the list of reserved names please see:
  9960. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9961. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9962. * JSPB instance for transitional soy proto support:
  9963. * http://goto/soy-param-migration
  9964. * @return {!Object}
  9965. */
  9966. proto.app.v1.MyUserQueryReply.prototype.toObject = function(opt_includeInstance) {
  9967. return proto.app.v1.MyUserQueryReply.toObject(opt_includeInstance, this);
  9968. };
  9969. /**
  9970. * Static version of the {@see toObject} method.
  9971. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9972. * the JSPB instance for transitional soy proto support:
  9973. * http://goto/soy-param-migration
  9974. * @param {!proto.app.v1.MyUserQueryReply} msg The msg instance to transform.
  9975. * @return {!Object}
  9976. * @suppress {unusedLocalVariables} f is only used for nested messages
  9977. */
  9978. proto.app.v1.MyUserQueryReply.toObject = function(includeInstance, msg) {
  9979. var f, obj = {
  9980. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  9981. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  9982. head: (f = msg.getHead()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  9983. syspoint: jspb.Message.getFieldWithDefault(msg, 4, 0),
  9984. phone: jspb.Message.getFieldWithDefault(msg, 5, "")
  9985. };
  9986. if (includeInstance) {
  9987. obj.$jspbMessageInstance = msg;
  9988. }
  9989. return obj;
  9990. };
  9991. }
  9992. /**
  9993. * Deserializes binary data (in protobuf wire format).
  9994. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9995. * @return {!proto.app.v1.MyUserQueryReply}
  9996. */
  9997. proto.app.v1.MyUserQueryReply.deserializeBinary = function(bytes) {
  9998. var reader = new jspb.BinaryReader(bytes);
  9999. var msg = new proto.app.v1.MyUserQueryReply;
  10000. return proto.app.v1.MyUserQueryReply.deserializeBinaryFromReader(msg, reader);
  10001. };
  10002. /**
  10003. * Deserializes binary data (in protobuf wire format) from the
  10004. * given reader into the given message object.
  10005. * @param {!proto.app.v1.MyUserQueryReply} msg The message object to deserialize into.
  10006. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10007. * @return {!proto.app.v1.MyUserQueryReply}
  10008. */
  10009. proto.app.v1.MyUserQueryReply.deserializeBinaryFromReader = function(msg, reader) {
  10010. while (reader.nextField()) {
  10011. if (reader.isEndGroup()) {
  10012. break;
  10013. }
  10014. var field = reader.getFieldNumber();
  10015. switch (field) {
  10016. case 1:
  10017. var value = /** @type {number} */ (reader.readInt32());
  10018. msg.setUserid(value);
  10019. break;
  10020. case 2:
  10021. var value = /** @type {string} */ (reader.readString());
  10022. msg.setName(value);
  10023. break;
  10024. case 3:
  10025. var value = new proto.app.v1.NetImage;
  10026. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  10027. msg.setHead(value);
  10028. break;
  10029. case 4:
  10030. var value = /** @type {number} */ (reader.readInt32());
  10031. msg.setSyspoint(value);
  10032. break;
  10033. case 5:
  10034. var value = /** @type {string} */ (reader.readString());
  10035. msg.setPhone(value);
  10036. break;
  10037. default:
  10038. reader.skipField();
  10039. break;
  10040. }
  10041. }
  10042. return msg;
  10043. };
  10044. /**
  10045. * Serializes the message to binary data (in protobuf wire format).
  10046. * @return {!Uint8Array}
  10047. */
  10048. proto.app.v1.MyUserQueryReply.prototype.serializeBinary = function() {
  10049. var writer = new jspb.BinaryWriter();
  10050. proto.app.v1.MyUserQueryReply.serializeBinaryToWriter(this, writer);
  10051. return writer.getResultBuffer();
  10052. };
  10053. /**
  10054. * Serializes the given message to binary data (in protobuf wire
  10055. * format), writing to the given BinaryWriter.
  10056. * @param {!proto.app.v1.MyUserQueryReply} message
  10057. * @param {!jspb.BinaryWriter} writer
  10058. * @suppress {unusedLocalVariables} f is only used for nested messages
  10059. */
  10060. proto.app.v1.MyUserQueryReply.serializeBinaryToWriter = function(message, writer) {
  10061. var f = undefined;
  10062. f = message.getUserid();
  10063. if (f !== 0) {
  10064. writer.writeInt32(
  10065. 1,
  10066. f
  10067. );
  10068. }
  10069. f = message.getName();
  10070. if (f.length > 0) {
  10071. writer.writeString(
  10072. 2,
  10073. f
  10074. );
  10075. }
  10076. f = message.getHead();
  10077. if (f != null) {
  10078. writer.writeMessage(
  10079. 3,
  10080. f,
  10081. proto.app.v1.NetImage.serializeBinaryToWriter
  10082. );
  10083. }
  10084. f = message.getSyspoint();
  10085. if (f !== 0) {
  10086. writer.writeInt32(
  10087. 4,
  10088. f
  10089. );
  10090. }
  10091. f = message.getPhone();
  10092. if (f.length > 0) {
  10093. writer.writeString(
  10094. 5,
  10095. f
  10096. );
  10097. }
  10098. };
  10099. /**
  10100. * optional int32 userId = 1;
  10101. * @return {number}
  10102. */
  10103. proto.app.v1.MyUserQueryReply.prototype.getUserid = function() {
  10104. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10105. };
  10106. /**
  10107. * @param {number} value
  10108. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10109. */
  10110. proto.app.v1.MyUserQueryReply.prototype.setUserid = function(value) {
  10111. return jspb.Message.setProto3IntField(this, 1, value);
  10112. };
  10113. /**
  10114. * optional string name = 2;
  10115. * @return {string}
  10116. */
  10117. proto.app.v1.MyUserQueryReply.prototype.getName = function() {
  10118. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10119. };
  10120. /**
  10121. * @param {string} value
  10122. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10123. */
  10124. proto.app.v1.MyUserQueryReply.prototype.setName = function(value) {
  10125. return jspb.Message.setProto3StringField(this, 2, value);
  10126. };
  10127. /**
  10128. * optional NetImage head = 3;
  10129. * @return {?proto.app.v1.NetImage}
  10130. */
  10131. proto.app.v1.MyUserQueryReply.prototype.getHead = function() {
  10132. return /** @type{?proto.app.v1.NetImage} */ (
  10133. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  10134. };
  10135. /**
  10136. * @param {?proto.app.v1.NetImage|undefined} value
  10137. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10138. */
  10139. proto.app.v1.MyUserQueryReply.prototype.setHead = function(value) {
  10140. return jspb.Message.setWrapperField(this, 3, value);
  10141. };
  10142. /**
  10143. * Clears the message field making it undefined.
  10144. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10145. */
  10146. proto.app.v1.MyUserQueryReply.prototype.clearHead = function() {
  10147. return this.setHead(undefined);
  10148. };
  10149. /**
  10150. * Returns whether this field is set.
  10151. * @return {boolean}
  10152. */
  10153. proto.app.v1.MyUserQueryReply.prototype.hasHead = function() {
  10154. return jspb.Message.getField(this, 3) != null;
  10155. };
  10156. /**
  10157. * optional int32 sysPoint = 4;
  10158. * @return {number}
  10159. */
  10160. proto.app.v1.MyUserQueryReply.prototype.getSyspoint = function() {
  10161. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  10162. };
  10163. /**
  10164. * @param {number} value
  10165. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10166. */
  10167. proto.app.v1.MyUserQueryReply.prototype.setSyspoint = function(value) {
  10168. return jspb.Message.setProto3IntField(this, 4, value);
  10169. };
  10170. /**
  10171. * optional string phone = 5;
  10172. * @return {string}
  10173. */
  10174. proto.app.v1.MyUserQueryReply.prototype.getPhone = function() {
  10175. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  10176. };
  10177. /**
  10178. * @param {string} value
  10179. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10180. */
  10181. proto.app.v1.MyUserQueryReply.prototype.setPhone = function(value) {
  10182. return jspb.Message.setProto3StringField(this, 5, value);
  10183. };
  10184. /**
  10185. * List of repeated fields within this message type.
  10186. * @private {!Array<number>}
  10187. * @const
  10188. */
  10189. proto.app.v1.AssShopListReply.repeatedFields_ = [1];
  10190. if (jspb.Message.GENERATE_TO_OBJECT) {
  10191. /**
  10192. * Creates an object representation of this proto.
  10193. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10194. * Optional fields that are not set will be set to undefined.
  10195. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10196. * For the list of reserved names please see:
  10197. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10198. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10199. * JSPB instance for transitional soy proto support:
  10200. * http://goto/soy-param-migration
  10201. * @return {!Object}
  10202. */
  10203. proto.app.v1.AssShopListReply.prototype.toObject = function(opt_includeInstance) {
  10204. return proto.app.v1.AssShopListReply.toObject(opt_includeInstance, this);
  10205. };
  10206. /**
  10207. * Static version of the {@see toObject} method.
  10208. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10209. * the JSPB instance for transitional soy proto support:
  10210. * http://goto/soy-param-migration
  10211. * @param {!proto.app.v1.AssShopListReply} msg The msg instance to transform.
  10212. * @return {!Object}
  10213. * @suppress {unusedLocalVariables} f is only used for nested messages
  10214. */
  10215. proto.app.v1.AssShopListReply.toObject = function(includeInstance, msg) {
  10216. var f, obj = {
  10217. listList: jspb.Message.toObjectList(msg.getListList(),
  10218. proto.app.v1.ShopList.toObject, includeInstance)
  10219. };
  10220. if (includeInstance) {
  10221. obj.$jspbMessageInstance = msg;
  10222. }
  10223. return obj;
  10224. };
  10225. }
  10226. /**
  10227. * Deserializes binary data (in protobuf wire format).
  10228. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10229. * @return {!proto.app.v1.AssShopListReply}
  10230. */
  10231. proto.app.v1.AssShopListReply.deserializeBinary = function(bytes) {
  10232. var reader = new jspb.BinaryReader(bytes);
  10233. var msg = new proto.app.v1.AssShopListReply;
  10234. return proto.app.v1.AssShopListReply.deserializeBinaryFromReader(msg, reader);
  10235. };
  10236. /**
  10237. * Deserializes binary data (in protobuf wire format) from the
  10238. * given reader into the given message object.
  10239. * @param {!proto.app.v1.AssShopListReply} msg The message object to deserialize into.
  10240. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10241. * @return {!proto.app.v1.AssShopListReply}
  10242. */
  10243. proto.app.v1.AssShopListReply.deserializeBinaryFromReader = function(msg, reader) {
  10244. while (reader.nextField()) {
  10245. if (reader.isEndGroup()) {
  10246. break;
  10247. }
  10248. var field = reader.getFieldNumber();
  10249. switch (field) {
  10250. case 1:
  10251. var value = new proto.app.v1.ShopList;
  10252. reader.readMessage(value,proto.app.v1.ShopList.deserializeBinaryFromReader);
  10253. msg.addList(value);
  10254. break;
  10255. default:
  10256. reader.skipField();
  10257. break;
  10258. }
  10259. }
  10260. return msg;
  10261. };
  10262. /**
  10263. * Serializes the message to binary data (in protobuf wire format).
  10264. * @return {!Uint8Array}
  10265. */
  10266. proto.app.v1.AssShopListReply.prototype.serializeBinary = function() {
  10267. var writer = new jspb.BinaryWriter();
  10268. proto.app.v1.AssShopListReply.serializeBinaryToWriter(this, writer);
  10269. return writer.getResultBuffer();
  10270. };
  10271. /**
  10272. * Serializes the given message to binary data (in protobuf wire
  10273. * format), writing to the given BinaryWriter.
  10274. * @param {!proto.app.v1.AssShopListReply} message
  10275. * @param {!jspb.BinaryWriter} writer
  10276. * @suppress {unusedLocalVariables} f is only used for nested messages
  10277. */
  10278. proto.app.v1.AssShopListReply.serializeBinaryToWriter = function(message, writer) {
  10279. var f = undefined;
  10280. f = message.getListList();
  10281. if (f.length > 0) {
  10282. writer.writeRepeatedMessage(
  10283. 1,
  10284. f,
  10285. proto.app.v1.ShopList.serializeBinaryToWriter
  10286. );
  10287. }
  10288. };
  10289. /**
  10290. * repeated ShopList list = 1;
  10291. * @return {!Array<!proto.app.v1.ShopList>}
  10292. */
  10293. proto.app.v1.AssShopListReply.prototype.getListList = function() {
  10294. return /** @type{!Array<!proto.app.v1.ShopList>} */ (
  10295. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ShopList, 1));
  10296. };
  10297. /**
  10298. * @param {!Array<!proto.app.v1.ShopList>} value
  10299. * @return {!proto.app.v1.AssShopListReply} returns this
  10300. */
  10301. proto.app.v1.AssShopListReply.prototype.setListList = function(value) {
  10302. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  10303. };
  10304. /**
  10305. * @param {!proto.app.v1.ShopList=} opt_value
  10306. * @param {number=} opt_index
  10307. * @return {!proto.app.v1.ShopList}
  10308. */
  10309. proto.app.v1.AssShopListReply.prototype.addList = function(opt_value, opt_index) {
  10310. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ShopList, opt_index);
  10311. };
  10312. /**
  10313. * Clears the list making it empty but non-null.
  10314. * @return {!proto.app.v1.AssShopListReply} returns this
  10315. */
  10316. proto.app.v1.AssShopListReply.prototype.clearListList = function() {
  10317. return this.setListList([]);
  10318. };
  10319. if (jspb.Message.GENERATE_TO_OBJECT) {
  10320. /**
  10321. * Creates an object representation of this proto.
  10322. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10323. * Optional fields that are not set will be set to undefined.
  10324. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10325. * For the list of reserved names please see:
  10326. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10327. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10328. * JSPB instance for transitional soy proto support:
  10329. * http://goto/soy-param-migration
  10330. * @return {!Object}
  10331. */
  10332. proto.app.v1.ShopList.prototype.toObject = function(opt_includeInstance) {
  10333. return proto.app.v1.ShopList.toObject(opt_includeInstance, this);
  10334. };
  10335. /**
  10336. * Static version of the {@see toObject} method.
  10337. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10338. * the JSPB instance for transitional soy proto support:
  10339. * http://goto/soy-param-migration
  10340. * @param {!proto.app.v1.ShopList} msg The msg instance to transform.
  10341. * @return {!Object}
  10342. * @suppress {unusedLocalVariables} f is only used for nested messages
  10343. */
  10344. proto.app.v1.ShopList.toObject = function(includeInstance, msg) {
  10345. var f, obj = {
  10346. shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10347. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  10348. };
  10349. if (includeInstance) {
  10350. obj.$jspbMessageInstance = msg;
  10351. }
  10352. return obj;
  10353. };
  10354. }
  10355. /**
  10356. * Deserializes binary data (in protobuf wire format).
  10357. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10358. * @return {!proto.app.v1.ShopList}
  10359. */
  10360. proto.app.v1.ShopList.deserializeBinary = function(bytes) {
  10361. var reader = new jspb.BinaryReader(bytes);
  10362. var msg = new proto.app.v1.ShopList;
  10363. return proto.app.v1.ShopList.deserializeBinaryFromReader(msg, reader);
  10364. };
  10365. /**
  10366. * Deserializes binary data (in protobuf wire format) from the
  10367. * given reader into the given message object.
  10368. * @param {!proto.app.v1.ShopList} msg The message object to deserialize into.
  10369. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10370. * @return {!proto.app.v1.ShopList}
  10371. */
  10372. proto.app.v1.ShopList.deserializeBinaryFromReader = function(msg, reader) {
  10373. while (reader.nextField()) {
  10374. if (reader.isEndGroup()) {
  10375. break;
  10376. }
  10377. var field = reader.getFieldNumber();
  10378. switch (field) {
  10379. case 1:
  10380. var value = /** @type {number} */ (reader.readInt32());
  10381. msg.setShopid(value);
  10382. break;
  10383. case 2:
  10384. var value = /** @type {string} */ (reader.readString());
  10385. msg.setName(value);
  10386. break;
  10387. default:
  10388. reader.skipField();
  10389. break;
  10390. }
  10391. }
  10392. return msg;
  10393. };
  10394. /**
  10395. * Serializes the message to binary data (in protobuf wire format).
  10396. * @return {!Uint8Array}
  10397. */
  10398. proto.app.v1.ShopList.prototype.serializeBinary = function() {
  10399. var writer = new jspb.BinaryWriter();
  10400. proto.app.v1.ShopList.serializeBinaryToWriter(this, writer);
  10401. return writer.getResultBuffer();
  10402. };
  10403. /**
  10404. * Serializes the given message to binary data (in protobuf wire
  10405. * format), writing to the given BinaryWriter.
  10406. * @param {!proto.app.v1.ShopList} message
  10407. * @param {!jspb.BinaryWriter} writer
  10408. * @suppress {unusedLocalVariables} f is only used for nested messages
  10409. */
  10410. proto.app.v1.ShopList.serializeBinaryToWriter = function(message, writer) {
  10411. var f = undefined;
  10412. f = message.getShopid();
  10413. if (f !== 0) {
  10414. writer.writeInt32(
  10415. 1,
  10416. f
  10417. );
  10418. }
  10419. f = message.getName();
  10420. if (f.length > 0) {
  10421. writer.writeString(
  10422. 2,
  10423. f
  10424. );
  10425. }
  10426. };
  10427. /**
  10428. * optional int32 shopId = 1;
  10429. * @return {number}
  10430. */
  10431. proto.app.v1.ShopList.prototype.getShopid = function() {
  10432. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10433. };
  10434. /**
  10435. * @param {number} value
  10436. * @return {!proto.app.v1.ShopList} returns this
  10437. */
  10438. proto.app.v1.ShopList.prototype.setShopid = function(value) {
  10439. return jspb.Message.setProto3IntField(this, 1, value);
  10440. };
  10441. /**
  10442. * optional string name = 2;
  10443. * @return {string}
  10444. */
  10445. proto.app.v1.ShopList.prototype.getName = function() {
  10446. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10447. };
  10448. /**
  10449. * @param {string} value
  10450. * @return {!proto.app.v1.ShopList} returns this
  10451. */
  10452. proto.app.v1.ShopList.prototype.setName = function(value) {
  10453. return jspb.Message.setProto3StringField(this, 2, value);
  10454. };
  10455. /**
  10456. * List of repeated fields within this message type.
  10457. * @private {!Array<number>}
  10458. * @const
  10459. */
  10460. proto.app.v1.AssControlInfoListReply.repeatedFields_ = [1];
  10461. if (jspb.Message.GENERATE_TO_OBJECT) {
  10462. /**
  10463. * Creates an object representation of this proto.
  10464. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10465. * Optional fields that are not set will be set to undefined.
  10466. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10467. * For the list of reserved names please see:
  10468. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10469. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10470. * JSPB instance for transitional soy proto support:
  10471. * http://goto/soy-param-migration
  10472. * @return {!Object}
  10473. */
  10474. proto.app.v1.AssControlInfoListReply.prototype.toObject = function(opt_includeInstance) {
  10475. return proto.app.v1.AssControlInfoListReply.toObject(opt_includeInstance, this);
  10476. };
  10477. /**
  10478. * Static version of the {@see toObject} method.
  10479. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10480. * the JSPB instance for transitional soy proto support:
  10481. * http://goto/soy-param-migration
  10482. * @param {!proto.app.v1.AssControlInfoListReply} msg The msg instance to transform.
  10483. * @return {!Object}
  10484. * @suppress {unusedLocalVariables} f is only used for nested messages
  10485. */
  10486. proto.app.v1.AssControlInfoListReply.toObject = function(includeInstance, msg) {
  10487. var f, obj = {
  10488. listList: jspb.Message.toObjectList(msg.getListList(),
  10489. proto.app.v1.ControlInfoList.toObject, includeInstance)
  10490. };
  10491. if (includeInstance) {
  10492. obj.$jspbMessageInstance = msg;
  10493. }
  10494. return obj;
  10495. };
  10496. }
  10497. /**
  10498. * Deserializes binary data (in protobuf wire format).
  10499. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10500. * @return {!proto.app.v1.AssControlInfoListReply}
  10501. */
  10502. proto.app.v1.AssControlInfoListReply.deserializeBinary = function(bytes) {
  10503. var reader = new jspb.BinaryReader(bytes);
  10504. var msg = new proto.app.v1.AssControlInfoListReply;
  10505. return proto.app.v1.AssControlInfoListReply.deserializeBinaryFromReader(msg, reader);
  10506. };
  10507. /**
  10508. * Deserializes binary data (in protobuf wire format) from the
  10509. * given reader into the given message object.
  10510. * @param {!proto.app.v1.AssControlInfoListReply} msg The message object to deserialize into.
  10511. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10512. * @return {!proto.app.v1.AssControlInfoListReply}
  10513. */
  10514. proto.app.v1.AssControlInfoListReply.deserializeBinaryFromReader = function(msg, reader) {
  10515. while (reader.nextField()) {
  10516. if (reader.isEndGroup()) {
  10517. break;
  10518. }
  10519. var field = reader.getFieldNumber();
  10520. switch (field) {
  10521. case 1:
  10522. var value = new proto.app.v1.ControlInfoList;
  10523. reader.readMessage(value,proto.app.v1.ControlInfoList.deserializeBinaryFromReader);
  10524. msg.addList(value);
  10525. break;
  10526. default:
  10527. reader.skipField();
  10528. break;
  10529. }
  10530. }
  10531. return msg;
  10532. };
  10533. /**
  10534. * Serializes the message to binary data (in protobuf wire format).
  10535. * @return {!Uint8Array}
  10536. */
  10537. proto.app.v1.AssControlInfoListReply.prototype.serializeBinary = function() {
  10538. var writer = new jspb.BinaryWriter();
  10539. proto.app.v1.AssControlInfoListReply.serializeBinaryToWriter(this, writer);
  10540. return writer.getResultBuffer();
  10541. };
  10542. /**
  10543. * Serializes the given message to binary data (in protobuf wire
  10544. * format), writing to the given BinaryWriter.
  10545. * @param {!proto.app.v1.AssControlInfoListReply} message
  10546. * @param {!jspb.BinaryWriter} writer
  10547. * @suppress {unusedLocalVariables} f is only used for nested messages
  10548. */
  10549. proto.app.v1.AssControlInfoListReply.serializeBinaryToWriter = function(message, writer) {
  10550. var f = undefined;
  10551. f = message.getListList();
  10552. if (f.length > 0) {
  10553. writer.writeRepeatedMessage(
  10554. 1,
  10555. f,
  10556. proto.app.v1.ControlInfoList.serializeBinaryToWriter
  10557. );
  10558. }
  10559. };
  10560. /**
  10561. * repeated ControlInfoList list = 1;
  10562. * @return {!Array<!proto.app.v1.ControlInfoList>}
  10563. */
  10564. proto.app.v1.AssControlInfoListReply.prototype.getListList = function() {
  10565. return /** @type{!Array<!proto.app.v1.ControlInfoList>} */ (
  10566. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlInfoList, 1));
  10567. };
  10568. /**
  10569. * @param {!Array<!proto.app.v1.ControlInfoList>} value
  10570. * @return {!proto.app.v1.AssControlInfoListReply} returns this
  10571. */
  10572. proto.app.v1.AssControlInfoListReply.prototype.setListList = function(value) {
  10573. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  10574. };
  10575. /**
  10576. * @param {!proto.app.v1.ControlInfoList=} opt_value
  10577. * @param {number=} opt_index
  10578. * @return {!proto.app.v1.ControlInfoList}
  10579. */
  10580. proto.app.v1.AssControlInfoListReply.prototype.addList = function(opt_value, opt_index) {
  10581. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ControlInfoList, opt_index);
  10582. };
  10583. /**
  10584. * Clears the list making it empty but non-null.
  10585. * @return {!proto.app.v1.AssControlInfoListReply} returns this
  10586. */
  10587. proto.app.v1.AssControlInfoListReply.prototype.clearListList = function() {
  10588. return this.setListList([]);
  10589. };
  10590. if (jspb.Message.GENERATE_TO_OBJECT) {
  10591. /**
  10592. * Creates an object representation of this proto.
  10593. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10594. * Optional fields that are not set will be set to undefined.
  10595. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10596. * For the list of reserved names please see:
  10597. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10598. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10599. * JSPB instance for transitional soy proto support:
  10600. * http://goto/soy-param-migration
  10601. * @return {!Object}
  10602. */
  10603. proto.app.v1.ControlInfoList.prototype.toObject = function(opt_includeInstance) {
  10604. return proto.app.v1.ControlInfoList.toObject(opt_includeInstance, this);
  10605. };
  10606. /**
  10607. * Static version of the {@see toObject} method.
  10608. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10609. * the JSPB instance for transitional soy proto support:
  10610. * http://goto/soy-param-migration
  10611. * @param {!proto.app.v1.ControlInfoList} msg The msg instance to transform.
  10612. * @return {!Object}
  10613. * @suppress {unusedLocalVariables} f is only used for nested messages
  10614. */
  10615. proto.app.v1.ControlInfoList.toObject = function(includeInstance, msg) {
  10616. var f, obj = {
  10617. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10618. cicode: jspb.Message.getFieldWithDefault(msg, 2, "")
  10619. };
  10620. if (includeInstance) {
  10621. obj.$jspbMessageInstance = msg;
  10622. }
  10623. return obj;
  10624. };
  10625. }
  10626. /**
  10627. * Deserializes binary data (in protobuf wire format).
  10628. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10629. * @return {!proto.app.v1.ControlInfoList}
  10630. */
  10631. proto.app.v1.ControlInfoList.deserializeBinary = function(bytes) {
  10632. var reader = new jspb.BinaryReader(bytes);
  10633. var msg = new proto.app.v1.ControlInfoList;
  10634. return proto.app.v1.ControlInfoList.deserializeBinaryFromReader(msg, reader);
  10635. };
  10636. /**
  10637. * Deserializes binary data (in protobuf wire format) from the
  10638. * given reader into the given message object.
  10639. * @param {!proto.app.v1.ControlInfoList} msg The message object to deserialize into.
  10640. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10641. * @return {!proto.app.v1.ControlInfoList}
  10642. */
  10643. proto.app.v1.ControlInfoList.deserializeBinaryFromReader = function(msg, reader) {
  10644. while (reader.nextField()) {
  10645. if (reader.isEndGroup()) {
  10646. break;
  10647. }
  10648. var field = reader.getFieldNumber();
  10649. switch (field) {
  10650. case 1:
  10651. var value = /** @type {number} */ (reader.readInt32());
  10652. msg.setCiid(value);
  10653. break;
  10654. case 2:
  10655. var value = /** @type {string} */ (reader.readString());
  10656. msg.setCicode(value);
  10657. break;
  10658. default:
  10659. reader.skipField();
  10660. break;
  10661. }
  10662. }
  10663. return msg;
  10664. };
  10665. /**
  10666. * Serializes the message to binary data (in protobuf wire format).
  10667. * @return {!Uint8Array}
  10668. */
  10669. proto.app.v1.ControlInfoList.prototype.serializeBinary = function() {
  10670. var writer = new jspb.BinaryWriter();
  10671. proto.app.v1.ControlInfoList.serializeBinaryToWriter(this, writer);
  10672. return writer.getResultBuffer();
  10673. };
  10674. /**
  10675. * Serializes the given message to binary data (in protobuf wire
  10676. * format), writing to the given BinaryWriter.
  10677. * @param {!proto.app.v1.ControlInfoList} message
  10678. * @param {!jspb.BinaryWriter} writer
  10679. * @suppress {unusedLocalVariables} f is only used for nested messages
  10680. */
  10681. proto.app.v1.ControlInfoList.serializeBinaryToWriter = function(message, writer) {
  10682. var f = undefined;
  10683. f = message.getCiid();
  10684. if (f !== 0) {
  10685. writer.writeInt32(
  10686. 1,
  10687. f
  10688. );
  10689. }
  10690. f = message.getCicode();
  10691. if (f.length > 0) {
  10692. writer.writeString(
  10693. 2,
  10694. f
  10695. );
  10696. }
  10697. };
  10698. /**
  10699. * optional int32 ciId = 1;
  10700. * @return {number}
  10701. */
  10702. proto.app.v1.ControlInfoList.prototype.getCiid = function() {
  10703. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10704. };
  10705. /**
  10706. * @param {number} value
  10707. * @return {!proto.app.v1.ControlInfoList} returns this
  10708. */
  10709. proto.app.v1.ControlInfoList.prototype.setCiid = function(value) {
  10710. return jspb.Message.setProto3IntField(this, 1, value);
  10711. };
  10712. /**
  10713. * optional string ciCode = 2;
  10714. * @return {string}
  10715. */
  10716. proto.app.v1.ControlInfoList.prototype.getCicode = function() {
  10717. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10718. };
  10719. /**
  10720. * @param {string} value
  10721. * @return {!proto.app.v1.ControlInfoList} returns this
  10722. */
  10723. proto.app.v1.ControlInfoList.prototype.setCicode = function(value) {
  10724. return jspb.Message.setProto3StringField(this, 2, value);
  10725. };
  10726. /**
  10727. * List of repeated fields within this message type.
  10728. * @private {!Array<number>}
  10729. * @const
  10730. */
  10731. proto.app.v1.AssControlInfoDetailReply.repeatedFields_ = [4];
  10732. if (jspb.Message.GENERATE_TO_OBJECT) {
  10733. /**
  10734. * Creates an object representation of this proto.
  10735. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10736. * Optional fields that are not set will be set to undefined.
  10737. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10738. * For the list of reserved names please see:
  10739. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10740. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10741. * JSPB instance for transitional soy proto support:
  10742. * http://goto/soy-param-migration
  10743. * @return {!Object}
  10744. */
  10745. proto.app.v1.AssControlInfoDetailReply.prototype.toObject = function(opt_includeInstance) {
  10746. return proto.app.v1.AssControlInfoDetailReply.toObject(opt_includeInstance, this);
  10747. };
  10748. /**
  10749. * Static version of the {@see toObject} method.
  10750. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10751. * the JSPB instance for transitional soy proto support:
  10752. * http://goto/soy-param-migration
  10753. * @param {!proto.app.v1.AssControlInfoDetailReply} msg The msg instance to transform.
  10754. * @return {!Object}
  10755. * @suppress {unusedLocalVariables} f is only used for nested messages
  10756. */
  10757. proto.app.v1.AssControlInfoDetailReply.toObject = function(includeInstance, msg) {
  10758. var f, obj = {
  10759. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10760. cicode: jspb.Message.getFieldWithDefault(msg, 2, ""),
  10761. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  10762. nfccodelistList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
  10763. };
  10764. if (includeInstance) {
  10765. obj.$jspbMessageInstance = msg;
  10766. }
  10767. return obj;
  10768. };
  10769. }
  10770. /**
  10771. * Deserializes binary data (in protobuf wire format).
  10772. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10773. * @return {!proto.app.v1.AssControlInfoDetailReply}
  10774. */
  10775. proto.app.v1.AssControlInfoDetailReply.deserializeBinary = function(bytes) {
  10776. var reader = new jspb.BinaryReader(bytes);
  10777. var msg = new proto.app.v1.AssControlInfoDetailReply;
  10778. return proto.app.v1.AssControlInfoDetailReply.deserializeBinaryFromReader(msg, reader);
  10779. };
  10780. /**
  10781. * Deserializes binary data (in protobuf wire format) from the
  10782. * given reader into the given message object.
  10783. * @param {!proto.app.v1.AssControlInfoDetailReply} msg The message object to deserialize into.
  10784. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10785. * @return {!proto.app.v1.AssControlInfoDetailReply}
  10786. */
  10787. proto.app.v1.AssControlInfoDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  10788. while (reader.nextField()) {
  10789. if (reader.isEndGroup()) {
  10790. break;
  10791. }
  10792. var field = reader.getFieldNumber();
  10793. switch (field) {
  10794. case 1:
  10795. var value = /** @type {number} */ (reader.readInt32());
  10796. msg.setCiid(value);
  10797. break;
  10798. case 2:
  10799. var value = /** @type {string} */ (reader.readString());
  10800. msg.setCicode(value);
  10801. break;
  10802. case 3:
  10803. var value = new proto.app.v1.Position;
  10804. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  10805. msg.setPosition(value);
  10806. break;
  10807. case 4:
  10808. var value = /** @type {string} */ (reader.readString());
  10809. msg.addNfccodelist(value);
  10810. break;
  10811. default:
  10812. reader.skipField();
  10813. break;
  10814. }
  10815. }
  10816. return msg;
  10817. };
  10818. /**
  10819. * Serializes the message to binary data (in protobuf wire format).
  10820. * @return {!Uint8Array}
  10821. */
  10822. proto.app.v1.AssControlInfoDetailReply.prototype.serializeBinary = function() {
  10823. var writer = new jspb.BinaryWriter();
  10824. proto.app.v1.AssControlInfoDetailReply.serializeBinaryToWriter(this, writer);
  10825. return writer.getResultBuffer();
  10826. };
  10827. /**
  10828. * Serializes the given message to binary data (in protobuf wire
  10829. * format), writing to the given BinaryWriter.
  10830. * @param {!proto.app.v1.AssControlInfoDetailReply} message
  10831. * @param {!jspb.BinaryWriter} writer
  10832. * @suppress {unusedLocalVariables} f is only used for nested messages
  10833. */
  10834. proto.app.v1.AssControlInfoDetailReply.serializeBinaryToWriter = function(message, writer) {
  10835. var f = undefined;
  10836. f = message.getCiid();
  10837. if (f !== 0) {
  10838. writer.writeInt32(
  10839. 1,
  10840. f
  10841. );
  10842. }
  10843. f = message.getCicode();
  10844. if (f.length > 0) {
  10845. writer.writeString(
  10846. 2,
  10847. f
  10848. );
  10849. }
  10850. f = message.getPosition();
  10851. if (f != null) {
  10852. writer.writeMessage(
  10853. 3,
  10854. f,
  10855. proto.app.v1.Position.serializeBinaryToWriter
  10856. );
  10857. }
  10858. f = message.getNfccodelistList();
  10859. if (f.length > 0) {
  10860. writer.writeRepeatedString(
  10861. 4,
  10862. f
  10863. );
  10864. }
  10865. };
  10866. /**
  10867. * optional int32 ciId = 1;
  10868. * @return {number}
  10869. */
  10870. proto.app.v1.AssControlInfoDetailReply.prototype.getCiid = function() {
  10871. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10872. };
  10873. /**
  10874. * @param {number} value
  10875. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10876. */
  10877. proto.app.v1.AssControlInfoDetailReply.prototype.setCiid = function(value) {
  10878. return jspb.Message.setProto3IntField(this, 1, value);
  10879. };
  10880. /**
  10881. * optional string ciCode = 2;
  10882. * @return {string}
  10883. */
  10884. proto.app.v1.AssControlInfoDetailReply.prototype.getCicode = function() {
  10885. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10886. };
  10887. /**
  10888. * @param {string} value
  10889. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10890. */
  10891. proto.app.v1.AssControlInfoDetailReply.prototype.setCicode = function(value) {
  10892. return jspb.Message.setProto3StringField(this, 2, value);
  10893. };
  10894. /**
  10895. * optional Position position = 3;
  10896. * @return {?proto.app.v1.Position}
  10897. */
  10898. proto.app.v1.AssControlInfoDetailReply.prototype.getPosition = function() {
  10899. return /** @type{?proto.app.v1.Position} */ (
  10900. jspb.Message.getWrapperField(this, proto.app.v1.Position, 3));
  10901. };
  10902. /**
  10903. * @param {?proto.app.v1.Position|undefined} value
  10904. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10905. */
  10906. proto.app.v1.AssControlInfoDetailReply.prototype.setPosition = function(value) {
  10907. return jspb.Message.setWrapperField(this, 3, value);
  10908. };
  10909. /**
  10910. * Clears the message field making it undefined.
  10911. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10912. */
  10913. proto.app.v1.AssControlInfoDetailReply.prototype.clearPosition = function() {
  10914. return this.setPosition(undefined);
  10915. };
  10916. /**
  10917. * Returns whether this field is set.
  10918. * @return {boolean}
  10919. */
  10920. proto.app.v1.AssControlInfoDetailReply.prototype.hasPosition = function() {
  10921. return jspb.Message.getField(this, 3) != null;
  10922. };
  10923. /**
  10924. * repeated string nfcCodeList = 4;
  10925. * @return {!Array<string>}
  10926. */
  10927. proto.app.v1.AssControlInfoDetailReply.prototype.getNfccodelistList = function() {
  10928. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
  10929. };
  10930. /**
  10931. * @param {!Array<string>} value
  10932. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10933. */
  10934. proto.app.v1.AssControlInfoDetailReply.prototype.setNfccodelistList = function(value) {
  10935. return jspb.Message.setField(this, 4, value || []);
  10936. };
  10937. /**
  10938. * @param {string} value
  10939. * @param {number=} opt_index
  10940. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10941. */
  10942. proto.app.v1.AssControlInfoDetailReply.prototype.addNfccodelist = function(value, opt_index) {
  10943. return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
  10944. };
  10945. /**
  10946. * Clears the list making it empty but non-null.
  10947. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10948. */
  10949. proto.app.v1.AssControlInfoDetailReply.prototype.clearNfccodelistList = function() {
  10950. return this.setNfccodelistList([]);
  10951. };
  10952. if (jspb.Message.GENERATE_TO_OBJECT) {
  10953. /**
  10954. * Creates an object representation of this proto.
  10955. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10956. * Optional fields that are not set will be set to undefined.
  10957. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10958. * For the list of reserved names please see:
  10959. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10960. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10961. * JSPB instance for transitional soy proto support:
  10962. * http://goto/soy-param-migration
  10963. * @return {!Object}
  10964. */
  10965. proto.app.v1.GetUpdateVersionReply.prototype.toObject = function(opt_includeInstance) {
  10966. return proto.app.v1.GetUpdateVersionReply.toObject(opt_includeInstance, this);
  10967. };
  10968. /**
  10969. * Static version of the {@see toObject} method.
  10970. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10971. * the JSPB instance for transitional soy proto support:
  10972. * http://goto/soy-param-migration
  10973. * @param {!proto.app.v1.GetUpdateVersionReply} msg The msg instance to transform.
  10974. * @return {!Object}
  10975. * @suppress {unusedLocalVariables} f is only used for nested messages
  10976. */
  10977. proto.app.v1.GetUpdateVersionReply.toObject = function(includeInstance, msg) {
  10978. var f, obj = {
  10979. needupdate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  10980. vcode: jspb.Message.getFieldWithDefault(msg, 2, ""),
  10981. vmemo: jspb.Message.getFieldWithDefault(msg, 3, ""),
  10982. vurl: jspb.Message.getFieldWithDefault(msg, 4, "")
  10983. };
  10984. if (includeInstance) {
  10985. obj.$jspbMessageInstance = msg;
  10986. }
  10987. return obj;
  10988. };
  10989. }
  10990. /**
  10991. * Deserializes binary data (in protobuf wire format).
  10992. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10993. * @return {!proto.app.v1.GetUpdateVersionReply}
  10994. */
  10995. proto.app.v1.GetUpdateVersionReply.deserializeBinary = function(bytes) {
  10996. var reader = new jspb.BinaryReader(bytes);
  10997. var msg = new proto.app.v1.GetUpdateVersionReply;
  10998. return proto.app.v1.GetUpdateVersionReply.deserializeBinaryFromReader(msg, reader);
  10999. };
  11000. /**
  11001. * Deserializes binary data (in protobuf wire format) from the
  11002. * given reader into the given message object.
  11003. * @param {!proto.app.v1.GetUpdateVersionReply} msg The message object to deserialize into.
  11004. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  11005. * @return {!proto.app.v1.GetUpdateVersionReply}
  11006. */
  11007. proto.app.v1.GetUpdateVersionReply.deserializeBinaryFromReader = function(msg, reader) {
  11008. while (reader.nextField()) {
  11009. if (reader.isEndGroup()) {
  11010. break;
  11011. }
  11012. var field = reader.getFieldNumber();
  11013. switch (field) {
  11014. case 1:
  11015. var value = /** @type {boolean} */ (reader.readBool());
  11016. msg.setNeedupdate(value);
  11017. break;
  11018. case 2:
  11019. var value = /** @type {string} */ (reader.readString());
  11020. msg.setVcode(value);
  11021. break;
  11022. case 3:
  11023. var value = /** @type {string} */ (reader.readString());
  11024. msg.setVmemo(value);
  11025. break;
  11026. case 4:
  11027. var value = /** @type {string} */ (reader.readString());
  11028. msg.setVurl(value);
  11029. break;
  11030. default:
  11031. reader.skipField();
  11032. break;
  11033. }
  11034. }
  11035. return msg;
  11036. };
  11037. /**
  11038. * Serializes the message to binary data (in protobuf wire format).
  11039. * @return {!Uint8Array}
  11040. */
  11041. proto.app.v1.GetUpdateVersionReply.prototype.serializeBinary = function() {
  11042. var writer = new jspb.BinaryWriter();
  11043. proto.app.v1.GetUpdateVersionReply.serializeBinaryToWriter(this, writer);
  11044. return writer.getResultBuffer();
  11045. };
  11046. /**
  11047. * Serializes the given message to binary data (in protobuf wire
  11048. * format), writing to the given BinaryWriter.
  11049. * @param {!proto.app.v1.GetUpdateVersionReply} message
  11050. * @param {!jspb.BinaryWriter} writer
  11051. * @suppress {unusedLocalVariables} f is only used for nested messages
  11052. */
  11053. proto.app.v1.GetUpdateVersionReply.serializeBinaryToWriter = function(message, writer) {
  11054. var f = undefined;
  11055. f = message.getNeedupdate();
  11056. if (f) {
  11057. writer.writeBool(
  11058. 1,
  11059. f
  11060. );
  11061. }
  11062. f = message.getVcode();
  11063. if (f.length > 0) {
  11064. writer.writeString(
  11065. 2,
  11066. f
  11067. );
  11068. }
  11069. f = message.getVmemo();
  11070. if (f.length > 0) {
  11071. writer.writeString(
  11072. 3,
  11073. f
  11074. );
  11075. }
  11076. f = message.getVurl();
  11077. if (f.length > 0) {
  11078. writer.writeString(
  11079. 4,
  11080. f
  11081. );
  11082. }
  11083. };
  11084. /**
  11085. * optional bool needUpdate = 1;
  11086. * @return {boolean}
  11087. */
  11088. proto.app.v1.GetUpdateVersionReply.prototype.getNeedupdate = function() {
  11089. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  11090. };
  11091. /**
  11092. * @param {boolean} value
  11093. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11094. */
  11095. proto.app.v1.GetUpdateVersionReply.prototype.setNeedupdate = function(value) {
  11096. return jspb.Message.setProto3BooleanField(this, 1, value);
  11097. };
  11098. /**
  11099. * optional string vCode = 2;
  11100. * @return {string}
  11101. */
  11102. proto.app.v1.GetUpdateVersionReply.prototype.getVcode = function() {
  11103. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  11104. };
  11105. /**
  11106. * @param {string} value
  11107. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11108. */
  11109. proto.app.v1.GetUpdateVersionReply.prototype.setVcode = function(value) {
  11110. return jspb.Message.setProto3StringField(this, 2, value);
  11111. };
  11112. /**
  11113. * optional string vMemo = 3;
  11114. * @return {string}
  11115. */
  11116. proto.app.v1.GetUpdateVersionReply.prototype.getVmemo = function() {
  11117. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  11118. };
  11119. /**
  11120. * @param {string} value
  11121. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11122. */
  11123. proto.app.v1.GetUpdateVersionReply.prototype.setVmemo = function(value) {
  11124. return jspb.Message.setProto3StringField(this, 3, value);
  11125. };
  11126. /**
  11127. * optional string vUrl = 4;
  11128. * @return {string}
  11129. */
  11130. proto.app.v1.GetUpdateVersionReply.prototype.getVurl = function() {
  11131. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  11132. };
  11133. /**
  11134. * @param {string} value
  11135. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11136. */
  11137. proto.app.v1.GetUpdateVersionReply.prototype.setVurl = function(value) {
  11138. return jspb.Message.setProto3StringField(this, 4, value);
  11139. };
  11140. if (jspb.Message.GENERATE_TO_OBJECT) {
  11141. /**
  11142. * Creates an object representation of this proto.
  11143. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  11144. * Optional fields that are not set will be set to undefined.
  11145. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  11146. * For the list of reserved names please see:
  11147. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  11148. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  11149. * JSPB instance for transitional soy proto support:
  11150. * http://goto/soy-param-migration
  11151. * @return {!Object}
  11152. */
  11153. proto.app.v1.GetSmsSendLeftTimeReply.prototype.toObject = function(opt_includeInstance) {
  11154. return proto.app.v1.GetSmsSendLeftTimeReply.toObject(opt_includeInstance, this);
  11155. };
  11156. /**
  11157. * Static version of the {@see toObject} method.
  11158. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  11159. * the JSPB instance for transitional soy proto support:
  11160. * http://goto/soy-param-migration
  11161. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} msg The msg instance to transform.
  11162. * @return {!Object}
  11163. * @suppress {unusedLocalVariables} f is only used for nested messages
  11164. */
  11165. proto.app.v1.GetSmsSendLeftTimeReply.toObject = function(includeInstance, msg) {
  11166. var f, obj = {
  11167. second: jspb.Message.getFieldWithDefault(msg, 1, 0)
  11168. };
  11169. if (includeInstance) {
  11170. obj.$jspbMessageInstance = msg;
  11171. }
  11172. return obj;
  11173. };
  11174. }
  11175. /**
  11176. * Deserializes binary data (in protobuf wire format).
  11177. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  11178. * @return {!proto.app.v1.GetSmsSendLeftTimeReply}
  11179. */
  11180. proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinary = function(bytes) {
  11181. var reader = new jspb.BinaryReader(bytes);
  11182. var msg = new proto.app.v1.GetSmsSendLeftTimeReply;
  11183. return proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader(msg, reader);
  11184. };
  11185. /**
  11186. * Deserializes binary data (in protobuf wire format) from the
  11187. * given reader into the given message object.
  11188. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} msg The message object to deserialize into.
  11189. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  11190. * @return {!proto.app.v1.GetSmsSendLeftTimeReply}
  11191. */
  11192. proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader = function(msg, reader) {
  11193. while (reader.nextField()) {
  11194. if (reader.isEndGroup()) {
  11195. break;
  11196. }
  11197. var field = reader.getFieldNumber();
  11198. switch (field) {
  11199. case 1:
  11200. var value = /** @type {number} */ (reader.readInt32());
  11201. msg.setSecond(value);
  11202. break;
  11203. default:
  11204. reader.skipField();
  11205. break;
  11206. }
  11207. }
  11208. return msg;
  11209. };
  11210. /**
  11211. * Serializes the message to binary data (in protobuf wire format).
  11212. * @return {!Uint8Array}
  11213. */
  11214. proto.app.v1.GetSmsSendLeftTimeReply.prototype.serializeBinary = function() {
  11215. var writer = new jspb.BinaryWriter();
  11216. proto.app.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter(this, writer);
  11217. return writer.getResultBuffer();
  11218. };
  11219. /**
  11220. * Serializes the given message to binary data (in protobuf wire
  11221. * format), writing to the given BinaryWriter.
  11222. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} message
  11223. * @param {!jspb.BinaryWriter} writer
  11224. * @suppress {unusedLocalVariables} f is only used for nested messages
  11225. */
  11226. proto.app.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter = function(message, writer) {
  11227. var f = undefined;
  11228. f = message.getSecond();
  11229. if (f !== 0) {
  11230. writer.writeInt32(
  11231. 1,
  11232. f
  11233. );
  11234. }
  11235. };
  11236. /**
  11237. * optional int32 second = 1;
  11238. * @return {number}
  11239. */
  11240. proto.app.v1.GetSmsSendLeftTimeReply.prototype.getSecond = function() {
  11241. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  11242. };
  11243. /**
  11244. * @param {number} value
  11245. * @return {!proto.app.v1.GetSmsSendLeftTimeReply} returns this
  11246. */
  11247. proto.app.v1.GetSmsSendLeftTimeReply.prototype.setSecond = function(value) {
  11248. return jspb.Message.setProto3IntField(this, 1, value);
  11249. };
  11250. if (jspb.Message.GENERATE_TO_OBJECT) {
  11251. /**
  11252. * Creates an object representation of this proto.
  11253. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  11254. * Optional fields that are not set will be set to undefined.
  11255. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  11256. * For the list of reserved names please see:
  11257. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  11258. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  11259. * JSPB instance for transitional soy proto support:
  11260. * http://goto/soy-param-migration
  11261. * @return {!Object}
  11262. */
  11263. proto.app.v1.GetServerTimeReply.prototype.toObject = function(opt_includeInstance) {
  11264. return proto.app.v1.GetServerTimeReply.toObject(opt_includeInstance, this);
  11265. };
  11266. /**
  11267. * Static version of the {@see toObject} method.
  11268. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  11269. * the JSPB instance for transitional soy proto support:
  11270. * http://goto/soy-param-migration
  11271. * @param {!proto.app.v1.GetServerTimeReply} msg The msg instance to transform.
  11272. * @return {!Object}
  11273. * @suppress {unusedLocalVariables} f is only used for nested messages
  11274. */
  11275. proto.app.v1.GetServerTimeReply.toObject = function(includeInstance, msg) {
  11276. var f, obj = {
  11277. millisecondstamp: jspb.Message.getFieldWithDefault(msg, 1, 0)
  11278. };
  11279. if (includeInstance) {
  11280. obj.$jspbMessageInstance = msg;
  11281. }
  11282. return obj;
  11283. };
  11284. }
  11285. /**
  11286. * Deserializes binary data (in protobuf wire format).
  11287. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  11288. * @return {!proto.app.v1.GetServerTimeReply}
  11289. */
  11290. proto.app.v1.GetServerTimeReply.deserializeBinary = function(bytes) {
  11291. var reader = new jspb.BinaryReader(bytes);
  11292. var msg = new proto.app.v1.GetServerTimeReply;
  11293. return proto.app.v1.GetServerTimeReply.deserializeBinaryFromReader(msg, reader);
  11294. };
  11295. /**
  11296. * Deserializes binary data (in protobuf wire format) from the
  11297. * given reader into the given message object.
  11298. * @param {!proto.app.v1.GetServerTimeReply} msg The message object to deserialize into.
  11299. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  11300. * @return {!proto.app.v1.GetServerTimeReply}
  11301. */
  11302. proto.app.v1.GetServerTimeReply.deserializeBinaryFromReader = function(msg, reader) {
  11303. while (reader.nextField()) {
  11304. if (reader.isEndGroup()) {
  11305. break;
  11306. }
  11307. var field = reader.getFieldNumber();
  11308. switch (field) {
  11309. case 1:
  11310. var value = /** @type {number} */ (reader.readInt64());
  11311. msg.setMillisecondstamp(value);
  11312. break;
  11313. default:
  11314. reader.skipField();
  11315. break;
  11316. }
  11317. }
  11318. return msg;
  11319. };
  11320. /**
  11321. * Serializes the message to binary data (in protobuf wire format).
  11322. * @return {!Uint8Array}
  11323. */
  11324. proto.app.v1.GetServerTimeReply.prototype.serializeBinary = function() {
  11325. var writer = new jspb.BinaryWriter();
  11326. proto.app.v1.GetServerTimeReply.serializeBinaryToWriter(this, writer);
  11327. return writer.getResultBuffer();
  11328. };
  11329. /**
  11330. * Serializes the given message to binary data (in protobuf wire
  11331. * format), writing to the given BinaryWriter.
  11332. * @param {!proto.app.v1.GetServerTimeReply} message
  11333. * @param {!jspb.BinaryWriter} writer
  11334. * @suppress {unusedLocalVariables} f is only used for nested messages
  11335. */
  11336. proto.app.v1.GetServerTimeReply.serializeBinaryToWriter = function(message, writer) {
  11337. var f = undefined;
  11338. f = message.getMillisecondstamp();
  11339. if (f !== 0) {
  11340. writer.writeInt64(
  11341. 1,
  11342. f
  11343. );
  11344. }
  11345. };
  11346. /**
  11347. * optional int64 millisecondStamp = 1;
  11348. * @return {number}
  11349. */
  11350. proto.app.v1.GetServerTimeReply.prototype.getMillisecondstamp = function() {
  11351. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  11352. };
  11353. /**
  11354. * @param {number} value
  11355. * @return {!proto.app.v1.GetServerTimeReply} returns this
  11356. */
  11357. proto.app.v1.GetServerTimeReply.prototype.setMillisecondstamp = function(value) {
  11358. return jspb.Message.setProto3IntField(this, 1, value);
  11359. };
  11360. /**
  11361. * @enum {number}
  11362. */
  11363. proto.app.v1.ErrorCode = {
  11364. OK: 0,
  11365. TOKENEXPIRE: 1000,
  11366. USERBAN: 1001,
  11367. VFCODEEXPIRE: 1002,
  11368. SMSSENDFAIL: 1003,
  11369. USERSTATUSERR: 1008,
  11370. STATUSERR: 1009,
  11371. PHONENOTEXIST: 2001,
  11372. UNKNOWNERR: 2002,
  11373. PARAMERR: 5000,
  11374. HEADSOURCEERR: 5001,
  11375. DATABASE: 9000,
  11376. NORECORD: 9001
  11377. };
  11378. /**
  11379. * @enum {number}
  11380. */
  11381. proto.app.v1.UserType = {
  11382. UNDEFINE: 0,
  11383. APPUSER: 1,
  11384. PARKADMIN: 2,
  11385. IPADMIN: 3,
  11386. SYSADMIN: 4
  11387. };
  11388. /**
  11389. * @enum {number}
  11390. */
  11391. proto.app.v1.LoginSource = {
  11392. UNDEF: 0,
  11393. USERAPP: 1,
  11394. WEBADMIN: 2,
  11395. SHOPAPP: 3
  11396. };
  11397. /**
  11398. * @enum {number}
  11399. */
  11400. proto.app.v1.SmsType = {
  11401. UNKNOW: 0,
  11402. LOGIN: 1,
  11403. SIGNUP: 2
  11404. };
  11405. /**
  11406. * @enum {number}
  11407. */
  11408. proto.app.v1.ProjectContentType = {
  11409. TEXT: 0,
  11410. HTML: 1
  11411. };
  11412. /**
  11413. * @enum {number}
  11414. */
  11415. proto.app.v1.CType = {
  11416. UNKNOWTYPE: 0,
  11417. BEGINTYPE: 1,
  11418. MIDDLETYPE: 2,
  11419. ENDTYPE: 3
  11420. };
  11421. goog.object.extend(exports, proto.app.v1);