track_offical_pb.js 176 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379
  1. // source: track_offical.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 base_pb = require('./base_pb.js');
  17. goog.object.extend(proto, base_pb);
  18. goog.exportSymbol('proto.to.v1.ToActInfoSelect', null, global);
  19. goog.exportSymbol('proto.to.v1.ToActionDetailReply', null, global);
  20. goog.exportSymbol('proto.to.v1.ToActionIdAndCourseIdRequest', null, global);
  21. goog.exportSymbol('proto.to.v1.ToActionListReply', null, global);
  22. goog.exportSymbol('proto.to.v1.ToActionSimple', null, global);
  23. goog.exportSymbol('proto.to.v1.ToActionUsersDetailReply', null, global);
  24. goog.exportSymbol('proto.to.v1.ToAnyUserHistoryGpsQueryRequest', null, global);
  25. goog.exportSymbol('proto.to.v1.ToCourseInfoInMap', null, global);
  26. goog.exportSymbol('proto.to.v1.ToCourseInfoSelect', null, global);
  27. goog.exportSymbol('proto.to.v1.ToMapDetailReply', null, global);
  28. goog.exportSymbol('proto.to.v1.ToMapInfo', null, global);
  29. goog.exportSymbol('proto.to.v1.ToMapListReply', null, global);
  30. goog.exportSymbol('proto.to.v1.ToMapSimple', null, global);
  31. goog.exportSymbol('proto.to.v1.ToNextControlPointInGameReply', null, global);
  32. goog.exportSymbol('proto.to.v1.ToSendCodeToPhoneRequest', null, global);
  33. goog.exportSymbol('proto.to.v1.ToSignInRequest', null, global);
  34. goog.exportSymbol('proto.to.v1.ToSignOutRequest', null, global);
  35. goog.exportSymbol('proto.to.v1.ToUserGpsQueryReply', null, global);
  36. goog.exportSymbol('proto.to.v1.ToUsersInGameHistoryGpsQueryRequest', null, global);
  37. goog.exportSymbol('proto.to.v1.UserArriveControlPoint', null, global);
  38. goog.exportSymbol('proto.to.v1.UserGpsInfo', null, global);
  39. goog.exportSymbol('proto.to.v1.UserInGameInfo', null, global);
  40. goog.exportSymbol('proto.to.v1.UserInGameInfoV2', null, global);
  41. /**
  42. * Generated by JsPbCodeGenerator.
  43. * @param {Array=} opt_data Optional initial data array, typically from a
  44. * server response, or constructed directly in Javascript. The array is used
  45. * in place and becomes part of the constructed object. It is not cloned.
  46. * If no data is provided, the constructed object will be empty, but still
  47. * valid.
  48. * @extends {jspb.Message}
  49. * @constructor
  50. */
  51. proto.to.v1.ToActionIdAndCourseIdRequest = function(opt_data) {
  52. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  53. };
  54. goog.inherits(proto.to.v1.ToActionIdAndCourseIdRequest, jspb.Message);
  55. if (goog.DEBUG && !COMPILED) {
  56. /**
  57. * @public
  58. * @override
  59. */
  60. proto.to.v1.ToActionIdAndCourseIdRequest.displayName = 'proto.to.v1.ToActionIdAndCourseIdRequest';
  61. }
  62. /**
  63. * Generated by JsPbCodeGenerator.
  64. * @param {Array=} opt_data Optional initial data array, typically from a
  65. * server response, or constructed directly in Javascript. The array is used
  66. * in place and becomes part of the constructed object. It is not cloned.
  67. * If no data is provided, the constructed object will be empty, but still
  68. * valid.
  69. * @extends {jspb.Message}
  70. * @constructor
  71. */
  72. proto.to.v1.ToSignOutRequest = function(opt_data) {
  73. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  74. };
  75. goog.inherits(proto.to.v1.ToSignOutRequest, jspb.Message);
  76. if (goog.DEBUG && !COMPILED) {
  77. /**
  78. * @public
  79. * @override
  80. */
  81. proto.to.v1.ToSignOutRequest.displayName = 'proto.to.v1.ToSignOutRequest';
  82. }
  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.to.v1.ToSendCodeToPhoneRequest = function(opt_data) {
  94. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  95. };
  96. goog.inherits(proto.to.v1.ToSendCodeToPhoneRequest, jspb.Message);
  97. if (goog.DEBUG && !COMPILED) {
  98. /**
  99. * @public
  100. * @override
  101. */
  102. proto.to.v1.ToSendCodeToPhoneRequest.displayName = 'proto.to.v1.ToSendCodeToPhoneRequest';
  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.to.v1.ToSignInRequest = function(opt_data) {
  115. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  116. };
  117. goog.inherits(proto.to.v1.ToSignInRequest, jspb.Message);
  118. if (goog.DEBUG && !COMPILED) {
  119. /**
  120. * @public
  121. * @override
  122. */
  123. proto.to.v1.ToSignInRequest.displayName = 'proto.to.v1.ToSignInRequest';
  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.to.v1.ToMapListReply = function(opt_data) {
  136. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToMapListReply.repeatedFields_, null);
  137. };
  138. goog.inherits(proto.to.v1.ToMapListReply, jspb.Message);
  139. if (goog.DEBUG && !COMPILED) {
  140. /**
  141. * @public
  142. * @override
  143. */
  144. proto.to.v1.ToMapListReply.displayName = 'proto.to.v1.ToMapListReply';
  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.to.v1.ToMapSimple = function(opt_data) {
  157. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  158. };
  159. goog.inherits(proto.to.v1.ToMapSimple, jspb.Message);
  160. if (goog.DEBUG && !COMPILED) {
  161. /**
  162. * @public
  163. * @override
  164. */
  165. proto.to.v1.ToMapSimple.displayName = 'proto.to.v1.ToMapSimple';
  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.to.v1.ToMapDetailReply = function(opt_data) {
  178. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToMapDetailReply.repeatedFields_, null);
  179. };
  180. goog.inherits(proto.to.v1.ToMapDetailReply, jspb.Message);
  181. if (goog.DEBUG && !COMPILED) {
  182. /**
  183. * @public
  184. * @override
  185. */
  186. proto.to.v1.ToMapDetailReply.displayName = 'proto.to.v1.ToMapDetailReply';
  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.to.v1.ToCourseInfoInMap = function(opt_data) {
  199. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  200. };
  201. goog.inherits(proto.to.v1.ToCourseInfoInMap, jspb.Message);
  202. if (goog.DEBUG && !COMPILED) {
  203. /**
  204. * @public
  205. * @override
  206. */
  207. proto.to.v1.ToCourseInfoInMap.displayName = 'proto.to.v1.ToCourseInfoInMap';
  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.to.v1.ToActInfoSelect = function(opt_data) {
  220. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToActInfoSelect.repeatedFields_, null);
  221. };
  222. goog.inherits(proto.to.v1.ToActInfoSelect, jspb.Message);
  223. if (goog.DEBUG && !COMPILED) {
  224. /**
  225. * @public
  226. * @override
  227. */
  228. proto.to.v1.ToActInfoSelect.displayName = 'proto.to.v1.ToActInfoSelect';
  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.to.v1.ToCourseInfoSelect = function(opt_data) {
  241. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  242. };
  243. goog.inherits(proto.to.v1.ToCourseInfoSelect, jspb.Message);
  244. if (goog.DEBUG && !COMPILED) {
  245. /**
  246. * @public
  247. * @override
  248. */
  249. proto.to.v1.ToCourseInfoSelect.displayName = 'proto.to.v1.ToCourseInfoSelect';
  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.to.v1.ToActionListReply = function(opt_data) {
  262. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToActionListReply.repeatedFields_, null);
  263. };
  264. goog.inherits(proto.to.v1.ToActionListReply, jspb.Message);
  265. if (goog.DEBUG && !COMPILED) {
  266. /**
  267. * @public
  268. * @override
  269. */
  270. proto.to.v1.ToActionListReply.displayName = 'proto.to.v1.ToActionListReply';
  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.to.v1.ToActionSimple = function(opt_data) {
  283. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  284. };
  285. goog.inherits(proto.to.v1.ToActionSimple, jspb.Message);
  286. if (goog.DEBUG && !COMPILED) {
  287. /**
  288. * @public
  289. * @override
  290. */
  291. proto.to.v1.ToActionSimple.displayName = 'proto.to.v1.ToActionSimple';
  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.to.v1.ToActionDetailReply = function(opt_data) {
  304. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToActionDetailReply.repeatedFields_, null);
  305. };
  306. goog.inherits(proto.to.v1.ToActionDetailReply, jspb.Message);
  307. if (goog.DEBUG && !COMPILED) {
  308. /**
  309. * @public
  310. * @override
  311. */
  312. proto.to.v1.ToActionDetailReply.displayName = 'proto.to.v1.ToActionDetailReply';
  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.to.v1.ToMapInfo = function(opt_data) {
  325. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  326. };
  327. goog.inherits(proto.to.v1.ToMapInfo, jspb.Message);
  328. if (goog.DEBUG && !COMPILED) {
  329. /**
  330. * @public
  331. * @override
  332. */
  333. proto.to.v1.ToMapInfo.displayName = 'proto.to.v1.ToMapInfo';
  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.to.v1.ToActionUsersDetailReply = function(opt_data) {
  346. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToActionUsersDetailReply.repeatedFields_, null);
  347. };
  348. goog.inherits(proto.to.v1.ToActionUsersDetailReply, jspb.Message);
  349. if (goog.DEBUG && !COMPILED) {
  350. /**
  351. * @public
  352. * @override
  353. */
  354. proto.to.v1.ToActionUsersDetailReply.displayName = 'proto.to.v1.ToActionUsersDetailReply';
  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.to.v1.ToNextControlPointInGameReply = function(opt_data) {
  367. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToNextControlPointInGameReply.repeatedFields_, null);
  368. };
  369. goog.inherits(proto.to.v1.ToNextControlPointInGameReply, jspb.Message);
  370. if (goog.DEBUG && !COMPILED) {
  371. /**
  372. * @public
  373. * @override
  374. */
  375. proto.to.v1.ToNextControlPointInGameReply.displayName = 'proto.to.v1.ToNextControlPointInGameReply';
  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.to.v1.UserInGameInfo = function(opt_data) {
  388. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  389. };
  390. goog.inherits(proto.to.v1.UserInGameInfo, jspb.Message);
  391. if (goog.DEBUG && !COMPILED) {
  392. /**
  393. * @public
  394. * @override
  395. */
  396. proto.to.v1.UserInGameInfo.displayName = 'proto.to.v1.UserInGameInfo';
  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.to.v1.ToAnyUserHistoryGpsQueryRequest = function(opt_data) {
  409. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToAnyUserHistoryGpsQueryRequest.repeatedFields_, null);
  410. };
  411. goog.inherits(proto.to.v1.ToAnyUserHistoryGpsQueryRequest, jspb.Message);
  412. if (goog.DEBUG && !COMPILED) {
  413. /**
  414. * @public
  415. * @override
  416. */
  417. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.displayName = 'proto.to.v1.ToAnyUserHistoryGpsQueryRequest';
  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.to.v1.ToUsersInGameHistoryGpsQueryRequest = function(opt_data) {
  430. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  431. };
  432. goog.inherits(proto.to.v1.ToUsersInGameHistoryGpsQueryRequest, jspb.Message);
  433. if (goog.DEBUG && !COMPILED) {
  434. /**
  435. * @public
  436. * @override
  437. */
  438. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.displayName = 'proto.to.v1.ToUsersInGameHistoryGpsQueryRequest';
  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.to.v1.ToUserGpsQueryReply = function(opt_data) {
  451. jspb.Message.initialize(this, opt_data, 0, -1, proto.to.v1.ToUserGpsQueryReply.repeatedFields_, null);
  452. };
  453. goog.inherits(proto.to.v1.ToUserGpsQueryReply, jspb.Message);
  454. if (goog.DEBUG && !COMPILED) {
  455. /**
  456. * @public
  457. * @override
  458. */
  459. proto.to.v1.ToUserGpsQueryReply.displayName = 'proto.to.v1.ToUserGpsQueryReply';
  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.to.v1.UserGpsInfo = function(opt_data) {
  472. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  473. };
  474. goog.inherits(proto.to.v1.UserGpsInfo, jspb.Message);
  475. if (goog.DEBUG && !COMPILED) {
  476. /**
  477. * @public
  478. * @override
  479. */
  480. proto.to.v1.UserGpsInfo.displayName = 'proto.to.v1.UserGpsInfo';
  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.to.v1.UserArriveControlPoint = function(opt_data) {
  493. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  494. };
  495. goog.inherits(proto.to.v1.UserArriveControlPoint, jspb.Message);
  496. if (goog.DEBUG && !COMPILED) {
  497. /**
  498. * @public
  499. * @override
  500. */
  501. proto.to.v1.UserArriveControlPoint.displayName = 'proto.to.v1.UserArriveControlPoint';
  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.to.v1.UserInGameInfoV2 = function(opt_data) {
  514. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  515. };
  516. goog.inherits(proto.to.v1.UserInGameInfoV2, jspb.Message);
  517. if (goog.DEBUG && !COMPILED) {
  518. /**
  519. * @public
  520. * @override
  521. */
  522. proto.to.v1.UserInGameInfoV2.displayName = 'proto.to.v1.UserInGameInfoV2';
  523. }
  524. if (jspb.Message.GENERATE_TO_OBJECT) {
  525. /**
  526. * Creates an object representation of this proto.
  527. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  528. * Optional fields that are not set will be set to undefined.
  529. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  530. * For the list of reserved names please see:
  531. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  532. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  533. * JSPB instance for transitional soy proto support:
  534. * http://goto/soy-param-migration
  535. * @return {!Object}
  536. */
  537. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.toObject = function(opt_includeInstance) {
  538. return proto.to.v1.ToActionIdAndCourseIdRequest.toObject(opt_includeInstance, this);
  539. };
  540. /**
  541. * Static version of the {@see toObject} method.
  542. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  543. * the JSPB instance for transitional soy proto support:
  544. * http://goto/soy-param-migration
  545. * @param {!proto.to.v1.ToActionIdAndCourseIdRequest} msg The msg instance to transform.
  546. * @return {!Object}
  547. * @suppress {unusedLocalVariables} f is only used for nested messages
  548. */
  549. proto.to.v1.ToActionIdAndCourseIdRequest.toObject = function(includeInstance, msg) {
  550. var f, obj = {
  551. actid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  552. courseid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  553. };
  554. if (includeInstance) {
  555. obj.$jspbMessageInstance = msg;
  556. }
  557. return obj;
  558. };
  559. }
  560. /**
  561. * Deserializes binary data (in protobuf wire format).
  562. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  563. * @return {!proto.to.v1.ToActionIdAndCourseIdRequest}
  564. */
  565. proto.to.v1.ToActionIdAndCourseIdRequest.deserializeBinary = function(bytes) {
  566. var reader = new jspb.BinaryReader(bytes);
  567. var msg = new proto.to.v1.ToActionIdAndCourseIdRequest;
  568. return proto.to.v1.ToActionIdAndCourseIdRequest.deserializeBinaryFromReader(msg, reader);
  569. };
  570. /**
  571. * Deserializes binary data (in protobuf wire format) from the
  572. * given reader into the given message object.
  573. * @param {!proto.to.v1.ToActionIdAndCourseIdRequest} msg The message object to deserialize into.
  574. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  575. * @return {!proto.to.v1.ToActionIdAndCourseIdRequest}
  576. */
  577. proto.to.v1.ToActionIdAndCourseIdRequest.deserializeBinaryFromReader = function(msg, reader) {
  578. while (reader.nextField()) {
  579. if (reader.isEndGroup()) {
  580. break;
  581. }
  582. var field = reader.getFieldNumber();
  583. switch (field) {
  584. case 1:
  585. var value = /** @type {number} */ (reader.readInt32());
  586. msg.setActid(value);
  587. break;
  588. case 2:
  589. var value = /** @type {number} */ (reader.readInt32());
  590. msg.setCourseid(value);
  591. break;
  592. default:
  593. reader.skipField();
  594. break;
  595. }
  596. }
  597. return msg;
  598. };
  599. /**
  600. * Serializes the message to binary data (in protobuf wire format).
  601. * @return {!Uint8Array}
  602. */
  603. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.serializeBinary = function() {
  604. var writer = new jspb.BinaryWriter();
  605. proto.to.v1.ToActionIdAndCourseIdRequest.serializeBinaryToWriter(this, writer);
  606. return writer.getResultBuffer();
  607. };
  608. /**
  609. * Serializes the given message to binary data (in protobuf wire
  610. * format), writing to the given BinaryWriter.
  611. * @param {!proto.to.v1.ToActionIdAndCourseIdRequest} message
  612. * @param {!jspb.BinaryWriter} writer
  613. * @suppress {unusedLocalVariables} f is only used for nested messages
  614. */
  615. proto.to.v1.ToActionIdAndCourseIdRequest.serializeBinaryToWriter = function(message, writer) {
  616. var f = undefined;
  617. f = message.getActid();
  618. if (f !== 0) {
  619. writer.writeInt32(
  620. 1,
  621. f
  622. );
  623. }
  624. f = message.getCourseid();
  625. if (f !== 0) {
  626. writer.writeInt32(
  627. 2,
  628. f
  629. );
  630. }
  631. };
  632. /**
  633. * optional int32 actId = 1;
  634. * @return {number}
  635. */
  636. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.getActid = function() {
  637. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  638. };
  639. /**
  640. * @param {number} value
  641. * @return {!proto.to.v1.ToActionIdAndCourseIdRequest} returns this
  642. */
  643. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.setActid = function(value) {
  644. return jspb.Message.setProto3IntField(this, 1, value);
  645. };
  646. /**
  647. * optional int32 courseId = 2;
  648. * @return {number}
  649. */
  650. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.getCourseid = function() {
  651. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  652. };
  653. /**
  654. * @param {number} value
  655. * @return {!proto.to.v1.ToActionIdAndCourseIdRequest} returns this
  656. */
  657. proto.to.v1.ToActionIdAndCourseIdRequest.prototype.setCourseid = function(value) {
  658. return jspb.Message.setProto3IntField(this, 2, value);
  659. };
  660. if (jspb.Message.GENERATE_TO_OBJECT) {
  661. /**
  662. * Creates an object representation of this proto.
  663. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  664. * Optional fields that are not set will be set to undefined.
  665. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  666. * For the list of reserved names please see:
  667. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  668. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  669. * JSPB instance for transitional soy proto support:
  670. * http://goto/soy-param-migration
  671. * @return {!Object}
  672. */
  673. proto.to.v1.ToSignOutRequest.prototype.toObject = function(opt_includeInstance) {
  674. return proto.to.v1.ToSignOutRequest.toObject(opt_includeInstance, this);
  675. };
  676. /**
  677. * Static version of the {@see toObject} method.
  678. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  679. * the JSPB instance for transitional soy proto support:
  680. * http://goto/soy-param-migration
  681. * @param {!proto.to.v1.ToSignOutRequest} msg The msg instance to transform.
  682. * @return {!Object}
  683. * @suppress {unusedLocalVariables} f is only used for nested messages
  684. */
  685. proto.to.v1.ToSignOutRequest.toObject = function(includeInstance, msg) {
  686. var f, obj = {
  687. name: jspb.Message.getFieldWithDefault(msg, 1, "")
  688. };
  689. if (includeInstance) {
  690. obj.$jspbMessageInstance = msg;
  691. }
  692. return obj;
  693. };
  694. }
  695. /**
  696. * Deserializes binary data (in protobuf wire format).
  697. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  698. * @return {!proto.to.v1.ToSignOutRequest}
  699. */
  700. proto.to.v1.ToSignOutRequest.deserializeBinary = function(bytes) {
  701. var reader = new jspb.BinaryReader(bytes);
  702. var msg = new proto.to.v1.ToSignOutRequest;
  703. return proto.to.v1.ToSignOutRequest.deserializeBinaryFromReader(msg, reader);
  704. };
  705. /**
  706. * Deserializes binary data (in protobuf wire format) from the
  707. * given reader into the given message object.
  708. * @param {!proto.to.v1.ToSignOutRequest} msg The message object to deserialize into.
  709. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  710. * @return {!proto.to.v1.ToSignOutRequest}
  711. */
  712. proto.to.v1.ToSignOutRequest.deserializeBinaryFromReader = function(msg, reader) {
  713. while (reader.nextField()) {
  714. if (reader.isEndGroup()) {
  715. break;
  716. }
  717. var field = reader.getFieldNumber();
  718. switch (field) {
  719. case 1:
  720. var value = /** @type {string} */ (reader.readString());
  721. msg.setName(value);
  722. break;
  723. default:
  724. reader.skipField();
  725. break;
  726. }
  727. }
  728. return msg;
  729. };
  730. /**
  731. * Serializes the message to binary data (in protobuf wire format).
  732. * @return {!Uint8Array}
  733. */
  734. proto.to.v1.ToSignOutRequest.prototype.serializeBinary = function() {
  735. var writer = new jspb.BinaryWriter();
  736. proto.to.v1.ToSignOutRequest.serializeBinaryToWriter(this, writer);
  737. return writer.getResultBuffer();
  738. };
  739. /**
  740. * Serializes the given message to binary data (in protobuf wire
  741. * format), writing to the given BinaryWriter.
  742. * @param {!proto.to.v1.ToSignOutRequest} message
  743. * @param {!jspb.BinaryWriter} writer
  744. * @suppress {unusedLocalVariables} f is only used for nested messages
  745. */
  746. proto.to.v1.ToSignOutRequest.serializeBinaryToWriter = function(message, writer) {
  747. var f = undefined;
  748. f = message.getName();
  749. if (f.length > 0) {
  750. writer.writeString(
  751. 1,
  752. f
  753. );
  754. }
  755. };
  756. /**
  757. * optional string name = 1;
  758. * @return {string}
  759. */
  760. proto.to.v1.ToSignOutRequest.prototype.getName = function() {
  761. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  762. };
  763. /**
  764. * @param {string} value
  765. * @return {!proto.to.v1.ToSignOutRequest} returns this
  766. */
  767. proto.to.v1.ToSignOutRequest.prototype.setName = function(value) {
  768. return jspb.Message.setProto3StringField(this, 1, value);
  769. };
  770. if (jspb.Message.GENERATE_TO_OBJECT) {
  771. /**
  772. * Creates an object representation of this proto.
  773. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  774. * Optional fields that are not set will be set to undefined.
  775. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  776. * For the list of reserved names please see:
  777. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  778. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  779. * JSPB instance for transitional soy proto support:
  780. * http://goto/soy-param-migration
  781. * @return {!Object}
  782. */
  783. proto.to.v1.ToSendCodeToPhoneRequest.prototype.toObject = function(opt_includeInstance) {
  784. return proto.to.v1.ToSendCodeToPhoneRequest.toObject(opt_includeInstance, this);
  785. };
  786. /**
  787. * Static version of the {@see toObject} method.
  788. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  789. * the JSPB instance for transitional soy proto support:
  790. * http://goto/soy-param-migration
  791. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} msg The msg instance to transform.
  792. * @return {!Object}
  793. * @suppress {unusedLocalVariables} f is only used for nested messages
  794. */
  795. proto.to.v1.ToSendCodeToPhoneRequest.toObject = function(includeInstance, msg) {
  796. var f, obj = {
  797. phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
  798. usertype: jspb.Message.getFieldWithDefault(msg, 2, 0),
  799. smstype: jspb.Message.getFieldWithDefault(msg, 3, 0)
  800. };
  801. if (includeInstance) {
  802. obj.$jspbMessageInstance = msg;
  803. }
  804. return obj;
  805. };
  806. }
  807. /**
  808. * Deserializes binary data (in protobuf wire format).
  809. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  810. * @return {!proto.to.v1.ToSendCodeToPhoneRequest}
  811. */
  812. proto.to.v1.ToSendCodeToPhoneRequest.deserializeBinary = function(bytes) {
  813. var reader = new jspb.BinaryReader(bytes);
  814. var msg = new proto.to.v1.ToSendCodeToPhoneRequest;
  815. return proto.to.v1.ToSendCodeToPhoneRequest.deserializeBinaryFromReader(msg, reader);
  816. };
  817. /**
  818. * Deserializes binary data (in protobuf wire format) from the
  819. * given reader into the given message object.
  820. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} msg The message object to deserialize into.
  821. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  822. * @return {!proto.to.v1.ToSendCodeToPhoneRequest}
  823. */
  824. proto.to.v1.ToSendCodeToPhoneRequest.deserializeBinaryFromReader = function(msg, reader) {
  825. while (reader.nextField()) {
  826. if (reader.isEndGroup()) {
  827. break;
  828. }
  829. var field = reader.getFieldNumber();
  830. switch (field) {
  831. case 1:
  832. var value = /** @type {string} */ (reader.readString());
  833. msg.setPhone(value);
  834. break;
  835. case 2:
  836. var value = /** @type {!proto.base.v1.UserType} */ (reader.readEnum());
  837. msg.setUsertype(value);
  838. break;
  839. case 3:
  840. var value = /** @type {!proto.base.v1.SmsType} */ (reader.readEnum());
  841. msg.setSmstype(value);
  842. break;
  843. default:
  844. reader.skipField();
  845. break;
  846. }
  847. }
  848. return msg;
  849. };
  850. /**
  851. * Serializes the message to binary data (in protobuf wire format).
  852. * @return {!Uint8Array}
  853. */
  854. proto.to.v1.ToSendCodeToPhoneRequest.prototype.serializeBinary = function() {
  855. var writer = new jspb.BinaryWriter();
  856. proto.to.v1.ToSendCodeToPhoneRequest.serializeBinaryToWriter(this, writer);
  857. return writer.getResultBuffer();
  858. };
  859. /**
  860. * Serializes the given message to binary data (in protobuf wire
  861. * format), writing to the given BinaryWriter.
  862. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} message
  863. * @param {!jspb.BinaryWriter} writer
  864. * @suppress {unusedLocalVariables} f is only used for nested messages
  865. */
  866. proto.to.v1.ToSendCodeToPhoneRequest.serializeBinaryToWriter = function(message, writer) {
  867. var f = undefined;
  868. f = message.getPhone();
  869. if (f.length > 0) {
  870. writer.writeString(
  871. 1,
  872. f
  873. );
  874. }
  875. f = message.getUsertype();
  876. if (f !== 0.0) {
  877. writer.writeEnum(
  878. 2,
  879. f
  880. );
  881. }
  882. f = message.getSmstype();
  883. if (f !== 0.0) {
  884. writer.writeEnum(
  885. 3,
  886. f
  887. );
  888. }
  889. };
  890. /**
  891. * optional string phone = 1;
  892. * @return {string}
  893. */
  894. proto.to.v1.ToSendCodeToPhoneRequest.prototype.getPhone = function() {
  895. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  896. };
  897. /**
  898. * @param {string} value
  899. * @return {!proto.to.v1.ToSendCodeToPhoneRequest} returns this
  900. */
  901. proto.to.v1.ToSendCodeToPhoneRequest.prototype.setPhone = function(value) {
  902. return jspb.Message.setProto3StringField(this, 1, value);
  903. };
  904. /**
  905. * optional base.v1.UserType userType = 2;
  906. * @return {!proto.base.v1.UserType}
  907. */
  908. proto.to.v1.ToSendCodeToPhoneRequest.prototype.getUsertype = function() {
  909. return /** @type {!proto.base.v1.UserType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  910. };
  911. /**
  912. * @param {!proto.base.v1.UserType} value
  913. * @return {!proto.to.v1.ToSendCodeToPhoneRequest} returns this
  914. */
  915. proto.to.v1.ToSendCodeToPhoneRequest.prototype.setUsertype = function(value) {
  916. return jspb.Message.setProto3EnumField(this, 2, value);
  917. };
  918. /**
  919. * optional base.v1.SmsType smsType = 3;
  920. * @return {!proto.base.v1.SmsType}
  921. */
  922. proto.to.v1.ToSendCodeToPhoneRequest.prototype.getSmstype = function() {
  923. return /** @type {!proto.base.v1.SmsType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  924. };
  925. /**
  926. * @param {!proto.base.v1.SmsType} value
  927. * @return {!proto.to.v1.ToSendCodeToPhoneRequest} returns this
  928. */
  929. proto.to.v1.ToSendCodeToPhoneRequest.prototype.setSmstype = function(value) {
  930. return jspb.Message.setProto3EnumField(this, 3, value);
  931. };
  932. if (jspb.Message.GENERATE_TO_OBJECT) {
  933. /**
  934. * Creates an object representation of this proto.
  935. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  936. * Optional fields that are not set will be set to undefined.
  937. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  938. * For the list of reserved names please see:
  939. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  940. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  941. * JSPB instance for transitional soy proto support:
  942. * http://goto/soy-param-migration
  943. * @return {!Object}
  944. */
  945. proto.to.v1.ToSignInRequest.prototype.toObject = function(opt_includeInstance) {
  946. return proto.to.v1.ToSignInRequest.toObject(opt_includeInstance, this);
  947. };
  948. /**
  949. * Static version of the {@see toObject} method.
  950. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  951. * the JSPB instance for transitional soy proto support:
  952. * http://goto/soy-param-migration
  953. * @param {!proto.to.v1.ToSignInRequest} msg The msg instance to transform.
  954. * @return {!Object}
  955. * @suppress {unusedLocalVariables} f is only used for nested messages
  956. */
  957. proto.to.v1.ToSignInRequest.toObject = function(includeInstance, msg) {
  958. var f, obj = {
  959. usercode: jspb.Message.getFieldWithDefault(msg, 1, ""),
  960. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  961. ip: jspb.Message.getFieldWithDefault(msg, 3, "")
  962. };
  963. if (includeInstance) {
  964. obj.$jspbMessageInstance = msg;
  965. }
  966. return obj;
  967. };
  968. }
  969. /**
  970. * Deserializes binary data (in protobuf wire format).
  971. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  972. * @return {!proto.to.v1.ToSignInRequest}
  973. */
  974. proto.to.v1.ToSignInRequest.deserializeBinary = function(bytes) {
  975. var reader = new jspb.BinaryReader(bytes);
  976. var msg = new proto.to.v1.ToSignInRequest;
  977. return proto.to.v1.ToSignInRequest.deserializeBinaryFromReader(msg, reader);
  978. };
  979. /**
  980. * Deserializes binary data (in protobuf wire format) from the
  981. * given reader into the given message object.
  982. * @param {!proto.to.v1.ToSignInRequest} msg The message object to deserialize into.
  983. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  984. * @return {!proto.to.v1.ToSignInRequest}
  985. */
  986. proto.to.v1.ToSignInRequest.deserializeBinaryFromReader = function(msg, reader) {
  987. while (reader.nextField()) {
  988. if (reader.isEndGroup()) {
  989. break;
  990. }
  991. var field = reader.getFieldNumber();
  992. switch (field) {
  993. case 1:
  994. var value = /** @type {string} */ (reader.readString());
  995. msg.setUsercode(value);
  996. break;
  997. case 2:
  998. var value = /** @type {string} */ (reader.readString());
  999. msg.setPassword(value);
  1000. break;
  1001. case 3:
  1002. var value = /** @type {string} */ (reader.readString());
  1003. msg.setIp(value);
  1004. break;
  1005. default:
  1006. reader.skipField();
  1007. break;
  1008. }
  1009. }
  1010. return msg;
  1011. };
  1012. /**
  1013. * Serializes the message to binary data (in protobuf wire format).
  1014. * @return {!Uint8Array}
  1015. */
  1016. proto.to.v1.ToSignInRequest.prototype.serializeBinary = function() {
  1017. var writer = new jspb.BinaryWriter();
  1018. proto.to.v1.ToSignInRequest.serializeBinaryToWriter(this, writer);
  1019. return writer.getResultBuffer();
  1020. };
  1021. /**
  1022. * Serializes the given message to binary data (in protobuf wire
  1023. * format), writing to the given BinaryWriter.
  1024. * @param {!proto.to.v1.ToSignInRequest} message
  1025. * @param {!jspb.BinaryWriter} writer
  1026. * @suppress {unusedLocalVariables} f is only used for nested messages
  1027. */
  1028. proto.to.v1.ToSignInRequest.serializeBinaryToWriter = function(message, writer) {
  1029. var f = undefined;
  1030. f = message.getUsercode();
  1031. if (f.length > 0) {
  1032. writer.writeString(
  1033. 1,
  1034. f
  1035. );
  1036. }
  1037. f = message.getPassword();
  1038. if (f.length > 0) {
  1039. writer.writeString(
  1040. 2,
  1041. f
  1042. );
  1043. }
  1044. f = message.getIp();
  1045. if (f.length > 0) {
  1046. writer.writeString(
  1047. 3,
  1048. f
  1049. );
  1050. }
  1051. };
  1052. /**
  1053. * optional string userCode = 1;
  1054. * @return {string}
  1055. */
  1056. proto.to.v1.ToSignInRequest.prototype.getUsercode = function() {
  1057. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1058. };
  1059. /**
  1060. * @param {string} value
  1061. * @return {!proto.to.v1.ToSignInRequest} returns this
  1062. */
  1063. proto.to.v1.ToSignInRequest.prototype.setUsercode = function(value) {
  1064. return jspb.Message.setProto3StringField(this, 1, value);
  1065. };
  1066. /**
  1067. * optional string password = 2;
  1068. * @return {string}
  1069. */
  1070. proto.to.v1.ToSignInRequest.prototype.getPassword = function() {
  1071. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1072. };
  1073. /**
  1074. * @param {string} value
  1075. * @return {!proto.to.v1.ToSignInRequest} returns this
  1076. */
  1077. proto.to.v1.ToSignInRequest.prototype.setPassword = function(value) {
  1078. return jspb.Message.setProto3StringField(this, 2, value);
  1079. };
  1080. /**
  1081. * optional string ip = 3;
  1082. * @return {string}
  1083. */
  1084. proto.to.v1.ToSignInRequest.prototype.getIp = function() {
  1085. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  1086. };
  1087. /**
  1088. * @param {string} value
  1089. * @return {!proto.to.v1.ToSignInRequest} returns this
  1090. */
  1091. proto.to.v1.ToSignInRequest.prototype.setIp = function(value) {
  1092. return jspb.Message.setProto3StringField(this, 3, value);
  1093. };
  1094. /**
  1095. * List of repeated fields within this message type.
  1096. * @private {!Array<number>}
  1097. * @const
  1098. */
  1099. proto.to.v1.ToMapListReply.repeatedFields_ = [1];
  1100. if (jspb.Message.GENERATE_TO_OBJECT) {
  1101. /**
  1102. * Creates an object representation of this proto.
  1103. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1104. * Optional fields that are not set will be set to undefined.
  1105. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1106. * For the list of reserved names please see:
  1107. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1108. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1109. * JSPB instance for transitional soy proto support:
  1110. * http://goto/soy-param-migration
  1111. * @return {!Object}
  1112. */
  1113. proto.to.v1.ToMapListReply.prototype.toObject = function(opt_includeInstance) {
  1114. return proto.to.v1.ToMapListReply.toObject(opt_includeInstance, this);
  1115. };
  1116. /**
  1117. * Static version of the {@see toObject} method.
  1118. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1119. * the JSPB instance for transitional soy proto support:
  1120. * http://goto/soy-param-migration
  1121. * @param {!proto.to.v1.ToMapListReply} msg The msg instance to transform.
  1122. * @return {!Object}
  1123. * @suppress {unusedLocalVariables} f is only used for nested messages
  1124. */
  1125. proto.to.v1.ToMapListReply.toObject = function(includeInstance, msg) {
  1126. var f, obj = {
  1127. listList: jspb.Message.toObjectList(msg.getListList(),
  1128. proto.to.v1.ToMapSimple.toObject, includeInstance)
  1129. };
  1130. if (includeInstance) {
  1131. obj.$jspbMessageInstance = msg;
  1132. }
  1133. return obj;
  1134. };
  1135. }
  1136. /**
  1137. * Deserializes binary data (in protobuf wire format).
  1138. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1139. * @return {!proto.to.v1.ToMapListReply}
  1140. */
  1141. proto.to.v1.ToMapListReply.deserializeBinary = function(bytes) {
  1142. var reader = new jspb.BinaryReader(bytes);
  1143. var msg = new proto.to.v1.ToMapListReply;
  1144. return proto.to.v1.ToMapListReply.deserializeBinaryFromReader(msg, reader);
  1145. };
  1146. /**
  1147. * Deserializes binary data (in protobuf wire format) from the
  1148. * given reader into the given message object.
  1149. * @param {!proto.to.v1.ToMapListReply} msg The message object to deserialize into.
  1150. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1151. * @return {!proto.to.v1.ToMapListReply}
  1152. */
  1153. proto.to.v1.ToMapListReply.deserializeBinaryFromReader = function(msg, reader) {
  1154. while (reader.nextField()) {
  1155. if (reader.isEndGroup()) {
  1156. break;
  1157. }
  1158. var field = reader.getFieldNumber();
  1159. switch (field) {
  1160. case 1:
  1161. var value = new proto.to.v1.ToMapSimple;
  1162. reader.readMessage(value,proto.to.v1.ToMapSimple.deserializeBinaryFromReader);
  1163. msg.addList(value);
  1164. break;
  1165. default:
  1166. reader.skipField();
  1167. break;
  1168. }
  1169. }
  1170. return msg;
  1171. };
  1172. /**
  1173. * Serializes the message to binary data (in protobuf wire format).
  1174. * @return {!Uint8Array}
  1175. */
  1176. proto.to.v1.ToMapListReply.prototype.serializeBinary = function() {
  1177. var writer = new jspb.BinaryWriter();
  1178. proto.to.v1.ToMapListReply.serializeBinaryToWriter(this, writer);
  1179. return writer.getResultBuffer();
  1180. };
  1181. /**
  1182. * Serializes the given message to binary data (in protobuf wire
  1183. * format), writing to the given BinaryWriter.
  1184. * @param {!proto.to.v1.ToMapListReply} message
  1185. * @param {!jspb.BinaryWriter} writer
  1186. * @suppress {unusedLocalVariables} f is only used for nested messages
  1187. */
  1188. proto.to.v1.ToMapListReply.serializeBinaryToWriter = function(message, writer) {
  1189. var f = undefined;
  1190. f = message.getListList();
  1191. if (f.length > 0) {
  1192. writer.writeRepeatedMessage(
  1193. 1,
  1194. f,
  1195. proto.to.v1.ToMapSimple.serializeBinaryToWriter
  1196. );
  1197. }
  1198. };
  1199. /**
  1200. * repeated ToMapSimple list = 1;
  1201. * @return {!Array<!proto.to.v1.ToMapSimple>}
  1202. */
  1203. proto.to.v1.ToMapListReply.prototype.getListList = function() {
  1204. return /** @type{!Array<!proto.to.v1.ToMapSimple>} */ (
  1205. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.ToMapSimple, 1));
  1206. };
  1207. /**
  1208. * @param {!Array<!proto.to.v1.ToMapSimple>} value
  1209. * @return {!proto.to.v1.ToMapListReply} returns this
  1210. */
  1211. proto.to.v1.ToMapListReply.prototype.setListList = function(value) {
  1212. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  1213. };
  1214. /**
  1215. * @param {!proto.to.v1.ToMapSimple=} opt_value
  1216. * @param {number=} opt_index
  1217. * @return {!proto.to.v1.ToMapSimple}
  1218. */
  1219. proto.to.v1.ToMapListReply.prototype.addList = function(opt_value, opt_index) {
  1220. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.to.v1.ToMapSimple, opt_index);
  1221. };
  1222. /**
  1223. * Clears the list making it empty but non-null.
  1224. * @return {!proto.to.v1.ToMapListReply} returns this
  1225. */
  1226. proto.to.v1.ToMapListReply.prototype.clearListList = function() {
  1227. return this.setListList([]);
  1228. };
  1229. if (jspb.Message.GENERATE_TO_OBJECT) {
  1230. /**
  1231. * Creates an object representation of this proto.
  1232. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1233. * Optional fields that are not set will be set to undefined.
  1234. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1235. * For the list of reserved names please see:
  1236. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1237. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1238. * JSPB instance for transitional soy proto support:
  1239. * http://goto/soy-param-migration
  1240. * @return {!Object}
  1241. */
  1242. proto.to.v1.ToMapSimple.prototype.toObject = function(opt_includeInstance) {
  1243. return proto.to.v1.ToMapSimple.toObject(opt_includeInstance, this);
  1244. };
  1245. /**
  1246. * Static version of the {@see toObject} method.
  1247. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1248. * the JSPB instance for transitional soy proto support:
  1249. * http://goto/soy-param-migration
  1250. * @param {!proto.to.v1.ToMapSimple} msg The msg instance to transform.
  1251. * @return {!Object}
  1252. * @suppress {unusedLocalVariables} f is only used for nested messages
  1253. */
  1254. proto.to.v1.ToMapSimple.toObject = function(includeInstance, msg) {
  1255. var f, obj = {
  1256. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1257. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1258. usernum: jspb.Message.getFieldWithDefault(msg, 3, 0)
  1259. };
  1260. if (includeInstance) {
  1261. obj.$jspbMessageInstance = msg;
  1262. }
  1263. return obj;
  1264. };
  1265. }
  1266. /**
  1267. * Deserializes binary data (in protobuf wire format).
  1268. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1269. * @return {!proto.to.v1.ToMapSimple}
  1270. */
  1271. proto.to.v1.ToMapSimple.deserializeBinary = function(bytes) {
  1272. var reader = new jspb.BinaryReader(bytes);
  1273. var msg = new proto.to.v1.ToMapSimple;
  1274. return proto.to.v1.ToMapSimple.deserializeBinaryFromReader(msg, reader);
  1275. };
  1276. /**
  1277. * Deserializes binary data (in protobuf wire format) from the
  1278. * given reader into the given message object.
  1279. * @param {!proto.to.v1.ToMapSimple} msg The message object to deserialize into.
  1280. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1281. * @return {!proto.to.v1.ToMapSimple}
  1282. */
  1283. proto.to.v1.ToMapSimple.deserializeBinaryFromReader = function(msg, reader) {
  1284. while (reader.nextField()) {
  1285. if (reader.isEndGroup()) {
  1286. break;
  1287. }
  1288. var field = reader.getFieldNumber();
  1289. switch (field) {
  1290. case 1:
  1291. var value = /** @type {number} */ (reader.readInt32());
  1292. msg.setId(value);
  1293. break;
  1294. case 2:
  1295. var value = /** @type {string} */ (reader.readString());
  1296. msg.setName(value);
  1297. break;
  1298. case 3:
  1299. var value = /** @type {number} */ (reader.readInt32());
  1300. msg.setUsernum(value);
  1301. break;
  1302. default:
  1303. reader.skipField();
  1304. break;
  1305. }
  1306. }
  1307. return msg;
  1308. };
  1309. /**
  1310. * Serializes the message to binary data (in protobuf wire format).
  1311. * @return {!Uint8Array}
  1312. */
  1313. proto.to.v1.ToMapSimple.prototype.serializeBinary = function() {
  1314. var writer = new jspb.BinaryWriter();
  1315. proto.to.v1.ToMapSimple.serializeBinaryToWriter(this, writer);
  1316. return writer.getResultBuffer();
  1317. };
  1318. /**
  1319. * Serializes the given message to binary data (in protobuf wire
  1320. * format), writing to the given BinaryWriter.
  1321. * @param {!proto.to.v1.ToMapSimple} message
  1322. * @param {!jspb.BinaryWriter} writer
  1323. * @suppress {unusedLocalVariables} f is only used for nested messages
  1324. */
  1325. proto.to.v1.ToMapSimple.serializeBinaryToWriter = function(message, writer) {
  1326. var f = undefined;
  1327. f = message.getId();
  1328. if (f !== 0) {
  1329. writer.writeInt32(
  1330. 1,
  1331. f
  1332. );
  1333. }
  1334. f = message.getName();
  1335. if (f.length > 0) {
  1336. writer.writeString(
  1337. 2,
  1338. f
  1339. );
  1340. }
  1341. f = message.getUsernum();
  1342. if (f !== 0) {
  1343. writer.writeInt32(
  1344. 3,
  1345. f
  1346. );
  1347. }
  1348. };
  1349. /**
  1350. * optional int32 id = 1;
  1351. * @return {number}
  1352. */
  1353. proto.to.v1.ToMapSimple.prototype.getId = function() {
  1354. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1355. };
  1356. /**
  1357. * @param {number} value
  1358. * @return {!proto.to.v1.ToMapSimple} returns this
  1359. */
  1360. proto.to.v1.ToMapSimple.prototype.setId = function(value) {
  1361. return jspb.Message.setProto3IntField(this, 1, value);
  1362. };
  1363. /**
  1364. * optional string name = 2;
  1365. * @return {string}
  1366. */
  1367. proto.to.v1.ToMapSimple.prototype.getName = function() {
  1368. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1369. };
  1370. /**
  1371. * @param {string} value
  1372. * @return {!proto.to.v1.ToMapSimple} returns this
  1373. */
  1374. proto.to.v1.ToMapSimple.prototype.setName = function(value) {
  1375. return jspb.Message.setProto3StringField(this, 2, value);
  1376. };
  1377. /**
  1378. * optional int32 userNum = 3;
  1379. * @return {number}
  1380. */
  1381. proto.to.v1.ToMapSimple.prototype.getUsernum = function() {
  1382. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  1383. };
  1384. /**
  1385. * @param {number} value
  1386. * @return {!proto.to.v1.ToMapSimple} returns this
  1387. */
  1388. proto.to.v1.ToMapSimple.prototype.setUsernum = function(value) {
  1389. return jspb.Message.setProto3IntField(this, 3, value);
  1390. };
  1391. /**
  1392. * List of repeated fields within this message type.
  1393. * @private {!Array<number>}
  1394. * @const
  1395. */
  1396. proto.to.v1.ToMapDetailReply.repeatedFields_ = [2];
  1397. if (jspb.Message.GENERATE_TO_OBJECT) {
  1398. /**
  1399. * Creates an object representation of this proto.
  1400. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1401. * Optional fields that are not set will be set to undefined.
  1402. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1403. * For the list of reserved names please see:
  1404. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1405. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1406. * JSPB instance for transitional soy proto support:
  1407. * http://goto/soy-param-migration
  1408. * @return {!Object}
  1409. */
  1410. proto.to.v1.ToMapDetailReply.prototype.toObject = function(opt_includeInstance) {
  1411. return proto.to.v1.ToMapDetailReply.toObject(opt_includeInstance, this);
  1412. };
  1413. /**
  1414. * Static version of the {@see toObject} method.
  1415. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1416. * the JSPB instance for transitional soy proto support:
  1417. * http://goto/soy-param-migration
  1418. * @param {!proto.to.v1.ToMapDetailReply} msg The msg instance to transform.
  1419. * @return {!Object}
  1420. * @suppress {unusedLocalVariables} f is only used for nested messages
  1421. */
  1422. proto.to.v1.ToMapDetailReply.toObject = function(includeInstance, msg) {
  1423. var f, obj = {
  1424. mapinfo: (f = msg.getMapinfo()) && proto.to.v1.ToMapInfo.toObject(includeInstance, f),
  1425. actselectrsList: jspb.Message.toObjectList(msg.getActselectrsList(),
  1426. proto.to.v1.ToActInfoSelect.toObject, includeInstance)
  1427. };
  1428. if (includeInstance) {
  1429. obj.$jspbMessageInstance = msg;
  1430. }
  1431. return obj;
  1432. };
  1433. }
  1434. /**
  1435. * Deserializes binary data (in protobuf wire format).
  1436. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1437. * @return {!proto.to.v1.ToMapDetailReply}
  1438. */
  1439. proto.to.v1.ToMapDetailReply.deserializeBinary = function(bytes) {
  1440. var reader = new jspb.BinaryReader(bytes);
  1441. var msg = new proto.to.v1.ToMapDetailReply;
  1442. return proto.to.v1.ToMapDetailReply.deserializeBinaryFromReader(msg, reader);
  1443. };
  1444. /**
  1445. * Deserializes binary data (in protobuf wire format) from the
  1446. * given reader into the given message object.
  1447. * @param {!proto.to.v1.ToMapDetailReply} msg The message object to deserialize into.
  1448. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1449. * @return {!proto.to.v1.ToMapDetailReply}
  1450. */
  1451. proto.to.v1.ToMapDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  1452. while (reader.nextField()) {
  1453. if (reader.isEndGroup()) {
  1454. break;
  1455. }
  1456. var field = reader.getFieldNumber();
  1457. switch (field) {
  1458. case 1:
  1459. var value = new proto.to.v1.ToMapInfo;
  1460. reader.readMessage(value,proto.to.v1.ToMapInfo.deserializeBinaryFromReader);
  1461. msg.setMapinfo(value);
  1462. break;
  1463. case 2:
  1464. var value = new proto.to.v1.ToActInfoSelect;
  1465. reader.readMessage(value,proto.to.v1.ToActInfoSelect.deserializeBinaryFromReader);
  1466. msg.addActselectrs(value);
  1467. break;
  1468. default:
  1469. reader.skipField();
  1470. break;
  1471. }
  1472. }
  1473. return msg;
  1474. };
  1475. /**
  1476. * Serializes the message to binary data (in protobuf wire format).
  1477. * @return {!Uint8Array}
  1478. */
  1479. proto.to.v1.ToMapDetailReply.prototype.serializeBinary = function() {
  1480. var writer = new jspb.BinaryWriter();
  1481. proto.to.v1.ToMapDetailReply.serializeBinaryToWriter(this, writer);
  1482. return writer.getResultBuffer();
  1483. };
  1484. /**
  1485. * Serializes the given message to binary data (in protobuf wire
  1486. * format), writing to the given BinaryWriter.
  1487. * @param {!proto.to.v1.ToMapDetailReply} message
  1488. * @param {!jspb.BinaryWriter} writer
  1489. * @suppress {unusedLocalVariables} f is only used for nested messages
  1490. */
  1491. proto.to.v1.ToMapDetailReply.serializeBinaryToWriter = function(message, writer) {
  1492. var f = undefined;
  1493. f = message.getMapinfo();
  1494. if (f != null) {
  1495. writer.writeMessage(
  1496. 1,
  1497. f,
  1498. proto.to.v1.ToMapInfo.serializeBinaryToWriter
  1499. );
  1500. }
  1501. f = message.getActselectrsList();
  1502. if (f.length > 0) {
  1503. writer.writeRepeatedMessage(
  1504. 2,
  1505. f,
  1506. proto.to.v1.ToActInfoSelect.serializeBinaryToWriter
  1507. );
  1508. }
  1509. };
  1510. /**
  1511. * optional ToMapInfo mapInfo = 1;
  1512. * @return {?proto.to.v1.ToMapInfo}
  1513. */
  1514. proto.to.v1.ToMapDetailReply.prototype.getMapinfo = function() {
  1515. return /** @type{?proto.to.v1.ToMapInfo} */ (
  1516. jspb.Message.getWrapperField(this, proto.to.v1.ToMapInfo, 1));
  1517. };
  1518. /**
  1519. * @param {?proto.to.v1.ToMapInfo|undefined} value
  1520. * @return {!proto.to.v1.ToMapDetailReply} returns this
  1521. */
  1522. proto.to.v1.ToMapDetailReply.prototype.setMapinfo = function(value) {
  1523. return jspb.Message.setWrapperField(this, 1, value);
  1524. };
  1525. /**
  1526. * Clears the message field making it undefined.
  1527. * @return {!proto.to.v1.ToMapDetailReply} returns this
  1528. */
  1529. proto.to.v1.ToMapDetailReply.prototype.clearMapinfo = function() {
  1530. return this.setMapinfo(undefined);
  1531. };
  1532. /**
  1533. * Returns whether this field is set.
  1534. * @return {boolean}
  1535. */
  1536. proto.to.v1.ToMapDetailReply.prototype.hasMapinfo = function() {
  1537. return jspb.Message.getField(this, 1) != null;
  1538. };
  1539. /**
  1540. * repeated ToActInfoSelect actSelectRs = 2;
  1541. * @return {!Array<!proto.to.v1.ToActInfoSelect>}
  1542. */
  1543. proto.to.v1.ToMapDetailReply.prototype.getActselectrsList = function() {
  1544. return /** @type{!Array<!proto.to.v1.ToActInfoSelect>} */ (
  1545. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.ToActInfoSelect, 2));
  1546. };
  1547. /**
  1548. * @param {!Array<!proto.to.v1.ToActInfoSelect>} value
  1549. * @return {!proto.to.v1.ToMapDetailReply} returns this
  1550. */
  1551. proto.to.v1.ToMapDetailReply.prototype.setActselectrsList = function(value) {
  1552. return jspb.Message.setRepeatedWrapperField(this, 2, value);
  1553. };
  1554. /**
  1555. * @param {!proto.to.v1.ToActInfoSelect=} opt_value
  1556. * @param {number=} opt_index
  1557. * @return {!proto.to.v1.ToActInfoSelect}
  1558. */
  1559. proto.to.v1.ToMapDetailReply.prototype.addActselectrs = function(opt_value, opt_index) {
  1560. return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.to.v1.ToActInfoSelect, opt_index);
  1561. };
  1562. /**
  1563. * Clears the list making it empty but non-null.
  1564. * @return {!proto.to.v1.ToMapDetailReply} returns this
  1565. */
  1566. proto.to.v1.ToMapDetailReply.prototype.clearActselectrsList = function() {
  1567. return this.setActselectrsList([]);
  1568. };
  1569. if (jspb.Message.GENERATE_TO_OBJECT) {
  1570. /**
  1571. * Creates an object representation of this proto.
  1572. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1573. * Optional fields that are not set will be set to undefined.
  1574. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1575. * For the list of reserved names please see:
  1576. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1577. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1578. * JSPB instance for transitional soy proto support:
  1579. * http://goto/soy-param-migration
  1580. * @return {!Object}
  1581. */
  1582. proto.to.v1.ToCourseInfoInMap.prototype.toObject = function(opt_includeInstance) {
  1583. return proto.to.v1.ToCourseInfoInMap.toObject(opt_includeInstance, this);
  1584. };
  1585. /**
  1586. * Static version of the {@see toObject} method.
  1587. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1588. * the JSPB instance for transitional soy proto support:
  1589. * http://goto/soy-param-migration
  1590. * @param {!proto.to.v1.ToCourseInfoInMap} msg The msg instance to transform.
  1591. * @return {!Object}
  1592. * @suppress {unusedLocalVariables} f is only used for nested messages
  1593. */
  1594. proto.to.v1.ToCourseInfoInMap.toObject = function(includeInstance, msg) {
  1595. var f, obj = {
  1596. actid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1597. actname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1598. courseid: jspb.Message.getFieldWithDefault(msg, 3, 0),
  1599. coursename: jspb.Message.getFieldWithDefault(msg, 4, ""),
  1600. courseusernum: jspb.Message.getFieldWithDefault(msg, 5, 0)
  1601. };
  1602. if (includeInstance) {
  1603. obj.$jspbMessageInstance = msg;
  1604. }
  1605. return obj;
  1606. };
  1607. }
  1608. /**
  1609. * Deserializes binary data (in protobuf wire format).
  1610. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1611. * @return {!proto.to.v1.ToCourseInfoInMap}
  1612. */
  1613. proto.to.v1.ToCourseInfoInMap.deserializeBinary = function(bytes) {
  1614. var reader = new jspb.BinaryReader(bytes);
  1615. var msg = new proto.to.v1.ToCourseInfoInMap;
  1616. return proto.to.v1.ToCourseInfoInMap.deserializeBinaryFromReader(msg, reader);
  1617. };
  1618. /**
  1619. * Deserializes binary data (in protobuf wire format) from the
  1620. * given reader into the given message object.
  1621. * @param {!proto.to.v1.ToCourseInfoInMap} msg The message object to deserialize into.
  1622. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1623. * @return {!proto.to.v1.ToCourseInfoInMap}
  1624. */
  1625. proto.to.v1.ToCourseInfoInMap.deserializeBinaryFromReader = function(msg, reader) {
  1626. while (reader.nextField()) {
  1627. if (reader.isEndGroup()) {
  1628. break;
  1629. }
  1630. var field = reader.getFieldNumber();
  1631. switch (field) {
  1632. case 1:
  1633. var value = /** @type {number} */ (reader.readInt32());
  1634. msg.setActid(value);
  1635. break;
  1636. case 2:
  1637. var value = /** @type {string} */ (reader.readString());
  1638. msg.setActname(value);
  1639. break;
  1640. case 3:
  1641. var value = /** @type {number} */ (reader.readInt32());
  1642. msg.setCourseid(value);
  1643. break;
  1644. case 4:
  1645. var value = /** @type {string} */ (reader.readString());
  1646. msg.setCoursename(value);
  1647. break;
  1648. case 5:
  1649. var value = /** @type {number} */ (reader.readInt32());
  1650. msg.setCourseusernum(value);
  1651. break;
  1652. default:
  1653. reader.skipField();
  1654. break;
  1655. }
  1656. }
  1657. return msg;
  1658. };
  1659. /**
  1660. * Serializes the message to binary data (in protobuf wire format).
  1661. * @return {!Uint8Array}
  1662. */
  1663. proto.to.v1.ToCourseInfoInMap.prototype.serializeBinary = function() {
  1664. var writer = new jspb.BinaryWriter();
  1665. proto.to.v1.ToCourseInfoInMap.serializeBinaryToWriter(this, writer);
  1666. return writer.getResultBuffer();
  1667. };
  1668. /**
  1669. * Serializes the given message to binary data (in protobuf wire
  1670. * format), writing to the given BinaryWriter.
  1671. * @param {!proto.to.v1.ToCourseInfoInMap} message
  1672. * @param {!jspb.BinaryWriter} writer
  1673. * @suppress {unusedLocalVariables} f is only used for nested messages
  1674. */
  1675. proto.to.v1.ToCourseInfoInMap.serializeBinaryToWriter = function(message, writer) {
  1676. var f = undefined;
  1677. f = message.getActid();
  1678. if (f !== 0) {
  1679. writer.writeInt32(
  1680. 1,
  1681. f
  1682. );
  1683. }
  1684. f = message.getActname();
  1685. if (f.length > 0) {
  1686. writer.writeString(
  1687. 2,
  1688. f
  1689. );
  1690. }
  1691. f = message.getCourseid();
  1692. if (f !== 0) {
  1693. writer.writeInt32(
  1694. 3,
  1695. f
  1696. );
  1697. }
  1698. f = message.getCoursename();
  1699. if (f.length > 0) {
  1700. writer.writeString(
  1701. 4,
  1702. f
  1703. );
  1704. }
  1705. f = message.getCourseusernum();
  1706. if (f !== 0) {
  1707. writer.writeInt32(
  1708. 5,
  1709. f
  1710. );
  1711. }
  1712. };
  1713. /**
  1714. * optional int32 actId = 1;
  1715. * @return {number}
  1716. */
  1717. proto.to.v1.ToCourseInfoInMap.prototype.getActid = function() {
  1718. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1719. };
  1720. /**
  1721. * @param {number} value
  1722. * @return {!proto.to.v1.ToCourseInfoInMap} returns this
  1723. */
  1724. proto.to.v1.ToCourseInfoInMap.prototype.setActid = function(value) {
  1725. return jspb.Message.setProto3IntField(this, 1, value);
  1726. };
  1727. /**
  1728. * optional string actName = 2;
  1729. * @return {string}
  1730. */
  1731. proto.to.v1.ToCourseInfoInMap.prototype.getActname = function() {
  1732. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1733. };
  1734. /**
  1735. * @param {string} value
  1736. * @return {!proto.to.v1.ToCourseInfoInMap} returns this
  1737. */
  1738. proto.to.v1.ToCourseInfoInMap.prototype.setActname = function(value) {
  1739. return jspb.Message.setProto3StringField(this, 2, value);
  1740. };
  1741. /**
  1742. * optional int32 courseId = 3;
  1743. * @return {number}
  1744. */
  1745. proto.to.v1.ToCourseInfoInMap.prototype.getCourseid = function() {
  1746. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  1747. };
  1748. /**
  1749. * @param {number} value
  1750. * @return {!proto.to.v1.ToCourseInfoInMap} returns this
  1751. */
  1752. proto.to.v1.ToCourseInfoInMap.prototype.setCourseid = function(value) {
  1753. return jspb.Message.setProto3IntField(this, 3, value);
  1754. };
  1755. /**
  1756. * optional string courseName = 4;
  1757. * @return {string}
  1758. */
  1759. proto.to.v1.ToCourseInfoInMap.prototype.getCoursename = function() {
  1760. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  1761. };
  1762. /**
  1763. * @param {string} value
  1764. * @return {!proto.to.v1.ToCourseInfoInMap} returns this
  1765. */
  1766. proto.to.v1.ToCourseInfoInMap.prototype.setCoursename = function(value) {
  1767. return jspb.Message.setProto3StringField(this, 4, value);
  1768. };
  1769. /**
  1770. * optional int32 courseUserNum = 5;
  1771. * @return {number}
  1772. */
  1773. proto.to.v1.ToCourseInfoInMap.prototype.getCourseusernum = function() {
  1774. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  1775. };
  1776. /**
  1777. * @param {number} value
  1778. * @return {!proto.to.v1.ToCourseInfoInMap} returns this
  1779. */
  1780. proto.to.v1.ToCourseInfoInMap.prototype.setCourseusernum = function(value) {
  1781. return jspb.Message.setProto3IntField(this, 5, value);
  1782. };
  1783. /**
  1784. * List of repeated fields within this message type.
  1785. * @private {!Array<number>}
  1786. * @const
  1787. */
  1788. proto.to.v1.ToActInfoSelect.repeatedFields_ = [3];
  1789. if (jspb.Message.GENERATE_TO_OBJECT) {
  1790. /**
  1791. * Creates an object representation of this proto.
  1792. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1793. * Optional fields that are not set will be set to undefined.
  1794. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1795. * For the list of reserved names please see:
  1796. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1797. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1798. * JSPB instance for transitional soy proto support:
  1799. * http://goto/soy-param-migration
  1800. * @return {!Object}
  1801. */
  1802. proto.to.v1.ToActInfoSelect.prototype.toObject = function(opt_includeInstance) {
  1803. return proto.to.v1.ToActInfoSelect.toObject(opt_includeInstance, this);
  1804. };
  1805. /**
  1806. * Static version of the {@see toObject} method.
  1807. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1808. * the JSPB instance for transitional soy proto support:
  1809. * http://goto/soy-param-migration
  1810. * @param {!proto.to.v1.ToActInfoSelect} msg The msg instance to transform.
  1811. * @return {!Object}
  1812. * @suppress {unusedLocalVariables} f is only used for nested messages
  1813. */
  1814. proto.to.v1.ToActInfoSelect.toObject = function(includeInstance, msg) {
  1815. var f, obj = {
  1816. actid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1817. actname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1818. courseselectrsList: jspb.Message.toObjectList(msg.getCourseselectrsList(),
  1819. proto.to.v1.ToCourseInfoSelect.toObject, includeInstance)
  1820. };
  1821. if (includeInstance) {
  1822. obj.$jspbMessageInstance = msg;
  1823. }
  1824. return obj;
  1825. };
  1826. }
  1827. /**
  1828. * Deserializes binary data (in protobuf wire format).
  1829. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1830. * @return {!proto.to.v1.ToActInfoSelect}
  1831. */
  1832. proto.to.v1.ToActInfoSelect.deserializeBinary = function(bytes) {
  1833. var reader = new jspb.BinaryReader(bytes);
  1834. var msg = new proto.to.v1.ToActInfoSelect;
  1835. return proto.to.v1.ToActInfoSelect.deserializeBinaryFromReader(msg, reader);
  1836. };
  1837. /**
  1838. * Deserializes binary data (in protobuf wire format) from the
  1839. * given reader into the given message object.
  1840. * @param {!proto.to.v1.ToActInfoSelect} msg The message object to deserialize into.
  1841. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1842. * @return {!proto.to.v1.ToActInfoSelect}
  1843. */
  1844. proto.to.v1.ToActInfoSelect.deserializeBinaryFromReader = function(msg, reader) {
  1845. while (reader.nextField()) {
  1846. if (reader.isEndGroup()) {
  1847. break;
  1848. }
  1849. var field = reader.getFieldNumber();
  1850. switch (field) {
  1851. case 1:
  1852. var value = /** @type {number} */ (reader.readInt32());
  1853. msg.setActid(value);
  1854. break;
  1855. case 2:
  1856. var value = /** @type {string} */ (reader.readString());
  1857. msg.setActname(value);
  1858. break;
  1859. case 3:
  1860. var value = new proto.to.v1.ToCourseInfoSelect;
  1861. reader.readMessage(value,proto.to.v1.ToCourseInfoSelect.deserializeBinaryFromReader);
  1862. msg.addCourseselectrs(value);
  1863. break;
  1864. default:
  1865. reader.skipField();
  1866. break;
  1867. }
  1868. }
  1869. return msg;
  1870. };
  1871. /**
  1872. * Serializes the message to binary data (in protobuf wire format).
  1873. * @return {!Uint8Array}
  1874. */
  1875. proto.to.v1.ToActInfoSelect.prototype.serializeBinary = function() {
  1876. var writer = new jspb.BinaryWriter();
  1877. proto.to.v1.ToActInfoSelect.serializeBinaryToWriter(this, writer);
  1878. return writer.getResultBuffer();
  1879. };
  1880. /**
  1881. * Serializes the given message to binary data (in protobuf wire
  1882. * format), writing to the given BinaryWriter.
  1883. * @param {!proto.to.v1.ToActInfoSelect} message
  1884. * @param {!jspb.BinaryWriter} writer
  1885. * @suppress {unusedLocalVariables} f is only used for nested messages
  1886. */
  1887. proto.to.v1.ToActInfoSelect.serializeBinaryToWriter = function(message, writer) {
  1888. var f = undefined;
  1889. f = message.getActid();
  1890. if (f !== 0) {
  1891. writer.writeInt32(
  1892. 1,
  1893. f
  1894. );
  1895. }
  1896. f = message.getActname();
  1897. if (f.length > 0) {
  1898. writer.writeString(
  1899. 2,
  1900. f
  1901. );
  1902. }
  1903. f = message.getCourseselectrsList();
  1904. if (f.length > 0) {
  1905. writer.writeRepeatedMessage(
  1906. 3,
  1907. f,
  1908. proto.to.v1.ToCourseInfoSelect.serializeBinaryToWriter
  1909. );
  1910. }
  1911. };
  1912. /**
  1913. * optional int32 actId = 1;
  1914. * @return {number}
  1915. */
  1916. proto.to.v1.ToActInfoSelect.prototype.getActid = function() {
  1917. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1918. };
  1919. /**
  1920. * @param {number} value
  1921. * @return {!proto.to.v1.ToActInfoSelect} returns this
  1922. */
  1923. proto.to.v1.ToActInfoSelect.prototype.setActid = function(value) {
  1924. return jspb.Message.setProto3IntField(this, 1, value);
  1925. };
  1926. /**
  1927. * optional string actName = 2;
  1928. * @return {string}
  1929. */
  1930. proto.to.v1.ToActInfoSelect.prototype.getActname = function() {
  1931. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1932. };
  1933. /**
  1934. * @param {string} value
  1935. * @return {!proto.to.v1.ToActInfoSelect} returns this
  1936. */
  1937. proto.to.v1.ToActInfoSelect.prototype.setActname = function(value) {
  1938. return jspb.Message.setProto3StringField(this, 2, value);
  1939. };
  1940. /**
  1941. * repeated ToCourseInfoSelect courseSelectRs = 3;
  1942. * @return {!Array<!proto.to.v1.ToCourseInfoSelect>}
  1943. */
  1944. proto.to.v1.ToActInfoSelect.prototype.getCourseselectrsList = function() {
  1945. return /** @type{!Array<!proto.to.v1.ToCourseInfoSelect>} */ (
  1946. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.ToCourseInfoSelect, 3));
  1947. };
  1948. /**
  1949. * @param {!Array<!proto.to.v1.ToCourseInfoSelect>} value
  1950. * @return {!proto.to.v1.ToActInfoSelect} returns this
  1951. */
  1952. proto.to.v1.ToActInfoSelect.prototype.setCourseselectrsList = function(value) {
  1953. return jspb.Message.setRepeatedWrapperField(this, 3, value);
  1954. };
  1955. /**
  1956. * @param {!proto.to.v1.ToCourseInfoSelect=} opt_value
  1957. * @param {number=} opt_index
  1958. * @return {!proto.to.v1.ToCourseInfoSelect}
  1959. */
  1960. proto.to.v1.ToActInfoSelect.prototype.addCourseselectrs = function(opt_value, opt_index) {
  1961. return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.to.v1.ToCourseInfoSelect, opt_index);
  1962. };
  1963. /**
  1964. * Clears the list making it empty but non-null.
  1965. * @return {!proto.to.v1.ToActInfoSelect} returns this
  1966. */
  1967. proto.to.v1.ToActInfoSelect.prototype.clearCourseselectrsList = function() {
  1968. return this.setCourseselectrsList([]);
  1969. };
  1970. if (jspb.Message.GENERATE_TO_OBJECT) {
  1971. /**
  1972. * Creates an object representation of this proto.
  1973. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1974. * Optional fields that are not set will be set to undefined.
  1975. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1976. * For the list of reserved names please see:
  1977. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1978. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1979. * JSPB instance for transitional soy proto support:
  1980. * http://goto/soy-param-migration
  1981. * @return {!Object}
  1982. */
  1983. proto.to.v1.ToCourseInfoSelect.prototype.toObject = function(opt_includeInstance) {
  1984. return proto.to.v1.ToCourseInfoSelect.toObject(opt_includeInstance, this);
  1985. };
  1986. /**
  1987. * Static version of the {@see toObject} method.
  1988. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1989. * the JSPB instance for transitional soy proto support:
  1990. * http://goto/soy-param-migration
  1991. * @param {!proto.to.v1.ToCourseInfoSelect} msg The msg instance to transform.
  1992. * @return {!Object}
  1993. * @suppress {unusedLocalVariables} f is only used for nested messages
  1994. */
  1995. proto.to.v1.ToCourseInfoSelect.toObject = function(includeInstance, msg) {
  1996. var f, obj = {
  1997. courseid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1998. coursename: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1999. courseusernum: jspb.Message.getFieldWithDefault(msg, 3, 0)
  2000. };
  2001. if (includeInstance) {
  2002. obj.$jspbMessageInstance = msg;
  2003. }
  2004. return obj;
  2005. };
  2006. }
  2007. /**
  2008. * Deserializes binary data (in protobuf wire format).
  2009. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2010. * @return {!proto.to.v1.ToCourseInfoSelect}
  2011. */
  2012. proto.to.v1.ToCourseInfoSelect.deserializeBinary = function(bytes) {
  2013. var reader = new jspb.BinaryReader(bytes);
  2014. var msg = new proto.to.v1.ToCourseInfoSelect;
  2015. return proto.to.v1.ToCourseInfoSelect.deserializeBinaryFromReader(msg, reader);
  2016. };
  2017. /**
  2018. * Deserializes binary data (in protobuf wire format) from the
  2019. * given reader into the given message object.
  2020. * @param {!proto.to.v1.ToCourseInfoSelect} msg The message object to deserialize into.
  2021. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2022. * @return {!proto.to.v1.ToCourseInfoSelect}
  2023. */
  2024. proto.to.v1.ToCourseInfoSelect.deserializeBinaryFromReader = function(msg, reader) {
  2025. while (reader.nextField()) {
  2026. if (reader.isEndGroup()) {
  2027. break;
  2028. }
  2029. var field = reader.getFieldNumber();
  2030. switch (field) {
  2031. case 1:
  2032. var value = /** @type {number} */ (reader.readInt32());
  2033. msg.setCourseid(value);
  2034. break;
  2035. case 2:
  2036. var value = /** @type {string} */ (reader.readString());
  2037. msg.setCoursename(value);
  2038. break;
  2039. case 3:
  2040. var value = /** @type {number} */ (reader.readInt32());
  2041. msg.setCourseusernum(value);
  2042. break;
  2043. default:
  2044. reader.skipField();
  2045. break;
  2046. }
  2047. }
  2048. return msg;
  2049. };
  2050. /**
  2051. * Serializes the message to binary data (in protobuf wire format).
  2052. * @return {!Uint8Array}
  2053. */
  2054. proto.to.v1.ToCourseInfoSelect.prototype.serializeBinary = function() {
  2055. var writer = new jspb.BinaryWriter();
  2056. proto.to.v1.ToCourseInfoSelect.serializeBinaryToWriter(this, writer);
  2057. return writer.getResultBuffer();
  2058. };
  2059. /**
  2060. * Serializes the given message to binary data (in protobuf wire
  2061. * format), writing to the given BinaryWriter.
  2062. * @param {!proto.to.v1.ToCourseInfoSelect} message
  2063. * @param {!jspb.BinaryWriter} writer
  2064. * @suppress {unusedLocalVariables} f is only used for nested messages
  2065. */
  2066. proto.to.v1.ToCourseInfoSelect.serializeBinaryToWriter = function(message, writer) {
  2067. var f = undefined;
  2068. f = message.getCourseid();
  2069. if (f !== 0) {
  2070. writer.writeInt32(
  2071. 1,
  2072. f
  2073. );
  2074. }
  2075. f = message.getCoursename();
  2076. if (f.length > 0) {
  2077. writer.writeString(
  2078. 2,
  2079. f
  2080. );
  2081. }
  2082. f = message.getCourseusernum();
  2083. if (f !== 0) {
  2084. writer.writeInt32(
  2085. 3,
  2086. f
  2087. );
  2088. }
  2089. };
  2090. /**
  2091. * optional int32 courseId = 1;
  2092. * @return {number}
  2093. */
  2094. proto.to.v1.ToCourseInfoSelect.prototype.getCourseid = function() {
  2095. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2096. };
  2097. /**
  2098. * @param {number} value
  2099. * @return {!proto.to.v1.ToCourseInfoSelect} returns this
  2100. */
  2101. proto.to.v1.ToCourseInfoSelect.prototype.setCourseid = function(value) {
  2102. return jspb.Message.setProto3IntField(this, 1, value);
  2103. };
  2104. /**
  2105. * optional string courseName = 2;
  2106. * @return {string}
  2107. */
  2108. proto.to.v1.ToCourseInfoSelect.prototype.getCoursename = function() {
  2109. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2110. };
  2111. /**
  2112. * @param {string} value
  2113. * @return {!proto.to.v1.ToCourseInfoSelect} returns this
  2114. */
  2115. proto.to.v1.ToCourseInfoSelect.prototype.setCoursename = function(value) {
  2116. return jspb.Message.setProto3StringField(this, 2, value);
  2117. };
  2118. /**
  2119. * optional int32 courseUserNum = 3;
  2120. * @return {number}
  2121. */
  2122. proto.to.v1.ToCourseInfoSelect.prototype.getCourseusernum = function() {
  2123. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2124. };
  2125. /**
  2126. * @param {number} value
  2127. * @return {!proto.to.v1.ToCourseInfoSelect} returns this
  2128. */
  2129. proto.to.v1.ToCourseInfoSelect.prototype.setCourseusernum = function(value) {
  2130. return jspb.Message.setProto3IntField(this, 3, value);
  2131. };
  2132. /**
  2133. * List of repeated fields within this message type.
  2134. * @private {!Array<number>}
  2135. * @const
  2136. */
  2137. proto.to.v1.ToActionListReply.repeatedFields_ = [1];
  2138. if (jspb.Message.GENERATE_TO_OBJECT) {
  2139. /**
  2140. * Creates an object representation of this proto.
  2141. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2142. * Optional fields that are not set will be set to undefined.
  2143. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2144. * For the list of reserved names please see:
  2145. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2146. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2147. * JSPB instance for transitional soy proto support:
  2148. * http://goto/soy-param-migration
  2149. * @return {!Object}
  2150. */
  2151. proto.to.v1.ToActionListReply.prototype.toObject = function(opt_includeInstance) {
  2152. return proto.to.v1.ToActionListReply.toObject(opt_includeInstance, this);
  2153. };
  2154. /**
  2155. * Static version of the {@see toObject} method.
  2156. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2157. * the JSPB instance for transitional soy proto support:
  2158. * http://goto/soy-param-migration
  2159. * @param {!proto.to.v1.ToActionListReply} msg The msg instance to transform.
  2160. * @return {!Object}
  2161. * @suppress {unusedLocalVariables} f is only used for nested messages
  2162. */
  2163. proto.to.v1.ToActionListReply.toObject = function(includeInstance, msg) {
  2164. var f, obj = {
  2165. listList: jspb.Message.toObjectList(msg.getListList(),
  2166. proto.to.v1.ToActionSimple.toObject, includeInstance)
  2167. };
  2168. if (includeInstance) {
  2169. obj.$jspbMessageInstance = msg;
  2170. }
  2171. return obj;
  2172. };
  2173. }
  2174. /**
  2175. * Deserializes binary data (in protobuf wire format).
  2176. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2177. * @return {!proto.to.v1.ToActionListReply}
  2178. */
  2179. proto.to.v1.ToActionListReply.deserializeBinary = function(bytes) {
  2180. var reader = new jspb.BinaryReader(bytes);
  2181. var msg = new proto.to.v1.ToActionListReply;
  2182. return proto.to.v1.ToActionListReply.deserializeBinaryFromReader(msg, reader);
  2183. };
  2184. /**
  2185. * Deserializes binary data (in protobuf wire format) from the
  2186. * given reader into the given message object.
  2187. * @param {!proto.to.v1.ToActionListReply} msg The message object to deserialize into.
  2188. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2189. * @return {!proto.to.v1.ToActionListReply}
  2190. */
  2191. proto.to.v1.ToActionListReply.deserializeBinaryFromReader = function(msg, reader) {
  2192. while (reader.nextField()) {
  2193. if (reader.isEndGroup()) {
  2194. break;
  2195. }
  2196. var field = reader.getFieldNumber();
  2197. switch (field) {
  2198. case 1:
  2199. var value = new proto.to.v1.ToActionSimple;
  2200. reader.readMessage(value,proto.to.v1.ToActionSimple.deserializeBinaryFromReader);
  2201. msg.addList(value);
  2202. break;
  2203. default:
  2204. reader.skipField();
  2205. break;
  2206. }
  2207. }
  2208. return msg;
  2209. };
  2210. /**
  2211. * Serializes the message to binary data (in protobuf wire format).
  2212. * @return {!Uint8Array}
  2213. */
  2214. proto.to.v1.ToActionListReply.prototype.serializeBinary = function() {
  2215. var writer = new jspb.BinaryWriter();
  2216. proto.to.v1.ToActionListReply.serializeBinaryToWriter(this, writer);
  2217. return writer.getResultBuffer();
  2218. };
  2219. /**
  2220. * Serializes the given message to binary data (in protobuf wire
  2221. * format), writing to the given BinaryWriter.
  2222. * @param {!proto.to.v1.ToActionListReply} message
  2223. * @param {!jspb.BinaryWriter} writer
  2224. * @suppress {unusedLocalVariables} f is only used for nested messages
  2225. */
  2226. proto.to.v1.ToActionListReply.serializeBinaryToWriter = function(message, writer) {
  2227. var f = undefined;
  2228. f = message.getListList();
  2229. if (f.length > 0) {
  2230. writer.writeRepeatedMessage(
  2231. 1,
  2232. f,
  2233. proto.to.v1.ToActionSimple.serializeBinaryToWriter
  2234. );
  2235. }
  2236. };
  2237. /**
  2238. * repeated ToActionSimple list = 1;
  2239. * @return {!Array<!proto.to.v1.ToActionSimple>}
  2240. */
  2241. proto.to.v1.ToActionListReply.prototype.getListList = function() {
  2242. return /** @type{!Array<!proto.to.v1.ToActionSimple>} */ (
  2243. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.ToActionSimple, 1));
  2244. };
  2245. /**
  2246. * @param {!Array<!proto.to.v1.ToActionSimple>} value
  2247. * @return {!proto.to.v1.ToActionListReply} returns this
  2248. */
  2249. proto.to.v1.ToActionListReply.prototype.setListList = function(value) {
  2250. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  2251. };
  2252. /**
  2253. * @param {!proto.to.v1.ToActionSimple=} opt_value
  2254. * @param {number=} opt_index
  2255. * @return {!proto.to.v1.ToActionSimple}
  2256. */
  2257. proto.to.v1.ToActionListReply.prototype.addList = function(opt_value, opt_index) {
  2258. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.to.v1.ToActionSimple, opt_index);
  2259. };
  2260. /**
  2261. * Clears the list making it empty but non-null.
  2262. * @return {!proto.to.v1.ToActionListReply} returns this
  2263. */
  2264. proto.to.v1.ToActionListReply.prototype.clearListList = function() {
  2265. return this.setListList([]);
  2266. };
  2267. if (jspb.Message.GENERATE_TO_OBJECT) {
  2268. /**
  2269. * Creates an object representation of this proto.
  2270. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2271. * Optional fields that are not set will be set to undefined.
  2272. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2273. * For the list of reserved names please see:
  2274. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2275. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2276. * JSPB instance for transitional soy proto support:
  2277. * http://goto/soy-param-migration
  2278. * @return {!Object}
  2279. */
  2280. proto.to.v1.ToActionSimple.prototype.toObject = function(opt_includeInstance) {
  2281. return proto.to.v1.ToActionSimple.toObject(opt_includeInstance, this);
  2282. };
  2283. /**
  2284. * Static version of the {@see toObject} method.
  2285. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2286. * the JSPB instance for transitional soy proto support:
  2287. * http://goto/soy-param-migration
  2288. * @param {!proto.to.v1.ToActionSimple} msg The msg instance to transform.
  2289. * @return {!Object}
  2290. * @suppress {unusedLocalVariables} f is only used for nested messages
  2291. */
  2292. proto.to.v1.ToActionSimple.toObject = function(includeInstance, msg) {
  2293. var f, obj = {
  2294. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2295. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2296. usernum: jspb.Message.getFieldWithDefault(msg, 3, 0)
  2297. };
  2298. if (includeInstance) {
  2299. obj.$jspbMessageInstance = msg;
  2300. }
  2301. return obj;
  2302. };
  2303. }
  2304. /**
  2305. * Deserializes binary data (in protobuf wire format).
  2306. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2307. * @return {!proto.to.v1.ToActionSimple}
  2308. */
  2309. proto.to.v1.ToActionSimple.deserializeBinary = function(bytes) {
  2310. var reader = new jspb.BinaryReader(bytes);
  2311. var msg = new proto.to.v1.ToActionSimple;
  2312. return proto.to.v1.ToActionSimple.deserializeBinaryFromReader(msg, reader);
  2313. };
  2314. /**
  2315. * Deserializes binary data (in protobuf wire format) from the
  2316. * given reader into the given message object.
  2317. * @param {!proto.to.v1.ToActionSimple} msg The message object to deserialize into.
  2318. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2319. * @return {!proto.to.v1.ToActionSimple}
  2320. */
  2321. proto.to.v1.ToActionSimple.deserializeBinaryFromReader = function(msg, reader) {
  2322. while (reader.nextField()) {
  2323. if (reader.isEndGroup()) {
  2324. break;
  2325. }
  2326. var field = reader.getFieldNumber();
  2327. switch (field) {
  2328. case 1:
  2329. var value = /** @type {number} */ (reader.readInt32());
  2330. msg.setId(value);
  2331. break;
  2332. case 2:
  2333. var value = /** @type {string} */ (reader.readString());
  2334. msg.setName(value);
  2335. break;
  2336. case 3:
  2337. var value = /** @type {number} */ (reader.readInt32());
  2338. msg.setUsernum(value);
  2339. break;
  2340. default:
  2341. reader.skipField();
  2342. break;
  2343. }
  2344. }
  2345. return msg;
  2346. };
  2347. /**
  2348. * Serializes the message to binary data (in protobuf wire format).
  2349. * @return {!Uint8Array}
  2350. */
  2351. proto.to.v1.ToActionSimple.prototype.serializeBinary = function() {
  2352. var writer = new jspb.BinaryWriter();
  2353. proto.to.v1.ToActionSimple.serializeBinaryToWriter(this, writer);
  2354. return writer.getResultBuffer();
  2355. };
  2356. /**
  2357. * Serializes the given message to binary data (in protobuf wire
  2358. * format), writing to the given BinaryWriter.
  2359. * @param {!proto.to.v1.ToActionSimple} message
  2360. * @param {!jspb.BinaryWriter} writer
  2361. * @suppress {unusedLocalVariables} f is only used for nested messages
  2362. */
  2363. proto.to.v1.ToActionSimple.serializeBinaryToWriter = function(message, writer) {
  2364. var f = undefined;
  2365. f = message.getId();
  2366. if (f !== 0) {
  2367. writer.writeInt32(
  2368. 1,
  2369. f
  2370. );
  2371. }
  2372. f = message.getName();
  2373. if (f.length > 0) {
  2374. writer.writeString(
  2375. 2,
  2376. f
  2377. );
  2378. }
  2379. f = message.getUsernum();
  2380. if (f !== 0) {
  2381. writer.writeInt32(
  2382. 3,
  2383. f
  2384. );
  2385. }
  2386. };
  2387. /**
  2388. * optional int32 id = 1;
  2389. * @return {number}
  2390. */
  2391. proto.to.v1.ToActionSimple.prototype.getId = function() {
  2392. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2393. };
  2394. /**
  2395. * @param {number} value
  2396. * @return {!proto.to.v1.ToActionSimple} returns this
  2397. */
  2398. proto.to.v1.ToActionSimple.prototype.setId = function(value) {
  2399. return jspb.Message.setProto3IntField(this, 1, value);
  2400. };
  2401. /**
  2402. * optional string name = 2;
  2403. * @return {string}
  2404. */
  2405. proto.to.v1.ToActionSimple.prototype.getName = function() {
  2406. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2407. };
  2408. /**
  2409. * @param {string} value
  2410. * @return {!proto.to.v1.ToActionSimple} returns this
  2411. */
  2412. proto.to.v1.ToActionSimple.prototype.setName = function(value) {
  2413. return jspb.Message.setProto3StringField(this, 2, value);
  2414. };
  2415. /**
  2416. * optional int32 userNum = 3;
  2417. * @return {number}
  2418. */
  2419. proto.to.v1.ToActionSimple.prototype.getUsernum = function() {
  2420. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2421. };
  2422. /**
  2423. * @param {number} value
  2424. * @return {!proto.to.v1.ToActionSimple} returns this
  2425. */
  2426. proto.to.v1.ToActionSimple.prototype.setUsernum = function(value) {
  2427. return jspb.Message.setProto3IntField(this, 3, value);
  2428. };
  2429. /**
  2430. * List of repeated fields within this message type.
  2431. * @private {!Array<number>}
  2432. * @const
  2433. */
  2434. proto.to.v1.ToActionDetailReply.repeatedFields_ = [9];
  2435. if (jspb.Message.GENERATE_TO_OBJECT) {
  2436. /**
  2437. * Creates an object representation of this proto.
  2438. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2439. * Optional fields that are not set will be set to undefined.
  2440. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2441. * For the list of reserved names please see:
  2442. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2443. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2444. * JSPB instance for transitional soy proto support:
  2445. * http://goto/soy-param-migration
  2446. * @return {!Object}
  2447. */
  2448. proto.to.v1.ToActionDetailReply.prototype.toObject = function(opt_includeInstance) {
  2449. return proto.to.v1.ToActionDetailReply.toObject(opt_includeInstance, this);
  2450. };
  2451. /**
  2452. * Static version of the {@see toObject} method.
  2453. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2454. * the JSPB instance for transitional soy proto support:
  2455. * http://goto/soy-param-migration
  2456. * @param {!proto.to.v1.ToActionDetailReply} msg The msg instance to transform.
  2457. * @return {!Object}
  2458. * @suppress {unusedLocalVariables} f is only used for nested messages
  2459. */
  2460. proto.to.v1.ToActionDetailReply.toObject = function(includeInstance, msg) {
  2461. var f, obj = {
  2462. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2463. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2464. content: jspb.Message.getFieldWithDefault(msg, 3, ""),
  2465. lockup: jspb.Message.getFieldWithDefault(msg, 4, 0),
  2466. forcedendtime: jspb.Message.getFieldWithDefault(msg, 5, 0),
  2467. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 6, 0),
  2468. maxrange: jspb.Message.getFieldWithDefault(msg, 7, 0),
  2469. mapinfo: (f = msg.getMapinfo()) && proto.to.v1.ToMapInfo.toObject(includeInstance, f),
  2470. routesList: jspb.Message.toObjectList(msg.getRoutesList(),
  2471. base_pb.CourseInfo.toObject, includeInstance)
  2472. };
  2473. if (includeInstance) {
  2474. obj.$jspbMessageInstance = msg;
  2475. }
  2476. return obj;
  2477. };
  2478. }
  2479. /**
  2480. * Deserializes binary data (in protobuf wire format).
  2481. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2482. * @return {!proto.to.v1.ToActionDetailReply}
  2483. */
  2484. proto.to.v1.ToActionDetailReply.deserializeBinary = function(bytes) {
  2485. var reader = new jspb.BinaryReader(bytes);
  2486. var msg = new proto.to.v1.ToActionDetailReply;
  2487. return proto.to.v1.ToActionDetailReply.deserializeBinaryFromReader(msg, reader);
  2488. };
  2489. /**
  2490. * Deserializes binary data (in protobuf wire format) from the
  2491. * given reader into the given message object.
  2492. * @param {!proto.to.v1.ToActionDetailReply} msg The message object to deserialize into.
  2493. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2494. * @return {!proto.to.v1.ToActionDetailReply}
  2495. */
  2496. proto.to.v1.ToActionDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  2497. while (reader.nextField()) {
  2498. if (reader.isEndGroup()) {
  2499. break;
  2500. }
  2501. var field = reader.getFieldNumber();
  2502. switch (field) {
  2503. case 1:
  2504. var value = /** @type {number} */ (reader.readInt32());
  2505. msg.setId(value);
  2506. break;
  2507. case 2:
  2508. var value = /** @type {string} */ (reader.readString());
  2509. msg.setName(value);
  2510. break;
  2511. case 3:
  2512. var value = /** @type {string} */ (reader.readString());
  2513. msg.setContent(value);
  2514. break;
  2515. case 4:
  2516. var value = /** @type {number} */ (reader.readInt32());
  2517. msg.setLockup(value);
  2518. break;
  2519. case 5:
  2520. var value = /** @type {number} */ (reader.readInt32());
  2521. msg.setForcedendtime(value);
  2522. break;
  2523. case 6:
  2524. var value = /** @type {number} */ (reader.readInt32());
  2525. msg.setTotalcontrolnum(value);
  2526. break;
  2527. case 7:
  2528. var value = /** @type {number} */ (reader.readInt32());
  2529. msg.setMaxrange(value);
  2530. break;
  2531. case 8:
  2532. var value = new proto.to.v1.ToMapInfo;
  2533. reader.readMessage(value,proto.to.v1.ToMapInfo.deserializeBinaryFromReader);
  2534. msg.setMapinfo(value);
  2535. break;
  2536. case 9:
  2537. var value = new base_pb.CourseInfo;
  2538. reader.readMessage(value,base_pb.CourseInfo.deserializeBinaryFromReader);
  2539. msg.addRoutes(value);
  2540. break;
  2541. default:
  2542. reader.skipField();
  2543. break;
  2544. }
  2545. }
  2546. return msg;
  2547. };
  2548. /**
  2549. * Serializes the message to binary data (in protobuf wire format).
  2550. * @return {!Uint8Array}
  2551. */
  2552. proto.to.v1.ToActionDetailReply.prototype.serializeBinary = function() {
  2553. var writer = new jspb.BinaryWriter();
  2554. proto.to.v1.ToActionDetailReply.serializeBinaryToWriter(this, writer);
  2555. return writer.getResultBuffer();
  2556. };
  2557. /**
  2558. * Serializes the given message to binary data (in protobuf wire
  2559. * format), writing to the given BinaryWriter.
  2560. * @param {!proto.to.v1.ToActionDetailReply} message
  2561. * @param {!jspb.BinaryWriter} writer
  2562. * @suppress {unusedLocalVariables} f is only used for nested messages
  2563. */
  2564. proto.to.v1.ToActionDetailReply.serializeBinaryToWriter = function(message, writer) {
  2565. var f = undefined;
  2566. f = message.getId();
  2567. if (f !== 0) {
  2568. writer.writeInt32(
  2569. 1,
  2570. f
  2571. );
  2572. }
  2573. f = message.getName();
  2574. if (f.length > 0) {
  2575. writer.writeString(
  2576. 2,
  2577. f
  2578. );
  2579. }
  2580. f = message.getContent();
  2581. if (f.length > 0) {
  2582. writer.writeString(
  2583. 3,
  2584. f
  2585. );
  2586. }
  2587. f = message.getLockup();
  2588. if (f !== 0) {
  2589. writer.writeInt32(
  2590. 4,
  2591. f
  2592. );
  2593. }
  2594. f = message.getForcedendtime();
  2595. if (f !== 0) {
  2596. writer.writeInt32(
  2597. 5,
  2598. f
  2599. );
  2600. }
  2601. f = message.getTotalcontrolnum();
  2602. if (f !== 0) {
  2603. writer.writeInt32(
  2604. 6,
  2605. f
  2606. );
  2607. }
  2608. f = message.getMaxrange();
  2609. if (f !== 0) {
  2610. writer.writeInt32(
  2611. 7,
  2612. f
  2613. );
  2614. }
  2615. f = message.getMapinfo();
  2616. if (f != null) {
  2617. writer.writeMessage(
  2618. 8,
  2619. f,
  2620. proto.to.v1.ToMapInfo.serializeBinaryToWriter
  2621. );
  2622. }
  2623. f = message.getRoutesList();
  2624. if (f.length > 0) {
  2625. writer.writeRepeatedMessage(
  2626. 9,
  2627. f,
  2628. base_pb.CourseInfo.serializeBinaryToWriter
  2629. );
  2630. }
  2631. };
  2632. /**
  2633. * optional int32 id = 1;
  2634. * @return {number}
  2635. */
  2636. proto.to.v1.ToActionDetailReply.prototype.getId = function() {
  2637. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2638. };
  2639. /**
  2640. * @param {number} value
  2641. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2642. */
  2643. proto.to.v1.ToActionDetailReply.prototype.setId = function(value) {
  2644. return jspb.Message.setProto3IntField(this, 1, value);
  2645. };
  2646. /**
  2647. * optional string name = 2;
  2648. * @return {string}
  2649. */
  2650. proto.to.v1.ToActionDetailReply.prototype.getName = function() {
  2651. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2652. };
  2653. /**
  2654. * @param {string} value
  2655. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2656. */
  2657. proto.to.v1.ToActionDetailReply.prototype.setName = function(value) {
  2658. return jspb.Message.setProto3StringField(this, 2, value);
  2659. };
  2660. /**
  2661. * optional string content = 3;
  2662. * @return {string}
  2663. */
  2664. proto.to.v1.ToActionDetailReply.prototype.getContent = function() {
  2665. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  2666. };
  2667. /**
  2668. * @param {string} value
  2669. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2670. */
  2671. proto.to.v1.ToActionDetailReply.prototype.setContent = function(value) {
  2672. return jspb.Message.setProto3StringField(this, 3, value);
  2673. };
  2674. /**
  2675. * optional int32 lockup = 4;
  2676. * @return {number}
  2677. */
  2678. proto.to.v1.ToActionDetailReply.prototype.getLockup = function() {
  2679. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  2680. };
  2681. /**
  2682. * @param {number} value
  2683. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2684. */
  2685. proto.to.v1.ToActionDetailReply.prototype.setLockup = function(value) {
  2686. return jspb.Message.setProto3IntField(this, 4, value);
  2687. };
  2688. /**
  2689. * optional int32 forcedEndTime = 5;
  2690. * @return {number}
  2691. */
  2692. proto.to.v1.ToActionDetailReply.prototype.getForcedendtime = function() {
  2693. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  2694. };
  2695. /**
  2696. * @param {number} value
  2697. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2698. */
  2699. proto.to.v1.ToActionDetailReply.prototype.setForcedendtime = function(value) {
  2700. return jspb.Message.setProto3IntField(this, 5, value);
  2701. };
  2702. /**
  2703. * optional int32 totalControlNum = 6;
  2704. * @return {number}
  2705. */
  2706. proto.to.v1.ToActionDetailReply.prototype.getTotalcontrolnum = function() {
  2707. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  2708. };
  2709. /**
  2710. * @param {number} value
  2711. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2712. */
  2713. proto.to.v1.ToActionDetailReply.prototype.setTotalcontrolnum = function(value) {
  2714. return jspb.Message.setProto3IntField(this, 6, value);
  2715. };
  2716. /**
  2717. * optional int32 maxRange = 7;
  2718. * @return {number}
  2719. */
  2720. proto.to.v1.ToActionDetailReply.prototype.getMaxrange = function() {
  2721. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  2722. };
  2723. /**
  2724. * @param {number} value
  2725. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2726. */
  2727. proto.to.v1.ToActionDetailReply.prototype.setMaxrange = function(value) {
  2728. return jspb.Message.setProto3IntField(this, 7, value);
  2729. };
  2730. /**
  2731. * optional ToMapInfo mapInfo = 8;
  2732. * @return {?proto.to.v1.ToMapInfo}
  2733. */
  2734. proto.to.v1.ToActionDetailReply.prototype.getMapinfo = function() {
  2735. return /** @type{?proto.to.v1.ToMapInfo} */ (
  2736. jspb.Message.getWrapperField(this, proto.to.v1.ToMapInfo, 8));
  2737. };
  2738. /**
  2739. * @param {?proto.to.v1.ToMapInfo|undefined} value
  2740. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2741. */
  2742. proto.to.v1.ToActionDetailReply.prototype.setMapinfo = function(value) {
  2743. return jspb.Message.setWrapperField(this, 8, value);
  2744. };
  2745. /**
  2746. * Clears the message field making it undefined.
  2747. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2748. */
  2749. proto.to.v1.ToActionDetailReply.prototype.clearMapinfo = function() {
  2750. return this.setMapinfo(undefined);
  2751. };
  2752. /**
  2753. * Returns whether this field is set.
  2754. * @return {boolean}
  2755. */
  2756. proto.to.v1.ToActionDetailReply.prototype.hasMapinfo = function() {
  2757. return jspb.Message.getField(this, 8) != null;
  2758. };
  2759. /**
  2760. * repeated base.v1.CourseInfo routes = 9;
  2761. * @return {!Array<!proto.base.v1.CourseInfo>}
  2762. */
  2763. proto.to.v1.ToActionDetailReply.prototype.getRoutesList = function() {
  2764. return /** @type{!Array<!proto.base.v1.CourseInfo>} */ (
  2765. jspb.Message.getRepeatedWrapperField(this, base_pb.CourseInfo, 9));
  2766. };
  2767. /**
  2768. * @param {!Array<!proto.base.v1.CourseInfo>} value
  2769. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2770. */
  2771. proto.to.v1.ToActionDetailReply.prototype.setRoutesList = function(value) {
  2772. return jspb.Message.setRepeatedWrapperField(this, 9, value);
  2773. };
  2774. /**
  2775. * @param {!proto.base.v1.CourseInfo=} opt_value
  2776. * @param {number=} opt_index
  2777. * @return {!proto.base.v1.CourseInfo}
  2778. */
  2779. proto.to.v1.ToActionDetailReply.prototype.addRoutes = function(opt_value, opt_index) {
  2780. return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.base.v1.CourseInfo, opt_index);
  2781. };
  2782. /**
  2783. * Clears the list making it empty but non-null.
  2784. * @return {!proto.to.v1.ToActionDetailReply} returns this
  2785. */
  2786. proto.to.v1.ToActionDetailReply.prototype.clearRoutesList = function() {
  2787. return this.setRoutesList([]);
  2788. };
  2789. if (jspb.Message.GENERATE_TO_OBJECT) {
  2790. /**
  2791. * Creates an object representation of this proto.
  2792. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2793. * Optional fields that are not set will be set to undefined.
  2794. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2795. * For the list of reserved names please see:
  2796. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2797. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2798. * JSPB instance for transitional soy proto support:
  2799. * http://goto/soy-param-migration
  2800. * @return {!Object}
  2801. */
  2802. proto.to.v1.ToMapInfo.prototype.toObject = function(opt_includeInstance) {
  2803. return proto.to.v1.ToMapInfo.toObject(opt_includeInstance, this);
  2804. };
  2805. /**
  2806. * Static version of the {@see toObject} method.
  2807. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2808. * the JSPB instance for transitional soy proto support:
  2809. * http://goto/soy-param-migration
  2810. * @param {!proto.to.v1.ToMapInfo} msg The msg instance to transform.
  2811. * @return {!Object}
  2812. * @suppress {unusedLocalVariables} f is only used for nested messages
  2813. */
  2814. proto.to.v1.ToMapInfo.toObject = function(includeInstance, msg) {
  2815. var f, obj = {
  2816. mapid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2817. mapname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2818. zipimage: (f = msg.getZipimage()) && base_pb.NetImage.toObject(includeInstance, f),
  2819. centerlongitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
  2820. centerlatitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
  2821. defscale: jspb.Message.getFieldWithDefault(msg, 6, 0),
  2822. mapurl: jspb.Message.getFieldWithDefault(msg, 7, ""),
  2823. mapmd5: jspb.Message.getFieldWithDefault(msg, 8, "")
  2824. };
  2825. if (includeInstance) {
  2826. obj.$jspbMessageInstance = msg;
  2827. }
  2828. return obj;
  2829. };
  2830. }
  2831. /**
  2832. * Deserializes binary data (in protobuf wire format).
  2833. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2834. * @return {!proto.to.v1.ToMapInfo}
  2835. */
  2836. proto.to.v1.ToMapInfo.deserializeBinary = function(bytes) {
  2837. var reader = new jspb.BinaryReader(bytes);
  2838. var msg = new proto.to.v1.ToMapInfo;
  2839. return proto.to.v1.ToMapInfo.deserializeBinaryFromReader(msg, reader);
  2840. };
  2841. /**
  2842. * Deserializes binary data (in protobuf wire format) from the
  2843. * given reader into the given message object.
  2844. * @param {!proto.to.v1.ToMapInfo} msg The message object to deserialize into.
  2845. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2846. * @return {!proto.to.v1.ToMapInfo}
  2847. */
  2848. proto.to.v1.ToMapInfo.deserializeBinaryFromReader = function(msg, reader) {
  2849. while (reader.nextField()) {
  2850. if (reader.isEndGroup()) {
  2851. break;
  2852. }
  2853. var field = reader.getFieldNumber();
  2854. switch (field) {
  2855. case 1:
  2856. var value = /** @type {number} */ (reader.readInt32());
  2857. msg.setMapid(value);
  2858. break;
  2859. case 2:
  2860. var value = /** @type {string} */ (reader.readString());
  2861. msg.setMapname(value);
  2862. break;
  2863. case 3:
  2864. var value = new base_pb.NetImage;
  2865. reader.readMessage(value,base_pb.NetImage.deserializeBinaryFromReader);
  2866. msg.setZipimage(value);
  2867. break;
  2868. case 4:
  2869. var value = /** @type {number} */ (reader.readDouble());
  2870. msg.setCenterlongitude(value);
  2871. break;
  2872. case 5:
  2873. var value = /** @type {number} */ (reader.readDouble());
  2874. msg.setCenterlatitude(value);
  2875. break;
  2876. case 6:
  2877. var value = /** @type {number} */ (reader.readInt32());
  2878. msg.setDefscale(value);
  2879. break;
  2880. case 7:
  2881. var value = /** @type {string} */ (reader.readString());
  2882. msg.setMapurl(value);
  2883. break;
  2884. case 8:
  2885. var value = /** @type {string} */ (reader.readString());
  2886. msg.setMapmd5(value);
  2887. break;
  2888. default:
  2889. reader.skipField();
  2890. break;
  2891. }
  2892. }
  2893. return msg;
  2894. };
  2895. /**
  2896. * Serializes the message to binary data (in protobuf wire format).
  2897. * @return {!Uint8Array}
  2898. */
  2899. proto.to.v1.ToMapInfo.prototype.serializeBinary = function() {
  2900. var writer = new jspb.BinaryWriter();
  2901. proto.to.v1.ToMapInfo.serializeBinaryToWriter(this, writer);
  2902. return writer.getResultBuffer();
  2903. };
  2904. /**
  2905. * Serializes the given message to binary data (in protobuf wire
  2906. * format), writing to the given BinaryWriter.
  2907. * @param {!proto.to.v1.ToMapInfo} message
  2908. * @param {!jspb.BinaryWriter} writer
  2909. * @suppress {unusedLocalVariables} f is only used for nested messages
  2910. */
  2911. proto.to.v1.ToMapInfo.serializeBinaryToWriter = function(message, writer) {
  2912. var f = undefined;
  2913. f = message.getMapid();
  2914. if (f !== 0) {
  2915. writer.writeInt32(
  2916. 1,
  2917. f
  2918. );
  2919. }
  2920. f = message.getMapname();
  2921. if (f.length > 0) {
  2922. writer.writeString(
  2923. 2,
  2924. f
  2925. );
  2926. }
  2927. f = message.getZipimage();
  2928. if (f != null) {
  2929. writer.writeMessage(
  2930. 3,
  2931. f,
  2932. base_pb.NetImage.serializeBinaryToWriter
  2933. );
  2934. }
  2935. f = message.getCenterlongitude();
  2936. if (f !== 0.0) {
  2937. writer.writeDouble(
  2938. 4,
  2939. f
  2940. );
  2941. }
  2942. f = message.getCenterlatitude();
  2943. if (f !== 0.0) {
  2944. writer.writeDouble(
  2945. 5,
  2946. f
  2947. );
  2948. }
  2949. f = message.getDefscale();
  2950. if (f !== 0) {
  2951. writer.writeInt32(
  2952. 6,
  2953. f
  2954. );
  2955. }
  2956. f = message.getMapurl();
  2957. if (f.length > 0) {
  2958. writer.writeString(
  2959. 7,
  2960. f
  2961. );
  2962. }
  2963. f = message.getMapmd5();
  2964. if (f.length > 0) {
  2965. writer.writeString(
  2966. 8,
  2967. f
  2968. );
  2969. }
  2970. };
  2971. /**
  2972. * optional int32 mapId = 1;
  2973. * @return {number}
  2974. */
  2975. proto.to.v1.ToMapInfo.prototype.getMapid = function() {
  2976. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2977. };
  2978. /**
  2979. * @param {number} value
  2980. * @return {!proto.to.v1.ToMapInfo} returns this
  2981. */
  2982. proto.to.v1.ToMapInfo.prototype.setMapid = function(value) {
  2983. return jspb.Message.setProto3IntField(this, 1, value);
  2984. };
  2985. /**
  2986. * optional string mapName = 2;
  2987. * @return {string}
  2988. */
  2989. proto.to.v1.ToMapInfo.prototype.getMapname = function() {
  2990. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2991. };
  2992. /**
  2993. * @param {string} value
  2994. * @return {!proto.to.v1.ToMapInfo} returns this
  2995. */
  2996. proto.to.v1.ToMapInfo.prototype.setMapname = function(value) {
  2997. return jspb.Message.setProto3StringField(this, 2, value);
  2998. };
  2999. /**
  3000. * optional base.v1.NetImage zipImage = 3;
  3001. * @return {?proto.base.v1.NetImage}
  3002. */
  3003. proto.to.v1.ToMapInfo.prototype.getZipimage = function() {
  3004. return /** @type{?proto.base.v1.NetImage} */ (
  3005. jspb.Message.getWrapperField(this, base_pb.NetImage, 3));
  3006. };
  3007. /**
  3008. * @param {?proto.base.v1.NetImage|undefined} value
  3009. * @return {!proto.to.v1.ToMapInfo} returns this
  3010. */
  3011. proto.to.v1.ToMapInfo.prototype.setZipimage = function(value) {
  3012. return jspb.Message.setWrapperField(this, 3, value);
  3013. };
  3014. /**
  3015. * Clears the message field making it undefined.
  3016. * @return {!proto.to.v1.ToMapInfo} returns this
  3017. */
  3018. proto.to.v1.ToMapInfo.prototype.clearZipimage = function() {
  3019. return this.setZipimage(undefined);
  3020. };
  3021. /**
  3022. * Returns whether this field is set.
  3023. * @return {boolean}
  3024. */
  3025. proto.to.v1.ToMapInfo.prototype.hasZipimage = function() {
  3026. return jspb.Message.getField(this, 3) != null;
  3027. };
  3028. /**
  3029. * optional double CenterLongitude = 4;
  3030. * @return {number}
  3031. */
  3032. proto.to.v1.ToMapInfo.prototype.getCenterlongitude = function() {
  3033. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
  3034. };
  3035. /**
  3036. * @param {number} value
  3037. * @return {!proto.to.v1.ToMapInfo} returns this
  3038. */
  3039. proto.to.v1.ToMapInfo.prototype.setCenterlongitude = function(value) {
  3040. return jspb.Message.setProto3FloatField(this, 4, value);
  3041. };
  3042. /**
  3043. * optional double CenterLatitude = 5;
  3044. * @return {number}
  3045. */
  3046. proto.to.v1.ToMapInfo.prototype.getCenterlatitude = function() {
  3047. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
  3048. };
  3049. /**
  3050. * @param {number} value
  3051. * @return {!proto.to.v1.ToMapInfo} returns this
  3052. */
  3053. proto.to.v1.ToMapInfo.prototype.setCenterlatitude = function(value) {
  3054. return jspb.Message.setProto3FloatField(this, 5, value);
  3055. };
  3056. /**
  3057. * optional int32 DefScale = 6;
  3058. * @return {number}
  3059. */
  3060. proto.to.v1.ToMapInfo.prototype.getDefscale = function() {
  3061. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  3062. };
  3063. /**
  3064. * @param {number} value
  3065. * @return {!proto.to.v1.ToMapInfo} returns this
  3066. */
  3067. proto.to.v1.ToMapInfo.prototype.setDefscale = function(value) {
  3068. return jspb.Message.setProto3IntField(this, 6, value);
  3069. };
  3070. /**
  3071. * optional string mapUrl = 7;
  3072. * @return {string}
  3073. */
  3074. proto.to.v1.ToMapInfo.prototype.getMapurl = function() {
  3075. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  3076. };
  3077. /**
  3078. * @param {string} value
  3079. * @return {!proto.to.v1.ToMapInfo} returns this
  3080. */
  3081. proto.to.v1.ToMapInfo.prototype.setMapurl = function(value) {
  3082. return jspb.Message.setProto3StringField(this, 7, value);
  3083. };
  3084. /**
  3085. * optional string mapMd5 = 8;
  3086. * @return {string}
  3087. */
  3088. proto.to.v1.ToMapInfo.prototype.getMapmd5 = function() {
  3089. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
  3090. };
  3091. /**
  3092. * @param {string} value
  3093. * @return {!proto.to.v1.ToMapInfo} returns this
  3094. */
  3095. proto.to.v1.ToMapInfo.prototype.setMapmd5 = function(value) {
  3096. return jspb.Message.setProto3StringField(this, 8, value);
  3097. };
  3098. /**
  3099. * List of repeated fields within this message type.
  3100. * @private {!Array<number>}
  3101. * @const
  3102. */
  3103. proto.to.v1.ToActionUsersDetailReply.repeatedFields_ = [1];
  3104. if (jspb.Message.GENERATE_TO_OBJECT) {
  3105. /**
  3106. * Creates an object representation of this proto.
  3107. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3108. * Optional fields that are not set will be set to undefined.
  3109. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3110. * For the list of reserved names please see:
  3111. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3112. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3113. * JSPB instance for transitional soy proto support:
  3114. * http://goto/soy-param-migration
  3115. * @return {!Object}
  3116. */
  3117. proto.to.v1.ToActionUsersDetailReply.prototype.toObject = function(opt_includeInstance) {
  3118. return proto.to.v1.ToActionUsersDetailReply.toObject(opt_includeInstance, this);
  3119. };
  3120. /**
  3121. * Static version of the {@see toObject} method.
  3122. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3123. * the JSPB instance for transitional soy proto support:
  3124. * http://goto/soy-param-migration
  3125. * @param {!proto.to.v1.ToActionUsersDetailReply} msg The msg instance to transform.
  3126. * @return {!Object}
  3127. * @suppress {unusedLocalVariables} f is only used for nested messages
  3128. */
  3129. proto.to.v1.ToActionUsersDetailReply.toObject = function(includeInstance, msg) {
  3130. var f, obj = {
  3131. usersList: jspb.Message.toObjectList(msg.getUsersList(),
  3132. proto.to.v1.UserInGameInfo.toObject, includeInstance)
  3133. };
  3134. if (includeInstance) {
  3135. obj.$jspbMessageInstance = msg;
  3136. }
  3137. return obj;
  3138. };
  3139. }
  3140. /**
  3141. * Deserializes binary data (in protobuf wire format).
  3142. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3143. * @return {!proto.to.v1.ToActionUsersDetailReply}
  3144. */
  3145. proto.to.v1.ToActionUsersDetailReply.deserializeBinary = function(bytes) {
  3146. var reader = new jspb.BinaryReader(bytes);
  3147. var msg = new proto.to.v1.ToActionUsersDetailReply;
  3148. return proto.to.v1.ToActionUsersDetailReply.deserializeBinaryFromReader(msg, reader);
  3149. };
  3150. /**
  3151. * Deserializes binary data (in protobuf wire format) from the
  3152. * given reader into the given message object.
  3153. * @param {!proto.to.v1.ToActionUsersDetailReply} msg The message object to deserialize into.
  3154. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3155. * @return {!proto.to.v1.ToActionUsersDetailReply}
  3156. */
  3157. proto.to.v1.ToActionUsersDetailReply.deserializeBinaryFromReader = function(msg, reader) {
  3158. while (reader.nextField()) {
  3159. if (reader.isEndGroup()) {
  3160. break;
  3161. }
  3162. var field = reader.getFieldNumber();
  3163. switch (field) {
  3164. case 1:
  3165. var value = new proto.to.v1.UserInGameInfo;
  3166. reader.readMessage(value,proto.to.v1.UserInGameInfo.deserializeBinaryFromReader);
  3167. msg.addUsers(value);
  3168. break;
  3169. default:
  3170. reader.skipField();
  3171. break;
  3172. }
  3173. }
  3174. return msg;
  3175. };
  3176. /**
  3177. * Serializes the message to binary data (in protobuf wire format).
  3178. * @return {!Uint8Array}
  3179. */
  3180. proto.to.v1.ToActionUsersDetailReply.prototype.serializeBinary = function() {
  3181. var writer = new jspb.BinaryWriter();
  3182. proto.to.v1.ToActionUsersDetailReply.serializeBinaryToWriter(this, writer);
  3183. return writer.getResultBuffer();
  3184. };
  3185. /**
  3186. * Serializes the given message to binary data (in protobuf wire
  3187. * format), writing to the given BinaryWriter.
  3188. * @param {!proto.to.v1.ToActionUsersDetailReply} message
  3189. * @param {!jspb.BinaryWriter} writer
  3190. * @suppress {unusedLocalVariables} f is only used for nested messages
  3191. */
  3192. proto.to.v1.ToActionUsersDetailReply.serializeBinaryToWriter = function(message, writer) {
  3193. var f = undefined;
  3194. f = message.getUsersList();
  3195. if (f.length > 0) {
  3196. writer.writeRepeatedMessage(
  3197. 1,
  3198. f,
  3199. proto.to.v1.UserInGameInfo.serializeBinaryToWriter
  3200. );
  3201. }
  3202. };
  3203. /**
  3204. * repeated UserInGameInfo users = 1;
  3205. * @return {!Array<!proto.to.v1.UserInGameInfo>}
  3206. */
  3207. proto.to.v1.ToActionUsersDetailReply.prototype.getUsersList = function() {
  3208. return /** @type{!Array<!proto.to.v1.UserInGameInfo>} */ (
  3209. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.UserInGameInfo, 1));
  3210. };
  3211. /**
  3212. * @param {!Array<!proto.to.v1.UserInGameInfo>} value
  3213. * @return {!proto.to.v1.ToActionUsersDetailReply} returns this
  3214. */
  3215. proto.to.v1.ToActionUsersDetailReply.prototype.setUsersList = function(value) {
  3216. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  3217. };
  3218. /**
  3219. * @param {!proto.to.v1.UserInGameInfo=} opt_value
  3220. * @param {number=} opt_index
  3221. * @return {!proto.to.v1.UserInGameInfo}
  3222. */
  3223. proto.to.v1.ToActionUsersDetailReply.prototype.addUsers = function(opt_value, opt_index) {
  3224. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.to.v1.UserInGameInfo, opt_index);
  3225. };
  3226. /**
  3227. * Clears the list making it empty but non-null.
  3228. * @return {!proto.to.v1.ToActionUsersDetailReply} returns this
  3229. */
  3230. proto.to.v1.ToActionUsersDetailReply.prototype.clearUsersList = function() {
  3231. return this.setUsersList([]);
  3232. };
  3233. /**
  3234. * List of repeated fields within this message type.
  3235. * @private {!Array<number>}
  3236. * @const
  3237. */
  3238. proto.to.v1.ToNextControlPointInGameReply.repeatedFields_ = [1];
  3239. if (jspb.Message.GENERATE_TO_OBJECT) {
  3240. /**
  3241. * Creates an object representation of this proto.
  3242. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3243. * Optional fields that are not set will be set to undefined.
  3244. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3245. * For the list of reserved names please see:
  3246. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3247. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3248. * JSPB instance for transitional soy proto support:
  3249. * http://goto/soy-param-migration
  3250. * @return {!Object}
  3251. */
  3252. proto.to.v1.ToNextControlPointInGameReply.prototype.toObject = function(opt_includeInstance) {
  3253. return proto.to.v1.ToNextControlPointInGameReply.toObject(opt_includeInstance, this);
  3254. };
  3255. /**
  3256. * Static version of the {@see toObject} method.
  3257. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3258. * the JSPB instance for transitional soy proto support:
  3259. * http://goto/soy-param-migration
  3260. * @param {!proto.to.v1.ToNextControlPointInGameReply} msg The msg instance to transform.
  3261. * @return {!Object}
  3262. * @suppress {unusedLocalVariables} f is only used for nested messages
  3263. */
  3264. proto.to.v1.ToNextControlPointInGameReply.toObject = function(includeInstance, msg) {
  3265. var f, obj = {
  3266. nextcontrolpointrsList: jspb.Message.toObjectList(msg.getNextcontrolpointrsList(),
  3267. proto.to.v1.UserArriveControlPoint.toObject, includeInstance)
  3268. };
  3269. if (includeInstance) {
  3270. obj.$jspbMessageInstance = msg;
  3271. }
  3272. return obj;
  3273. };
  3274. }
  3275. /**
  3276. * Deserializes binary data (in protobuf wire format).
  3277. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3278. * @return {!proto.to.v1.ToNextControlPointInGameReply}
  3279. */
  3280. proto.to.v1.ToNextControlPointInGameReply.deserializeBinary = function(bytes) {
  3281. var reader = new jspb.BinaryReader(bytes);
  3282. var msg = new proto.to.v1.ToNextControlPointInGameReply;
  3283. return proto.to.v1.ToNextControlPointInGameReply.deserializeBinaryFromReader(msg, reader);
  3284. };
  3285. /**
  3286. * Deserializes binary data (in protobuf wire format) from the
  3287. * given reader into the given message object.
  3288. * @param {!proto.to.v1.ToNextControlPointInGameReply} msg The message object to deserialize into.
  3289. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3290. * @return {!proto.to.v1.ToNextControlPointInGameReply}
  3291. */
  3292. proto.to.v1.ToNextControlPointInGameReply.deserializeBinaryFromReader = function(msg, reader) {
  3293. while (reader.nextField()) {
  3294. if (reader.isEndGroup()) {
  3295. break;
  3296. }
  3297. var field = reader.getFieldNumber();
  3298. switch (field) {
  3299. case 1:
  3300. var value = new proto.to.v1.UserArriveControlPoint;
  3301. reader.readMessage(value,proto.to.v1.UserArriveControlPoint.deserializeBinaryFromReader);
  3302. msg.addNextcontrolpointrs(value);
  3303. break;
  3304. default:
  3305. reader.skipField();
  3306. break;
  3307. }
  3308. }
  3309. return msg;
  3310. };
  3311. /**
  3312. * Serializes the message to binary data (in protobuf wire format).
  3313. * @return {!Uint8Array}
  3314. */
  3315. proto.to.v1.ToNextControlPointInGameReply.prototype.serializeBinary = function() {
  3316. var writer = new jspb.BinaryWriter();
  3317. proto.to.v1.ToNextControlPointInGameReply.serializeBinaryToWriter(this, writer);
  3318. return writer.getResultBuffer();
  3319. };
  3320. /**
  3321. * Serializes the given message to binary data (in protobuf wire
  3322. * format), writing to the given BinaryWriter.
  3323. * @param {!proto.to.v1.ToNextControlPointInGameReply} message
  3324. * @param {!jspb.BinaryWriter} writer
  3325. * @suppress {unusedLocalVariables} f is only used for nested messages
  3326. */
  3327. proto.to.v1.ToNextControlPointInGameReply.serializeBinaryToWriter = function(message, writer) {
  3328. var f = undefined;
  3329. f = message.getNextcontrolpointrsList();
  3330. if (f.length > 0) {
  3331. writer.writeRepeatedMessage(
  3332. 1,
  3333. f,
  3334. proto.to.v1.UserArriveControlPoint.serializeBinaryToWriter
  3335. );
  3336. }
  3337. };
  3338. /**
  3339. * repeated UserArriveControlPoint nextControlPointRs = 1;
  3340. * @return {!Array<!proto.to.v1.UserArriveControlPoint>}
  3341. */
  3342. proto.to.v1.ToNextControlPointInGameReply.prototype.getNextcontrolpointrsList = function() {
  3343. return /** @type{!Array<!proto.to.v1.UserArriveControlPoint>} */ (
  3344. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.UserArriveControlPoint, 1));
  3345. };
  3346. /**
  3347. * @param {!Array<!proto.to.v1.UserArriveControlPoint>} value
  3348. * @return {!proto.to.v1.ToNextControlPointInGameReply} returns this
  3349. */
  3350. proto.to.v1.ToNextControlPointInGameReply.prototype.setNextcontrolpointrsList = function(value) {
  3351. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  3352. };
  3353. /**
  3354. * @param {!proto.to.v1.UserArriveControlPoint=} opt_value
  3355. * @param {number=} opt_index
  3356. * @return {!proto.to.v1.UserArriveControlPoint}
  3357. */
  3358. proto.to.v1.ToNextControlPointInGameReply.prototype.addNextcontrolpointrs = function(opt_value, opt_index) {
  3359. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.to.v1.UserArriveControlPoint, opt_index);
  3360. };
  3361. /**
  3362. * Clears the list making it empty but non-null.
  3363. * @return {!proto.to.v1.ToNextControlPointInGameReply} returns this
  3364. */
  3365. proto.to.v1.ToNextControlPointInGameReply.prototype.clearNextcontrolpointrsList = function() {
  3366. return this.setNextcontrolpointrsList([]);
  3367. };
  3368. if (jspb.Message.GENERATE_TO_OBJECT) {
  3369. /**
  3370. * Creates an object representation of this proto.
  3371. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3372. * Optional fields that are not set will be set to undefined.
  3373. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3374. * For the list of reserved names please see:
  3375. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3376. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3377. * JSPB instance for transitional soy proto support:
  3378. * http://goto/soy-param-migration
  3379. * @return {!Object}
  3380. */
  3381. proto.to.v1.UserInGameInfo.prototype.toObject = function(opt_includeInstance) {
  3382. return proto.to.v1.UserInGameInfo.toObject(opt_includeInstance, this);
  3383. };
  3384. /**
  3385. * Static version of the {@see toObject} method.
  3386. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3387. * the JSPB instance for transitional soy proto support:
  3388. * http://goto/soy-param-migration
  3389. * @param {!proto.to.v1.UserInGameInfo} msg The msg instance to transform.
  3390. * @return {!Object}
  3391. * @suppress {unusedLocalVariables} f is only used for nested messages
  3392. */
  3393. proto.to.v1.UserInGameInfo.toObject = function(includeInstance, msg) {
  3394. var f, obj = {
  3395. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3396. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  3397. distance: jspb.Message.getFieldWithDefault(msg, 3, 0),
  3398. pace: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3399. avghr: jspb.Message.getFieldWithDefault(msg, 5, 0),
  3400. maxhr: jspb.Message.getFieldWithDefault(msg, 6, 0),
  3401. calorie: jspb.Message.getFieldWithDefault(msg, 7, 0),
  3402. ck: jspb.Message.getFieldWithDefault(msg, 8, 0),
  3403. ei: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
  3404. effectivenum: jspb.Message.getFieldWithDefault(msg, 10, 0),
  3405. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 11, 0),
  3406. startsecondstamp: jspb.Message.getFieldWithDefault(msg, 12, 0),
  3407. endsecondstamp: jspb.Message.getFieldWithDefault(msg, 13, 0),
  3408. mstate: jspb.Message.getFieldWithDefault(msg, 14, 0),
  3409. lasthr: jspb.Message.getFieldWithDefault(msg, 15, 0),
  3410. phone: jspb.Message.getFieldWithDefault(msg, 16, ""),
  3411. nextcontrolpoint: (f = msg.getNextcontrolpoint()) && proto.to.v1.UserArriveControlPoint.toObject(includeInstance, f),
  3412. oaid: jspb.Message.getFieldWithDefault(msg, 18, 0),
  3413. stepnum: jspb.Message.getFieldWithDefault(msg, 19, 0),
  3414. syspoint: jspb.Message.getFieldWithDefault(msg, 20, 0)
  3415. };
  3416. if (includeInstance) {
  3417. obj.$jspbMessageInstance = msg;
  3418. }
  3419. return obj;
  3420. };
  3421. }
  3422. /**
  3423. * Deserializes binary data (in protobuf wire format).
  3424. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3425. * @return {!proto.to.v1.UserInGameInfo}
  3426. */
  3427. proto.to.v1.UserInGameInfo.deserializeBinary = function(bytes) {
  3428. var reader = new jspb.BinaryReader(bytes);
  3429. var msg = new proto.to.v1.UserInGameInfo;
  3430. return proto.to.v1.UserInGameInfo.deserializeBinaryFromReader(msg, reader);
  3431. };
  3432. /**
  3433. * Deserializes binary data (in protobuf wire format) from the
  3434. * given reader into the given message object.
  3435. * @param {!proto.to.v1.UserInGameInfo} msg The message object to deserialize into.
  3436. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3437. * @return {!proto.to.v1.UserInGameInfo}
  3438. */
  3439. proto.to.v1.UserInGameInfo.deserializeBinaryFromReader = function(msg, reader) {
  3440. while (reader.nextField()) {
  3441. if (reader.isEndGroup()) {
  3442. break;
  3443. }
  3444. var field = reader.getFieldNumber();
  3445. switch (field) {
  3446. case 1:
  3447. var value = /** @type {number} */ (reader.readInt32());
  3448. msg.setId(value);
  3449. break;
  3450. case 2:
  3451. var value = /** @type {string} */ (reader.readString());
  3452. msg.setName(value);
  3453. break;
  3454. case 3:
  3455. var value = /** @type {number} */ (reader.readInt32());
  3456. msg.setDistance(value);
  3457. break;
  3458. case 4:
  3459. var value = /** @type {number} */ (reader.readInt32());
  3460. msg.setPace(value);
  3461. break;
  3462. case 5:
  3463. var value = /** @type {number} */ (reader.readInt32());
  3464. msg.setAvghr(value);
  3465. break;
  3466. case 6:
  3467. var value = /** @type {number} */ (reader.readInt32());
  3468. msg.setMaxhr(value);
  3469. break;
  3470. case 7:
  3471. var value = /** @type {number} */ (reader.readInt32());
  3472. msg.setCalorie(value);
  3473. break;
  3474. case 8:
  3475. var value = /** @type {number} */ (reader.readInt32());
  3476. msg.setCk(value);
  3477. break;
  3478. case 9:
  3479. var value = /** @type {number} */ (reader.readFloat());
  3480. msg.setEi(value);
  3481. break;
  3482. case 10:
  3483. var value = /** @type {number} */ (reader.readInt32());
  3484. msg.setEffectivenum(value);
  3485. break;
  3486. case 11:
  3487. var value = /** @type {number} */ (reader.readInt32());
  3488. msg.setTotalcontrolnum(value);
  3489. break;
  3490. case 12:
  3491. var value = /** @type {number} */ (reader.readInt64());
  3492. msg.setStartsecondstamp(value);
  3493. break;
  3494. case 13:
  3495. var value = /** @type {number} */ (reader.readInt64());
  3496. msg.setEndsecondstamp(value);
  3497. break;
  3498. case 14:
  3499. var value = /** @type {number} */ (reader.readInt32());
  3500. msg.setMstate(value);
  3501. break;
  3502. case 15:
  3503. var value = /** @type {number} */ (reader.readInt32());
  3504. msg.setLasthr(value);
  3505. break;
  3506. case 16:
  3507. var value = /** @type {string} */ (reader.readString());
  3508. msg.setPhone(value);
  3509. break;
  3510. case 17:
  3511. var value = new proto.to.v1.UserArriveControlPoint;
  3512. reader.readMessage(value,proto.to.v1.UserArriveControlPoint.deserializeBinaryFromReader);
  3513. msg.setNextcontrolpoint(value);
  3514. break;
  3515. case 18:
  3516. var value = /** @type {number} */ (reader.readInt32());
  3517. msg.setOaid(value);
  3518. break;
  3519. case 19:
  3520. var value = /** @type {number} */ (reader.readInt32());
  3521. msg.setStepnum(value);
  3522. break;
  3523. case 20:
  3524. var value = /** @type {number} */ (reader.readInt32());
  3525. msg.setSyspoint(value);
  3526. break;
  3527. default:
  3528. reader.skipField();
  3529. break;
  3530. }
  3531. }
  3532. return msg;
  3533. };
  3534. /**
  3535. * Serializes the message to binary data (in protobuf wire format).
  3536. * @return {!Uint8Array}
  3537. */
  3538. proto.to.v1.UserInGameInfo.prototype.serializeBinary = function() {
  3539. var writer = new jspb.BinaryWriter();
  3540. proto.to.v1.UserInGameInfo.serializeBinaryToWriter(this, writer);
  3541. return writer.getResultBuffer();
  3542. };
  3543. /**
  3544. * Serializes the given message to binary data (in protobuf wire
  3545. * format), writing to the given BinaryWriter.
  3546. * @param {!proto.to.v1.UserInGameInfo} message
  3547. * @param {!jspb.BinaryWriter} writer
  3548. * @suppress {unusedLocalVariables} f is only used for nested messages
  3549. */
  3550. proto.to.v1.UserInGameInfo.serializeBinaryToWriter = function(message, writer) {
  3551. var f = undefined;
  3552. f = message.getId();
  3553. if (f !== 0) {
  3554. writer.writeInt32(
  3555. 1,
  3556. f
  3557. );
  3558. }
  3559. f = message.getName();
  3560. if (f.length > 0) {
  3561. writer.writeString(
  3562. 2,
  3563. f
  3564. );
  3565. }
  3566. f = message.getDistance();
  3567. if (f !== 0) {
  3568. writer.writeInt32(
  3569. 3,
  3570. f
  3571. );
  3572. }
  3573. f = message.getPace();
  3574. if (f !== 0) {
  3575. writer.writeInt32(
  3576. 4,
  3577. f
  3578. );
  3579. }
  3580. f = message.getAvghr();
  3581. if (f !== 0) {
  3582. writer.writeInt32(
  3583. 5,
  3584. f
  3585. );
  3586. }
  3587. f = message.getMaxhr();
  3588. if (f !== 0) {
  3589. writer.writeInt32(
  3590. 6,
  3591. f
  3592. );
  3593. }
  3594. f = message.getCalorie();
  3595. if (f !== 0) {
  3596. writer.writeInt32(
  3597. 7,
  3598. f
  3599. );
  3600. }
  3601. f = message.getCk();
  3602. if (f !== 0) {
  3603. writer.writeInt32(
  3604. 8,
  3605. f
  3606. );
  3607. }
  3608. f = message.getEi();
  3609. if (f !== 0.0) {
  3610. writer.writeFloat(
  3611. 9,
  3612. f
  3613. );
  3614. }
  3615. f = message.getEffectivenum();
  3616. if (f !== 0) {
  3617. writer.writeInt32(
  3618. 10,
  3619. f
  3620. );
  3621. }
  3622. f = message.getTotalcontrolnum();
  3623. if (f !== 0) {
  3624. writer.writeInt32(
  3625. 11,
  3626. f
  3627. );
  3628. }
  3629. f = message.getStartsecondstamp();
  3630. if (f !== 0) {
  3631. writer.writeInt64(
  3632. 12,
  3633. f
  3634. );
  3635. }
  3636. f = message.getEndsecondstamp();
  3637. if (f !== 0) {
  3638. writer.writeInt64(
  3639. 13,
  3640. f
  3641. );
  3642. }
  3643. f = message.getMstate();
  3644. if (f !== 0) {
  3645. writer.writeInt32(
  3646. 14,
  3647. f
  3648. );
  3649. }
  3650. f = message.getLasthr();
  3651. if (f !== 0) {
  3652. writer.writeInt32(
  3653. 15,
  3654. f
  3655. );
  3656. }
  3657. f = message.getPhone();
  3658. if (f.length > 0) {
  3659. writer.writeString(
  3660. 16,
  3661. f
  3662. );
  3663. }
  3664. f = message.getNextcontrolpoint();
  3665. if (f != null) {
  3666. writer.writeMessage(
  3667. 17,
  3668. f,
  3669. proto.to.v1.UserArriveControlPoint.serializeBinaryToWriter
  3670. );
  3671. }
  3672. f = message.getOaid();
  3673. if (f !== 0) {
  3674. writer.writeInt32(
  3675. 18,
  3676. f
  3677. );
  3678. }
  3679. f = message.getStepnum();
  3680. if (f !== 0) {
  3681. writer.writeInt32(
  3682. 19,
  3683. f
  3684. );
  3685. }
  3686. f = message.getSyspoint();
  3687. if (f !== 0) {
  3688. writer.writeInt32(
  3689. 20,
  3690. f
  3691. );
  3692. }
  3693. };
  3694. /**
  3695. * optional int32 id = 1;
  3696. * @return {number}
  3697. */
  3698. proto.to.v1.UserInGameInfo.prototype.getId = function() {
  3699. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3700. };
  3701. /**
  3702. * @param {number} value
  3703. * @return {!proto.to.v1.UserInGameInfo} returns this
  3704. */
  3705. proto.to.v1.UserInGameInfo.prototype.setId = function(value) {
  3706. return jspb.Message.setProto3IntField(this, 1, value);
  3707. };
  3708. /**
  3709. * optional string name = 2;
  3710. * @return {string}
  3711. */
  3712. proto.to.v1.UserInGameInfo.prototype.getName = function() {
  3713. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3714. };
  3715. /**
  3716. * @param {string} value
  3717. * @return {!proto.to.v1.UserInGameInfo} returns this
  3718. */
  3719. proto.to.v1.UserInGameInfo.prototype.setName = function(value) {
  3720. return jspb.Message.setProto3StringField(this, 2, value);
  3721. };
  3722. /**
  3723. * optional int32 distance = 3;
  3724. * @return {number}
  3725. */
  3726. proto.to.v1.UserInGameInfo.prototype.getDistance = function() {
  3727. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  3728. };
  3729. /**
  3730. * @param {number} value
  3731. * @return {!proto.to.v1.UserInGameInfo} returns this
  3732. */
  3733. proto.to.v1.UserInGameInfo.prototype.setDistance = function(value) {
  3734. return jspb.Message.setProto3IntField(this, 3, value);
  3735. };
  3736. /**
  3737. * optional int32 pace = 4;
  3738. * @return {number}
  3739. */
  3740. proto.to.v1.UserInGameInfo.prototype.getPace = function() {
  3741. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3742. };
  3743. /**
  3744. * @param {number} value
  3745. * @return {!proto.to.v1.UserInGameInfo} returns this
  3746. */
  3747. proto.to.v1.UserInGameInfo.prototype.setPace = function(value) {
  3748. return jspb.Message.setProto3IntField(this, 4, value);
  3749. };
  3750. /**
  3751. * optional int32 avgHr = 5;
  3752. * @return {number}
  3753. */
  3754. proto.to.v1.UserInGameInfo.prototype.getAvghr = function() {
  3755. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  3756. };
  3757. /**
  3758. * @param {number} value
  3759. * @return {!proto.to.v1.UserInGameInfo} returns this
  3760. */
  3761. proto.to.v1.UserInGameInfo.prototype.setAvghr = function(value) {
  3762. return jspb.Message.setProto3IntField(this, 5, value);
  3763. };
  3764. /**
  3765. * optional int32 maxHr = 6;
  3766. * @return {number}
  3767. */
  3768. proto.to.v1.UserInGameInfo.prototype.getMaxhr = function() {
  3769. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  3770. };
  3771. /**
  3772. * @param {number} value
  3773. * @return {!proto.to.v1.UserInGameInfo} returns this
  3774. */
  3775. proto.to.v1.UserInGameInfo.prototype.setMaxhr = function(value) {
  3776. return jspb.Message.setProto3IntField(this, 6, value);
  3777. };
  3778. /**
  3779. * optional int32 Calorie = 7;
  3780. * @return {number}
  3781. */
  3782. proto.to.v1.UserInGameInfo.prototype.getCalorie = function() {
  3783. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  3784. };
  3785. /**
  3786. * @param {number} value
  3787. * @return {!proto.to.v1.UserInGameInfo} returns this
  3788. */
  3789. proto.to.v1.UserInGameInfo.prototype.setCalorie = function(value) {
  3790. return jspb.Message.setProto3IntField(this, 7, value);
  3791. };
  3792. /**
  3793. * optional int32 Ck = 8;
  3794. * @return {number}
  3795. */
  3796. proto.to.v1.UserInGameInfo.prototype.getCk = function() {
  3797. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
  3798. };
  3799. /**
  3800. * @param {number} value
  3801. * @return {!proto.to.v1.UserInGameInfo} returns this
  3802. */
  3803. proto.to.v1.UserInGameInfo.prototype.setCk = function(value) {
  3804. return jspb.Message.setProto3IntField(this, 8, value);
  3805. };
  3806. /**
  3807. * optional float Ei = 9;
  3808. * @return {number}
  3809. */
  3810. proto.to.v1.UserInGameInfo.prototype.getEi = function() {
  3811. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
  3812. };
  3813. /**
  3814. * @param {number} value
  3815. * @return {!proto.to.v1.UserInGameInfo} returns this
  3816. */
  3817. proto.to.v1.UserInGameInfo.prototype.setEi = function(value) {
  3818. return jspb.Message.setProto3FloatField(this, 9, value);
  3819. };
  3820. /**
  3821. * optional int32 EffectiveNum = 10;
  3822. * @return {number}
  3823. */
  3824. proto.to.v1.UserInGameInfo.prototype.getEffectivenum = function() {
  3825. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
  3826. };
  3827. /**
  3828. * @param {number} value
  3829. * @return {!proto.to.v1.UserInGameInfo} returns this
  3830. */
  3831. proto.to.v1.UserInGameInfo.prototype.setEffectivenum = function(value) {
  3832. return jspb.Message.setProto3IntField(this, 10, value);
  3833. };
  3834. /**
  3835. * optional int32 TotalControlNum = 11;
  3836. * @return {number}
  3837. */
  3838. proto.to.v1.UserInGameInfo.prototype.getTotalcontrolnum = function() {
  3839. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
  3840. };
  3841. /**
  3842. * @param {number} value
  3843. * @return {!proto.to.v1.UserInGameInfo} returns this
  3844. */
  3845. proto.to.v1.UserInGameInfo.prototype.setTotalcontrolnum = function(value) {
  3846. return jspb.Message.setProto3IntField(this, 11, value);
  3847. };
  3848. /**
  3849. * optional int64 startSecondStamp = 12;
  3850. * @return {number}
  3851. */
  3852. proto.to.v1.UserInGameInfo.prototype.getStartsecondstamp = function() {
  3853. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
  3854. };
  3855. /**
  3856. * @param {number} value
  3857. * @return {!proto.to.v1.UserInGameInfo} returns this
  3858. */
  3859. proto.to.v1.UserInGameInfo.prototype.setStartsecondstamp = function(value) {
  3860. return jspb.Message.setProto3IntField(this, 12, value);
  3861. };
  3862. /**
  3863. * optional int64 endSecondStamp = 13;
  3864. * @return {number}
  3865. */
  3866. proto.to.v1.UserInGameInfo.prototype.getEndsecondstamp = function() {
  3867. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
  3868. };
  3869. /**
  3870. * @param {number} value
  3871. * @return {!proto.to.v1.UserInGameInfo} returns this
  3872. */
  3873. proto.to.v1.UserInGameInfo.prototype.setEndsecondstamp = function(value) {
  3874. return jspb.Message.setProto3IntField(this, 13, value);
  3875. };
  3876. /**
  3877. * optional int32 mState = 14;
  3878. * @return {number}
  3879. */
  3880. proto.to.v1.UserInGameInfo.prototype.getMstate = function() {
  3881. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
  3882. };
  3883. /**
  3884. * @param {number} value
  3885. * @return {!proto.to.v1.UserInGameInfo} returns this
  3886. */
  3887. proto.to.v1.UserInGameInfo.prototype.setMstate = function(value) {
  3888. return jspb.Message.setProto3IntField(this, 14, value);
  3889. };
  3890. /**
  3891. * optional int32 lastHr = 15;
  3892. * @return {number}
  3893. */
  3894. proto.to.v1.UserInGameInfo.prototype.getLasthr = function() {
  3895. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
  3896. };
  3897. /**
  3898. * @param {number} value
  3899. * @return {!proto.to.v1.UserInGameInfo} returns this
  3900. */
  3901. proto.to.v1.UserInGameInfo.prototype.setLasthr = function(value) {
  3902. return jspb.Message.setProto3IntField(this, 15, value);
  3903. };
  3904. /**
  3905. * optional string phone = 16;
  3906. * @return {string}
  3907. */
  3908. proto.to.v1.UserInGameInfo.prototype.getPhone = function() {
  3909. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
  3910. };
  3911. /**
  3912. * @param {string} value
  3913. * @return {!proto.to.v1.UserInGameInfo} returns this
  3914. */
  3915. proto.to.v1.UserInGameInfo.prototype.setPhone = function(value) {
  3916. return jspb.Message.setProto3StringField(this, 16, value);
  3917. };
  3918. /**
  3919. * optional UserArriveControlPoint nextControlPoint = 17;
  3920. * @return {?proto.to.v1.UserArriveControlPoint}
  3921. */
  3922. proto.to.v1.UserInGameInfo.prototype.getNextcontrolpoint = function() {
  3923. return /** @type{?proto.to.v1.UserArriveControlPoint} */ (
  3924. jspb.Message.getWrapperField(this, proto.to.v1.UserArriveControlPoint, 17));
  3925. };
  3926. /**
  3927. * @param {?proto.to.v1.UserArriveControlPoint|undefined} value
  3928. * @return {!proto.to.v1.UserInGameInfo} returns this
  3929. */
  3930. proto.to.v1.UserInGameInfo.prototype.setNextcontrolpoint = function(value) {
  3931. return jspb.Message.setWrapperField(this, 17, value);
  3932. };
  3933. /**
  3934. * Clears the message field making it undefined.
  3935. * @return {!proto.to.v1.UserInGameInfo} returns this
  3936. */
  3937. proto.to.v1.UserInGameInfo.prototype.clearNextcontrolpoint = function() {
  3938. return this.setNextcontrolpoint(undefined);
  3939. };
  3940. /**
  3941. * Returns whether this field is set.
  3942. * @return {boolean}
  3943. */
  3944. proto.to.v1.UserInGameInfo.prototype.hasNextcontrolpoint = function() {
  3945. return jspb.Message.getField(this, 17) != null;
  3946. };
  3947. /**
  3948. * optional int32 oaId = 18;
  3949. * @return {number}
  3950. */
  3951. proto.to.v1.UserInGameInfo.prototype.getOaid = function() {
  3952. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
  3953. };
  3954. /**
  3955. * @param {number} value
  3956. * @return {!proto.to.v1.UserInGameInfo} returns this
  3957. */
  3958. proto.to.v1.UserInGameInfo.prototype.setOaid = function(value) {
  3959. return jspb.Message.setProto3IntField(this, 18, value);
  3960. };
  3961. /**
  3962. * optional int32 stepNum = 19;
  3963. * @return {number}
  3964. */
  3965. proto.to.v1.UserInGameInfo.prototype.getStepnum = function() {
  3966. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
  3967. };
  3968. /**
  3969. * @param {number} value
  3970. * @return {!proto.to.v1.UserInGameInfo} returns this
  3971. */
  3972. proto.to.v1.UserInGameInfo.prototype.setStepnum = function(value) {
  3973. return jspb.Message.setProto3IntField(this, 19, value);
  3974. };
  3975. /**
  3976. * optional int32 sysPoint = 20;
  3977. * @return {number}
  3978. */
  3979. proto.to.v1.UserInGameInfo.prototype.getSyspoint = function() {
  3980. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
  3981. };
  3982. /**
  3983. * @param {number} value
  3984. * @return {!proto.to.v1.UserInGameInfo} returns this
  3985. */
  3986. proto.to.v1.UserInGameInfo.prototype.setSyspoint = function(value) {
  3987. return jspb.Message.setProto3IntField(this, 20, value);
  3988. };
  3989. /**
  3990. * List of repeated fields within this message type.
  3991. * @private {!Array<number>}
  3992. * @const
  3993. */
  3994. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.repeatedFields_ = [2];
  3995. if (jspb.Message.GENERATE_TO_OBJECT) {
  3996. /**
  3997. * Creates an object representation of this proto.
  3998. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3999. * Optional fields that are not set will be set to undefined.
  4000. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4001. * For the list of reserved names please see:
  4002. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4003. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4004. * JSPB instance for transitional soy proto support:
  4005. * http://goto/soy-param-migration
  4006. * @return {!Object}
  4007. */
  4008. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.toObject = function(opt_includeInstance) {
  4009. return proto.to.v1.ToAnyUserHistoryGpsQueryRequest.toObject(opt_includeInstance, this);
  4010. };
  4011. /**
  4012. * Static version of the {@see toObject} method.
  4013. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4014. * the JSPB instance for transitional soy proto support:
  4015. * http://goto/soy-param-migration
  4016. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} msg The msg instance to transform.
  4017. * @return {!Object}
  4018. * @suppress {unusedLocalVariables} f is only used for nested messages
  4019. */
  4020. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.toObject = function(includeInstance, msg) {
  4021. var f, obj = {
  4022. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4023. useridarrList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
  4024. startsecondstamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
  4025. endsecondstamp: jspb.Message.getFieldWithDefault(msg, 4, 0)
  4026. };
  4027. if (includeInstance) {
  4028. obj.$jspbMessageInstance = msg;
  4029. }
  4030. return obj;
  4031. };
  4032. }
  4033. /**
  4034. * Deserializes binary data (in protobuf wire format).
  4035. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4036. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest}
  4037. */
  4038. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.deserializeBinary = function(bytes) {
  4039. var reader = new jspb.BinaryReader(bytes);
  4040. var msg = new proto.to.v1.ToAnyUserHistoryGpsQueryRequest;
  4041. return proto.to.v1.ToAnyUserHistoryGpsQueryRequest.deserializeBinaryFromReader(msg, reader);
  4042. };
  4043. /**
  4044. * Deserializes binary data (in protobuf wire format) from the
  4045. * given reader into the given message object.
  4046. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} msg The message object to deserialize into.
  4047. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4048. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest}
  4049. */
  4050. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
  4051. while (reader.nextField()) {
  4052. if (reader.isEndGroup()) {
  4053. break;
  4054. }
  4055. var field = reader.getFieldNumber();
  4056. switch (field) {
  4057. case 1:
  4058. var value = /** @type {number} */ (reader.readInt32());
  4059. msg.setId(value);
  4060. break;
  4061. case 2:
  4062. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
  4063. for (var i = 0; i < values.length; i++) {
  4064. msg.addUseridarr(values[i]);
  4065. }
  4066. break;
  4067. case 3:
  4068. var value = /** @type {number} */ (reader.readInt64());
  4069. msg.setStartsecondstamp(value);
  4070. break;
  4071. case 4:
  4072. var value = /** @type {number} */ (reader.readInt64());
  4073. msg.setEndsecondstamp(value);
  4074. break;
  4075. default:
  4076. reader.skipField();
  4077. break;
  4078. }
  4079. }
  4080. return msg;
  4081. };
  4082. /**
  4083. * Serializes the message to binary data (in protobuf wire format).
  4084. * @return {!Uint8Array}
  4085. */
  4086. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.serializeBinary = function() {
  4087. var writer = new jspb.BinaryWriter();
  4088. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.serializeBinaryToWriter(this, writer);
  4089. return writer.getResultBuffer();
  4090. };
  4091. /**
  4092. * Serializes the given message to binary data (in protobuf wire
  4093. * format), writing to the given BinaryWriter.
  4094. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} message
  4095. * @param {!jspb.BinaryWriter} writer
  4096. * @suppress {unusedLocalVariables} f is only used for nested messages
  4097. */
  4098. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.serializeBinaryToWriter = function(message, writer) {
  4099. var f = undefined;
  4100. f = message.getId();
  4101. if (f !== 0) {
  4102. writer.writeInt32(
  4103. 1,
  4104. f
  4105. );
  4106. }
  4107. f = message.getUseridarrList();
  4108. if (f.length > 0) {
  4109. writer.writePackedInt32(
  4110. 2,
  4111. f
  4112. );
  4113. }
  4114. f = message.getStartsecondstamp();
  4115. if (f !== 0) {
  4116. writer.writeInt64(
  4117. 3,
  4118. f
  4119. );
  4120. }
  4121. f = message.getEndsecondstamp();
  4122. if (f !== 0) {
  4123. writer.writeInt64(
  4124. 4,
  4125. f
  4126. );
  4127. }
  4128. };
  4129. /**
  4130. * optional int32 id = 1;
  4131. * @return {number}
  4132. */
  4133. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.getId = function() {
  4134. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4135. };
  4136. /**
  4137. * @param {number} value
  4138. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4139. */
  4140. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.setId = function(value) {
  4141. return jspb.Message.setProto3IntField(this, 1, value);
  4142. };
  4143. /**
  4144. * repeated int32 userIdArr = 2;
  4145. * @return {!Array<number>}
  4146. */
  4147. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.getUseridarrList = function() {
  4148. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
  4149. };
  4150. /**
  4151. * @param {!Array<number>} value
  4152. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4153. */
  4154. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.setUseridarrList = function(value) {
  4155. return jspb.Message.setField(this, 2, value || []);
  4156. };
  4157. /**
  4158. * @param {number} value
  4159. * @param {number=} opt_index
  4160. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4161. */
  4162. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.addUseridarr = function(value, opt_index) {
  4163. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  4164. };
  4165. /**
  4166. * Clears the list making it empty but non-null.
  4167. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4168. */
  4169. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.clearUseridarrList = function() {
  4170. return this.setUseridarrList([]);
  4171. };
  4172. /**
  4173. * optional int64 startSecondStamp = 3;
  4174. * @return {number}
  4175. */
  4176. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.getStartsecondstamp = function() {
  4177. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  4178. };
  4179. /**
  4180. * @param {number} value
  4181. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4182. */
  4183. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.setStartsecondstamp = function(value) {
  4184. return jspb.Message.setProto3IntField(this, 3, value);
  4185. };
  4186. /**
  4187. * optional int64 endSecondStamp = 4;
  4188. * @return {number}
  4189. */
  4190. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.getEndsecondstamp = function() {
  4191. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  4192. };
  4193. /**
  4194. * @param {number} value
  4195. * @return {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} returns this
  4196. */
  4197. proto.to.v1.ToAnyUserHistoryGpsQueryRequest.prototype.setEndsecondstamp = function(value) {
  4198. return jspb.Message.setProto3IntField(this, 4, value);
  4199. };
  4200. if (jspb.Message.GENERATE_TO_OBJECT) {
  4201. /**
  4202. * Creates an object representation of this proto.
  4203. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4204. * Optional fields that are not set will be set to undefined.
  4205. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4206. * For the list of reserved names please see:
  4207. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4208. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4209. * JSPB instance for transitional soy proto support:
  4210. * http://goto/soy-param-migration
  4211. * @return {!Object}
  4212. */
  4213. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.toObject = function(opt_includeInstance) {
  4214. return proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.toObject(opt_includeInstance, this);
  4215. };
  4216. /**
  4217. * Static version of the {@see toObject} method.
  4218. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4219. * the JSPB instance for transitional soy proto support:
  4220. * http://goto/soy-param-migration
  4221. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} msg The msg instance to transform.
  4222. * @return {!Object}
  4223. * @suppress {unusedLocalVariables} f is only used for nested messages
  4224. */
  4225. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.toObject = function(includeInstance, msg) {
  4226. var f, obj = {
  4227. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4228. startsecondstamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
  4229. endsecondstamp: jspb.Message.getFieldWithDefault(msg, 3, 0)
  4230. };
  4231. if (includeInstance) {
  4232. obj.$jspbMessageInstance = msg;
  4233. }
  4234. return obj;
  4235. };
  4236. }
  4237. /**
  4238. * Deserializes binary data (in protobuf wire format).
  4239. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4240. * @return {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest}
  4241. */
  4242. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.deserializeBinary = function(bytes) {
  4243. var reader = new jspb.BinaryReader(bytes);
  4244. var msg = new proto.to.v1.ToUsersInGameHistoryGpsQueryRequest;
  4245. return proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.deserializeBinaryFromReader(msg, reader);
  4246. };
  4247. /**
  4248. * Deserializes binary data (in protobuf wire format) from the
  4249. * given reader into the given message object.
  4250. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} msg The message object to deserialize into.
  4251. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4252. * @return {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest}
  4253. */
  4254. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
  4255. while (reader.nextField()) {
  4256. if (reader.isEndGroup()) {
  4257. break;
  4258. }
  4259. var field = reader.getFieldNumber();
  4260. switch (field) {
  4261. case 1:
  4262. var value = /** @type {number} */ (reader.readInt32());
  4263. msg.setId(value);
  4264. break;
  4265. case 2:
  4266. var value = /** @type {number} */ (reader.readInt64());
  4267. msg.setStartsecondstamp(value);
  4268. break;
  4269. case 3:
  4270. var value = /** @type {number} */ (reader.readInt64());
  4271. msg.setEndsecondstamp(value);
  4272. break;
  4273. default:
  4274. reader.skipField();
  4275. break;
  4276. }
  4277. }
  4278. return msg;
  4279. };
  4280. /**
  4281. * Serializes the message to binary data (in protobuf wire format).
  4282. * @return {!Uint8Array}
  4283. */
  4284. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.serializeBinary = function() {
  4285. var writer = new jspb.BinaryWriter();
  4286. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.serializeBinaryToWriter(this, writer);
  4287. return writer.getResultBuffer();
  4288. };
  4289. /**
  4290. * Serializes the given message to binary data (in protobuf wire
  4291. * format), writing to the given BinaryWriter.
  4292. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} message
  4293. * @param {!jspb.BinaryWriter} writer
  4294. * @suppress {unusedLocalVariables} f is only used for nested messages
  4295. */
  4296. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.serializeBinaryToWriter = function(message, writer) {
  4297. var f = undefined;
  4298. f = message.getId();
  4299. if (f !== 0) {
  4300. writer.writeInt32(
  4301. 1,
  4302. f
  4303. );
  4304. }
  4305. f = message.getStartsecondstamp();
  4306. if (f !== 0) {
  4307. writer.writeInt64(
  4308. 2,
  4309. f
  4310. );
  4311. }
  4312. f = message.getEndsecondstamp();
  4313. if (f !== 0) {
  4314. writer.writeInt64(
  4315. 3,
  4316. f
  4317. );
  4318. }
  4319. };
  4320. /**
  4321. * optional int32 id = 1;
  4322. * @return {number}
  4323. */
  4324. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.getId = function() {
  4325. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4326. };
  4327. /**
  4328. * @param {number} value
  4329. * @return {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} returns this
  4330. */
  4331. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.setId = function(value) {
  4332. return jspb.Message.setProto3IntField(this, 1, value);
  4333. };
  4334. /**
  4335. * optional int64 startSecondStamp = 2;
  4336. * @return {number}
  4337. */
  4338. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.getStartsecondstamp = function() {
  4339. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  4340. };
  4341. /**
  4342. * @param {number} value
  4343. * @return {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} returns this
  4344. */
  4345. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.setStartsecondstamp = function(value) {
  4346. return jspb.Message.setProto3IntField(this, 2, value);
  4347. };
  4348. /**
  4349. * optional int64 endSecondStamp = 3;
  4350. * @return {number}
  4351. */
  4352. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.getEndsecondstamp = function() {
  4353. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  4354. };
  4355. /**
  4356. * @param {number} value
  4357. * @return {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} returns this
  4358. */
  4359. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest.prototype.setEndsecondstamp = function(value) {
  4360. return jspb.Message.setProto3IntField(this, 3, value);
  4361. };
  4362. /**
  4363. * List of repeated fields within this message type.
  4364. * @private {!Array<number>}
  4365. * @const
  4366. */
  4367. proto.to.v1.ToUserGpsQueryReply.repeatedFields_ = [1];
  4368. if (jspb.Message.GENERATE_TO_OBJECT) {
  4369. /**
  4370. * Creates an object representation of this proto.
  4371. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4372. * Optional fields that are not set will be set to undefined.
  4373. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4374. * For the list of reserved names please see:
  4375. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4376. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4377. * JSPB instance for transitional soy proto support:
  4378. * http://goto/soy-param-migration
  4379. * @return {!Object}
  4380. */
  4381. proto.to.v1.ToUserGpsQueryReply.prototype.toObject = function(opt_includeInstance) {
  4382. return proto.to.v1.ToUserGpsQueryReply.toObject(opt_includeInstance, this);
  4383. };
  4384. /**
  4385. * Static version of the {@see toObject} method.
  4386. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4387. * the JSPB instance for transitional soy proto support:
  4388. * http://goto/soy-param-migration
  4389. * @param {!proto.to.v1.ToUserGpsQueryReply} msg The msg instance to transform.
  4390. * @return {!Object}
  4391. * @suppress {unusedLocalVariables} f is only used for nested messages
  4392. */
  4393. proto.to.v1.ToUserGpsQueryReply.toObject = function(includeInstance, msg) {
  4394. var f, obj = {
  4395. gpsinfoList: jspb.Message.toObjectList(msg.getGpsinfoList(),
  4396. proto.to.v1.UserGpsInfo.toObject, includeInstance)
  4397. };
  4398. if (includeInstance) {
  4399. obj.$jspbMessageInstance = msg;
  4400. }
  4401. return obj;
  4402. };
  4403. }
  4404. /**
  4405. * Deserializes binary data (in protobuf wire format).
  4406. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4407. * @return {!proto.to.v1.ToUserGpsQueryReply}
  4408. */
  4409. proto.to.v1.ToUserGpsQueryReply.deserializeBinary = function(bytes) {
  4410. var reader = new jspb.BinaryReader(bytes);
  4411. var msg = new proto.to.v1.ToUserGpsQueryReply;
  4412. return proto.to.v1.ToUserGpsQueryReply.deserializeBinaryFromReader(msg, reader);
  4413. };
  4414. /**
  4415. * Deserializes binary data (in protobuf wire format) from the
  4416. * given reader into the given message object.
  4417. * @param {!proto.to.v1.ToUserGpsQueryReply} msg The message object to deserialize into.
  4418. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4419. * @return {!proto.to.v1.ToUserGpsQueryReply}
  4420. */
  4421. proto.to.v1.ToUserGpsQueryReply.deserializeBinaryFromReader = function(msg, reader) {
  4422. while (reader.nextField()) {
  4423. if (reader.isEndGroup()) {
  4424. break;
  4425. }
  4426. var field = reader.getFieldNumber();
  4427. switch (field) {
  4428. case 1:
  4429. var value = new proto.to.v1.UserGpsInfo;
  4430. reader.readMessage(value,proto.to.v1.UserGpsInfo.deserializeBinaryFromReader);
  4431. msg.addGpsinfo(value);
  4432. break;
  4433. default:
  4434. reader.skipField();
  4435. break;
  4436. }
  4437. }
  4438. return msg;
  4439. };
  4440. /**
  4441. * Serializes the message to binary data (in protobuf wire format).
  4442. * @return {!Uint8Array}
  4443. */
  4444. proto.to.v1.ToUserGpsQueryReply.prototype.serializeBinary = function() {
  4445. var writer = new jspb.BinaryWriter();
  4446. proto.to.v1.ToUserGpsQueryReply.serializeBinaryToWriter(this, writer);
  4447. return writer.getResultBuffer();
  4448. };
  4449. /**
  4450. * Serializes the given message to binary data (in protobuf wire
  4451. * format), writing to the given BinaryWriter.
  4452. * @param {!proto.to.v1.ToUserGpsQueryReply} message
  4453. * @param {!jspb.BinaryWriter} writer
  4454. * @suppress {unusedLocalVariables} f is only used for nested messages
  4455. */
  4456. proto.to.v1.ToUserGpsQueryReply.serializeBinaryToWriter = function(message, writer) {
  4457. var f = undefined;
  4458. f = message.getGpsinfoList();
  4459. if (f.length > 0) {
  4460. writer.writeRepeatedMessage(
  4461. 1,
  4462. f,
  4463. proto.to.v1.UserGpsInfo.serializeBinaryToWriter
  4464. );
  4465. }
  4466. };
  4467. /**
  4468. * repeated UserGpsInfo gpsInfo = 1;
  4469. * @return {!Array<!proto.to.v1.UserGpsInfo>}
  4470. */
  4471. proto.to.v1.ToUserGpsQueryReply.prototype.getGpsinfoList = function() {
  4472. return /** @type{!Array<!proto.to.v1.UserGpsInfo>} */ (
  4473. jspb.Message.getRepeatedWrapperField(this, proto.to.v1.UserGpsInfo, 1));
  4474. };
  4475. /**
  4476. * @param {!Array<!proto.to.v1.UserGpsInfo>} value
  4477. * @return {!proto.to.v1.ToUserGpsQueryReply} returns this
  4478. */
  4479. proto.to.v1.ToUserGpsQueryReply.prototype.setGpsinfoList = function(value) {
  4480. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  4481. };
  4482. /**
  4483. * @param {!proto.to.v1.UserGpsInfo=} opt_value
  4484. * @param {number=} opt_index
  4485. * @return {!proto.to.v1.UserGpsInfo}
  4486. */
  4487. proto.to.v1.ToUserGpsQueryReply.prototype.addGpsinfo = function(opt_value, opt_index) {
  4488. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.to.v1.UserGpsInfo, opt_index);
  4489. };
  4490. /**
  4491. * Clears the list making it empty but non-null.
  4492. * @return {!proto.to.v1.ToUserGpsQueryReply} returns this
  4493. */
  4494. proto.to.v1.ToUserGpsQueryReply.prototype.clearGpsinfoList = function() {
  4495. return this.setGpsinfoList([]);
  4496. };
  4497. if (jspb.Message.GENERATE_TO_OBJECT) {
  4498. /**
  4499. * Creates an object representation of this proto.
  4500. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4501. * Optional fields that are not set will be set to undefined.
  4502. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4503. * For the list of reserved names please see:
  4504. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4505. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4506. * JSPB instance for transitional soy proto support:
  4507. * http://goto/soy-param-migration
  4508. * @return {!Object}
  4509. */
  4510. proto.to.v1.UserGpsInfo.prototype.toObject = function(opt_includeInstance) {
  4511. return proto.to.v1.UserGpsInfo.toObject(opt_includeInstance, this);
  4512. };
  4513. /**
  4514. * Static version of the {@see toObject} method.
  4515. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4516. * the JSPB instance for transitional soy proto support:
  4517. * http://goto/soy-param-migration
  4518. * @param {!proto.to.v1.UserGpsInfo} msg The msg instance to transform.
  4519. * @return {!Object}
  4520. * @suppress {unusedLocalVariables} f is only used for nested messages
  4521. */
  4522. proto.to.v1.UserGpsInfo.toObject = function(includeInstance, msg) {
  4523. var f, obj = {
  4524. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4525. longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
  4526. latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
  4527. directionradian: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
  4528. gpstimesecondstamp: jspb.Message.getFieldWithDefault(msg, 5, 0)
  4529. };
  4530. if (includeInstance) {
  4531. obj.$jspbMessageInstance = msg;
  4532. }
  4533. return obj;
  4534. };
  4535. }
  4536. /**
  4537. * Deserializes binary data (in protobuf wire format).
  4538. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4539. * @return {!proto.to.v1.UserGpsInfo}
  4540. */
  4541. proto.to.v1.UserGpsInfo.deserializeBinary = function(bytes) {
  4542. var reader = new jspb.BinaryReader(bytes);
  4543. var msg = new proto.to.v1.UserGpsInfo;
  4544. return proto.to.v1.UserGpsInfo.deserializeBinaryFromReader(msg, reader);
  4545. };
  4546. /**
  4547. * Deserializes binary data (in protobuf wire format) from the
  4548. * given reader into the given message object.
  4549. * @param {!proto.to.v1.UserGpsInfo} msg The message object to deserialize into.
  4550. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4551. * @return {!proto.to.v1.UserGpsInfo}
  4552. */
  4553. proto.to.v1.UserGpsInfo.deserializeBinaryFromReader = function(msg, reader) {
  4554. while (reader.nextField()) {
  4555. if (reader.isEndGroup()) {
  4556. break;
  4557. }
  4558. var field = reader.getFieldNumber();
  4559. switch (field) {
  4560. case 1:
  4561. var value = /** @type {number} */ (reader.readInt32());
  4562. msg.setId(value);
  4563. break;
  4564. case 2:
  4565. var value = /** @type {number} */ (reader.readDouble());
  4566. msg.setLongitude(value);
  4567. break;
  4568. case 3:
  4569. var value = /** @type {number} */ (reader.readDouble());
  4570. msg.setLatitude(value);
  4571. break;
  4572. case 4:
  4573. var value = /** @type {number} */ (reader.readDouble());
  4574. msg.setDirectionradian(value);
  4575. break;
  4576. case 5:
  4577. var value = /** @type {number} */ (reader.readInt64());
  4578. msg.setGpstimesecondstamp(value);
  4579. break;
  4580. default:
  4581. reader.skipField();
  4582. break;
  4583. }
  4584. }
  4585. return msg;
  4586. };
  4587. /**
  4588. * Serializes the message to binary data (in protobuf wire format).
  4589. * @return {!Uint8Array}
  4590. */
  4591. proto.to.v1.UserGpsInfo.prototype.serializeBinary = function() {
  4592. var writer = new jspb.BinaryWriter();
  4593. proto.to.v1.UserGpsInfo.serializeBinaryToWriter(this, writer);
  4594. return writer.getResultBuffer();
  4595. };
  4596. /**
  4597. * Serializes the given message to binary data (in protobuf wire
  4598. * format), writing to the given BinaryWriter.
  4599. * @param {!proto.to.v1.UserGpsInfo} message
  4600. * @param {!jspb.BinaryWriter} writer
  4601. * @suppress {unusedLocalVariables} f is only used for nested messages
  4602. */
  4603. proto.to.v1.UserGpsInfo.serializeBinaryToWriter = function(message, writer) {
  4604. var f = undefined;
  4605. f = message.getId();
  4606. if (f !== 0) {
  4607. writer.writeInt32(
  4608. 1,
  4609. f
  4610. );
  4611. }
  4612. f = message.getLongitude();
  4613. if (f !== 0.0) {
  4614. writer.writeDouble(
  4615. 2,
  4616. f
  4617. );
  4618. }
  4619. f = message.getLatitude();
  4620. if (f !== 0.0) {
  4621. writer.writeDouble(
  4622. 3,
  4623. f
  4624. );
  4625. }
  4626. f = message.getDirectionradian();
  4627. if (f !== 0.0) {
  4628. writer.writeDouble(
  4629. 4,
  4630. f
  4631. );
  4632. }
  4633. f = message.getGpstimesecondstamp();
  4634. if (f !== 0) {
  4635. writer.writeInt64(
  4636. 5,
  4637. f
  4638. );
  4639. }
  4640. };
  4641. /**
  4642. * optional int32 Id = 1;
  4643. * @return {number}
  4644. */
  4645. proto.to.v1.UserGpsInfo.prototype.getId = function() {
  4646. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4647. };
  4648. /**
  4649. * @param {number} value
  4650. * @return {!proto.to.v1.UserGpsInfo} returns this
  4651. */
  4652. proto.to.v1.UserGpsInfo.prototype.setId = function(value) {
  4653. return jspb.Message.setProto3IntField(this, 1, value);
  4654. };
  4655. /**
  4656. * optional double longitude = 2;
  4657. * @return {number}
  4658. */
  4659. proto.to.v1.UserGpsInfo.prototype.getLongitude = function() {
  4660. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  4661. };
  4662. /**
  4663. * @param {number} value
  4664. * @return {!proto.to.v1.UserGpsInfo} returns this
  4665. */
  4666. proto.to.v1.UserGpsInfo.prototype.setLongitude = function(value) {
  4667. return jspb.Message.setProto3FloatField(this, 2, value);
  4668. };
  4669. /**
  4670. * optional double latitude = 3;
  4671. * @return {number}
  4672. */
  4673. proto.to.v1.UserGpsInfo.prototype.getLatitude = function() {
  4674. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
  4675. };
  4676. /**
  4677. * @param {number} value
  4678. * @return {!proto.to.v1.UserGpsInfo} returns this
  4679. */
  4680. proto.to.v1.UserGpsInfo.prototype.setLatitude = function(value) {
  4681. return jspb.Message.setProto3FloatField(this, 3, value);
  4682. };
  4683. /**
  4684. * optional double directionRadian = 4;
  4685. * @return {number}
  4686. */
  4687. proto.to.v1.UserGpsInfo.prototype.getDirectionradian = function() {
  4688. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
  4689. };
  4690. /**
  4691. * @param {number} value
  4692. * @return {!proto.to.v1.UserGpsInfo} returns this
  4693. */
  4694. proto.to.v1.UserGpsInfo.prototype.setDirectionradian = function(value) {
  4695. return jspb.Message.setProto3FloatField(this, 4, value);
  4696. };
  4697. /**
  4698. * optional int64 gpsTimeSecondStamp = 5;
  4699. * @return {number}
  4700. */
  4701. proto.to.v1.UserGpsInfo.prototype.getGpstimesecondstamp = function() {
  4702. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  4703. };
  4704. /**
  4705. * @param {number} value
  4706. * @return {!proto.to.v1.UserGpsInfo} returns this
  4707. */
  4708. proto.to.v1.UserGpsInfo.prototype.setGpstimesecondstamp = function(value) {
  4709. return jspb.Message.setProto3IntField(this, 5, value);
  4710. };
  4711. if (jspb.Message.GENERATE_TO_OBJECT) {
  4712. /**
  4713. * Creates an object representation of this proto.
  4714. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4715. * Optional fields that are not set will be set to undefined.
  4716. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4717. * For the list of reserved names please see:
  4718. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4719. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4720. * JSPB instance for transitional soy proto support:
  4721. * http://goto/soy-param-migration
  4722. * @return {!Object}
  4723. */
  4724. proto.to.v1.UserArriveControlPoint.prototype.toObject = function(opt_includeInstance) {
  4725. return proto.to.v1.UserArriveControlPoint.toObject(opt_includeInstance, this);
  4726. };
  4727. /**
  4728. * Static version of the {@see toObject} method.
  4729. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4730. * the JSPB instance for transitional soy proto support:
  4731. * http://goto/soy-param-migration
  4732. * @param {!proto.to.v1.UserArriveControlPoint} msg The msg instance to transform.
  4733. * @return {!Object}
  4734. * @suppress {unusedLocalVariables} f is only used for nested messages
  4735. */
  4736. proto.to.v1.UserArriveControlPoint.toObject = function(includeInstance, msg) {
  4737. var f, obj = {
  4738. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4739. sn: jspb.Message.getFieldWithDefault(msg, 2, ""),
  4740. millisecondstamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
  4741. category: jspb.Message.getFieldWithDefault(msg, 4, 0),
  4742. ciposition: (f = msg.getCiposition()) && base_pb.Position.toObject(includeInstance, f)
  4743. };
  4744. if (includeInstance) {
  4745. obj.$jspbMessageInstance = msg;
  4746. }
  4747. return obj;
  4748. };
  4749. }
  4750. /**
  4751. * Deserializes binary data (in protobuf wire format).
  4752. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4753. * @return {!proto.to.v1.UserArriveControlPoint}
  4754. */
  4755. proto.to.v1.UserArriveControlPoint.deserializeBinary = function(bytes) {
  4756. var reader = new jspb.BinaryReader(bytes);
  4757. var msg = new proto.to.v1.UserArriveControlPoint;
  4758. return proto.to.v1.UserArriveControlPoint.deserializeBinaryFromReader(msg, reader);
  4759. };
  4760. /**
  4761. * Deserializes binary data (in protobuf wire format) from the
  4762. * given reader into the given message object.
  4763. * @param {!proto.to.v1.UserArriveControlPoint} msg The message object to deserialize into.
  4764. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4765. * @return {!proto.to.v1.UserArriveControlPoint}
  4766. */
  4767. proto.to.v1.UserArriveControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  4768. while (reader.nextField()) {
  4769. if (reader.isEndGroup()) {
  4770. break;
  4771. }
  4772. var field = reader.getFieldNumber();
  4773. switch (field) {
  4774. case 1:
  4775. var value = /** @type {number} */ (reader.readInt64());
  4776. msg.setId(value);
  4777. break;
  4778. case 2:
  4779. var value = /** @type {string} */ (reader.readString());
  4780. msg.setSn(value);
  4781. break;
  4782. case 3:
  4783. var value = /** @type {number} */ (reader.readInt64());
  4784. msg.setMillisecondstamp(value);
  4785. break;
  4786. case 4:
  4787. var value = /** @type {number} */ (reader.readInt32());
  4788. msg.setCategory(value);
  4789. break;
  4790. case 5:
  4791. var value = new base_pb.Position;
  4792. reader.readMessage(value,base_pb.Position.deserializeBinaryFromReader);
  4793. msg.setCiposition(value);
  4794. break;
  4795. default:
  4796. reader.skipField();
  4797. break;
  4798. }
  4799. }
  4800. return msg;
  4801. };
  4802. /**
  4803. * Serializes the message to binary data (in protobuf wire format).
  4804. * @return {!Uint8Array}
  4805. */
  4806. proto.to.v1.UserArriveControlPoint.prototype.serializeBinary = function() {
  4807. var writer = new jspb.BinaryWriter();
  4808. proto.to.v1.UserArriveControlPoint.serializeBinaryToWriter(this, writer);
  4809. return writer.getResultBuffer();
  4810. };
  4811. /**
  4812. * Serializes the given message to binary data (in protobuf wire
  4813. * format), writing to the given BinaryWriter.
  4814. * @param {!proto.to.v1.UserArriveControlPoint} message
  4815. * @param {!jspb.BinaryWriter} writer
  4816. * @suppress {unusedLocalVariables} f is only used for nested messages
  4817. */
  4818. proto.to.v1.UserArriveControlPoint.serializeBinaryToWriter = function(message, writer) {
  4819. var f = undefined;
  4820. f = message.getId();
  4821. if (f !== 0) {
  4822. writer.writeInt64(
  4823. 1,
  4824. f
  4825. );
  4826. }
  4827. f = message.getSn();
  4828. if (f.length > 0) {
  4829. writer.writeString(
  4830. 2,
  4831. f
  4832. );
  4833. }
  4834. f = message.getMillisecondstamp();
  4835. if (f !== 0) {
  4836. writer.writeInt64(
  4837. 3,
  4838. f
  4839. );
  4840. }
  4841. f = message.getCategory();
  4842. if (f !== 0) {
  4843. writer.writeInt32(
  4844. 4,
  4845. f
  4846. );
  4847. }
  4848. f = message.getCiposition();
  4849. if (f != null) {
  4850. writer.writeMessage(
  4851. 5,
  4852. f,
  4853. base_pb.Position.serializeBinaryToWriter
  4854. );
  4855. }
  4856. };
  4857. /**
  4858. * optional int64 id = 1;
  4859. * @return {number}
  4860. */
  4861. proto.to.v1.UserArriveControlPoint.prototype.getId = function() {
  4862. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4863. };
  4864. /**
  4865. * @param {number} value
  4866. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4867. */
  4868. proto.to.v1.UserArriveControlPoint.prototype.setId = function(value) {
  4869. return jspb.Message.setProto3IntField(this, 1, value);
  4870. };
  4871. /**
  4872. * optional string sn = 2;
  4873. * @return {string}
  4874. */
  4875. proto.to.v1.UserArriveControlPoint.prototype.getSn = function() {
  4876. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  4877. };
  4878. /**
  4879. * @param {string} value
  4880. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4881. */
  4882. proto.to.v1.UserArriveControlPoint.prototype.setSn = function(value) {
  4883. return jspb.Message.setProto3StringField(this, 2, value);
  4884. };
  4885. /**
  4886. * optional int64 millisecondStamp = 3;
  4887. * @return {number}
  4888. */
  4889. proto.to.v1.UserArriveControlPoint.prototype.getMillisecondstamp = function() {
  4890. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  4891. };
  4892. /**
  4893. * @param {number} value
  4894. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4895. */
  4896. proto.to.v1.UserArriveControlPoint.prototype.setMillisecondstamp = function(value) {
  4897. return jspb.Message.setProto3IntField(this, 3, value);
  4898. };
  4899. /**
  4900. * optional int32 category = 4;
  4901. * @return {number}
  4902. */
  4903. proto.to.v1.UserArriveControlPoint.prototype.getCategory = function() {
  4904. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  4905. };
  4906. /**
  4907. * @param {number} value
  4908. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4909. */
  4910. proto.to.v1.UserArriveControlPoint.prototype.setCategory = function(value) {
  4911. return jspb.Message.setProto3IntField(this, 4, value);
  4912. };
  4913. /**
  4914. * optional base.v1.Position ciPosition = 5;
  4915. * @return {?proto.base.v1.Position}
  4916. */
  4917. proto.to.v1.UserArriveControlPoint.prototype.getCiposition = function() {
  4918. return /** @type{?proto.base.v1.Position} */ (
  4919. jspb.Message.getWrapperField(this, base_pb.Position, 5));
  4920. };
  4921. /**
  4922. * @param {?proto.base.v1.Position|undefined} value
  4923. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4924. */
  4925. proto.to.v1.UserArriveControlPoint.prototype.setCiposition = function(value) {
  4926. return jspb.Message.setWrapperField(this, 5, value);
  4927. };
  4928. /**
  4929. * Clears the message field making it undefined.
  4930. * @return {!proto.to.v1.UserArriveControlPoint} returns this
  4931. */
  4932. proto.to.v1.UserArriveControlPoint.prototype.clearCiposition = function() {
  4933. return this.setCiposition(undefined);
  4934. };
  4935. /**
  4936. * Returns whether this field is set.
  4937. * @return {boolean}
  4938. */
  4939. proto.to.v1.UserArriveControlPoint.prototype.hasCiposition = function() {
  4940. return jspb.Message.getField(this, 5) != null;
  4941. };
  4942. if (jspb.Message.GENERATE_TO_OBJECT) {
  4943. /**
  4944. * Creates an object representation of this proto.
  4945. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4946. * Optional fields that are not set will be set to undefined.
  4947. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4948. * For the list of reserved names please see:
  4949. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4950. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4951. * JSPB instance for transitional soy proto support:
  4952. * http://goto/soy-param-migration
  4953. * @return {!Object}
  4954. */
  4955. proto.to.v1.UserInGameInfoV2.prototype.toObject = function(opt_includeInstance) {
  4956. return proto.to.v1.UserInGameInfoV2.toObject(opt_includeInstance, this);
  4957. };
  4958. /**
  4959. * Static version of the {@see toObject} method.
  4960. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4961. * the JSPB instance for transitional soy proto support:
  4962. * http://goto/soy-param-migration
  4963. * @param {!proto.to.v1.UserInGameInfoV2} msg The msg instance to transform.
  4964. * @return {!Object}
  4965. * @suppress {unusedLocalVariables} f is only used for nested messages
  4966. */
  4967. proto.to.v1.UserInGameInfoV2.toObject = function(includeInstance, msg) {
  4968. var f, obj = {
  4969. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4970. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  4971. distance: jspb.Message.getFieldWithDefault(msg, 3, 0),
  4972. pace: jspb.Message.getFieldWithDefault(msg, 4, 0),
  4973. avghr: jspb.Message.getFieldWithDefault(msg, 5, 0),
  4974. maxhr: jspb.Message.getFieldWithDefault(msg, 6, 0),
  4975. calorie: jspb.Message.getFieldWithDefault(msg, 7, 0),
  4976. ck: jspb.Message.getFieldWithDefault(msg, 8, 0),
  4977. ei: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
  4978. effectivenum: jspb.Message.getFieldWithDefault(msg, 10, 0),
  4979. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 11, 0),
  4980. startsecondstamp: jspb.Message.getFieldWithDefault(msg, 12, 0),
  4981. endsecondstamp: jspb.Message.getFieldWithDefault(msg, 13, 0),
  4982. mstate: jspb.Message.getFieldWithDefault(msg, 14, 0),
  4983. lasthr: jspb.Message.getFieldWithDefault(msg, 15, 0),
  4984. phone: jspb.Message.getFieldWithDefault(msg, 16, ""),
  4985. actid: jspb.Message.getFieldWithDefault(msg, 17, 0),
  4986. courseid: jspb.Message.getFieldWithDefault(msg, 18, 0),
  4987. stepnum: jspb.Message.getFieldWithDefault(msg, 19, 0)
  4988. };
  4989. if (includeInstance) {
  4990. obj.$jspbMessageInstance = msg;
  4991. }
  4992. return obj;
  4993. };
  4994. }
  4995. /**
  4996. * Deserializes binary data (in protobuf wire format).
  4997. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4998. * @return {!proto.to.v1.UserInGameInfoV2}
  4999. */
  5000. proto.to.v1.UserInGameInfoV2.deserializeBinary = function(bytes) {
  5001. var reader = new jspb.BinaryReader(bytes);
  5002. var msg = new proto.to.v1.UserInGameInfoV2;
  5003. return proto.to.v1.UserInGameInfoV2.deserializeBinaryFromReader(msg, reader);
  5004. };
  5005. /**
  5006. * Deserializes binary data (in protobuf wire format) from the
  5007. * given reader into the given message object.
  5008. * @param {!proto.to.v1.UserInGameInfoV2} msg The message object to deserialize into.
  5009. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5010. * @return {!proto.to.v1.UserInGameInfoV2}
  5011. */
  5012. proto.to.v1.UserInGameInfoV2.deserializeBinaryFromReader = function(msg, reader) {
  5013. while (reader.nextField()) {
  5014. if (reader.isEndGroup()) {
  5015. break;
  5016. }
  5017. var field = reader.getFieldNumber();
  5018. switch (field) {
  5019. case 1:
  5020. var value = /** @type {number} */ (reader.readInt32());
  5021. msg.setId(value);
  5022. break;
  5023. case 2:
  5024. var value = /** @type {string} */ (reader.readString());
  5025. msg.setName(value);
  5026. break;
  5027. case 3:
  5028. var value = /** @type {number} */ (reader.readInt32());
  5029. msg.setDistance(value);
  5030. break;
  5031. case 4:
  5032. var value = /** @type {number} */ (reader.readInt32());
  5033. msg.setPace(value);
  5034. break;
  5035. case 5:
  5036. var value = /** @type {number} */ (reader.readInt32());
  5037. msg.setAvghr(value);
  5038. break;
  5039. case 6:
  5040. var value = /** @type {number} */ (reader.readInt32());
  5041. msg.setMaxhr(value);
  5042. break;
  5043. case 7:
  5044. var value = /** @type {number} */ (reader.readInt32());
  5045. msg.setCalorie(value);
  5046. break;
  5047. case 8:
  5048. var value = /** @type {number} */ (reader.readInt32());
  5049. msg.setCk(value);
  5050. break;
  5051. case 9:
  5052. var value = /** @type {number} */ (reader.readFloat());
  5053. msg.setEi(value);
  5054. break;
  5055. case 10:
  5056. var value = /** @type {number} */ (reader.readInt32());
  5057. msg.setEffectivenum(value);
  5058. break;
  5059. case 11:
  5060. var value = /** @type {number} */ (reader.readInt32());
  5061. msg.setTotalcontrolnum(value);
  5062. break;
  5063. case 12:
  5064. var value = /** @type {number} */ (reader.readInt64());
  5065. msg.setStartsecondstamp(value);
  5066. break;
  5067. case 13:
  5068. var value = /** @type {number} */ (reader.readInt64());
  5069. msg.setEndsecondstamp(value);
  5070. break;
  5071. case 14:
  5072. var value = /** @type {number} */ (reader.readInt32());
  5073. msg.setMstate(value);
  5074. break;
  5075. case 15:
  5076. var value = /** @type {number} */ (reader.readInt32());
  5077. msg.setLasthr(value);
  5078. break;
  5079. case 16:
  5080. var value = /** @type {string} */ (reader.readString());
  5081. msg.setPhone(value);
  5082. break;
  5083. case 17:
  5084. var value = /** @type {number} */ (reader.readInt32());
  5085. msg.setActid(value);
  5086. break;
  5087. case 18:
  5088. var value = /** @type {number} */ (reader.readInt32());
  5089. msg.setCourseid(value);
  5090. break;
  5091. case 19:
  5092. var value = /** @type {number} */ (reader.readInt32());
  5093. msg.setStepnum(value);
  5094. break;
  5095. default:
  5096. reader.skipField();
  5097. break;
  5098. }
  5099. }
  5100. return msg;
  5101. };
  5102. /**
  5103. * Serializes the message to binary data (in protobuf wire format).
  5104. * @return {!Uint8Array}
  5105. */
  5106. proto.to.v1.UserInGameInfoV2.prototype.serializeBinary = function() {
  5107. var writer = new jspb.BinaryWriter();
  5108. proto.to.v1.UserInGameInfoV2.serializeBinaryToWriter(this, writer);
  5109. return writer.getResultBuffer();
  5110. };
  5111. /**
  5112. * Serializes the given message to binary data (in protobuf wire
  5113. * format), writing to the given BinaryWriter.
  5114. * @param {!proto.to.v1.UserInGameInfoV2} message
  5115. * @param {!jspb.BinaryWriter} writer
  5116. * @suppress {unusedLocalVariables} f is only used for nested messages
  5117. */
  5118. proto.to.v1.UserInGameInfoV2.serializeBinaryToWriter = function(message, writer) {
  5119. var f = undefined;
  5120. f = message.getId();
  5121. if (f !== 0) {
  5122. writer.writeInt32(
  5123. 1,
  5124. f
  5125. );
  5126. }
  5127. f = message.getName();
  5128. if (f.length > 0) {
  5129. writer.writeString(
  5130. 2,
  5131. f
  5132. );
  5133. }
  5134. f = message.getDistance();
  5135. if (f !== 0) {
  5136. writer.writeInt32(
  5137. 3,
  5138. f
  5139. );
  5140. }
  5141. f = message.getPace();
  5142. if (f !== 0) {
  5143. writer.writeInt32(
  5144. 4,
  5145. f
  5146. );
  5147. }
  5148. f = message.getAvghr();
  5149. if (f !== 0) {
  5150. writer.writeInt32(
  5151. 5,
  5152. f
  5153. );
  5154. }
  5155. f = message.getMaxhr();
  5156. if (f !== 0) {
  5157. writer.writeInt32(
  5158. 6,
  5159. f
  5160. );
  5161. }
  5162. f = message.getCalorie();
  5163. if (f !== 0) {
  5164. writer.writeInt32(
  5165. 7,
  5166. f
  5167. );
  5168. }
  5169. f = message.getCk();
  5170. if (f !== 0) {
  5171. writer.writeInt32(
  5172. 8,
  5173. f
  5174. );
  5175. }
  5176. f = message.getEi();
  5177. if (f !== 0.0) {
  5178. writer.writeFloat(
  5179. 9,
  5180. f
  5181. );
  5182. }
  5183. f = message.getEffectivenum();
  5184. if (f !== 0) {
  5185. writer.writeInt32(
  5186. 10,
  5187. f
  5188. );
  5189. }
  5190. f = message.getTotalcontrolnum();
  5191. if (f !== 0) {
  5192. writer.writeInt32(
  5193. 11,
  5194. f
  5195. );
  5196. }
  5197. f = message.getStartsecondstamp();
  5198. if (f !== 0) {
  5199. writer.writeInt64(
  5200. 12,
  5201. f
  5202. );
  5203. }
  5204. f = message.getEndsecondstamp();
  5205. if (f !== 0) {
  5206. writer.writeInt64(
  5207. 13,
  5208. f
  5209. );
  5210. }
  5211. f = message.getMstate();
  5212. if (f !== 0) {
  5213. writer.writeInt32(
  5214. 14,
  5215. f
  5216. );
  5217. }
  5218. f = message.getLasthr();
  5219. if (f !== 0) {
  5220. writer.writeInt32(
  5221. 15,
  5222. f
  5223. );
  5224. }
  5225. f = message.getPhone();
  5226. if (f.length > 0) {
  5227. writer.writeString(
  5228. 16,
  5229. f
  5230. );
  5231. }
  5232. f = message.getActid();
  5233. if (f !== 0) {
  5234. writer.writeInt32(
  5235. 17,
  5236. f
  5237. );
  5238. }
  5239. f = message.getCourseid();
  5240. if (f !== 0) {
  5241. writer.writeInt32(
  5242. 18,
  5243. f
  5244. );
  5245. }
  5246. f = message.getStepnum();
  5247. if (f !== 0) {
  5248. writer.writeInt32(
  5249. 19,
  5250. f
  5251. );
  5252. }
  5253. };
  5254. /**
  5255. * optional int32 id = 1;
  5256. * @return {number}
  5257. */
  5258. proto.to.v1.UserInGameInfoV2.prototype.getId = function() {
  5259. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5260. };
  5261. /**
  5262. * @param {number} value
  5263. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5264. */
  5265. proto.to.v1.UserInGameInfoV2.prototype.setId = function(value) {
  5266. return jspb.Message.setProto3IntField(this, 1, value);
  5267. };
  5268. /**
  5269. * optional string name = 2;
  5270. * @return {string}
  5271. */
  5272. proto.to.v1.UserInGameInfoV2.prototype.getName = function() {
  5273. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5274. };
  5275. /**
  5276. * @param {string} value
  5277. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5278. */
  5279. proto.to.v1.UserInGameInfoV2.prototype.setName = function(value) {
  5280. return jspb.Message.setProto3StringField(this, 2, value);
  5281. };
  5282. /**
  5283. * optional int32 distance = 3;
  5284. * @return {number}
  5285. */
  5286. proto.to.v1.UserInGameInfoV2.prototype.getDistance = function() {
  5287. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5288. };
  5289. /**
  5290. * @param {number} value
  5291. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5292. */
  5293. proto.to.v1.UserInGameInfoV2.prototype.setDistance = function(value) {
  5294. return jspb.Message.setProto3IntField(this, 3, value);
  5295. };
  5296. /**
  5297. * optional int32 pace = 4;
  5298. * @return {number}
  5299. */
  5300. proto.to.v1.UserInGameInfoV2.prototype.getPace = function() {
  5301. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  5302. };
  5303. /**
  5304. * @param {number} value
  5305. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5306. */
  5307. proto.to.v1.UserInGameInfoV2.prototype.setPace = function(value) {
  5308. return jspb.Message.setProto3IntField(this, 4, value);
  5309. };
  5310. /**
  5311. * optional int32 avgHr = 5;
  5312. * @return {number}
  5313. */
  5314. proto.to.v1.UserInGameInfoV2.prototype.getAvghr = function() {
  5315. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  5316. };
  5317. /**
  5318. * @param {number} value
  5319. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5320. */
  5321. proto.to.v1.UserInGameInfoV2.prototype.setAvghr = function(value) {
  5322. return jspb.Message.setProto3IntField(this, 5, value);
  5323. };
  5324. /**
  5325. * optional int32 maxHr = 6;
  5326. * @return {number}
  5327. */
  5328. proto.to.v1.UserInGameInfoV2.prototype.getMaxhr = function() {
  5329. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
  5330. };
  5331. /**
  5332. * @param {number} value
  5333. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5334. */
  5335. proto.to.v1.UserInGameInfoV2.prototype.setMaxhr = function(value) {
  5336. return jspb.Message.setProto3IntField(this, 6, value);
  5337. };
  5338. /**
  5339. * optional int32 Calorie = 7;
  5340. * @return {number}
  5341. */
  5342. proto.to.v1.UserInGameInfoV2.prototype.getCalorie = function() {
  5343. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  5344. };
  5345. /**
  5346. * @param {number} value
  5347. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5348. */
  5349. proto.to.v1.UserInGameInfoV2.prototype.setCalorie = function(value) {
  5350. return jspb.Message.setProto3IntField(this, 7, value);
  5351. };
  5352. /**
  5353. * optional int32 Ck = 8;
  5354. * @return {number}
  5355. */
  5356. proto.to.v1.UserInGameInfoV2.prototype.getCk = function() {
  5357. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
  5358. };
  5359. /**
  5360. * @param {number} value
  5361. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5362. */
  5363. proto.to.v1.UserInGameInfoV2.prototype.setCk = function(value) {
  5364. return jspb.Message.setProto3IntField(this, 8, value);
  5365. };
  5366. /**
  5367. * optional float Ei = 9;
  5368. * @return {number}
  5369. */
  5370. proto.to.v1.UserInGameInfoV2.prototype.getEi = function() {
  5371. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
  5372. };
  5373. /**
  5374. * @param {number} value
  5375. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5376. */
  5377. proto.to.v1.UserInGameInfoV2.prototype.setEi = function(value) {
  5378. return jspb.Message.setProto3FloatField(this, 9, value);
  5379. };
  5380. /**
  5381. * optional int32 EffectiveNum = 10;
  5382. * @return {number}
  5383. */
  5384. proto.to.v1.UserInGameInfoV2.prototype.getEffectivenum = function() {
  5385. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
  5386. };
  5387. /**
  5388. * @param {number} value
  5389. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5390. */
  5391. proto.to.v1.UserInGameInfoV2.prototype.setEffectivenum = function(value) {
  5392. return jspb.Message.setProto3IntField(this, 10, value);
  5393. };
  5394. /**
  5395. * optional int32 TotalControlNum = 11;
  5396. * @return {number}
  5397. */
  5398. proto.to.v1.UserInGameInfoV2.prototype.getTotalcontrolnum = function() {
  5399. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
  5400. };
  5401. /**
  5402. * @param {number} value
  5403. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5404. */
  5405. proto.to.v1.UserInGameInfoV2.prototype.setTotalcontrolnum = function(value) {
  5406. return jspb.Message.setProto3IntField(this, 11, value);
  5407. };
  5408. /**
  5409. * optional int64 startSecondStamp = 12;
  5410. * @return {number}
  5411. */
  5412. proto.to.v1.UserInGameInfoV2.prototype.getStartsecondstamp = function() {
  5413. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
  5414. };
  5415. /**
  5416. * @param {number} value
  5417. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5418. */
  5419. proto.to.v1.UserInGameInfoV2.prototype.setStartsecondstamp = function(value) {
  5420. return jspb.Message.setProto3IntField(this, 12, value);
  5421. };
  5422. /**
  5423. * optional int64 endSecondStamp = 13;
  5424. * @return {number}
  5425. */
  5426. proto.to.v1.UserInGameInfoV2.prototype.getEndsecondstamp = function() {
  5427. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
  5428. };
  5429. /**
  5430. * @param {number} value
  5431. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5432. */
  5433. proto.to.v1.UserInGameInfoV2.prototype.setEndsecondstamp = function(value) {
  5434. return jspb.Message.setProto3IntField(this, 13, value);
  5435. };
  5436. /**
  5437. * optional int32 mState = 14;
  5438. * @return {number}
  5439. */
  5440. proto.to.v1.UserInGameInfoV2.prototype.getMstate = function() {
  5441. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
  5442. };
  5443. /**
  5444. * @param {number} value
  5445. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5446. */
  5447. proto.to.v1.UserInGameInfoV2.prototype.setMstate = function(value) {
  5448. return jspb.Message.setProto3IntField(this, 14, value);
  5449. };
  5450. /**
  5451. * optional int32 lastHr = 15;
  5452. * @return {number}
  5453. */
  5454. proto.to.v1.UserInGameInfoV2.prototype.getLasthr = function() {
  5455. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
  5456. };
  5457. /**
  5458. * @param {number} value
  5459. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5460. */
  5461. proto.to.v1.UserInGameInfoV2.prototype.setLasthr = function(value) {
  5462. return jspb.Message.setProto3IntField(this, 15, value);
  5463. };
  5464. /**
  5465. * optional string phone = 16;
  5466. * @return {string}
  5467. */
  5468. proto.to.v1.UserInGameInfoV2.prototype.getPhone = function() {
  5469. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
  5470. };
  5471. /**
  5472. * @param {string} value
  5473. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5474. */
  5475. proto.to.v1.UserInGameInfoV2.prototype.setPhone = function(value) {
  5476. return jspb.Message.setProto3StringField(this, 16, value);
  5477. };
  5478. /**
  5479. * optional int32 actId = 17;
  5480. * @return {number}
  5481. */
  5482. proto.to.v1.UserInGameInfoV2.prototype.getActid = function() {
  5483. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
  5484. };
  5485. /**
  5486. * @param {number} value
  5487. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5488. */
  5489. proto.to.v1.UserInGameInfoV2.prototype.setActid = function(value) {
  5490. return jspb.Message.setProto3IntField(this, 17, value);
  5491. };
  5492. /**
  5493. * optional int32 courseId = 18;
  5494. * @return {number}
  5495. */
  5496. proto.to.v1.UserInGameInfoV2.prototype.getCourseid = function() {
  5497. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
  5498. };
  5499. /**
  5500. * @param {number} value
  5501. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5502. */
  5503. proto.to.v1.UserInGameInfoV2.prototype.setCourseid = function(value) {
  5504. return jspb.Message.setProto3IntField(this, 18, value);
  5505. };
  5506. /**
  5507. * optional int32 stepNum = 19;
  5508. * @return {number}
  5509. */
  5510. proto.to.v1.UserInGameInfoV2.prototype.getStepnum = function() {
  5511. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
  5512. };
  5513. /**
  5514. * @param {number} value
  5515. * @return {!proto.to.v1.UserInGameInfoV2} returns this
  5516. */
  5517. proto.to.v1.UserInGameInfoV2.prototype.setStepnum = function(value) {
  5518. return jspb.Message.setProto3IntField(this, 19, value);
  5519. };
  5520. goog.object.extend(exports, proto.to.v1);