app_api_pb.js 373 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175
  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. };
  1593. if (includeInstance) {
  1594. obj.$jspbMessageInstance = msg;
  1595. }
  1596. return obj;
  1597. };
  1598. }
  1599. /**
  1600. * Deserializes binary data (in protobuf wire format).
  1601. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1602. * @return {!proto.app.v1.GameDetailReply}
  1603. */
  1604. proto.app.v1.GameDetailReply.deserializeBinary = function(bytes) {
  1605. var reader = new jspb.BinaryReader(bytes);
  1606. var msg = new proto.app.v1.GameDetailReply;
  1607. return proto.app.v1.GameDetailReply.deserializeBinaryFromReader(msg, reader);
  1608. };
  1609. /**
  1610. * Deserializes binary data (in protobuf wire format) from the
  1611. * given reader into the given message object.
  1612. * @param {!proto.app.v1.GameDetailReply} msg The message object to deserialize into.
  1613. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1614. * @return {!proto.app.v1.GameDetailReply}
  1615. */
  1616. proto.app.v1.GameDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  1617. while (reader.nextField()) {
  1618. if (reader.isEndGroup()) {
  1619. break;
  1620. }
  1621. var field = reader.getFieldNumber();
  1622. switch (field) {
  1623. case 1:
  1624. var value = /** @type {number} */ (reader.readInt32());
  1625. msg.setGameId(value);
  1626. break;
  1627. case 2:
  1628. var value = /** @type {boolean} */ (reader.readBool());
  1629. msg.setIscomplete(value);
  1630. break;
  1631. case 3:
  1632. var value = new google_protobuf_timestamp_pb.Timestamp;
  1633. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  1634. msg.setStartAt(value);
  1635. break;
  1636. case 4:
  1637. var value = new proto.app.v1.GameControlPoint;
  1638. reader.readMessage(value,proto.app.v1.GameControlPoint.deserializeBinaryFromReader);
  1639. msg.addCheckedSortedList(value);
  1640. break;
  1641. case 5:
  1642. var value = new google_protobuf_duration_pb.Duration;
  1643. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  1644. msg.setDuration(value);
  1645. break;
  1646. case 6:
  1647. var value = new google_protobuf_timestamp_pb.Timestamp;
  1648. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  1649. msg.setStopAt(value);
  1650. break;
  1651. case 7:
  1652. var value = /** @type {string} */ (reader.readString());
  1653. msg.setQrjsoncode(value);
  1654. break;
  1655. default:
  1656. reader.skipField();
  1657. break;
  1658. }
  1659. }
  1660. return msg;
  1661. };
  1662. /**
  1663. * Serializes the message to binary data (in protobuf wire format).
  1664. * @return {!Uint8Array}
  1665. */
  1666. proto.app.v1.GameDetailReply.prototype.serializeBinary = function() {
  1667. var writer = new jspb.BinaryWriter();
  1668. proto.app.v1.GameDetailReply.serializeBinaryToWriter(this, writer);
  1669. return writer.getResultBuffer();
  1670. };
  1671. /**
  1672. * Serializes the given message to binary data (in protobuf wire
  1673. * format), writing to the given BinaryWriter.
  1674. * @param {!proto.app.v1.GameDetailReply} message
  1675. * @param {!jspb.BinaryWriter} writer
  1676. * @suppress {unusedLocalVariables} f is only used for nested messages
  1677. */
  1678. proto.app.v1.GameDetailReply.serializeBinaryToWriter = function(message, writer) {
  1679. var f = undefined;
  1680. f = message.getGameId();
  1681. if (f !== 0) {
  1682. writer.writeInt32(
  1683. 1,
  1684. f
  1685. );
  1686. }
  1687. f = message.getIscomplete();
  1688. if (f) {
  1689. writer.writeBool(
  1690. 2,
  1691. f
  1692. );
  1693. }
  1694. f = message.getStartAt();
  1695. if (f != null) {
  1696. writer.writeMessage(
  1697. 3,
  1698. f,
  1699. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  1700. );
  1701. }
  1702. f = message.getCheckedSortedListList();
  1703. if (f.length > 0) {
  1704. writer.writeRepeatedMessage(
  1705. 4,
  1706. f,
  1707. proto.app.v1.GameControlPoint.serializeBinaryToWriter
  1708. );
  1709. }
  1710. f = message.getDuration();
  1711. if (f != null) {
  1712. writer.writeMessage(
  1713. 5,
  1714. f,
  1715. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  1716. );
  1717. }
  1718. f = message.getStopAt();
  1719. if (f != null) {
  1720. writer.writeMessage(
  1721. 6,
  1722. f,
  1723. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  1724. );
  1725. }
  1726. f = message.getQrjsoncode();
  1727. if (f.length > 0) {
  1728. writer.writeString(
  1729. 7,
  1730. f
  1731. );
  1732. }
  1733. };
  1734. /**
  1735. * optional int32 game_id = 1;
  1736. * @return {number}
  1737. */
  1738. proto.app.v1.GameDetailReply.prototype.getGameId = function() {
  1739. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1740. };
  1741. /**
  1742. * @param {number} value
  1743. * @return {!proto.app.v1.GameDetailReply} returns this
  1744. */
  1745. proto.app.v1.GameDetailReply.prototype.setGameId = function(value) {
  1746. return jspb.Message.setProto3IntField(this, 1, value);
  1747. };
  1748. /**
  1749. * optional bool isComplete = 2;
  1750. * @return {boolean}
  1751. */
  1752. proto.app.v1.GameDetailReply.prototype.getIscomplete = function() {
  1753. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  1754. };
  1755. /**
  1756. * @param {boolean} value
  1757. * @return {!proto.app.v1.GameDetailReply} returns this
  1758. */
  1759. proto.app.v1.GameDetailReply.prototype.setIscomplete = function(value) {
  1760. return jspb.Message.setProto3BooleanField(this, 2, value);
  1761. };
  1762. /**
  1763. * optional google.protobuf.Timestamp start_at = 3;
  1764. * @return {?proto.google.protobuf.Timestamp}
  1765. */
  1766. proto.app.v1.GameDetailReply.prototype.getStartAt = function() {
  1767. return /** @type{?proto.google.protobuf.Timestamp} */ (
  1768. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
  1769. };
  1770. /**
  1771. * @param {?proto.google.protobuf.Timestamp|undefined} value
  1772. * @return {!proto.app.v1.GameDetailReply} returns this
  1773. */
  1774. proto.app.v1.GameDetailReply.prototype.setStartAt = function(value) {
  1775. return jspb.Message.setWrapperField(this, 3, value);
  1776. };
  1777. /**
  1778. * Clears the message field making it undefined.
  1779. * @return {!proto.app.v1.GameDetailReply} returns this
  1780. */
  1781. proto.app.v1.GameDetailReply.prototype.clearStartAt = function() {
  1782. return this.setStartAt(undefined);
  1783. };
  1784. /**
  1785. * Returns whether this field is set.
  1786. * @return {boolean}
  1787. */
  1788. proto.app.v1.GameDetailReply.prototype.hasStartAt = function() {
  1789. return jspb.Message.getField(this, 3) != null;
  1790. };
  1791. /**
  1792. * repeated GameControlPoint checked_sorted_list = 4;
  1793. * @return {!Array<!proto.app.v1.GameControlPoint>}
  1794. */
  1795. proto.app.v1.GameDetailReply.prototype.getCheckedSortedListList = function() {
  1796. return /** @type{!Array<!proto.app.v1.GameControlPoint>} */ (
  1797. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameControlPoint, 4));
  1798. };
  1799. /**
  1800. * @param {!Array<!proto.app.v1.GameControlPoint>} value
  1801. * @return {!proto.app.v1.GameDetailReply} returns this
  1802. */
  1803. proto.app.v1.GameDetailReply.prototype.setCheckedSortedListList = function(value) {
  1804. return jspb.Message.setRepeatedWrapperField(this, 4, value);
  1805. };
  1806. /**
  1807. * @param {!proto.app.v1.GameControlPoint=} opt_value
  1808. * @param {number=} opt_index
  1809. * @return {!proto.app.v1.GameControlPoint}
  1810. */
  1811. proto.app.v1.GameDetailReply.prototype.addCheckedSortedList = function(opt_value, opt_index) {
  1812. return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.app.v1.GameControlPoint, opt_index);
  1813. };
  1814. /**
  1815. * Clears the list making it empty but non-null.
  1816. * @return {!proto.app.v1.GameDetailReply} returns this
  1817. */
  1818. proto.app.v1.GameDetailReply.prototype.clearCheckedSortedListList = function() {
  1819. return this.setCheckedSortedListList([]);
  1820. };
  1821. /**
  1822. * optional google.protobuf.Duration duration = 5;
  1823. * @return {?proto.google.protobuf.Duration}
  1824. */
  1825. proto.app.v1.GameDetailReply.prototype.getDuration = function() {
  1826. return /** @type{?proto.google.protobuf.Duration} */ (
  1827. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 5));
  1828. };
  1829. /**
  1830. * @param {?proto.google.protobuf.Duration|undefined} value
  1831. * @return {!proto.app.v1.GameDetailReply} returns this
  1832. */
  1833. proto.app.v1.GameDetailReply.prototype.setDuration = function(value) {
  1834. return jspb.Message.setWrapperField(this, 5, value);
  1835. };
  1836. /**
  1837. * Clears the message field making it undefined.
  1838. * @return {!proto.app.v1.GameDetailReply} returns this
  1839. */
  1840. proto.app.v1.GameDetailReply.prototype.clearDuration = function() {
  1841. return this.setDuration(undefined);
  1842. };
  1843. /**
  1844. * Returns whether this field is set.
  1845. * @return {boolean}
  1846. */
  1847. proto.app.v1.GameDetailReply.prototype.hasDuration = function() {
  1848. return jspb.Message.getField(this, 5) != null;
  1849. };
  1850. /**
  1851. * optional google.protobuf.Timestamp stop_at = 6;
  1852. * @return {?proto.google.protobuf.Timestamp}
  1853. */
  1854. proto.app.v1.GameDetailReply.prototype.getStopAt = function() {
  1855. return /** @type{?proto.google.protobuf.Timestamp} */ (
  1856. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
  1857. };
  1858. /**
  1859. * @param {?proto.google.protobuf.Timestamp|undefined} value
  1860. * @return {!proto.app.v1.GameDetailReply} returns this
  1861. */
  1862. proto.app.v1.GameDetailReply.prototype.setStopAt = function(value) {
  1863. return jspb.Message.setWrapperField(this, 6, value);
  1864. };
  1865. /**
  1866. * Clears the message field making it undefined.
  1867. * @return {!proto.app.v1.GameDetailReply} returns this
  1868. */
  1869. proto.app.v1.GameDetailReply.prototype.clearStopAt = function() {
  1870. return this.setStopAt(undefined);
  1871. };
  1872. /**
  1873. * Returns whether this field is set.
  1874. * @return {boolean}
  1875. */
  1876. proto.app.v1.GameDetailReply.prototype.hasStopAt = function() {
  1877. return jspb.Message.getField(this, 6) != null;
  1878. };
  1879. /**
  1880. * optional string qrJsonCode = 7;
  1881. * @return {string}
  1882. */
  1883. proto.app.v1.GameDetailReply.prototype.getQrjsoncode = function() {
  1884. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  1885. };
  1886. /**
  1887. * @param {string} value
  1888. * @return {!proto.app.v1.GameDetailReply} returns this
  1889. */
  1890. proto.app.v1.GameDetailReply.prototype.setQrjsoncode = function(value) {
  1891. return jspb.Message.setProto3StringField(this, 7, value);
  1892. };
  1893. if (jspb.Message.GENERATE_TO_OBJECT) {
  1894. /**
  1895. * Creates an object representation of this proto.
  1896. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1897. * Optional fields that are not set will be set to undefined.
  1898. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1899. * For the list of reserved names please see:
  1900. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1901. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1902. * JSPB instance for transitional soy proto support:
  1903. * http://goto/soy-param-migration
  1904. * @return {!Object}
  1905. */
  1906. proto.app.v1.GameControlPoint.prototype.toObject = function(opt_includeInstance) {
  1907. return proto.app.v1.GameControlPoint.toObject(opt_includeInstance, this);
  1908. };
  1909. /**
  1910. * Static version of the {@see toObject} method.
  1911. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1912. * the JSPB instance for transitional soy proto support:
  1913. * http://goto/soy-param-migration
  1914. * @param {!proto.app.v1.GameControlPoint} msg The msg instance to transform.
  1915. * @return {!Object}
  1916. * @suppress {unusedLocalVariables} f is only used for nested messages
  1917. */
  1918. proto.app.v1.GameControlPoint.toObject = function(includeInstance, msg) {
  1919. var f, obj = {
  1920. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1921. sn: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1922. ctype: jspb.Message.getFieldWithDefault(msg, 3, 0),
  1923. orderno: jspb.Message.getFieldWithDefault(msg, 4, 0),
  1924. isCheckSuccess: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
  1925. checkAfterLast: (f = msg.getCheckAfterLast()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  1926. punchtime: (f = msg.getPunchtime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
  1927. };
  1928. if (includeInstance) {
  1929. obj.$jspbMessageInstance = msg;
  1930. }
  1931. return obj;
  1932. };
  1933. }
  1934. /**
  1935. * Deserializes binary data (in protobuf wire format).
  1936. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1937. * @return {!proto.app.v1.GameControlPoint}
  1938. */
  1939. proto.app.v1.GameControlPoint.deserializeBinary = function(bytes) {
  1940. var reader = new jspb.BinaryReader(bytes);
  1941. var msg = new proto.app.v1.GameControlPoint;
  1942. return proto.app.v1.GameControlPoint.deserializeBinaryFromReader(msg, reader);
  1943. };
  1944. /**
  1945. * Deserializes binary data (in protobuf wire format) from the
  1946. * given reader into the given message object.
  1947. * @param {!proto.app.v1.GameControlPoint} msg The message object to deserialize into.
  1948. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1949. * @return {!proto.app.v1.GameControlPoint}
  1950. */
  1951. proto.app.v1.GameControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  1952. while (reader.nextField()) {
  1953. if (reader.isEndGroup()) {
  1954. break;
  1955. }
  1956. var field = reader.getFieldNumber();
  1957. switch (field) {
  1958. case 1:
  1959. var value = /** @type {number} */ (reader.readInt64());
  1960. msg.setId(value);
  1961. break;
  1962. case 2:
  1963. var value = /** @type {string} */ (reader.readString());
  1964. msg.setSn(value);
  1965. break;
  1966. case 3:
  1967. var value = /** @type {!proto.app.v1.CType} */ (reader.readEnum());
  1968. msg.setCtype(value);
  1969. break;
  1970. case 4:
  1971. var value = /** @type {number} */ (reader.readInt32());
  1972. msg.setOrderno(value);
  1973. break;
  1974. case 5:
  1975. var value = /** @type {boolean} */ (reader.readBool());
  1976. msg.setIsCheckSuccess(value);
  1977. break;
  1978. case 6:
  1979. var value = new google_protobuf_duration_pb.Duration;
  1980. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  1981. msg.setCheckAfterLast(value);
  1982. break;
  1983. case 7:
  1984. var value = new google_protobuf_timestamp_pb.Timestamp;
  1985. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  1986. msg.setPunchtime(value);
  1987. break;
  1988. default:
  1989. reader.skipField();
  1990. break;
  1991. }
  1992. }
  1993. return msg;
  1994. };
  1995. /**
  1996. * Serializes the message to binary data (in protobuf wire format).
  1997. * @return {!Uint8Array}
  1998. */
  1999. proto.app.v1.GameControlPoint.prototype.serializeBinary = function() {
  2000. var writer = new jspb.BinaryWriter();
  2001. proto.app.v1.GameControlPoint.serializeBinaryToWriter(this, writer);
  2002. return writer.getResultBuffer();
  2003. };
  2004. /**
  2005. * Serializes the given message to binary data (in protobuf wire
  2006. * format), writing to the given BinaryWriter.
  2007. * @param {!proto.app.v1.GameControlPoint} message
  2008. * @param {!jspb.BinaryWriter} writer
  2009. * @suppress {unusedLocalVariables} f is only used for nested messages
  2010. */
  2011. proto.app.v1.GameControlPoint.serializeBinaryToWriter = function(message, writer) {
  2012. var f = undefined;
  2013. f = message.getId();
  2014. if (f !== 0) {
  2015. writer.writeInt64(
  2016. 1,
  2017. f
  2018. );
  2019. }
  2020. f = message.getSn();
  2021. if (f.length > 0) {
  2022. writer.writeString(
  2023. 2,
  2024. f
  2025. );
  2026. }
  2027. f = message.getCtype();
  2028. if (f !== 0.0) {
  2029. writer.writeEnum(
  2030. 3,
  2031. f
  2032. );
  2033. }
  2034. f = message.getOrderno();
  2035. if (f !== 0) {
  2036. writer.writeInt32(
  2037. 4,
  2038. f
  2039. );
  2040. }
  2041. f = message.getIsCheckSuccess();
  2042. if (f) {
  2043. writer.writeBool(
  2044. 5,
  2045. f
  2046. );
  2047. }
  2048. f = message.getCheckAfterLast();
  2049. if (f != null) {
  2050. writer.writeMessage(
  2051. 6,
  2052. f,
  2053. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  2054. );
  2055. }
  2056. f = message.getPunchtime();
  2057. if (f != null) {
  2058. writer.writeMessage(
  2059. 7,
  2060. f,
  2061. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  2062. );
  2063. }
  2064. };
  2065. /**
  2066. * optional int64 id = 1;
  2067. * @return {number}
  2068. */
  2069. proto.app.v1.GameControlPoint.prototype.getId = function() {
  2070. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2071. };
  2072. /**
  2073. * @param {number} value
  2074. * @return {!proto.app.v1.GameControlPoint} returns this
  2075. */
  2076. proto.app.v1.GameControlPoint.prototype.setId = function(value) {
  2077. return jspb.Message.setProto3IntField(this, 1, value);
  2078. };
  2079. /**
  2080. * optional string sn = 2;
  2081. * @return {string}
  2082. */
  2083. proto.app.v1.GameControlPoint.prototype.getSn = function() {
  2084. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2085. };
  2086. /**
  2087. * @param {string} value
  2088. * @return {!proto.app.v1.GameControlPoint} returns this
  2089. */
  2090. proto.app.v1.GameControlPoint.prototype.setSn = function(value) {
  2091. return jspb.Message.setProto3StringField(this, 2, value);
  2092. };
  2093. /**
  2094. * optional CType cType = 3;
  2095. * @return {!proto.app.v1.CType}
  2096. */
  2097. proto.app.v1.GameControlPoint.prototype.getCtype = function() {
  2098. return /** @type {!proto.app.v1.CType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2099. };
  2100. /**
  2101. * @param {!proto.app.v1.CType} value
  2102. * @return {!proto.app.v1.GameControlPoint} returns this
  2103. */
  2104. proto.app.v1.GameControlPoint.prototype.setCtype = function(value) {
  2105. return jspb.Message.setProto3EnumField(this, 3, value);
  2106. };
  2107. /**
  2108. * optional int32 orderNo = 4;
  2109. * @return {number}
  2110. */
  2111. proto.app.v1.GameControlPoint.prototype.getOrderno = function() {
  2112. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  2113. };
  2114. /**
  2115. * @param {number} value
  2116. * @return {!proto.app.v1.GameControlPoint} returns this
  2117. */
  2118. proto.app.v1.GameControlPoint.prototype.setOrderno = function(value) {
  2119. return jspb.Message.setProto3IntField(this, 4, value);
  2120. };
  2121. /**
  2122. * optional bool is_check_success = 5;
  2123. * @return {boolean}
  2124. */
  2125. proto.app.v1.GameControlPoint.prototype.getIsCheckSuccess = function() {
  2126. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
  2127. };
  2128. /**
  2129. * @param {boolean} value
  2130. * @return {!proto.app.v1.GameControlPoint} returns this
  2131. */
  2132. proto.app.v1.GameControlPoint.prototype.setIsCheckSuccess = function(value) {
  2133. return jspb.Message.setProto3BooleanField(this, 5, value);
  2134. };
  2135. /**
  2136. * optional google.protobuf.Duration check_after_last = 6;
  2137. * @return {?proto.google.protobuf.Duration}
  2138. */
  2139. proto.app.v1.GameControlPoint.prototype.getCheckAfterLast = function() {
  2140. return /** @type{?proto.google.protobuf.Duration} */ (
  2141. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6));
  2142. };
  2143. /**
  2144. * @param {?proto.google.protobuf.Duration|undefined} value
  2145. * @return {!proto.app.v1.GameControlPoint} returns this
  2146. */
  2147. proto.app.v1.GameControlPoint.prototype.setCheckAfterLast = function(value) {
  2148. return jspb.Message.setWrapperField(this, 6, value);
  2149. };
  2150. /**
  2151. * Clears the message field making it undefined.
  2152. * @return {!proto.app.v1.GameControlPoint} returns this
  2153. */
  2154. proto.app.v1.GameControlPoint.prototype.clearCheckAfterLast = function() {
  2155. return this.setCheckAfterLast(undefined);
  2156. };
  2157. /**
  2158. * Returns whether this field is set.
  2159. * @return {boolean}
  2160. */
  2161. proto.app.v1.GameControlPoint.prototype.hasCheckAfterLast = function() {
  2162. return jspb.Message.getField(this, 6) != null;
  2163. };
  2164. /**
  2165. * optional google.protobuf.Timestamp punchTime = 7;
  2166. * @return {?proto.google.protobuf.Timestamp}
  2167. */
  2168. proto.app.v1.GameControlPoint.prototype.getPunchtime = function() {
  2169. return /** @type{?proto.google.protobuf.Timestamp} */ (
  2170. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
  2171. };
  2172. /**
  2173. * @param {?proto.google.protobuf.Timestamp|undefined} value
  2174. * @return {!proto.app.v1.GameControlPoint} returns this
  2175. */
  2176. proto.app.v1.GameControlPoint.prototype.setPunchtime = function(value) {
  2177. return jspb.Message.setWrapperField(this, 7, value);
  2178. };
  2179. /**
  2180. * Clears the message field making it undefined.
  2181. * @return {!proto.app.v1.GameControlPoint} returns this
  2182. */
  2183. proto.app.v1.GameControlPoint.prototype.clearPunchtime = function() {
  2184. return this.setPunchtime(undefined);
  2185. };
  2186. /**
  2187. * Returns whether this field is set.
  2188. * @return {boolean}
  2189. */
  2190. proto.app.v1.GameControlPoint.prototype.hasPunchtime = function() {
  2191. return jspb.Message.getField(this, 7) != null;
  2192. };
  2193. if (jspb.Message.GENERATE_TO_OBJECT) {
  2194. /**
  2195. * Creates an object representation of this proto.
  2196. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2197. * Optional fields that are not set will be set to undefined.
  2198. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2199. * For the list of reserved names please see:
  2200. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2201. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2202. * JSPB instance for transitional soy proto support:
  2203. * http://goto/soy-param-migration
  2204. * @return {!Object}
  2205. */
  2206. proto.app.v1.AssVerificationRequest.prototype.toObject = function(opt_includeInstance) {
  2207. return proto.app.v1.AssVerificationRequest.toObject(opt_includeInstance, this);
  2208. };
  2209. /**
  2210. * Static version of the {@see toObject} method.
  2211. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2212. * the JSPB instance for transitional soy proto support:
  2213. * http://goto/soy-param-migration
  2214. * @param {!proto.app.v1.AssVerificationRequest} msg The msg instance to transform.
  2215. * @return {!Object}
  2216. * @suppress {unusedLocalVariables} f is only used for nested messages
  2217. */
  2218. proto.app.v1.AssVerificationRequest.toObject = function(includeInstance, msg) {
  2219. var f, obj = {
  2220. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2221. uoid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  2222. };
  2223. if (includeInstance) {
  2224. obj.$jspbMessageInstance = msg;
  2225. }
  2226. return obj;
  2227. };
  2228. }
  2229. /**
  2230. * Deserializes binary data (in protobuf wire format).
  2231. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2232. * @return {!proto.app.v1.AssVerificationRequest}
  2233. */
  2234. proto.app.v1.AssVerificationRequest.deserializeBinary = function(bytes) {
  2235. var reader = new jspb.BinaryReader(bytes);
  2236. var msg = new proto.app.v1.AssVerificationRequest;
  2237. return proto.app.v1.AssVerificationRequest.deserializeBinaryFromReader(msg, reader);
  2238. };
  2239. /**
  2240. * Deserializes binary data (in protobuf wire format) from the
  2241. * given reader into the given message object.
  2242. * @param {!proto.app.v1.AssVerificationRequest} msg The message object to deserialize into.
  2243. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2244. * @return {!proto.app.v1.AssVerificationRequest}
  2245. */
  2246. proto.app.v1.AssVerificationRequest.deserializeBinaryFromReader = function(msg, reader) {
  2247. while (reader.nextField()) {
  2248. if (reader.isEndGroup()) {
  2249. break;
  2250. }
  2251. var field = reader.getFieldNumber();
  2252. switch (field) {
  2253. case 1:
  2254. var value = /** @type {number} */ (reader.readInt32());
  2255. msg.setUserid(value);
  2256. break;
  2257. case 2:
  2258. var value = /** @type {number} */ (reader.readInt32());
  2259. msg.setUoid(value);
  2260. break;
  2261. default:
  2262. reader.skipField();
  2263. break;
  2264. }
  2265. }
  2266. return msg;
  2267. };
  2268. /**
  2269. * Serializes the message to binary data (in protobuf wire format).
  2270. * @return {!Uint8Array}
  2271. */
  2272. proto.app.v1.AssVerificationRequest.prototype.serializeBinary = function() {
  2273. var writer = new jspb.BinaryWriter();
  2274. proto.app.v1.AssVerificationRequest.serializeBinaryToWriter(this, writer);
  2275. return writer.getResultBuffer();
  2276. };
  2277. /**
  2278. * Serializes the given message to binary data (in protobuf wire
  2279. * format), writing to the given BinaryWriter.
  2280. * @param {!proto.app.v1.AssVerificationRequest} message
  2281. * @param {!jspb.BinaryWriter} writer
  2282. * @suppress {unusedLocalVariables} f is only used for nested messages
  2283. */
  2284. proto.app.v1.AssVerificationRequest.serializeBinaryToWriter = function(message, writer) {
  2285. var f = undefined;
  2286. f = message.getUserid();
  2287. if (f !== 0) {
  2288. writer.writeInt32(
  2289. 1,
  2290. f
  2291. );
  2292. }
  2293. f = message.getUoid();
  2294. if (f !== 0) {
  2295. writer.writeInt32(
  2296. 2,
  2297. f
  2298. );
  2299. }
  2300. };
  2301. /**
  2302. * optional int32 userId = 1;
  2303. * @return {number}
  2304. */
  2305. proto.app.v1.AssVerificationRequest.prototype.getUserid = function() {
  2306. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2307. };
  2308. /**
  2309. * @param {number} value
  2310. * @return {!proto.app.v1.AssVerificationRequest} returns this
  2311. */
  2312. proto.app.v1.AssVerificationRequest.prototype.setUserid = function(value) {
  2313. return jspb.Message.setProto3IntField(this, 1, value);
  2314. };
  2315. /**
  2316. * optional int32 uoId = 2;
  2317. * @return {number}
  2318. */
  2319. proto.app.v1.AssVerificationRequest.prototype.getUoid = function() {
  2320. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2321. };
  2322. /**
  2323. * @param {number} value
  2324. * @return {!proto.app.v1.AssVerificationRequest} returns this
  2325. */
  2326. proto.app.v1.AssVerificationRequest.prototype.setUoid = function(value) {
  2327. return jspb.Message.setProto3IntField(this, 2, value);
  2328. };
  2329. if (jspb.Message.GENERATE_TO_OBJECT) {
  2330. /**
  2331. * Creates an object representation of this proto.
  2332. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2333. * Optional fields that are not set will be set to undefined.
  2334. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2335. * For the list of reserved names please see:
  2336. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2337. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2338. * JSPB instance for transitional soy proto support:
  2339. * http://goto/soy-param-migration
  2340. * @return {!Object}
  2341. */
  2342. proto.app.v1.GameHistory.prototype.toObject = function(opt_includeInstance) {
  2343. return proto.app.v1.GameHistory.toObject(opt_includeInstance, this);
  2344. };
  2345. /**
  2346. * Static version of the {@see toObject} method.
  2347. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2348. * the JSPB instance for transitional soy proto support:
  2349. * http://goto/soy-param-migration
  2350. * @param {!proto.app.v1.GameHistory} msg The msg instance to transform.
  2351. * @return {!Object}
  2352. * @suppress {unusedLocalVariables} f is only used for nested messages
  2353. */
  2354. proto.app.v1.GameHistory.toObject = function(includeInstance, msg) {
  2355. var f, obj = {
  2356. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2357. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2358. shopname: jspb.Message.getFieldWithDefault(msg, 3, ""),
  2359. iscomplete: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
  2360. gameTime: (f = msg.getGameTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  2361. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  2362. };
  2363. if (includeInstance) {
  2364. obj.$jspbMessageInstance = msg;
  2365. }
  2366. return obj;
  2367. };
  2368. }
  2369. /**
  2370. * Deserializes binary data (in protobuf wire format).
  2371. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2372. * @return {!proto.app.v1.GameHistory}
  2373. */
  2374. proto.app.v1.GameHistory.deserializeBinary = function(bytes) {
  2375. var reader = new jspb.BinaryReader(bytes);
  2376. var msg = new proto.app.v1.GameHistory;
  2377. return proto.app.v1.GameHistory.deserializeBinaryFromReader(msg, reader);
  2378. };
  2379. /**
  2380. * Deserializes binary data (in protobuf wire format) from the
  2381. * given reader into the given message object.
  2382. * @param {!proto.app.v1.GameHistory} msg The message object to deserialize into.
  2383. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2384. * @return {!proto.app.v1.GameHistory}
  2385. */
  2386. proto.app.v1.GameHistory.deserializeBinaryFromReader = function(msg, reader) {
  2387. while (reader.nextField()) {
  2388. if (reader.isEndGroup()) {
  2389. break;
  2390. }
  2391. var field = reader.getFieldNumber();
  2392. switch (field) {
  2393. case 1:
  2394. var value = /** @type {number} */ (reader.readInt64());
  2395. msg.setGameId(value);
  2396. break;
  2397. case 2:
  2398. var value = /** @type {string} */ (reader.readString());
  2399. msg.setName(value);
  2400. break;
  2401. case 3:
  2402. var value = /** @type {string} */ (reader.readString());
  2403. msg.setShopname(value);
  2404. break;
  2405. case 4:
  2406. var value = /** @type {boolean} */ (reader.readBool());
  2407. msg.setIscomplete(value);
  2408. break;
  2409. case 5:
  2410. var value = new google_protobuf_timestamp_pb.Timestamp;
  2411. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  2412. msg.setGameTime(value);
  2413. break;
  2414. case 6:
  2415. var value = new proto.app.v1.NetImage;
  2416. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  2417. msg.setImage(value);
  2418. break;
  2419. default:
  2420. reader.skipField();
  2421. break;
  2422. }
  2423. }
  2424. return msg;
  2425. };
  2426. /**
  2427. * Serializes the message to binary data (in protobuf wire format).
  2428. * @return {!Uint8Array}
  2429. */
  2430. proto.app.v1.GameHistory.prototype.serializeBinary = function() {
  2431. var writer = new jspb.BinaryWriter();
  2432. proto.app.v1.GameHistory.serializeBinaryToWriter(this, writer);
  2433. return writer.getResultBuffer();
  2434. };
  2435. /**
  2436. * Serializes the given message to binary data (in protobuf wire
  2437. * format), writing to the given BinaryWriter.
  2438. * @param {!proto.app.v1.GameHistory} message
  2439. * @param {!jspb.BinaryWriter} writer
  2440. * @suppress {unusedLocalVariables} f is only used for nested messages
  2441. */
  2442. proto.app.v1.GameHistory.serializeBinaryToWriter = function(message, writer) {
  2443. var f = undefined;
  2444. f = message.getGameId();
  2445. if (f !== 0) {
  2446. writer.writeInt64(
  2447. 1,
  2448. f
  2449. );
  2450. }
  2451. f = message.getName();
  2452. if (f.length > 0) {
  2453. writer.writeString(
  2454. 2,
  2455. f
  2456. );
  2457. }
  2458. f = message.getShopname();
  2459. if (f.length > 0) {
  2460. writer.writeString(
  2461. 3,
  2462. f
  2463. );
  2464. }
  2465. f = message.getIscomplete();
  2466. if (f) {
  2467. writer.writeBool(
  2468. 4,
  2469. f
  2470. );
  2471. }
  2472. f = message.getGameTime();
  2473. if (f != null) {
  2474. writer.writeMessage(
  2475. 5,
  2476. f,
  2477. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  2478. );
  2479. }
  2480. f = message.getImage();
  2481. if (f != null) {
  2482. writer.writeMessage(
  2483. 6,
  2484. f,
  2485. proto.app.v1.NetImage.serializeBinaryToWriter
  2486. );
  2487. }
  2488. };
  2489. /**
  2490. * optional int64 game_id = 1;
  2491. * @return {number}
  2492. */
  2493. proto.app.v1.GameHistory.prototype.getGameId = function() {
  2494. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2495. };
  2496. /**
  2497. * @param {number} value
  2498. * @return {!proto.app.v1.GameHistory} returns this
  2499. */
  2500. proto.app.v1.GameHistory.prototype.setGameId = function(value) {
  2501. return jspb.Message.setProto3IntField(this, 1, value);
  2502. };
  2503. /**
  2504. * optional string name = 2;
  2505. * @return {string}
  2506. */
  2507. proto.app.v1.GameHistory.prototype.getName = function() {
  2508. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2509. };
  2510. /**
  2511. * @param {string} value
  2512. * @return {!proto.app.v1.GameHistory} returns this
  2513. */
  2514. proto.app.v1.GameHistory.prototype.setName = function(value) {
  2515. return jspb.Message.setProto3StringField(this, 2, value);
  2516. };
  2517. /**
  2518. * optional string shopName = 3;
  2519. * @return {string}
  2520. */
  2521. proto.app.v1.GameHistory.prototype.getShopname = function() {
  2522. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  2523. };
  2524. /**
  2525. * @param {string} value
  2526. * @return {!proto.app.v1.GameHistory} returns this
  2527. */
  2528. proto.app.v1.GameHistory.prototype.setShopname = function(value) {
  2529. return jspb.Message.setProto3StringField(this, 3, value);
  2530. };
  2531. /**
  2532. * optional bool isComplete = 4;
  2533. * @return {boolean}
  2534. */
  2535. proto.app.v1.GameHistory.prototype.getIscomplete = function() {
  2536. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
  2537. };
  2538. /**
  2539. * @param {boolean} value
  2540. * @return {!proto.app.v1.GameHistory} returns this
  2541. */
  2542. proto.app.v1.GameHistory.prototype.setIscomplete = function(value) {
  2543. return jspb.Message.setProto3BooleanField(this, 4, value);
  2544. };
  2545. /**
  2546. * optional google.protobuf.Timestamp game_time = 5;
  2547. * @return {?proto.google.protobuf.Timestamp}
  2548. */
  2549. proto.app.v1.GameHistory.prototype.getGameTime = function() {
  2550. return /** @type{?proto.google.protobuf.Timestamp} */ (
  2551. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
  2552. };
  2553. /**
  2554. * @param {?proto.google.protobuf.Timestamp|undefined} value
  2555. * @return {!proto.app.v1.GameHistory} returns this
  2556. */
  2557. proto.app.v1.GameHistory.prototype.setGameTime = function(value) {
  2558. return jspb.Message.setWrapperField(this, 5, value);
  2559. };
  2560. /**
  2561. * Clears the message field making it undefined.
  2562. * @return {!proto.app.v1.GameHistory} returns this
  2563. */
  2564. proto.app.v1.GameHistory.prototype.clearGameTime = function() {
  2565. return this.setGameTime(undefined);
  2566. };
  2567. /**
  2568. * Returns whether this field is set.
  2569. * @return {boolean}
  2570. */
  2571. proto.app.v1.GameHistory.prototype.hasGameTime = function() {
  2572. return jspb.Message.getField(this, 5) != null;
  2573. };
  2574. /**
  2575. * optional NetImage image = 6;
  2576. * @return {?proto.app.v1.NetImage}
  2577. */
  2578. proto.app.v1.GameHistory.prototype.getImage = function() {
  2579. return /** @type{?proto.app.v1.NetImage} */ (
  2580. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 6));
  2581. };
  2582. /**
  2583. * @param {?proto.app.v1.NetImage|undefined} value
  2584. * @return {!proto.app.v1.GameHistory} returns this
  2585. */
  2586. proto.app.v1.GameHistory.prototype.setImage = function(value) {
  2587. return jspb.Message.setWrapperField(this, 6, value);
  2588. };
  2589. /**
  2590. * Clears the message field making it undefined.
  2591. * @return {!proto.app.v1.GameHistory} returns this
  2592. */
  2593. proto.app.v1.GameHistory.prototype.clearImage = function() {
  2594. return this.setImage(undefined);
  2595. };
  2596. /**
  2597. * Returns whether this field is set.
  2598. * @return {boolean}
  2599. */
  2600. proto.app.v1.GameHistory.prototype.hasImage = function() {
  2601. return jspb.Message.getField(this, 6) != null;
  2602. };
  2603. if (jspb.Message.GENERATE_TO_OBJECT) {
  2604. /**
  2605. * Creates an object representation of this proto.
  2606. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2607. * Optional fields that are not set will be set to undefined.
  2608. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2609. * For the list of reserved names please see:
  2610. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2611. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2612. * JSPB instance for transitional soy proto support:
  2613. * http://goto/soy-param-migration
  2614. * @return {!Object}
  2615. */
  2616. proto.app.v1.NetImage.prototype.toObject = function(opt_includeInstance) {
  2617. return proto.app.v1.NetImage.toObject(opt_includeInstance, this);
  2618. };
  2619. /**
  2620. * Static version of the {@see toObject} method.
  2621. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2622. * the JSPB instance for transitional soy proto support:
  2623. * http://goto/soy-param-migration
  2624. * @param {!proto.app.v1.NetImage} msg The msg instance to transform.
  2625. * @return {!Object}
  2626. * @suppress {unusedLocalVariables} f is only used for nested messages
  2627. */
  2628. proto.app.v1.NetImage.toObject = function(includeInstance, msg) {
  2629. var f, obj = {
  2630. url: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2631. md5: msg.getMd5_asB64()
  2632. };
  2633. if (includeInstance) {
  2634. obj.$jspbMessageInstance = msg;
  2635. }
  2636. return obj;
  2637. };
  2638. }
  2639. /**
  2640. * Deserializes binary data (in protobuf wire format).
  2641. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2642. * @return {!proto.app.v1.NetImage}
  2643. */
  2644. proto.app.v1.NetImage.deserializeBinary = function(bytes) {
  2645. var reader = new jspb.BinaryReader(bytes);
  2646. var msg = new proto.app.v1.NetImage;
  2647. return proto.app.v1.NetImage.deserializeBinaryFromReader(msg, reader);
  2648. };
  2649. /**
  2650. * Deserializes binary data (in protobuf wire format) from the
  2651. * given reader into the given message object.
  2652. * @param {!proto.app.v1.NetImage} msg The message object to deserialize into.
  2653. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2654. * @return {!proto.app.v1.NetImage}
  2655. */
  2656. proto.app.v1.NetImage.deserializeBinaryFromReader = function(msg, reader) {
  2657. while (reader.nextField()) {
  2658. if (reader.isEndGroup()) {
  2659. break;
  2660. }
  2661. var field = reader.getFieldNumber();
  2662. switch (field) {
  2663. case 1:
  2664. var value = /** @type {string} */ (reader.readString());
  2665. msg.setUrl(value);
  2666. break;
  2667. case 2:
  2668. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2669. msg.setMd5(value);
  2670. break;
  2671. default:
  2672. reader.skipField();
  2673. break;
  2674. }
  2675. }
  2676. return msg;
  2677. };
  2678. /**
  2679. * Serializes the message to binary data (in protobuf wire format).
  2680. * @return {!Uint8Array}
  2681. */
  2682. proto.app.v1.NetImage.prototype.serializeBinary = function() {
  2683. var writer = new jspb.BinaryWriter();
  2684. proto.app.v1.NetImage.serializeBinaryToWriter(this, writer);
  2685. return writer.getResultBuffer();
  2686. };
  2687. /**
  2688. * Serializes the given message to binary data (in protobuf wire
  2689. * format), writing to the given BinaryWriter.
  2690. * @param {!proto.app.v1.NetImage} message
  2691. * @param {!jspb.BinaryWriter} writer
  2692. * @suppress {unusedLocalVariables} f is only used for nested messages
  2693. */
  2694. proto.app.v1.NetImage.serializeBinaryToWriter = function(message, writer) {
  2695. var f = undefined;
  2696. f = message.getUrl();
  2697. if (f.length > 0) {
  2698. writer.writeString(
  2699. 1,
  2700. f
  2701. );
  2702. }
  2703. f = message.getMd5_asU8();
  2704. if (f.length > 0) {
  2705. writer.writeBytes(
  2706. 2,
  2707. f
  2708. );
  2709. }
  2710. };
  2711. /**
  2712. * optional string url = 1;
  2713. * @return {string}
  2714. */
  2715. proto.app.v1.NetImage.prototype.getUrl = function() {
  2716. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2717. };
  2718. /**
  2719. * @param {string} value
  2720. * @return {!proto.app.v1.NetImage} returns this
  2721. */
  2722. proto.app.v1.NetImage.prototype.setUrl = function(value) {
  2723. return jspb.Message.setProto3StringField(this, 1, value);
  2724. };
  2725. /**
  2726. * optional bytes md5 = 2;
  2727. * @return {string}
  2728. */
  2729. proto.app.v1.NetImage.prototype.getMd5 = function() {
  2730. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2731. };
  2732. /**
  2733. * optional bytes md5 = 2;
  2734. * This is a type-conversion wrapper around `getMd5()`
  2735. * @return {string}
  2736. */
  2737. proto.app.v1.NetImage.prototype.getMd5_asB64 = function() {
  2738. return /** @type {string} */ (jspb.Message.bytesAsB64(
  2739. this.getMd5()));
  2740. };
  2741. /**
  2742. * optional bytes md5 = 2;
  2743. * Note that Uint8Array is not supported on all browsers.
  2744. * @see http://caniuse.com/Uint8Array
  2745. * This is a type-conversion wrapper around `getMd5()`
  2746. * @return {!Uint8Array}
  2747. */
  2748. proto.app.v1.NetImage.prototype.getMd5_asU8 = function() {
  2749. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2750. this.getMd5()));
  2751. };
  2752. /**
  2753. * @param {!(string|Uint8Array)} value
  2754. * @return {!proto.app.v1.NetImage} returns this
  2755. */
  2756. proto.app.v1.NetImage.prototype.setMd5 = function(value) {
  2757. return jspb.Message.setProto3BytesField(this, 2, value);
  2758. };
  2759. if (jspb.Message.GENERATE_TO_OBJECT) {
  2760. /**
  2761. * Creates an object representation of this proto.
  2762. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2763. * Optional fields that are not set will be set to undefined.
  2764. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2765. * For the list of reserved names please see:
  2766. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2767. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2768. * JSPB instance for transitional soy proto support:
  2769. * http://goto/soy-param-migration
  2770. * @return {!Object}
  2771. */
  2772. proto.app.v1.Position.prototype.toObject = function(opt_includeInstance) {
  2773. return proto.app.v1.Position.toObject(opt_includeInstance, this);
  2774. };
  2775. /**
  2776. * Static version of the {@see toObject} method.
  2777. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2778. * the JSPB instance for transitional soy proto support:
  2779. * http://goto/soy-param-migration
  2780. * @param {!proto.app.v1.Position} msg The msg instance to transform.
  2781. * @return {!Object}
  2782. * @suppress {unusedLocalVariables} f is only used for nested messages
  2783. */
  2784. proto.app.v1.Position.toObject = function(includeInstance, msg) {
  2785. var f, obj = {
  2786. longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  2787. latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
  2788. };
  2789. if (includeInstance) {
  2790. obj.$jspbMessageInstance = msg;
  2791. }
  2792. return obj;
  2793. };
  2794. }
  2795. /**
  2796. * Deserializes binary data (in protobuf wire format).
  2797. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2798. * @return {!proto.app.v1.Position}
  2799. */
  2800. proto.app.v1.Position.deserializeBinary = function(bytes) {
  2801. var reader = new jspb.BinaryReader(bytes);
  2802. var msg = new proto.app.v1.Position;
  2803. return proto.app.v1.Position.deserializeBinaryFromReader(msg, reader);
  2804. };
  2805. /**
  2806. * Deserializes binary data (in protobuf wire format) from the
  2807. * given reader into the given message object.
  2808. * @param {!proto.app.v1.Position} msg The message object to deserialize into.
  2809. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2810. * @return {!proto.app.v1.Position}
  2811. */
  2812. proto.app.v1.Position.deserializeBinaryFromReader = function(msg, reader) {
  2813. while (reader.nextField()) {
  2814. if (reader.isEndGroup()) {
  2815. break;
  2816. }
  2817. var field = reader.getFieldNumber();
  2818. switch (field) {
  2819. case 1:
  2820. var value = /** @type {number} */ (reader.readDouble());
  2821. msg.setLongitude(value);
  2822. break;
  2823. case 2:
  2824. var value = /** @type {number} */ (reader.readDouble());
  2825. msg.setLatitude(value);
  2826. break;
  2827. default:
  2828. reader.skipField();
  2829. break;
  2830. }
  2831. }
  2832. return msg;
  2833. };
  2834. /**
  2835. * Serializes the message to binary data (in protobuf wire format).
  2836. * @return {!Uint8Array}
  2837. */
  2838. proto.app.v1.Position.prototype.serializeBinary = function() {
  2839. var writer = new jspb.BinaryWriter();
  2840. proto.app.v1.Position.serializeBinaryToWriter(this, writer);
  2841. return writer.getResultBuffer();
  2842. };
  2843. /**
  2844. * Serializes the given message to binary data (in protobuf wire
  2845. * format), writing to the given BinaryWriter.
  2846. * @param {!proto.app.v1.Position} message
  2847. * @param {!jspb.BinaryWriter} writer
  2848. * @suppress {unusedLocalVariables} f is only used for nested messages
  2849. */
  2850. proto.app.v1.Position.serializeBinaryToWriter = function(message, writer) {
  2851. var f = undefined;
  2852. f = message.getLongitude();
  2853. if (f !== 0.0) {
  2854. writer.writeDouble(
  2855. 1,
  2856. f
  2857. );
  2858. }
  2859. f = message.getLatitude();
  2860. if (f !== 0.0) {
  2861. writer.writeDouble(
  2862. 2,
  2863. f
  2864. );
  2865. }
  2866. };
  2867. /**
  2868. * optional double longitude = 1;
  2869. * @return {number}
  2870. */
  2871. proto.app.v1.Position.prototype.getLongitude = function() {
  2872. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  2873. };
  2874. /**
  2875. * @param {number} value
  2876. * @return {!proto.app.v1.Position} returns this
  2877. */
  2878. proto.app.v1.Position.prototype.setLongitude = function(value) {
  2879. return jspb.Message.setProto3FloatField(this, 1, value);
  2880. };
  2881. /**
  2882. * optional double latitude = 2;
  2883. * @return {number}
  2884. */
  2885. proto.app.v1.Position.prototype.getLatitude = function() {
  2886. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  2887. };
  2888. /**
  2889. * @param {number} value
  2890. * @return {!proto.app.v1.Position} returns this
  2891. */
  2892. proto.app.v1.Position.prototype.setLatitude = function(value) {
  2893. return jspb.Message.setProto3FloatField(this, 2, value);
  2894. };
  2895. if (jspb.Message.GENERATE_TO_OBJECT) {
  2896. /**
  2897. * Creates an object representation of this proto.
  2898. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2899. * Optional fields that are not set will be set to undefined.
  2900. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2901. * For the list of reserved names please see:
  2902. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2903. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2904. * JSPB instance for transitional soy proto support:
  2905. * http://goto/soy-param-migration
  2906. * @return {!Object}
  2907. */
  2908. proto.app.v1.ControlPointInfo.prototype.toObject = function(opt_includeInstance) {
  2909. return proto.app.v1.ControlPointInfo.toObject(opt_includeInstance, this);
  2910. };
  2911. /**
  2912. * Static version of the {@see toObject} method.
  2913. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2914. * the JSPB instance for transitional soy proto support:
  2915. * http://goto/soy-param-migration
  2916. * @param {!proto.app.v1.ControlPointInfo} msg The msg instance to transform.
  2917. * @return {!Object}
  2918. * @suppress {unusedLocalVariables} f is only used for nested messages
  2919. */
  2920. proto.app.v1.ControlPointInfo.toObject = function(includeInstance, msg) {
  2921. var f, obj = {
  2922. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  2923. content: jspb.Message.getFieldWithDefault(msg, 2, "")
  2924. };
  2925. if (includeInstance) {
  2926. obj.$jspbMessageInstance = msg;
  2927. }
  2928. return obj;
  2929. };
  2930. }
  2931. /**
  2932. * Deserializes binary data (in protobuf wire format).
  2933. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2934. * @return {!proto.app.v1.ControlPointInfo}
  2935. */
  2936. proto.app.v1.ControlPointInfo.deserializeBinary = function(bytes) {
  2937. var reader = new jspb.BinaryReader(bytes);
  2938. var msg = new proto.app.v1.ControlPointInfo;
  2939. return proto.app.v1.ControlPointInfo.deserializeBinaryFromReader(msg, reader);
  2940. };
  2941. /**
  2942. * Deserializes binary data (in protobuf wire format) from the
  2943. * given reader into the given message object.
  2944. * @param {!proto.app.v1.ControlPointInfo} msg The message object to deserialize into.
  2945. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2946. * @return {!proto.app.v1.ControlPointInfo}
  2947. */
  2948. proto.app.v1.ControlPointInfo.deserializeBinaryFromReader = function(msg, reader) {
  2949. while (reader.nextField()) {
  2950. if (reader.isEndGroup()) {
  2951. break;
  2952. }
  2953. var field = reader.getFieldNumber();
  2954. switch (field) {
  2955. case 1:
  2956. var value = new proto.app.v1.NetImage;
  2957. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  2958. msg.setImage(value);
  2959. break;
  2960. case 2:
  2961. var value = /** @type {string} */ (reader.readString());
  2962. msg.setContent(value);
  2963. break;
  2964. default:
  2965. reader.skipField();
  2966. break;
  2967. }
  2968. }
  2969. return msg;
  2970. };
  2971. /**
  2972. * Serializes the message to binary data (in protobuf wire format).
  2973. * @return {!Uint8Array}
  2974. */
  2975. proto.app.v1.ControlPointInfo.prototype.serializeBinary = function() {
  2976. var writer = new jspb.BinaryWriter();
  2977. proto.app.v1.ControlPointInfo.serializeBinaryToWriter(this, writer);
  2978. return writer.getResultBuffer();
  2979. };
  2980. /**
  2981. * Serializes the given message to binary data (in protobuf wire
  2982. * format), writing to the given BinaryWriter.
  2983. * @param {!proto.app.v1.ControlPointInfo} message
  2984. * @param {!jspb.BinaryWriter} writer
  2985. * @suppress {unusedLocalVariables} f is only used for nested messages
  2986. */
  2987. proto.app.v1.ControlPointInfo.serializeBinaryToWriter = function(message, writer) {
  2988. var f = undefined;
  2989. f = message.getImage();
  2990. if (f != null) {
  2991. writer.writeMessage(
  2992. 1,
  2993. f,
  2994. proto.app.v1.NetImage.serializeBinaryToWriter
  2995. );
  2996. }
  2997. f = message.getContent();
  2998. if (f.length > 0) {
  2999. writer.writeString(
  3000. 2,
  3001. f
  3002. );
  3003. }
  3004. };
  3005. /**
  3006. * optional NetImage image = 1;
  3007. * @return {?proto.app.v1.NetImage}
  3008. */
  3009. proto.app.v1.ControlPointInfo.prototype.getImage = function() {
  3010. return /** @type{?proto.app.v1.NetImage} */ (
  3011. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 1));
  3012. };
  3013. /**
  3014. * @param {?proto.app.v1.NetImage|undefined} value
  3015. * @return {!proto.app.v1.ControlPointInfo} returns this
  3016. */
  3017. proto.app.v1.ControlPointInfo.prototype.setImage = function(value) {
  3018. return jspb.Message.setWrapperField(this, 1, value);
  3019. };
  3020. /**
  3021. * Clears the message field making it undefined.
  3022. * @return {!proto.app.v1.ControlPointInfo} returns this
  3023. */
  3024. proto.app.v1.ControlPointInfo.prototype.clearImage = function() {
  3025. return this.setImage(undefined);
  3026. };
  3027. /**
  3028. * Returns whether this field is set.
  3029. * @return {boolean}
  3030. */
  3031. proto.app.v1.ControlPointInfo.prototype.hasImage = function() {
  3032. return jspb.Message.getField(this, 1) != null;
  3033. };
  3034. /**
  3035. * optional string content = 2;
  3036. * @return {string}
  3037. */
  3038. proto.app.v1.ControlPointInfo.prototype.getContent = function() {
  3039. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3040. };
  3041. /**
  3042. * @param {string} value
  3043. * @return {!proto.app.v1.ControlPointInfo} returns this
  3044. */
  3045. proto.app.v1.ControlPointInfo.prototype.setContent = function(value) {
  3046. return jspb.Message.setProto3StringField(this, 2, value);
  3047. };
  3048. /**
  3049. * List of repeated fields within this message type.
  3050. * @private {!Array<number>}
  3051. * @const
  3052. */
  3053. proto.app.v1.ControlPoint.repeatedFields_ = [3];
  3054. if (jspb.Message.GENERATE_TO_OBJECT) {
  3055. /**
  3056. * Creates an object representation of this proto.
  3057. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3058. * Optional fields that are not set will be set to undefined.
  3059. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3060. * For the list of reserved names please see:
  3061. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3062. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3063. * JSPB instance for transitional soy proto support:
  3064. * http://goto/soy-param-migration
  3065. * @return {!Object}
  3066. */
  3067. proto.app.v1.ControlPoint.prototype.toObject = function(opt_includeInstance) {
  3068. return proto.app.v1.ControlPoint.toObject(opt_includeInstance, this);
  3069. };
  3070. /**
  3071. * Static version of the {@see toObject} method.
  3072. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3073. * the JSPB instance for transitional soy proto support:
  3074. * http://goto/soy-param-migration
  3075. * @param {!proto.app.v1.ControlPoint} msg The msg instance to transform.
  3076. * @return {!Object}
  3077. * @suppress {unusedLocalVariables} f is only used for nested messages
  3078. */
  3079. proto.app.v1.ControlPoint.toObject = function(includeInstance, msg) {
  3080. var f, obj = {
  3081. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3082. info: (f = msg.getInfo()) && proto.app.v1.ControlPointInfo.toObject(includeInstance, f),
  3083. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
  3084. onMapX: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3085. onMapY: jspb.Message.getFieldWithDefault(msg, 5, 0),
  3086. sn: jspb.Message.getFieldWithDefault(msg, 6, "")
  3087. };
  3088. if (includeInstance) {
  3089. obj.$jspbMessageInstance = msg;
  3090. }
  3091. return obj;
  3092. };
  3093. }
  3094. /**
  3095. * Deserializes binary data (in protobuf wire format).
  3096. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3097. * @return {!proto.app.v1.ControlPoint}
  3098. */
  3099. proto.app.v1.ControlPoint.deserializeBinary = function(bytes) {
  3100. var reader = new jspb.BinaryReader(bytes);
  3101. var msg = new proto.app.v1.ControlPoint;
  3102. return proto.app.v1.ControlPoint.deserializeBinaryFromReader(msg, reader);
  3103. };
  3104. /**
  3105. * Deserializes binary data (in protobuf wire format) from the
  3106. * given reader into the given message object.
  3107. * @param {!proto.app.v1.ControlPoint} msg The message object to deserialize into.
  3108. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3109. * @return {!proto.app.v1.ControlPoint}
  3110. */
  3111. proto.app.v1.ControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  3112. while (reader.nextField()) {
  3113. if (reader.isEndGroup()) {
  3114. break;
  3115. }
  3116. var field = reader.getFieldNumber();
  3117. switch (field) {
  3118. case 1:
  3119. var value = /** @type {number} */ (reader.readInt64());
  3120. msg.setId(value);
  3121. break;
  3122. case 2:
  3123. var value = new proto.app.v1.ControlPointInfo;
  3124. reader.readMessage(value,proto.app.v1.ControlPointInfo.deserializeBinaryFromReader);
  3125. msg.setInfo(value);
  3126. break;
  3127. case 3:
  3128. var value = /** @type {string} */ (reader.readString());
  3129. msg.addNfcIdList(value);
  3130. break;
  3131. case 4:
  3132. var value = /** @type {number} */ (reader.readInt64());
  3133. msg.setOnMapX(value);
  3134. break;
  3135. case 5:
  3136. var value = /** @type {number} */ (reader.readInt64());
  3137. msg.setOnMapY(value);
  3138. break;
  3139. case 6:
  3140. var value = /** @type {string} */ (reader.readString());
  3141. msg.setSn(value);
  3142. break;
  3143. default:
  3144. reader.skipField();
  3145. break;
  3146. }
  3147. }
  3148. return msg;
  3149. };
  3150. /**
  3151. * Serializes the message to binary data (in protobuf wire format).
  3152. * @return {!Uint8Array}
  3153. */
  3154. proto.app.v1.ControlPoint.prototype.serializeBinary = function() {
  3155. var writer = new jspb.BinaryWriter();
  3156. proto.app.v1.ControlPoint.serializeBinaryToWriter(this, writer);
  3157. return writer.getResultBuffer();
  3158. };
  3159. /**
  3160. * Serializes the given message to binary data (in protobuf wire
  3161. * format), writing to the given BinaryWriter.
  3162. * @param {!proto.app.v1.ControlPoint} message
  3163. * @param {!jspb.BinaryWriter} writer
  3164. * @suppress {unusedLocalVariables} f is only used for nested messages
  3165. */
  3166. proto.app.v1.ControlPoint.serializeBinaryToWriter = function(message, writer) {
  3167. var f = undefined;
  3168. f = message.getId();
  3169. if (f !== 0) {
  3170. writer.writeInt64(
  3171. 1,
  3172. f
  3173. );
  3174. }
  3175. f = message.getInfo();
  3176. if (f != null) {
  3177. writer.writeMessage(
  3178. 2,
  3179. f,
  3180. proto.app.v1.ControlPointInfo.serializeBinaryToWriter
  3181. );
  3182. }
  3183. f = message.getNfcIdListList();
  3184. if (f.length > 0) {
  3185. writer.writeRepeatedString(
  3186. 3,
  3187. f
  3188. );
  3189. }
  3190. f = message.getOnMapX();
  3191. if (f !== 0) {
  3192. writer.writeInt64(
  3193. 4,
  3194. f
  3195. );
  3196. }
  3197. f = message.getOnMapY();
  3198. if (f !== 0) {
  3199. writer.writeInt64(
  3200. 5,
  3201. f
  3202. );
  3203. }
  3204. f = message.getSn();
  3205. if (f.length > 0) {
  3206. writer.writeString(
  3207. 6,
  3208. f
  3209. );
  3210. }
  3211. };
  3212. /**
  3213. * optional int64 id = 1;
  3214. * @return {number}
  3215. */
  3216. proto.app.v1.ControlPoint.prototype.getId = function() {
  3217. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3218. };
  3219. /**
  3220. * @param {number} value
  3221. * @return {!proto.app.v1.ControlPoint} returns this
  3222. */
  3223. proto.app.v1.ControlPoint.prototype.setId = function(value) {
  3224. return jspb.Message.setProto3IntField(this, 1, value);
  3225. };
  3226. /**
  3227. * optional ControlPointInfo info = 2;
  3228. * @return {?proto.app.v1.ControlPointInfo}
  3229. */
  3230. proto.app.v1.ControlPoint.prototype.getInfo = function() {
  3231. return /** @type{?proto.app.v1.ControlPointInfo} */ (
  3232. jspb.Message.getWrapperField(this, proto.app.v1.ControlPointInfo, 2));
  3233. };
  3234. /**
  3235. * @param {?proto.app.v1.ControlPointInfo|undefined} value
  3236. * @return {!proto.app.v1.ControlPoint} returns this
  3237. */
  3238. proto.app.v1.ControlPoint.prototype.setInfo = function(value) {
  3239. return jspb.Message.setWrapperField(this, 2, value);
  3240. };
  3241. /**
  3242. * Clears the message field making it undefined.
  3243. * @return {!proto.app.v1.ControlPoint} returns this
  3244. */
  3245. proto.app.v1.ControlPoint.prototype.clearInfo = function() {
  3246. return this.setInfo(undefined);
  3247. };
  3248. /**
  3249. * Returns whether this field is set.
  3250. * @return {boolean}
  3251. */
  3252. proto.app.v1.ControlPoint.prototype.hasInfo = function() {
  3253. return jspb.Message.getField(this, 2) != null;
  3254. };
  3255. /**
  3256. * repeated string nfc_id_list = 3;
  3257. * @return {!Array<string>}
  3258. */
  3259. proto.app.v1.ControlPoint.prototype.getNfcIdListList = function() {
  3260. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
  3261. };
  3262. /**
  3263. * @param {!Array<string>} value
  3264. * @return {!proto.app.v1.ControlPoint} returns this
  3265. */
  3266. proto.app.v1.ControlPoint.prototype.setNfcIdListList = function(value) {
  3267. return jspb.Message.setField(this, 3, value || []);
  3268. };
  3269. /**
  3270. * @param {string} value
  3271. * @param {number=} opt_index
  3272. * @return {!proto.app.v1.ControlPoint} returns this
  3273. */
  3274. proto.app.v1.ControlPoint.prototype.addNfcIdList = function(value, opt_index) {
  3275. return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
  3276. };
  3277. /**
  3278. * Clears the list making it empty but non-null.
  3279. * @return {!proto.app.v1.ControlPoint} returns this
  3280. */
  3281. proto.app.v1.ControlPoint.prototype.clearNfcIdListList = function() {
  3282. return this.setNfcIdListList([]);
  3283. };
  3284. /**
  3285. * optional int64 on_map_x = 4;
  3286. * @return {number}
  3287. */
  3288. proto.app.v1.ControlPoint.prototype.getOnMapX = function() {
  3289. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3290. };
  3291. /**
  3292. * @param {number} value
  3293. * @return {!proto.app.v1.ControlPoint} returns this
  3294. */
  3295. proto.app.v1.ControlPoint.prototype.setOnMapX = function(value) {
  3296. return jspb.Message.setProto3IntField(this, 4, value);
  3297. };
  3298. /**
  3299. * optional int64 on_map_y = 5;
  3300. * @return {number}
  3301. */
  3302. proto.app.v1.ControlPoint.prototype.getOnMapY = function() {
  3303. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  3304. };
  3305. /**
  3306. * @param {number} value
  3307. * @return {!proto.app.v1.ControlPoint} returns this
  3308. */
  3309. proto.app.v1.ControlPoint.prototype.setOnMapY = function(value) {
  3310. return jspb.Message.setProto3IntField(this, 5, value);
  3311. };
  3312. /**
  3313. * optional string sn = 6;
  3314. * @return {string}
  3315. */
  3316. proto.app.v1.ControlPoint.prototype.getSn = function() {
  3317. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  3318. };
  3319. /**
  3320. * @param {string} value
  3321. * @return {!proto.app.v1.ControlPoint} returns this
  3322. */
  3323. proto.app.v1.ControlPoint.prototype.setSn = function(value) {
  3324. return jspb.Message.setProto3StringField(this, 6, value);
  3325. };
  3326. /**
  3327. * List of repeated fields within this message type.
  3328. * @private {!Array<number>}
  3329. * @const
  3330. */
  3331. proto.app.v1.ControlPointSimple.repeatedFields_ = [2];
  3332. if (jspb.Message.GENERATE_TO_OBJECT) {
  3333. /**
  3334. * Creates an object representation of this proto.
  3335. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3336. * Optional fields that are not set will be set to undefined.
  3337. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3338. * For the list of reserved names please see:
  3339. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3340. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3341. * JSPB instance for transitional soy proto support:
  3342. * http://goto/soy-param-migration
  3343. * @return {!Object}
  3344. */
  3345. proto.app.v1.ControlPointSimple.prototype.toObject = function(opt_includeInstance) {
  3346. return proto.app.v1.ControlPointSimple.toObject(opt_includeInstance, this);
  3347. };
  3348. /**
  3349. * Static version of the {@see toObject} method.
  3350. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3351. * the JSPB instance for transitional soy proto support:
  3352. * http://goto/soy-param-migration
  3353. * @param {!proto.app.v1.ControlPointSimple} msg The msg instance to transform.
  3354. * @return {!Object}
  3355. * @suppress {unusedLocalVariables} f is only used for nested messages
  3356. */
  3357. proto.app.v1.ControlPointSimple.toObject = function(includeInstance, msg) {
  3358. var f, obj = {
  3359. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3360. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
  3361. sn: jspb.Message.getFieldWithDefault(msg, 3, "")
  3362. };
  3363. if (includeInstance) {
  3364. obj.$jspbMessageInstance = msg;
  3365. }
  3366. return obj;
  3367. };
  3368. }
  3369. /**
  3370. * Deserializes binary data (in protobuf wire format).
  3371. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3372. * @return {!proto.app.v1.ControlPointSimple}
  3373. */
  3374. proto.app.v1.ControlPointSimple.deserializeBinary = function(bytes) {
  3375. var reader = new jspb.BinaryReader(bytes);
  3376. var msg = new proto.app.v1.ControlPointSimple;
  3377. return proto.app.v1.ControlPointSimple.deserializeBinaryFromReader(msg, reader);
  3378. };
  3379. /**
  3380. * Deserializes binary data (in protobuf wire format) from the
  3381. * given reader into the given message object.
  3382. * @param {!proto.app.v1.ControlPointSimple} msg The message object to deserialize into.
  3383. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3384. * @return {!proto.app.v1.ControlPointSimple}
  3385. */
  3386. proto.app.v1.ControlPointSimple.deserializeBinaryFromReader = function(msg, reader) {
  3387. while (reader.nextField()) {
  3388. if (reader.isEndGroup()) {
  3389. break;
  3390. }
  3391. var field = reader.getFieldNumber();
  3392. switch (field) {
  3393. case 1:
  3394. var value = /** @type {number} */ (reader.readInt64());
  3395. msg.setId(value);
  3396. break;
  3397. case 2:
  3398. var value = /** @type {string} */ (reader.readString());
  3399. msg.addNfcIdList(value);
  3400. break;
  3401. case 3:
  3402. var value = /** @type {string} */ (reader.readString());
  3403. msg.setSn(value);
  3404. break;
  3405. default:
  3406. reader.skipField();
  3407. break;
  3408. }
  3409. }
  3410. return msg;
  3411. };
  3412. /**
  3413. * Serializes the message to binary data (in protobuf wire format).
  3414. * @return {!Uint8Array}
  3415. */
  3416. proto.app.v1.ControlPointSimple.prototype.serializeBinary = function() {
  3417. var writer = new jspb.BinaryWriter();
  3418. proto.app.v1.ControlPointSimple.serializeBinaryToWriter(this, writer);
  3419. return writer.getResultBuffer();
  3420. };
  3421. /**
  3422. * Serializes the given message to binary data (in protobuf wire
  3423. * format), writing to the given BinaryWriter.
  3424. * @param {!proto.app.v1.ControlPointSimple} message
  3425. * @param {!jspb.BinaryWriter} writer
  3426. * @suppress {unusedLocalVariables} f is only used for nested messages
  3427. */
  3428. proto.app.v1.ControlPointSimple.serializeBinaryToWriter = function(message, writer) {
  3429. var f = undefined;
  3430. f = message.getId();
  3431. if (f !== 0) {
  3432. writer.writeInt64(
  3433. 1,
  3434. f
  3435. );
  3436. }
  3437. f = message.getNfcIdListList();
  3438. if (f.length > 0) {
  3439. writer.writeRepeatedString(
  3440. 2,
  3441. f
  3442. );
  3443. }
  3444. f = message.getSn();
  3445. if (f.length > 0) {
  3446. writer.writeString(
  3447. 3,
  3448. f
  3449. );
  3450. }
  3451. };
  3452. /**
  3453. * optional int64 id = 1;
  3454. * @return {number}
  3455. */
  3456. proto.app.v1.ControlPointSimple.prototype.getId = function() {
  3457. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3458. };
  3459. /**
  3460. * @param {number} value
  3461. * @return {!proto.app.v1.ControlPointSimple} returns this
  3462. */
  3463. proto.app.v1.ControlPointSimple.prototype.setId = function(value) {
  3464. return jspb.Message.setProto3IntField(this, 1, value);
  3465. };
  3466. /**
  3467. * repeated string nfc_id_list = 2;
  3468. * @return {!Array<string>}
  3469. */
  3470. proto.app.v1.ControlPointSimple.prototype.getNfcIdListList = function() {
  3471. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  3472. };
  3473. /**
  3474. * @param {!Array<string>} value
  3475. * @return {!proto.app.v1.ControlPointSimple} returns this
  3476. */
  3477. proto.app.v1.ControlPointSimple.prototype.setNfcIdListList = function(value) {
  3478. return jspb.Message.setField(this, 2, value || []);
  3479. };
  3480. /**
  3481. * @param {string} value
  3482. * @param {number=} opt_index
  3483. * @return {!proto.app.v1.ControlPointSimple} returns this
  3484. */
  3485. proto.app.v1.ControlPointSimple.prototype.addNfcIdList = function(value, opt_index) {
  3486. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  3487. };
  3488. /**
  3489. * Clears the list making it empty but non-null.
  3490. * @return {!proto.app.v1.ControlPointSimple} returns this
  3491. */
  3492. proto.app.v1.ControlPointSimple.prototype.clearNfcIdListList = function() {
  3493. return this.setNfcIdListList([]);
  3494. };
  3495. /**
  3496. * optional string sn = 3;
  3497. * @return {string}
  3498. */
  3499. proto.app.v1.ControlPointSimple.prototype.getSn = function() {
  3500. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  3501. };
  3502. /**
  3503. * @param {string} value
  3504. * @return {!proto.app.v1.ControlPointSimple} returns this
  3505. */
  3506. proto.app.v1.ControlPointSimple.prototype.setSn = function(value) {
  3507. return jspb.Message.setProto3StringField(this, 3, value);
  3508. };
  3509. /**
  3510. * List of repeated fields within this message type.
  3511. * @private {!Array<number>}
  3512. * @const
  3513. */
  3514. proto.app.v1.GameData.repeatedFields_ = [5,11];
  3515. if (jspb.Message.GENERATE_TO_OBJECT) {
  3516. /**
  3517. * Creates an object representation of this proto.
  3518. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3519. * Optional fields that are not set will be set to undefined.
  3520. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3521. * For the list of reserved names please see:
  3522. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3523. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3524. * JSPB instance for transitional soy proto support:
  3525. * http://goto/soy-param-migration
  3526. * @return {!Object}
  3527. */
  3528. proto.app.v1.GameData.prototype.toObject = function(opt_includeInstance) {
  3529. return proto.app.v1.GameData.toObject(opt_includeInstance, this);
  3530. };
  3531. /**
  3532. * Static version of the {@see toObject} method.
  3533. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3534. * the JSPB instance for transitional soy proto support:
  3535. * http://goto/soy-param-migration
  3536. * @param {!proto.app.v1.GameData} msg The msg instance to transform.
  3537. * @return {!Object}
  3538. * @suppress {unusedLocalVariables} f is only used for nested messages
  3539. */
  3540. proto.app.v1.GameData.toObject = function(includeInstance, msg) {
  3541. var f, obj = {
  3542. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3543. mapImage: (f = msg.getMapImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  3544. mapWidthCm: jspb.Message.getFieldWithDefault(msg, 3, 0),
  3545. mapHeightCm: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3546. controlPointSortedListList: jspb.Message.toObjectList(msg.getControlPointSortedListList(),
  3547. proto.app.v1.ControlPoint.toObject, includeInstance),
  3548. maxDuration: (f = msg.getMaxDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  3549. maxForcedEndDuration: (f = msg.getMaxForcedEndDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  3550. mapDirectionOffsetAngle: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
  3551. mapLeftBottomPosition: (f = msg.getMapLeftBottomPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  3552. gameStart: (f = msg.getGameStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  3553. controlPointAllList: jspb.Message.toObjectList(msg.getControlPointAllList(),
  3554. proto.app.v1.ControlPointSimple.toObject, includeInstance),
  3555. legendImage: (f = msg.getLegendImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  3556. };
  3557. if (includeInstance) {
  3558. obj.$jspbMessageInstance = msg;
  3559. }
  3560. return obj;
  3561. };
  3562. }
  3563. /**
  3564. * Deserializes binary data (in protobuf wire format).
  3565. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3566. * @return {!proto.app.v1.GameData}
  3567. */
  3568. proto.app.v1.GameData.deserializeBinary = function(bytes) {
  3569. var reader = new jspb.BinaryReader(bytes);
  3570. var msg = new proto.app.v1.GameData;
  3571. return proto.app.v1.GameData.deserializeBinaryFromReader(msg, reader);
  3572. };
  3573. /**
  3574. * Deserializes binary data (in protobuf wire format) from the
  3575. * given reader into the given message object.
  3576. * @param {!proto.app.v1.GameData} msg The message object to deserialize into.
  3577. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3578. * @return {!proto.app.v1.GameData}
  3579. */
  3580. proto.app.v1.GameData.deserializeBinaryFromReader = function(msg, reader) {
  3581. while (reader.nextField()) {
  3582. if (reader.isEndGroup()) {
  3583. break;
  3584. }
  3585. var field = reader.getFieldNumber();
  3586. switch (field) {
  3587. case 1:
  3588. var value = /** @type {number} */ (reader.readInt64());
  3589. msg.setGameId(value);
  3590. break;
  3591. case 2:
  3592. var value = new proto.app.v1.NetImage;
  3593. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  3594. msg.setMapImage(value);
  3595. break;
  3596. case 3:
  3597. var value = /** @type {number} */ (reader.readInt64());
  3598. msg.setMapWidthCm(value);
  3599. break;
  3600. case 4:
  3601. var value = /** @type {number} */ (reader.readInt64());
  3602. msg.setMapHeightCm(value);
  3603. break;
  3604. case 5:
  3605. var value = new proto.app.v1.ControlPoint;
  3606. reader.readMessage(value,proto.app.v1.ControlPoint.deserializeBinaryFromReader);
  3607. msg.addControlPointSortedList(value);
  3608. break;
  3609. case 6:
  3610. var value = new google_protobuf_duration_pb.Duration;
  3611. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3612. msg.setMaxDuration(value);
  3613. break;
  3614. case 7:
  3615. var value = new google_protobuf_duration_pb.Duration;
  3616. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3617. msg.setMaxForcedEndDuration(value);
  3618. break;
  3619. case 8:
  3620. var value = /** @type {number} */ (reader.readDouble());
  3621. msg.setMapDirectionOffsetAngle(value);
  3622. break;
  3623. case 9:
  3624. var value = new proto.app.v1.Position;
  3625. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  3626. msg.setMapLeftBottomPosition(value);
  3627. break;
  3628. case 10:
  3629. var value = new google_protobuf_timestamp_pb.Timestamp;
  3630. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  3631. msg.setGameStart(value);
  3632. break;
  3633. case 11:
  3634. var value = new proto.app.v1.ControlPointSimple;
  3635. reader.readMessage(value,proto.app.v1.ControlPointSimple.deserializeBinaryFromReader);
  3636. msg.addControlPointAll(value);
  3637. break;
  3638. case 12:
  3639. var value = new proto.app.v1.NetImage;
  3640. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  3641. msg.setLegendImage(value);
  3642. break;
  3643. default:
  3644. reader.skipField();
  3645. break;
  3646. }
  3647. }
  3648. return msg;
  3649. };
  3650. /**
  3651. * Serializes the message to binary data (in protobuf wire format).
  3652. * @return {!Uint8Array}
  3653. */
  3654. proto.app.v1.GameData.prototype.serializeBinary = function() {
  3655. var writer = new jspb.BinaryWriter();
  3656. proto.app.v1.GameData.serializeBinaryToWriter(this, writer);
  3657. return writer.getResultBuffer();
  3658. };
  3659. /**
  3660. * Serializes the given message to binary data (in protobuf wire
  3661. * format), writing to the given BinaryWriter.
  3662. * @param {!proto.app.v1.GameData} message
  3663. * @param {!jspb.BinaryWriter} writer
  3664. * @suppress {unusedLocalVariables} f is only used for nested messages
  3665. */
  3666. proto.app.v1.GameData.serializeBinaryToWriter = function(message, writer) {
  3667. var f = undefined;
  3668. f = message.getGameId();
  3669. if (f !== 0) {
  3670. writer.writeInt64(
  3671. 1,
  3672. f
  3673. );
  3674. }
  3675. f = message.getMapImage();
  3676. if (f != null) {
  3677. writer.writeMessage(
  3678. 2,
  3679. f,
  3680. proto.app.v1.NetImage.serializeBinaryToWriter
  3681. );
  3682. }
  3683. f = message.getMapWidthCm();
  3684. if (f !== 0) {
  3685. writer.writeInt64(
  3686. 3,
  3687. f
  3688. );
  3689. }
  3690. f = message.getMapHeightCm();
  3691. if (f !== 0) {
  3692. writer.writeInt64(
  3693. 4,
  3694. f
  3695. );
  3696. }
  3697. f = message.getControlPointSortedListList();
  3698. if (f.length > 0) {
  3699. writer.writeRepeatedMessage(
  3700. 5,
  3701. f,
  3702. proto.app.v1.ControlPoint.serializeBinaryToWriter
  3703. );
  3704. }
  3705. f = message.getMaxDuration();
  3706. if (f != null) {
  3707. writer.writeMessage(
  3708. 6,
  3709. f,
  3710. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3711. );
  3712. }
  3713. f = message.getMaxForcedEndDuration();
  3714. if (f != null) {
  3715. writer.writeMessage(
  3716. 7,
  3717. f,
  3718. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3719. );
  3720. }
  3721. f = message.getMapDirectionOffsetAngle();
  3722. if (f !== 0.0) {
  3723. writer.writeDouble(
  3724. 8,
  3725. f
  3726. );
  3727. }
  3728. f = message.getMapLeftBottomPosition();
  3729. if (f != null) {
  3730. writer.writeMessage(
  3731. 9,
  3732. f,
  3733. proto.app.v1.Position.serializeBinaryToWriter
  3734. );
  3735. }
  3736. f = message.getGameStart();
  3737. if (f != null) {
  3738. writer.writeMessage(
  3739. 10,
  3740. f,
  3741. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  3742. );
  3743. }
  3744. f = message.getControlPointAllList();
  3745. if (f.length > 0) {
  3746. writer.writeRepeatedMessage(
  3747. 11,
  3748. f,
  3749. proto.app.v1.ControlPointSimple.serializeBinaryToWriter
  3750. );
  3751. }
  3752. f = message.getLegendImage();
  3753. if (f != null) {
  3754. writer.writeMessage(
  3755. 12,
  3756. f,
  3757. proto.app.v1.NetImage.serializeBinaryToWriter
  3758. );
  3759. }
  3760. };
  3761. /**
  3762. * optional int64 game_id = 1;
  3763. * @return {number}
  3764. */
  3765. proto.app.v1.GameData.prototype.getGameId = function() {
  3766. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3767. };
  3768. /**
  3769. * @param {number} value
  3770. * @return {!proto.app.v1.GameData} returns this
  3771. */
  3772. proto.app.v1.GameData.prototype.setGameId = function(value) {
  3773. return jspb.Message.setProto3IntField(this, 1, value);
  3774. };
  3775. /**
  3776. * optional NetImage map_image = 2;
  3777. * @return {?proto.app.v1.NetImage}
  3778. */
  3779. proto.app.v1.GameData.prototype.getMapImage = function() {
  3780. return /** @type{?proto.app.v1.NetImage} */ (
  3781. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 2));
  3782. };
  3783. /**
  3784. * @param {?proto.app.v1.NetImage|undefined} value
  3785. * @return {!proto.app.v1.GameData} returns this
  3786. */
  3787. proto.app.v1.GameData.prototype.setMapImage = function(value) {
  3788. return jspb.Message.setWrapperField(this, 2, value);
  3789. };
  3790. /**
  3791. * Clears the message field making it undefined.
  3792. * @return {!proto.app.v1.GameData} returns this
  3793. */
  3794. proto.app.v1.GameData.prototype.clearMapImage = function() {
  3795. return this.setMapImage(undefined);
  3796. };
  3797. /**
  3798. * Returns whether this field is set.
  3799. * @return {boolean}
  3800. */
  3801. proto.app.v1.GameData.prototype.hasMapImage = function() {
  3802. return jspb.Message.getField(this, 2) != null;
  3803. };
  3804. /**
  3805. * optional int64 map_width_cm = 3;
  3806. * @return {number}
  3807. */
  3808. proto.app.v1.GameData.prototype.getMapWidthCm = function() {
  3809. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  3810. };
  3811. /**
  3812. * @param {number} value
  3813. * @return {!proto.app.v1.GameData} returns this
  3814. */
  3815. proto.app.v1.GameData.prototype.setMapWidthCm = function(value) {
  3816. return jspb.Message.setProto3IntField(this, 3, value);
  3817. };
  3818. /**
  3819. * optional int64 map_height_cm = 4;
  3820. * @return {number}
  3821. */
  3822. proto.app.v1.GameData.prototype.getMapHeightCm = function() {
  3823. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3824. };
  3825. /**
  3826. * @param {number} value
  3827. * @return {!proto.app.v1.GameData} returns this
  3828. */
  3829. proto.app.v1.GameData.prototype.setMapHeightCm = function(value) {
  3830. return jspb.Message.setProto3IntField(this, 4, value);
  3831. };
  3832. /**
  3833. * repeated ControlPoint control_point_sorted_list = 5;
  3834. * @return {!Array<!proto.app.v1.ControlPoint>}
  3835. */
  3836. proto.app.v1.GameData.prototype.getControlPointSortedListList = function() {
  3837. return /** @type{!Array<!proto.app.v1.ControlPoint>} */ (
  3838. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlPoint, 5));
  3839. };
  3840. /**
  3841. * @param {!Array<!proto.app.v1.ControlPoint>} value
  3842. * @return {!proto.app.v1.GameData} returns this
  3843. */
  3844. proto.app.v1.GameData.prototype.setControlPointSortedListList = function(value) {
  3845. return jspb.Message.setRepeatedWrapperField(this, 5, value);
  3846. };
  3847. /**
  3848. * @param {!proto.app.v1.ControlPoint=} opt_value
  3849. * @param {number=} opt_index
  3850. * @return {!proto.app.v1.ControlPoint}
  3851. */
  3852. proto.app.v1.GameData.prototype.addControlPointSortedList = function(opt_value, opt_index) {
  3853. return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.app.v1.ControlPoint, opt_index);
  3854. };
  3855. /**
  3856. * Clears the list making it empty but non-null.
  3857. * @return {!proto.app.v1.GameData} returns this
  3858. */
  3859. proto.app.v1.GameData.prototype.clearControlPointSortedListList = function() {
  3860. return this.setControlPointSortedListList([]);
  3861. };
  3862. /**
  3863. * optional google.protobuf.Duration max_duration = 6;
  3864. * @return {?proto.google.protobuf.Duration}
  3865. */
  3866. proto.app.v1.GameData.prototype.getMaxDuration = function() {
  3867. return /** @type{?proto.google.protobuf.Duration} */ (
  3868. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 6));
  3869. };
  3870. /**
  3871. * @param {?proto.google.protobuf.Duration|undefined} value
  3872. * @return {!proto.app.v1.GameData} returns this
  3873. */
  3874. proto.app.v1.GameData.prototype.setMaxDuration = function(value) {
  3875. return jspb.Message.setWrapperField(this, 6, value);
  3876. };
  3877. /**
  3878. * Clears the message field making it undefined.
  3879. * @return {!proto.app.v1.GameData} returns this
  3880. */
  3881. proto.app.v1.GameData.prototype.clearMaxDuration = function() {
  3882. return this.setMaxDuration(undefined);
  3883. };
  3884. /**
  3885. * Returns whether this field is set.
  3886. * @return {boolean}
  3887. */
  3888. proto.app.v1.GameData.prototype.hasMaxDuration = function() {
  3889. return jspb.Message.getField(this, 6) != null;
  3890. };
  3891. /**
  3892. * optional google.protobuf.Duration max_forced_end_duration = 7;
  3893. * @return {?proto.google.protobuf.Duration}
  3894. */
  3895. proto.app.v1.GameData.prototype.getMaxForcedEndDuration = function() {
  3896. return /** @type{?proto.google.protobuf.Duration} */ (
  3897. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 7));
  3898. };
  3899. /**
  3900. * @param {?proto.google.protobuf.Duration|undefined} value
  3901. * @return {!proto.app.v1.GameData} returns this
  3902. */
  3903. proto.app.v1.GameData.prototype.setMaxForcedEndDuration = function(value) {
  3904. return jspb.Message.setWrapperField(this, 7, value);
  3905. };
  3906. /**
  3907. * Clears the message field making it undefined.
  3908. * @return {!proto.app.v1.GameData} returns this
  3909. */
  3910. proto.app.v1.GameData.prototype.clearMaxForcedEndDuration = function() {
  3911. return this.setMaxForcedEndDuration(undefined);
  3912. };
  3913. /**
  3914. * Returns whether this field is set.
  3915. * @return {boolean}
  3916. */
  3917. proto.app.v1.GameData.prototype.hasMaxForcedEndDuration = function() {
  3918. return jspb.Message.getField(this, 7) != null;
  3919. };
  3920. /**
  3921. * optional double map_direction_offset_angle = 8;
  3922. * @return {number}
  3923. */
  3924. proto.app.v1.GameData.prototype.getMapDirectionOffsetAngle = function() {
  3925. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
  3926. };
  3927. /**
  3928. * @param {number} value
  3929. * @return {!proto.app.v1.GameData} returns this
  3930. */
  3931. proto.app.v1.GameData.prototype.setMapDirectionOffsetAngle = function(value) {
  3932. return jspb.Message.setProto3FloatField(this, 8, value);
  3933. };
  3934. /**
  3935. * optional Position map_left_bottom_position = 9;
  3936. * @return {?proto.app.v1.Position}
  3937. */
  3938. proto.app.v1.GameData.prototype.getMapLeftBottomPosition = function() {
  3939. return /** @type{?proto.app.v1.Position} */ (
  3940. jspb.Message.getWrapperField(this, proto.app.v1.Position, 9));
  3941. };
  3942. /**
  3943. * @param {?proto.app.v1.Position|undefined} value
  3944. * @return {!proto.app.v1.GameData} returns this
  3945. */
  3946. proto.app.v1.GameData.prototype.setMapLeftBottomPosition = function(value) {
  3947. return jspb.Message.setWrapperField(this, 9, value);
  3948. };
  3949. /**
  3950. * Clears the message field making it undefined.
  3951. * @return {!proto.app.v1.GameData} returns this
  3952. */
  3953. proto.app.v1.GameData.prototype.clearMapLeftBottomPosition = function() {
  3954. return this.setMapLeftBottomPosition(undefined);
  3955. };
  3956. /**
  3957. * Returns whether this field is set.
  3958. * @return {boolean}
  3959. */
  3960. proto.app.v1.GameData.prototype.hasMapLeftBottomPosition = function() {
  3961. return jspb.Message.getField(this, 9) != null;
  3962. };
  3963. /**
  3964. * optional google.protobuf.Timestamp game_start = 10;
  3965. * @return {?proto.google.protobuf.Timestamp}
  3966. */
  3967. proto.app.v1.GameData.prototype.getGameStart = function() {
  3968. return /** @type{?proto.google.protobuf.Timestamp} */ (
  3969. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
  3970. };
  3971. /**
  3972. * @param {?proto.google.protobuf.Timestamp|undefined} value
  3973. * @return {!proto.app.v1.GameData} returns this
  3974. */
  3975. proto.app.v1.GameData.prototype.setGameStart = function(value) {
  3976. return jspb.Message.setWrapperField(this, 10, value);
  3977. };
  3978. /**
  3979. * Clears the message field making it undefined.
  3980. * @return {!proto.app.v1.GameData} returns this
  3981. */
  3982. proto.app.v1.GameData.prototype.clearGameStart = function() {
  3983. return this.setGameStart(undefined);
  3984. };
  3985. /**
  3986. * Returns whether this field is set.
  3987. * @return {boolean}
  3988. */
  3989. proto.app.v1.GameData.prototype.hasGameStart = function() {
  3990. return jspb.Message.getField(this, 10) != null;
  3991. };
  3992. /**
  3993. * repeated ControlPointSimple control_point_all = 11;
  3994. * @return {!Array<!proto.app.v1.ControlPointSimple>}
  3995. */
  3996. proto.app.v1.GameData.prototype.getControlPointAllList = function() {
  3997. return /** @type{!Array<!proto.app.v1.ControlPointSimple>} */ (
  3998. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlPointSimple, 11));
  3999. };
  4000. /**
  4001. * @param {!Array<!proto.app.v1.ControlPointSimple>} value
  4002. * @return {!proto.app.v1.GameData} returns this
  4003. */
  4004. proto.app.v1.GameData.prototype.setControlPointAllList = function(value) {
  4005. return jspb.Message.setRepeatedWrapperField(this, 11, value);
  4006. };
  4007. /**
  4008. * @param {!proto.app.v1.ControlPointSimple=} opt_value
  4009. * @param {number=} opt_index
  4010. * @return {!proto.app.v1.ControlPointSimple}
  4011. */
  4012. proto.app.v1.GameData.prototype.addControlPointAll = function(opt_value, opt_index) {
  4013. return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.app.v1.ControlPointSimple, opt_index);
  4014. };
  4015. /**
  4016. * Clears the list making it empty but non-null.
  4017. * @return {!proto.app.v1.GameData} returns this
  4018. */
  4019. proto.app.v1.GameData.prototype.clearControlPointAllList = function() {
  4020. return this.setControlPointAllList([]);
  4021. };
  4022. /**
  4023. * optional NetImage legend_image = 12;
  4024. * @return {?proto.app.v1.NetImage}
  4025. */
  4026. proto.app.v1.GameData.prototype.getLegendImage = function() {
  4027. return /** @type{?proto.app.v1.NetImage} */ (
  4028. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 12));
  4029. };
  4030. /**
  4031. * @param {?proto.app.v1.NetImage|undefined} value
  4032. * @return {!proto.app.v1.GameData} returns this
  4033. */
  4034. proto.app.v1.GameData.prototype.setLegendImage = function(value) {
  4035. return jspb.Message.setWrapperField(this, 12, value);
  4036. };
  4037. /**
  4038. * Clears the message field making it undefined.
  4039. * @return {!proto.app.v1.GameData} returns this
  4040. */
  4041. proto.app.v1.GameData.prototype.clearLegendImage = function() {
  4042. return this.setLegendImage(undefined);
  4043. };
  4044. /**
  4045. * Returns whether this field is set.
  4046. * @return {boolean}
  4047. */
  4048. proto.app.v1.GameData.prototype.hasLegendImage = function() {
  4049. return jspb.Message.getField(this, 12) != null;
  4050. };
  4051. if (jspb.Message.GENERATE_TO_OBJECT) {
  4052. /**
  4053. * Creates an object representation of this proto.
  4054. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4055. * Optional fields that are not set will be set to undefined.
  4056. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4057. * For the list of reserved names please see:
  4058. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4059. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4060. * JSPB instance for transitional soy proto support:
  4061. * http://goto/soy-param-migration
  4062. * @return {!Object}
  4063. */
  4064. proto.app.v1.GameSaveControlPoint.prototype.toObject = function(opt_includeInstance) {
  4065. return proto.app.v1.GameSaveControlPoint.toObject(opt_includeInstance, this);
  4066. };
  4067. /**
  4068. * Static version of the {@see toObject} method.
  4069. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4070. * the JSPB instance for transitional soy proto support:
  4071. * http://goto/soy-param-migration
  4072. * @param {!proto.app.v1.GameSaveControlPoint} msg The msg instance to transform.
  4073. * @return {!Object}
  4074. * @suppress {unusedLocalVariables} f is only used for nested messages
  4075. */
  4076. proto.app.v1.GameSaveControlPoint.toObject = function(includeInstance, msg) {
  4077. var f, obj = {
  4078. controlPointId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4079. isCheckSuccess: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
  4080. checkAfterStart: (f = msg.getCheckAfterStart()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
  4081. };
  4082. if (includeInstance) {
  4083. obj.$jspbMessageInstance = msg;
  4084. }
  4085. return obj;
  4086. };
  4087. }
  4088. /**
  4089. * Deserializes binary data (in protobuf wire format).
  4090. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4091. * @return {!proto.app.v1.GameSaveControlPoint}
  4092. */
  4093. proto.app.v1.GameSaveControlPoint.deserializeBinary = function(bytes) {
  4094. var reader = new jspb.BinaryReader(bytes);
  4095. var msg = new proto.app.v1.GameSaveControlPoint;
  4096. return proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader(msg, reader);
  4097. };
  4098. /**
  4099. * Deserializes binary data (in protobuf wire format) from the
  4100. * given reader into the given message object.
  4101. * @param {!proto.app.v1.GameSaveControlPoint} msg The message object to deserialize into.
  4102. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4103. * @return {!proto.app.v1.GameSaveControlPoint}
  4104. */
  4105. proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  4106. while (reader.nextField()) {
  4107. if (reader.isEndGroup()) {
  4108. break;
  4109. }
  4110. var field = reader.getFieldNumber();
  4111. switch (field) {
  4112. case 1:
  4113. var value = /** @type {number} */ (reader.readInt64());
  4114. msg.setControlPointId(value);
  4115. break;
  4116. case 2:
  4117. var value = /** @type {boolean} */ (reader.readBool());
  4118. msg.setIsCheckSuccess(value);
  4119. break;
  4120. case 3:
  4121. var value = new google_protobuf_duration_pb.Duration;
  4122. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  4123. msg.setCheckAfterStart(value);
  4124. break;
  4125. default:
  4126. reader.skipField();
  4127. break;
  4128. }
  4129. }
  4130. return msg;
  4131. };
  4132. /**
  4133. * Serializes the message to binary data (in protobuf wire format).
  4134. * @return {!Uint8Array}
  4135. */
  4136. proto.app.v1.GameSaveControlPoint.prototype.serializeBinary = function() {
  4137. var writer = new jspb.BinaryWriter();
  4138. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter(this, writer);
  4139. return writer.getResultBuffer();
  4140. };
  4141. /**
  4142. * Serializes the given message to binary data (in protobuf wire
  4143. * format), writing to the given BinaryWriter.
  4144. * @param {!proto.app.v1.GameSaveControlPoint} message
  4145. * @param {!jspb.BinaryWriter} writer
  4146. * @suppress {unusedLocalVariables} f is only used for nested messages
  4147. */
  4148. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter = function(message, writer) {
  4149. var f = undefined;
  4150. f = message.getControlPointId();
  4151. if (f !== 0) {
  4152. writer.writeInt64(
  4153. 1,
  4154. f
  4155. );
  4156. }
  4157. f = message.getIsCheckSuccess();
  4158. if (f) {
  4159. writer.writeBool(
  4160. 2,
  4161. f
  4162. );
  4163. }
  4164. f = message.getCheckAfterStart();
  4165. if (f != null) {
  4166. writer.writeMessage(
  4167. 3,
  4168. f,
  4169. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  4170. );
  4171. }
  4172. };
  4173. /**
  4174. * optional int64 control_point_id = 1;
  4175. * @return {number}
  4176. */
  4177. proto.app.v1.GameSaveControlPoint.prototype.getControlPointId = function() {
  4178. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4179. };
  4180. /**
  4181. * @param {number} value
  4182. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4183. */
  4184. proto.app.v1.GameSaveControlPoint.prototype.setControlPointId = function(value) {
  4185. return jspb.Message.setProto3IntField(this, 1, value);
  4186. };
  4187. /**
  4188. * optional bool is_check_success = 2;
  4189. * @return {boolean}
  4190. */
  4191. proto.app.v1.GameSaveControlPoint.prototype.getIsCheckSuccess = function() {
  4192. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
  4193. };
  4194. /**
  4195. * @param {boolean} value
  4196. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4197. */
  4198. proto.app.v1.GameSaveControlPoint.prototype.setIsCheckSuccess = function(value) {
  4199. return jspb.Message.setProto3BooleanField(this, 2, value);
  4200. };
  4201. /**
  4202. * optional google.protobuf.Duration check_after_start = 3;
  4203. * @return {?proto.google.protobuf.Duration}
  4204. */
  4205. proto.app.v1.GameSaveControlPoint.prototype.getCheckAfterStart = function() {
  4206. return /** @type{?proto.google.protobuf.Duration} */ (
  4207. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
  4208. };
  4209. /**
  4210. * @param {?proto.google.protobuf.Duration|undefined} value
  4211. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4212. */
  4213. proto.app.v1.GameSaveControlPoint.prototype.setCheckAfterStart = function(value) {
  4214. return jspb.Message.setWrapperField(this, 3, value);
  4215. };
  4216. /**
  4217. * Clears the message field making it undefined.
  4218. * @return {!proto.app.v1.GameSaveControlPoint} returns this
  4219. */
  4220. proto.app.v1.GameSaveControlPoint.prototype.clearCheckAfterStart = function() {
  4221. return this.setCheckAfterStart(undefined);
  4222. };
  4223. /**
  4224. * Returns whether this field is set.
  4225. * @return {boolean}
  4226. */
  4227. proto.app.v1.GameSaveControlPoint.prototype.hasCheckAfterStart = function() {
  4228. return jspb.Message.getField(this, 3) != null;
  4229. };
  4230. /**
  4231. * List of repeated fields within this message type.
  4232. * @private {!Array<number>}
  4233. * @const
  4234. */
  4235. proto.app.v1.GameSave.repeatedFields_ = [3];
  4236. if (jspb.Message.GENERATE_TO_OBJECT) {
  4237. /**
  4238. * Creates an object representation of this proto.
  4239. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4240. * Optional fields that are not set will be set to undefined.
  4241. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4242. * For the list of reserved names please see:
  4243. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4244. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4245. * JSPB instance for transitional soy proto support:
  4246. * http://goto/soy-param-migration
  4247. * @return {!Object}
  4248. */
  4249. proto.app.v1.GameSave.prototype.toObject = function(opt_includeInstance) {
  4250. return proto.app.v1.GameSave.toObject(opt_includeInstance, this);
  4251. };
  4252. /**
  4253. * Static version of the {@see toObject} method.
  4254. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4255. * the JSPB instance for transitional soy proto support:
  4256. * http://goto/soy-param-migration
  4257. * @param {!proto.app.v1.GameSave} msg The msg instance to transform.
  4258. * @return {!Object}
  4259. * @suppress {unusedLocalVariables} f is only used for nested messages
  4260. */
  4261. proto.app.v1.GameSave.toObject = function(includeInstance, msg) {
  4262. var f, obj = {
  4263. gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4264. startAt: (f = msg.getStartAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  4265. checkedSortedListList: jspb.Message.toObjectList(msg.getCheckedSortedListList(),
  4266. proto.app.v1.GameSaveControlPoint.toObject, includeInstance),
  4267. duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  4268. stopAt: (f = msg.getStopAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
  4269. };
  4270. if (includeInstance) {
  4271. obj.$jspbMessageInstance = msg;
  4272. }
  4273. return obj;
  4274. };
  4275. }
  4276. /**
  4277. * Deserializes binary data (in protobuf wire format).
  4278. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4279. * @return {!proto.app.v1.GameSave}
  4280. */
  4281. proto.app.v1.GameSave.deserializeBinary = function(bytes) {
  4282. var reader = new jspb.BinaryReader(bytes);
  4283. var msg = new proto.app.v1.GameSave;
  4284. return proto.app.v1.GameSave.deserializeBinaryFromReader(msg, reader);
  4285. };
  4286. /**
  4287. * Deserializes binary data (in protobuf wire format) from the
  4288. * given reader into the given message object.
  4289. * @param {!proto.app.v1.GameSave} msg The message object to deserialize into.
  4290. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4291. * @return {!proto.app.v1.GameSave}
  4292. */
  4293. proto.app.v1.GameSave.deserializeBinaryFromReader = function(msg, reader) {
  4294. while (reader.nextField()) {
  4295. if (reader.isEndGroup()) {
  4296. break;
  4297. }
  4298. var field = reader.getFieldNumber();
  4299. switch (field) {
  4300. case 1:
  4301. var value = /** @type {number} */ (reader.readInt64());
  4302. msg.setGameId(value);
  4303. break;
  4304. case 2:
  4305. var value = new google_protobuf_timestamp_pb.Timestamp;
  4306. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  4307. msg.setStartAt(value);
  4308. break;
  4309. case 3:
  4310. var value = new proto.app.v1.GameSaveControlPoint;
  4311. reader.readMessage(value,proto.app.v1.GameSaveControlPoint.deserializeBinaryFromReader);
  4312. msg.addCheckedSortedList(value);
  4313. break;
  4314. case 4:
  4315. var value = new google_protobuf_duration_pb.Duration;
  4316. reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  4317. msg.setDuration(value);
  4318. break;
  4319. case 5:
  4320. var value = new google_protobuf_timestamp_pb.Timestamp;
  4321. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  4322. msg.setStopAt(value);
  4323. break;
  4324. default:
  4325. reader.skipField();
  4326. break;
  4327. }
  4328. }
  4329. return msg;
  4330. };
  4331. /**
  4332. * Serializes the message to binary data (in protobuf wire format).
  4333. * @return {!Uint8Array}
  4334. */
  4335. proto.app.v1.GameSave.prototype.serializeBinary = function() {
  4336. var writer = new jspb.BinaryWriter();
  4337. proto.app.v1.GameSave.serializeBinaryToWriter(this, writer);
  4338. return writer.getResultBuffer();
  4339. };
  4340. /**
  4341. * Serializes the given message to binary data (in protobuf wire
  4342. * format), writing to the given BinaryWriter.
  4343. * @param {!proto.app.v1.GameSave} message
  4344. * @param {!jspb.BinaryWriter} writer
  4345. * @suppress {unusedLocalVariables} f is only used for nested messages
  4346. */
  4347. proto.app.v1.GameSave.serializeBinaryToWriter = function(message, writer) {
  4348. var f = undefined;
  4349. f = message.getGameId();
  4350. if (f !== 0) {
  4351. writer.writeInt64(
  4352. 1,
  4353. f
  4354. );
  4355. }
  4356. f = message.getStartAt();
  4357. if (f != null) {
  4358. writer.writeMessage(
  4359. 2,
  4360. f,
  4361. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  4362. );
  4363. }
  4364. f = message.getCheckedSortedListList();
  4365. if (f.length > 0) {
  4366. writer.writeRepeatedMessage(
  4367. 3,
  4368. f,
  4369. proto.app.v1.GameSaveControlPoint.serializeBinaryToWriter
  4370. );
  4371. }
  4372. f = message.getDuration();
  4373. if (f != null) {
  4374. writer.writeMessage(
  4375. 4,
  4376. f,
  4377. google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  4378. );
  4379. }
  4380. f = message.getStopAt();
  4381. if (f != null) {
  4382. writer.writeMessage(
  4383. 5,
  4384. f,
  4385. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  4386. );
  4387. }
  4388. };
  4389. /**
  4390. * optional int64 game_id = 1;
  4391. * @return {number}
  4392. */
  4393. proto.app.v1.GameSave.prototype.getGameId = function() {
  4394. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4395. };
  4396. /**
  4397. * @param {number} value
  4398. * @return {!proto.app.v1.GameSave} returns this
  4399. */
  4400. proto.app.v1.GameSave.prototype.setGameId = function(value) {
  4401. return jspb.Message.setProto3IntField(this, 1, value);
  4402. };
  4403. /**
  4404. * optional google.protobuf.Timestamp start_at = 2;
  4405. * @return {?proto.google.protobuf.Timestamp}
  4406. */
  4407. proto.app.v1.GameSave.prototype.getStartAt = function() {
  4408. return /** @type{?proto.google.protobuf.Timestamp} */ (
  4409. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
  4410. };
  4411. /**
  4412. * @param {?proto.google.protobuf.Timestamp|undefined} value
  4413. * @return {!proto.app.v1.GameSave} returns this
  4414. */
  4415. proto.app.v1.GameSave.prototype.setStartAt = function(value) {
  4416. return jspb.Message.setWrapperField(this, 2, value);
  4417. };
  4418. /**
  4419. * Clears the message field making it undefined.
  4420. * @return {!proto.app.v1.GameSave} returns this
  4421. */
  4422. proto.app.v1.GameSave.prototype.clearStartAt = function() {
  4423. return this.setStartAt(undefined);
  4424. };
  4425. /**
  4426. * Returns whether this field is set.
  4427. * @return {boolean}
  4428. */
  4429. proto.app.v1.GameSave.prototype.hasStartAt = function() {
  4430. return jspb.Message.getField(this, 2) != null;
  4431. };
  4432. /**
  4433. * repeated GameSaveControlPoint checked_sorted_list = 3;
  4434. * @return {!Array<!proto.app.v1.GameSaveControlPoint>}
  4435. */
  4436. proto.app.v1.GameSave.prototype.getCheckedSortedListList = function() {
  4437. return /** @type{!Array<!proto.app.v1.GameSaveControlPoint>} */ (
  4438. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameSaveControlPoint, 3));
  4439. };
  4440. /**
  4441. * @param {!Array<!proto.app.v1.GameSaveControlPoint>} value
  4442. * @return {!proto.app.v1.GameSave} returns this
  4443. */
  4444. proto.app.v1.GameSave.prototype.setCheckedSortedListList = function(value) {
  4445. return jspb.Message.setRepeatedWrapperField(this, 3, value);
  4446. };
  4447. /**
  4448. * @param {!proto.app.v1.GameSaveControlPoint=} opt_value
  4449. * @param {number=} opt_index
  4450. * @return {!proto.app.v1.GameSaveControlPoint}
  4451. */
  4452. proto.app.v1.GameSave.prototype.addCheckedSortedList = function(opt_value, opt_index) {
  4453. return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.app.v1.GameSaveControlPoint, opt_index);
  4454. };
  4455. /**
  4456. * Clears the list making it empty but non-null.
  4457. * @return {!proto.app.v1.GameSave} returns this
  4458. */
  4459. proto.app.v1.GameSave.prototype.clearCheckedSortedListList = function() {
  4460. return this.setCheckedSortedListList([]);
  4461. };
  4462. /**
  4463. * optional google.protobuf.Duration duration = 4;
  4464. * @return {?proto.google.protobuf.Duration}
  4465. */
  4466. proto.app.v1.GameSave.prototype.getDuration = function() {
  4467. return /** @type{?proto.google.protobuf.Duration} */ (
  4468. jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4));
  4469. };
  4470. /**
  4471. * @param {?proto.google.protobuf.Duration|undefined} value
  4472. * @return {!proto.app.v1.GameSave} returns this
  4473. */
  4474. proto.app.v1.GameSave.prototype.setDuration = function(value) {
  4475. return jspb.Message.setWrapperField(this, 4, value);
  4476. };
  4477. /**
  4478. * Clears the message field making it undefined.
  4479. * @return {!proto.app.v1.GameSave} returns this
  4480. */
  4481. proto.app.v1.GameSave.prototype.clearDuration = function() {
  4482. return this.setDuration(undefined);
  4483. };
  4484. /**
  4485. * Returns whether this field is set.
  4486. * @return {boolean}
  4487. */
  4488. proto.app.v1.GameSave.prototype.hasDuration = function() {
  4489. return jspb.Message.getField(this, 4) != null;
  4490. };
  4491. /**
  4492. * optional google.protobuf.Timestamp stop_at = 5;
  4493. * @return {?proto.google.protobuf.Timestamp}
  4494. */
  4495. proto.app.v1.GameSave.prototype.getStopAt = function() {
  4496. return /** @type{?proto.google.protobuf.Timestamp} */ (
  4497. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
  4498. };
  4499. /**
  4500. * @param {?proto.google.protobuf.Timestamp|undefined} value
  4501. * @return {!proto.app.v1.GameSave} returns this
  4502. */
  4503. proto.app.v1.GameSave.prototype.setStopAt = function(value) {
  4504. return jspb.Message.setWrapperField(this, 5, value);
  4505. };
  4506. /**
  4507. * Clears the message field making it undefined.
  4508. * @return {!proto.app.v1.GameSave} returns this
  4509. */
  4510. proto.app.v1.GameSave.prototype.clearStopAt = function() {
  4511. return this.setStopAt(undefined);
  4512. };
  4513. /**
  4514. * Returns whether this field is set.
  4515. * @return {boolean}
  4516. */
  4517. proto.app.v1.GameSave.prototype.hasStopAt = function() {
  4518. return jspb.Message.getField(this, 5) != null;
  4519. };
  4520. if (jspb.Message.GENERATE_TO_OBJECT) {
  4521. /**
  4522. * Creates an object representation of this proto.
  4523. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4524. * Optional fields that are not set will be set to undefined.
  4525. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4526. * For the list of reserved names please see:
  4527. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4528. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4529. * JSPB instance for transitional soy proto support:
  4530. * http://goto/soy-param-migration
  4531. * @return {!Object}
  4532. */
  4533. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.toObject = function(opt_includeInstance) {
  4534. return proto.app.v1.AuthSendCodeToPhoneRequest.toObject(opt_includeInstance, this);
  4535. };
  4536. /**
  4537. * Static version of the {@see toObject} method.
  4538. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4539. * the JSPB instance for transitional soy proto support:
  4540. * http://goto/soy-param-migration
  4541. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} msg The msg instance to transform.
  4542. * @return {!Object}
  4543. * @suppress {unusedLocalVariables} f is only used for nested messages
  4544. */
  4545. proto.app.v1.AuthSendCodeToPhoneRequest.toObject = function(includeInstance, msg) {
  4546. var f, obj = {
  4547. phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
  4548. usertype: jspb.Message.getFieldWithDefault(msg, 2, 0),
  4549. smstype: jspb.Message.getFieldWithDefault(msg, 3, 0)
  4550. };
  4551. if (includeInstance) {
  4552. obj.$jspbMessageInstance = msg;
  4553. }
  4554. return obj;
  4555. };
  4556. }
  4557. /**
  4558. * Deserializes binary data (in protobuf wire format).
  4559. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4560. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest}
  4561. */
  4562. proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinary = function(bytes) {
  4563. var reader = new jspb.BinaryReader(bytes);
  4564. var msg = new proto.app.v1.AuthSendCodeToPhoneRequest;
  4565. return proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinaryFromReader(msg, reader);
  4566. };
  4567. /**
  4568. * Deserializes binary data (in protobuf wire format) from the
  4569. * given reader into the given message object.
  4570. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} msg The message object to deserialize into.
  4571. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4572. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest}
  4573. */
  4574. proto.app.v1.AuthSendCodeToPhoneRequest.deserializeBinaryFromReader = function(msg, reader) {
  4575. while (reader.nextField()) {
  4576. if (reader.isEndGroup()) {
  4577. break;
  4578. }
  4579. var field = reader.getFieldNumber();
  4580. switch (field) {
  4581. case 1:
  4582. var value = /** @type {string} */ (reader.readString());
  4583. msg.setPhone(value);
  4584. break;
  4585. case 2:
  4586. var value = /** @type {!proto.app.v1.UserType} */ (reader.readEnum());
  4587. msg.setUsertype(value);
  4588. break;
  4589. case 3:
  4590. var value = /** @type {!proto.app.v1.SmsType} */ (reader.readEnum());
  4591. msg.setSmstype(value);
  4592. break;
  4593. default:
  4594. reader.skipField();
  4595. break;
  4596. }
  4597. }
  4598. return msg;
  4599. };
  4600. /**
  4601. * Serializes the message to binary data (in protobuf wire format).
  4602. * @return {!Uint8Array}
  4603. */
  4604. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.serializeBinary = function() {
  4605. var writer = new jspb.BinaryWriter();
  4606. proto.app.v1.AuthSendCodeToPhoneRequest.serializeBinaryToWriter(this, writer);
  4607. return writer.getResultBuffer();
  4608. };
  4609. /**
  4610. * Serializes the given message to binary data (in protobuf wire
  4611. * format), writing to the given BinaryWriter.
  4612. * @param {!proto.app.v1.AuthSendCodeToPhoneRequest} message
  4613. * @param {!jspb.BinaryWriter} writer
  4614. * @suppress {unusedLocalVariables} f is only used for nested messages
  4615. */
  4616. proto.app.v1.AuthSendCodeToPhoneRequest.serializeBinaryToWriter = function(message, writer) {
  4617. var f = undefined;
  4618. f = message.getPhone();
  4619. if (f.length > 0) {
  4620. writer.writeString(
  4621. 1,
  4622. f
  4623. );
  4624. }
  4625. f = message.getUsertype();
  4626. if (f !== 0.0) {
  4627. writer.writeEnum(
  4628. 2,
  4629. f
  4630. );
  4631. }
  4632. f = message.getSmstype();
  4633. if (f !== 0.0) {
  4634. writer.writeEnum(
  4635. 3,
  4636. f
  4637. );
  4638. }
  4639. };
  4640. /**
  4641. * optional string phone = 1;
  4642. * @return {string}
  4643. */
  4644. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getPhone = function() {
  4645. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  4646. };
  4647. /**
  4648. * @param {string} value
  4649. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4650. */
  4651. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setPhone = function(value) {
  4652. return jspb.Message.setProto3StringField(this, 1, value);
  4653. };
  4654. /**
  4655. * optional UserType userType = 2;
  4656. * @return {!proto.app.v1.UserType}
  4657. */
  4658. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getUsertype = function() {
  4659. return /** @type {!proto.app.v1.UserType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  4660. };
  4661. /**
  4662. * @param {!proto.app.v1.UserType} value
  4663. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4664. */
  4665. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setUsertype = function(value) {
  4666. return jspb.Message.setProto3EnumField(this, 2, value);
  4667. };
  4668. /**
  4669. * optional SmsType smsType = 3;
  4670. * @return {!proto.app.v1.SmsType}
  4671. */
  4672. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.getSmstype = function() {
  4673. return /** @type {!proto.app.v1.SmsType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  4674. };
  4675. /**
  4676. * @param {!proto.app.v1.SmsType} value
  4677. * @return {!proto.app.v1.AuthSendCodeToPhoneRequest} returns this
  4678. */
  4679. proto.app.v1.AuthSendCodeToPhoneRequest.prototype.setSmstype = function(value) {
  4680. return jspb.Message.setProto3EnumField(this, 3, value);
  4681. };
  4682. if (jspb.Message.GENERATE_TO_OBJECT) {
  4683. /**
  4684. * Creates an object representation of this proto.
  4685. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4686. * Optional fields that are not set will be set to undefined.
  4687. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4688. * For the list of reserved names please see:
  4689. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4690. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4691. * JSPB instance for transitional soy proto support:
  4692. * http://goto/soy-param-migration
  4693. * @return {!Object}
  4694. */
  4695. proto.app.v1.PositionRequest.prototype.toObject = function(opt_includeInstance) {
  4696. return proto.app.v1.PositionRequest.toObject(opt_includeInstance, this);
  4697. };
  4698. /**
  4699. * Static version of the {@see toObject} method.
  4700. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4701. * the JSPB instance for transitional soy proto support:
  4702. * http://goto/soy-param-migration
  4703. * @param {!proto.app.v1.PositionRequest} msg The msg instance to transform.
  4704. * @return {!Object}
  4705. * @suppress {unusedLocalVariables} f is only used for nested messages
  4706. */
  4707. proto.app.v1.PositionRequest.toObject = function(includeInstance, msg) {
  4708. var f, obj = {
  4709. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f)
  4710. };
  4711. if (includeInstance) {
  4712. obj.$jspbMessageInstance = msg;
  4713. }
  4714. return obj;
  4715. };
  4716. }
  4717. /**
  4718. * Deserializes binary data (in protobuf wire format).
  4719. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4720. * @return {!proto.app.v1.PositionRequest}
  4721. */
  4722. proto.app.v1.PositionRequest.deserializeBinary = function(bytes) {
  4723. var reader = new jspb.BinaryReader(bytes);
  4724. var msg = new proto.app.v1.PositionRequest;
  4725. return proto.app.v1.PositionRequest.deserializeBinaryFromReader(msg, reader);
  4726. };
  4727. /**
  4728. * Deserializes binary data (in protobuf wire format) from the
  4729. * given reader into the given message object.
  4730. * @param {!proto.app.v1.PositionRequest} msg The message object to deserialize into.
  4731. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4732. * @return {!proto.app.v1.PositionRequest}
  4733. */
  4734. proto.app.v1.PositionRequest.deserializeBinaryFromReader = function(msg, reader) {
  4735. while (reader.nextField()) {
  4736. if (reader.isEndGroup()) {
  4737. break;
  4738. }
  4739. var field = reader.getFieldNumber();
  4740. switch (field) {
  4741. case 1:
  4742. var value = new proto.app.v1.Position;
  4743. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  4744. msg.setPosition(value);
  4745. break;
  4746. default:
  4747. reader.skipField();
  4748. break;
  4749. }
  4750. }
  4751. return msg;
  4752. };
  4753. /**
  4754. * Serializes the message to binary data (in protobuf wire format).
  4755. * @return {!Uint8Array}
  4756. */
  4757. proto.app.v1.PositionRequest.prototype.serializeBinary = function() {
  4758. var writer = new jspb.BinaryWriter();
  4759. proto.app.v1.PositionRequest.serializeBinaryToWriter(this, writer);
  4760. return writer.getResultBuffer();
  4761. };
  4762. /**
  4763. * Serializes the given message to binary data (in protobuf wire
  4764. * format), writing to the given BinaryWriter.
  4765. * @param {!proto.app.v1.PositionRequest} message
  4766. * @param {!jspb.BinaryWriter} writer
  4767. * @suppress {unusedLocalVariables} f is only used for nested messages
  4768. */
  4769. proto.app.v1.PositionRequest.serializeBinaryToWriter = function(message, writer) {
  4770. var f = undefined;
  4771. f = message.getPosition();
  4772. if (f != null) {
  4773. writer.writeMessage(
  4774. 1,
  4775. f,
  4776. proto.app.v1.Position.serializeBinaryToWriter
  4777. );
  4778. }
  4779. };
  4780. /**
  4781. * optional Position position = 1;
  4782. * @return {?proto.app.v1.Position}
  4783. */
  4784. proto.app.v1.PositionRequest.prototype.getPosition = function() {
  4785. return /** @type{?proto.app.v1.Position} */ (
  4786. jspb.Message.getWrapperField(this, proto.app.v1.Position, 1));
  4787. };
  4788. /**
  4789. * @param {?proto.app.v1.Position|undefined} value
  4790. * @return {!proto.app.v1.PositionRequest} returns this
  4791. */
  4792. proto.app.v1.PositionRequest.prototype.setPosition = function(value) {
  4793. return jspb.Message.setWrapperField(this, 1, value);
  4794. };
  4795. /**
  4796. * Clears the message field making it undefined.
  4797. * @return {!proto.app.v1.PositionRequest} returns this
  4798. */
  4799. proto.app.v1.PositionRequest.prototype.clearPosition = function() {
  4800. return this.setPosition(undefined);
  4801. };
  4802. /**
  4803. * Returns whether this field is set.
  4804. * @return {boolean}
  4805. */
  4806. proto.app.v1.PositionRequest.prototype.hasPosition = function() {
  4807. return jspb.Message.getField(this, 1) != null;
  4808. };
  4809. if (jspb.Message.GENERATE_TO_OBJECT) {
  4810. /**
  4811. * Creates an object representation of this proto.
  4812. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4813. * Optional fields that are not set will be set to undefined.
  4814. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4815. * For the list of reserved names please see:
  4816. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4817. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4818. * JSPB instance for transitional soy proto support:
  4819. * http://goto/soy-param-migration
  4820. * @return {!Object}
  4821. */
  4822. proto.app.v1.IdRequest.prototype.toObject = function(opt_includeInstance) {
  4823. return proto.app.v1.IdRequest.toObject(opt_includeInstance, this);
  4824. };
  4825. /**
  4826. * Static version of the {@see toObject} method.
  4827. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4828. * the JSPB instance for transitional soy proto support:
  4829. * http://goto/soy-param-migration
  4830. * @param {!proto.app.v1.IdRequest} msg The msg instance to transform.
  4831. * @return {!Object}
  4832. * @suppress {unusedLocalVariables} f is only used for nested messages
  4833. */
  4834. proto.app.v1.IdRequest.toObject = function(includeInstance, msg) {
  4835. var f, obj = {
  4836. id: jspb.Message.getFieldWithDefault(msg, 1, 0)
  4837. };
  4838. if (includeInstance) {
  4839. obj.$jspbMessageInstance = msg;
  4840. }
  4841. return obj;
  4842. };
  4843. }
  4844. /**
  4845. * Deserializes binary data (in protobuf wire format).
  4846. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4847. * @return {!proto.app.v1.IdRequest}
  4848. */
  4849. proto.app.v1.IdRequest.deserializeBinary = function(bytes) {
  4850. var reader = new jspb.BinaryReader(bytes);
  4851. var msg = new proto.app.v1.IdRequest;
  4852. return proto.app.v1.IdRequest.deserializeBinaryFromReader(msg, reader);
  4853. };
  4854. /**
  4855. * Deserializes binary data (in protobuf wire format) from the
  4856. * given reader into the given message object.
  4857. * @param {!proto.app.v1.IdRequest} msg The message object to deserialize into.
  4858. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4859. * @return {!proto.app.v1.IdRequest}
  4860. */
  4861. proto.app.v1.IdRequest.deserializeBinaryFromReader = function(msg, reader) {
  4862. while (reader.nextField()) {
  4863. if (reader.isEndGroup()) {
  4864. break;
  4865. }
  4866. var field = reader.getFieldNumber();
  4867. switch (field) {
  4868. case 1:
  4869. var value = /** @type {number} */ (reader.readInt64());
  4870. msg.setId(value);
  4871. break;
  4872. default:
  4873. reader.skipField();
  4874. break;
  4875. }
  4876. }
  4877. return msg;
  4878. };
  4879. /**
  4880. * Serializes the message to binary data (in protobuf wire format).
  4881. * @return {!Uint8Array}
  4882. */
  4883. proto.app.v1.IdRequest.prototype.serializeBinary = function() {
  4884. var writer = new jspb.BinaryWriter();
  4885. proto.app.v1.IdRequest.serializeBinaryToWriter(this, writer);
  4886. return writer.getResultBuffer();
  4887. };
  4888. /**
  4889. * Serializes the given message to binary data (in protobuf wire
  4890. * format), writing to the given BinaryWriter.
  4891. * @param {!proto.app.v1.IdRequest} message
  4892. * @param {!jspb.BinaryWriter} writer
  4893. * @suppress {unusedLocalVariables} f is only used for nested messages
  4894. */
  4895. proto.app.v1.IdRequest.serializeBinaryToWriter = function(message, writer) {
  4896. var f = undefined;
  4897. f = message.getId();
  4898. if (f !== 0) {
  4899. writer.writeInt64(
  4900. 1,
  4901. f
  4902. );
  4903. }
  4904. };
  4905. /**
  4906. * optional int64 id = 1;
  4907. * @return {number}
  4908. */
  4909. proto.app.v1.IdRequest.prototype.getId = function() {
  4910. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4911. };
  4912. /**
  4913. * @param {number} value
  4914. * @return {!proto.app.v1.IdRequest} returns this
  4915. */
  4916. proto.app.v1.IdRequest.prototype.setId = function(value) {
  4917. return jspb.Message.setProto3IntField(this, 1, value);
  4918. };
  4919. if (jspb.Message.GENERATE_TO_OBJECT) {
  4920. /**
  4921. * Creates an object representation of this proto.
  4922. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4923. * Optional fields that are not set will be set to undefined.
  4924. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4925. * For the list of reserved names please see:
  4926. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4927. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4928. * JSPB instance for transitional soy proto support:
  4929. * http://goto/soy-param-migration
  4930. * @return {!Object}
  4931. */
  4932. proto.app.v1.SignOutRequest.prototype.toObject = function(opt_includeInstance) {
  4933. return proto.app.v1.SignOutRequest.toObject(opt_includeInstance, this);
  4934. };
  4935. /**
  4936. * Static version of the {@see toObject} method.
  4937. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4938. * the JSPB instance for transitional soy proto support:
  4939. * http://goto/soy-param-migration
  4940. * @param {!proto.app.v1.SignOutRequest} msg The msg instance to transform.
  4941. * @return {!Object}
  4942. * @suppress {unusedLocalVariables} f is only used for nested messages
  4943. */
  4944. proto.app.v1.SignOutRequest.toObject = function(includeInstance, msg) {
  4945. var f, obj = {
  4946. name: jspb.Message.getFieldWithDefault(msg, 1, "")
  4947. };
  4948. if (includeInstance) {
  4949. obj.$jspbMessageInstance = msg;
  4950. }
  4951. return obj;
  4952. };
  4953. }
  4954. /**
  4955. * Deserializes binary data (in protobuf wire format).
  4956. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4957. * @return {!proto.app.v1.SignOutRequest}
  4958. */
  4959. proto.app.v1.SignOutRequest.deserializeBinary = function(bytes) {
  4960. var reader = new jspb.BinaryReader(bytes);
  4961. var msg = new proto.app.v1.SignOutRequest;
  4962. return proto.app.v1.SignOutRequest.deserializeBinaryFromReader(msg, reader);
  4963. };
  4964. /**
  4965. * Deserializes binary data (in protobuf wire format) from the
  4966. * given reader into the given message object.
  4967. * @param {!proto.app.v1.SignOutRequest} msg The message object to deserialize into.
  4968. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4969. * @return {!proto.app.v1.SignOutRequest}
  4970. */
  4971. proto.app.v1.SignOutRequest.deserializeBinaryFromReader = function(msg, reader) {
  4972. while (reader.nextField()) {
  4973. if (reader.isEndGroup()) {
  4974. break;
  4975. }
  4976. var field = reader.getFieldNumber();
  4977. switch (field) {
  4978. case 1:
  4979. var value = /** @type {string} */ (reader.readString());
  4980. msg.setName(value);
  4981. break;
  4982. default:
  4983. reader.skipField();
  4984. break;
  4985. }
  4986. }
  4987. return msg;
  4988. };
  4989. /**
  4990. * Serializes the message to binary data (in protobuf wire format).
  4991. * @return {!Uint8Array}
  4992. */
  4993. proto.app.v1.SignOutRequest.prototype.serializeBinary = function() {
  4994. var writer = new jspb.BinaryWriter();
  4995. proto.app.v1.SignOutRequest.serializeBinaryToWriter(this, writer);
  4996. return writer.getResultBuffer();
  4997. };
  4998. /**
  4999. * Serializes the given message to binary data (in protobuf wire
  5000. * format), writing to the given BinaryWriter.
  5001. * @param {!proto.app.v1.SignOutRequest} message
  5002. * @param {!jspb.BinaryWriter} writer
  5003. * @suppress {unusedLocalVariables} f is only used for nested messages
  5004. */
  5005. proto.app.v1.SignOutRequest.serializeBinaryToWriter = function(message, writer) {
  5006. var f = undefined;
  5007. f = message.getName();
  5008. if (f.length > 0) {
  5009. writer.writeString(
  5010. 1,
  5011. f
  5012. );
  5013. }
  5014. };
  5015. /**
  5016. * optional string name = 1;
  5017. * @return {string}
  5018. */
  5019. proto.app.v1.SignOutRequest.prototype.getName = function() {
  5020. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5021. };
  5022. /**
  5023. * @param {string} value
  5024. * @return {!proto.app.v1.SignOutRequest} returns this
  5025. */
  5026. proto.app.v1.SignOutRequest.prototype.setName = function(value) {
  5027. return jspb.Message.setProto3StringField(this, 1, value);
  5028. };
  5029. if (jspb.Message.GENERATE_TO_OBJECT) {
  5030. /**
  5031. * Creates an object representation of this proto.
  5032. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5033. * Optional fields that are not set will be set to undefined.
  5034. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5035. * For the list of reserved names please see:
  5036. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5037. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5038. * JSPB instance for transitional soy proto support:
  5039. * http://goto/soy-param-migration
  5040. * @return {!Object}
  5041. */
  5042. proto.app.v1.UserNameEditRequest.prototype.toObject = function(opt_includeInstance) {
  5043. return proto.app.v1.UserNameEditRequest.toObject(opt_includeInstance, this);
  5044. };
  5045. /**
  5046. * Static version of the {@see toObject} method.
  5047. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5048. * the JSPB instance for transitional soy proto support:
  5049. * http://goto/soy-param-migration
  5050. * @param {!proto.app.v1.UserNameEditRequest} msg The msg instance to transform.
  5051. * @return {!Object}
  5052. * @suppress {unusedLocalVariables} f is only used for nested messages
  5053. */
  5054. proto.app.v1.UserNameEditRequest.toObject = function(includeInstance, msg) {
  5055. var f, obj = {
  5056. name: jspb.Message.getFieldWithDefault(msg, 1, "")
  5057. };
  5058. if (includeInstance) {
  5059. obj.$jspbMessageInstance = msg;
  5060. }
  5061. return obj;
  5062. };
  5063. }
  5064. /**
  5065. * Deserializes binary data (in protobuf wire format).
  5066. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5067. * @return {!proto.app.v1.UserNameEditRequest}
  5068. */
  5069. proto.app.v1.UserNameEditRequest.deserializeBinary = function(bytes) {
  5070. var reader = new jspb.BinaryReader(bytes);
  5071. var msg = new proto.app.v1.UserNameEditRequest;
  5072. return proto.app.v1.UserNameEditRequest.deserializeBinaryFromReader(msg, reader);
  5073. };
  5074. /**
  5075. * Deserializes binary data (in protobuf wire format) from the
  5076. * given reader into the given message object.
  5077. * @param {!proto.app.v1.UserNameEditRequest} msg The message object to deserialize into.
  5078. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5079. * @return {!proto.app.v1.UserNameEditRequest}
  5080. */
  5081. proto.app.v1.UserNameEditRequest.deserializeBinaryFromReader = function(msg, reader) {
  5082. while (reader.nextField()) {
  5083. if (reader.isEndGroup()) {
  5084. break;
  5085. }
  5086. var field = reader.getFieldNumber();
  5087. switch (field) {
  5088. case 1:
  5089. var value = /** @type {string} */ (reader.readString());
  5090. msg.setName(value);
  5091. break;
  5092. default:
  5093. reader.skipField();
  5094. break;
  5095. }
  5096. }
  5097. return msg;
  5098. };
  5099. /**
  5100. * Serializes the message to binary data (in protobuf wire format).
  5101. * @return {!Uint8Array}
  5102. */
  5103. proto.app.v1.UserNameEditRequest.prototype.serializeBinary = function() {
  5104. var writer = new jspb.BinaryWriter();
  5105. proto.app.v1.UserNameEditRequest.serializeBinaryToWriter(this, writer);
  5106. return writer.getResultBuffer();
  5107. };
  5108. /**
  5109. * Serializes the given message to binary data (in protobuf wire
  5110. * format), writing to the given BinaryWriter.
  5111. * @param {!proto.app.v1.UserNameEditRequest} message
  5112. * @param {!jspb.BinaryWriter} writer
  5113. * @suppress {unusedLocalVariables} f is only used for nested messages
  5114. */
  5115. proto.app.v1.UserNameEditRequest.serializeBinaryToWriter = function(message, writer) {
  5116. var f = undefined;
  5117. f = message.getName();
  5118. if (f.length > 0) {
  5119. writer.writeString(
  5120. 1,
  5121. f
  5122. );
  5123. }
  5124. };
  5125. /**
  5126. * optional string name = 1;
  5127. * @return {string}
  5128. */
  5129. proto.app.v1.UserNameEditRequest.prototype.getName = function() {
  5130. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5131. };
  5132. /**
  5133. * @param {string} value
  5134. * @return {!proto.app.v1.UserNameEditRequest} returns this
  5135. */
  5136. proto.app.v1.UserNameEditRequest.prototype.setName = function(value) {
  5137. return jspb.Message.setProto3StringField(this, 1, value);
  5138. };
  5139. if (jspb.Message.GENERATE_TO_OBJECT) {
  5140. /**
  5141. * Creates an object representation of this proto.
  5142. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5143. * Optional fields that are not set will be set to undefined.
  5144. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5145. * For the list of reserved names please see:
  5146. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5147. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5148. * JSPB instance for transitional soy proto support:
  5149. * http://goto/soy-param-migration
  5150. * @return {!Object}
  5151. */
  5152. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.toObject = function(opt_includeInstance) {
  5153. return proto.app.v1.GetSmsSendLeftTimeRequest.toObject(opt_includeInstance, this);
  5154. };
  5155. /**
  5156. * Static version of the {@see toObject} method.
  5157. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5158. * the JSPB instance for transitional soy proto support:
  5159. * http://goto/soy-param-migration
  5160. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} msg The msg instance to transform.
  5161. * @return {!Object}
  5162. * @suppress {unusedLocalVariables} f is only used for nested messages
  5163. */
  5164. proto.app.v1.GetSmsSendLeftTimeRequest.toObject = function(includeInstance, msg) {
  5165. var f, obj = {
  5166. phone: jspb.Message.getFieldWithDefault(msg, 1, "")
  5167. };
  5168. if (includeInstance) {
  5169. obj.$jspbMessageInstance = msg;
  5170. }
  5171. return obj;
  5172. };
  5173. }
  5174. /**
  5175. * Deserializes binary data (in protobuf wire format).
  5176. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5177. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest}
  5178. */
  5179. proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinary = function(bytes) {
  5180. var reader = new jspb.BinaryReader(bytes);
  5181. var msg = new proto.app.v1.GetSmsSendLeftTimeRequest;
  5182. return proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader(msg, reader);
  5183. };
  5184. /**
  5185. * Deserializes binary data (in protobuf wire format) from the
  5186. * given reader into the given message object.
  5187. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} msg The message object to deserialize into.
  5188. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5189. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest}
  5190. */
  5191. proto.app.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader = function(msg, reader) {
  5192. while (reader.nextField()) {
  5193. if (reader.isEndGroup()) {
  5194. break;
  5195. }
  5196. var field = reader.getFieldNumber();
  5197. switch (field) {
  5198. case 1:
  5199. var value = /** @type {string} */ (reader.readString());
  5200. msg.setPhone(value);
  5201. break;
  5202. default:
  5203. reader.skipField();
  5204. break;
  5205. }
  5206. }
  5207. return msg;
  5208. };
  5209. /**
  5210. * Serializes the message to binary data (in protobuf wire format).
  5211. * @return {!Uint8Array}
  5212. */
  5213. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.serializeBinary = function() {
  5214. var writer = new jspb.BinaryWriter();
  5215. proto.app.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter(this, writer);
  5216. return writer.getResultBuffer();
  5217. };
  5218. /**
  5219. * Serializes the given message to binary data (in protobuf wire
  5220. * format), writing to the given BinaryWriter.
  5221. * @param {!proto.app.v1.GetSmsSendLeftTimeRequest} message
  5222. * @param {!jspb.BinaryWriter} writer
  5223. * @suppress {unusedLocalVariables} f is only used for nested messages
  5224. */
  5225. proto.app.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter = function(message, writer) {
  5226. var f = undefined;
  5227. f = message.getPhone();
  5228. if (f.length > 0) {
  5229. writer.writeString(
  5230. 1,
  5231. f
  5232. );
  5233. }
  5234. };
  5235. /**
  5236. * optional string phone = 1;
  5237. * @return {string}
  5238. */
  5239. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.getPhone = function() {
  5240. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5241. };
  5242. /**
  5243. * @param {string} value
  5244. * @return {!proto.app.v1.GetSmsSendLeftTimeRequest} returns this
  5245. */
  5246. proto.app.v1.GetSmsSendLeftTimeRequest.prototype.setPhone = function(value) {
  5247. return jspb.Message.setProto3StringField(this, 1, value);
  5248. };
  5249. if (jspb.Message.GENERATE_TO_OBJECT) {
  5250. /**
  5251. * Creates an object representation of this proto.
  5252. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5253. * Optional fields that are not set will be set to undefined.
  5254. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5255. * For the list of reserved names please see:
  5256. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5257. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5258. * JSPB instance for transitional soy proto support:
  5259. * http://goto/soy-param-migration
  5260. * @return {!Object}
  5261. */
  5262. proto.app.v1.ProviderListRequest.prototype.toObject = function(opt_includeInstance) {
  5263. return proto.app.v1.ProviderListRequest.toObject(opt_includeInstance, this);
  5264. };
  5265. /**
  5266. * Static version of the {@see toObject} method.
  5267. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5268. * the JSPB instance for transitional soy proto support:
  5269. * http://goto/soy-param-migration
  5270. * @param {!proto.app.v1.ProviderListRequest} msg The msg instance to transform.
  5271. * @return {!Object}
  5272. * @suppress {unusedLocalVariables} f is only used for nested messages
  5273. */
  5274. proto.app.v1.ProviderListRequest.toObject = function(includeInstance, msg) {
  5275. var f, obj = {
  5276. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  5277. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5278. isOpen: jspb.Message.getFieldWithDefault(msg, 3, 0),
  5279. regionId: jspb.Message.getFieldWithDefault(msg, 4, "")
  5280. };
  5281. if (includeInstance) {
  5282. obj.$jspbMessageInstance = msg;
  5283. }
  5284. return obj;
  5285. };
  5286. }
  5287. /**
  5288. * Deserializes binary data (in protobuf wire format).
  5289. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5290. * @return {!proto.app.v1.ProviderListRequest}
  5291. */
  5292. proto.app.v1.ProviderListRequest.deserializeBinary = function(bytes) {
  5293. var reader = new jspb.BinaryReader(bytes);
  5294. var msg = new proto.app.v1.ProviderListRequest;
  5295. return proto.app.v1.ProviderListRequest.deserializeBinaryFromReader(msg, reader);
  5296. };
  5297. /**
  5298. * Deserializes binary data (in protobuf wire format) from the
  5299. * given reader into the given message object.
  5300. * @param {!proto.app.v1.ProviderListRequest} msg The message object to deserialize into.
  5301. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5302. * @return {!proto.app.v1.ProviderListRequest}
  5303. */
  5304. proto.app.v1.ProviderListRequest.deserializeBinaryFromReader = function(msg, reader) {
  5305. while (reader.nextField()) {
  5306. if (reader.isEndGroup()) {
  5307. break;
  5308. }
  5309. var field = reader.getFieldNumber();
  5310. switch (field) {
  5311. case 1:
  5312. var value = new proto.app.v1.Position;
  5313. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  5314. msg.setPosition(value);
  5315. break;
  5316. case 2:
  5317. var value = /** @type {string} */ (reader.readString());
  5318. msg.setName(value);
  5319. break;
  5320. case 3:
  5321. var value = /** @type {number} */ (reader.readInt32());
  5322. msg.setIsOpen(value);
  5323. break;
  5324. case 4:
  5325. var value = /** @type {string} */ (reader.readString());
  5326. msg.setRegionId(value);
  5327. break;
  5328. default:
  5329. reader.skipField();
  5330. break;
  5331. }
  5332. }
  5333. return msg;
  5334. };
  5335. /**
  5336. * Serializes the message to binary data (in protobuf wire format).
  5337. * @return {!Uint8Array}
  5338. */
  5339. proto.app.v1.ProviderListRequest.prototype.serializeBinary = function() {
  5340. var writer = new jspb.BinaryWriter();
  5341. proto.app.v1.ProviderListRequest.serializeBinaryToWriter(this, writer);
  5342. return writer.getResultBuffer();
  5343. };
  5344. /**
  5345. * Serializes the given message to binary data (in protobuf wire
  5346. * format), writing to the given BinaryWriter.
  5347. * @param {!proto.app.v1.ProviderListRequest} message
  5348. * @param {!jspb.BinaryWriter} writer
  5349. * @suppress {unusedLocalVariables} f is only used for nested messages
  5350. */
  5351. proto.app.v1.ProviderListRequest.serializeBinaryToWriter = function(message, writer) {
  5352. var f = undefined;
  5353. f = message.getPosition();
  5354. if (f != null) {
  5355. writer.writeMessage(
  5356. 1,
  5357. f,
  5358. proto.app.v1.Position.serializeBinaryToWriter
  5359. );
  5360. }
  5361. f = message.getName();
  5362. if (f.length > 0) {
  5363. writer.writeString(
  5364. 2,
  5365. f
  5366. );
  5367. }
  5368. f = message.getIsOpen();
  5369. if (f !== 0) {
  5370. writer.writeInt32(
  5371. 3,
  5372. f
  5373. );
  5374. }
  5375. f = message.getRegionId();
  5376. if (f.length > 0) {
  5377. writer.writeString(
  5378. 4,
  5379. f
  5380. );
  5381. }
  5382. };
  5383. /**
  5384. * optional Position position = 1;
  5385. * @return {?proto.app.v1.Position}
  5386. */
  5387. proto.app.v1.ProviderListRequest.prototype.getPosition = function() {
  5388. return /** @type{?proto.app.v1.Position} */ (
  5389. jspb.Message.getWrapperField(this, proto.app.v1.Position, 1));
  5390. };
  5391. /**
  5392. * @param {?proto.app.v1.Position|undefined} value
  5393. * @return {!proto.app.v1.ProviderListRequest} returns this
  5394. */
  5395. proto.app.v1.ProviderListRequest.prototype.setPosition = function(value) {
  5396. return jspb.Message.setWrapperField(this, 1, value);
  5397. };
  5398. /**
  5399. * Clears the message field making it undefined.
  5400. * @return {!proto.app.v1.ProviderListRequest} returns this
  5401. */
  5402. proto.app.v1.ProviderListRequest.prototype.clearPosition = function() {
  5403. return this.setPosition(undefined);
  5404. };
  5405. /**
  5406. * Returns whether this field is set.
  5407. * @return {boolean}
  5408. */
  5409. proto.app.v1.ProviderListRequest.prototype.hasPosition = function() {
  5410. return jspb.Message.getField(this, 1) != null;
  5411. };
  5412. /**
  5413. * optional string name = 2;
  5414. * @return {string}
  5415. */
  5416. proto.app.v1.ProviderListRequest.prototype.getName = function() {
  5417. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5418. };
  5419. /**
  5420. * @param {string} value
  5421. * @return {!proto.app.v1.ProviderListRequest} returns this
  5422. */
  5423. proto.app.v1.ProviderListRequest.prototype.setName = function(value) {
  5424. return jspb.Message.setProto3StringField(this, 2, value);
  5425. };
  5426. /**
  5427. * optional int32 is_open = 3;
  5428. * @return {number}
  5429. */
  5430. proto.app.v1.ProviderListRequest.prototype.getIsOpen = function() {
  5431. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5432. };
  5433. /**
  5434. * @param {number} value
  5435. * @return {!proto.app.v1.ProviderListRequest} returns this
  5436. */
  5437. proto.app.v1.ProviderListRequest.prototype.setIsOpen = function(value) {
  5438. return jspb.Message.setProto3IntField(this, 3, value);
  5439. };
  5440. /**
  5441. * optional string region_id = 4;
  5442. * @return {string}
  5443. */
  5444. proto.app.v1.ProviderListRequest.prototype.getRegionId = function() {
  5445. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  5446. };
  5447. /**
  5448. * @param {string} value
  5449. * @return {!proto.app.v1.ProviderListRequest} returns this
  5450. */
  5451. proto.app.v1.ProviderListRequest.prototype.setRegionId = function(value) {
  5452. return jspb.Message.setProto3StringField(this, 4, value);
  5453. };
  5454. /**
  5455. * List of repeated fields within this message type.
  5456. * @private {!Array<number>}
  5457. * @const
  5458. */
  5459. proto.app.v1.AssControlInfoSaveRequest.repeatedFields_ = [2];
  5460. if (jspb.Message.GENERATE_TO_OBJECT) {
  5461. /**
  5462. * Creates an object representation of this proto.
  5463. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5464. * Optional fields that are not set will be set to undefined.
  5465. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5466. * For the list of reserved names please see:
  5467. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5468. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5469. * JSPB instance for transitional soy proto support:
  5470. * http://goto/soy-param-migration
  5471. * @return {!Object}
  5472. */
  5473. proto.app.v1.AssControlInfoSaveRequest.prototype.toObject = function(opt_includeInstance) {
  5474. return proto.app.v1.AssControlInfoSaveRequest.toObject(opt_includeInstance, this);
  5475. };
  5476. /**
  5477. * Static version of the {@see toObject} method.
  5478. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5479. * the JSPB instance for transitional soy proto support:
  5480. * http://goto/soy-param-migration
  5481. * @param {!proto.app.v1.AssControlInfoSaveRequest} msg The msg instance to transform.
  5482. * @return {!Object}
  5483. * @suppress {unusedLocalVariables} f is only used for nested messages
  5484. */
  5485. proto.app.v1.AssControlInfoSaveRequest.toObject = function(includeInstance, msg) {
  5486. var f, obj = {
  5487. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5488. nfccodelistList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
  5489. };
  5490. if (includeInstance) {
  5491. obj.$jspbMessageInstance = msg;
  5492. }
  5493. return obj;
  5494. };
  5495. }
  5496. /**
  5497. * Deserializes binary data (in protobuf wire format).
  5498. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5499. * @return {!proto.app.v1.AssControlInfoSaveRequest}
  5500. */
  5501. proto.app.v1.AssControlInfoSaveRequest.deserializeBinary = function(bytes) {
  5502. var reader = new jspb.BinaryReader(bytes);
  5503. var msg = new proto.app.v1.AssControlInfoSaveRequest;
  5504. return proto.app.v1.AssControlInfoSaveRequest.deserializeBinaryFromReader(msg, reader);
  5505. };
  5506. /**
  5507. * Deserializes binary data (in protobuf wire format) from the
  5508. * given reader into the given message object.
  5509. * @param {!proto.app.v1.AssControlInfoSaveRequest} msg The message object to deserialize into.
  5510. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5511. * @return {!proto.app.v1.AssControlInfoSaveRequest}
  5512. */
  5513. proto.app.v1.AssControlInfoSaveRequest.deserializeBinaryFromReader = function(msg, reader) {
  5514. while (reader.nextField()) {
  5515. if (reader.isEndGroup()) {
  5516. break;
  5517. }
  5518. var field = reader.getFieldNumber();
  5519. switch (field) {
  5520. case 1:
  5521. var value = /** @type {number} */ (reader.readInt32());
  5522. msg.setCiid(value);
  5523. break;
  5524. case 2:
  5525. var value = /** @type {string} */ (reader.readString());
  5526. msg.addNfccodelist(value);
  5527. break;
  5528. default:
  5529. reader.skipField();
  5530. break;
  5531. }
  5532. }
  5533. return msg;
  5534. };
  5535. /**
  5536. * Serializes the message to binary data (in protobuf wire format).
  5537. * @return {!Uint8Array}
  5538. */
  5539. proto.app.v1.AssControlInfoSaveRequest.prototype.serializeBinary = function() {
  5540. var writer = new jspb.BinaryWriter();
  5541. proto.app.v1.AssControlInfoSaveRequest.serializeBinaryToWriter(this, writer);
  5542. return writer.getResultBuffer();
  5543. };
  5544. /**
  5545. * Serializes the given message to binary data (in protobuf wire
  5546. * format), writing to the given BinaryWriter.
  5547. * @param {!proto.app.v1.AssControlInfoSaveRequest} message
  5548. * @param {!jspb.BinaryWriter} writer
  5549. * @suppress {unusedLocalVariables} f is only used for nested messages
  5550. */
  5551. proto.app.v1.AssControlInfoSaveRequest.serializeBinaryToWriter = function(message, writer) {
  5552. var f = undefined;
  5553. f = message.getCiid();
  5554. if (f !== 0) {
  5555. writer.writeInt32(
  5556. 1,
  5557. f
  5558. );
  5559. }
  5560. f = message.getNfccodelistList();
  5561. if (f.length > 0) {
  5562. writer.writeRepeatedString(
  5563. 2,
  5564. f
  5565. );
  5566. }
  5567. };
  5568. /**
  5569. * optional int32 ciId = 1;
  5570. * @return {number}
  5571. */
  5572. proto.app.v1.AssControlInfoSaveRequest.prototype.getCiid = function() {
  5573. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5574. };
  5575. /**
  5576. * @param {number} value
  5577. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5578. */
  5579. proto.app.v1.AssControlInfoSaveRequest.prototype.setCiid = function(value) {
  5580. return jspb.Message.setProto3IntField(this, 1, value);
  5581. };
  5582. /**
  5583. * repeated string nfcCodeList = 2;
  5584. * @return {!Array<string>}
  5585. */
  5586. proto.app.v1.AssControlInfoSaveRequest.prototype.getNfccodelistList = function() {
  5587. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  5588. };
  5589. /**
  5590. * @param {!Array<string>} value
  5591. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5592. */
  5593. proto.app.v1.AssControlInfoSaveRequest.prototype.setNfccodelistList = function(value) {
  5594. return jspb.Message.setField(this, 2, value || []);
  5595. };
  5596. /**
  5597. * @param {string} value
  5598. * @param {number=} opt_index
  5599. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5600. */
  5601. proto.app.v1.AssControlInfoSaveRequest.prototype.addNfccodelist = function(value, opt_index) {
  5602. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  5603. };
  5604. /**
  5605. * Clears the list making it empty but non-null.
  5606. * @return {!proto.app.v1.AssControlInfoSaveRequest} returns this
  5607. */
  5608. proto.app.v1.AssControlInfoSaveRequest.prototype.clearNfccodelistList = function() {
  5609. return this.setNfccodelistList([]);
  5610. };
  5611. if (jspb.Message.GENERATE_TO_OBJECT) {
  5612. /**
  5613. * Creates an object representation of this proto.
  5614. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5615. * Optional fields that are not set will be set to undefined.
  5616. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5617. * For the list of reserved names please see:
  5618. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5619. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5620. * JSPB instance for transitional soy proto support:
  5621. * http://goto/soy-param-migration
  5622. * @return {!Object}
  5623. */
  5624. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.toObject = function(opt_includeInstance) {
  5625. return proto.app.v1.AssControlInfoGpsSaveRequest.toObject(opt_includeInstance, this);
  5626. };
  5627. /**
  5628. * Static version of the {@see toObject} method.
  5629. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5630. * the JSPB instance for transitional soy proto support:
  5631. * http://goto/soy-param-migration
  5632. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} msg The msg instance to transform.
  5633. * @return {!Object}
  5634. * @suppress {unusedLocalVariables} f is only used for nested messages
  5635. */
  5636. proto.app.v1.AssControlInfoGpsSaveRequest.toObject = function(includeInstance, msg) {
  5637. var f, obj = {
  5638. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5639. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f)
  5640. };
  5641. if (includeInstance) {
  5642. obj.$jspbMessageInstance = msg;
  5643. }
  5644. return obj;
  5645. };
  5646. }
  5647. /**
  5648. * Deserializes binary data (in protobuf wire format).
  5649. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5650. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest}
  5651. */
  5652. proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinary = function(bytes) {
  5653. var reader = new jspb.BinaryReader(bytes);
  5654. var msg = new proto.app.v1.AssControlInfoGpsSaveRequest;
  5655. return proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinaryFromReader(msg, reader);
  5656. };
  5657. /**
  5658. * Deserializes binary data (in protobuf wire format) from the
  5659. * given reader into the given message object.
  5660. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} msg The message object to deserialize into.
  5661. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5662. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest}
  5663. */
  5664. proto.app.v1.AssControlInfoGpsSaveRequest.deserializeBinaryFromReader = function(msg, reader) {
  5665. while (reader.nextField()) {
  5666. if (reader.isEndGroup()) {
  5667. break;
  5668. }
  5669. var field = reader.getFieldNumber();
  5670. switch (field) {
  5671. case 1:
  5672. var value = /** @type {number} */ (reader.readInt32());
  5673. msg.setCiid(value);
  5674. break;
  5675. case 2:
  5676. var value = new proto.app.v1.Position;
  5677. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  5678. msg.setPosition(value);
  5679. break;
  5680. default:
  5681. reader.skipField();
  5682. break;
  5683. }
  5684. }
  5685. return msg;
  5686. };
  5687. /**
  5688. * Serializes the message to binary data (in protobuf wire format).
  5689. * @return {!Uint8Array}
  5690. */
  5691. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.serializeBinary = function() {
  5692. var writer = new jspb.BinaryWriter();
  5693. proto.app.v1.AssControlInfoGpsSaveRequest.serializeBinaryToWriter(this, writer);
  5694. return writer.getResultBuffer();
  5695. };
  5696. /**
  5697. * Serializes the given message to binary data (in protobuf wire
  5698. * format), writing to the given BinaryWriter.
  5699. * @param {!proto.app.v1.AssControlInfoGpsSaveRequest} message
  5700. * @param {!jspb.BinaryWriter} writer
  5701. * @suppress {unusedLocalVariables} f is only used for nested messages
  5702. */
  5703. proto.app.v1.AssControlInfoGpsSaveRequest.serializeBinaryToWriter = function(message, writer) {
  5704. var f = undefined;
  5705. f = message.getCiid();
  5706. if (f !== 0) {
  5707. writer.writeInt32(
  5708. 1,
  5709. f
  5710. );
  5711. }
  5712. f = message.getPosition();
  5713. if (f != null) {
  5714. writer.writeMessage(
  5715. 2,
  5716. f,
  5717. proto.app.v1.Position.serializeBinaryToWriter
  5718. );
  5719. }
  5720. };
  5721. /**
  5722. * optional int32 ciId = 1;
  5723. * @return {number}
  5724. */
  5725. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.getCiid = function() {
  5726. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5727. };
  5728. /**
  5729. * @param {number} value
  5730. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5731. */
  5732. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.setCiid = function(value) {
  5733. return jspb.Message.setProto3IntField(this, 1, value);
  5734. };
  5735. /**
  5736. * optional Position position = 2;
  5737. * @return {?proto.app.v1.Position}
  5738. */
  5739. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.getPosition = function() {
  5740. return /** @type{?proto.app.v1.Position} */ (
  5741. jspb.Message.getWrapperField(this, proto.app.v1.Position, 2));
  5742. };
  5743. /**
  5744. * @param {?proto.app.v1.Position|undefined} value
  5745. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5746. */
  5747. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.setPosition = function(value) {
  5748. return jspb.Message.setWrapperField(this, 2, value);
  5749. };
  5750. /**
  5751. * Clears the message field making it undefined.
  5752. * @return {!proto.app.v1.AssControlInfoGpsSaveRequest} returns this
  5753. */
  5754. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.clearPosition = function() {
  5755. return this.setPosition(undefined);
  5756. };
  5757. /**
  5758. * Returns whether this field is set.
  5759. * @return {boolean}
  5760. */
  5761. proto.app.v1.AssControlInfoGpsSaveRequest.prototype.hasPosition = function() {
  5762. return jspb.Message.getField(this, 2) != null;
  5763. };
  5764. if (jspb.Message.GENERATE_TO_OBJECT) {
  5765. /**
  5766. * Creates an object representation of this proto.
  5767. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5768. * Optional fields that are not set will be set to undefined.
  5769. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5770. * For the list of reserved names please see:
  5771. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5772. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5773. * JSPB instance for transitional soy proto support:
  5774. * http://goto/soy-param-migration
  5775. * @return {!Object}
  5776. */
  5777. proto.app.v1.GetUpdateVersionRequest.prototype.toObject = function(opt_includeInstance) {
  5778. return proto.app.v1.GetUpdateVersionRequest.toObject(opt_includeInstance, this);
  5779. };
  5780. /**
  5781. * Static version of the {@see toObject} method.
  5782. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5783. * the JSPB instance for transitional soy proto support:
  5784. * http://goto/soy-param-migration
  5785. * @param {!proto.app.v1.GetUpdateVersionRequest} msg The msg instance to transform.
  5786. * @return {!Object}
  5787. * @suppress {unusedLocalVariables} f is only used for nested messages
  5788. */
  5789. proto.app.v1.GetUpdateVersionRequest.toObject = function(includeInstance, msg) {
  5790. var f, obj = {
  5791. vcode: jspb.Message.getFieldWithDefault(msg, 1, "")
  5792. };
  5793. if (includeInstance) {
  5794. obj.$jspbMessageInstance = msg;
  5795. }
  5796. return obj;
  5797. };
  5798. }
  5799. /**
  5800. * Deserializes binary data (in protobuf wire format).
  5801. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5802. * @return {!proto.app.v1.GetUpdateVersionRequest}
  5803. */
  5804. proto.app.v1.GetUpdateVersionRequest.deserializeBinary = function(bytes) {
  5805. var reader = new jspb.BinaryReader(bytes);
  5806. var msg = new proto.app.v1.GetUpdateVersionRequest;
  5807. return proto.app.v1.GetUpdateVersionRequest.deserializeBinaryFromReader(msg, reader);
  5808. };
  5809. /**
  5810. * Deserializes binary data (in protobuf wire format) from the
  5811. * given reader into the given message object.
  5812. * @param {!proto.app.v1.GetUpdateVersionRequest} msg The message object to deserialize into.
  5813. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5814. * @return {!proto.app.v1.GetUpdateVersionRequest}
  5815. */
  5816. proto.app.v1.GetUpdateVersionRequest.deserializeBinaryFromReader = function(msg, reader) {
  5817. while (reader.nextField()) {
  5818. if (reader.isEndGroup()) {
  5819. break;
  5820. }
  5821. var field = reader.getFieldNumber();
  5822. switch (field) {
  5823. case 1:
  5824. var value = /** @type {string} */ (reader.readString());
  5825. msg.setVcode(value);
  5826. break;
  5827. default:
  5828. reader.skipField();
  5829. break;
  5830. }
  5831. }
  5832. return msg;
  5833. };
  5834. /**
  5835. * Serializes the message to binary data (in protobuf wire format).
  5836. * @return {!Uint8Array}
  5837. */
  5838. proto.app.v1.GetUpdateVersionRequest.prototype.serializeBinary = function() {
  5839. var writer = new jspb.BinaryWriter();
  5840. proto.app.v1.GetUpdateVersionRequest.serializeBinaryToWriter(this, writer);
  5841. return writer.getResultBuffer();
  5842. };
  5843. /**
  5844. * Serializes the given message to binary data (in protobuf wire
  5845. * format), writing to the given BinaryWriter.
  5846. * @param {!proto.app.v1.GetUpdateVersionRequest} message
  5847. * @param {!jspb.BinaryWriter} writer
  5848. * @suppress {unusedLocalVariables} f is only used for nested messages
  5849. */
  5850. proto.app.v1.GetUpdateVersionRequest.serializeBinaryToWriter = function(message, writer) {
  5851. var f = undefined;
  5852. f = message.getVcode();
  5853. if (f.length > 0) {
  5854. writer.writeString(
  5855. 1,
  5856. f
  5857. );
  5858. }
  5859. };
  5860. /**
  5861. * optional string vCode = 1;
  5862. * @return {string}
  5863. */
  5864. proto.app.v1.GetUpdateVersionRequest.prototype.getVcode = function() {
  5865. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5866. };
  5867. /**
  5868. * @param {string} value
  5869. * @return {!proto.app.v1.GetUpdateVersionRequest} returns this
  5870. */
  5871. proto.app.v1.GetUpdateVersionRequest.prototype.setVcode = function(value) {
  5872. return jspb.Message.setProto3StringField(this, 1, value);
  5873. };
  5874. if (jspb.Message.GENERATE_TO_OBJECT) {
  5875. /**
  5876. * Creates an object representation of this proto.
  5877. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5878. * Optional fields that are not set will be set to undefined.
  5879. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5880. * For the list of reserved names please see:
  5881. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5882. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5883. * JSPB instance for transitional soy proto support:
  5884. * http://goto/soy-param-migration
  5885. * @return {!Object}
  5886. */
  5887. proto.app.v1.DefaultRequest.prototype.toObject = function(opt_includeInstance) {
  5888. return proto.app.v1.DefaultRequest.toObject(opt_includeInstance, this);
  5889. };
  5890. /**
  5891. * Static version of the {@see toObject} method.
  5892. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5893. * the JSPB instance for transitional soy proto support:
  5894. * http://goto/soy-param-migration
  5895. * @param {!proto.app.v1.DefaultRequest} msg The msg instance to transform.
  5896. * @return {!Object}
  5897. * @suppress {unusedLocalVariables} f is only used for nested messages
  5898. */
  5899. proto.app.v1.DefaultRequest.toObject = function(includeInstance, msg) {
  5900. var f, obj = {
  5901. };
  5902. if (includeInstance) {
  5903. obj.$jspbMessageInstance = msg;
  5904. }
  5905. return obj;
  5906. };
  5907. }
  5908. /**
  5909. * Deserializes binary data (in protobuf wire format).
  5910. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5911. * @return {!proto.app.v1.DefaultRequest}
  5912. */
  5913. proto.app.v1.DefaultRequest.deserializeBinary = function(bytes) {
  5914. var reader = new jspb.BinaryReader(bytes);
  5915. var msg = new proto.app.v1.DefaultRequest;
  5916. return proto.app.v1.DefaultRequest.deserializeBinaryFromReader(msg, reader);
  5917. };
  5918. /**
  5919. * Deserializes binary data (in protobuf wire format) from the
  5920. * given reader into the given message object.
  5921. * @param {!proto.app.v1.DefaultRequest} msg The message object to deserialize into.
  5922. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5923. * @return {!proto.app.v1.DefaultRequest}
  5924. */
  5925. proto.app.v1.DefaultRequest.deserializeBinaryFromReader = function(msg, reader) {
  5926. while (reader.nextField()) {
  5927. if (reader.isEndGroup()) {
  5928. break;
  5929. }
  5930. var field = reader.getFieldNumber();
  5931. switch (field) {
  5932. default:
  5933. reader.skipField();
  5934. break;
  5935. }
  5936. }
  5937. return msg;
  5938. };
  5939. /**
  5940. * Serializes the message to binary data (in protobuf wire format).
  5941. * @return {!Uint8Array}
  5942. */
  5943. proto.app.v1.DefaultRequest.prototype.serializeBinary = function() {
  5944. var writer = new jspb.BinaryWriter();
  5945. proto.app.v1.DefaultRequest.serializeBinaryToWriter(this, writer);
  5946. return writer.getResultBuffer();
  5947. };
  5948. /**
  5949. * Serializes the given message to binary data (in protobuf wire
  5950. * format), writing to the given BinaryWriter.
  5951. * @param {!proto.app.v1.DefaultRequest} message
  5952. * @param {!jspb.BinaryWriter} writer
  5953. * @suppress {unusedLocalVariables} f is only used for nested messages
  5954. */
  5955. proto.app.v1.DefaultRequest.serializeBinaryToWriter = function(message, writer) {
  5956. var f = undefined;
  5957. };
  5958. if (jspb.Message.GENERATE_TO_OBJECT) {
  5959. /**
  5960. * Creates an object representation of this proto.
  5961. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5962. * Optional fields that are not set will be set to undefined.
  5963. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5964. * For the list of reserved names please see:
  5965. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5966. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5967. * JSPB instance for transitional soy proto support:
  5968. * http://goto/soy-param-migration
  5969. * @return {!Object}
  5970. */
  5971. proto.app.v1.SignUpRequest.prototype.toObject = function(opt_includeInstance) {
  5972. return proto.app.v1.SignUpRequest.toObject(opt_includeInstance, this);
  5973. };
  5974. /**
  5975. * Static version of the {@see toObject} method.
  5976. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5977. * the JSPB instance for transitional soy proto support:
  5978. * http://goto/soy-param-migration
  5979. * @param {!proto.app.v1.SignUpRequest} msg The msg instance to transform.
  5980. * @return {!Object}
  5981. * @suppress {unusedLocalVariables} f is only used for nested messages
  5982. */
  5983. proto.app.v1.SignUpRequest.toObject = function(includeInstance, msg) {
  5984. var f, obj = {
  5985. phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
  5986. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5987. nickname: jspb.Message.getFieldWithDefault(msg, 3, ""),
  5988. usertype: jspb.Message.getFieldWithDefault(msg, 4, 0),
  5989. headurl: jspb.Message.getFieldWithDefault(msg, 5, ""),
  5990. sex: jspb.Message.getFieldWithDefault(msg, 6, 0)
  5991. };
  5992. if (includeInstance) {
  5993. obj.$jspbMessageInstance = msg;
  5994. }
  5995. return obj;
  5996. };
  5997. }
  5998. /**
  5999. * Deserializes binary data (in protobuf wire format).
  6000. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6001. * @return {!proto.app.v1.SignUpRequest}
  6002. */
  6003. proto.app.v1.SignUpRequest.deserializeBinary = function(bytes) {
  6004. var reader = new jspb.BinaryReader(bytes);
  6005. var msg = new proto.app.v1.SignUpRequest;
  6006. return proto.app.v1.SignUpRequest.deserializeBinaryFromReader(msg, reader);
  6007. };
  6008. /**
  6009. * Deserializes binary data (in protobuf wire format) from the
  6010. * given reader into the given message object.
  6011. * @param {!proto.app.v1.SignUpRequest} msg The message object to deserialize into.
  6012. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6013. * @return {!proto.app.v1.SignUpRequest}
  6014. */
  6015. proto.app.v1.SignUpRequest.deserializeBinaryFromReader = function(msg, reader) {
  6016. while (reader.nextField()) {
  6017. if (reader.isEndGroup()) {
  6018. break;
  6019. }
  6020. var field = reader.getFieldNumber();
  6021. switch (field) {
  6022. case 1:
  6023. var value = /** @type {string} */ (reader.readString());
  6024. msg.setPhone(value);
  6025. break;
  6026. case 2:
  6027. var value = /** @type {string} */ (reader.readString());
  6028. msg.setPassword(value);
  6029. break;
  6030. case 3:
  6031. var value = /** @type {string} */ (reader.readString());
  6032. msg.setNickname(value);
  6033. break;
  6034. case 4:
  6035. var value = /** @type {!proto.app.v1.UserType} */ (reader.readEnum());
  6036. msg.setUsertype(value);
  6037. break;
  6038. case 5:
  6039. var value = /** @type {string} */ (reader.readString());
  6040. msg.setHeadurl(value);
  6041. break;
  6042. case 6:
  6043. var value = /** @type {!proto.app.v1.User.Sex} */ (reader.readEnum());
  6044. msg.setSex(value);
  6045. break;
  6046. default:
  6047. reader.skipField();
  6048. break;
  6049. }
  6050. }
  6051. return msg;
  6052. };
  6053. /**
  6054. * Serializes the message to binary data (in protobuf wire format).
  6055. * @return {!Uint8Array}
  6056. */
  6057. proto.app.v1.SignUpRequest.prototype.serializeBinary = function() {
  6058. var writer = new jspb.BinaryWriter();
  6059. proto.app.v1.SignUpRequest.serializeBinaryToWriter(this, writer);
  6060. return writer.getResultBuffer();
  6061. };
  6062. /**
  6063. * Serializes the given message to binary data (in protobuf wire
  6064. * format), writing to the given BinaryWriter.
  6065. * @param {!proto.app.v1.SignUpRequest} message
  6066. * @param {!jspb.BinaryWriter} writer
  6067. * @suppress {unusedLocalVariables} f is only used for nested messages
  6068. */
  6069. proto.app.v1.SignUpRequest.serializeBinaryToWriter = function(message, writer) {
  6070. var f = undefined;
  6071. f = message.getPhone();
  6072. if (f.length > 0) {
  6073. writer.writeString(
  6074. 1,
  6075. f
  6076. );
  6077. }
  6078. f = message.getPassword();
  6079. if (f.length > 0) {
  6080. writer.writeString(
  6081. 2,
  6082. f
  6083. );
  6084. }
  6085. f = message.getNickname();
  6086. if (f.length > 0) {
  6087. writer.writeString(
  6088. 3,
  6089. f
  6090. );
  6091. }
  6092. f = message.getUsertype();
  6093. if (f !== 0.0) {
  6094. writer.writeEnum(
  6095. 4,
  6096. f
  6097. );
  6098. }
  6099. f = message.getHeadurl();
  6100. if (f.length > 0) {
  6101. writer.writeString(
  6102. 5,
  6103. f
  6104. );
  6105. }
  6106. f = message.getSex();
  6107. if (f !== 0.0) {
  6108. writer.writeEnum(
  6109. 6,
  6110. f
  6111. );
  6112. }
  6113. };
  6114. /**
  6115. * optional string phone = 1;
  6116. * @return {string}
  6117. */
  6118. proto.app.v1.SignUpRequest.prototype.getPhone = function() {
  6119. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6120. };
  6121. /**
  6122. * @param {string} value
  6123. * @return {!proto.app.v1.SignUpRequest} returns this
  6124. */
  6125. proto.app.v1.SignUpRequest.prototype.setPhone = function(value) {
  6126. return jspb.Message.setProto3StringField(this, 1, value);
  6127. };
  6128. /**
  6129. * optional string password = 2;
  6130. * @return {string}
  6131. */
  6132. proto.app.v1.SignUpRequest.prototype.getPassword = function() {
  6133. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  6134. };
  6135. /**
  6136. * @param {string} value
  6137. * @return {!proto.app.v1.SignUpRequest} returns this
  6138. */
  6139. proto.app.v1.SignUpRequest.prototype.setPassword = function(value) {
  6140. return jspb.Message.setProto3StringField(this, 2, value);
  6141. };
  6142. /**
  6143. * optional string nickname = 3;
  6144. * @return {string}
  6145. */
  6146. proto.app.v1.SignUpRequest.prototype.getNickname = function() {
  6147. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  6148. };
  6149. /**
  6150. * @param {string} value
  6151. * @return {!proto.app.v1.SignUpRequest} returns this
  6152. */
  6153. proto.app.v1.SignUpRequest.prototype.setNickname = function(value) {
  6154. return jspb.Message.setProto3StringField(this, 3, value);
  6155. };
  6156. /**
  6157. * optional UserType userType = 4;
  6158. * @return {!proto.app.v1.UserType}
  6159. */
  6160. proto.app.v1.SignUpRequest.prototype.getUsertype = function() {
  6161. return /** @type {!proto.app.v1.UserType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  6162. };
  6163. /**
  6164. * @param {!proto.app.v1.UserType} value
  6165. * @return {!proto.app.v1.SignUpRequest} returns this
  6166. */
  6167. proto.app.v1.SignUpRequest.prototype.setUsertype = function(value) {
  6168. return jspb.Message.setProto3EnumField(this, 4, value);
  6169. };
  6170. /**
  6171. * optional string headUrl = 5;
  6172. * @return {string}
  6173. */
  6174. proto.app.v1.SignUpRequest.prototype.getHeadurl = function() {
  6175. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  6176. };
  6177. /**
  6178. * @param {string} value
  6179. * @return {!proto.app.v1.SignUpRequest} returns this
  6180. */
  6181. proto.app.v1.SignUpRequest.prototype.setHeadurl = function(value) {
  6182. return jspb.Message.setProto3StringField(this, 5, value);
  6183. };
  6184. /**
  6185. * optional User.Sex sex = 6;
  6186. * @return {!proto.app.v1.User.Sex}
  6187. */
  6188. proto.app.v1.SignUpRequest.prototype.getSex = function() {
  6189. return /** @type {!proto.app.v1.User.Sex} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  6190. };
  6191. /**
  6192. * @param {!proto.app.v1.User.Sex} value
  6193. * @return {!proto.app.v1.SignUpRequest} returns this
  6194. */
  6195. proto.app.v1.SignUpRequest.prototype.setSex = function(value) {
  6196. return jspb.Message.setProto3EnumField(this, 6, value);
  6197. };
  6198. if (jspb.Message.GENERATE_TO_OBJECT) {
  6199. /**
  6200. * Creates an object representation of this proto.
  6201. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6202. * Optional fields that are not set will be set to undefined.
  6203. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6204. * For the list of reserved names please see:
  6205. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6206. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6207. * JSPB instance for transitional soy proto support:
  6208. * http://goto/soy-param-migration
  6209. * @return {!Object}
  6210. */
  6211. proto.app.v1.User.prototype.toObject = function(opt_includeInstance) {
  6212. return proto.app.v1.User.toObject(opt_includeInstance, this);
  6213. };
  6214. /**
  6215. * Static version of the {@see toObject} method.
  6216. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6217. * the JSPB instance for transitional soy proto support:
  6218. * http://goto/soy-param-migration
  6219. * @param {!proto.app.v1.User} msg The msg instance to transform.
  6220. * @return {!Object}
  6221. * @suppress {unusedLocalVariables} f is only used for nested messages
  6222. */
  6223. proto.app.v1.User.toObject = function(includeInstance, msg) {
  6224. var f, obj = {
  6225. };
  6226. if (includeInstance) {
  6227. obj.$jspbMessageInstance = msg;
  6228. }
  6229. return obj;
  6230. };
  6231. }
  6232. /**
  6233. * Deserializes binary data (in protobuf wire format).
  6234. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6235. * @return {!proto.app.v1.User}
  6236. */
  6237. proto.app.v1.User.deserializeBinary = function(bytes) {
  6238. var reader = new jspb.BinaryReader(bytes);
  6239. var msg = new proto.app.v1.User;
  6240. return proto.app.v1.User.deserializeBinaryFromReader(msg, reader);
  6241. };
  6242. /**
  6243. * Deserializes binary data (in protobuf wire format) from the
  6244. * given reader into the given message object.
  6245. * @param {!proto.app.v1.User} msg The message object to deserialize into.
  6246. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6247. * @return {!proto.app.v1.User}
  6248. */
  6249. proto.app.v1.User.deserializeBinaryFromReader = function(msg, reader) {
  6250. while (reader.nextField()) {
  6251. if (reader.isEndGroup()) {
  6252. break;
  6253. }
  6254. var field = reader.getFieldNumber();
  6255. switch (field) {
  6256. default:
  6257. reader.skipField();
  6258. break;
  6259. }
  6260. }
  6261. return msg;
  6262. };
  6263. /**
  6264. * Serializes the message to binary data (in protobuf wire format).
  6265. * @return {!Uint8Array}
  6266. */
  6267. proto.app.v1.User.prototype.serializeBinary = function() {
  6268. var writer = new jspb.BinaryWriter();
  6269. proto.app.v1.User.serializeBinaryToWriter(this, writer);
  6270. return writer.getResultBuffer();
  6271. };
  6272. /**
  6273. * Serializes the given message to binary data (in protobuf wire
  6274. * format), writing to the given BinaryWriter.
  6275. * @param {!proto.app.v1.User} message
  6276. * @param {!jspb.BinaryWriter} writer
  6277. * @suppress {unusedLocalVariables} f is only used for nested messages
  6278. */
  6279. proto.app.v1.User.serializeBinaryToWriter = function(message, writer) {
  6280. var f = undefined;
  6281. };
  6282. /**
  6283. * @enum {number}
  6284. */
  6285. proto.app.v1.User.Sex = {
  6286. UNDEFINE: 0,
  6287. MALE: 1,
  6288. FEMALE: 2
  6289. };
  6290. if (jspb.Message.GENERATE_TO_OBJECT) {
  6291. /**
  6292. * Creates an object representation of this proto.
  6293. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6294. * Optional fields that are not set will be set to undefined.
  6295. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6296. * For the list of reserved names please see:
  6297. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6298. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6299. * JSPB instance for transitional soy proto support:
  6300. * http://goto/soy-param-migration
  6301. * @return {!Object}
  6302. */
  6303. proto.app.v1.SignInRequest.prototype.toObject = function(opt_includeInstance) {
  6304. return proto.app.v1.SignInRequest.toObject(opt_includeInstance, this);
  6305. };
  6306. /**
  6307. * Static version of the {@see toObject} method.
  6308. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6309. * the JSPB instance for transitional soy proto support:
  6310. * http://goto/soy-param-migration
  6311. * @param {!proto.app.v1.SignInRequest} msg The msg instance to transform.
  6312. * @return {!Object}
  6313. * @suppress {unusedLocalVariables} f is only used for nested messages
  6314. */
  6315. proto.app.v1.SignInRequest.toObject = function(includeInstance, msg) {
  6316. var f, obj = {
  6317. name: jspb.Message.getFieldWithDefault(msg, 1, ""),
  6318. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  6319. deviceid: jspb.Message.getFieldWithDefault(msg, 3, "")
  6320. };
  6321. if (includeInstance) {
  6322. obj.$jspbMessageInstance = msg;
  6323. }
  6324. return obj;
  6325. };
  6326. }
  6327. /**
  6328. * Deserializes binary data (in protobuf wire format).
  6329. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6330. * @return {!proto.app.v1.SignInRequest}
  6331. */
  6332. proto.app.v1.SignInRequest.deserializeBinary = function(bytes) {
  6333. var reader = new jspb.BinaryReader(bytes);
  6334. var msg = new proto.app.v1.SignInRequest;
  6335. return proto.app.v1.SignInRequest.deserializeBinaryFromReader(msg, reader);
  6336. };
  6337. /**
  6338. * Deserializes binary data (in protobuf wire format) from the
  6339. * given reader into the given message object.
  6340. * @param {!proto.app.v1.SignInRequest} msg The message object to deserialize into.
  6341. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6342. * @return {!proto.app.v1.SignInRequest}
  6343. */
  6344. proto.app.v1.SignInRequest.deserializeBinaryFromReader = function(msg, reader) {
  6345. while (reader.nextField()) {
  6346. if (reader.isEndGroup()) {
  6347. break;
  6348. }
  6349. var field = reader.getFieldNumber();
  6350. switch (field) {
  6351. case 1:
  6352. var value = /** @type {string} */ (reader.readString());
  6353. msg.setName(value);
  6354. break;
  6355. case 2:
  6356. var value = /** @type {string} */ (reader.readString());
  6357. msg.setPassword(value);
  6358. break;
  6359. case 3:
  6360. var value = /** @type {string} */ (reader.readString());
  6361. msg.setDeviceid(value);
  6362. break;
  6363. default:
  6364. reader.skipField();
  6365. break;
  6366. }
  6367. }
  6368. return msg;
  6369. };
  6370. /**
  6371. * Serializes the message to binary data (in protobuf wire format).
  6372. * @return {!Uint8Array}
  6373. */
  6374. proto.app.v1.SignInRequest.prototype.serializeBinary = function() {
  6375. var writer = new jspb.BinaryWriter();
  6376. proto.app.v1.SignInRequest.serializeBinaryToWriter(this, writer);
  6377. return writer.getResultBuffer();
  6378. };
  6379. /**
  6380. * Serializes the given message to binary data (in protobuf wire
  6381. * format), writing to the given BinaryWriter.
  6382. * @param {!proto.app.v1.SignInRequest} message
  6383. * @param {!jspb.BinaryWriter} writer
  6384. * @suppress {unusedLocalVariables} f is only used for nested messages
  6385. */
  6386. proto.app.v1.SignInRequest.serializeBinaryToWriter = function(message, writer) {
  6387. var f = undefined;
  6388. f = message.getName();
  6389. if (f.length > 0) {
  6390. writer.writeString(
  6391. 1,
  6392. f
  6393. );
  6394. }
  6395. f = message.getPassword();
  6396. if (f.length > 0) {
  6397. writer.writeString(
  6398. 2,
  6399. f
  6400. );
  6401. }
  6402. f = message.getDeviceid();
  6403. if (f.length > 0) {
  6404. writer.writeString(
  6405. 3,
  6406. f
  6407. );
  6408. }
  6409. };
  6410. /**
  6411. * optional string name = 1;
  6412. * @return {string}
  6413. */
  6414. proto.app.v1.SignInRequest.prototype.getName = function() {
  6415. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6416. };
  6417. /**
  6418. * @param {string} value
  6419. * @return {!proto.app.v1.SignInRequest} returns this
  6420. */
  6421. proto.app.v1.SignInRequest.prototype.setName = function(value) {
  6422. return jspb.Message.setProto3StringField(this, 1, value);
  6423. };
  6424. /**
  6425. * optional string password = 2;
  6426. * @return {string}
  6427. */
  6428. proto.app.v1.SignInRequest.prototype.getPassword = function() {
  6429. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  6430. };
  6431. /**
  6432. * @param {string} value
  6433. * @return {!proto.app.v1.SignInRequest} returns this
  6434. */
  6435. proto.app.v1.SignInRequest.prototype.setPassword = function(value) {
  6436. return jspb.Message.setProto3StringField(this, 2, value);
  6437. };
  6438. /**
  6439. * optional string deviceId = 3;
  6440. * @return {string}
  6441. */
  6442. proto.app.v1.SignInRequest.prototype.getDeviceid = function() {
  6443. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  6444. };
  6445. /**
  6446. * @param {string} value
  6447. * @return {!proto.app.v1.SignInRequest} returns this
  6448. */
  6449. proto.app.v1.SignInRequest.prototype.setDeviceid = function(value) {
  6450. return jspb.Message.setProto3StringField(this, 3, value);
  6451. };
  6452. if (jspb.Message.GENERATE_TO_OBJECT) {
  6453. /**
  6454. * Creates an object representation of this proto.
  6455. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6456. * Optional fields that are not set will be set to undefined.
  6457. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6458. * For the list of reserved names please see:
  6459. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6460. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6461. * JSPB instance for transitional soy proto support:
  6462. * http://goto/soy-param-migration
  6463. * @return {!Object}
  6464. */
  6465. proto.app.v1.GameStartRequest.prototype.toObject = function(opt_includeInstance) {
  6466. return proto.app.v1.GameStartRequest.toObject(opt_includeInstance, this);
  6467. };
  6468. /**
  6469. * Static version of the {@see toObject} method.
  6470. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6471. * the JSPB instance for transitional soy proto support:
  6472. * http://goto/soy-param-migration
  6473. * @param {!proto.app.v1.GameStartRequest} msg The msg instance to transform.
  6474. * @return {!Object}
  6475. * @suppress {unusedLocalVariables} f is only used for nested messages
  6476. */
  6477. proto.app.v1.GameStartRequest.toObject = function(includeInstance, msg) {
  6478. var f, obj = {
  6479. projectId: jspb.Message.getFieldWithDefault(msg, 1, 0),
  6480. mapRouteId: jspb.Message.getFieldWithDefault(msg, 2, 0)
  6481. };
  6482. if (includeInstance) {
  6483. obj.$jspbMessageInstance = msg;
  6484. }
  6485. return obj;
  6486. };
  6487. }
  6488. /**
  6489. * Deserializes binary data (in protobuf wire format).
  6490. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6491. * @return {!proto.app.v1.GameStartRequest}
  6492. */
  6493. proto.app.v1.GameStartRequest.deserializeBinary = function(bytes) {
  6494. var reader = new jspb.BinaryReader(bytes);
  6495. var msg = new proto.app.v1.GameStartRequest;
  6496. return proto.app.v1.GameStartRequest.deserializeBinaryFromReader(msg, reader);
  6497. };
  6498. /**
  6499. * Deserializes binary data (in protobuf wire format) from the
  6500. * given reader into the given message object.
  6501. * @param {!proto.app.v1.GameStartRequest} msg The message object to deserialize into.
  6502. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6503. * @return {!proto.app.v1.GameStartRequest}
  6504. */
  6505. proto.app.v1.GameStartRequest.deserializeBinaryFromReader = function(msg, reader) {
  6506. while (reader.nextField()) {
  6507. if (reader.isEndGroup()) {
  6508. break;
  6509. }
  6510. var field = reader.getFieldNumber();
  6511. switch (field) {
  6512. case 1:
  6513. var value = /** @type {number} */ (reader.readInt64());
  6514. msg.setProjectId(value);
  6515. break;
  6516. case 2:
  6517. var value = /** @type {number} */ (reader.readInt64());
  6518. msg.setMapRouteId(value);
  6519. break;
  6520. default:
  6521. reader.skipField();
  6522. break;
  6523. }
  6524. }
  6525. return msg;
  6526. };
  6527. /**
  6528. * Serializes the message to binary data (in protobuf wire format).
  6529. * @return {!Uint8Array}
  6530. */
  6531. proto.app.v1.GameStartRequest.prototype.serializeBinary = function() {
  6532. var writer = new jspb.BinaryWriter();
  6533. proto.app.v1.GameStartRequest.serializeBinaryToWriter(this, writer);
  6534. return writer.getResultBuffer();
  6535. };
  6536. /**
  6537. * Serializes the given message to binary data (in protobuf wire
  6538. * format), writing to the given BinaryWriter.
  6539. * @param {!proto.app.v1.GameStartRequest} message
  6540. * @param {!jspb.BinaryWriter} writer
  6541. * @suppress {unusedLocalVariables} f is only used for nested messages
  6542. */
  6543. proto.app.v1.GameStartRequest.serializeBinaryToWriter = function(message, writer) {
  6544. var f = undefined;
  6545. f = message.getProjectId();
  6546. if (f !== 0) {
  6547. writer.writeInt64(
  6548. 1,
  6549. f
  6550. );
  6551. }
  6552. f = message.getMapRouteId();
  6553. if (f !== 0) {
  6554. writer.writeInt64(
  6555. 2,
  6556. f
  6557. );
  6558. }
  6559. };
  6560. /**
  6561. * optional int64 project_id = 1;
  6562. * @return {number}
  6563. */
  6564. proto.app.v1.GameStartRequest.prototype.getProjectId = function() {
  6565. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6566. };
  6567. /**
  6568. * @param {number} value
  6569. * @return {!proto.app.v1.GameStartRequest} returns this
  6570. */
  6571. proto.app.v1.GameStartRequest.prototype.setProjectId = function(value) {
  6572. return jspb.Message.setProto3IntField(this, 1, value);
  6573. };
  6574. /**
  6575. * optional int64 map_route_id = 2;
  6576. * @return {number}
  6577. */
  6578. proto.app.v1.GameStartRequest.prototype.getMapRouteId = function() {
  6579. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  6580. };
  6581. /**
  6582. * @param {number} value
  6583. * @return {!proto.app.v1.GameStartRequest} returns this
  6584. */
  6585. proto.app.v1.GameStartRequest.prototype.setMapRouteId = function(value) {
  6586. return jspb.Message.setProto3IntField(this, 2, value);
  6587. };
  6588. if (jspb.Message.GENERATE_TO_OBJECT) {
  6589. /**
  6590. * Creates an object representation of this proto.
  6591. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6592. * Optional fields that are not set will be set to undefined.
  6593. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6594. * For the list of reserved names please see:
  6595. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6596. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6597. * JSPB instance for transitional soy proto support:
  6598. * http://goto/soy-param-migration
  6599. * @return {!Object}
  6600. */
  6601. proto.app.v1.GameSaveUploadRequest.prototype.toObject = function(opt_includeInstance) {
  6602. return proto.app.v1.GameSaveUploadRequest.toObject(opt_includeInstance, this);
  6603. };
  6604. /**
  6605. * Static version of the {@see toObject} method.
  6606. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6607. * the JSPB instance for transitional soy proto support:
  6608. * http://goto/soy-param-migration
  6609. * @param {!proto.app.v1.GameSaveUploadRequest} msg The msg instance to transform.
  6610. * @return {!Object}
  6611. * @suppress {unusedLocalVariables} f is only used for nested messages
  6612. */
  6613. proto.app.v1.GameSaveUploadRequest.toObject = function(includeInstance, msg) {
  6614. var f, obj = {
  6615. gameSave: (f = msg.getGameSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  6616. };
  6617. if (includeInstance) {
  6618. obj.$jspbMessageInstance = msg;
  6619. }
  6620. return obj;
  6621. };
  6622. }
  6623. /**
  6624. * Deserializes binary data (in protobuf wire format).
  6625. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6626. * @return {!proto.app.v1.GameSaveUploadRequest}
  6627. */
  6628. proto.app.v1.GameSaveUploadRequest.deserializeBinary = function(bytes) {
  6629. var reader = new jspb.BinaryReader(bytes);
  6630. var msg = new proto.app.v1.GameSaveUploadRequest;
  6631. return proto.app.v1.GameSaveUploadRequest.deserializeBinaryFromReader(msg, reader);
  6632. };
  6633. /**
  6634. * Deserializes binary data (in protobuf wire format) from the
  6635. * given reader into the given message object.
  6636. * @param {!proto.app.v1.GameSaveUploadRequest} msg The message object to deserialize into.
  6637. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6638. * @return {!proto.app.v1.GameSaveUploadRequest}
  6639. */
  6640. proto.app.v1.GameSaveUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
  6641. while (reader.nextField()) {
  6642. if (reader.isEndGroup()) {
  6643. break;
  6644. }
  6645. var field = reader.getFieldNumber();
  6646. switch (field) {
  6647. case 1:
  6648. var value = new proto.app.v1.GameSave;
  6649. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  6650. msg.setGameSave(value);
  6651. break;
  6652. default:
  6653. reader.skipField();
  6654. break;
  6655. }
  6656. }
  6657. return msg;
  6658. };
  6659. /**
  6660. * Serializes the message to binary data (in protobuf wire format).
  6661. * @return {!Uint8Array}
  6662. */
  6663. proto.app.v1.GameSaveUploadRequest.prototype.serializeBinary = function() {
  6664. var writer = new jspb.BinaryWriter();
  6665. proto.app.v1.GameSaveUploadRequest.serializeBinaryToWriter(this, writer);
  6666. return writer.getResultBuffer();
  6667. };
  6668. /**
  6669. * Serializes the given message to binary data (in protobuf wire
  6670. * format), writing to the given BinaryWriter.
  6671. * @param {!proto.app.v1.GameSaveUploadRequest} message
  6672. * @param {!jspb.BinaryWriter} writer
  6673. * @suppress {unusedLocalVariables} f is only used for nested messages
  6674. */
  6675. proto.app.v1.GameSaveUploadRequest.serializeBinaryToWriter = function(message, writer) {
  6676. var f = undefined;
  6677. f = message.getGameSave();
  6678. if (f != null) {
  6679. writer.writeMessage(
  6680. 1,
  6681. f,
  6682. proto.app.v1.GameSave.serializeBinaryToWriter
  6683. );
  6684. }
  6685. };
  6686. /**
  6687. * optional GameSave game_save = 1;
  6688. * @return {?proto.app.v1.GameSave}
  6689. */
  6690. proto.app.v1.GameSaveUploadRequest.prototype.getGameSave = function() {
  6691. return /** @type{?proto.app.v1.GameSave} */ (
  6692. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 1));
  6693. };
  6694. /**
  6695. * @param {?proto.app.v1.GameSave|undefined} value
  6696. * @return {!proto.app.v1.GameSaveUploadRequest} returns this
  6697. */
  6698. proto.app.v1.GameSaveUploadRequest.prototype.setGameSave = function(value) {
  6699. return jspb.Message.setWrapperField(this, 1, value);
  6700. };
  6701. /**
  6702. * Clears the message field making it undefined.
  6703. * @return {!proto.app.v1.GameSaveUploadRequest} returns this
  6704. */
  6705. proto.app.v1.GameSaveUploadRequest.prototype.clearGameSave = function() {
  6706. return this.setGameSave(undefined);
  6707. };
  6708. /**
  6709. * Returns whether this field is set.
  6710. * @return {boolean}
  6711. */
  6712. proto.app.v1.GameSaveUploadRequest.prototype.hasGameSave = function() {
  6713. return jspb.Message.getField(this, 1) != null;
  6714. };
  6715. if (jspb.Message.GENERATE_TO_OBJECT) {
  6716. /**
  6717. * Creates an object representation of this proto.
  6718. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6719. * Optional fields that are not set will be set to undefined.
  6720. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6721. * For the list of reserved names please see:
  6722. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6723. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6724. * JSPB instance for transitional soy proto support:
  6725. * http://goto/soy-param-migration
  6726. * @return {!Object}
  6727. */
  6728. proto.app.v1.DefaultReply.prototype.toObject = function(opt_includeInstance) {
  6729. return proto.app.v1.DefaultReply.toObject(opt_includeInstance, this);
  6730. };
  6731. /**
  6732. * Static version of the {@see toObject} method.
  6733. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6734. * the JSPB instance for transitional soy proto support:
  6735. * http://goto/soy-param-migration
  6736. * @param {!proto.app.v1.DefaultReply} msg The msg instance to transform.
  6737. * @return {!Object}
  6738. * @suppress {unusedLocalVariables} f is only used for nested messages
  6739. */
  6740. proto.app.v1.DefaultReply.toObject = function(includeInstance, msg) {
  6741. var f, obj = {
  6742. };
  6743. if (includeInstance) {
  6744. obj.$jspbMessageInstance = msg;
  6745. }
  6746. return obj;
  6747. };
  6748. }
  6749. /**
  6750. * Deserializes binary data (in protobuf wire format).
  6751. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6752. * @return {!proto.app.v1.DefaultReply}
  6753. */
  6754. proto.app.v1.DefaultReply.deserializeBinary = function(bytes) {
  6755. var reader = new jspb.BinaryReader(bytes);
  6756. var msg = new proto.app.v1.DefaultReply;
  6757. return proto.app.v1.DefaultReply.deserializeBinaryFromReader(msg, reader);
  6758. };
  6759. /**
  6760. * Deserializes binary data (in protobuf wire format) from the
  6761. * given reader into the given message object.
  6762. * @param {!proto.app.v1.DefaultReply} msg The message object to deserialize into.
  6763. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6764. * @return {!proto.app.v1.DefaultReply}
  6765. */
  6766. proto.app.v1.DefaultReply.deserializeBinaryFromReader = function(msg, reader) {
  6767. while (reader.nextField()) {
  6768. if (reader.isEndGroup()) {
  6769. break;
  6770. }
  6771. var field = reader.getFieldNumber();
  6772. switch (field) {
  6773. default:
  6774. reader.skipField();
  6775. break;
  6776. }
  6777. }
  6778. return msg;
  6779. };
  6780. /**
  6781. * Serializes the message to binary data (in protobuf wire format).
  6782. * @return {!Uint8Array}
  6783. */
  6784. proto.app.v1.DefaultReply.prototype.serializeBinary = function() {
  6785. var writer = new jspb.BinaryWriter();
  6786. proto.app.v1.DefaultReply.serializeBinaryToWriter(this, writer);
  6787. return writer.getResultBuffer();
  6788. };
  6789. /**
  6790. * Serializes the given message to binary data (in protobuf wire
  6791. * format), writing to the given BinaryWriter.
  6792. * @param {!proto.app.v1.DefaultReply} message
  6793. * @param {!jspb.BinaryWriter} writer
  6794. * @suppress {unusedLocalVariables} f is only used for nested messages
  6795. */
  6796. proto.app.v1.DefaultReply.serializeBinaryToWriter = function(message, writer) {
  6797. var f = undefined;
  6798. };
  6799. if (jspb.Message.GENERATE_TO_OBJECT) {
  6800. /**
  6801. * Creates an object representation of this proto.
  6802. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6803. * Optional fields that are not set will be set to undefined.
  6804. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6805. * For the list of reserved names please see:
  6806. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6807. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6808. * JSPB instance for transitional soy proto support:
  6809. * http://goto/soy-param-migration
  6810. * @return {!Object}
  6811. */
  6812. proto.app.v1.SignInReply.prototype.toObject = function(opt_includeInstance) {
  6813. return proto.app.v1.SignInReply.toObject(opt_includeInstance, this);
  6814. };
  6815. /**
  6816. * Static version of the {@see toObject} method.
  6817. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6818. * the JSPB instance for transitional soy proto support:
  6819. * http://goto/soy-param-migration
  6820. * @param {!proto.app.v1.SignInReply} msg The msg instance to transform.
  6821. * @return {!Object}
  6822. * @suppress {unusedLocalVariables} f is only used for nested messages
  6823. */
  6824. proto.app.v1.SignInReply.toObject = function(includeInstance, msg) {
  6825. var f, obj = {
  6826. token: jspb.Message.getFieldWithDefault(msg, 1, "")
  6827. };
  6828. if (includeInstance) {
  6829. obj.$jspbMessageInstance = msg;
  6830. }
  6831. return obj;
  6832. };
  6833. }
  6834. /**
  6835. * Deserializes binary data (in protobuf wire format).
  6836. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6837. * @return {!proto.app.v1.SignInReply}
  6838. */
  6839. proto.app.v1.SignInReply.deserializeBinary = function(bytes) {
  6840. var reader = new jspb.BinaryReader(bytes);
  6841. var msg = new proto.app.v1.SignInReply;
  6842. return proto.app.v1.SignInReply.deserializeBinaryFromReader(msg, reader);
  6843. };
  6844. /**
  6845. * Deserializes binary data (in protobuf wire format) from the
  6846. * given reader into the given message object.
  6847. * @param {!proto.app.v1.SignInReply} msg The message object to deserialize into.
  6848. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6849. * @return {!proto.app.v1.SignInReply}
  6850. */
  6851. proto.app.v1.SignInReply.deserializeBinaryFromReader = function(msg, reader) {
  6852. while (reader.nextField()) {
  6853. if (reader.isEndGroup()) {
  6854. break;
  6855. }
  6856. var field = reader.getFieldNumber();
  6857. switch (field) {
  6858. case 1:
  6859. var value = /** @type {string} */ (reader.readString());
  6860. msg.setToken(value);
  6861. break;
  6862. default:
  6863. reader.skipField();
  6864. break;
  6865. }
  6866. }
  6867. return msg;
  6868. };
  6869. /**
  6870. * Serializes the message to binary data (in protobuf wire format).
  6871. * @return {!Uint8Array}
  6872. */
  6873. proto.app.v1.SignInReply.prototype.serializeBinary = function() {
  6874. var writer = new jspb.BinaryWriter();
  6875. proto.app.v1.SignInReply.serializeBinaryToWriter(this, writer);
  6876. return writer.getResultBuffer();
  6877. };
  6878. /**
  6879. * Serializes the given message to binary data (in protobuf wire
  6880. * format), writing to the given BinaryWriter.
  6881. * @param {!proto.app.v1.SignInReply} message
  6882. * @param {!jspb.BinaryWriter} writer
  6883. * @suppress {unusedLocalVariables} f is only used for nested messages
  6884. */
  6885. proto.app.v1.SignInReply.serializeBinaryToWriter = function(message, writer) {
  6886. var f = undefined;
  6887. f = message.getToken();
  6888. if (f.length > 0) {
  6889. writer.writeString(
  6890. 1,
  6891. f
  6892. );
  6893. }
  6894. };
  6895. /**
  6896. * optional string token = 1;
  6897. * @return {string}
  6898. */
  6899. proto.app.v1.SignInReply.prototype.getToken = function() {
  6900. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  6901. };
  6902. /**
  6903. * @param {string} value
  6904. * @return {!proto.app.v1.SignInReply} returns this
  6905. */
  6906. proto.app.v1.SignInReply.prototype.setToken = function(value) {
  6907. return jspb.Message.setProto3StringField(this, 1, value);
  6908. };
  6909. if (jspb.Message.GENERATE_TO_OBJECT) {
  6910. /**
  6911. * Creates an object representation of this proto.
  6912. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6913. * Optional fields that are not set will be set to undefined.
  6914. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6915. * For the list of reserved names please see:
  6916. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6917. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6918. * JSPB instance for transitional soy proto support:
  6919. * http://goto/soy-param-migration
  6920. * @return {!Object}
  6921. */
  6922. proto.app.v1.HistoryGameDetailReply.prototype.toObject = function(opt_includeInstance) {
  6923. return proto.app.v1.HistoryGameDetailReply.toObject(opt_includeInstance, this);
  6924. };
  6925. /**
  6926. * Static version of the {@see toObject} method.
  6927. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6928. * the JSPB instance for transitional soy proto support:
  6929. * http://goto/soy-param-migration
  6930. * @param {!proto.app.v1.HistoryGameDetailReply} msg The msg instance to transform.
  6931. * @return {!Object}
  6932. * @suppress {unusedLocalVariables} f is only used for nested messages
  6933. */
  6934. proto.app.v1.HistoryGameDetailReply.toObject = function(includeInstance, msg) {
  6935. var f, obj = {
  6936. gameData: (f = msg.getGameData()) && proto.app.v1.GameData.toObject(includeInstance, f),
  6937. gameSave: (f = msg.getGameSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  6938. };
  6939. if (includeInstance) {
  6940. obj.$jspbMessageInstance = msg;
  6941. }
  6942. return obj;
  6943. };
  6944. }
  6945. /**
  6946. * Deserializes binary data (in protobuf wire format).
  6947. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6948. * @return {!proto.app.v1.HistoryGameDetailReply}
  6949. */
  6950. proto.app.v1.HistoryGameDetailReply.deserializeBinary = function(bytes) {
  6951. var reader = new jspb.BinaryReader(bytes);
  6952. var msg = new proto.app.v1.HistoryGameDetailReply;
  6953. return proto.app.v1.HistoryGameDetailReply.deserializeBinaryFromReader(msg, reader);
  6954. };
  6955. /**
  6956. * Deserializes binary data (in protobuf wire format) from the
  6957. * given reader into the given message object.
  6958. * @param {!proto.app.v1.HistoryGameDetailReply} msg The message object to deserialize into.
  6959. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6960. * @return {!proto.app.v1.HistoryGameDetailReply}
  6961. */
  6962. proto.app.v1.HistoryGameDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  6963. while (reader.nextField()) {
  6964. if (reader.isEndGroup()) {
  6965. break;
  6966. }
  6967. var field = reader.getFieldNumber();
  6968. switch (field) {
  6969. case 1:
  6970. var value = new proto.app.v1.GameData;
  6971. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  6972. msg.setGameData(value);
  6973. break;
  6974. case 2:
  6975. var value = new proto.app.v1.GameSave;
  6976. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  6977. msg.setGameSave(value);
  6978. break;
  6979. default:
  6980. reader.skipField();
  6981. break;
  6982. }
  6983. }
  6984. return msg;
  6985. };
  6986. /**
  6987. * Serializes the message to binary data (in protobuf wire format).
  6988. * @return {!Uint8Array}
  6989. */
  6990. proto.app.v1.HistoryGameDetailReply.prototype.serializeBinary = function() {
  6991. var writer = new jspb.BinaryWriter();
  6992. proto.app.v1.HistoryGameDetailReply.serializeBinaryToWriter(this, writer);
  6993. return writer.getResultBuffer();
  6994. };
  6995. /**
  6996. * Serializes the given message to binary data (in protobuf wire
  6997. * format), writing to the given BinaryWriter.
  6998. * @param {!proto.app.v1.HistoryGameDetailReply} message
  6999. * @param {!jspb.BinaryWriter} writer
  7000. * @suppress {unusedLocalVariables} f is only used for nested messages
  7001. */
  7002. proto.app.v1.HistoryGameDetailReply.serializeBinaryToWriter = function(message, writer) {
  7003. var f = undefined;
  7004. f = message.getGameData();
  7005. if (f != null) {
  7006. writer.writeMessage(
  7007. 1,
  7008. f,
  7009. proto.app.v1.GameData.serializeBinaryToWriter
  7010. );
  7011. }
  7012. f = message.getGameSave();
  7013. if (f != null) {
  7014. writer.writeMessage(
  7015. 2,
  7016. f,
  7017. proto.app.v1.GameSave.serializeBinaryToWriter
  7018. );
  7019. }
  7020. };
  7021. /**
  7022. * optional GameData game_data = 1;
  7023. * @return {?proto.app.v1.GameData}
  7024. */
  7025. proto.app.v1.HistoryGameDetailReply.prototype.getGameData = function() {
  7026. return /** @type{?proto.app.v1.GameData} */ (
  7027. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  7028. };
  7029. /**
  7030. * @param {?proto.app.v1.GameData|undefined} value
  7031. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7032. */
  7033. proto.app.v1.HistoryGameDetailReply.prototype.setGameData = function(value) {
  7034. return jspb.Message.setWrapperField(this, 1, value);
  7035. };
  7036. /**
  7037. * Clears the message field making it undefined.
  7038. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7039. */
  7040. proto.app.v1.HistoryGameDetailReply.prototype.clearGameData = function() {
  7041. return this.setGameData(undefined);
  7042. };
  7043. /**
  7044. * Returns whether this field is set.
  7045. * @return {boolean}
  7046. */
  7047. proto.app.v1.HistoryGameDetailReply.prototype.hasGameData = function() {
  7048. return jspb.Message.getField(this, 1) != null;
  7049. };
  7050. /**
  7051. * optional GameSave game_save = 2;
  7052. * @return {?proto.app.v1.GameSave}
  7053. */
  7054. proto.app.v1.HistoryGameDetailReply.prototype.getGameSave = function() {
  7055. return /** @type{?proto.app.v1.GameSave} */ (
  7056. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 2));
  7057. };
  7058. /**
  7059. * @param {?proto.app.v1.GameSave|undefined} value
  7060. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7061. */
  7062. proto.app.v1.HistoryGameDetailReply.prototype.setGameSave = function(value) {
  7063. return jspb.Message.setWrapperField(this, 2, value);
  7064. };
  7065. /**
  7066. * Clears the message field making it undefined.
  7067. * @return {!proto.app.v1.HistoryGameDetailReply} returns this
  7068. */
  7069. proto.app.v1.HistoryGameDetailReply.prototype.clearGameSave = function() {
  7070. return this.setGameSave(undefined);
  7071. };
  7072. /**
  7073. * Returns whether this field is set.
  7074. * @return {boolean}
  7075. */
  7076. proto.app.v1.HistoryGameDetailReply.prototype.hasGameSave = function() {
  7077. return jspb.Message.getField(this, 2) != null;
  7078. };
  7079. /**
  7080. * List of repeated fields within this message type.
  7081. * @private {!Array<number>}
  7082. * @const
  7083. */
  7084. proto.app.v1.MyHistoryGameReply.repeatedFields_ = [1];
  7085. if (jspb.Message.GENERATE_TO_OBJECT) {
  7086. /**
  7087. * Creates an object representation of this proto.
  7088. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7089. * Optional fields that are not set will be set to undefined.
  7090. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7091. * For the list of reserved names please see:
  7092. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7093. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7094. * JSPB instance for transitional soy proto support:
  7095. * http://goto/soy-param-migration
  7096. * @return {!Object}
  7097. */
  7098. proto.app.v1.MyHistoryGameReply.prototype.toObject = function(opt_includeInstance) {
  7099. return proto.app.v1.MyHistoryGameReply.toObject(opt_includeInstance, this);
  7100. };
  7101. /**
  7102. * Static version of the {@see toObject} method.
  7103. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7104. * the JSPB instance for transitional soy proto support:
  7105. * http://goto/soy-param-migration
  7106. * @param {!proto.app.v1.MyHistoryGameReply} msg The msg instance to transform.
  7107. * @return {!Object}
  7108. * @suppress {unusedLocalVariables} f is only used for nested messages
  7109. */
  7110. proto.app.v1.MyHistoryGameReply.toObject = function(includeInstance, msg) {
  7111. var f, obj = {
  7112. gamesList: jspb.Message.toObjectList(msg.getGamesList(),
  7113. proto.app.v1.GameHistory.toObject, includeInstance)
  7114. };
  7115. if (includeInstance) {
  7116. obj.$jspbMessageInstance = msg;
  7117. }
  7118. return obj;
  7119. };
  7120. }
  7121. /**
  7122. * Deserializes binary data (in protobuf wire format).
  7123. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7124. * @return {!proto.app.v1.MyHistoryGameReply}
  7125. */
  7126. proto.app.v1.MyHistoryGameReply.deserializeBinary = function(bytes) {
  7127. var reader = new jspb.BinaryReader(bytes);
  7128. var msg = new proto.app.v1.MyHistoryGameReply;
  7129. return proto.app.v1.MyHistoryGameReply.deserializeBinaryFromReader(msg, reader);
  7130. };
  7131. /**
  7132. * Deserializes binary data (in protobuf wire format) from the
  7133. * given reader into the given message object.
  7134. * @param {!proto.app.v1.MyHistoryGameReply} msg The message object to deserialize into.
  7135. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7136. * @return {!proto.app.v1.MyHistoryGameReply}
  7137. */
  7138. proto.app.v1.MyHistoryGameReply.deserializeBinaryFromReader = function(msg, reader) {
  7139. while (reader.nextField()) {
  7140. if (reader.isEndGroup()) {
  7141. break;
  7142. }
  7143. var field = reader.getFieldNumber();
  7144. switch (field) {
  7145. case 1:
  7146. var value = new proto.app.v1.GameHistory;
  7147. reader.readMessage(value,proto.app.v1.GameHistory.deserializeBinaryFromReader);
  7148. msg.addGames(value);
  7149. break;
  7150. default:
  7151. reader.skipField();
  7152. break;
  7153. }
  7154. }
  7155. return msg;
  7156. };
  7157. /**
  7158. * Serializes the message to binary data (in protobuf wire format).
  7159. * @return {!Uint8Array}
  7160. */
  7161. proto.app.v1.MyHistoryGameReply.prototype.serializeBinary = function() {
  7162. var writer = new jspb.BinaryWriter();
  7163. proto.app.v1.MyHistoryGameReply.serializeBinaryToWriter(this, writer);
  7164. return writer.getResultBuffer();
  7165. };
  7166. /**
  7167. * Serializes the given message to binary data (in protobuf wire
  7168. * format), writing to the given BinaryWriter.
  7169. * @param {!proto.app.v1.MyHistoryGameReply} message
  7170. * @param {!jspb.BinaryWriter} writer
  7171. * @suppress {unusedLocalVariables} f is only used for nested messages
  7172. */
  7173. proto.app.v1.MyHistoryGameReply.serializeBinaryToWriter = function(message, writer) {
  7174. var f = undefined;
  7175. f = message.getGamesList();
  7176. if (f.length > 0) {
  7177. writer.writeRepeatedMessage(
  7178. 1,
  7179. f,
  7180. proto.app.v1.GameHistory.serializeBinaryToWriter
  7181. );
  7182. }
  7183. };
  7184. /**
  7185. * repeated GameHistory games = 1;
  7186. * @return {!Array<!proto.app.v1.GameHistory>}
  7187. */
  7188. proto.app.v1.MyHistoryGameReply.prototype.getGamesList = function() {
  7189. return /** @type{!Array<!proto.app.v1.GameHistory>} */ (
  7190. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.GameHistory, 1));
  7191. };
  7192. /**
  7193. * @param {!Array<!proto.app.v1.GameHistory>} value
  7194. * @return {!proto.app.v1.MyHistoryGameReply} returns this
  7195. */
  7196. proto.app.v1.MyHistoryGameReply.prototype.setGamesList = function(value) {
  7197. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  7198. };
  7199. /**
  7200. * @param {!proto.app.v1.GameHistory=} opt_value
  7201. * @param {number=} opt_index
  7202. * @return {!proto.app.v1.GameHistory}
  7203. */
  7204. proto.app.v1.MyHistoryGameReply.prototype.addGames = function(opt_value, opt_index) {
  7205. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.GameHistory, opt_index);
  7206. };
  7207. /**
  7208. * Clears the list making it empty but non-null.
  7209. * @return {!proto.app.v1.MyHistoryGameReply} returns this
  7210. */
  7211. proto.app.v1.MyHistoryGameReply.prototype.clearGamesList = function() {
  7212. return this.setGamesList([]);
  7213. };
  7214. if (jspb.Message.GENERATE_TO_OBJECT) {
  7215. /**
  7216. * Creates an object representation of this proto.
  7217. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7218. * Optional fields that are not set will be set to undefined.
  7219. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7220. * For the list of reserved names please see:
  7221. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7222. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7223. * JSPB instance for transitional soy proto support:
  7224. * http://goto/soy-param-migration
  7225. * @return {!Object}
  7226. */
  7227. proto.app.v1.ProviderInfoSimple.prototype.toObject = function(opt_includeInstance) {
  7228. return proto.app.v1.ProviderInfoSimple.toObject(opt_includeInstance, this);
  7229. };
  7230. /**
  7231. * Static version of the {@see toObject} method.
  7232. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7233. * the JSPB instance for transitional soy proto support:
  7234. * http://goto/soy-param-migration
  7235. * @param {!proto.app.v1.ProviderInfoSimple} msg The msg instance to transform.
  7236. * @return {!Object}
  7237. * @suppress {unusedLocalVariables} f is only used for nested messages
  7238. */
  7239. proto.app.v1.ProviderInfoSimple.toObject = function(includeInstance, msg) {
  7240. var f, obj = {
  7241. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  7242. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  7243. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  7244. address: jspb.Message.getFieldWithDefault(msg, 4, ""),
  7245. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  7246. distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
  7247. isOpen: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
  7248. projectNum: jspb.Message.getFieldWithDefault(msg, 8, 0),
  7249. phone: jspb.Message.getFieldWithDefault(msg, 9, "")
  7250. };
  7251. if (includeInstance) {
  7252. obj.$jspbMessageInstance = msg;
  7253. }
  7254. return obj;
  7255. };
  7256. }
  7257. /**
  7258. * Deserializes binary data (in protobuf wire format).
  7259. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7260. * @return {!proto.app.v1.ProviderInfoSimple}
  7261. */
  7262. proto.app.v1.ProviderInfoSimple.deserializeBinary = function(bytes) {
  7263. var reader = new jspb.BinaryReader(bytes);
  7264. var msg = new proto.app.v1.ProviderInfoSimple;
  7265. return proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader(msg, reader);
  7266. };
  7267. /**
  7268. * Deserializes binary data (in protobuf wire format) from the
  7269. * given reader into the given message object.
  7270. * @param {!proto.app.v1.ProviderInfoSimple} msg The message object to deserialize into.
  7271. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7272. * @return {!proto.app.v1.ProviderInfoSimple}
  7273. */
  7274. proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader = function(msg, reader) {
  7275. while (reader.nextField()) {
  7276. if (reader.isEndGroup()) {
  7277. break;
  7278. }
  7279. var field = reader.getFieldNumber();
  7280. switch (field) {
  7281. case 1:
  7282. var value = /** @type {number} */ (reader.readInt64());
  7283. msg.setId(value);
  7284. break;
  7285. case 2:
  7286. var value = /** @type {string} */ (reader.readString());
  7287. msg.setName(value);
  7288. break;
  7289. case 3:
  7290. var value = new proto.app.v1.Position;
  7291. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  7292. msg.setPosition(value);
  7293. break;
  7294. case 4:
  7295. var value = /** @type {string} */ (reader.readString());
  7296. msg.setAddress(value);
  7297. break;
  7298. case 5:
  7299. var value = new proto.app.v1.NetImage;
  7300. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  7301. msg.setImage(value);
  7302. break;
  7303. case 6:
  7304. var value = /** @type {number} */ (reader.readDouble());
  7305. msg.setDistance(value);
  7306. break;
  7307. case 7:
  7308. var value = /** @type {boolean} */ (reader.readBool());
  7309. msg.setIsOpen(value);
  7310. break;
  7311. case 8:
  7312. var value = /** @type {number} */ (reader.readInt32());
  7313. msg.setProjectNum(value);
  7314. break;
  7315. case 9:
  7316. var value = /** @type {string} */ (reader.readString());
  7317. msg.setPhone(value);
  7318. break;
  7319. default:
  7320. reader.skipField();
  7321. break;
  7322. }
  7323. }
  7324. return msg;
  7325. };
  7326. /**
  7327. * Serializes the message to binary data (in protobuf wire format).
  7328. * @return {!Uint8Array}
  7329. */
  7330. proto.app.v1.ProviderInfoSimple.prototype.serializeBinary = function() {
  7331. var writer = new jspb.BinaryWriter();
  7332. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter(this, writer);
  7333. return writer.getResultBuffer();
  7334. };
  7335. /**
  7336. * Serializes the given message to binary data (in protobuf wire
  7337. * format), writing to the given BinaryWriter.
  7338. * @param {!proto.app.v1.ProviderInfoSimple} message
  7339. * @param {!jspb.BinaryWriter} writer
  7340. * @suppress {unusedLocalVariables} f is only used for nested messages
  7341. */
  7342. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter = function(message, writer) {
  7343. var f = undefined;
  7344. f = message.getId();
  7345. if (f !== 0) {
  7346. writer.writeInt64(
  7347. 1,
  7348. f
  7349. );
  7350. }
  7351. f = message.getName();
  7352. if (f.length > 0) {
  7353. writer.writeString(
  7354. 2,
  7355. f
  7356. );
  7357. }
  7358. f = message.getPosition();
  7359. if (f != null) {
  7360. writer.writeMessage(
  7361. 3,
  7362. f,
  7363. proto.app.v1.Position.serializeBinaryToWriter
  7364. );
  7365. }
  7366. f = message.getAddress();
  7367. if (f.length > 0) {
  7368. writer.writeString(
  7369. 4,
  7370. f
  7371. );
  7372. }
  7373. f = message.getImage();
  7374. if (f != null) {
  7375. writer.writeMessage(
  7376. 5,
  7377. f,
  7378. proto.app.v1.NetImage.serializeBinaryToWriter
  7379. );
  7380. }
  7381. f = message.getDistance();
  7382. if (f !== 0.0) {
  7383. writer.writeDouble(
  7384. 6,
  7385. f
  7386. );
  7387. }
  7388. f = message.getIsOpen();
  7389. if (f) {
  7390. writer.writeBool(
  7391. 7,
  7392. f
  7393. );
  7394. }
  7395. f = message.getProjectNum();
  7396. if (f !== 0) {
  7397. writer.writeInt32(
  7398. 8,
  7399. f
  7400. );
  7401. }
  7402. f = message.getPhone();
  7403. if (f.length > 0) {
  7404. writer.writeString(
  7405. 9,
  7406. f
  7407. );
  7408. }
  7409. };
  7410. /**
  7411. * optional int64 id = 1;
  7412. * @return {number}
  7413. */
  7414. proto.app.v1.ProviderInfoSimple.prototype.getId = function() {
  7415. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  7416. };
  7417. /**
  7418. * @param {number} value
  7419. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7420. */
  7421. proto.app.v1.ProviderInfoSimple.prototype.setId = function(value) {
  7422. return jspb.Message.setProto3IntField(this, 1, value);
  7423. };
  7424. /**
  7425. * optional string name = 2;
  7426. * @return {string}
  7427. */
  7428. proto.app.v1.ProviderInfoSimple.prototype.getName = function() {
  7429. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  7430. };
  7431. /**
  7432. * @param {string} value
  7433. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7434. */
  7435. proto.app.v1.ProviderInfoSimple.prototype.setName = function(value) {
  7436. return jspb.Message.setProto3StringField(this, 2, value);
  7437. };
  7438. /**
  7439. * optional Position position = 3;
  7440. * @return {?proto.app.v1.Position}
  7441. */
  7442. proto.app.v1.ProviderInfoSimple.prototype.getPosition = function() {
  7443. return /** @type{?proto.app.v1.Position} */ (
  7444. jspb.Message.getWrapperField(this, proto.app.v1.Position, 3));
  7445. };
  7446. /**
  7447. * @param {?proto.app.v1.Position|undefined} value
  7448. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7449. */
  7450. proto.app.v1.ProviderInfoSimple.prototype.setPosition = function(value) {
  7451. return jspb.Message.setWrapperField(this, 3, value);
  7452. };
  7453. /**
  7454. * Clears the message field making it undefined.
  7455. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7456. */
  7457. proto.app.v1.ProviderInfoSimple.prototype.clearPosition = function() {
  7458. return this.setPosition(undefined);
  7459. };
  7460. /**
  7461. * Returns whether this field is set.
  7462. * @return {boolean}
  7463. */
  7464. proto.app.v1.ProviderInfoSimple.prototype.hasPosition = function() {
  7465. return jspb.Message.getField(this, 3) != null;
  7466. };
  7467. /**
  7468. * optional string address = 4;
  7469. * @return {string}
  7470. */
  7471. proto.app.v1.ProviderInfoSimple.prototype.getAddress = function() {
  7472. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  7473. };
  7474. /**
  7475. * @param {string} value
  7476. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7477. */
  7478. proto.app.v1.ProviderInfoSimple.prototype.setAddress = function(value) {
  7479. return jspb.Message.setProto3StringField(this, 4, value);
  7480. };
  7481. /**
  7482. * optional NetImage image = 5;
  7483. * @return {?proto.app.v1.NetImage}
  7484. */
  7485. proto.app.v1.ProviderInfoSimple.prototype.getImage = function() {
  7486. return /** @type{?proto.app.v1.NetImage} */ (
  7487. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 5));
  7488. };
  7489. /**
  7490. * @param {?proto.app.v1.NetImage|undefined} value
  7491. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7492. */
  7493. proto.app.v1.ProviderInfoSimple.prototype.setImage = function(value) {
  7494. return jspb.Message.setWrapperField(this, 5, value);
  7495. };
  7496. /**
  7497. * Clears the message field making it undefined.
  7498. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7499. */
  7500. proto.app.v1.ProviderInfoSimple.prototype.clearImage = function() {
  7501. return this.setImage(undefined);
  7502. };
  7503. /**
  7504. * Returns whether this field is set.
  7505. * @return {boolean}
  7506. */
  7507. proto.app.v1.ProviderInfoSimple.prototype.hasImage = function() {
  7508. return jspb.Message.getField(this, 5) != null;
  7509. };
  7510. /**
  7511. * optional double distance = 6;
  7512. * @return {number}
  7513. */
  7514. proto.app.v1.ProviderInfoSimple.prototype.getDistance = function() {
  7515. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
  7516. };
  7517. /**
  7518. * @param {number} value
  7519. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7520. */
  7521. proto.app.v1.ProviderInfoSimple.prototype.setDistance = function(value) {
  7522. return jspb.Message.setProto3FloatField(this, 6, value);
  7523. };
  7524. /**
  7525. * optional bool is_open = 7;
  7526. * @return {boolean}
  7527. */
  7528. proto.app.v1.ProviderInfoSimple.prototype.getIsOpen = function() {
  7529. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
  7530. };
  7531. /**
  7532. * @param {boolean} value
  7533. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7534. */
  7535. proto.app.v1.ProviderInfoSimple.prototype.setIsOpen = function(value) {
  7536. return jspb.Message.setProto3BooleanField(this, 7, value);
  7537. };
  7538. /**
  7539. * optional int32 project_num = 8;
  7540. * @return {number}
  7541. */
  7542. proto.app.v1.ProviderInfoSimple.prototype.getProjectNum = function() {
  7543. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
  7544. };
  7545. /**
  7546. * @param {number} value
  7547. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7548. */
  7549. proto.app.v1.ProviderInfoSimple.prototype.setProjectNum = function(value) {
  7550. return jspb.Message.setProto3IntField(this, 8, value);
  7551. };
  7552. /**
  7553. * optional string phone = 9;
  7554. * @return {string}
  7555. */
  7556. proto.app.v1.ProviderInfoSimple.prototype.getPhone = function() {
  7557. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
  7558. };
  7559. /**
  7560. * @param {string} value
  7561. * @return {!proto.app.v1.ProviderInfoSimple} returns this
  7562. */
  7563. proto.app.v1.ProviderInfoSimple.prototype.setPhone = function(value) {
  7564. return jspb.Message.setProto3StringField(this, 9, value);
  7565. };
  7566. /**
  7567. * List of repeated fields within this message type.
  7568. * @private {!Array<number>}
  7569. * @const
  7570. */
  7571. proto.app.v1.ProviderListReply.repeatedFields_ = [1];
  7572. if (jspb.Message.GENERATE_TO_OBJECT) {
  7573. /**
  7574. * Creates an object representation of this proto.
  7575. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7576. * Optional fields that are not set will be set to undefined.
  7577. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7578. * For the list of reserved names please see:
  7579. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7580. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7581. * JSPB instance for transitional soy proto support:
  7582. * http://goto/soy-param-migration
  7583. * @return {!Object}
  7584. */
  7585. proto.app.v1.ProviderListReply.prototype.toObject = function(opt_includeInstance) {
  7586. return proto.app.v1.ProviderListReply.toObject(opt_includeInstance, this);
  7587. };
  7588. /**
  7589. * Static version of the {@see toObject} method.
  7590. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7591. * the JSPB instance for transitional soy proto support:
  7592. * http://goto/soy-param-migration
  7593. * @param {!proto.app.v1.ProviderListReply} msg The msg instance to transform.
  7594. * @return {!Object}
  7595. * @suppress {unusedLocalVariables} f is only used for nested messages
  7596. */
  7597. proto.app.v1.ProviderListReply.toObject = function(includeInstance, msg) {
  7598. var f, obj = {
  7599. listList: jspb.Message.toObjectList(msg.getListList(),
  7600. proto.app.v1.ProviderInfoSimple.toObject, includeInstance)
  7601. };
  7602. if (includeInstance) {
  7603. obj.$jspbMessageInstance = msg;
  7604. }
  7605. return obj;
  7606. };
  7607. }
  7608. /**
  7609. * Deserializes binary data (in protobuf wire format).
  7610. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7611. * @return {!proto.app.v1.ProviderListReply}
  7612. */
  7613. proto.app.v1.ProviderListReply.deserializeBinary = function(bytes) {
  7614. var reader = new jspb.BinaryReader(bytes);
  7615. var msg = new proto.app.v1.ProviderListReply;
  7616. return proto.app.v1.ProviderListReply.deserializeBinaryFromReader(msg, reader);
  7617. };
  7618. /**
  7619. * Deserializes binary data (in protobuf wire format) from the
  7620. * given reader into the given message object.
  7621. * @param {!proto.app.v1.ProviderListReply} msg The message object to deserialize into.
  7622. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7623. * @return {!proto.app.v1.ProviderListReply}
  7624. */
  7625. proto.app.v1.ProviderListReply.deserializeBinaryFromReader = function(msg, reader) {
  7626. while (reader.nextField()) {
  7627. if (reader.isEndGroup()) {
  7628. break;
  7629. }
  7630. var field = reader.getFieldNumber();
  7631. switch (field) {
  7632. case 1:
  7633. var value = new proto.app.v1.ProviderInfoSimple;
  7634. reader.readMessage(value,proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader);
  7635. msg.addList(value);
  7636. break;
  7637. default:
  7638. reader.skipField();
  7639. break;
  7640. }
  7641. }
  7642. return msg;
  7643. };
  7644. /**
  7645. * Serializes the message to binary data (in protobuf wire format).
  7646. * @return {!Uint8Array}
  7647. */
  7648. proto.app.v1.ProviderListReply.prototype.serializeBinary = function() {
  7649. var writer = new jspb.BinaryWriter();
  7650. proto.app.v1.ProviderListReply.serializeBinaryToWriter(this, writer);
  7651. return writer.getResultBuffer();
  7652. };
  7653. /**
  7654. * Serializes the given message to binary data (in protobuf wire
  7655. * format), writing to the given BinaryWriter.
  7656. * @param {!proto.app.v1.ProviderListReply} message
  7657. * @param {!jspb.BinaryWriter} writer
  7658. * @suppress {unusedLocalVariables} f is only used for nested messages
  7659. */
  7660. proto.app.v1.ProviderListReply.serializeBinaryToWriter = function(message, writer) {
  7661. var f = undefined;
  7662. f = message.getListList();
  7663. if (f.length > 0) {
  7664. writer.writeRepeatedMessage(
  7665. 1,
  7666. f,
  7667. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter
  7668. );
  7669. }
  7670. };
  7671. /**
  7672. * repeated ProviderInfoSimple list = 1;
  7673. * @return {!Array<!proto.app.v1.ProviderInfoSimple>}
  7674. */
  7675. proto.app.v1.ProviderListReply.prototype.getListList = function() {
  7676. return /** @type{!Array<!proto.app.v1.ProviderInfoSimple>} */ (
  7677. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ProviderInfoSimple, 1));
  7678. };
  7679. /**
  7680. * @param {!Array<!proto.app.v1.ProviderInfoSimple>} value
  7681. * @return {!proto.app.v1.ProviderListReply} returns this
  7682. */
  7683. proto.app.v1.ProviderListReply.prototype.setListList = function(value) {
  7684. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  7685. };
  7686. /**
  7687. * @param {!proto.app.v1.ProviderInfoSimple=} opt_value
  7688. * @param {number=} opt_index
  7689. * @return {!proto.app.v1.ProviderInfoSimple}
  7690. */
  7691. proto.app.v1.ProviderListReply.prototype.addList = function(opt_value, opt_index) {
  7692. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ProviderInfoSimple, opt_index);
  7693. };
  7694. /**
  7695. * Clears the list making it empty but non-null.
  7696. * @return {!proto.app.v1.ProviderListReply} returns this
  7697. */
  7698. proto.app.v1.ProviderListReply.prototype.clearListList = function() {
  7699. return this.setListList([]);
  7700. };
  7701. if (jspb.Message.GENERATE_TO_OBJECT) {
  7702. /**
  7703. * Creates an object representation of this proto.
  7704. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7705. * Optional fields that are not set will be set to undefined.
  7706. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7707. * For the list of reserved names please see:
  7708. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7709. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7710. * JSPB instance for transitional soy proto support:
  7711. * http://goto/soy-param-migration
  7712. * @return {!Object}
  7713. */
  7714. proto.app.v1.ProviderDetailReply.prototype.toObject = function(opt_includeInstance) {
  7715. return proto.app.v1.ProviderDetailReply.toObject(opt_includeInstance, this);
  7716. };
  7717. /**
  7718. * Static version of the {@see toObject} method.
  7719. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7720. * the JSPB instance for transitional soy proto support:
  7721. * http://goto/soy-param-migration
  7722. * @param {!proto.app.v1.ProviderDetailReply} msg The msg instance to transform.
  7723. * @return {!Object}
  7724. * @suppress {unusedLocalVariables} f is only used for nested messages
  7725. */
  7726. proto.app.v1.ProviderDetailReply.toObject = function(includeInstance, msg) {
  7727. var f, obj = {
  7728. base: (f = msg.getBase()) && proto.app.v1.ProviderInfoSimple.toObject(includeInstance, f),
  7729. openBegin: (f = msg.getOpenBegin()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  7730. openEnd: (f = msg.getOpenEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  7731. telephone: jspb.Message.getFieldWithDefault(msg, 4, ""),
  7732. introduction: jspb.Message.getFieldWithDefault(msg, 5, "")
  7733. };
  7734. if (includeInstance) {
  7735. obj.$jspbMessageInstance = msg;
  7736. }
  7737. return obj;
  7738. };
  7739. }
  7740. /**
  7741. * Deserializes binary data (in protobuf wire format).
  7742. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  7743. * @return {!proto.app.v1.ProviderDetailReply}
  7744. */
  7745. proto.app.v1.ProviderDetailReply.deserializeBinary = function(bytes) {
  7746. var reader = new jspb.BinaryReader(bytes);
  7747. var msg = new proto.app.v1.ProviderDetailReply;
  7748. return proto.app.v1.ProviderDetailReply.deserializeBinaryFromReader(msg, reader);
  7749. };
  7750. /**
  7751. * Deserializes binary data (in protobuf wire format) from the
  7752. * given reader into the given message object.
  7753. * @param {!proto.app.v1.ProviderDetailReply} msg The message object to deserialize into.
  7754. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  7755. * @return {!proto.app.v1.ProviderDetailReply}
  7756. */
  7757. proto.app.v1.ProviderDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  7758. while (reader.nextField()) {
  7759. if (reader.isEndGroup()) {
  7760. break;
  7761. }
  7762. var field = reader.getFieldNumber();
  7763. switch (field) {
  7764. case 1:
  7765. var value = new proto.app.v1.ProviderInfoSimple;
  7766. reader.readMessage(value,proto.app.v1.ProviderInfoSimple.deserializeBinaryFromReader);
  7767. msg.setBase(value);
  7768. break;
  7769. case 2:
  7770. var value = new google_protobuf_timestamp_pb.Timestamp;
  7771. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  7772. msg.setOpenBegin(value);
  7773. break;
  7774. case 3:
  7775. var value = new google_protobuf_timestamp_pb.Timestamp;
  7776. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  7777. msg.setOpenEnd(value);
  7778. break;
  7779. case 4:
  7780. var value = /** @type {string} */ (reader.readString());
  7781. msg.setTelephone(value);
  7782. break;
  7783. case 5:
  7784. var value = /** @type {string} */ (reader.readString());
  7785. msg.setIntroduction(value);
  7786. break;
  7787. default:
  7788. reader.skipField();
  7789. break;
  7790. }
  7791. }
  7792. return msg;
  7793. };
  7794. /**
  7795. * Serializes the message to binary data (in protobuf wire format).
  7796. * @return {!Uint8Array}
  7797. */
  7798. proto.app.v1.ProviderDetailReply.prototype.serializeBinary = function() {
  7799. var writer = new jspb.BinaryWriter();
  7800. proto.app.v1.ProviderDetailReply.serializeBinaryToWriter(this, writer);
  7801. return writer.getResultBuffer();
  7802. };
  7803. /**
  7804. * Serializes the given message to binary data (in protobuf wire
  7805. * format), writing to the given BinaryWriter.
  7806. * @param {!proto.app.v1.ProviderDetailReply} message
  7807. * @param {!jspb.BinaryWriter} writer
  7808. * @suppress {unusedLocalVariables} f is only used for nested messages
  7809. */
  7810. proto.app.v1.ProviderDetailReply.serializeBinaryToWriter = function(message, writer) {
  7811. var f = undefined;
  7812. f = message.getBase();
  7813. if (f != null) {
  7814. writer.writeMessage(
  7815. 1,
  7816. f,
  7817. proto.app.v1.ProviderInfoSimple.serializeBinaryToWriter
  7818. );
  7819. }
  7820. f = message.getOpenBegin();
  7821. if (f != null) {
  7822. writer.writeMessage(
  7823. 2,
  7824. f,
  7825. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  7826. );
  7827. }
  7828. f = message.getOpenEnd();
  7829. if (f != null) {
  7830. writer.writeMessage(
  7831. 3,
  7832. f,
  7833. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  7834. );
  7835. }
  7836. f = message.getTelephone();
  7837. if (f.length > 0) {
  7838. writer.writeString(
  7839. 4,
  7840. f
  7841. );
  7842. }
  7843. f = message.getIntroduction();
  7844. if (f.length > 0) {
  7845. writer.writeString(
  7846. 5,
  7847. f
  7848. );
  7849. }
  7850. };
  7851. /**
  7852. * optional ProviderInfoSimple base = 1;
  7853. * @return {?proto.app.v1.ProviderInfoSimple}
  7854. */
  7855. proto.app.v1.ProviderDetailReply.prototype.getBase = function() {
  7856. return /** @type{?proto.app.v1.ProviderInfoSimple} */ (
  7857. jspb.Message.getWrapperField(this, proto.app.v1.ProviderInfoSimple, 1));
  7858. };
  7859. /**
  7860. * @param {?proto.app.v1.ProviderInfoSimple|undefined} value
  7861. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7862. */
  7863. proto.app.v1.ProviderDetailReply.prototype.setBase = function(value) {
  7864. return jspb.Message.setWrapperField(this, 1, value);
  7865. };
  7866. /**
  7867. * Clears the message field making it undefined.
  7868. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7869. */
  7870. proto.app.v1.ProviderDetailReply.prototype.clearBase = function() {
  7871. return this.setBase(undefined);
  7872. };
  7873. /**
  7874. * Returns whether this field is set.
  7875. * @return {boolean}
  7876. */
  7877. proto.app.v1.ProviderDetailReply.prototype.hasBase = function() {
  7878. return jspb.Message.getField(this, 1) != null;
  7879. };
  7880. /**
  7881. * optional google.protobuf.Timestamp open_begin = 2;
  7882. * @return {?proto.google.protobuf.Timestamp}
  7883. */
  7884. proto.app.v1.ProviderDetailReply.prototype.getOpenBegin = function() {
  7885. return /** @type{?proto.google.protobuf.Timestamp} */ (
  7886. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
  7887. };
  7888. /**
  7889. * @param {?proto.google.protobuf.Timestamp|undefined} value
  7890. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7891. */
  7892. proto.app.v1.ProviderDetailReply.prototype.setOpenBegin = function(value) {
  7893. return jspb.Message.setWrapperField(this, 2, value);
  7894. };
  7895. /**
  7896. * Clears the message field making it undefined.
  7897. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7898. */
  7899. proto.app.v1.ProviderDetailReply.prototype.clearOpenBegin = function() {
  7900. return this.setOpenBegin(undefined);
  7901. };
  7902. /**
  7903. * Returns whether this field is set.
  7904. * @return {boolean}
  7905. */
  7906. proto.app.v1.ProviderDetailReply.prototype.hasOpenBegin = function() {
  7907. return jspb.Message.getField(this, 2) != null;
  7908. };
  7909. /**
  7910. * optional google.protobuf.Timestamp open_end = 3;
  7911. * @return {?proto.google.protobuf.Timestamp}
  7912. */
  7913. proto.app.v1.ProviderDetailReply.prototype.getOpenEnd = function() {
  7914. return /** @type{?proto.google.protobuf.Timestamp} */ (
  7915. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
  7916. };
  7917. /**
  7918. * @param {?proto.google.protobuf.Timestamp|undefined} value
  7919. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7920. */
  7921. proto.app.v1.ProviderDetailReply.prototype.setOpenEnd = function(value) {
  7922. return jspb.Message.setWrapperField(this, 3, value);
  7923. };
  7924. /**
  7925. * Clears the message field making it undefined.
  7926. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7927. */
  7928. proto.app.v1.ProviderDetailReply.prototype.clearOpenEnd = function() {
  7929. return this.setOpenEnd(undefined);
  7930. };
  7931. /**
  7932. * Returns whether this field is set.
  7933. * @return {boolean}
  7934. */
  7935. proto.app.v1.ProviderDetailReply.prototype.hasOpenEnd = function() {
  7936. return jspb.Message.getField(this, 3) != null;
  7937. };
  7938. /**
  7939. * optional string telephone = 4;
  7940. * @return {string}
  7941. */
  7942. proto.app.v1.ProviderDetailReply.prototype.getTelephone = function() {
  7943. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  7944. };
  7945. /**
  7946. * @param {string} value
  7947. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7948. */
  7949. proto.app.v1.ProviderDetailReply.prototype.setTelephone = function(value) {
  7950. return jspb.Message.setProto3StringField(this, 4, value);
  7951. };
  7952. /**
  7953. * optional string introduction = 5;
  7954. * @return {string}
  7955. */
  7956. proto.app.v1.ProviderDetailReply.prototype.getIntroduction = function() {
  7957. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  7958. };
  7959. /**
  7960. * @param {string} value
  7961. * @return {!proto.app.v1.ProviderDetailReply} returns this
  7962. */
  7963. proto.app.v1.ProviderDetailReply.prototype.setIntroduction = function(value) {
  7964. return jspb.Message.setProto3StringField(this, 5, value);
  7965. };
  7966. if (jspb.Message.GENERATE_TO_OBJECT) {
  7967. /**
  7968. * Creates an object representation of this proto.
  7969. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  7970. * Optional fields that are not set will be set to undefined.
  7971. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  7972. * For the list of reserved names please see:
  7973. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  7974. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  7975. * JSPB instance for transitional soy proto support:
  7976. * http://goto/soy-param-migration
  7977. * @return {!Object}
  7978. */
  7979. proto.app.v1.ProjectInfoSimple.prototype.toObject = function(opt_includeInstance) {
  7980. return proto.app.v1.ProjectInfoSimple.toObject(opt_includeInstance, this);
  7981. };
  7982. /**
  7983. * Static version of the {@see toObject} method.
  7984. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  7985. * the JSPB instance for transitional soy proto support:
  7986. * http://goto/soy-param-migration
  7987. * @param {!proto.app.v1.ProjectInfoSimple} msg The msg instance to transform.
  7988. * @return {!Object}
  7989. * @suppress {unusedLocalVariables} f is only used for nested messages
  7990. */
  7991. proto.app.v1.ProjectInfoSimple.toObject = function(includeInstance, msg) {
  7992. var f, obj = {
  7993. rsid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  7994. rsname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  7995. projectimage: (f = msg.getProjectimage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  7996. shopname: jspb.Message.getFieldWithDefault(msg, 4, ""),
  7997. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  7998. addr: jspb.Message.getFieldWithDefault(msg, 6, ""),
  7999. distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
  8000. isingame: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
  8001. };
  8002. if (includeInstance) {
  8003. obj.$jspbMessageInstance = msg;
  8004. }
  8005. return obj;
  8006. };
  8007. }
  8008. /**
  8009. * Deserializes binary data (in protobuf wire format).
  8010. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8011. * @return {!proto.app.v1.ProjectInfoSimple}
  8012. */
  8013. proto.app.v1.ProjectInfoSimple.deserializeBinary = function(bytes) {
  8014. var reader = new jspb.BinaryReader(bytes);
  8015. var msg = new proto.app.v1.ProjectInfoSimple;
  8016. return proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader(msg, reader);
  8017. };
  8018. /**
  8019. * Deserializes binary data (in protobuf wire format) from the
  8020. * given reader into the given message object.
  8021. * @param {!proto.app.v1.ProjectInfoSimple} msg The message object to deserialize into.
  8022. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8023. * @return {!proto.app.v1.ProjectInfoSimple}
  8024. */
  8025. proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader = function(msg, reader) {
  8026. while (reader.nextField()) {
  8027. if (reader.isEndGroup()) {
  8028. break;
  8029. }
  8030. var field = reader.getFieldNumber();
  8031. switch (field) {
  8032. case 1:
  8033. var value = /** @type {number} */ (reader.readInt64());
  8034. msg.setRsid(value);
  8035. break;
  8036. case 2:
  8037. var value = /** @type {string} */ (reader.readString());
  8038. msg.setRsname(value);
  8039. break;
  8040. case 3:
  8041. var value = new proto.app.v1.NetImage;
  8042. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8043. msg.setProjectimage(value);
  8044. break;
  8045. case 4:
  8046. var value = /** @type {string} */ (reader.readString());
  8047. msg.setShopname(value);
  8048. break;
  8049. case 5:
  8050. var value = new proto.app.v1.Position;
  8051. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  8052. msg.setPosition(value);
  8053. break;
  8054. case 6:
  8055. var value = /** @type {string} */ (reader.readString());
  8056. msg.setAddr(value);
  8057. break;
  8058. case 7:
  8059. var value = /** @type {number} */ (reader.readDouble());
  8060. msg.setDistance(value);
  8061. break;
  8062. case 8:
  8063. var value = /** @type {boolean} */ (reader.readBool());
  8064. msg.setIsingame(value);
  8065. break;
  8066. default:
  8067. reader.skipField();
  8068. break;
  8069. }
  8070. }
  8071. return msg;
  8072. };
  8073. /**
  8074. * Serializes the message to binary data (in protobuf wire format).
  8075. * @return {!Uint8Array}
  8076. */
  8077. proto.app.v1.ProjectInfoSimple.prototype.serializeBinary = function() {
  8078. var writer = new jspb.BinaryWriter();
  8079. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter(this, writer);
  8080. return writer.getResultBuffer();
  8081. };
  8082. /**
  8083. * Serializes the given message to binary data (in protobuf wire
  8084. * format), writing to the given BinaryWriter.
  8085. * @param {!proto.app.v1.ProjectInfoSimple} message
  8086. * @param {!jspb.BinaryWriter} writer
  8087. * @suppress {unusedLocalVariables} f is only used for nested messages
  8088. */
  8089. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter = function(message, writer) {
  8090. var f = undefined;
  8091. f = message.getRsid();
  8092. if (f !== 0) {
  8093. writer.writeInt64(
  8094. 1,
  8095. f
  8096. );
  8097. }
  8098. f = message.getRsname();
  8099. if (f.length > 0) {
  8100. writer.writeString(
  8101. 2,
  8102. f
  8103. );
  8104. }
  8105. f = message.getProjectimage();
  8106. if (f != null) {
  8107. writer.writeMessage(
  8108. 3,
  8109. f,
  8110. proto.app.v1.NetImage.serializeBinaryToWriter
  8111. );
  8112. }
  8113. f = message.getShopname();
  8114. if (f.length > 0) {
  8115. writer.writeString(
  8116. 4,
  8117. f
  8118. );
  8119. }
  8120. f = message.getPosition();
  8121. if (f != null) {
  8122. writer.writeMessage(
  8123. 5,
  8124. f,
  8125. proto.app.v1.Position.serializeBinaryToWriter
  8126. );
  8127. }
  8128. f = message.getAddr();
  8129. if (f.length > 0) {
  8130. writer.writeString(
  8131. 6,
  8132. f
  8133. );
  8134. }
  8135. f = message.getDistance();
  8136. if (f !== 0.0) {
  8137. writer.writeDouble(
  8138. 7,
  8139. f
  8140. );
  8141. }
  8142. f = message.getIsingame();
  8143. if (f) {
  8144. writer.writeBool(
  8145. 8,
  8146. f
  8147. );
  8148. }
  8149. };
  8150. /**
  8151. * optional int64 rsId = 1;
  8152. * @return {number}
  8153. */
  8154. proto.app.v1.ProjectInfoSimple.prototype.getRsid = function() {
  8155. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  8156. };
  8157. /**
  8158. * @param {number} value
  8159. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8160. */
  8161. proto.app.v1.ProjectInfoSimple.prototype.setRsid = function(value) {
  8162. return jspb.Message.setProto3IntField(this, 1, value);
  8163. };
  8164. /**
  8165. * optional string rsName = 2;
  8166. * @return {string}
  8167. */
  8168. proto.app.v1.ProjectInfoSimple.prototype.getRsname = function() {
  8169. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  8170. };
  8171. /**
  8172. * @param {string} value
  8173. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8174. */
  8175. proto.app.v1.ProjectInfoSimple.prototype.setRsname = function(value) {
  8176. return jspb.Message.setProto3StringField(this, 2, value);
  8177. };
  8178. /**
  8179. * optional NetImage projectImage = 3;
  8180. * @return {?proto.app.v1.NetImage}
  8181. */
  8182. proto.app.v1.ProjectInfoSimple.prototype.getProjectimage = function() {
  8183. return /** @type{?proto.app.v1.NetImage} */ (
  8184. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  8185. };
  8186. /**
  8187. * @param {?proto.app.v1.NetImage|undefined} value
  8188. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8189. */
  8190. proto.app.v1.ProjectInfoSimple.prototype.setProjectimage = function(value) {
  8191. return jspb.Message.setWrapperField(this, 3, value);
  8192. };
  8193. /**
  8194. * Clears the message field making it undefined.
  8195. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8196. */
  8197. proto.app.v1.ProjectInfoSimple.prototype.clearProjectimage = function() {
  8198. return this.setProjectimage(undefined);
  8199. };
  8200. /**
  8201. * Returns whether this field is set.
  8202. * @return {boolean}
  8203. */
  8204. proto.app.v1.ProjectInfoSimple.prototype.hasProjectimage = function() {
  8205. return jspb.Message.getField(this, 3) != null;
  8206. };
  8207. /**
  8208. * optional string shopName = 4;
  8209. * @return {string}
  8210. */
  8211. proto.app.v1.ProjectInfoSimple.prototype.getShopname = function() {
  8212. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  8213. };
  8214. /**
  8215. * @param {string} value
  8216. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8217. */
  8218. proto.app.v1.ProjectInfoSimple.prototype.setShopname = function(value) {
  8219. return jspb.Message.setProto3StringField(this, 4, value);
  8220. };
  8221. /**
  8222. * optional Position Position = 5;
  8223. * @return {?proto.app.v1.Position}
  8224. */
  8225. proto.app.v1.ProjectInfoSimple.prototype.getPosition = function() {
  8226. return /** @type{?proto.app.v1.Position} */ (
  8227. jspb.Message.getWrapperField(this, proto.app.v1.Position, 5));
  8228. };
  8229. /**
  8230. * @param {?proto.app.v1.Position|undefined} value
  8231. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8232. */
  8233. proto.app.v1.ProjectInfoSimple.prototype.setPosition = function(value) {
  8234. return jspb.Message.setWrapperField(this, 5, value);
  8235. };
  8236. /**
  8237. * Clears the message field making it undefined.
  8238. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8239. */
  8240. proto.app.v1.ProjectInfoSimple.prototype.clearPosition = function() {
  8241. return this.setPosition(undefined);
  8242. };
  8243. /**
  8244. * Returns whether this field is set.
  8245. * @return {boolean}
  8246. */
  8247. proto.app.v1.ProjectInfoSimple.prototype.hasPosition = function() {
  8248. return jspb.Message.getField(this, 5) != null;
  8249. };
  8250. /**
  8251. * optional string addr = 6;
  8252. * @return {string}
  8253. */
  8254. proto.app.v1.ProjectInfoSimple.prototype.getAddr = function() {
  8255. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  8256. };
  8257. /**
  8258. * @param {string} value
  8259. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8260. */
  8261. proto.app.v1.ProjectInfoSimple.prototype.setAddr = function(value) {
  8262. return jspb.Message.setProto3StringField(this, 6, value);
  8263. };
  8264. /**
  8265. * optional double distance = 7;
  8266. * @return {number}
  8267. */
  8268. proto.app.v1.ProjectInfoSimple.prototype.getDistance = function() {
  8269. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
  8270. };
  8271. /**
  8272. * @param {number} value
  8273. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8274. */
  8275. proto.app.v1.ProjectInfoSimple.prototype.setDistance = function(value) {
  8276. return jspb.Message.setProto3FloatField(this, 7, value);
  8277. };
  8278. /**
  8279. * optional bool isInGame = 8;
  8280. * @return {boolean}
  8281. */
  8282. proto.app.v1.ProjectInfoSimple.prototype.getIsingame = function() {
  8283. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
  8284. };
  8285. /**
  8286. * @param {boolean} value
  8287. * @return {!proto.app.v1.ProjectInfoSimple} returns this
  8288. */
  8289. proto.app.v1.ProjectInfoSimple.prototype.setIsingame = function(value) {
  8290. return jspb.Message.setProto3BooleanField(this, 8, value);
  8291. };
  8292. /**
  8293. * List of repeated fields within this message type.
  8294. * @private {!Array<number>}
  8295. * @const
  8296. */
  8297. proto.app.v1.ProjectListReply.repeatedFields_ = [1];
  8298. if (jspb.Message.GENERATE_TO_OBJECT) {
  8299. /**
  8300. * Creates an object representation of this proto.
  8301. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8302. * Optional fields that are not set will be set to undefined.
  8303. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8304. * For the list of reserved names please see:
  8305. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8306. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8307. * JSPB instance for transitional soy proto support:
  8308. * http://goto/soy-param-migration
  8309. * @return {!Object}
  8310. */
  8311. proto.app.v1.ProjectListReply.prototype.toObject = function(opt_includeInstance) {
  8312. return proto.app.v1.ProjectListReply.toObject(opt_includeInstance, this);
  8313. };
  8314. /**
  8315. * Static version of the {@see toObject} method.
  8316. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8317. * the JSPB instance for transitional soy proto support:
  8318. * http://goto/soy-param-migration
  8319. * @param {!proto.app.v1.ProjectListReply} msg The msg instance to transform.
  8320. * @return {!Object}
  8321. * @suppress {unusedLocalVariables} f is only used for nested messages
  8322. */
  8323. proto.app.v1.ProjectListReply.toObject = function(includeInstance, msg) {
  8324. var f, obj = {
  8325. listList: jspb.Message.toObjectList(msg.getListList(),
  8326. proto.app.v1.ProjectInfoSimple.toObject, includeInstance)
  8327. };
  8328. if (includeInstance) {
  8329. obj.$jspbMessageInstance = msg;
  8330. }
  8331. return obj;
  8332. };
  8333. }
  8334. /**
  8335. * Deserializes binary data (in protobuf wire format).
  8336. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8337. * @return {!proto.app.v1.ProjectListReply}
  8338. */
  8339. proto.app.v1.ProjectListReply.deserializeBinary = function(bytes) {
  8340. var reader = new jspb.BinaryReader(bytes);
  8341. var msg = new proto.app.v1.ProjectListReply;
  8342. return proto.app.v1.ProjectListReply.deserializeBinaryFromReader(msg, reader);
  8343. };
  8344. /**
  8345. * Deserializes binary data (in protobuf wire format) from the
  8346. * given reader into the given message object.
  8347. * @param {!proto.app.v1.ProjectListReply} msg The message object to deserialize into.
  8348. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8349. * @return {!proto.app.v1.ProjectListReply}
  8350. */
  8351. proto.app.v1.ProjectListReply.deserializeBinaryFromReader = function(msg, reader) {
  8352. while (reader.nextField()) {
  8353. if (reader.isEndGroup()) {
  8354. break;
  8355. }
  8356. var field = reader.getFieldNumber();
  8357. switch (field) {
  8358. case 1:
  8359. var value = new proto.app.v1.ProjectInfoSimple;
  8360. reader.readMessage(value,proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader);
  8361. msg.addList(value);
  8362. break;
  8363. default:
  8364. reader.skipField();
  8365. break;
  8366. }
  8367. }
  8368. return msg;
  8369. };
  8370. /**
  8371. * Serializes the message to binary data (in protobuf wire format).
  8372. * @return {!Uint8Array}
  8373. */
  8374. proto.app.v1.ProjectListReply.prototype.serializeBinary = function() {
  8375. var writer = new jspb.BinaryWriter();
  8376. proto.app.v1.ProjectListReply.serializeBinaryToWriter(this, writer);
  8377. return writer.getResultBuffer();
  8378. };
  8379. /**
  8380. * Serializes the given message to binary data (in protobuf wire
  8381. * format), writing to the given BinaryWriter.
  8382. * @param {!proto.app.v1.ProjectListReply} message
  8383. * @param {!jspb.BinaryWriter} writer
  8384. * @suppress {unusedLocalVariables} f is only used for nested messages
  8385. */
  8386. proto.app.v1.ProjectListReply.serializeBinaryToWriter = function(message, writer) {
  8387. var f = undefined;
  8388. f = message.getListList();
  8389. if (f.length > 0) {
  8390. writer.writeRepeatedMessage(
  8391. 1,
  8392. f,
  8393. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter
  8394. );
  8395. }
  8396. };
  8397. /**
  8398. * repeated ProjectInfoSimple list = 1;
  8399. * @return {!Array<!proto.app.v1.ProjectInfoSimple>}
  8400. */
  8401. proto.app.v1.ProjectListReply.prototype.getListList = function() {
  8402. return /** @type{!Array<!proto.app.v1.ProjectInfoSimple>} */ (
  8403. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ProjectInfoSimple, 1));
  8404. };
  8405. /**
  8406. * @param {!Array<!proto.app.v1.ProjectInfoSimple>} value
  8407. * @return {!proto.app.v1.ProjectListReply} returns this
  8408. */
  8409. proto.app.v1.ProjectListReply.prototype.setListList = function(value) {
  8410. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  8411. };
  8412. /**
  8413. * @param {!proto.app.v1.ProjectInfoSimple=} opt_value
  8414. * @param {number=} opt_index
  8415. * @return {!proto.app.v1.ProjectInfoSimple}
  8416. */
  8417. proto.app.v1.ProjectListReply.prototype.addList = function(opt_value, opt_index) {
  8418. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ProjectInfoSimple, opt_index);
  8419. };
  8420. /**
  8421. * Clears the list making it empty but non-null.
  8422. * @return {!proto.app.v1.ProjectListReply} returns this
  8423. */
  8424. proto.app.v1.ProjectListReply.prototype.clearListList = function() {
  8425. return this.setListList([]);
  8426. };
  8427. if (jspb.Message.GENERATE_TO_OBJECT) {
  8428. /**
  8429. * Creates an object representation of this proto.
  8430. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8431. * Optional fields that are not set will be set to undefined.
  8432. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8433. * For the list of reserved names please see:
  8434. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8435. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8436. * JSPB instance for transitional soy proto support:
  8437. * http://goto/soy-param-migration
  8438. * @return {!Object}
  8439. */
  8440. proto.app.v1.MapRoute.prototype.toObject = function(opt_includeInstance) {
  8441. return proto.app.v1.MapRoute.toObject(opt_includeInstance, this);
  8442. };
  8443. /**
  8444. * Static version of the {@see toObject} method.
  8445. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8446. * the JSPB instance for transitional soy proto support:
  8447. * http://goto/soy-param-migration
  8448. * @param {!proto.app.v1.MapRoute} msg The msg instance to transform.
  8449. * @return {!Object}
  8450. * @suppress {unusedLocalVariables} f is only used for nested messages
  8451. */
  8452. proto.app.v1.MapRoute.toObject = function(includeInstance, msg) {
  8453. var f, obj = {
  8454. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  8455. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  8456. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f)
  8457. };
  8458. if (includeInstance) {
  8459. obj.$jspbMessageInstance = msg;
  8460. }
  8461. return obj;
  8462. };
  8463. }
  8464. /**
  8465. * Deserializes binary data (in protobuf wire format).
  8466. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8467. * @return {!proto.app.v1.MapRoute}
  8468. */
  8469. proto.app.v1.MapRoute.deserializeBinary = function(bytes) {
  8470. var reader = new jspb.BinaryReader(bytes);
  8471. var msg = new proto.app.v1.MapRoute;
  8472. return proto.app.v1.MapRoute.deserializeBinaryFromReader(msg, reader);
  8473. };
  8474. /**
  8475. * Deserializes binary data (in protobuf wire format) from the
  8476. * given reader into the given message object.
  8477. * @param {!proto.app.v1.MapRoute} msg The message object to deserialize into.
  8478. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8479. * @return {!proto.app.v1.MapRoute}
  8480. */
  8481. proto.app.v1.MapRoute.deserializeBinaryFromReader = function(msg, reader) {
  8482. while (reader.nextField()) {
  8483. if (reader.isEndGroup()) {
  8484. break;
  8485. }
  8486. var field = reader.getFieldNumber();
  8487. switch (field) {
  8488. case 1:
  8489. var value = /** @type {number} */ (reader.readInt64());
  8490. msg.setId(value);
  8491. break;
  8492. case 2:
  8493. var value = /** @type {string} */ (reader.readString());
  8494. msg.setName(value);
  8495. break;
  8496. case 3:
  8497. var value = new proto.app.v1.NetImage;
  8498. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8499. msg.setImage(value);
  8500. break;
  8501. default:
  8502. reader.skipField();
  8503. break;
  8504. }
  8505. }
  8506. return msg;
  8507. };
  8508. /**
  8509. * Serializes the message to binary data (in protobuf wire format).
  8510. * @return {!Uint8Array}
  8511. */
  8512. proto.app.v1.MapRoute.prototype.serializeBinary = function() {
  8513. var writer = new jspb.BinaryWriter();
  8514. proto.app.v1.MapRoute.serializeBinaryToWriter(this, writer);
  8515. return writer.getResultBuffer();
  8516. };
  8517. /**
  8518. * Serializes the given message to binary data (in protobuf wire
  8519. * format), writing to the given BinaryWriter.
  8520. * @param {!proto.app.v1.MapRoute} message
  8521. * @param {!jspb.BinaryWriter} writer
  8522. * @suppress {unusedLocalVariables} f is only used for nested messages
  8523. */
  8524. proto.app.v1.MapRoute.serializeBinaryToWriter = function(message, writer) {
  8525. var f = undefined;
  8526. f = message.getId();
  8527. if (f !== 0) {
  8528. writer.writeInt64(
  8529. 1,
  8530. f
  8531. );
  8532. }
  8533. f = message.getName();
  8534. if (f.length > 0) {
  8535. writer.writeString(
  8536. 2,
  8537. f
  8538. );
  8539. }
  8540. f = message.getImage();
  8541. if (f != null) {
  8542. writer.writeMessage(
  8543. 3,
  8544. f,
  8545. proto.app.v1.NetImage.serializeBinaryToWriter
  8546. );
  8547. }
  8548. };
  8549. /**
  8550. * optional int64 id = 1;
  8551. * @return {number}
  8552. */
  8553. proto.app.v1.MapRoute.prototype.getId = function() {
  8554. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  8555. };
  8556. /**
  8557. * @param {number} value
  8558. * @return {!proto.app.v1.MapRoute} returns this
  8559. */
  8560. proto.app.v1.MapRoute.prototype.setId = function(value) {
  8561. return jspb.Message.setProto3IntField(this, 1, value);
  8562. };
  8563. /**
  8564. * optional string name = 2;
  8565. * @return {string}
  8566. */
  8567. proto.app.v1.MapRoute.prototype.getName = function() {
  8568. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  8569. };
  8570. /**
  8571. * @param {string} value
  8572. * @return {!proto.app.v1.MapRoute} returns this
  8573. */
  8574. proto.app.v1.MapRoute.prototype.setName = function(value) {
  8575. return jspb.Message.setProto3StringField(this, 2, value);
  8576. };
  8577. /**
  8578. * optional NetImage image = 3;
  8579. * @return {?proto.app.v1.NetImage}
  8580. */
  8581. proto.app.v1.MapRoute.prototype.getImage = function() {
  8582. return /** @type{?proto.app.v1.NetImage} */ (
  8583. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  8584. };
  8585. /**
  8586. * @param {?proto.app.v1.NetImage|undefined} value
  8587. * @return {!proto.app.v1.MapRoute} returns this
  8588. */
  8589. proto.app.v1.MapRoute.prototype.setImage = function(value) {
  8590. return jspb.Message.setWrapperField(this, 3, value);
  8591. };
  8592. /**
  8593. * Clears the message field making it undefined.
  8594. * @return {!proto.app.v1.MapRoute} returns this
  8595. */
  8596. proto.app.v1.MapRoute.prototype.clearImage = function() {
  8597. return this.setImage(undefined);
  8598. };
  8599. /**
  8600. * Returns whether this field is set.
  8601. * @return {boolean}
  8602. */
  8603. proto.app.v1.MapRoute.prototype.hasImage = function() {
  8604. return jspb.Message.getField(this, 3) != null;
  8605. };
  8606. /**
  8607. * List of repeated fields within this message type.
  8608. * @private {!Array<number>}
  8609. * @const
  8610. */
  8611. proto.app.v1.ProjectDetailReply.repeatedFields_ = [11];
  8612. if (jspb.Message.GENERATE_TO_OBJECT) {
  8613. /**
  8614. * Creates an object representation of this proto.
  8615. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  8616. * Optional fields that are not set will be set to undefined.
  8617. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  8618. * For the list of reserved names please see:
  8619. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  8620. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  8621. * JSPB instance for transitional soy proto support:
  8622. * http://goto/soy-param-migration
  8623. * @return {!Object}
  8624. */
  8625. proto.app.v1.ProjectDetailReply.prototype.toObject = function(opt_includeInstance) {
  8626. return proto.app.v1.ProjectDetailReply.toObject(opt_includeInstance, this);
  8627. };
  8628. /**
  8629. * Static version of the {@see toObject} method.
  8630. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  8631. * the JSPB instance for transitional soy proto support:
  8632. * http://goto/soy-param-migration
  8633. * @param {!proto.app.v1.ProjectDetailReply} msg The msg instance to transform.
  8634. * @return {!Object}
  8635. * @suppress {unusedLocalVariables} f is only used for nested messages
  8636. */
  8637. proto.app.v1.ProjectDetailReply.toObject = function(includeInstance, msg) {
  8638. var f, obj = {
  8639. baseInfo: (f = msg.getBaseInfo()) && proto.app.v1.ProjectInfoSimple.toObject(includeInstance, f),
  8640. contentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
  8641. content: jspb.Message.getFieldWithDefault(msg, 3, ""),
  8642. lockup: jspb.Message.getFieldWithDefault(msg, 4, 0),
  8643. forcedenttime: jspb.Message.getFieldWithDefault(msg, 5, 0),
  8644. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 6, 0),
  8645. maxrange: jspb.Message.getFieldWithDefault(msg, 7, 0),
  8646. image: (f = msg.getImage()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  8647. mapscalenumber: jspb.Message.getFieldWithDefault(msg, 9, 0),
  8648. contourinterval: jspb.Message.getFieldWithDefault(msg, 10, 0),
  8649. routesList: jspb.Message.toObjectList(msg.getRoutesList(),
  8650. proto.app.v1.MapRoute.toObject, includeInstance)
  8651. };
  8652. if (includeInstance) {
  8653. obj.$jspbMessageInstance = msg;
  8654. }
  8655. return obj;
  8656. };
  8657. }
  8658. /**
  8659. * Deserializes binary data (in protobuf wire format).
  8660. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  8661. * @return {!proto.app.v1.ProjectDetailReply}
  8662. */
  8663. proto.app.v1.ProjectDetailReply.deserializeBinary = function(bytes) {
  8664. var reader = new jspb.BinaryReader(bytes);
  8665. var msg = new proto.app.v1.ProjectDetailReply;
  8666. return proto.app.v1.ProjectDetailReply.deserializeBinaryFromReader(msg, reader);
  8667. };
  8668. /**
  8669. * Deserializes binary data (in protobuf wire format) from the
  8670. * given reader into the given message object.
  8671. * @param {!proto.app.v1.ProjectDetailReply} msg The message object to deserialize into.
  8672. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  8673. * @return {!proto.app.v1.ProjectDetailReply}
  8674. */
  8675. proto.app.v1.ProjectDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  8676. while (reader.nextField()) {
  8677. if (reader.isEndGroup()) {
  8678. break;
  8679. }
  8680. var field = reader.getFieldNumber();
  8681. switch (field) {
  8682. case 1:
  8683. var value = new proto.app.v1.ProjectInfoSimple;
  8684. reader.readMessage(value,proto.app.v1.ProjectInfoSimple.deserializeBinaryFromReader);
  8685. msg.setBaseInfo(value);
  8686. break;
  8687. case 2:
  8688. var value = /** @type {!proto.app.v1.ProjectContentType} */ (reader.readEnum());
  8689. msg.setContentType(value);
  8690. break;
  8691. case 3:
  8692. var value = /** @type {string} */ (reader.readString());
  8693. msg.setContent(value);
  8694. break;
  8695. case 4:
  8696. var value = /** @type {number} */ (reader.readInt32());
  8697. msg.setLockup(value);
  8698. break;
  8699. case 5:
  8700. var value = /** @type {number} */ (reader.readInt32());
  8701. msg.setForcedenttime(value);
  8702. break;
  8703. case 6:
  8704. var value = /** @type {number} */ (reader.readInt32());
  8705. msg.setTotalcontrolnum(value);
  8706. break;
  8707. case 7:
  8708. var value = /** @type {number} */ (reader.readInt32());
  8709. msg.setMaxrange(value);
  8710. break;
  8711. case 8:
  8712. var value = new proto.app.v1.NetImage;
  8713. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  8714. msg.setImage(value);
  8715. break;
  8716. case 9:
  8717. var value = /** @type {number} */ (reader.readInt32());
  8718. msg.setMapscalenumber(value);
  8719. break;
  8720. case 10:
  8721. var value = /** @type {number} */ (reader.readInt32());
  8722. msg.setContourinterval(value);
  8723. break;
  8724. case 11:
  8725. var value = new proto.app.v1.MapRoute;
  8726. reader.readMessage(value,proto.app.v1.MapRoute.deserializeBinaryFromReader);
  8727. msg.addRoutes(value);
  8728. break;
  8729. default:
  8730. reader.skipField();
  8731. break;
  8732. }
  8733. }
  8734. return msg;
  8735. };
  8736. /**
  8737. * Serializes the message to binary data (in protobuf wire format).
  8738. * @return {!Uint8Array}
  8739. */
  8740. proto.app.v1.ProjectDetailReply.prototype.serializeBinary = function() {
  8741. var writer = new jspb.BinaryWriter();
  8742. proto.app.v1.ProjectDetailReply.serializeBinaryToWriter(this, writer);
  8743. return writer.getResultBuffer();
  8744. };
  8745. /**
  8746. * Serializes the given message to binary data (in protobuf wire
  8747. * format), writing to the given BinaryWriter.
  8748. * @param {!proto.app.v1.ProjectDetailReply} message
  8749. * @param {!jspb.BinaryWriter} writer
  8750. * @suppress {unusedLocalVariables} f is only used for nested messages
  8751. */
  8752. proto.app.v1.ProjectDetailReply.serializeBinaryToWriter = function(message, writer) {
  8753. var f = undefined;
  8754. f = message.getBaseInfo();
  8755. if (f != null) {
  8756. writer.writeMessage(
  8757. 1,
  8758. f,
  8759. proto.app.v1.ProjectInfoSimple.serializeBinaryToWriter
  8760. );
  8761. }
  8762. f = message.getContentType();
  8763. if (f !== 0.0) {
  8764. writer.writeEnum(
  8765. 2,
  8766. f
  8767. );
  8768. }
  8769. f = message.getContent();
  8770. if (f.length > 0) {
  8771. writer.writeString(
  8772. 3,
  8773. f
  8774. );
  8775. }
  8776. f = message.getLockup();
  8777. if (f !== 0) {
  8778. writer.writeInt32(
  8779. 4,
  8780. f
  8781. );
  8782. }
  8783. f = message.getForcedenttime();
  8784. if (f !== 0) {
  8785. writer.writeInt32(
  8786. 5,
  8787. f
  8788. );
  8789. }
  8790. f = message.getTotalcontrolnum();
  8791. if (f !== 0) {
  8792. writer.writeInt32(
  8793. 6,
  8794. f
  8795. );
  8796. }
  8797. f = message.getMaxrange();
  8798. if (f !== 0) {
  8799. writer.writeInt32(
  8800. 7,
  8801. f
  8802. );
  8803. }
  8804. f = message.getImage();
  8805. if (f != null) {
  8806. writer.writeMessage(
  8807. 8,
  8808. f,
  8809. proto.app.v1.NetImage.serializeBinaryToWriter
  8810. );
  8811. }
  8812. f = message.getMapscalenumber();
  8813. if (f !== 0) {
  8814. writer.writeInt32(
  8815. 9,
  8816. f
  8817. );
  8818. }
  8819. f = message.getContourinterval();
  8820. if (f !== 0) {
  8821. writer.writeInt32(
  8822. 10,
  8823. f
  8824. );
  8825. }
  8826. f = message.getRoutesList();
  8827. if (f.length > 0) {
  8828. writer.writeRepeatedMessage(
  8829. 11,
  8830. f,
  8831. proto.app.v1.MapRoute.serializeBinaryToWriter
  8832. );
  8833. }
  8834. };
  8835. /**
  8836. * optional ProjectInfoSimple base_info = 1;
  8837. * @return {?proto.app.v1.ProjectInfoSimple}
  8838. */
  8839. proto.app.v1.ProjectDetailReply.prototype.getBaseInfo = function() {
  8840. return /** @type{?proto.app.v1.ProjectInfoSimple} */ (
  8841. jspb.Message.getWrapperField(this, proto.app.v1.ProjectInfoSimple, 1));
  8842. };
  8843. /**
  8844. * @param {?proto.app.v1.ProjectInfoSimple|undefined} value
  8845. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8846. */
  8847. proto.app.v1.ProjectDetailReply.prototype.setBaseInfo = function(value) {
  8848. return jspb.Message.setWrapperField(this, 1, value);
  8849. };
  8850. /**
  8851. * Clears the message field making it undefined.
  8852. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8853. */
  8854. proto.app.v1.ProjectDetailReply.prototype.clearBaseInfo = function() {
  8855. return this.setBaseInfo(undefined);
  8856. };
  8857. /**
  8858. * Returns whether this field is set.
  8859. * @return {boolean}
  8860. */
  8861. proto.app.v1.ProjectDetailReply.prototype.hasBaseInfo = function() {
  8862. return jspb.Message.getField(this, 1) != null;
  8863. };
  8864. /**
  8865. * optional ProjectContentType content_type = 2;
  8866. * @return {!proto.app.v1.ProjectContentType}
  8867. */
  8868. proto.app.v1.ProjectDetailReply.prototype.getContentType = function() {
  8869. return /** @type {!proto.app.v1.ProjectContentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  8870. };
  8871. /**
  8872. * @param {!proto.app.v1.ProjectContentType} value
  8873. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8874. */
  8875. proto.app.v1.ProjectDetailReply.prototype.setContentType = function(value) {
  8876. return jspb.Message.setProto3EnumField(this, 2, value);
  8877. };
  8878. /**
  8879. * optional string content = 3;
  8880. * @return {string}
  8881. */
  8882. proto.app.v1.ProjectDetailReply.prototype.getContent = function() {
  8883. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  8884. };
  8885. /**
  8886. * @param {string} value
  8887. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8888. */
  8889. proto.app.v1.ProjectDetailReply.prototype.setContent = function(value) {
  8890. return jspb.Message.setProto3StringField(this, 3, value);
  8891. };
  8892. /**
  8893. * optional int32 lockup = 4;
  8894. * @return {number}
  8895. */
  8896. proto.app.v1.ProjectDetailReply.prototype.getLockup = function() {
  8897. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  8898. };
  8899. /**
  8900. * @param {number} value
  8901. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8902. */
  8903. proto.app.v1.ProjectDetailReply.prototype.setLockup = function(value) {
  8904. return jspb.Message.setProto3IntField(this, 4, value);
  8905. };
  8906. /**
  8907. * optional int32 forcedEntTime = 5;
  8908. * @return {number}
  8909. */
  8910. proto.app.v1.ProjectDetailReply.prototype.getForcedenttime = function() {
  8911. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  8912. };
  8913. /**
  8914. * @param {number} value
  8915. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8916. */
  8917. proto.app.v1.ProjectDetailReply.prototype.setForcedenttime = function(value) {
  8918. return jspb.Message.setProto3IntField(this, 5, value);
  8919. };
  8920. /**
  8921. * optional int32 totalControlNum = 6;
  8922. * @return {number}
  8923. */
  8924. proto.app.v1.ProjectDetailReply.prototype.getTotalcontrolnum = function() {
  8925. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  8926. };
  8927. /**
  8928. * @param {number} value
  8929. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8930. */
  8931. proto.app.v1.ProjectDetailReply.prototype.setTotalcontrolnum = function(value) {
  8932. return jspb.Message.setProto3IntField(this, 6, value);
  8933. };
  8934. /**
  8935. * optional int32 maxRange = 7;
  8936. * @return {number}
  8937. */
  8938. proto.app.v1.ProjectDetailReply.prototype.getMaxrange = function() {
  8939. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  8940. };
  8941. /**
  8942. * @param {number} value
  8943. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8944. */
  8945. proto.app.v1.ProjectDetailReply.prototype.setMaxrange = function(value) {
  8946. return jspb.Message.setProto3IntField(this, 7, value);
  8947. };
  8948. /**
  8949. * optional NetImage image = 8;
  8950. * @return {?proto.app.v1.NetImage}
  8951. */
  8952. proto.app.v1.ProjectDetailReply.prototype.getImage = function() {
  8953. return /** @type{?proto.app.v1.NetImage} */ (
  8954. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 8));
  8955. };
  8956. /**
  8957. * @param {?proto.app.v1.NetImage|undefined} value
  8958. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8959. */
  8960. proto.app.v1.ProjectDetailReply.prototype.setImage = function(value) {
  8961. return jspb.Message.setWrapperField(this, 8, value);
  8962. };
  8963. /**
  8964. * Clears the message field making it undefined.
  8965. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8966. */
  8967. proto.app.v1.ProjectDetailReply.prototype.clearImage = function() {
  8968. return this.setImage(undefined);
  8969. };
  8970. /**
  8971. * Returns whether this field is set.
  8972. * @return {boolean}
  8973. */
  8974. proto.app.v1.ProjectDetailReply.prototype.hasImage = function() {
  8975. return jspb.Message.getField(this, 8) != null;
  8976. };
  8977. /**
  8978. * optional int32 mapScaleNumber = 9;
  8979. * @return {number}
  8980. */
  8981. proto.app.v1.ProjectDetailReply.prototype.getMapscalenumber = function() {
  8982. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  8983. };
  8984. /**
  8985. * @param {number} value
  8986. * @return {!proto.app.v1.ProjectDetailReply} returns this
  8987. */
  8988. proto.app.v1.ProjectDetailReply.prototype.setMapscalenumber = function(value) {
  8989. return jspb.Message.setProto3IntField(this, 9, value);
  8990. };
  8991. /**
  8992. * optional int32 contourInterval = 10;
  8993. * @return {number}
  8994. */
  8995. proto.app.v1.ProjectDetailReply.prototype.getContourinterval = function() {
  8996. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
  8997. };
  8998. /**
  8999. * @param {number} value
  9000. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9001. */
  9002. proto.app.v1.ProjectDetailReply.prototype.setContourinterval = function(value) {
  9003. return jspb.Message.setProto3IntField(this, 10, value);
  9004. };
  9005. /**
  9006. * repeated MapRoute routes = 11;
  9007. * @return {!Array<!proto.app.v1.MapRoute>}
  9008. */
  9009. proto.app.v1.ProjectDetailReply.prototype.getRoutesList = function() {
  9010. return /** @type{!Array<!proto.app.v1.MapRoute>} */ (
  9011. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.MapRoute, 11));
  9012. };
  9013. /**
  9014. * @param {!Array<!proto.app.v1.MapRoute>} value
  9015. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9016. */
  9017. proto.app.v1.ProjectDetailReply.prototype.setRoutesList = function(value) {
  9018. return jspb.Message.setRepeatedWrapperField(this, 11, value);
  9019. };
  9020. /**
  9021. * @param {!proto.app.v1.MapRoute=} opt_value
  9022. * @param {number=} opt_index
  9023. * @return {!proto.app.v1.MapRoute}
  9024. */
  9025. proto.app.v1.ProjectDetailReply.prototype.addRoutes = function(opt_value, opt_index) {
  9026. return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.app.v1.MapRoute, opt_index);
  9027. };
  9028. /**
  9029. * Clears the list making it empty but non-null.
  9030. * @return {!proto.app.v1.ProjectDetailReply} returns this
  9031. */
  9032. proto.app.v1.ProjectDetailReply.prototype.clearRoutesList = function() {
  9033. return this.setRoutesList([]);
  9034. };
  9035. if (jspb.Message.GENERATE_TO_OBJECT) {
  9036. /**
  9037. * Creates an object representation of this proto.
  9038. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9039. * Optional fields that are not set will be set to undefined.
  9040. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9041. * For the list of reserved names please see:
  9042. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9043. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9044. * JSPB instance for transitional soy proto support:
  9045. * http://goto/soy-param-migration
  9046. * @return {!Object}
  9047. */
  9048. proto.app.v1.GameStartReply.prototype.toObject = function(opt_includeInstance) {
  9049. return proto.app.v1.GameStartReply.toObject(opt_includeInstance, this);
  9050. };
  9051. /**
  9052. * Static version of the {@see toObject} method.
  9053. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9054. * the JSPB instance for transitional soy proto support:
  9055. * http://goto/soy-param-migration
  9056. * @param {!proto.app.v1.GameStartReply} msg The msg instance to transform.
  9057. * @return {!Object}
  9058. * @suppress {unusedLocalVariables} f is only used for nested messages
  9059. */
  9060. proto.app.v1.GameStartReply.toObject = function(includeInstance, msg) {
  9061. var f, obj = {
  9062. gameData: (f = msg.getGameData()) && proto.app.v1.GameData.toObject(includeInstance, f)
  9063. };
  9064. if (includeInstance) {
  9065. obj.$jspbMessageInstance = msg;
  9066. }
  9067. return obj;
  9068. };
  9069. }
  9070. /**
  9071. * Deserializes binary data (in protobuf wire format).
  9072. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9073. * @return {!proto.app.v1.GameStartReply}
  9074. */
  9075. proto.app.v1.GameStartReply.deserializeBinary = function(bytes) {
  9076. var reader = new jspb.BinaryReader(bytes);
  9077. var msg = new proto.app.v1.GameStartReply;
  9078. return proto.app.v1.GameStartReply.deserializeBinaryFromReader(msg, reader);
  9079. };
  9080. /**
  9081. * Deserializes binary data (in protobuf wire format) from the
  9082. * given reader into the given message object.
  9083. * @param {!proto.app.v1.GameStartReply} msg The message object to deserialize into.
  9084. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9085. * @return {!proto.app.v1.GameStartReply}
  9086. */
  9087. proto.app.v1.GameStartReply.deserializeBinaryFromReader = function(msg, reader) {
  9088. while (reader.nextField()) {
  9089. if (reader.isEndGroup()) {
  9090. break;
  9091. }
  9092. var field = reader.getFieldNumber();
  9093. switch (field) {
  9094. case 1:
  9095. var value = new proto.app.v1.GameData;
  9096. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  9097. msg.setGameData(value);
  9098. break;
  9099. default:
  9100. reader.skipField();
  9101. break;
  9102. }
  9103. }
  9104. return msg;
  9105. };
  9106. /**
  9107. * Serializes the message to binary data (in protobuf wire format).
  9108. * @return {!Uint8Array}
  9109. */
  9110. proto.app.v1.GameStartReply.prototype.serializeBinary = function() {
  9111. var writer = new jspb.BinaryWriter();
  9112. proto.app.v1.GameStartReply.serializeBinaryToWriter(this, writer);
  9113. return writer.getResultBuffer();
  9114. };
  9115. /**
  9116. * Serializes the given message to binary data (in protobuf wire
  9117. * format), writing to the given BinaryWriter.
  9118. * @param {!proto.app.v1.GameStartReply} message
  9119. * @param {!jspb.BinaryWriter} writer
  9120. * @suppress {unusedLocalVariables} f is only used for nested messages
  9121. */
  9122. proto.app.v1.GameStartReply.serializeBinaryToWriter = function(message, writer) {
  9123. var f = undefined;
  9124. f = message.getGameData();
  9125. if (f != null) {
  9126. writer.writeMessage(
  9127. 1,
  9128. f,
  9129. proto.app.v1.GameData.serializeBinaryToWriter
  9130. );
  9131. }
  9132. };
  9133. /**
  9134. * optional GameData game_data = 1;
  9135. * @return {?proto.app.v1.GameData}
  9136. */
  9137. proto.app.v1.GameStartReply.prototype.getGameData = function() {
  9138. return /** @type{?proto.app.v1.GameData} */ (
  9139. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  9140. };
  9141. /**
  9142. * @param {?proto.app.v1.GameData|undefined} value
  9143. * @return {!proto.app.v1.GameStartReply} returns this
  9144. */
  9145. proto.app.v1.GameStartReply.prototype.setGameData = function(value) {
  9146. return jspb.Message.setWrapperField(this, 1, value);
  9147. };
  9148. /**
  9149. * Clears the message field making it undefined.
  9150. * @return {!proto.app.v1.GameStartReply} returns this
  9151. */
  9152. proto.app.v1.GameStartReply.prototype.clearGameData = function() {
  9153. return this.setGameData(undefined);
  9154. };
  9155. /**
  9156. * Returns whether this field is set.
  9157. * @return {boolean}
  9158. */
  9159. proto.app.v1.GameStartReply.prototype.hasGameData = function() {
  9160. return jspb.Message.getField(this, 1) != null;
  9161. };
  9162. if (jspb.Message.GENERATE_TO_OBJECT) {
  9163. /**
  9164. * Creates an object representation of this proto.
  9165. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9166. * Optional fields that are not set will be set to undefined.
  9167. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9168. * For the list of reserved names please see:
  9169. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9170. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9171. * JSPB instance for transitional soy proto support:
  9172. * http://goto/soy-param-migration
  9173. * @return {!Object}
  9174. */
  9175. proto.app.v1.GetRegionReply.prototype.toObject = function(opt_includeInstance) {
  9176. return proto.app.v1.GetRegionReply.toObject(opt_includeInstance, this);
  9177. };
  9178. /**
  9179. * Static version of the {@see toObject} method.
  9180. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9181. * the JSPB instance for transitional soy proto support:
  9182. * http://goto/soy-param-migration
  9183. * @param {!proto.app.v1.GetRegionReply} msg The msg instance to transform.
  9184. * @return {!Object}
  9185. * @suppress {unusedLocalVariables} f is only used for nested messages
  9186. */
  9187. proto.app.v1.GetRegionReply.toObject = function(includeInstance, msg) {
  9188. var f, obj = {
  9189. province: jspb.Message.getFieldWithDefault(msg, 1, ""),
  9190. provinceid: jspb.Message.getFieldWithDefault(msg, 2, ""),
  9191. city: jspb.Message.getFieldWithDefault(msg, 3, ""),
  9192. cityid: jspb.Message.getFieldWithDefault(msg, 4, "")
  9193. };
  9194. if (includeInstance) {
  9195. obj.$jspbMessageInstance = msg;
  9196. }
  9197. return obj;
  9198. };
  9199. }
  9200. /**
  9201. * Deserializes binary data (in protobuf wire format).
  9202. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9203. * @return {!proto.app.v1.GetRegionReply}
  9204. */
  9205. proto.app.v1.GetRegionReply.deserializeBinary = function(bytes) {
  9206. var reader = new jspb.BinaryReader(bytes);
  9207. var msg = new proto.app.v1.GetRegionReply;
  9208. return proto.app.v1.GetRegionReply.deserializeBinaryFromReader(msg, reader);
  9209. };
  9210. /**
  9211. * Deserializes binary data (in protobuf wire format) from the
  9212. * given reader into the given message object.
  9213. * @param {!proto.app.v1.GetRegionReply} msg The message object to deserialize into.
  9214. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9215. * @return {!proto.app.v1.GetRegionReply}
  9216. */
  9217. proto.app.v1.GetRegionReply.deserializeBinaryFromReader = function(msg, reader) {
  9218. while (reader.nextField()) {
  9219. if (reader.isEndGroup()) {
  9220. break;
  9221. }
  9222. var field = reader.getFieldNumber();
  9223. switch (field) {
  9224. case 1:
  9225. var value = /** @type {string} */ (reader.readString());
  9226. msg.setProvince(value);
  9227. break;
  9228. case 2:
  9229. var value = /** @type {string} */ (reader.readString());
  9230. msg.setProvinceid(value);
  9231. break;
  9232. case 3:
  9233. var value = /** @type {string} */ (reader.readString());
  9234. msg.setCity(value);
  9235. break;
  9236. case 4:
  9237. var value = /** @type {string} */ (reader.readString());
  9238. msg.setCityid(value);
  9239. break;
  9240. default:
  9241. reader.skipField();
  9242. break;
  9243. }
  9244. }
  9245. return msg;
  9246. };
  9247. /**
  9248. * Serializes the message to binary data (in protobuf wire format).
  9249. * @return {!Uint8Array}
  9250. */
  9251. proto.app.v1.GetRegionReply.prototype.serializeBinary = function() {
  9252. var writer = new jspb.BinaryWriter();
  9253. proto.app.v1.GetRegionReply.serializeBinaryToWriter(this, writer);
  9254. return writer.getResultBuffer();
  9255. };
  9256. /**
  9257. * Serializes the given message to binary data (in protobuf wire
  9258. * format), writing to the given BinaryWriter.
  9259. * @param {!proto.app.v1.GetRegionReply} message
  9260. * @param {!jspb.BinaryWriter} writer
  9261. * @suppress {unusedLocalVariables} f is only used for nested messages
  9262. */
  9263. proto.app.v1.GetRegionReply.serializeBinaryToWriter = function(message, writer) {
  9264. var f = undefined;
  9265. f = message.getProvince();
  9266. if (f.length > 0) {
  9267. writer.writeString(
  9268. 1,
  9269. f
  9270. );
  9271. }
  9272. f = message.getProvinceid();
  9273. if (f.length > 0) {
  9274. writer.writeString(
  9275. 2,
  9276. f
  9277. );
  9278. }
  9279. f = message.getCity();
  9280. if (f.length > 0) {
  9281. writer.writeString(
  9282. 3,
  9283. f
  9284. );
  9285. }
  9286. f = message.getCityid();
  9287. if (f.length > 0) {
  9288. writer.writeString(
  9289. 4,
  9290. f
  9291. );
  9292. }
  9293. };
  9294. /**
  9295. * optional string province = 1;
  9296. * @return {string}
  9297. */
  9298. proto.app.v1.GetRegionReply.prototype.getProvince = function() {
  9299. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9300. };
  9301. /**
  9302. * @param {string} value
  9303. * @return {!proto.app.v1.GetRegionReply} returns this
  9304. */
  9305. proto.app.v1.GetRegionReply.prototype.setProvince = function(value) {
  9306. return jspb.Message.setProto3StringField(this, 1, value);
  9307. };
  9308. /**
  9309. * optional string provinceId = 2;
  9310. * @return {string}
  9311. */
  9312. proto.app.v1.GetRegionReply.prototype.getProvinceid = function() {
  9313. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  9314. };
  9315. /**
  9316. * @param {string} value
  9317. * @return {!proto.app.v1.GetRegionReply} returns this
  9318. */
  9319. proto.app.v1.GetRegionReply.prototype.setProvinceid = function(value) {
  9320. return jspb.Message.setProto3StringField(this, 2, value);
  9321. };
  9322. /**
  9323. * optional string city = 3;
  9324. * @return {string}
  9325. */
  9326. proto.app.v1.GetRegionReply.prototype.getCity = function() {
  9327. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  9328. };
  9329. /**
  9330. * @param {string} value
  9331. * @return {!proto.app.v1.GetRegionReply} returns this
  9332. */
  9333. proto.app.v1.GetRegionReply.prototype.setCity = function(value) {
  9334. return jspb.Message.setProto3StringField(this, 3, value);
  9335. };
  9336. /**
  9337. * optional string cityId = 4;
  9338. * @return {string}
  9339. */
  9340. proto.app.v1.GetRegionReply.prototype.getCityid = function() {
  9341. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  9342. };
  9343. /**
  9344. * @param {string} value
  9345. * @return {!proto.app.v1.GetRegionReply} returns this
  9346. */
  9347. proto.app.v1.GetRegionReply.prototype.setCityid = function(value) {
  9348. return jspb.Message.setProto3StringField(this, 4, value);
  9349. };
  9350. if (jspb.Message.GENERATE_TO_OBJECT) {
  9351. /**
  9352. * Creates an object representation of this proto.
  9353. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9354. * Optional fields that are not set will be set to undefined.
  9355. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9356. * For the list of reserved names please see:
  9357. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9358. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9359. * JSPB instance for transitional soy proto support:
  9360. * http://goto/soy-param-migration
  9361. * @return {!Object}
  9362. */
  9363. proto.app.v1.RegionListRequest.prototype.toObject = function(opt_includeInstance) {
  9364. return proto.app.v1.RegionListRequest.toObject(opt_includeInstance, this);
  9365. };
  9366. /**
  9367. * Static version of the {@see toObject} method.
  9368. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9369. * the JSPB instance for transitional soy proto support:
  9370. * http://goto/soy-param-migration
  9371. * @param {!proto.app.v1.RegionListRequest} msg The msg instance to transform.
  9372. * @return {!Object}
  9373. * @suppress {unusedLocalVariables} f is only used for nested messages
  9374. */
  9375. proto.app.v1.RegionListRequest.toObject = function(includeInstance, msg) {
  9376. var f, obj = {
  9377. countryCode: jspb.Message.getFieldWithDefault(msg, 1, "")
  9378. };
  9379. if (includeInstance) {
  9380. obj.$jspbMessageInstance = msg;
  9381. }
  9382. return obj;
  9383. };
  9384. }
  9385. /**
  9386. * Deserializes binary data (in protobuf wire format).
  9387. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9388. * @return {!proto.app.v1.RegionListRequest}
  9389. */
  9390. proto.app.v1.RegionListRequest.deserializeBinary = function(bytes) {
  9391. var reader = new jspb.BinaryReader(bytes);
  9392. var msg = new proto.app.v1.RegionListRequest;
  9393. return proto.app.v1.RegionListRequest.deserializeBinaryFromReader(msg, reader);
  9394. };
  9395. /**
  9396. * Deserializes binary data (in protobuf wire format) from the
  9397. * given reader into the given message object.
  9398. * @param {!proto.app.v1.RegionListRequest} msg The message object to deserialize into.
  9399. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9400. * @return {!proto.app.v1.RegionListRequest}
  9401. */
  9402. proto.app.v1.RegionListRequest.deserializeBinaryFromReader = function(msg, reader) {
  9403. while (reader.nextField()) {
  9404. if (reader.isEndGroup()) {
  9405. break;
  9406. }
  9407. var field = reader.getFieldNumber();
  9408. switch (field) {
  9409. case 1:
  9410. var value = /** @type {string} */ (reader.readString());
  9411. msg.setCountryCode(value);
  9412. break;
  9413. default:
  9414. reader.skipField();
  9415. break;
  9416. }
  9417. }
  9418. return msg;
  9419. };
  9420. /**
  9421. * Serializes the message to binary data (in protobuf wire format).
  9422. * @return {!Uint8Array}
  9423. */
  9424. proto.app.v1.RegionListRequest.prototype.serializeBinary = function() {
  9425. var writer = new jspb.BinaryWriter();
  9426. proto.app.v1.RegionListRequest.serializeBinaryToWriter(this, writer);
  9427. return writer.getResultBuffer();
  9428. };
  9429. /**
  9430. * Serializes the given message to binary data (in protobuf wire
  9431. * format), writing to the given BinaryWriter.
  9432. * @param {!proto.app.v1.RegionListRequest} message
  9433. * @param {!jspb.BinaryWriter} writer
  9434. * @suppress {unusedLocalVariables} f is only used for nested messages
  9435. */
  9436. proto.app.v1.RegionListRequest.serializeBinaryToWriter = function(message, writer) {
  9437. var f = undefined;
  9438. f = message.getCountryCode();
  9439. if (f.length > 0) {
  9440. writer.writeString(
  9441. 1,
  9442. f
  9443. );
  9444. }
  9445. };
  9446. /**
  9447. * optional string country_code = 1;
  9448. * @return {string}
  9449. */
  9450. proto.app.v1.RegionListRequest.prototype.getCountryCode = function() {
  9451. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9452. };
  9453. /**
  9454. * @param {string} value
  9455. * @return {!proto.app.v1.RegionListRequest} returns this
  9456. */
  9457. proto.app.v1.RegionListRequest.prototype.setCountryCode = function(value) {
  9458. return jspb.Message.setProto3StringField(this, 1, value);
  9459. };
  9460. if (jspb.Message.GENERATE_TO_OBJECT) {
  9461. /**
  9462. * Creates an object representation of this proto.
  9463. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9464. * Optional fields that are not set will be set to undefined.
  9465. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9466. * For the list of reserved names please see:
  9467. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9468. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9469. * JSPB instance for transitional soy proto support:
  9470. * http://goto/soy-param-migration
  9471. * @return {!Object}
  9472. */
  9473. proto.app.v1.Region.prototype.toObject = function(opt_includeInstance) {
  9474. return proto.app.v1.Region.toObject(opt_includeInstance, this);
  9475. };
  9476. /**
  9477. * Static version of the {@see toObject} method.
  9478. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9479. * the JSPB instance for transitional soy proto support:
  9480. * http://goto/soy-param-migration
  9481. * @param {!proto.app.v1.Region} msg The msg instance to transform.
  9482. * @return {!Object}
  9483. * @suppress {unusedLocalVariables} f is only used for nested messages
  9484. */
  9485. proto.app.v1.Region.toObject = function(includeInstance, msg) {
  9486. var f, obj = {
  9487. code: jspb.Message.getFieldWithDefault(msg, 1, ""),
  9488. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  9489. };
  9490. if (includeInstance) {
  9491. obj.$jspbMessageInstance = msg;
  9492. }
  9493. return obj;
  9494. };
  9495. }
  9496. /**
  9497. * Deserializes binary data (in protobuf wire format).
  9498. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9499. * @return {!proto.app.v1.Region}
  9500. */
  9501. proto.app.v1.Region.deserializeBinary = function(bytes) {
  9502. var reader = new jspb.BinaryReader(bytes);
  9503. var msg = new proto.app.v1.Region;
  9504. return proto.app.v1.Region.deserializeBinaryFromReader(msg, reader);
  9505. };
  9506. /**
  9507. * Deserializes binary data (in protobuf wire format) from the
  9508. * given reader into the given message object.
  9509. * @param {!proto.app.v1.Region} msg The message object to deserialize into.
  9510. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9511. * @return {!proto.app.v1.Region}
  9512. */
  9513. proto.app.v1.Region.deserializeBinaryFromReader = function(msg, reader) {
  9514. while (reader.nextField()) {
  9515. if (reader.isEndGroup()) {
  9516. break;
  9517. }
  9518. var field = reader.getFieldNumber();
  9519. switch (field) {
  9520. case 1:
  9521. var value = /** @type {string} */ (reader.readString());
  9522. msg.setCode(value);
  9523. break;
  9524. case 2:
  9525. var value = /** @type {string} */ (reader.readString());
  9526. msg.setName(value);
  9527. break;
  9528. default:
  9529. reader.skipField();
  9530. break;
  9531. }
  9532. }
  9533. return msg;
  9534. };
  9535. /**
  9536. * Serializes the message to binary data (in protobuf wire format).
  9537. * @return {!Uint8Array}
  9538. */
  9539. proto.app.v1.Region.prototype.serializeBinary = function() {
  9540. var writer = new jspb.BinaryWriter();
  9541. proto.app.v1.Region.serializeBinaryToWriter(this, writer);
  9542. return writer.getResultBuffer();
  9543. };
  9544. /**
  9545. * Serializes the given message to binary data (in protobuf wire
  9546. * format), writing to the given BinaryWriter.
  9547. * @param {!proto.app.v1.Region} message
  9548. * @param {!jspb.BinaryWriter} writer
  9549. * @suppress {unusedLocalVariables} f is only used for nested messages
  9550. */
  9551. proto.app.v1.Region.serializeBinaryToWriter = function(message, writer) {
  9552. var f = undefined;
  9553. f = message.getCode();
  9554. if (f.length > 0) {
  9555. writer.writeString(
  9556. 1,
  9557. f
  9558. );
  9559. }
  9560. f = message.getName();
  9561. if (f.length > 0) {
  9562. writer.writeString(
  9563. 2,
  9564. f
  9565. );
  9566. }
  9567. };
  9568. /**
  9569. * optional string code = 1;
  9570. * @return {string}
  9571. */
  9572. proto.app.v1.Region.prototype.getCode = function() {
  9573. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  9574. };
  9575. /**
  9576. * @param {string} value
  9577. * @return {!proto.app.v1.Region} returns this
  9578. */
  9579. proto.app.v1.Region.prototype.setCode = function(value) {
  9580. return jspb.Message.setProto3StringField(this, 1, value);
  9581. };
  9582. /**
  9583. * optional string name = 2;
  9584. * @return {string}
  9585. */
  9586. proto.app.v1.Region.prototype.getName = function() {
  9587. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  9588. };
  9589. /**
  9590. * @param {string} value
  9591. * @return {!proto.app.v1.Region} returns this
  9592. */
  9593. proto.app.v1.Region.prototype.setName = function(value) {
  9594. return jspb.Message.setProto3StringField(this, 2, value);
  9595. };
  9596. /**
  9597. * List of repeated fields within this message type.
  9598. * @private {!Array<number>}
  9599. * @const
  9600. */
  9601. proto.app.v1.RegionListReply.repeatedFields_ = [1];
  9602. if (jspb.Message.GENERATE_TO_OBJECT) {
  9603. /**
  9604. * Creates an object representation of this proto.
  9605. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9606. * Optional fields that are not set will be set to undefined.
  9607. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9608. * For the list of reserved names please see:
  9609. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9610. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9611. * JSPB instance for transitional soy proto support:
  9612. * http://goto/soy-param-migration
  9613. * @return {!Object}
  9614. */
  9615. proto.app.v1.RegionListReply.prototype.toObject = function(opt_includeInstance) {
  9616. return proto.app.v1.RegionListReply.toObject(opt_includeInstance, this);
  9617. };
  9618. /**
  9619. * Static version of the {@see toObject} method.
  9620. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9621. * the JSPB instance for transitional soy proto support:
  9622. * http://goto/soy-param-migration
  9623. * @param {!proto.app.v1.RegionListReply} msg The msg instance to transform.
  9624. * @return {!Object}
  9625. * @suppress {unusedLocalVariables} f is only used for nested messages
  9626. */
  9627. proto.app.v1.RegionListReply.toObject = function(includeInstance, msg) {
  9628. var f, obj = {
  9629. regionList: jspb.Message.toObjectList(msg.getRegionList(),
  9630. proto.app.v1.Region.toObject, includeInstance)
  9631. };
  9632. if (includeInstance) {
  9633. obj.$jspbMessageInstance = msg;
  9634. }
  9635. return obj;
  9636. };
  9637. }
  9638. /**
  9639. * Deserializes binary data (in protobuf wire format).
  9640. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9641. * @return {!proto.app.v1.RegionListReply}
  9642. */
  9643. proto.app.v1.RegionListReply.deserializeBinary = function(bytes) {
  9644. var reader = new jspb.BinaryReader(bytes);
  9645. var msg = new proto.app.v1.RegionListReply;
  9646. return proto.app.v1.RegionListReply.deserializeBinaryFromReader(msg, reader);
  9647. };
  9648. /**
  9649. * Deserializes binary data (in protobuf wire format) from the
  9650. * given reader into the given message object.
  9651. * @param {!proto.app.v1.RegionListReply} msg The message object to deserialize into.
  9652. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9653. * @return {!proto.app.v1.RegionListReply}
  9654. */
  9655. proto.app.v1.RegionListReply.deserializeBinaryFromReader = function(msg, reader) {
  9656. while (reader.nextField()) {
  9657. if (reader.isEndGroup()) {
  9658. break;
  9659. }
  9660. var field = reader.getFieldNumber();
  9661. switch (field) {
  9662. case 1:
  9663. var value = new proto.app.v1.Region;
  9664. reader.readMessage(value,proto.app.v1.Region.deserializeBinaryFromReader);
  9665. msg.addRegion(value);
  9666. break;
  9667. default:
  9668. reader.skipField();
  9669. break;
  9670. }
  9671. }
  9672. return msg;
  9673. };
  9674. /**
  9675. * Serializes the message to binary data (in protobuf wire format).
  9676. * @return {!Uint8Array}
  9677. */
  9678. proto.app.v1.RegionListReply.prototype.serializeBinary = function() {
  9679. var writer = new jspb.BinaryWriter();
  9680. proto.app.v1.RegionListReply.serializeBinaryToWriter(this, writer);
  9681. return writer.getResultBuffer();
  9682. };
  9683. /**
  9684. * Serializes the given message to binary data (in protobuf wire
  9685. * format), writing to the given BinaryWriter.
  9686. * @param {!proto.app.v1.RegionListReply} message
  9687. * @param {!jspb.BinaryWriter} writer
  9688. * @suppress {unusedLocalVariables} f is only used for nested messages
  9689. */
  9690. proto.app.v1.RegionListReply.serializeBinaryToWriter = function(message, writer) {
  9691. var f = undefined;
  9692. f = message.getRegionList();
  9693. if (f.length > 0) {
  9694. writer.writeRepeatedMessage(
  9695. 1,
  9696. f,
  9697. proto.app.v1.Region.serializeBinaryToWriter
  9698. );
  9699. }
  9700. };
  9701. /**
  9702. * repeated Region region = 1;
  9703. * @return {!Array<!proto.app.v1.Region>}
  9704. */
  9705. proto.app.v1.RegionListReply.prototype.getRegionList = function() {
  9706. return /** @type{!Array<!proto.app.v1.Region>} */ (
  9707. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.Region, 1));
  9708. };
  9709. /**
  9710. * @param {!Array<!proto.app.v1.Region>} value
  9711. * @return {!proto.app.v1.RegionListReply} returns this
  9712. */
  9713. proto.app.v1.RegionListReply.prototype.setRegionList = function(value) {
  9714. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  9715. };
  9716. /**
  9717. * @param {!proto.app.v1.Region=} opt_value
  9718. * @param {number=} opt_index
  9719. * @return {!proto.app.v1.Region}
  9720. */
  9721. proto.app.v1.RegionListReply.prototype.addRegion = function(opt_value, opt_index) {
  9722. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.Region, opt_index);
  9723. };
  9724. /**
  9725. * Clears the list making it empty but non-null.
  9726. * @return {!proto.app.v1.RegionListReply} returns this
  9727. */
  9728. proto.app.v1.RegionListReply.prototype.clearRegionList = function() {
  9729. return this.setRegionList([]);
  9730. };
  9731. if (jspb.Message.GENERATE_TO_OBJECT) {
  9732. /**
  9733. * Creates an object representation of this proto.
  9734. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9735. * Optional fields that are not set will be set to undefined.
  9736. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9737. * For the list of reserved names please see:
  9738. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9739. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9740. * JSPB instance for transitional soy proto support:
  9741. * http://goto/soy-param-migration
  9742. * @return {!Object}
  9743. */
  9744. proto.app.v1.GetInGameDataReply.prototype.toObject = function(opt_includeInstance) {
  9745. return proto.app.v1.GetInGameDataReply.toObject(opt_includeInstance, this);
  9746. };
  9747. /**
  9748. * Static version of the {@see toObject} method.
  9749. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9750. * the JSPB instance for transitional soy proto support:
  9751. * http://goto/soy-param-migration
  9752. * @param {!proto.app.v1.GetInGameDataReply} msg The msg instance to transform.
  9753. * @return {!Object}
  9754. * @suppress {unusedLocalVariables} f is only used for nested messages
  9755. */
  9756. proto.app.v1.GetInGameDataReply.toObject = function(includeInstance, msg) {
  9757. var f, obj = {
  9758. data: (f = msg.getData()) && proto.app.v1.GameData.toObject(includeInstance, f),
  9759. save: (f = msg.getSave()) && proto.app.v1.GameSave.toObject(includeInstance, f)
  9760. };
  9761. if (includeInstance) {
  9762. obj.$jspbMessageInstance = msg;
  9763. }
  9764. return obj;
  9765. };
  9766. }
  9767. /**
  9768. * Deserializes binary data (in protobuf wire format).
  9769. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9770. * @return {!proto.app.v1.GetInGameDataReply}
  9771. */
  9772. proto.app.v1.GetInGameDataReply.deserializeBinary = function(bytes) {
  9773. var reader = new jspb.BinaryReader(bytes);
  9774. var msg = new proto.app.v1.GetInGameDataReply;
  9775. return proto.app.v1.GetInGameDataReply.deserializeBinaryFromReader(msg, reader);
  9776. };
  9777. /**
  9778. * Deserializes binary data (in protobuf wire format) from the
  9779. * given reader into the given message object.
  9780. * @param {!proto.app.v1.GetInGameDataReply} msg The message object to deserialize into.
  9781. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9782. * @return {!proto.app.v1.GetInGameDataReply}
  9783. */
  9784. proto.app.v1.GetInGameDataReply.deserializeBinaryFromReader = function(msg, reader) {
  9785. while (reader.nextField()) {
  9786. if (reader.isEndGroup()) {
  9787. break;
  9788. }
  9789. var field = reader.getFieldNumber();
  9790. switch (field) {
  9791. case 1:
  9792. var value = new proto.app.v1.GameData;
  9793. reader.readMessage(value,proto.app.v1.GameData.deserializeBinaryFromReader);
  9794. msg.setData(value);
  9795. break;
  9796. case 2:
  9797. var value = new proto.app.v1.GameSave;
  9798. reader.readMessage(value,proto.app.v1.GameSave.deserializeBinaryFromReader);
  9799. msg.setSave(value);
  9800. break;
  9801. default:
  9802. reader.skipField();
  9803. break;
  9804. }
  9805. }
  9806. return msg;
  9807. };
  9808. /**
  9809. * Serializes the message to binary data (in protobuf wire format).
  9810. * @return {!Uint8Array}
  9811. */
  9812. proto.app.v1.GetInGameDataReply.prototype.serializeBinary = function() {
  9813. var writer = new jspb.BinaryWriter();
  9814. proto.app.v1.GetInGameDataReply.serializeBinaryToWriter(this, writer);
  9815. return writer.getResultBuffer();
  9816. };
  9817. /**
  9818. * Serializes the given message to binary data (in protobuf wire
  9819. * format), writing to the given BinaryWriter.
  9820. * @param {!proto.app.v1.GetInGameDataReply} message
  9821. * @param {!jspb.BinaryWriter} writer
  9822. * @suppress {unusedLocalVariables} f is only used for nested messages
  9823. */
  9824. proto.app.v1.GetInGameDataReply.serializeBinaryToWriter = function(message, writer) {
  9825. var f = undefined;
  9826. f = message.getData();
  9827. if (f != null) {
  9828. writer.writeMessage(
  9829. 1,
  9830. f,
  9831. proto.app.v1.GameData.serializeBinaryToWriter
  9832. );
  9833. }
  9834. f = message.getSave();
  9835. if (f != null) {
  9836. writer.writeMessage(
  9837. 2,
  9838. f,
  9839. proto.app.v1.GameSave.serializeBinaryToWriter
  9840. );
  9841. }
  9842. };
  9843. /**
  9844. * optional GameData data = 1;
  9845. * @return {?proto.app.v1.GameData}
  9846. */
  9847. proto.app.v1.GetInGameDataReply.prototype.getData = function() {
  9848. return /** @type{?proto.app.v1.GameData} */ (
  9849. jspb.Message.getWrapperField(this, proto.app.v1.GameData, 1));
  9850. };
  9851. /**
  9852. * @param {?proto.app.v1.GameData|undefined} value
  9853. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9854. */
  9855. proto.app.v1.GetInGameDataReply.prototype.setData = function(value) {
  9856. return jspb.Message.setWrapperField(this, 1, value);
  9857. };
  9858. /**
  9859. * Clears the message field making it undefined.
  9860. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9861. */
  9862. proto.app.v1.GetInGameDataReply.prototype.clearData = function() {
  9863. return this.setData(undefined);
  9864. };
  9865. /**
  9866. * Returns whether this field is set.
  9867. * @return {boolean}
  9868. */
  9869. proto.app.v1.GetInGameDataReply.prototype.hasData = function() {
  9870. return jspb.Message.getField(this, 1) != null;
  9871. };
  9872. /**
  9873. * optional GameSave save = 2;
  9874. * @return {?proto.app.v1.GameSave}
  9875. */
  9876. proto.app.v1.GetInGameDataReply.prototype.getSave = function() {
  9877. return /** @type{?proto.app.v1.GameSave} */ (
  9878. jspb.Message.getWrapperField(this, proto.app.v1.GameSave, 2));
  9879. };
  9880. /**
  9881. * @param {?proto.app.v1.GameSave|undefined} value
  9882. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9883. */
  9884. proto.app.v1.GetInGameDataReply.prototype.setSave = function(value) {
  9885. return jspb.Message.setWrapperField(this, 2, value);
  9886. };
  9887. /**
  9888. * Clears the message field making it undefined.
  9889. * @return {!proto.app.v1.GetInGameDataReply} returns this
  9890. */
  9891. proto.app.v1.GetInGameDataReply.prototype.clearSave = function() {
  9892. return this.setSave(undefined);
  9893. };
  9894. /**
  9895. * Returns whether this field is set.
  9896. * @return {boolean}
  9897. */
  9898. proto.app.v1.GetInGameDataReply.prototype.hasSave = function() {
  9899. return jspb.Message.getField(this, 2) != null;
  9900. };
  9901. if (jspb.Message.GENERATE_TO_OBJECT) {
  9902. /**
  9903. * Creates an object representation of this proto.
  9904. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  9905. * Optional fields that are not set will be set to undefined.
  9906. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  9907. * For the list of reserved names please see:
  9908. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  9909. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  9910. * JSPB instance for transitional soy proto support:
  9911. * http://goto/soy-param-migration
  9912. * @return {!Object}
  9913. */
  9914. proto.app.v1.MyUserQueryReply.prototype.toObject = function(opt_includeInstance) {
  9915. return proto.app.v1.MyUserQueryReply.toObject(opt_includeInstance, this);
  9916. };
  9917. /**
  9918. * Static version of the {@see toObject} method.
  9919. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  9920. * the JSPB instance for transitional soy proto support:
  9921. * http://goto/soy-param-migration
  9922. * @param {!proto.app.v1.MyUserQueryReply} msg The msg instance to transform.
  9923. * @return {!Object}
  9924. * @suppress {unusedLocalVariables} f is only used for nested messages
  9925. */
  9926. proto.app.v1.MyUserQueryReply.toObject = function(includeInstance, msg) {
  9927. var f, obj = {
  9928. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  9929. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  9930. head: (f = msg.getHead()) && proto.app.v1.NetImage.toObject(includeInstance, f),
  9931. syspoint: jspb.Message.getFieldWithDefault(msg, 4, 0),
  9932. phone: jspb.Message.getFieldWithDefault(msg, 5, "")
  9933. };
  9934. if (includeInstance) {
  9935. obj.$jspbMessageInstance = msg;
  9936. }
  9937. return obj;
  9938. };
  9939. }
  9940. /**
  9941. * Deserializes binary data (in protobuf wire format).
  9942. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  9943. * @return {!proto.app.v1.MyUserQueryReply}
  9944. */
  9945. proto.app.v1.MyUserQueryReply.deserializeBinary = function(bytes) {
  9946. var reader = new jspb.BinaryReader(bytes);
  9947. var msg = new proto.app.v1.MyUserQueryReply;
  9948. return proto.app.v1.MyUserQueryReply.deserializeBinaryFromReader(msg, reader);
  9949. };
  9950. /**
  9951. * Deserializes binary data (in protobuf wire format) from the
  9952. * given reader into the given message object.
  9953. * @param {!proto.app.v1.MyUserQueryReply} msg The message object to deserialize into.
  9954. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  9955. * @return {!proto.app.v1.MyUserQueryReply}
  9956. */
  9957. proto.app.v1.MyUserQueryReply.deserializeBinaryFromReader = function(msg, reader) {
  9958. while (reader.nextField()) {
  9959. if (reader.isEndGroup()) {
  9960. break;
  9961. }
  9962. var field = reader.getFieldNumber();
  9963. switch (field) {
  9964. case 1:
  9965. var value = /** @type {number} */ (reader.readInt32());
  9966. msg.setUserid(value);
  9967. break;
  9968. case 2:
  9969. var value = /** @type {string} */ (reader.readString());
  9970. msg.setName(value);
  9971. break;
  9972. case 3:
  9973. var value = new proto.app.v1.NetImage;
  9974. reader.readMessage(value,proto.app.v1.NetImage.deserializeBinaryFromReader);
  9975. msg.setHead(value);
  9976. break;
  9977. case 4:
  9978. var value = /** @type {number} */ (reader.readInt32());
  9979. msg.setSyspoint(value);
  9980. break;
  9981. case 5:
  9982. var value = /** @type {string} */ (reader.readString());
  9983. msg.setPhone(value);
  9984. break;
  9985. default:
  9986. reader.skipField();
  9987. break;
  9988. }
  9989. }
  9990. return msg;
  9991. };
  9992. /**
  9993. * Serializes the message to binary data (in protobuf wire format).
  9994. * @return {!Uint8Array}
  9995. */
  9996. proto.app.v1.MyUserQueryReply.prototype.serializeBinary = function() {
  9997. var writer = new jspb.BinaryWriter();
  9998. proto.app.v1.MyUserQueryReply.serializeBinaryToWriter(this, writer);
  9999. return writer.getResultBuffer();
  10000. };
  10001. /**
  10002. * Serializes the given message to binary data (in protobuf wire
  10003. * format), writing to the given BinaryWriter.
  10004. * @param {!proto.app.v1.MyUserQueryReply} message
  10005. * @param {!jspb.BinaryWriter} writer
  10006. * @suppress {unusedLocalVariables} f is only used for nested messages
  10007. */
  10008. proto.app.v1.MyUserQueryReply.serializeBinaryToWriter = function(message, writer) {
  10009. var f = undefined;
  10010. f = message.getUserid();
  10011. if (f !== 0) {
  10012. writer.writeInt32(
  10013. 1,
  10014. f
  10015. );
  10016. }
  10017. f = message.getName();
  10018. if (f.length > 0) {
  10019. writer.writeString(
  10020. 2,
  10021. f
  10022. );
  10023. }
  10024. f = message.getHead();
  10025. if (f != null) {
  10026. writer.writeMessage(
  10027. 3,
  10028. f,
  10029. proto.app.v1.NetImage.serializeBinaryToWriter
  10030. );
  10031. }
  10032. f = message.getSyspoint();
  10033. if (f !== 0) {
  10034. writer.writeInt32(
  10035. 4,
  10036. f
  10037. );
  10038. }
  10039. f = message.getPhone();
  10040. if (f.length > 0) {
  10041. writer.writeString(
  10042. 5,
  10043. f
  10044. );
  10045. }
  10046. };
  10047. /**
  10048. * optional int32 userId = 1;
  10049. * @return {number}
  10050. */
  10051. proto.app.v1.MyUserQueryReply.prototype.getUserid = function() {
  10052. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10053. };
  10054. /**
  10055. * @param {number} value
  10056. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10057. */
  10058. proto.app.v1.MyUserQueryReply.prototype.setUserid = function(value) {
  10059. return jspb.Message.setProto3IntField(this, 1, value);
  10060. };
  10061. /**
  10062. * optional string name = 2;
  10063. * @return {string}
  10064. */
  10065. proto.app.v1.MyUserQueryReply.prototype.getName = function() {
  10066. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10067. };
  10068. /**
  10069. * @param {string} value
  10070. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10071. */
  10072. proto.app.v1.MyUserQueryReply.prototype.setName = function(value) {
  10073. return jspb.Message.setProto3StringField(this, 2, value);
  10074. };
  10075. /**
  10076. * optional NetImage head = 3;
  10077. * @return {?proto.app.v1.NetImage}
  10078. */
  10079. proto.app.v1.MyUserQueryReply.prototype.getHead = function() {
  10080. return /** @type{?proto.app.v1.NetImage} */ (
  10081. jspb.Message.getWrapperField(this, proto.app.v1.NetImage, 3));
  10082. };
  10083. /**
  10084. * @param {?proto.app.v1.NetImage|undefined} value
  10085. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10086. */
  10087. proto.app.v1.MyUserQueryReply.prototype.setHead = function(value) {
  10088. return jspb.Message.setWrapperField(this, 3, value);
  10089. };
  10090. /**
  10091. * Clears the message field making it undefined.
  10092. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10093. */
  10094. proto.app.v1.MyUserQueryReply.prototype.clearHead = function() {
  10095. return this.setHead(undefined);
  10096. };
  10097. /**
  10098. * Returns whether this field is set.
  10099. * @return {boolean}
  10100. */
  10101. proto.app.v1.MyUserQueryReply.prototype.hasHead = function() {
  10102. return jspb.Message.getField(this, 3) != null;
  10103. };
  10104. /**
  10105. * optional int32 sysPoint = 4;
  10106. * @return {number}
  10107. */
  10108. proto.app.v1.MyUserQueryReply.prototype.getSyspoint = function() {
  10109. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  10110. };
  10111. /**
  10112. * @param {number} value
  10113. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10114. */
  10115. proto.app.v1.MyUserQueryReply.prototype.setSyspoint = function(value) {
  10116. return jspb.Message.setProto3IntField(this, 4, value);
  10117. };
  10118. /**
  10119. * optional string phone = 5;
  10120. * @return {string}
  10121. */
  10122. proto.app.v1.MyUserQueryReply.prototype.getPhone = function() {
  10123. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  10124. };
  10125. /**
  10126. * @param {string} value
  10127. * @return {!proto.app.v1.MyUserQueryReply} returns this
  10128. */
  10129. proto.app.v1.MyUserQueryReply.prototype.setPhone = function(value) {
  10130. return jspb.Message.setProto3StringField(this, 5, value);
  10131. };
  10132. /**
  10133. * List of repeated fields within this message type.
  10134. * @private {!Array<number>}
  10135. * @const
  10136. */
  10137. proto.app.v1.AssShopListReply.repeatedFields_ = [1];
  10138. if (jspb.Message.GENERATE_TO_OBJECT) {
  10139. /**
  10140. * Creates an object representation of this proto.
  10141. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10142. * Optional fields that are not set will be set to undefined.
  10143. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10144. * For the list of reserved names please see:
  10145. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10146. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10147. * JSPB instance for transitional soy proto support:
  10148. * http://goto/soy-param-migration
  10149. * @return {!Object}
  10150. */
  10151. proto.app.v1.AssShopListReply.prototype.toObject = function(opt_includeInstance) {
  10152. return proto.app.v1.AssShopListReply.toObject(opt_includeInstance, this);
  10153. };
  10154. /**
  10155. * Static version of the {@see toObject} method.
  10156. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10157. * the JSPB instance for transitional soy proto support:
  10158. * http://goto/soy-param-migration
  10159. * @param {!proto.app.v1.AssShopListReply} msg The msg instance to transform.
  10160. * @return {!Object}
  10161. * @suppress {unusedLocalVariables} f is only used for nested messages
  10162. */
  10163. proto.app.v1.AssShopListReply.toObject = function(includeInstance, msg) {
  10164. var f, obj = {
  10165. listList: jspb.Message.toObjectList(msg.getListList(),
  10166. proto.app.v1.ShopList.toObject, includeInstance)
  10167. };
  10168. if (includeInstance) {
  10169. obj.$jspbMessageInstance = msg;
  10170. }
  10171. return obj;
  10172. };
  10173. }
  10174. /**
  10175. * Deserializes binary data (in protobuf wire format).
  10176. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10177. * @return {!proto.app.v1.AssShopListReply}
  10178. */
  10179. proto.app.v1.AssShopListReply.deserializeBinary = function(bytes) {
  10180. var reader = new jspb.BinaryReader(bytes);
  10181. var msg = new proto.app.v1.AssShopListReply;
  10182. return proto.app.v1.AssShopListReply.deserializeBinaryFromReader(msg, reader);
  10183. };
  10184. /**
  10185. * Deserializes binary data (in protobuf wire format) from the
  10186. * given reader into the given message object.
  10187. * @param {!proto.app.v1.AssShopListReply} msg The message object to deserialize into.
  10188. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10189. * @return {!proto.app.v1.AssShopListReply}
  10190. */
  10191. proto.app.v1.AssShopListReply.deserializeBinaryFromReader = function(msg, reader) {
  10192. while (reader.nextField()) {
  10193. if (reader.isEndGroup()) {
  10194. break;
  10195. }
  10196. var field = reader.getFieldNumber();
  10197. switch (field) {
  10198. case 1:
  10199. var value = new proto.app.v1.ShopList;
  10200. reader.readMessage(value,proto.app.v1.ShopList.deserializeBinaryFromReader);
  10201. msg.addList(value);
  10202. break;
  10203. default:
  10204. reader.skipField();
  10205. break;
  10206. }
  10207. }
  10208. return msg;
  10209. };
  10210. /**
  10211. * Serializes the message to binary data (in protobuf wire format).
  10212. * @return {!Uint8Array}
  10213. */
  10214. proto.app.v1.AssShopListReply.prototype.serializeBinary = function() {
  10215. var writer = new jspb.BinaryWriter();
  10216. proto.app.v1.AssShopListReply.serializeBinaryToWriter(this, writer);
  10217. return writer.getResultBuffer();
  10218. };
  10219. /**
  10220. * Serializes the given message to binary data (in protobuf wire
  10221. * format), writing to the given BinaryWriter.
  10222. * @param {!proto.app.v1.AssShopListReply} message
  10223. * @param {!jspb.BinaryWriter} writer
  10224. * @suppress {unusedLocalVariables} f is only used for nested messages
  10225. */
  10226. proto.app.v1.AssShopListReply.serializeBinaryToWriter = function(message, writer) {
  10227. var f = undefined;
  10228. f = message.getListList();
  10229. if (f.length > 0) {
  10230. writer.writeRepeatedMessage(
  10231. 1,
  10232. f,
  10233. proto.app.v1.ShopList.serializeBinaryToWriter
  10234. );
  10235. }
  10236. };
  10237. /**
  10238. * repeated ShopList list = 1;
  10239. * @return {!Array<!proto.app.v1.ShopList>}
  10240. */
  10241. proto.app.v1.AssShopListReply.prototype.getListList = function() {
  10242. return /** @type{!Array<!proto.app.v1.ShopList>} */ (
  10243. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ShopList, 1));
  10244. };
  10245. /**
  10246. * @param {!Array<!proto.app.v1.ShopList>} value
  10247. * @return {!proto.app.v1.AssShopListReply} returns this
  10248. */
  10249. proto.app.v1.AssShopListReply.prototype.setListList = function(value) {
  10250. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  10251. };
  10252. /**
  10253. * @param {!proto.app.v1.ShopList=} opt_value
  10254. * @param {number=} opt_index
  10255. * @return {!proto.app.v1.ShopList}
  10256. */
  10257. proto.app.v1.AssShopListReply.prototype.addList = function(opt_value, opt_index) {
  10258. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ShopList, opt_index);
  10259. };
  10260. /**
  10261. * Clears the list making it empty but non-null.
  10262. * @return {!proto.app.v1.AssShopListReply} returns this
  10263. */
  10264. proto.app.v1.AssShopListReply.prototype.clearListList = function() {
  10265. return this.setListList([]);
  10266. };
  10267. if (jspb.Message.GENERATE_TO_OBJECT) {
  10268. /**
  10269. * Creates an object representation of this proto.
  10270. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10271. * Optional fields that are not set will be set to undefined.
  10272. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10273. * For the list of reserved names please see:
  10274. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10275. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10276. * JSPB instance for transitional soy proto support:
  10277. * http://goto/soy-param-migration
  10278. * @return {!Object}
  10279. */
  10280. proto.app.v1.ShopList.prototype.toObject = function(opt_includeInstance) {
  10281. return proto.app.v1.ShopList.toObject(opt_includeInstance, this);
  10282. };
  10283. /**
  10284. * Static version of the {@see toObject} method.
  10285. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10286. * the JSPB instance for transitional soy proto support:
  10287. * http://goto/soy-param-migration
  10288. * @param {!proto.app.v1.ShopList} msg The msg instance to transform.
  10289. * @return {!Object}
  10290. * @suppress {unusedLocalVariables} f is only used for nested messages
  10291. */
  10292. proto.app.v1.ShopList.toObject = function(includeInstance, msg) {
  10293. var f, obj = {
  10294. shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10295. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  10296. };
  10297. if (includeInstance) {
  10298. obj.$jspbMessageInstance = msg;
  10299. }
  10300. return obj;
  10301. };
  10302. }
  10303. /**
  10304. * Deserializes binary data (in protobuf wire format).
  10305. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10306. * @return {!proto.app.v1.ShopList}
  10307. */
  10308. proto.app.v1.ShopList.deserializeBinary = function(bytes) {
  10309. var reader = new jspb.BinaryReader(bytes);
  10310. var msg = new proto.app.v1.ShopList;
  10311. return proto.app.v1.ShopList.deserializeBinaryFromReader(msg, reader);
  10312. };
  10313. /**
  10314. * Deserializes binary data (in protobuf wire format) from the
  10315. * given reader into the given message object.
  10316. * @param {!proto.app.v1.ShopList} msg The message object to deserialize into.
  10317. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10318. * @return {!proto.app.v1.ShopList}
  10319. */
  10320. proto.app.v1.ShopList.deserializeBinaryFromReader = function(msg, reader) {
  10321. while (reader.nextField()) {
  10322. if (reader.isEndGroup()) {
  10323. break;
  10324. }
  10325. var field = reader.getFieldNumber();
  10326. switch (field) {
  10327. case 1:
  10328. var value = /** @type {number} */ (reader.readInt32());
  10329. msg.setShopid(value);
  10330. break;
  10331. case 2:
  10332. var value = /** @type {string} */ (reader.readString());
  10333. msg.setName(value);
  10334. break;
  10335. default:
  10336. reader.skipField();
  10337. break;
  10338. }
  10339. }
  10340. return msg;
  10341. };
  10342. /**
  10343. * Serializes the message to binary data (in protobuf wire format).
  10344. * @return {!Uint8Array}
  10345. */
  10346. proto.app.v1.ShopList.prototype.serializeBinary = function() {
  10347. var writer = new jspb.BinaryWriter();
  10348. proto.app.v1.ShopList.serializeBinaryToWriter(this, writer);
  10349. return writer.getResultBuffer();
  10350. };
  10351. /**
  10352. * Serializes the given message to binary data (in protobuf wire
  10353. * format), writing to the given BinaryWriter.
  10354. * @param {!proto.app.v1.ShopList} message
  10355. * @param {!jspb.BinaryWriter} writer
  10356. * @suppress {unusedLocalVariables} f is only used for nested messages
  10357. */
  10358. proto.app.v1.ShopList.serializeBinaryToWriter = function(message, writer) {
  10359. var f = undefined;
  10360. f = message.getShopid();
  10361. if (f !== 0) {
  10362. writer.writeInt32(
  10363. 1,
  10364. f
  10365. );
  10366. }
  10367. f = message.getName();
  10368. if (f.length > 0) {
  10369. writer.writeString(
  10370. 2,
  10371. f
  10372. );
  10373. }
  10374. };
  10375. /**
  10376. * optional int32 shopId = 1;
  10377. * @return {number}
  10378. */
  10379. proto.app.v1.ShopList.prototype.getShopid = function() {
  10380. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10381. };
  10382. /**
  10383. * @param {number} value
  10384. * @return {!proto.app.v1.ShopList} returns this
  10385. */
  10386. proto.app.v1.ShopList.prototype.setShopid = function(value) {
  10387. return jspb.Message.setProto3IntField(this, 1, value);
  10388. };
  10389. /**
  10390. * optional string name = 2;
  10391. * @return {string}
  10392. */
  10393. proto.app.v1.ShopList.prototype.getName = function() {
  10394. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10395. };
  10396. /**
  10397. * @param {string} value
  10398. * @return {!proto.app.v1.ShopList} returns this
  10399. */
  10400. proto.app.v1.ShopList.prototype.setName = function(value) {
  10401. return jspb.Message.setProto3StringField(this, 2, value);
  10402. };
  10403. /**
  10404. * List of repeated fields within this message type.
  10405. * @private {!Array<number>}
  10406. * @const
  10407. */
  10408. proto.app.v1.AssControlInfoListReply.repeatedFields_ = [1];
  10409. if (jspb.Message.GENERATE_TO_OBJECT) {
  10410. /**
  10411. * Creates an object representation of this proto.
  10412. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10413. * Optional fields that are not set will be set to undefined.
  10414. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10415. * For the list of reserved names please see:
  10416. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10417. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10418. * JSPB instance for transitional soy proto support:
  10419. * http://goto/soy-param-migration
  10420. * @return {!Object}
  10421. */
  10422. proto.app.v1.AssControlInfoListReply.prototype.toObject = function(opt_includeInstance) {
  10423. return proto.app.v1.AssControlInfoListReply.toObject(opt_includeInstance, this);
  10424. };
  10425. /**
  10426. * Static version of the {@see toObject} method.
  10427. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10428. * the JSPB instance for transitional soy proto support:
  10429. * http://goto/soy-param-migration
  10430. * @param {!proto.app.v1.AssControlInfoListReply} msg The msg instance to transform.
  10431. * @return {!Object}
  10432. * @suppress {unusedLocalVariables} f is only used for nested messages
  10433. */
  10434. proto.app.v1.AssControlInfoListReply.toObject = function(includeInstance, msg) {
  10435. var f, obj = {
  10436. listList: jspb.Message.toObjectList(msg.getListList(),
  10437. proto.app.v1.ControlInfoList.toObject, includeInstance)
  10438. };
  10439. if (includeInstance) {
  10440. obj.$jspbMessageInstance = msg;
  10441. }
  10442. return obj;
  10443. };
  10444. }
  10445. /**
  10446. * Deserializes binary data (in protobuf wire format).
  10447. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10448. * @return {!proto.app.v1.AssControlInfoListReply}
  10449. */
  10450. proto.app.v1.AssControlInfoListReply.deserializeBinary = function(bytes) {
  10451. var reader = new jspb.BinaryReader(bytes);
  10452. var msg = new proto.app.v1.AssControlInfoListReply;
  10453. return proto.app.v1.AssControlInfoListReply.deserializeBinaryFromReader(msg, reader);
  10454. };
  10455. /**
  10456. * Deserializes binary data (in protobuf wire format) from the
  10457. * given reader into the given message object.
  10458. * @param {!proto.app.v1.AssControlInfoListReply} msg The message object to deserialize into.
  10459. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10460. * @return {!proto.app.v1.AssControlInfoListReply}
  10461. */
  10462. proto.app.v1.AssControlInfoListReply.deserializeBinaryFromReader = function(msg, reader) {
  10463. while (reader.nextField()) {
  10464. if (reader.isEndGroup()) {
  10465. break;
  10466. }
  10467. var field = reader.getFieldNumber();
  10468. switch (field) {
  10469. case 1:
  10470. var value = new proto.app.v1.ControlInfoList;
  10471. reader.readMessage(value,proto.app.v1.ControlInfoList.deserializeBinaryFromReader);
  10472. msg.addList(value);
  10473. break;
  10474. default:
  10475. reader.skipField();
  10476. break;
  10477. }
  10478. }
  10479. return msg;
  10480. };
  10481. /**
  10482. * Serializes the message to binary data (in protobuf wire format).
  10483. * @return {!Uint8Array}
  10484. */
  10485. proto.app.v1.AssControlInfoListReply.prototype.serializeBinary = function() {
  10486. var writer = new jspb.BinaryWriter();
  10487. proto.app.v1.AssControlInfoListReply.serializeBinaryToWriter(this, writer);
  10488. return writer.getResultBuffer();
  10489. };
  10490. /**
  10491. * Serializes the given message to binary data (in protobuf wire
  10492. * format), writing to the given BinaryWriter.
  10493. * @param {!proto.app.v1.AssControlInfoListReply} message
  10494. * @param {!jspb.BinaryWriter} writer
  10495. * @suppress {unusedLocalVariables} f is only used for nested messages
  10496. */
  10497. proto.app.v1.AssControlInfoListReply.serializeBinaryToWriter = function(message, writer) {
  10498. var f = undefined;
  10499. f = message.getListList();
  10500. if (f.length > 0) {
  10501. writer.writeRepeatedMessage(
  10502. 1,
  10503. f,
  10504. proto.app.v1.ControlInfoList.serializeBinaryToWriter
  10505. );
  10506. }
  10507. };
  10508. /**
  10509. * repeated ControlInfoList list = 1;
  10510. * @return {!Array<!proto.app.v1.ControlInfoList>}
  10511. */
  10512. proto.app.v1.AssControlInfoListReply.prototype.getListList = function() {
  10513. return /** @type{!Array<!proto.app.v1.ControlInfoList>} */ (
  10514. jspb.Message.getRepeatedWrapperField(this, proto.app.v1.ControlInfoList, 1));
  10515. };
  10516. /**
  10517. * @param {!Array<!proto.app.v1.ControlInfoList>} value
  10518. * @return {!proto.app.v1.AssControlInfoListReply} returns this
  10519. */
  10520. proto.app.v1.AssControlInfoListReply.prototype.setListList = function(value) {
  10521. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  10522. };
  10523. /**
  10524. * @param {!proto.app.v1.ControlInfoList=} opt_value
  10525. * @param {number=} opt_index
  10526. * @return {!proto.app.v1.ControlInfoList}
  10527. */
  10528. proto.app.v1.AssControlInfoListReply.prototype.addList = function(opt_value, opt_index) {
  10529. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.app.v1.ControlInfoList, opt_index);
  10530. };
  10531. /**
  10532. * Clears the list making it empty but non-null.
  10533. * @return {!proto.app.v1.AssControlInfoListReply} returns this
  10534. */
  10535. proto.app.v1.AssControlInfoListReply.prototype.clearListList = function() {
  10536. return this.setListList([]);
  10537. };
  10538. if (jspb.Message.GENERATE_TO_OBJECT) {
  10539. /**
  10540. * Creates an object representation of this proto.
  10541. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10542. * Optional fields that are not set will be set to undefined.
  10543. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10544. * For the list of reserved names please see:
  10545. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10546. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10547. * JSPB instance for transitional soy proto support:
  10548. * http://goto/soy-param-migration
  10549. * @return {!Object}
  10550. */
  10551. proto.app.v1.ControlInfoList.prototype.toObject = function(opt_includeInstance) {
  10552. return proto.app.v1.ControlInfoList.toObject(opt_includeInstance, this);
  10553. };
  10554. /**
  10555. * Static version of the {@see toObject} method.
  10556. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10557. * the JSPB instance for transitional soy proto support:
  10558. * http://goto/soy-param-migration
  10559. * @param {!proto.app.v1.ControlInfoList} msg The msg instance to transform.
  10560. * @return {!Object}
  10561. * @suppress {unusedLocalVariables} f is only used for nested messages
  10562. */
  10563. proto.app.v1.ControlInfoList.toObject = function(includeInstance, msg) {
  10564. var f, obj = {
  10565. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10566. cicode: jspb.Message.getFieldWithDefault(msg, 2, "")
  10567. };
  10568. if (includeInstance) {
  10569. obj.$jspbMessageInstance = msg;
  10570. }
  10571. return obj;
  10572. };
  10573. }
  10574. /**
  10575. * Deserializes binary data (in protobuf wire format).
  10576. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10577. * @return {!proto.app.v1.ControlInfoList}
  10578. */
  10579. proto.app.v1.ControlInfoList.deserializeBinary = function(bytes) {
  10580. var reader = new jspb.BinaryReader(bytes);
  10581. var msg = new proto.app.v1.ControlInfoList;
  10582. return proto.app.v1.ControlInfoList.deserializeBinaryFromReader(msg, reader);
  10583. };
  10584. /**
  10585. * Deserializes binary data (in protobuf wire format) from the
  10586. * given reader into the given message object.
  10587. * @param {!proto.app.v1.ControlInfoList} msg The message object to deserialize into.
  10588. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10589. * @return {!proto.app.v1.ControlInfoList}
  10590. */
  10591. proto.app.v1.ControlInfoList.deserializeBinaryFromReader = function(msg, reader) {
  10592. while (reader.nextField()) {
  10593. if (reader.isEndGroup()) {
  10594. break;
  10595. }
  10596. var field = reader.getFieldNumber();
  10597. switch (field) {
  10598. case 1:
  10599. var value = /** @type {number} */ (reader.readInt32());
  10600. msg.setCiid(value);
  10601. break;
  10602. case 2:
  10603. var value = /** @type {string} */ (reader.readString());
  10604. msg.setCicode(value);
  10605. break;
  10606. default:
  10607. reader.skipField();
  10608. break;
  10609. }
  10610. }
  10611. return msg;
  10612. };
  10613. /**
  10614. * Serializes the message to binary data (in protobuf wire format).
  10615. * @return {!Uint8Array}
  10616. */
  10617. proto.app.v1.ControlInfoList.prototype.serializeBinary = function() {
  10618. var writer = new jspb.BinaryWriter();
  10619. proto.app.v1.ControlInfoList.serializeBinaryToWriter(this, writer);
  10620. return writer.getResultBuffer();
  10621. };
  10622. /**
  10623. * Serializes the given message to binary data (in protobuf wire
  10624. * format), writing to the given BinaryWriter.
  10625. * @param {!proto.app.v1.ControlInfoList} message
  10626. * @param {!jspb.BinaryWriter} writer
  10627. * @suppress {unusedLocalVariables} f is only used for nested messages
  10628. */
  10629. proto.app.v1.ControlInfoList.serializeBinaryToWriter = function(message, writer) {
  10630. var f = undefined;
  10631. f = message.getCiid();
  10632. if (f !== 0) {
  10633. writer.writeInt32(
  10634. 1,
  10635. f
  10636. );
  10637. }
  10638. f = message.getCicode();
  10639. if (f.length > 0) {
  10640. writer.writeString(
  10641. 2,
  10642. f
  10643. );
  10644. }
  10645. };
  10646. /**
  10647. * optional int32 ciId = 1;
  10648. * @return {number}
  10649. */
  10650. proto.app.v1.ControlInfoList.prototype.getCiid = function() {
  10651. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10652. };
  10653. /**
  10654. * @param {number} value
  10655. * @return {!proto.app.v1.ControlInfoList} returns this
  10656. */
  10657. proto.app.v1.ControlInfoList.prototype.setCiid = function(value) {
  10658. return jspb.Message.setProto3IntField(this, 1, value);
  10659. };
  10660. /**
  10661. * optional string ciCode = 2;
  10662. * @return {string}
  10663. */
  10664. proto.app.v1.ControlInfoList.prototype.getCicode = function() {
  10665. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10666. };
  10667. /**
  10668. * @param {string} value
  10669. * @return {!proto.app.v1.ControlInfoList} returns this
  10670. */
  10671. proto.app.v1.ControlInfoList.prototype.setCicode = function(value) {
  10672. return jspb.Message.setProto3StringField(this, 2, value);
  10673. };
  10674. /**
  10675. * List of repeated fields within this message type.
  10676. * @private {!Array<number>}
  10677. * @const
  10678. */
  10679. proto.app.v1.AssControlInfoDetailReply.repeatedFields_ = [4];
  10680. if (jspb.Message.GENERATE_TO_OBJECT) {
  10681. /**
  10682. * Creates an object representation of this proto.
  10683. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10684. * Optional fields that are not set will be set to undefined.
  10685. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10686. * For the list of reserved names please see:
  10687. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10688. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10689. * JSPB instance for transitional soy proto support:
  10690. * http://goto/soy-param-migration
  10691. * @return {!Object}
  10692. */
  10693. proto.app.v1.AssControlInfoDetailReply.prototype.toObject = function(opt_includeInstance) {
  10694. return proto.app.v1.AssControlInfoDetailReply.toObject(opt_includeInstance, this);
  10695. };
  10696. /**
  10697. * Static version of the {@see toObject} method.
  10698. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10699. * the JSPB instance for transitional soy proto support:
  10700. * http://goto/soy-param-migration
  10701. * @param {!proto.app.v1.AssControlInfoDetailReply} msg The msg instance to transform.
  10702. * @return {!Object}
  10703. * @suppress {unusedLocalVariables} f is only used for nested messages
  10704. */
  10705. proto.app.v1.AssControlInfoDetailReply.toObject = function(includeInstance, msg) {
  10706. var f, obj = {
  10707. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  10708. cicode: jspb.Message.getFieldWithDefault(msg, 2, ""),
  10709. position: (f = msg.getPosition()) && proto.app.v1.Position.toObject(includeInstance, f),
  10710. nfccodelistList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
  10711. };
  10712. if (includeInstance) {
  10713. obj.$jspbMessageInstance = msg;
  10714. }
  10715. return obj;
  10716. };
  10717. }
  10718. /**
  10719. * Deserializes binary data (in protobuf wire format).
  10720. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10721. * @return {!proto.app.v1.AssControlInfoDetailReply}
  10722. */
  10723. proto.app.v1.AssControlInfoDetailReply.deserializeBinary = function(bytes) {
  10724. var reader = new jspb.BinaryReader(bytes);
  10725. var msg = new proto.app.v1.AssControlInfoDetailReply;
  10726. return proto.app.v1.AssControlInfoDetailReply.deserializeBinaryFromReader(msg, reader);
  10727. };
  10728. /**
  10729. * Deserializes binary data (in protobuf wire format) from the
  10730. * given reader into the given message object.
  10731. * @param {!proto.app.v1.AssControlInfoDetailReply} msg The message object to deserialize into.
  10732. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10733. * @return {!proto.app.v1.AssControlInfoDetailReply}
  10734. */
  10735. proto.app.v1.AssControlInfoDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  10736. while (reader.nextField()) {
  10737. if (reader.isEndGroup()) {
  10738. break;
  10739. }
  10740. var field = reader.getFieldNumber();
  10741. switch (field) {
  10742. case 1:
  10743. var value = /** @type {number} */ (reader.readInt32());
  10744. msg.setCiid(value);
  10745. break;
  10746. case 2:
  10747. var value = /** @type {string} */ (reader.readString());
  10748. msg.setCicode(value);
  10749. break;
  10750. case 3:
  10751. var value = new proto.app.v1.Position;
  10752. reader.readMessage(value,proto.app.v1.Position.deserializeBinaryFromReader);
  10753. msg.setPosition(value);
  10754. break;
  10755. case 4:
  10756. var value = /** @type {string} */ (reader.readString());
  10757. msg.addNfccodelist(value);
  10758. break;
  10759. default:
  10760. reader.skipField();
  10761. break;
  10762. }
  10763. }
  10764. return msg;
  10765. };
  10766. /**
  10767. * Serializes the message to binary data (in protobuf wire format).
  10768. * @return {!Uint8Array}
  10769. */
  10770. proto.app.v1.AssControlInfoDetailReply.prototype.serializeBinary = function() {
  10771. var writer = new jspb.BinaryWriter();
  10772. proto.app.v1.AssControlInfoDetailReply.serializeBinaryToWriter(this, writer);
  10773. return writer.getResultBuffer();
  10774. };
  10775. /**
  10776. * Serializes the given message to binary data (in protobuf wire
  10777. * format), writing to the given BinaryWriter.
  10778. * @param {!proto.app.v1.AssControlInfoDetailReply} message
  10779. * @param {!jspb.BinaryWriter} writer
  10780. * @suppress {unusedLocalVariables} f is only used for nested messages
  10781. */
  10782. proto.app.v1.AssControlInfoDetailReply.serializeBinaryToWriter = function(message, writer) {
  10783. var f = undefined;
  10784. f = message.getCiid();
  10785. if (f !== 0) {
  10786. writer.writeInt32(
  10787. 1,
  10788. f
  10789. );
  10790. }
  10791. f = message.getCicode();
  10792. if (f.length > 0) {
  10793. writer.writeString(
  10794. 2,
  10795. f
  10796. );
  10797. }
  10798. f = message.getPosition();
  10799. if (f != null) {
  10800. writer.writeMessage(
  10801. 3,
  10802. f,
  10803. proto.app.v1.Position.serializeBinaryToWriter
  10804. );
  10805. }
  10806. f = message.getNfccodelistList();
  10807. if (f.length > 0) {
  10808. writer.writeRepeatedString(
  10809. 4,
  10810. f
  10811. );
  10812. }
  10813. };
  10814. /**
  10815. * optional int32 ciId = 1;
  10816. * @return {number}
  10817. */
  10818. proto.app.v1.AssControlInfoDetailReply.prototype.getCiid = function() {
  10819. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  10820. };
  10821. /**
  10822. * @param {number} value
  10823. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10824. */
  10825. proto.app.v1.AssControlInfoDetailReply.prototype.setCiid = function(value) {
  10826. return jspb.Message.setProto3IntField(this, 1, value);
  10827. };
  10828. /**
  10829. * optional string ciCode = 2;
  10830. * @return {string}
  10831. */
  10832. proto.app.v1.AssControlInfoDetailReply.prototype.getCicode = function() {
  10833. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  10834. };
  10835. /**
  10836. * @param {string} value
  10837. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10838. */
  10839. proto.app.v1.AssControlInfoDetailReply.prototype.setCicode = function(value) {
  10840. return jspb.Message.setProto3StringField(this, 2, value);
  10841. };
  10842. /**
  10843. * optional Position position = 3;
  10844. * @return {?proto.app.v1.Position}
  10845. */
  10846. proto.app.v1.AssControlInfoDetailReply.prototype.getPosition = function() {
  10847. return /** @type{?proto.app.v1.Position} */ (
  10848. jspb.Message.getWrapperField(this, proto.app.v1.Position, 3));
  10849. };
  10850. /**
  10851. * @param {?proto.app.v1.Position|undefined} value
  10852. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10853. */
  10854. proto.app.v1.AssControlInfoDetailReply.prototype.setPosition = function(value) {
  10855. return jspb.Message.setWrapperField(this, 3, value);
  10856. };
  10857. /**
  10858. * Clears the message field making it undefined.
  10859. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10860. */
  10861. proto.app.v1.AssControlInfoDetailReply.prototype.clearPosition = function() {
  10862. return this.setPosition(undefined);
  10863. };
  10864. /**
  10865. * Returns whether this field is set.
  10866. * @return {boolean}
  10867. */
  10868. proto.app.v1.AssControlInfoDetailReply.prototype.hasPosition = function() {
  10869. return jspb.Message.getField(this, 3) != null;
  10870. };
  10871. /**
  10872. * repeated string nfcCodeList = 4;
  10873. * @return {!Array<string>}
  10874. */
  10875. proto.app.v1.AssControlInfoDetailReply.prototype.getNfccodelistList = function() {
  10876. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
  10877. };
  10878. /**
  10879. * @param {!Array<string>} value
  10880. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10881. */
  10882. proto.app.v1.AssControlInfoDetailReply.prototype.setNfccodelistList = function(value) {
  10883. return jspb.Message.setField(this, 4, value || []);
  10884. };
  10885. /**
  10886. * @param {string} value
  10887. * @param {number=} opt_index
  10888. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10889. */
  10890. proto.app.v1.AssControlInfoDetailReply.prototype.addNfccodelist = function(value, opt_index) {
  10891. return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
  10892. };
  10893. /**
  10894. * Clears the list making it empty but non-null.
  10895. * @return {!proto.app.v1.AssControlInfoDetailReply} returns this
  10896. */
  10897. proto.app.v1.AssControlInfoDetailReply.prototype.clearNfccodelistList = function() {
  10898. return this.setNfccodelistList([]);
  10899. };
  10900. if (jspb.Message.GENERATE_TO_OBJECT) {
  10901. /**
  10902. * Creates an object representation of this proto.
  10903. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  10904. * Optional fields that are not set will be set to undefined.
  10905. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  10906. * For the list of reserved names please see:
  10907. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  10908. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  10909. * JSPB instance for transitional soy proto support:
  10910. * http://goto/soy-param-migration
  10911. * @return {!Object}
  10912. */
  10913. proto.app.v1.GetUpdateVersionReply.prototype.toObject = function(opt_includeInstance) {
  10914. return proto.app.v1.GetUpdateVersionReply.toObject(opt_includeInstance, this);
  10915. };
  10916. /**
  10917. * Static version of the {@see toObject} method.
  10918. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  10919. * the JSPB instance for transitional soy proto support:
  10920. * http://goto/soy-param-migration
  10921. * @param {!proto.app.v1.GetUpdateVersionReply} msg The msg instance to transform.
  10922. * @return {!Object}
  10923. * @suppress {unusedLocalVariables} f is only used for nested messages
  10924. */
  10925. proto.app.v1.GetUpdateVersionReply.toObject = function(includeInstance, msg) {
  10926. var f, obj = {
  10927. needupdate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
  10928. vcode: jspb.Message.getFieldWithDefault(msg, 2, ""),
  10929. vmemo: jspb.Message.getFieldWithDefault(msg, 3, ""),
  10930. vurl: jspb.Message.getFieldWithDefault(msg, 4, "")
  10931. };
  10932. if (includeInstance) {
  10933. obj.$jspbMessageInstance = msg;
  10934. }
  10935. return obj;
  10936. };
  10937. }
  10938. /**
  10939. * Deserializes binary data (in protobuf wire format).
  10940. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  10941. * @return {!proto.app.v1.GetUpdateVersionReply}
  10942. */
  10943. proto.app.v1.GetUpdateVersionReply.deserializeBinary = function(bytes) {
  10944. var reader = new jspb.BinaryReader(bytes);
  10945. var msg = new proto.app.v1.GetUpdateVersionReply;
  10946. return proto.app.v1.GetUpdateVersionReply.deserializeBinaryFromReader(msg, reader);
  10947. };
  10948. /**
  10949. * Deserializes binary data (in protobuf wire format) from the
  10950. * given reader into the given message object.
  10951. * @param {!proto.app.v1.GetUpdateVersionReply} msg The message object to deserialize into.
  10952. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  10953. * @return {!proto.app.v1.GetUpdateVersionReply}
  10954. */
  10955. proto.app.v1.GetUpdateVersionReply.deserializeBinaryFromReader = function(msg, reader) {
  10956. while (reader.nextField()) {
  10957. if (reader.isEndGroup()) {
  10958. break;
  10959. }
  10960. var field = reader.getFieldNumber();
  10961. switch (field) {
  10962. case 1:
  10963. var value = /** @type {boolean} */ (reader.readBool());
  10964. msg.setNeedupdate(value);
  10965. break;
  10966. case 2:
  10967. var value = /** @type {string} */ (reader.readString());
  10968. msg.setVcode(value);
  10969. break;
  10970. case 3:
  10971. var value = /** @type {string} */ (reader.readString());
  10972. msg.setVmemo(value);
  10973. break;
  10974. case 4:
  10975. var value = /** @type {string} */ (reader.readString());
  10976. msg.setVurl(value);
  10977. break;
  10978. default:
  10979. reader.skipField();
  10980. break;
  10981. }
  10982. }
  10983. return msg;
  10984. };
  10985. /**
  10986. * Serializes the message to binary data (in protobuf wire format).
  10987. * @return {!Uint8Array}
  10988. */
  10989. proto.app.v1.GetUpdateVersionReply.prototype.serializeBinary = function() {
  10990. var writer = new jspb.BinaryWriter();
  10991. proto.app.v1.GetUpdateVersionReply.serializeBinaryToWriter(this, writer);
  10992. return writer.getResultBuffer();
  10993. };
  10994. /**
  10995. * Serializes the given message to binary data (in protobuf wire
  10996. * format), writing to the given BinaryWriter.
  10997. * @param {!proto.app.v1.GetUpdateVersionReply} message
  10998. * @param {!jspb.BinaryWriter} writer
  10999. * @suppress {unusedLocalVariables} f is only used for nested messages
  11000. */
  11001. proto.app.v1.GetUpdateVersionReply.serializeBinaryToWriter = function(message, writer) {
  11002. var f = undefined;
  11003. f = message.getNeedupdate();
  11004. if (f) {
  11005. writer.writeBool(
  11006. 1,
  11007. f
  11008. );
  11009. }
  11010. f = message.getVcode();
  11011. if (f.length > 0) {
  11012. writer.writeString(
  11013. 2,
  11014. f
  11015. );
  11016. }
  11017. f = message.getVmemo();
  11018. if (f.length > 0) {
  11019. writer.writeString(
  11020. 3,
  11021. f
  11022. );
  11023. }
  11024. f = message.getVurl();
  11025. if (f.length > 0) {
  11026. writer.writeString(
  11027. 4,
  11028. f
  11029. );
  11030. }
  11031. };
  11032. /**
  11033. * optional bool needUpdate = 1;
  11034. * @return {boolean}
  11035. */
  11036. proto.app.v1.GetUpdateVersionReply.prototype.getNeedupdate = function() {
  11037. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
  11038. };
  11039. /**
  11040. * @param {boolean} value
  11041. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11042. */
  11043. proto.app.v1.GetUpdateVersionReply.prototype.setNeedupdate = function(value) {
  11044. return jspb.Message.setProto3BooleanField(this, 1, value);
  11045. };
  11046. /**
  11047. * optional string vCode = 2;
  11048. * @return {string}
  11049. */
  11050. proto.app.v1.GetUpdateVersionReply.prototype.getVcode = function() {
  11051. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  11052. };
  11053. /**
  11054. * @param {string} value
  11055. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11056. */
  11057. proto.app.v1.GetUpdateVersionReply.prototype.setVcode = function(value) {
  11058. return jspb.Message.setProto3StringField(this, 2, value);
  11059. };
  11060. /**
  11061. * optional string vMemo = 3;
  11062. * @return {string}
  11063. */
  11064. proto.app.v1.GetUpdateVersionReply.prototype.getVmemo = function() {
  11065. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  11066. };
  11067. /**
  11068. * @param {string} value
  11069. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11070. */
  11071. proto.app.v1.GetUpdateVersionReply.prototype.setVmemo = function(value) {
  11072. return jspb.Message.setProto3StringField(this, 3, value);
  11073. };
  11074. /**
  11075. * optional string vUrl = 4;
  11076. * @return {string}
  11077. */
  11078. proto.app.v1.GetUpdateVersionReply.prototype.getVurl = function() {
  11079. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  11080. };
  11081. /**
  11082. * @param {string} value
  11083. * @return {!proto.app.v1.GetUpdateVersionReply} returns this
  11084. */
  11085. proto.app.v1.GetUpdateVersionReply.prototype.setVurl = function(value) {
  11086. return jspb.Message.setProto3StringField(this, 4, value);
  11087. };
  11088. if (jspb.Message.GENERATE_TO_OBJECT) {
  11089. /**
  11090. * Creates an object representation of this proto.
  11091. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  11092. * Optional fields that are not set will be set to undefined.
  11093. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  11094. * For the list of reserved names please see:
  11095. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  11096. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  11097. * JSPB instance for transitional soy proto support:
  11098. * http://goto/soy-param-migration
  11099. * @return {!Object}
  11100. */
  11101. proto.app.v1.GetSmsSendLeftTimeReply.prototype.toObject = function(opt_includeInstance) {
  11102. return proto.app.v1.GetSmsSendLeftTimeReply.toObject(opt_includeInstance, this);
  11103. };
  11104. /**
  11105. * Static version of the {@see toObject} method.
  11106. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  11107. * the JSPB instance for transitional soy proto support:
  11108. * http://goto/soy-param-migration
  11109. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} msg The msg instance to transform.
  11110. * @return {!Object}
  11111. * @suppress {unusedLocalVariables} f is only used for nested messages
  11112. */
  11113. proto.app.v1.GetSmsSendLeftTimeReply.toObject = function(includeInstance, msg) {
  11114. var f, obj = {
  11115. second: jspb.Message.getFieldWithDefault(msg, 1, 0)
  11116. };
  11117. if (includeInstance) {
  11118. obj.$jspbMessageInstance = msg;
  11119. }
  11120. return obj;
  11121. };
  11122. }
  11123. /**
  11124. * Deserializes binary data (in protobuf wire format).
  11125. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  11126. * @return {!proto.app.v1.GetSmsSendLeftTimeReply}
  11127. */
  11128. proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinary = function(bytes) {
  11129. var reader = new jspb.BinaryReader(bytes);
  11130. var msg = new proto.app.v1.GetSmsSendLeftTimeReply;
  11131. return proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader(msg, reader);
  11132. };
  11133. /**
  11134. * Deserializes binary data (in protobuf wire format) from the
  11135. * given reader into the given message object.
  11136. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} msg The message object to deserialize into.
  11137. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  11138. * @return {!proto.app.v1.GetSmsSendLeftTimeReply}
  11139. */
  11140. proto.app.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader = function(msg, reader) {
  11141. while (reader.nextField()) {
  11142. if (reader.isEndGroup()) {
  11143. break;
  11144. }
  11145. var field = reader.getFieldNumber();
  11146. switch (field) {
  11147. case 1:
  11148. var value = /** @type {number} */ (reader.readInt32());
  11149. msg.setSecond(value);
  11150. break;
  11151. default:
  11152. reader.skipField();
  11153. break;
  11154. }
  11155. }
  11156. return msg;
  11157. };
  11158. /**
  11159. * Serializes the message to binary data (in protobuf wire format).
  11160. * @return {!Uint8Array}
  11161. */
  11162. proto.app.v1.GetSmsSendLeftTimeReply.prototype.serializeBinary = function() {
  11163. var writer = new jspb.BinaryWriter();
  11164. proto.app.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter(this, writer);
  11165. return writer.getResultBuffer();
  11166. };
  11167. /**
  11168. * Serializes the given message to binary data (in protobuf wire
  11169. * format), writing to the given BinaryWriter.
  11170. * @param {!proto.app.v1.GetSmsSendLeftTimeReply} message
  11171. * @param {!jspb.BinaryWriter} writer
  11172. * @suppress {unusedLocalVariables} f is only used for nested messages
  11173. */
  11174. proto.app.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter = function(message, writer) {
  11175. var f = undefined;
  11176. f = message.getSecond();
  11177. if (f !== 0) {
  11178. writer.writeInt32(
  11179. 1,
  11180. f
  11181. );
  11182. }
  11183. };
  11184. /**
  11185. * optional int32 second = 1;
  11186. * @return {number}
  11187. */
  11188. proto.app.v1.GetSmsSendLeftTimeReply.prototype.getSecond = function() {
  11189. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  11190. };
  11191. /**
  11192. * @param {number} value
  11193. * @return {!proto.app.v1.GetSmsSendLeftTimeReply} returns this
  11194. */
  11195. proto.app.v1.GetSmsSendLeftTimeReply.prototype.setSecond = function(value) {
  11196. return jspb.Message.setProto3IntField(this, 1, value);
  11197. };
  11198. if (jspb.Message.GENERATE_TO_OBJECT) {
  11199. /**
  11200. * Creates an object representation of this proto.
  11201. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  11202. * Optional fields that are not set will be set to undefined.
  11203. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  11204. * For the list of reserved names please see:
  11205. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  11206. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  11207. * JSPB instance for transitional soy proto support:
  11208. * http://goto/soy-param-migration
  11209. * @return {!Object}
  11210. */
  11211. proto.app.v1.GetServerTimeReply.prototype.toObject = function(opt_includeInstance) {
  11212. return proto.app.v1.GetServerTimeReply.toObject(opt_includeInstance, this);
  11213. };
  11214. /**
  11215. * Static version of the {@see toObject} method.
  11216. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  11217. * the JSPB instance for transitional soy proto support:
  11218. * http://goto/soy-param-migration
  11219. * @param {!proto.app.v1.GetServerTimeReply} msg The msg instance to transform.
  11220. * @return {!Object}
  11221. * @suppress {unusedLocalVariables} f is only used for nested messages
  11222. */
  11223. proto.app.v1.GetServerTimeReply.toObject = function(includeInstance, msg) {
  11224. var f, obj = {
  11225. millisecondstamp: jspb.Message.getFieldWithDefault(msg, 1, 0)
  11226. };
  11227. if (includeInstance) {
  11228. obj.$jspbMessageInstance = msg;
  11229. }
  11230. return obj;
  11231. };
  11232. }
  11233. /**
  11234. * Deserializes binary data (in protobuf wire format).
  11235. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  11236. * @return {!proto.app.v1.GetServerTimeReply}
  11237. */
  11238. proto.app.v1.GetServerTimeReply.deserializeBinary = function(bytes) {
  11239. var reader = new jspb.BinaryReader(bytes);
  11240. var msg = new proto.app.v1.GetServerTimeReply;
  11241. return proto.app.v1.GetServerTimeReply.deserializeBinaryFromReader(msg, reader);
  11242. };
  11243. /**
  11244. * Deserializes binary data (in protobuf wire format) from the
  11245. * given reader into the given message object.
  11246. * @param {!proto.app.v1.GetServerTimeReply} msg The message object to deserialize into.
  11247. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  11248. * @return {!proto.app.v1.GetServerTimeReply}
  11249. */
  11250. proto.app.v1.GetServerTimeReply.deserializeBinaryFromReader = function(msg, reader) {
  11251. while (reader.nextField()) {
  11252. if (reader.isEndGroup()) {
  11253. break;
  11254. }
  11255. var field = reader.getFieldNumber();
  11256. switch (field) {
  11257. case 1:
  11258. var value = /** @type {number} */ (reader.readInt64());
  11259. msg.setMillisecondstamp(value);
  11260. break;
  11261. default:
  11262. reader.skipField();
  11263. break;
  11264. }
  11265. }
  11266. return msg;
  11267. };
  11268. /**
  11269. * Serializes the message to binary data (in protobuf wire format).
  11270. * @return {!Uint8Array}
  11271. */
  11272. proto.app.v1.GetServerTimeReply.prototype.serializeBinary = function() {
  11273. var writer = new jspb.BinaryWriter();
  11274. proto.app.v1.GetServerTimeReply.serializeBinaryToWriter(this, writer);
  11275. return writer.getResultBuffer();
  11276. };
  11277. /**
  11278. * Serializes the given message to binary data (in protobuf wire
  11279. * format), writing to the given BinaryWriter.
  11280. * @param {!proto.app.v1.GetServerTimeReply} message
  11281. * @param {!jspb.BinaryWriter} writer
  11282. * @suppress {unusedLocalVariables} f is only used for nested messages
  11283. */
  11284. proto.app.v1.GetServerTimeReply.serializeBinaryToWriter = function(message, writer) {
  11285. var f = undefined;
  11286. f = message.getMillisecondstamp();
  11287. if (f !== 0) {
  11288. writer.writeInt64(
  11289. 1,
  11290. f
  11291. );
  11292. }
  11293. };
  11294. /**
  11295. * optional int64 millisecondStamp = 1;
  11296. * @return {number}
  11297. */
  11298. proto.app.v1.GetServerTimeReply.prototype.getMillisecondstamp = function() {
  11299. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  11300. };
  11301. /**
  11302. * @param {number} value
  11303. * @return {!proto.app.v1.GetServerTimeReply} returns this
  11304. */
  11305. proto.app.v1.GetServerTimeReply.prototype.setMillisecondstamp = function(value) {
  11306. return jspb.Message.setProto3IntField(this, 1, value);
  11307. };
  11308. /**
  11309. * @enum {number}
  11310. */
  11311. proto.app.v1.ErrorCode = {
  11312. OK: 0,
  11313. TOKENEXPIRE: 1000,
  11314. USERBAN: 1001,
  11315. VFCODEEXPIRE: 1002,
  11316. SMSSENDFAIL: 1003,
  11317. USERSTATUSERR: 1008,
  11318. STATUSERR: 1009,
  11319. PHONENOTEXIST: 2001,
  11320. UNKNOWNERR: 2002,
  11321. PARAMERR: 5000,
  11322. HEADSOURCEERR: 5001,
  11323. DATABASE: 9000,
  11324. NORECORD: 9001
  11325. };
  11326. /**
  11327. * @enum {number}
  11328. */
  11329. proto.app.v1.UserType = {
  11330. UNDEFINE: 0,
  11331. APPUSER: 1,
  11332. PARKADMIN: 2,
  11333. IPADMIN: 3,
  11334. SYSADMIN: 4
  11335. };
  11336. /**
  11337. * @enum {number}
  11338. */
  11339. proto.app.v1.LoginSource = {
  11340. UNDEF: 0,
  11341. USERAPP: 1,
  11342. WEBADMIN: 2,
  11343. SHOPAPP: 3
  11344. };
  11345. /**
  11346. * @enum {number}
  11347. */
  11348. proto.app.v1.SmsType = {
  11349. UNKNOW: 0,
  11350. LOGIN: 1,
  11351. SIGNUP: 2
  11352. };
  11353. /**
  11354. * @enum {number}
  11355. */
  11356. proto.app.v1.ProjectContentType = {
  11357. TEXT: 0,
  11358. HTML: 1
  11359. };
  11360. /**
  11361. * @enum {number}
  11362. */
  11363. proto.app.v1.CType = {
  11364. UNKNOWTYPE: 0,
  11365. BEGINTYPE: 1,
  11366. MIDDLETYPE: 2,
  11367. ENDTYPE: 3
  11368. };
  11369. goog.object.extend(exports, proto.app.v1);