im_pb.js 223 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545
  1. // source: im.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')();
  16. goog.exportSymbol('proto.im.Column', null, global);
  17. goog.exportSymbol('proto.im.CreateReply', null, global);
  18. goog.exportSymbol('proto.im.CreateRoleRequest', null, global);
  19. goog.exportSymbol('proto.im.CreateShopRequest', null, global);
  20. goog.exportSymbol('proto.im.CreateSystemRequest', null, global);
  21. goog.exportSymbol('proto.im.DefaultReply', null, global);
  22. goog.exportSymbol('proto.im.DefaultRequest', null, global);
  23. goog.exportSymbol('proto.im.ErrorCode', null, global);
  24. goog.exportSymbol('proto.im.Message', null, global);
  25. goog.exportSymbol('proto.im.Message.Level', null, global);
  26. goog.exportSymbol('proto.im.PermissionCheck', null, global);
  27. goog.exportSymbol('proto.im.Role', null, global);
  28. goog.exportSymbol('proto.im.RoleListReply', null, global);
  29. goog.exportSymbol('proto.im.RoleListRequest', null, global);
  30. goog.exportSymbol('proto.im.RolePermissionRequest', null, global);
  31. goog.exportSymbol('proto.im.SaveServiceListRequest', null, global);
  32. goog.exportSymbol('proto.im.Service', null, global);
  33. goog.exportSymbol('proto.im.ServiceListReply', null, global);
  34. goog.exportSymbol('proto.im.ServiceListRequest', null, global);
  35. goog.exportSymbol('proto.im.ServiceRemoveRequest', null, global);
  36. goog.exportSymbol('proto.im.SessionCheckReply', null, global);
  37. goog.exportSymbol('proto.im.ShopInfo', null, global);
  38. goog.exportSymbol('proto.im.ShopListReply', null, global);
  39. goog.exportSymbol('proto.im.ShopListRequest', null, global);
  40. goog.exportSymbol('proto.im.SignInPasswordRequest', null, global);
  41. goog.exportSymbol('proto.im.SignUpReply', null, global);
  42. goog.exportSymbol('proto.im.SignUpRequest', null, global);
  43. goog.exportSymbol('proto.im.Status', null, global);
  44. goog.exportSymbol('proto.im.SystemAddShopRequest', null, global);
  45. goog.exportSymbol('proto.im.SystemAddUserRequest', null, global);
  46. goog.exportSymbol('proto.im.TokenParam', null, global);
  47. goog.exportSymbol('proto.im.UserGetColumnListReply', null, global);
  48. goog.exportSymbol('proto.im.UserGetColumnListRequest', null, global);
  49. goog.exportSymbol('proto.im.UserGetInfoRequest', null, global);
  50. goog.exportSymbol('proto.im.UserInfo', null, global);
  51. goog.exportSymbol('proto.im.UserListReply', null, global);
  52. goog.exportSymbol('proto.im.UserListRequest', null, global);
  53. goog.exportSymbol('proto.im.UserRolesRequest', null, global);
  54. /**
  55. * Generated by JsPbCodeGenerator.
  56. * @param {Array=} opt_data Optional initial data array, typically from a
  57. * server response, or constructed directly in Javascript. The array is used
  58. * in place and becomes part of the constructed object. It is not cloned.
  59. * If no data is provided, the constructed object will be empty, but still
  60. * valid.
  61. * @extends {jspb.Message}
  62. * @constructor
  63. */
  64. proto.im.DefaultRequest = function (opt_data) {
  65. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  66. };
  67. goog.inherits(proto.im.DefaultRequest, jspb.Message);
  68. if (goog.DEBUG && !COMPILED) {
  69. /**
  70. * @public
  71. * @override
  72. */
  73. proto.im.DefaultRequest.displayName = 'proto.im.DefaultRequest';
  74. }
  75. /**
  76. * Generated by JsPbCodeGenerator.
  77. * @param {Array=} opt_data Optional initial data array, typically from a
  78. * server response, or constructed directly in Javascript. The array is used
  79. * in place and becomes part of the constructed object. It is not cloned.
  80. * If no data is provided, the constructed object will be empty, but still
  81. * valid.
  82. * @extends {jspb.Message}
  83. * @constructor
  84. */
  85. proto.im.TokenParam = function (opt_data) {
  86. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  87. };
  88. goog.inherits(proto.im.TokenParam, jspb.Message);
  89. if (goog.DEBUG && !COMPILED) {
  90. /**
  91. * @public
  92. * @override
  93. */
  94. proto.im.TokenParam.displayName = 'proto.im.TokenParam';
  95. }
  96. /**
  97. * Generated by JsPbCodeGenerator.
  98. * @param {Array=} opt_data Optional initial data array, typically from a
  99. * server response, or constructed directly in Javascript. The array is used
  100. * in place and becomes part of the constructed object. It is not cloned.
  101. * If no data is provided, the constructed object will be empty, but still
  102. * valid.
  103. * @extends {jspb.Message}
  104. * @constructor
  105. */
  106. proto.im.DefaultReply = function (opt_data) {
  107. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  108. };
  109. goog.inherits(proto.im.DefaultReply, jspb.Message);
  110. if (goog.DEBUG && !COMPILED) {
  111. /**
  112. * @public
  113. * @override
  114. */
  115. proto.im.DefaultReply.displayName = 'proto.im.DefaultReply';
  116. }
  117. /**
  118. * Generated by JsPbCodeGenerator.
  119. * @param {Array=} opt_data Optional initial data array, typically from a
  120. * server response, or constructed directly in Javascript. The array is used
  121. * in place and becomes part of the constructed object. It is not cloned.
  122. * If no data is provided, the constructed object will be empty, but still
  123. * valid.
  124. * @extends {jspb.Message}
  125. * @constructor
  126. */
  127. proto.im.SignUpReply = function (opt_data) {
  128. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  129. };
  130. goog.inherits(proto.im.SignUpReply, jspb.Message);
  131. if (goog.DEBUG && !COMPILED) {
  132. /**
  133. * @public
  134. * @override
  135. */
  136. proto.im.SignUpReply.displayName = 'proto.im.SignUpReply';
  137. }
  138. /**
  139. * Generated by JsPbCodeGenerator.
  140. * @param {Array=} opt_data Optional initial data array, typically from a
  141. * server response, or constructed directly in Javascript. The array is used
  142. * in place and becomes part of the constructed object. It is not cloned.
  143. * If no data is provided, the constructed object will be empty, but still
  144. * valid.
  145. * @extends {jspb.Message}
  146. * @constructor
  147. */
  148. proto.im.SignInPasswordRequest = function (opt_data) {
  149. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  150. };
  151. goog.inherits(proto.im.SignInPasswordRequest, jspb.Message);
  152. if (goog.DEBUG && !COMPILED) {
  153. /**
  154. * @public
  155. * @override
  156. */
  157. proto.im.SignInPasswordRequest.displayName = 'proto.im.SignInPasswordRequest';
  158. }
  159. /**
  160. * Generated by JsPbCodeGenerator.
  161. * @param {Array=} opt_data Optional initial data array, typically from a
  162. * server response, or constructed directly in Javascript. The array is used
  163. * in place and becomes part of the constructed object. It is not cloned.
  164. * If no data is provided, the constructed object will be empty, but still
  165. * valid.
  166. * @extends {jspb.Message}
  167. * @constructor
  168. */
  169. proto.im.SignUpRequest = function (opt_data) {
  170. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  171. };
  172. goog.inherits(proto.im.SignUpRequest, jspb.Message);
  173. if (goog.DEBUG && !COMPILED) {
  174. /**
  175. * @public
  176. * @override
  177. */
  178. proto.im.SignUpRequest.displayName = 'proto.im.SignUpRequest';
  179. }
  180. /**
  181. * Generated by JsPbCodeGenerator.
  182. * @param {Array=} opt_data Optional initial data array, typically from a
  183. * server response, or constructed directly in Javascript. The array is used
  184. * in place and becomes part of the constructed object. It is not cloned.
  185. * If no data is provided, the constructed object will be empty, but still
  186. * valid.
  187. * @extends {jspb.Message}
  188. * @constructor
  189. */
  190. proto.im.UserInfo = function (opt_data) {
  191. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  192. };
  193. goog.inherits(proto.im.UserInfo, jspb.Message);
  194. if (goog.DEBUG && !COMPILED) {
  195. /**
  196. * @public
  197. * @override
  198. */
  199. proto.im.UserInfo.displayName = 'proto.im.UserInfo';
  200. }
  201. /**
  202. * Generated by JsPbCodeGenerator.
  203. * @param {Array=} opt_data Optional initial data array, typically from a
  204. * server response, or constructed directly in Javascript. The array is used
  205. * in place and becomes part of the constructed object. It is not cloned.
  206. * If no data is provided, the constructed object will be empty, but still
  207. * valid.
  208. * @extends {jspb.Message}
  209. * @constructor
  210. */
  211. proto.im.CreateReply = function (opt_data) {
  212. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  213. };
  214. goog.inherits(proto.im.CreateReply, jspb.Message);
  215. if (goog.DEBUG && !COMPILED) {
  216. /**
  217. * @public
  218. * @override
  219. */
  220. proto.im.CreateReply.displayName = 'proto.im.CreateReply';
  221. }
  222. /**
  223. * Generated by JsPbCodeGenerator.
  224. * @param {Array=} opt_data Optional initial data array, typically from a
  225. * server response, or constructed directly in Javascript. The array is used
  226. * in place and becomes part of the constructed object. It is not cloned.
  227. * If no data is provided, the constructed object will be empty, but still
  228. * valid.
  229. * @extends {jspb.Message}
  230. * @constructor
  231. */
  232. proto.im.PermissionCheck = function (opt_data) {
  233. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  234. };
  235. goog.inherits(proto.im.PermissionCheck, jspb.Message);
  236. if (goog.DEBUG && !COMPILED) {
  237. /**
  238. * @public
  239. * @override
  240. */
  241. proto.im.PermissionCheck.displayName = 'proto.im.PermissionCheck';
  242. }
  243. /**
  244. * Generated by JsPbCodeGenerator.
  245. * @param {Array=} opt_data Optional initial data array, typically from a
  246. * server response, or constructed directly in Javascript. The array is used
  247. * in place and becomes part of the constructed object. It is not cloned.
  248. * If no data is provided, the constructed object will be empty, but still
  249. * valid.
  250. * @extends {jspb.Message}
  251. * @constructor
  252. */
  253. proto.im.SessionCheckReply = function (opt_data) {
  254. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  255. };
  256. goog.inherits(proto.im.SessionCheckReply, jspb.Message);
  257. if (goog.DEBUG && !COMPILED) {
  258. /**
  259. * @public
  260. * @override
  261. */
  262. proto.im.SessionCheckReply.displayName = 'proto.im.SessionCheckReply';
  263. }
  264. /**
  265. * Generated by JsPbCodeGenerator.
  266. * @param {Array=} opt_data Optional initial data array, typically from a
  267. * server response, or constructed directly in Javascript. The array is used
  268. * in place and becomes part of the constructed object. It is not cloned.
  269. * If no data is provided, the constructed object will be empty, but still
  270. * valid.
  271. * @extends {jspb.Message}
  272. * @constructor
  273. */
  274. proto.im.Service = function (opt_data) {
  275. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  276. };
  277. goog.inherits(proto.im.Service, jspb.Message);
  278. if (goog.DEBUG && !COMPILED) {
  279. /**
  280. * @public
  281. * @override
  282. */
  283. proto.im.Service.displayName = 'proto.im.Service';
  284. }
  285. /**
  286. * Generated by JsPbCodeGenerator.
  287. * @param {Array=} opt_data Optional initial data array, typically from a
  288. * server response, or constructed directly in Javascript. The array is used
  289. * in place and becomes part of the constructed object. It is not cloned.
  290. * If no data is provided, the constructed object will be empty, but still
  291. * valid.
  292. * @extends {jspb.Message}
  293. * @constructor
  294. */
  295. proto.im.SaveServiceListRequest = function (opt_data) {
  296. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.SaveServiceListRequest.repeatedFields_, null);
  297. };
  298. goog.inherits(proto.im.SaveServiceListRequest, jspb.Message);
  299. if (goog.DEBUG && !COMPILED) {
  300. /**
  301. * @public
  302. * @override
  303. */
  304. proto.im.SaveServiceListRequest.displayName = 'proto.im.SaveServiceListRequest';
  305. }
  306. /**
  307. * Generated by JsPbCodeGenerator.
  308. * @param {Array=} opt_data Optional initial data array, typically from a
  309. * server response, or constructed directly in Javascript. The array is used
  310. * in place and becomes part of the constructed object. It is not cloned.
  311. * If no data is provided, the constructed object will be empty, but still
  312. * valid.
  313. * @extends {jspb.Message}
  314. * @constructor
  315. */
  316. proto.im.CreateSystemRequest = function (opt_data) {
  317. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  318. };
  319. goog.inherits(proto.im.CreateSystemRequest, jspb.Message);
  320. if (goog.DEBUG && !COMPILED) {
  321. /**
  322. * @public
  323. * @override
  324. */
  325. proto.im.CreateSystemRequest.displayName = 'proto.im.CreateSystemRequest';
  326. }
  327. /**
  328. * Generated by JsPbCodeGenerator.
  329. * @param {Array=} opt_data Optional initial data array, typically from a
  330. * server response, or constructed directly in Javascript. The array is used
  331. * in place and becomes part of the constructed object. It is not cloned.
  332. * If no data is provided, the constructed object will be empty, but still
  333. * valid.
  334. * @extends {jspb.Message}
  335. * @constructor
  336. */
  337. proto.im.UserGetColumnListRequest = function (opt_data) {
  338. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  339. };
  340. goog.inherits(proto.im.UserGetColumnListRequest, jspb.Message);
  341. if (goog.DEBUG && !COMPILED) {
  342. /**
  343. * @public
  344. * @override
  345. */
  346. proto.im.UserGetColumnListRequest.displayName = 'proto.im.UserGetColumnListRequest';
  347. }
  348. /**
  349. * Generated by JsPbCodeGenerator.
  350. * @param {Array=} opt_data Optional initial data array, typically from a
  351. * server response, or constructed directly in Javascript. The array is used
  352. * in place and becomes part of the constructed object. It is not cloned.
  353. * If no data is provided, the constructed object will be empty, but still
  354. * valid.
  355. * @extends {jspb.Message}
  356. * @constructor
  357. */
  358. proto.im.Column = function (opt_data) {
  359. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  360. };
  361. goog.inherits(proto.im.Column, jspb.Message);
  362. if (goog.DEBUG && !COMPILED) {
  363. /**
  364. * @public
  365. * @override
  366. */
  367. proto.im.Column.displayName = 'proto.im.Column';
  368. }
  369. /**
  370. * Generated by JsPbCodeGenerator.
  371. * @param {Array=} opt_data Optional initial data array, typically from a
  372. * server response, or constructed directly in Javascript. The array is used
  373. * in place and becomes part of the constructed object. It is not cloned.
  374. * If no data is provided, the constructed object will be empty, but still
  375. * valid.
  376. * @extends {jspb.Message}
  377. * @constructor
  378. */
  379. proto.im.UserGetColumnListReply = function (opt_data) {
  380. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.UserGetColumnListReply.repeatedFields_, null);
  381. };
  382. goog.inherits(proto.im.UserGetColumnListReply, jspb.Message);
  383. if (goog.DEBUG && !COMPILED) {
  384. /**
  385. * @public
  386. * @override
  387. */
  388. proto.im.UserGetColumnListReply.displayName = 'proto.im.UserGetColumnListReply';
  389. }
  390. /**
  391. * Generated by JsPbCodeGenerator.
  392. * @param {Array=} opt_data Optional initial data array, typically from a
  393. * server response, or constructed directly in Javascript. The array is used
  394. * in place and becomes part of the constructed object. It is not cloned.
  395. * If no data is provided, the constructed object will be empty, but still
  396. * valid.
  397. * @extends {jspb.Message}
  398. * @constructor
  399. */
  400. proto.im.CreateRoleRequest = function (opt_data) {
  401. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  402. };
  403. goog.inherits(proto.im.CreateRoleRequest, jspb.Message);
  404. if (goog.DEBUG && !COMPILED) {
  405. /**
  406. * @public
  407. * @override
  408. */
  409. proto.im.CreateRoleRequest.displayName = 'proto.im.CreateRoleRequest';
  410. }
  411. /**
  412. * Generated by JsPbCodeGenerator.
  413. * @param {Array=} opt_data Optional initial data array, typically from a
  414. * server response, or constructed directly in Javascript. The array is used
  415. * in place and becomes part of the constructed object. It is not cloned.
  416. * If no data is provided, the constructed object will be empty, but still
  417. * valid.
  418. * @extends {jspb.Message}
  419. * @constructor
  420. */
  421. proto.im.Role = function (opt_data) {
  422. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  423. };
  424. goog.inherits(proto.im.Role, jspb.Message);
  425. if (goog.DEBUG && !COMPILED) {
  426. /**
  427. * @public
  428. * @override
  429. */
  430. proto.im.Role.displayName = 'proto.im.Role';
  431. }
  432. /**
  433. * Generated by JsPbCodeGenerator.
  434. * @param {Array=} opt_data Optional initial data array, typically from a
  435. * server response, or constructed directly in Javascript. The array is used
  436. * in place and becomes part of the constructed object. It is not cloned.
  437. * If no data is provided, the constructed object will be empty, but still
  438. * valid.
  439. * @extends {jspb.Message}
  440. * @constructor
  441. */
  442. proto.im.RoleListRequest = function (opt_data) {
  443. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  444. };
  445. goog.inherits(proto.im.RoleListRequest, jspb.Message);
  446. if (goog.DEBUG && !COMPILED) {
  447. /**
  448. * @public
  449. * @override
  450. */
  451. proto.im.RoleListRequest.displayName = 'proto.im.RoleListRequest';
  452. }
  453. /**
  454. * Generated by JsPbCodeGenerator.
  455. * @param {Array=} opt_data Optional initial data array, typically from a
  456. * server response, or constructed directly in Javascript. The array is used
  457. * in place and becomes part of the constructed object. It is not cloned.
  458. * If no data is provided, the constructed object will be empty, but still
  459. * valid.
  460. * @extends {jspb.Message}
  461. * @constructor
  462. */
  463. proto.im.UserListRequest = function (opt_data) {
  464. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  465. };
  466. goog.inherits(proto.im.UserListRequest, jspb.Message);
  467. if (goog.DEBUG && !COMPILED) {
  468. /**
  469. * @public
  470. * @override
  471. */
  472. proto.im.UserListRequest.displayName = 'proto.im.UserListRequest';
  473. }
  474. /**
  475. * Generated by JsPbCodeGenerator.
  476. * @param {Array=} opt_data Optional initial data array, typically from a
  477. * server response, or constructed directly in Javascript. The array is used
  478. * in place and becomes part of the constructed object. It is not cloned.
  479. * If no data is provided, the constructed object will be empty, but still
  480. * valid.
  481. * @extends {jspb.Message}
  482. * @constructor
  483. */
  484. proto.im.UserListReply = function (opt_data) {
  485. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.UserListReply.repeatedFields_, null);
  486. };
  487. goog.inherits(proto.im.UserListReply, jspb.Message);
  488. if (goog.DEBUG && !COMPILED) {
  489. /**
  490. * @public
  491. * @override
  492. */
  493. proto.im.UserListReply.displayName = 'proto.im.UserListReply';
  494. }
  495. /**
  496. * Generated by JsPbCodeGenerator.
  497. * @param {Array=} opt_data Optional initial data array, typically from a
  498. * server response, or constructed directly in Javascript. The array is used
  499. * in place and becomes part of the constructed object. It is not cloned.
  500. * If no data is provided, the constructed object will be empty, but still
  501. * valid.
  502. * @extends {jspb.Message}
  503. * @constructor
  504. */
  505. proto.im.UserGetInfoRequest = function (opt_data) {
  506. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  507. };
  508. goog.inherits(proto.im.UserGetInfoRequest, jspb.Message);
  509. if (goog.DEBUG && !COMPILED) {
  510. /**
  511. * @public
  512. * @override
  513. */
  514. proto.im.UserGetInfoRequest.displayName = 'proto.im.UserGetInfoRequest';
  515. }
  516. /**
  517. * Generated by JsPbCodeGenerator.
  518. * @param {Array=} opt_data Optional initial data array, typically from a
  519. * server response, or constructed directly in Javascript. The array is used
  520. * in place and becomes part of the constructed object. It is not cloned.
  521. * If no data is provided, the constructed object will be empty, but still
  522. * valid.
  523. * @extends {jspb.Message}
  524. * @constructor
  525. */
  526. proto.im.UserRolesRequest = function (opt_data) {
  527. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.UserRolesRequest.repeatedFields_, null);
  528. };
  529. goog.inherits(proto.im.UserRolesRequest, jspb.Message);
  530. if (goog.DEBUG && !COMPILED) {
  531. /**
  532. * @public
  533. * @override
  534. */
  535. proto.im.UserRolesRequest.displayName = 'proto.im.UserRolesRequest';
  536. }
  537. /**
  538. * Generated by JsPbCodeGenerator.
  539. * @param {Array=} opt_data Optional initial data array, typically from a
  540. * server response, or constructed directly in Javascript. The array is used
  541. * in place and becomes part of the constructed object. It is not cloned.
  542. * If no data is provided, the constructed object will be empty, but still
  543. * valid.
  544. * @extends {jspb.Message}
  545. * @constructor
  546. */
  547. proto.im.RoleListReply = function (opt_data) {
  548. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.RoleListReply.repeatedFields_, null);
  549. };
  550. goog.inherits(proto.im.RoleListReply, jspb.Message);
  551. if (goog.DEBUG && !COMPILED) {
  552. /**
  553. * @public
  554. * @override
  555. */
  556. proto.im.RoleListReply.displayName = 'proto.im.RoleListReply';
  557. }
  558. /**
  559. * Generated by JsPbCodeGenerator.
  560. * @param {Array=} opt_data Optional initial data array, typically from a
  561. * server response, or constructed directly in Javascript. The array is used
  562. * in place and becomes part of the constructed object. It is not cloned.
  563. * If no data is provided, the constructed object will be empty, but still
  564. * valid.
  565. * @extends {jspb.Message}
  566. * @constructor
  567. */
  568. proto.im.RolePermissionRequest = function (opt_data) {
  569. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.RolePermissionRequest.repeatedFields_, null);
  570. };
  571. goog.inherits(proto.im.RolePermissionRequest, jspb.Message);
  572. if (goog.DEBUG && !COMPILED) {
  573. /**
  574. * @public
  575. * @override
  576. */
  577. proto.im.RolePermissionRequest.displayName = 'proto.im.RolePermissionRequest';
  578. }
  579. /**
  580. * Generated by JsPbCodeGenerator.
  581. * @param {Array=} opt_data Optional initial data array, typically from a
  582. * server response, or constructed directly in Javascript. The array is used
  583. * in place and becomes part of the constructed object. It is not cloned.
  584. * If no data is provided, the constructed object will be empty, but still
  585. * valid.
  586. * @extends {jspb.Message}
  587. * @constructor
  588. */
  589. proto.im.ServiceListRequest = function (opt_data) {
  590. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  591. };
  592. goog.inherits(proto.im.ServiceListRequest, jspb.Message);
  593. if (goog.DEBUG && !COMPILED) {
  594. /**
  595. * @public
  596. * @override
  597. */
  598. proto.im.ServiceListRequest.displayName = 'proto.im.ServiceListRequest';
  599. }
  600. /**
  601. * Generated by JsPbCodeGenerator.
  602. * @param {Array=} opt_data Optional initial data array, typically from a
  603. * server response, or constructed directly in Javascript. The array is used
  604. * in place and becomes part of the constructed object. It is not cloned.
  605. * If no data is provided, the constructed object will be empty, but still
  606. * valid.
  607. * @extends {jspb.Message}
  608. * @constructor
  609. */
  610. proto.im.ServiceListReply = function (opt_data) {
  611. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.ServiceListReply.repeatedFields_, null);
  612. };
  613. goog.inherits(proto.im.ServiceListReply, jspb.Message);
  614. if (goog.DEBUG && !COMPILED) {
  615. /**
  616. * @public
  617. * @override
  618. */
  619. proto.im.ServiceListReply.displayName = 'proto.im.ServiceListReply';
  620. }
  621. /**
  622. * Generated by JsPbCodeGenerator.
  623. * @param {Array=} opt_data Optional initial data array, typically from a
  624. * server response, or constructed directly in Javascript. The array is used
  625. * in place and becomes part of the constructed object. It is not cloned.
  626. * If no data is provided, the constructed object will be empty, but still
  627. * valid.
  628. * @extends {jspb.Message}
  629. * @constructor
  630. */
  631. proto.im.ServiceRemoveRequest = function (opt_data) {
  632. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.ServiceRemoveRequest.repeatedFields_, null);
  633. };
  634. goog.inherits(proto.im.ServiceRemoveRequest, jspb.Message);
  635. if (goog.DEBUG && !COMPILED) {
  636. /**
  637. * @public
  638. * @override
  639. */
  640. proto.im.ServiceRemoveRequest.displayName = 'proto.im.ServiceRemoveRequest';
  641. }
  642. /**
  643. * Generated by JsPbCodeGenerator.
  644. * @param {Array=} opt_data Optional initial data array, typically from a
  645. * server response, or constructed directly in Javascript. The array is used
  646. * in place and becomes part of the constructed object. It is not cloned.
  647. * If no data is provided, the constructed object will be empty, but still
  648. * valid.
  649. * @extends {jspb.Message}
  650. * @constructor
  651. */
  652. proto.im.CreateShopRequest = function (opt_data) {
  653. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  654. };
  655. goog.inherits(proto.im.CreateShopRequest, jspb.Message);
  656. if (goog.DEBUG && !COMPILED) {
  657. /**
  658. * @public
  659. * @override
  660. */
  661. proto.im.CreateShopRequest.displayName = 'proto.im.CreateShopRequest';
  662. }
  663. /**
  664. * Generated by JsPbCodeGenerator.
  665. * @param {Array=} opt_data Optional initial data array, typically from a
  666. * server response, or constructed directly in Javascript. The array is used
  667. * in place and becomes part of the constructed object. It is not cloned.
  668. * If no data is provided, the constructed object will be empty, but still
  669. * valid.
  670. * @extends {jspb.Message}
  671. * @constructor
  672. */
  673. proto.im.ShopListRequest = function (opt_data) {
  674. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  675. };
  676. goog.inherits(proto.im.ShopListRequest, jspb.Message);
  677. if (goog.DEBUG && !COMPILED) {
  678. /**
  679. * @public
  680. * @override
  681. */
  682. proto.im.ShopListRequest.displayName = 'proto.im.ShopListRequest';
  683. }
  684. /**
  685. * Generated by JsPbCodeGenerator.
  686. * @param {Array=} opt_data Optional initial data array, typically from a
  687. * server response, or constructed directly in Javascript. The array is used
  688. * in place and becomes part of the constructed object. It is not cloned.
  689. * If no data is provided, the constructed object will be empty, but still
  690. * valid.
  691. * @extends {jspb.Message}
  692. * @constructor
  693. */
  694. proto.im.ShopInfo = function (opt_data) {
  695. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  696. };
  697. goog.inherits(proto.im.ShopInfo, jspb.Message);
  698. if (goog.DEBUG && !COMPILED) {
  699. /**
  700. * @public
  701. * @override
  702. */
  703. proto.im.ShopInfo.displayName = 'proto.im.ShopInfo';
  704. }
  705. /**
  706. * Generated by JsPbCodeGenerator.
  707. * @param {Array=} opt_data Optional initial data array, typically from a
  708. * server response, or constructed directly in Javascript. The array is used
  709. * in place and becomes part of the constructed object. It is not cloned.
  710. * If no data is provided, the constructed object will be empty, but still
  711. * valid.
  712. * @extends {jspb.Message}
  713. * @constructor
  714. */
  715. proto.im.ShopListReply = function (opt_data) {
  716. jspb.Message.initialize(this, opt_data, 0, -1, proto.im.ShopListReply.repeatedFields_, null);
  717. };
  718. goog.inherits(proto.im.ShopListReply, jspb.Message);
  719. if (goog.DEBUG && !COMPILED) {
  720. /**
  721. * @public
  722. * @override
  723. */
  724. proto.im.ShopListReply.displayName = 'proto.im.ShopListReply';
  725. }
  726. /**
  727. * Generated by JsPbCodeGenerator.
  728. * @param {Array=} opt_data Optional initial data array, typically from a
  729. * server response, or constructed directly in Javascript. The array is used
  730. * in place and becomes part of the constructed object. It is not cloned.
  731. * If no data is provided, the constructed object will be empty, but still
  732. * valid.
  733. * @extends {jspb.Message}
  734. * @constructor
  735. */
  736. proto.im.SystemAddShopRequest = function (opt_data) {
  737. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  738. };
  739. goog.inherits(proto.im.SystemAddShopRequest, jspb.Message);
  740. if (goog.DEBUG && !COMPILED) {
  741. /**
  742. * @public
  743. * @override
  744. */
  745. proto.im.SystemAddShopRequest.displayName = 'proto.im.SystemAddShopRequest';
  746. }
  747. /**
  748. * Generated by JsPbCodeGenerator.
  749. * @param {Array=} opt_data Optional initial data array, typically from a
  750. * server response, or constructed directly in Javascript. The array is used
  751. * in place and becomes part of the constructed object. It is not cloned.
  752. * If no data is provided, the constructed object will be empty, but still
  753. * valid.
  754. * @extends {jspb.Message}
  755. * @constructor
  756. */
  757. proto.im.SystemAddUserRequest = function (opt_data) {
  758. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  759. };
  760. goog.inherits(proto.im.SystemAddUserRequest, jspb.Message);
  761. if (goog.DEBUG && !COMPILED) {
  762. /**
  763. * @public
  764. * @override
  765. */
  766. proto.im.SystemAddUserRequest.displayName = 'proto.im.SystemAddUserRequest';
  767. }
  768. /**
  769. * Generated by JsPbCodeGenerator.
  770. * @param {Array=} opt_data Optional initial data array, typically from a
  771. * server response, or constructed directly in Javascript. The array is used
  772. * in place and becomes part of the constructed object. It is not cloned.
  773. * If no data is provided, the constructed object will be empty, but still
  774. * valid.
  775. * @extends {jspb.Message}
  776. * @constructor
  777. */
  778. proto.im.Message = function (opt_data) {
  779. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  780. };
  781. goog.inherits(proto.im.Message, jspb.Message);
  782. if (goog.DEBUG && !COMPILED) {
  783. /**
  784. * @public
  785. * @override
  786. */
  787. proto.im.Message.displayName = 'proto.im.Message';
  788. }
  789. if (jspb.Message.GENERATE_TO_OBJECT) {
  790. /**
  791. * Creates an object representation of this proto.
  792. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  793. * Optional fields that are not set will be set to undefined.
  794. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  795. * For the list of reserved names please see:
  796. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  797. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  798. * JSPB instance for transitional soy proto support:
  799. * http://goto/soy-param-migration
  800. * @return {!Object}
  801. */
  802. proto.im.DefaultRequest.prototype.toObject = function (opt_includeInstance) {
  803. return proto.im.DefaultRequest.toObject(opt_includeInstance, this);
  804. };
  805. /**
  806. * Static version of the {@see toObject} method.
  807. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  808. * the JSPB instance for transitional soy proto support:
  809. * http://goto/soy-param-migration
  810. * @param {!proto.im.DefaultRequest} msg The msg instance to transform.
  811. * @return {!Object}
  812. * @suppress {unusedLocalVariables} f is only used for nested messages
  813. */
  814. proto.im.DefaultRequest.toObject = function (includeInstance, msg) {
  815. var f, obj = {};
  816. if (includeInstance) {
  817. obj.$jspbMessageInstance = msg;
  818. }
  819. return obj;
  820. };
  821. }
  822. /**
  823. * Deserializes binary data (in protobuf wire format).
  824. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  825. * @return {!proto.im.DefaultRequest}
  826. */
  827. proto.im.DefaultRequest.deserializeBinary = function (bytes) {
  828. var reader = new jspb.BinaryReader(bytes);
  829. var msg = new proto.im.DefaultRequest;
  830. return proto.im.DefaultRequest.deserializeBinaryFromReader(msg, reader);
  831. };
  832. /**
  833. * Deserializes binary data (in protobuf wire format) from the
  834. * given reader into the given message object.
  835. * @param {!proto.im.DefaultRequest} msg The message object to deserialize into.
  836. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  837. * @return {!proto.im.DefaultRequest}
  838. */
  839. proto.im.DefaultRequest.deserializeBinaryFromReader = function (msg, reader) {
  840. while (reader.nextField()) {
  841. if (reader.isEndGroup()) {
  842. break;
  843. }
  844. var field = reader.getFieldNumber();
  845. switch (field) {
  846. default:
  847. reader.skipField();
  848. break;
  849. }
  850. }
  851. return msg;
  852. };
  853. /**
  854. * Serializes the message to binary data (in protobuf wire format).
  855. * @return {!Uint8Array}
  856. */
  857. proto.im.DefaultRequest.prototype.serializeBinary = function () {
  858. var writer = new jspb.BinaryWriter();
  859. proto.im.DefaultRequest.serializeBinaryToWriter(this, writer);
  860. return writer.getResultBuffer();
  861. };
  862. /**
  863. * Serializes the given message to binary data (in protobuf wire
  864. * format), writing to the given BinaryWriter.
  865. * @param {!proto.im.DefaultRequest} message
  866. * @param {!jspb.BinaryWriter} writer
  867. * @suppress {unusedLocalVariables} f is only used for nested messages
  868. */
  869. proto.im.DefaultRequest.serializeBinaryToWriter = function (message, writer) {
  870. var f = undefined;
  871. };
  872. if (jspb.Message.GENERATE_TO_OBJECT) {
  873. /**
  874. * Creates an object representation of this proto.
  875. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  876. * Optional fields that are not set will be set to undefined.
  877. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  878. * For the list of reserved names please see:
  879. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  880. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  881. * JSPB instance for transitional soy proto support:
  882. * http://goto/soy-param-migration
  883. * @return {!Object}
  884. */
  885. proto.im.TokenParam.prototype.toObject = function (opt_includeInstance) {
  886. return proto.im.TokenParam.toObject(opt_includeInstance, this);
  887. };
  888. /**
  889. * Static version of the {@see toObject} method.
  890. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  891. * the JSPB instance for transitional soy proto support:
  892. * http://goto/soy-param-migration
  893. * @param {!proto.im.TokenParam} msg The msg instance to transform.
  894. * @return {!Object}
  895. * @suppress {unusedLocalVariables} f is only used for nested messages
  896. */
  897. proto.im.TokenParam.toObject = function (includeInstance, msg) {
  898. var f, obj = {
  899. token: jspb.Message.getFieldWithDefault(msg, 1, "")
  900. };
  901. if (includeInstance) {
  902. obj.$jspbMessageInstance = msg;
  903. }
  904. return obj;
  905. };
  906. }
  907. /**
  908. * Deserializes binary data (in protobuf wire format).
  909. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  910. * @return {!proto.im.TokenParam}
  911. */
  912. proto.im.TokenParam.deserializeBinary = function (bytes) {
  913. var reader = new jspb.BinaryReader(bytes);
  914. var msg = new proto.im.TokenParam;
  915. return proto.im.TokenParam.deserializeBinaryFromReader(msg, reader);
  916. };
  917. /**
  918. * Deserializes binary data (in protobuf wire format) from the
  919. * given reader into the given message object.
  920. * @param {!proto.im.TokenParam} msg The message object to deserialize into.
  921. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  922. * @return {!proto.im.TokenParam}
  923. */
  924. proto.im.TokenParam.deserializeBinaryFromReader = function (msg, reader) {
  925. while (reader.nextField()) {
  926. if (reader.isEndGroup()) {
  927. break;
  928. }
  929. var field = reader.getFieldNumber();
  930. switch (field) {
  931. case 1:
  932. var value = /** @type {string} */ (reader.readString());
  933. msg.setToken(value);
  934. break;
  935. default:
  936. reader.skipField();
  937. break;
  938. }
  939. }
  940. return msg;
  941. };
  942. /**
  943. * Serializes the message to binary data (in protobuf wire format).
  944. * @return {!Uint8Array}
  945. */
  946. proto.im.TokenParam.prototype.serializeBinary = function () {
  947. var writer = new jspb.BinaryWriter();
  948. proto.im.TokenParam.serializeBinaryToWriter(this, writer);
  949. return writer.getResultBuffer();
  950. };
  951. /**
  952. * Serializes the given message to binary data (in protobuf wire
  953. * format), writing to the given BinaryWriter.
  954. * @param {!proto.im.TokenParam} message
  955. * @param {!jspb.BinaryWriter} writer
  956. * @suppress {unusedLocalVariables} f is only used for nested messages
  957. */
  958. proto.im.TokenParam.serializeBinaryToWriter = function (message, writer) {
  959. var f = undefined;
  960. f = message.getToken();
  961. if (f.length > 0) {
  962. writer.writeString(
  963. 1,
  964. f
  965. );
  966. }
  967. };
  968. /**
  969. * optional string token = 1;
  970. * @return {string}
  971. */
  972. proto.im.TokenParam.prototype.getToken = function () {
  973. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  974. };
  975. /**
  976. * @param {string} value
  977. * @return {!proto.im.TokenParam} returns this
  978. */
  979. proto.im.TokenParam.prototype.setToken = function (value) {
  980. return jspb.Message.setProto3StringField(this, 1, value);
  981. };
  982. if (jspb.Message.GENERATE_TO_OBJECT) {
  983. /**
  984. * Creates an object representation of this proto.
  985. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  986. * Optional fields that are not set will be set to undefined.
  987. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  988. * For the list of reserved names please see:
  989. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  990. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  991. * JSPB instance for transitional soy proto support:
  992. * http://goto/soy-param-migration
  993. * @return {!Object}
  994. */
  995. proto.im.DefaultReply.prototype.toObject = function (opt_includeInstance) {
  996. return proto.im.DefaultReply.toObject(opt_includeInstance, this);
  997. };
  998. /**
  999. * Static version of the {@see toObject} method.
  1000. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1001. * the JSPB instance for transitional soy proto support:
  1002. * http://goto/soy-param-migration
  1003. * @param {!proto.im.DefaultReply} msg The msg instance to transform.
  1004. * @return {!Object}
  1005. * @suppress {unusedLocalVariables} f is only used for nested messages
  1006. */
  1007. proto.im.DefaultReply.toObject = function (includeInstance, msg) {
  1008. var f, obj = {};
  1009. if (includeInstance) {
  1010. obj.$jspbMessageInstance = msg;
  1011. }
  1012. return obj;
  1013. };
  1014. }
  1015. /**
  1016. * Deserializes binary data (in protobuf wire format).
  1017. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1018. * @return {!proto.im.DefaultReply}
  1019. */
  1020. proto.im.DefaultReply.deserializeBinary = function (bytes) {
  1021. var reader = new jspb.BinaryReader(bytes);
  1022. var msg = new proto.im.DefaultReply;
  1023. return proto.im.DefaultReply.deserializeBinaryFromReader(msg, reader);
  1024. };
  1025. /**
  1026. * Deserializes binary data (in protobuf wire format) from the
  1027. * given reader into the given message object.
  1028. * @param {!proto.im.DefaultReply} msg The message object to deserialize into.
  1029. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1030. * @return {!proto.im.DefaultReply}
  1031. */
  1032. proto.im.DefaultReply.deserializeBinaryFromReader = function (msg, reader) {
  1033. while (reader.nextField()) {
  1034. if (reader.isEndGroup()) {
  1035. break;
  1036. }
  1037. var field = reader.getFieldNumber();
  1038. switch (field) {
  1039. default:
  1040. reader.skipField();
  1041. break;
  1042. }
  1043. }
  1044. return msg;
  1045. };
  1046. /**
  1047. * Serializes the message to binary data (in protobuf wire format).
  1048. * @return {!Uint8Array}
  1049. */
  1050. proto.im.DefaultReply.prototype.serializeBinary = function () {
  1051. var writer = new jspb.BinaryWriter();
  1052. proto.im.DefaultReply.serializeBinaryToWriter(this, writer);
  1053. return writer.getResultBuffer();
  1054. };
  1055. /**
  1056. * Serializes the given message to binary data (in protobuf wire
  1057. * format), writing to the given BinaryWriter.
  1058. * @param {!proto.im.DefaultReply} message
  1059. * @param {!jspb.BinaryWriter} writer
  1060. * @suppress {unusedLocalVariables} f is only used for nested messages
  1061. */
  1062. proto.im.DefaultReply.serializeBinaryToWriter = function (message, writer) {
  1063. var f = undefined;
  1064. };
  1065. if (jspb.Message.GENERATE_TO_OBJECT) {
  1066. /**
  1067. * Creates an object representation of this proto.
  1068. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1069. * Optional fields that are not set will be set to undefined.
  1070. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1071. * For the list of reserved names please see:
  1072. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1073. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1074. * JSPB instance for transitional soy proto support:
  1075. * http://goto/soy-param-migration
  1076. * @return {!Object}
  1077. */
  1078. proto.im.SignUpReply.prototype.toObject = function (opt_includeInstance) {
  1079. return proto.im.SignUpReply.toObject(opt_includeInstance, this);
  1080. };
  1081. /**
  1082. * Static version of the {@see toObject} method.
  1083. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1084. * the JSPB instance for transitional soy proto support:
  1085. * http://goto/soy-param-migration
  1086. * @param {!proto.im.SignUpReply} msg The msg instance to transform.
  1087. * @return {!Object}
  1088. * @suppress {unusedLocalVariables} f is only used for nested messages
  1089. */
  1090. proto.im.SignUpReply.toObject = function (includeInstance, msg) {
  1091. var f, obj = {
  1092. userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
  1093. };
  1094. if (includeInstance) {
  1095. obj.$jspbMessageInstance = msg;
  1096. }
  1097. return obj;
  1098. };
  1099. }
  1100. /**
  1101. * Deserializes binary data (in protobuf wire format).
  1102. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1103. * @return {!proto.im.SignUpReply}
  1104. */
  1105. proto.im.SignUpReply.deserializeBinary = function (bytes) {
  1106. var reader = new jspb.BinaryReader(bytes);
  1107. var msg = new proto.im.SignUpReply;
  1108. return proto.im.SignUpReply.deserializeBinaryFromReader(msg, reader);
  1109. };
  1110. /**
  1111. * Deserializes binary data (in protobuf wire format) from the
  1112. * given reader into the given message object.
  1113. * @param {!proto.im.SignUpReply} msg The message object to deserialize into.
  1114. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1115. * @return {!proto.im.SignUpReply}
  1116. */
  1117. proto.im.SignUpReply.deserializeBinaryFromReader = function (msg, reader) {
  1118. while (reader.nextField()) {
  1119. if (reader.isEndGroup()) {
  1120. break;
  1121. }
  1122. var field = reader.getFieldNumber();
  1123. switch (field) {
  1124. case 1:
  1125. var value = /** @type {number} */ (reader.readInt64());
  1126. msg.setUserid(value);
  1127. break;
  1128. default:
  1129. reader.skipField();
  1130. break;
  1131. }
  1132. }
  1133. return msg;
  1134. };
  1135. /**
  1136. * Serializes the message to binary data (in protobuf wire format).
  1137. * @return {!Uint8Array}
  1138. */
  1139. proto.im.SignUpReply.prototype.serializeBinary = function () {
  1140. var writer = new jspb.BinaryWriter();
  1141. proto.im.SignUpReply.serializeBinaryToWriter(this, writer);
  1142. return writer.getResultBuffer();
  1143. };
  1144. /**
  1145. * Serializes the given message to binary data (in protobuf wire
  1146. * format), writing to the given BinaryWriter.
  1147. * @param {!proto.im.SignUpReply} message
  1148. * @param {!jspb.BinaryWriter} writer
  1149. * @suppress {unusedLocalVariables} f is only used for nested messages
  1150. */
  1151. proto.im.SignUpReply.serializeBinaryToWriter = function (message, writer) {
  1152. var f = undefined;
  1153. f = message.getUserid();
  1154. if (f !== 0) {
  1155. writer.writeInt64(
  1156. 1,
  1157. f
  1158. );
  1159. }
  1160. };
  1161. /**
  1162. * optional int64 userId = 1;
  1163. * @return {number}
  1164. */
  1165. proto.im.SignUpReply.prototype.getUserid = function () {
  1166. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1167. };
  1168. /**
  1169. * @param {number} value
  1170. * @return {!proto.im.SignUpReply} returns this
  1171. */
  1172. proto.im.SignUpReply.prototype.setUserid = function (value) {
  1173. return jspb.Message.setProto3IntField(this, 1, value);
  1174. };
  1175. if (jspb.Message.GENERATE_TO_OBJECT) {
  1176. /**
  1177. * Creates an object representation of this proto.
  1178. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1179. * Optional fields that are not set will be set to undefined.
  1180. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1181. * For the list of reserved names please see:
  1182. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1183. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1184. * JSPB instance for transitional soy proto support:
  1185. * http://goto/soy-param-migration
  1186. * @return {!Object}
  1187. */
  1188. proto.im.SignInPasswordRequest.prototype.toObject = function (opt_includeInstance) {
  1189. return proto.im.SignInPasswordRequest.toObject(opt_includeInstance, this);
  1190. };
  1191. /**
  1192. * Static version of the {@see toObject} method.
  1193. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1194. * the JSPB instance for transitional soy proto support:
  1195. * http://goto/soy-param-migration
  1196. * @param {!proto.im.SignInPasswordRequest} msg The msg instance to transform.
  1197. * @return {!Object}
  1198. * @suppress {unusedLocalVariables} f is only used for nested messages
  1199. */
  1200. proto.im.SignInPasswordRequest.toObject = function (includeInstance, msg) {
  1201. var f, obj = {
  1202. auth: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1203. password: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1204. sysid: jspb.Message.getFieldWithDefault(msg, 3, 0),
  1205. expirationsec: jspb.Message.getFieldWithDefault(msg, 4, 0)
  1206. };
  1207. if (includeInstance) {
  1208. obj.$jspbMessageInstance = msg;
  1209. }
  1210. return obj;
  1211. };
  1212. }
  1213. /**
  1214. * Deserializes binary data (in protobuf wire format).
  1215. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1216. * @return {!proto.im.SignInPasswordRequest}
  1217. */
  1218. proto.im.SignInPasswordRequest.deserializeBinary = function (bytes) {
  1219. var reader = new jspb.BinaryReader(bytes);
  1220. var msg = new proto.im.SignInPasswordRequest;
  1221. return proto.im.SignInPasswordRequest.deserializeBinaryFromReader(msg, reader);
  1222. };
  1223. /**
  1224. * Deserializes binary data (in protobuf wire format) from the
  1225. * given reader into the given message object.
  1226. * @param {!proto.im.SignInPasswordRequest} msg The message object to deserialize into.
  1227. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1228. * @return {!proto.im.SignInPasswordRequest}
  1229. */
  1230. proto.im.SignInPasswordRequest.deserializeBinaryFromReader = function (msg, reader) {
  1231. while (reader.nextField()) {
  1232. if (reader.isEndGroup()) {
  1233. break;
  1234. }
  1235. var field = reader.getFieldNumber();
  1236. switch (field) {
  1237. case 1:
  1238. var value = /** @type {string} */ (reader.readString());
  1239. msg.setAuth(value);
  1240. break;
  1241. case 2:
  1242. var value = /** @type {string} */ (reader.readString());
  1243. msg.setPassword(value);
  1244. break;
  1245. case 3:
  1246. var value = /** @type {number} */ (reader.readInt64());
  1247. msg.setSysid(value);
  1248. break;
  1249. case 4:
  1250. var value = /** @type {number} */ (reader.readInt64());
  1251. msg.setExpirationsec(value);
  1252. break;
  1253. default:
  1254. reader.skipField();
  1255. break;
  1256. }
  1257. }
  1258. return msg;
  1259. };
  1260. /**
  1261. * Serializes the message to binary data (in protobuf wire format).
  1262. * @return {!Uint8Array}
  1263. */
  1264. proto.im.SignInPasswordRequest.prototype.serializeBinary = function () {
  1265. var writer = new jspb.BinaryWriter();
  1266. proto.im.SignInPasswordRequest.serializeBinaryToWriter(this, writer);
  1267. return writer.getResultBuffer();
  1268. };
  1269. /**
  1270. * Serializes the given message to binary data (in protobuf wire
  1271. * format), writing to the given BinaryWriter.
  1272. * @param {!proto.im.SignInPasswordRequest} message
  1273. * @param {!jspb.BinaryWriter} writer
  1274. * @suppress {unusedLocalVariables} f is only used for nested messages
  1275. */
  1276. proto.im.SignInPasswordRequest.serializeBinaryToWriter = function (message, writer) {
  1277. var f = undefined;
  1278. f = message.getAuth();
  1279. if (f.length > 0) {
  1280. writer.writeString(
  1281. 1,
  1282. f
  1283. );
  1284. }
  1285. f = message.getPassword();
  1286. if (f.length > 0) {
  1287. writer.writeString(
  1288. 2,
  1289. f
  1290. );
  1291. }
  1292. f = message.getSysid();
  1293. if (f !== 0) {
  1294. writer.writeInt64(
  1295. 3,
  1296. f
  1297. );
  1298. }
  1299. f = message.getExpirationsec();
  1300. if (f !== 0) {
  1301. writer.writeInt64(
  1302. 4,
  1303. f
  1304. );
  1305. }
  1306. };
  1307. /**
  1308. * optional string auth = 1;
  1309. * @return {string}
  1310. */
  1311. proto.im.SignInPasswordRequest.prototype.getAuth = function () {
  1312. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1313. };
  1314. /**
  1315. * @param {string} value
  1316. * @return {!proto.im.SignInPasswordRequest} returns this
  1317. */
  1318. proto.im.SignInPasswordRequest.prototype.setAuth = function (value) {
  1319. return jspb.Message.setProto3StringField(this, 1, value);
  1320. };
  1321. /**
  1322. * optional string password = 2;
  1323. * @return {string}
  1324. */
  1325. proto.im.SignInPasswordRequest.prototype.getPassword = function () {
  1326. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1327. };
  1328. /**
  1329. * @param {string} value
  1330. * @return {!proto.im.SignInPasswordRequest} returns this
  1331. */
  1332. proto.im.SignInPasswordRequest.prototype.setPassword = function (value) {
  1333. return jspb.Message.setProto3StringField(this, 2, value);
  1334. };
  1335. /**
  1336. * optional int64 sysId = 3;
  1337. * @return {number}
  1338. */
  1339. proto.im.SignInPasswordRequest.prototype.getSysid = function () {
  1340. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  1341. };
  1342. /**
  1343. * @param {number} value
  1344. * @return {!proto.im.SignInPasswordRequest} returns this
  1345. */
  1346. proto.im.SignInPasswordRequest.prototype.setSysid = function (value) {
  1347. return jspb.Message.setProto3IntField(this, 3, value);
  1348. };
  1349. /**
  1350. * optional int64 expirationSec = 4;
  1351. * @return {number}
  1352. */
  1353. proto.im.SignInPasswordRequest.prototype.getExpirationsec = function () {
  1354. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  1355. };
  1356. /**
  1357. * @param {number} value
  1358. * @return {!proto.im.SignInPasswordRequest} returns this
  1359. */
  1360. proto.im.SignInPasswordRequest.prototype.setExpirationsec = function (value) {
  1361. return jspb.Message.setProto3IntField(this, 4, value);
  1362. };
  1363. if (jspb.Message.GENERATE_TO_OBJECT) {
  1364. /**
  1365. * Creates an object representation of this proto.
  1366. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1367. * Optional fields that are not set will be set to undefined.
  1368. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1369. * For the list of reserved names please see:
  1370. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1371. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1372. * JSPB instance for transitional soy proto support:
  1373. * http://goto/soy-param-migration
  1374. * @return {!Object}
  1375. */
  1376. proto.im.SignUpRequest.prototype.toObject = function (opt_includeInstance) {
  1377. return proto.im.SignUpRequest.toObject(opt_includeInstance, this);
  1378. };
  1379. /**
  1380. * Static version of the {@see toObject} method.
  1381. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1382. * the JSPB instance for transitional soy proto support:
  1383. * http://goto/soy-param-migration
  1384. * @param {!proto.im.SignUpRequest} msg The msg instance to transform.
  1385. * @return {!Object}
  1386. * @suppress {unusedLocalVariables} f is only used for nested messages
  1387. */
  1388. proto.im.SignUpRequest.toObject = function (includeInstance, msg) {
  1389. var f, obj = {
  1390. usercode: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1391. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1392. email: jspb.Message.getFieldWithDefault(msg, 3, ""),
  1393. phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
  1394. wxopenid: jspb.Message.getFieldWithDefault(msg, 5, ""),
  1395. qq: jspb.Message.getFieldWithDefault(msg, 6, ""),
  1396. password: jspb.Message.getFieldWithDefault(msg, 7, ""),
  1397. question: jspb.Message.getFieldWithDefault(msg, 8, ""),
  1398. answer: jspb.Message.getFieldWithDefault(msg, 9, ""),
  1399. memo: jspb.Message.getFieldWithDefault(msg, 10, "")
  1400. };
  1401. if (includeInstance) {
  1402. obj.$jspbMessageInstance = msg;
  1403. }
  1404. return obj;
  1405. };
  1406. }
  1407. /**
  1408. * Deserializes binary data (in protobuf wire format).
  1409. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1410. * @return {!proto.im.SignUpRequest}
  1411. */
  1412. proto.im.SignUpRequest.deserializeBinary = function (bytes) {
  1413. var reader = new jspb.BinaryReader(bytes);
  1414. var msg = new proto.im.SignUpRequest;
  1415. return proto.im.SignUpRequest.deserializeBinaryFromReader(msg, reader);
  1416. };
  1417. /**
  1418. * Deserializes binary data (in protobuf wire format) from the
  1419. * given reader into the given message object.
  1420. * @param {!proto.im.SignUpRequest} msg The message object to deserialize into.
  1421. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1422. * @return {!proto.im.SignUpRequest}
  1423. */
  1424. proto.im.SignUpRequest.deserializeBinaryFromReader = function (msg, reader) {
  1425. while (reader.nextField()) {
  1426. if (reader.isEndGroup()) {
  1427. break;
  1428. }
  1429. var field = reader.getFieldNumber();
  1430. switch (field) {
  1431. case 1:
  1432. var value = /** @type {string} */ (reader.readString());
  1433. msg.setUsercode(value);
  1434. break;
  1435. case 2:
  1436. var value = /** @type {string} */ (reader.readString());
  1437. msg.setName(value);
  1438. break;
  1439. case 3:
  1440. var value = /** @type {string} */ (reader.readString());
  1441. msg.setEmail(value);
  1442. break;
  1443. case 4:
  1444. var value = /** @type {string} */ (reader.readString());
  1445. msg.setPhone(value);
  1446. break;
  1447. case 5:
  1448. var value = /** @type {string} */ (reader.readString());
  1449. msg.setWxopenid(value);
  1450. break;
  1451. case 6:
  1452. var value = /** @type {string} */ (reader.readString());
  1453. msg.setQq(value);
  1454. break;
  1455. case 7:
  1456. var value = /** @type {string} */ (reader.readString());
  1457. msg.setPassword(value);
  1458. break;
  1459. case 8:
  1460. var value = /** @type {string} */ (reader.readString());
  1461. msg.setQuestion(value);
  1462. break;
  1463. case 9:
  1464. var value = /** @type {string} */ (reader.readString());
  1465. msg.setAnswer(value);
  1466. break;
  1467. case 10:
  1468. var value = /** @type {string} */ (reader.readString());
  1469. msg.setMemo(value);
  1470. break;
  1471. default:
  1472. reader.skipField();
  1473. break;
  1474. }
  1475. }
  1476. return msg;
  1477. };
  1478. /**
  1479. * Serializes the message to binary data (in protobuf wire format).
  1480. * @return {!Uint8Array}
  1481. */
  1482. proto.im.SignUpRequest.prototype.serializeBinary = function () {
  1483. var writer = new jspb.BinaryWriter();
  1484. proto.im.SignUpRequest.serializeBinaryToWriter(this, writer);
  1485. return writer.getResultBuffer();
  1486. };
  1487. /**
  1488. * Serializes the given message to binary data (in protobuf wire
  1489. * format), writing to the given BinaryWriter.
  1490. * @param {!proto.im.SignUpRequest} message
  1491. * @param {!jspb.BinaryWriter} writer
  1492. * @suppress {unusedLocalVariables} f is only used for nested messages
  1493. */
  1494. proto.im.SignUpRequest.serializeBinaryToWriter = function (message, writer) {
  1495. var f = undefined;
  1496. f = message.getUsercode();
  1497. if (f.length > 0) {
  1498. writer.writeString(
  1499. 1,
  1500. f
  1501. );
  1502. }
  1503. f = message.getName();
  1504. if (f.length > 0) {
  1505. writer.writeString(
  1506. 2,
  1507. f
  1508. );
  1509. }
  1510. f = message.getEmail();
  1511. if (f.length > 0) {
  1512. writer.writeString(
  1513. 3,
  1514. f
  1515. );
  1516. }
  1517. f = message.getPhone();
  1518. if (f.length > 0) {
  1519. writer.writeString(
  1520. 4,
  1521. f
  1522. );
  1523. }
  1524. f = message.getWxopenid();
  1525. if (f.length > 0) {
  1526. writer.writeString(
  1527. 5,
  1528. f
  1529. );
  1530. }
  1531. f = message.getQq();
  1532. if (f.length > 0) {
  1533. writer.writeString(
  1534. 6,
  1535. f
  1536. );
  1537. }
  1538. f = message.getPassword();
  1539. if (f.length > 0) {
  1540. writer.writeString(
  1541. 7,
  1542. f
  1543. );
  1544. }
  1545. f = message.getQuestion();
  1546. if (f.length > 0) {
  1547. writer.writeString(
  1548. 8,
  1549. f
  1550. );
  1551. }
  1552. f = message.getAnswer();
  1553. if (f.length > 0) {
  1554. writer.writeString(
  1555. 9,
  1556. f
  1557. );
  1558. }
  1559. f = message.getMemo();
  1560. if (f.length > 0) {
  1561. writer.writeString(
  1562. 10,
  1563. f
  1564. );
  1565. }
  1566. };
  1567. /**
  1568. * optional string userCode = 1;
  1569. * @return {string}
  1570. */
  1571. proto.im.SignUpRequest.prototype.getUsercode = function () {
  1572. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1573. };
  1574. /**
  1575. * @param {string} value
  1576. * @return {!proto.im.SignUpRequest} returns this
  1577. */
  1578. proto.im.SignUpRequest.prototype.setUsercode = function (value) {
  1579. return jspb.Message.setProto3StringField(this, 1, value);
  1580. };
  1581. /**
  1582. * optional string name = 2;
  1583. * @return {string}
  1584. */
  1585. proto.im.SignUpRequest.prototype.getName = function () {
  1586. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1587. };
  1588. /**
  1589. * @param {string} value
  1590. * @return {!proto.im.SignUpRequest} returns this
  1591. */
  1592. proto.im.SignUpRequest.prototype.setName = function (value) {
  1593. return jspb.Message.setProto3StringField(this, 2, value);
  1594. };
  1595. /**
  1596. * optional string email = 3;
  1597. * @return {string}
  1598. */
  1599. proto.im.SignUpRequest.prototype.getEmail = function () {
  1600. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  1601. };
  1602. /**
  1603. * @param {string} value
  1604. * @return {!proto.im.SignUpRequest} returns this
  1605. */
  1606. proto.im.SignUpRequest.prototype.setEmail = function (value) {
  1607. return jspb.Message.setProto3StringField(this, 3, value);
  1608. };
  1609. /**
  1610. * optional string phone = 4;
  1611. * @return {string}
  1612. */
  1613. proto.im.SignUpRequest.prototype.getPhone = function () {
  1614. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  1615. };
  1616. /**
  1617. * @param {string} value
  1618. * @return {!proto.im.SignUpRequest} returns this
  1619. */
  1620. proto.im.SignUpRequest.prototype.setPhone = function (value) {
  1621. return jspb.Message.setProto3StringField(this, 4, value);
  1622. };
  1623. /**
  1624. * optional string wxOpenId = 5;
  1625. * @return {string}
  1626. */
  1627. proto.im.SignUpRequest.prototype.getWxopenid = function () {
  1628. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  1629. };
  1630. /**
  1631. * @param {string} value
  1632. * @return {!proto.im.SignUpRequest} returns this
  1633. */
  1634. proto.im.SignUpRequest.prototype.setWxopenid = function (value) {
  1635. return jspb.Message.setProto3StringField(this, 5, value);
  1636. };
  1637. /**
  1638. * optional string qq = 6;
  1639. * @return {string}
  1640. */
  1641. proto.im.SignUpRequest.prototype.getQq = function () {
  1642. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  1643. };
  1644. /**
  1645. * @param {string} value
  1646. * @return {!proto.im.SignUpRequest} returns this
  1647. */
  1648. proto.im.SignUpRequest.prototype.setQq = function (value) {
  1649. return jspb.Message.setProto3StringField(this, 6, value);
  1650. };
  1651. /**
  1652. * optional string password = 7;
  1653. * @return {string}
  1654. */
  1655. proto.im.SignUpRequest.prototype.getPassword = function () {
  1656. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  1657. };
  1658. /**
  1659. * @param {string} value
  1660. * @return {!proto.im.SignUpRequest} returns this
  1661. */
  1662. proto.im.SignUpRequest.prototype.setPassword = function (value) {
  1663. return jspb.Message.setProto3StringField(this, 7, value);
  1664. };
  1665. /**
  1666. * optional string question = 8;
  1667. * @return {string}
  1668. */
  1669. proto.im.SignUpRequest.prototype.getQuestion = function () {
  1670. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
  1671. };
  1672. /**
  1673. * @param {string} value
  1674. * @return {!proto.im.SignUpRequest} returns this
  1675. */
  1676. proto.im.SignUpRequest.prototype.setQuestion = function (value) {
  1677. return jspb.Message.setProto3StringField(this, 8, value);
  1678. };
  1679. /**
  1680. * optional string answer = 9;
  1681. * @return {string}
  1682. */
  1683. proto.im.SignUpRequest.prototype.getAnswer = function () {
  1684. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
  1685. };
  1686. /**
  1687. * @param {string} value
  1688. * @return {!proto.im.SignUpRequest} returns this
  1689. */
  1690. proto.im.SignUpRequest.prototype.setAnswer = function (value) {
  1691. return jspb.Message.setProto3StringField(this, 9, value);
  1692. };
  1693. /**
  1694. * optional string memo = 10;
  1695. * @return {string}
  1696. */
  1697. proto.im.SignUpRequest.prototype.getMemo = function () {
  1698. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
  1699. };
  1700. /**
  1701. * @param {string} value
  1702. * @return {!proto.im.SignUpRequest} returns this
  1703. */
  1704. proto.im.SignUpRequest.prototype.setMemo = function (value) {
  1705. return jspb.Message.setProto3StringField(this, 10, value);
  1706. };
  1707. if (jspb.Message.GENERATE_TO_OBJECT) {
  1708. /**
  1709. * Creates an object representation of this proto.
  1710. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1711. * Optional fields that are not set will be set to undefined.
  1712. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1713. * For the list of reserved names please see:
  1714. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1715. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1716. * JSPB instance for transitional soy proto support:
  1717. * http://goto/soy-param-migration
  1718. * @return {!Object}
  1719. */
  1720. proto.im.UserInfo.prototype.toObject = function (opt_includeInstance) {
  1721. return proto.im.UserInfo.toObject(opt_includeInstance, this);
  1722. };
  1723. /**
  1724. * Static version of the {@see toObject} method.
  1725. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1726. * the JSPB instance for transitional soy proto support:
  1727. * http://goto/soy-param-migration
  1728. * @param {!proto.im.UserInfo} msg The msg instance to transform.
  1729. * @return {!Object}
  1730. * @suppress {unusedLocalVariables} f is only used for nested messages
  1731. */
  1732. proto.im.UserInfo.toObject = function (includeInstance, msg) {
  1733. var f, obj = {
  1734. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1735. usercode: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1736. name: jspb.Message.getFieldWithDefault(msg, 3, ""),
  1737. email: jspb.Message.getFieldWithDefault(msg, 4, ""),
  1738. phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
  1739. qq: jspb.Message.getFieldWithDefault(msg, 7, ""),
  1740. memo: jspb.Message.getFieldWithDefault(msg, 11, ""),
  1741. status: jspb.Message.getFieldWithDefault(msg, 12, 0)
  1742. };
  1743. if (includeInstance) {
  1744. obj.$jspbMessageInstance = msg;
  1745. }
  1746. return obj;
  1747. };
  1748. }
  1749. /**
  1750. * Deserializes binary data (in protobuf wire format).
  1751. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1752. * @return {!proto.im.UserInfo}
  1753. */
  1754. proto.im.UserInfo.deserializeBinary = function (bytes) {
  1755. var reader = new jspb.BinaryReader(bytes);
  1756. var msg = new proto.im.UserInfo;
  1757. return proto.im.UserInfo.deserializeBinaryFromReader(msg, reader);
  1758. };
  1759. /**
  1760. * Deserializes binary data (in protobuf wire format) from the
  1761. * given reader into the given message object.
  1762. * @param {!proto.im.UserInfo} msg The message object to deserialize into.
  1763. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1764. * @return {!proto.im.UserInfo}
  1765. */
  1766. proto.im.UserInfo.deserializeBinaryFromReader = function (msg, reader) {
  1767. while (reader.nextField()) {
  1768. if (reader.isEndGroup()) {
  1769. break;
  1770. }
  1771. var field = reader.getFieldNumber();
  1772. switch (field) {
  1773. case 1:
  1774. var value = /** @type {number} */ (reader.readInt64());
  1775. msg.setId(value);
  1776. break;
  1777. case 2:
  1778. var value = /** @type {string} */ (reader.readString());
  1779. msg.setUsercode(value);
  1780. break;
  1781. case 3:
  1782. var value = /** @type {string} */ (reader.readString());
  1783. msg.setName(value);
  1784. break;
  1785. case 4:
  1786. var value = /** @type {string} */ (reader.readString());
  1787. msg.setEmail(value);
  1788. break;
  1789. case 5:
  1790. var value = /** @type {string} */ (reader.readString());
  1791. msg.setPhone(value);
  1792. break;
  1793. case 7:
  1794. var value = /** @type {string} */ (reader.readString());
  1795. msg.setQq(value);
  1796. break;
  1797. case 11:
  1798. var value = /** @type {string} */ (reader.readString());
  1799. msg.setMemo(value);
  1800. break;
  1801. case 12:
  1802. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  1803. msg.setStatus(value);
  1804. break;
  1805. default:
  1806. reader.skipField();
  1807. break;
  1808. }
  1809. }
  1810. return msg;
  1811. };
  1812. /**
  1813. * Serializes the message to binary data (in protobuf wire format).
  1814. * @return {!Uint8Array}
  1815. */
  1816. proto.im.UserInfo.prototype.serializeBinary = function () {
  1817. var writer = new jspb.BinaryWriter();
  1818. proto.im.UserInfo.serializeBinaryToWriter(this, writer);
  1819. return writer.getResultBuffer();
  1820. };
  1821. /**
  1822. * Serializes the given message to binary data (in protobuf wire
  1823. * format), writing to the given BinaryWriter.
  1824. * @param {!proto.im.UserInfo} message
  1825. * @param {!jspb.BinaryWriter} writer
  1826. * @suppress {unusedLocalVariables} f is only used for nested messages
  1827. */
  1828. proto.im.UserInfo.serializeBinaryToWriter = function (message, writer) {
  1829. var f = undefined;
  1830. f = message.getId();
  1831. if (f !== 0) {
  1832. writer.writeInt64(
  1833. 1,
  1834. f
  1835. );
  1836. }
  1837. f = message.getUsercode();
  1838. if (f.length > 0) {
  1839. writer.writeString(
  1840. 2,
  1841. f
  1842. );
  1843. }
  1844. f = message.getName();
  1845. if (f.length > 0) {
  1846. writer.writeString(
  1847. 3,
  1848. f
  1849. );
  1850. }
  1851. f = message.getEmail();
  1852. if (f.length > 0) {
  1853. writer.writeString(
  1854. 4,
  1855. f
  1856. );
  1857. }
  1858. f = message.getPhone();
  1859. if (f.length > 0) {
  1860. writer.writeString(
  1861. 5,
  1862. f
  1863. );
  1864. }
  1865. f = message.getQq();
  1866. if (f.length > 0) {
  1867. writer.writeString(
  1868. 7,
  1869. f
  1870. );
  1871. }
  1872. f = message.getMemo();
  1873. if (f.length > 0) {
  1874. writer.writeString(
  1875. 11,
  1876. f
  1877. );
  1878. }
  1879. f = message.getStatus();
  1880. if (f !== 0.0) {
  1881. writer.writeEnum(
  1882. 12,
  1883. f
  1884. );
  1885. }
  1886. };
  1887. /**
  1888. * optional int64 id = 1;
  1889. * @return {number}
  1890. */
  1891. proto.im.UserInfo.prototype.getId = function () {
  1892. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1893. };
  1894. /**
  1895. * @param {number} value
  1896. * @return {!proto.im.UserInfo} returns this
  1897. */
  1898. proto.im.UserInfo.prototype.setId = function (value) {
  1899. return jspb.Message.setProto3IntField(this, 1, value);
  1900. };
  1901. /**
  1902. * optional string userCode = 2;
  1903. * @return {string}
  1904. */
  1905. proto.im.UserInfo.prototype.getUsercode = function () {
  1906. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1907. };
  1908. /**
  1909. * @param {string} value
  1910. * @return {!proto.im.UserInfo} returns this
  1911. */
  1912. proto.im.UserInfo.prototype.setUsercode = function (value) {
  1913. return jspb.Message.setProto3StringField(this, 2, value);
  1914. };
  1915. /**
  1916. * optional string name = 3;
  1917. * @return {string}
  1918. */
  1919. proto.im.UserInfo.prototype.getName = function () {
  1920. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  1921. };
  1922. /**
  1923. * @param {string} value
  1924. * @return {!proto.im.UserInfo} returns this
  1925. */
  1926. proto.im.UserInfo.prototype.setName = function (value) {
  1927. return jspb.Message.setProto3StringField(this, 3, value);
  1928. };
  1929. /**
  1930. * optional string email = 4;
  1931. * @return {string}
  1932. */
  1933. proto.im.UserInfo.prototype.getEmail = function () {
  1934. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  1935. };
  1936. /**
  1937. * @param {string} value
  1938. * @return {!proto.im.UserInfo} returns this
  1939. */
  1940. proto.im.UserInfo.prototype.setEmail = function (value) {
  1941. return jspb.Message.setProto3StringField(this, 4, value);
  1942. };
  1943. /**
  1944. * optional string phone = 5;
  1945. * @return {string}
  1946. */
  1947. proto.im.UserInfo.prototype.getPhone = function () {
  1948. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  1949. };
  1950. /**
  1951. * @param {string} value
  1952. * @return {!proto.im.UserInfo} returns this
  1953. */
  1954. proto.im.UserInfo.prototype.setPhone = function (value) {
  1955. return jspb.Message.setProto3StringField(this, 5, value);
  1956. };
  1957. /**
  1958. * optional string qq = 7;
  1959. * @return {string}
  1960. */
  1961. proto.im.UserInfo.prototype.getQq = function () {
  1962. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
  1963. };
  1964. /**
  1965. * @param {string} value
  1966. * @return {!proto.im.UserInfo} returns this
  1967. */
  1968. proto.im.UserInfo.prototype.setQq = function (value) {
  1969. return jspb.Message.setProto3StringField(this, 7, value);
  1970. };
  1971. /**
  1972. * optional string memo = 11;
  1973. * @return {string}
  1974. */
  1975. proto.im.UserInfo.prototype.getMemo = function () {
  1976. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
  1977. };
  1978. /**
  1979. * @param {string} value
  1980. * @return {!proto.im.UserInfo} returns this
  1981. */
  1982. proto.im.UserInfo.prototype.setMemo = function (value) {
  1983. return jspb.Message.setProto3StringField(this, 11, value);
  1984. };
  1985. /**
  1986. * optional Status status = 12;
  1987. * @return {!proto.im.Status}
  1988. */
  1989. proto.im.UserInfo.prototype.getStatus = function () {
  1990. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
  1991. };
  1992. /**
  1993. * @param {!proto.im.Status} value
  1994. * @return {!proto.im.UserInfo} returns this
  1995. */
  1996. proto.im.UserInfo.prototype.setStatus = function (value) {
  1997. return jspb.Message.setProto3EnumField(this, 12, value);
  1998. };
  1999. if (jspb.Message.GENERATE_TO_OBJECT) {
  2000. /**
  2001. * Creates an object representation of this proto.
  2002. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2003. * Optional fields that are not set will be set to undefined.
  2004. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2005. * For the list of reserved names please see:
  2006. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2007. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2008. * JSPB instance for transitional soy proto support:
  2009. * http://goto/soy-param-migration
  2010. * @return {!Object}
  2011. */
  2012. proto.im.CreateReply.prototype.toObject = function (opt_includeInstance) {
  2013. return proto.im.CreateReply.toObject(opt_includeInstance, this);
  2014. };
  2015. /**
  2016. * Static version of the {@see toObject} method.
  2017. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2018. * the JSPB instance for transitional soy proto support:
  2019. * http://goto/soy-param-migration
  2020. * @param {!proto.im.CreateReply} msg The msg instance to transform.
  2021. * @return {!Object}
  2022. * @suppress {unusedLocalVariables} f is only used for nested messages
  2023. */
  2024. proto.im.CreateReply.toObject = function (includeInstance, msg) {
  2025. var f, obj = {
  2026. id: jspb.Message.getFieldWithDefault(msg, 1, 0)
  2027. };
  2028. if (includeInstance) {
  2029. obj.$jspbMessageInstance = msg;
  2030. }
  2031. return obj;
  2032. };
  2033. }
  2034. /**
  2035. * Deserializes binary data (in protobuf wire format).
  2036. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2037. * @return {!proto.im.CreateReply}
  2038. */
  2039. proto.im.CreateReply.deserializeBinary = function (bytes) {
  2040. var reader = new jspb.BinaryReader(bytes);
  2041. var msg = new proto.im.CreateReply;
  2042. return proto.im.CreateReply.deserializeBinaryFromReader(msg, reader);
  2043. };
  2044. /**
  2045. * Deserializes binary data (in protobuf wire format) from the
  2046. * given reader into the given message object.
  2047. * @param {!proto.im.CreateReply} msg The message object to deserialize into.
  2048. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2049. * @return {!proto.im.CreateReply}
  2050. */
  2051. proto.im.CreateReply.deserializeBinaryFromReader = function (msg, reader) {
  2052. while (reader.nextField()) {
  2053. if (reader.isEndGroup()) {
  2054. break;
  2055. }
  2056. var field = reader.getFieldNumber();
  2057. switch (field) {
  2058. case 1:
  2059. var value = /** @type {number} */ (reader.readInt64());
  2060. msg.setId(value);
  2061. break;
  2062. default:
  2063. reader.skipField();
  2064. break;
  2065. }
  2066. }
  2067. return msg;
  2068. };
  2069. /**
  2070. * Serializes the message to binary data (in protobuf wire format).
  2071. * @return {!Uint8Array}
  2072. */
  2073. proto.im.CreateReply.prototype.serializeBinary = function () {
  2074. var writer = new jspb.BinaryWriter();
  2075. proto.im.CreateReply.serializeBinaryToWriter(this, writer);
  2076. return writer.getResultBuffer();
  2077. };
  2078. /**
  2079. * Serializes the given message to binary data (in protobuf wire
  2080. * format), writing to the given BinaryWriter.
  2081. * @param {!proto.im.CreateReply} message
  2082. * @param {!jspb.BinaryWriter} writer
  2083. * @suppress {unusedLocalVariables} f is only used for nested messages
  2084. */
  2085. proto.im.CreateReply.serializeBinaryToWriter = function (message, writer) {
  2086. var f = undefined;
  2087. f = message.getId();
  2088. if (f !== 0) {
  2089. writer.writeInt64(
  2090. 1,
  2091. f
  2092. );
  2093. }
  2094. };
  2095. /**
  2096. * optional int64 id = 1;
  2097. * @return {number}
  2098. */
  2099. proto.im.CreateReply.prototype.getId = function () {
  2100. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2101. };
  2102. /**
  2103. * @param {number} value
  2104. * @return {!proto.im.CreateReply} returns this
  2105. */
  2106. proto.im.CreateReply.prototype.setId = function (value) {
  2107. return jspb.Message.setProto3IntField(this, 1, value);
  2108. };
  2109. if (jspb.Message.GENERATE_TO_OBJECT) {
  2110. /**
  2111. * Creates an object representation of this proto.
  2112. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2113. * Optional fields that are not set will be set to undefined.
  2114. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2115. * For the list of reserved names please see:
  2116. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2117. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2118. * JSPB instance for transitional soy proto support:
  2119. * http://goto/soy-param-migration
  2120. * @return {!Object}
  2121. */
  2122. proto.im.PermissionCheck.prototype.toObject = function (opt_includeInstance) {
  2123. return proto.im.PermissionCheck.toObject(opt_includeInstance, this);
  2124. };
  2125. /**
  2126. * Static version of the {@see toObject} method.
  2127. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2128. * the JSPB instance for transitional soy proto support:
  2129. * http://goto/soy-param-migration
  2130. * @param {!proto.im.PermissionCheck} msg The msg instance to transform.
  2131. * @return {!Object}
  2132. * @suppress {unusedLocalVariables} f is only used for nested messages
  2133. */
  2134. proto.im.PermissionCheck.toObject = function (includeInstance, msg) {
  2135. var f, obj = {
  2136. token: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2137. servicepath: jspb.Message.getFieldWithDefault(msg, 2, "")
  2138. };
  2139. if (includeInstance) {
  2140. obj.$jspbMessageInstance = msg;
  2141. }
  2142. return obj;
  2143. };
  2144. }
  2145. /**
  2146. * Deserializes binary data (in protobuf wire format).
  2147. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2148. * @return {!proto.im.PermissionCheck}
  2149. */
  2150. proto.im.PermissionCheck.deserializeBinary = function (bytes) {
  2151. var reader = new jspb.BinaryReader(bytes);
  2152. var msg = new proto.im.PermissionCheck;
  2153. return proto.im.PermissionCheck.deserializeBinaryFromReader(msg, reader);
  2154. };
  2155. /**
  2156. * Deserializes binary data (in protobuf wire format) from the
  2157. * given reader into the given message object.
  2158. * @param {!proto.im.PermissionCheck} msg The message object to deserialize into.
  2159. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2160. * @return {!proto.im.PermissionCheck}
  2161. */
  2162. proto.im.PermissionCheck.deserializeBinaryFromReader = function (msg, reader) {
  2163. while (reader.nextField()) {
  2164. if (reader.isEndGroup()) {
  2165. break;
  2166. }
  2167. var field = reader.getFieldNumber();
  2168. switch (field) {
  2169. case 1:
  2170. var value = /** @type {string} */ (reader.readString());
  2171. msg.setToken(value);
  2172. break;
  2173. case 2:
  2174. var value = /** @type {string} */ (reader.readString());
  2175. msg.setServicepath(value);
  2176. break;
  2177. default:
  2178. reader.skipField();
  2179. break;
  2180. }
  2181. }
  2182. return msg;
  2183. };
  2184. /**
  2185. * Serializes the message to binary data (in protobuf wire format).
  2186. * @return {!Uint8Array}
  2187. */
  2188. proto.im.PermissionCheck.prototype.serializeBinary = function () {
  2189. var writer = new jspb.BinaryWriter();
  2190. proto.im.PermissionCheck.serializeBinaryToWriter(this, writer);
  2191. return writer.getResultBuffer();
  2192. };
  2193. /**
  2194. * Serializes the given message to binary data (in protobuf wire
  2195. * format), writing to the given BinaryWriter.
  2196. * @param {!proto.im.PermissionCheck} message
  2197. * @param {!jspb.BinaryWriter} writer
  2198. * @suppress {unusedLocalVariables} f is only used for nested messages
  2199. */
  2200. proto.im.PermissionCheck.serializeBinaryToWriter = function (message, writer) {
  2201. var f = undefined;
  2202. f = message.getToken();
  2203. if (f.length > 0) {
  2204. writer.writeString(
  2205. 1,
  2206. f
  2207. );
  2208. }
  2209. f = message.getServicepath();
  2210. if (f.length > 0) {
  2211. writer.writeString(
  2212. 2,
  2213. f
  2214. );
  2215. }
  2216. };
  2217. /**
  2218. * optional string token = 1;
  2219. * @return {string}
  2220. */
  2221. proto.im.PermissionCheck.prototype.getToken = function () {
  2222. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2223. };
  2224. /**
  2225. * @param {string} value
  2226. * @return {!proto.im.PermissionCheck} returns this
  2227. */
  2228. proto.im.PermissionCheck.prototype.setToken = function (value) {
  2229. return jspb.Message.setProto3StringField(this, 1, value);
  2230. };
  2231. /**
  2232. * optional string servicePath = 2;
  2233. * @return {string}
  2234. */
  2235. proto.im.PermissionCheck.prototype.getServicepath = function () {
  2236. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2237. };
  2238. /**
  2239. * @param {string} value
  2240. * @return {!proto.im.PermissionCheck} returns this
  2241. */
  2242. proto.im.PermissionCheck.prototype.setServicepath = function (value) {
  2243. return jspb.Message.setProto3StringField(this, 2, value);
  2244. };
  2245. if (jspb.Message.GENERATE_TO_OBJECT) {
  2246. /**
  2247. * Creates an object representation of this proto.
  2248. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2249. * Optional fields that are not set will be set to undefined.
  2250. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2251. * For the list of reserved names please see:
  2252. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2253. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2254. * JSPB instance for transitional soy proto support:
  2255. * http://goto/soy-param-migration
  2256. * @return {!Object}
  2257. */
  2258. proto.im.SessionCheckReply.prototype.toObject = function (opt_includeInstance) {
  2259. return proto.im.SessionCheckReply.toObject(opt_includeInstance, this);
  2260. };
  2261. /**
  2262. * Static version of the {@see toObject} method.
  2263. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2264. * the JSPB instance for transitional soy proto support:
  2265. * http://goto/soy-param-migration
  2266. * @param {!proto.im.SessionCheckReply} msg The msg instance to transform.
  2267. * @return {!Object}
  2268. * @suppress {unusedLocalVariables} f is only used for nested messages
  2269. */
  2270. proto.im.SessionCheckReply.toObject = function (includeInstance, msg) {
  2271. var f, obj = {
  2272. userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
  2273. };
  2274. if (includeInstance) {
  2275. obj.$jspbMessageInstance = msg;
  2276. }
  2277. return obj;
  2278. };
  2279. }
  2280. /**
  2281. * Deserializes binary data (in protobuf wire format).
  2282. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2283. * @return {!proto.im.SessionCheckReply}
  2284. */
  2285. proto.im.SessionCheckReply.deserializeBinary = function (bytes) {
  2286. var reader = new jspb.BinaryReader(bytes);
  2287. var msg = new proto.im.SessionCheckReply;
  2288. return proto.im.SessionCheckReply.deserializeBinaryFromReader(msg, reader);
  2289. };
  2290. /**
  2291. * Deserializes binary data (in protobuf wire format) from the
  2292. * given reader into the given message object.
  2293. * @param {!proto.im.SessionCheckReply} msg The message object to deserialize into.
  2294. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2295. * @return {!proto.im.SessionCheckReply}
  2296. */
  2297. proto.im.SessionCheckReply.deserializeBinaryFromReader = function (msg, reader) {
  2298. while (reader.nextField()) {
  2299. if (reader.isEndGroup()) {
  2300. break;
  2301. }
  2302. var field = reader.getFieldNumber();
  2303. switch (field) {
  2304. case 1:
  2305. var value = /** @type {number} */ (reader.readInt64());
  2306. msg.setUserid(value);
  2307. break;
  2308. default:
  2309. reader.skipField();
  2310. break;
  2311. }
  2312. }
  2313. return msg;
  2314. };
  2315. /**
  2316. * Serializes the message to binary data (in protobuf wire format).
  2317. * @return {!Uint8Array}
  2318. */
  2319. proto.im.SessionCheckReply.prototype.serializeBinary = function () {
  2320. var writer = new jspb.BinaryWriter();
  2321. proto.im.SessionCheckReply.serializeBinaryToWriter(this, writer);
  2322. return writer.getResultBuffer();
  2323. };
  2324. /**
  2325. * Serializes the given message to binary data (in protobuf wire
  2326. * format), writing to the given BinaryWriter.
  2327. * @param {!proto.im.SessionCheckReply} message
  2328. * @param {!jspb.BinaryWriter} writer
  2329. * @suppress {unusedLocalVariables} f is only used for nested messages
  2330. */
  2331. proto.im.SessionCheckReply.serializeBinaryToWriter = function (message, writer) {
  2332. var f = undefined;
  2333. f = message.getUserid();
  2334. if (f !== 0) {
  2335. writer.writeInt64(
  2336. 1,
  2337. f
  2338. );
  2339. }
  2340. };
  2341. /**
  2342. * optional int64 userId = 1;
  2343. * @return {number}
  2344. */
  2345. proto.im.SessionCheckReply.prototype.getUserid = function () {
  2346. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2347. };
  2348. /**
  2349. * @param {number} value
  2350. * @return {!proto.im.SessionCheckReply} returns this
  2351. */
  2352. proto.im.SessionCheckReply.prototype.setUserid = function (value) {
  2353. return jspb.Message.setProto3IntField(this, 1, value);
  2354. };
  2355. if (jspb.Message.GENERATE_TO_OBJECT) {
  2356. /**
  2357. * Creates an object representation of this proto.
  2358. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2359. * Optional fields that are not set will be set to undefined.
  2360. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2361. * For the list of reserved names please see:
  2362. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2363. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2364. * JSPB instance for transitional soy proto support:
  2365. * http://goto/soy-param-migration
  2366. * @return {!Object}
  2367. */
  2368. proto.im.Service.prototype.toObject = function (opt_includeInstance) {
  2369. return proto.im.Service.toObject(opt_includeInstance, this);
  2370. };
  2371. /**
  2372. * Static version of the {@see toObject} method.
  2373. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2374. * the JSPB instance for transitional soy proto support:
  2375. * http://goto/soy-param-migration
  2376. * @param {!proto.im.Service} msg The msg instance to transform.
  2377. * @return {!Object}
  2378. * @suppress {unusedLocalVariables} f is only used for nested messages
  2379. */
  2380. proto.im.Service.toObject = function (includeInstance, msg) {
  2381. var f, obj = {
  2382. path: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2383. memo: jspb.Message.getFieldWithDefault(msg, 2, "")
  2384. };
  2385. if (includeInstance) {
  2386. obj.$jspbMessageInstance = msg;
  2387. }
  2388. return obj;
  2389. };
  2390. }
  2391. /**
  2392. * Deserializes binary data (in protobuf wire format).
  2393. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2394. * @return {!proto.im.Service}
  2395. */
  2396. proto.im.Service.deserializeBinary = function (bytes) {
  2397. var reader = new jspb.BinaryReader(bytes);
  2398. var msg = new proto.im.Service;
  2399. return proto.im.Service.deserializeBinaryFromReader(msg, reader);
  2400. };
  2401. /**
  2402. * Deserializes binary data (in protobuf wire format) from the
  2403. * given reader into the given message object.
  2404. * @param {!proto.im.Service} msg The message object to deserialize into.
  2405. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2406. * @return {!proto.im.Service}
  2407. */
  2408. proto.im.Service.deserializeBinaryFromReader = function (msg, reader) {
  2409. while (reader.nextField()) {
  2410. if (reader.isEndGroup()) {
  2411. break;
  2412. }
  2413. var field = reader.getFieldNumber();
  2414. switch (field) {
  2415. case 1:
  2416. var value = /** @type {string} */ (reader.readString());
  2417. msg.setPath(value);
  2418. break;
  2419. case 2:
  2420. var value = /** @type {string} */ (reader.readString());
  2421. msg.setMemo(value);
  2422. break;
  2423. default:
  2424. reader.skipField();
  2425. break;
  2426. }
  2427. }
  2428. return msg;
  2429. };
  2430. /**
  2431. * Serializes the message to binary data (in protobuf wire format).
  2432. * @return {!Uint8Array}
  2433. */
  2434. proto.im.Service.prototype.serializeBinary = function () {
  2435. var writer = new jspb.BinaryWriter();
  2436. proto.im.Service.serializeBinaryToWriter(this, writer);
  2437. return writer.getResultBuffer();
  2438. };
  2439. /**
  2440. * Serializes the given message to binary data (in protobuf wire
  2441. * format), writing to the given BinaryWriter.
  2442. * @param {!proto.im.Service} message
  2443. * @param {!jspb.BinaryWriter} writer
  2444. * @suppress {unusedLocalVariables} f is only used for nested messages
  2445. */
  2446. proto.im.Service.serializeBinaryToWriter = function (message, writer) {
  2447. var f = undefined;
  2448. f = message.getPath();
  2449. if (f.length > 0) {
  2450. writer.writeString(
  2451. 1,
  2452. f
  2453. );
  2454. }
  2455. f = message.getMemo();
  2456. if (f.length > 0) {
  2457. writer.writeString(
  2458. 2,
  2459. f
  2460. );
  2461. }
  2462. };
  2463. /**
  2464. * optional string path = 1;
  2465. * @return {string}
  2466. */
  2467. proto.im.Service.prototype.getPath = function () {
  2468. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2469. };
  2470. /**
  2471. * @param {string} value
  2472. * @return {!proto.im.Service} returns this
  2473. */
  2474. proto.im.Service.prototype.setPath = function (value) {
  2475. return jspb.Message.setProto3StringField(this, 1, value);
  2476. };
  2477. /**
  2478. * optional string memo = 2;
  2479. * @return {string}
  2480. */
  2481. proto.im.Service.prototype.getMemo = function () {
  2482. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2483. };
  2484. /**
  2485. * @param {string} value
  2486. * @return {!proto.im.Service} returns this
  2487. */
  2488. proto.im.Service.prototype.setMemo = function (value) {
  2489. return jspb.Message.setProto3StringField(this, 2, value);
  2490. };
  2491. /**
  2492. * List of repeated fields within this message type.
  2493. * @private {!Array<number>}
  2494. * @const
  2495. */
  2496. proto.im.SaveServiceListRequest.repeatedFields_ = [1];
  2497. if (jspb.Message.GENERATE_TO_OBJECT) {
  2498. /**
  2499. * Creates an object representation of this proto.
  2500. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2501. * Optional fields that are not set will be set to undefined.
  2502. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2503. * For the list of reserved names please see:
  2504. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2505. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2506. * JSPB instance for transitional soy proto support:
  2507. * http://goto/soy-param-migration
  2508. * @return {!Object}
  2509. */
  2510. proto.im.SaveServiceListRequest.prototype.toObject = function (opt_includeInstance) {
  2511. return proto.im.SaveServiceListRequest.toObject(opt_includeInstance, this);
  2512. };
  2513. /**
  2514. * Static version of the {@see toObject} method.
  2515. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2516. * the JSPB instance for transitional soy proto support:
  2517. * http://goto/soy-param-migration
  2518. * @param {!proto.im.SaveServiceListRequest} msg The msg instance to transform.
  2519. * @return {!Object}
  2520. * @suppress {unusedLocalVariables} f is only used for nested messages
  2521. */
  2522. proto.im.SaveServiceListRequest.toObject = function (includeInstance, msg) {
  2523. var f, obj = {
  2524. listList: jspb.Message.toObjectList(msg.getListList(),
  2525. proto.im.Service.toObject, includeInstance)
  2526. };
  2527. if (includeInstance) {
  2528. obj.$jspbMessageInstance = msg;
  2529. }
  2530. return obj;
  2531. };
  2532. }
  2533. /**
  2534. * Deserializes binary data (in protobuf wire format).
  2535. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2536. * @return {!proto.im.SaveServiceListRequest}
  2537. */
  2538. proto.im.SaveServiceListRequest.deserializeBinary = function (bytes) {
  2539. var reader = new jspb.BinaryReader(bytes);
  2540. var msg = new proto.im.SaveServiceListRequest;
  2541. return proto.im.SaveServiceListRequest.deserializeBinaryFromReader(msg, reader);
  2542. };
  2543. /**
  2544. * Deserializes binary data (in protobuf wire format) from the
  2545. * given reader into the given message object.
  2546. * @param {!proto.im.SaveServiceListRequest} msg The message object to deserialize into.
  2547. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2548. * @return {!proto.im.SaveServiceListRequest}
  2549. */
  2550. proto.im.SaveServiceListRequest.deserializeBinaryFromReader = function (msg, reader) {
  2551. while (reader.nextField()) {
  2552. if (reader.isEndGroup()) {
  2553. break;
  2554. }
  2555. var field = reader.getFieldNumber();
  2556. switch (field) {
  2557. case 1:
  2558. var value = new proto.im.Service;
  2559. reader.readMessage(value, proto.im.Service.deserializeBinaryFromReader);
  2560. msg.addList(value);
  2561. break;
  2562. default:
  2563. reader.skipField();
  2564. break;
  2565. }
  2566. }
  2567. return msg;
  2568. };
  2569. /**
  2570. * Serializes the message to binary data (in protobuf wire format).
  2571. * @return {!Uint8Array}
  2572. */
  2573. proto.im.SaveServiceListRequest.prototype.serializeBinary = function () {
  2574. var writer = new jspb.BinaryWriter();
  2575. proto.im.SaveServiceListRequest.serializeBinaryToWriter(this, writer);
  2576. return writer.getResultBuffer();
  2577. };
  2578. /**
  2579. * Serializes the given message to binary data (in protobuf wire
  2580. * format), writing to the given BinaryWriter.
  2581. * @param {!proto.im.SaveServiceListRequest} message
  2582. * @param {!jspb.BinaryWriter} writer
  2583. * @suppress {unusedLocalVariables} f is only used for nested messages
  2584. */
  2585. proto.im.SaveServiceListRequest.serializeBinaryToWriter = function (message, writer) {
  2586. var f = undefined;
  2587. f = message.getListList();
  2588. if (f.length > 0) {
  2589. writer.writeRepeatedMessage(
  2590. 1,
  2591. f,
  2592. proto.im.Service.serializeBinaryToWriter
  2593. );
  2594. }
  2595. };
  2596. /**
  2597. * repeated Service list = 1;
  2598. * @return {!Array<!proto.im.Service>}
  2599. */
  2600. proto.im.SaveServiceListRequest.prototype.getListList = function () {
  2601. return /** @type{!Array<!proto.im.Service>} */ (
  2602. jspb.Message.getRepeatedWrapperField(this, proto.im.Service, 1));
  2603. };
  2604. /**
  2605. * @param {!Array<!proto.im.Service>} value
  2606. * @return {!proto.im.SaveServiceListRequest} returns this
  2607. */
  2608. proto.im.SaveServiceListRequest.prototype.setListList = function (value) {
  2609. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  2610. };
  2611. /**
  2612. * @param {!proto.im.Service=} opt_value
  2613. * @param {number=} opt_index
  2614. * @return {!proto.im.Service}
  2615. */
  2616. proto.im.SaveServiceListRequest.prototype.addList = function (opt_value, opt_index) {
  2617. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.Service, opt_index);
  2618. };
  2619. /**
  2620. * Clears the list making it empty but non-null.
  2621. * @return {!proto.im.SaveServiceListRequest} returns this
  2622. */
  2623. proto.im.SaveServiceListRequest.prototype.clearListList = function () {
  2624. return this.setListList([]);
  2625. };
  2626. if (jspb.Message.GENERATE_TO_OBJECT) {
  2627. /**
  2628. * Creates an object representation of this proto.
  2629. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2630. * Optional fields that are not set will be set to undefined.
  2631. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2632. * For the list of reserved names please see:
  2633. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2634. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2635. * JSPB instance for transitional soy proto support:
  2636. * http://goto/soy-param-migration
  2637. * @return {!Object}
  2638. */
  2639. proto.im.CreateSystemRequest.prototype.toObject = function (opt_includeInstance) {
  2640. return proto.im.CreateSystemRequest.toObject(opt_includeInstance, this);
  2641. };
  2642. /**
  2643. * Static version of the {@see toObject} method.
  2644. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2645. * the JSPB instance for transitional soy proto support:
  2646. * http://goto/soy-param-migration
  2647. * @param {!proto.im.CreateSystemRequest} msg The msg instance to transform.
  2648. * @return {!Object}
  2649. * @suppress {unusedLocalVariables} f is only used for nested messages
  2650. */
  2651. proto.im.CreateSystemRequest.toObject = function (includeInstance, msg) {
  2652. var f, obj = {
  2653. fullname: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2654. shortname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  2655. sysurl: jspb.Message.getFieldWithDefault(msg, 3, ""),
  2656. memo: jspb.Message.getFieldWithDefault(msg, 4, "")
  2657. };
  2658. if (includeInstance) {
  2659. obj.$jspbMessageInstance = msg;
  2660. }
  2661. return obj;
  2662. };
  2663. }
  2664. /**
  2665. * Deserializes binary data (in protobuf wire format).
  2666. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2667. * @return {!proto.im.CreateSystemRequest}
  2668. */
  2669. proto.im.CreateSystemRequest.deserializeBinary = function (bytes) {
  2670. var reader = new jspb.BinaryReader(bytes);
  2671. var msg = new proto.im.CreateSystemRequest;
  2672. return proto.im.CreateSystemRequest.deserializeBinaryFromReader(msg, reader);
  2673. };
  2674. /**
  2675. * Deserializes binary data (in protobuf wire format) from the
  2676. * given reader into the given message object.
  2677. * @param {!proto.im.CreateSystemRequest} msg The message object to deserialize into.
  2678. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2679. * @return {!proto.im.CreateSystemRequest}
  2680. */
  2681. proto.im.CreateSystemRequest.deserializeBinaryFromReader = function (msg, reader) {
  2682. while (reader.nextField()) {
  2683. if (reader.isEndGroup()) {
  2684. break;
  2685. }
  2686. var field = reader.getFieldNumber();
  2687. switch (field) {
  2688. case 1:
  2689. var value = /** @type {string} */ (reader.readString());
  2690. msg.setFullname(value);
  2691. break;
  2692. case 2:
  2693. var value = /** @type {string} */ (reader.readString());
  2694. msg.setShortname(value);
  2695. break;
  2696. case 3:
  2697. var value = /** @type {string} */ (reader.readString());
  2698. msg.setSysurl(value);
  2699. break;
  2700. case 4:
  2701. var value = /** @type {string} */ (reader.readString());
  2702. msg.setMemo(value);
  2703. break;
  2704. default:
  2705. reader.skipField();
  2706. break;
  2707. }
  2708. }
  2709. return msg;
  2710. };
  2711. /**
  2712. * Serializes the message to binary data (in protobuf wire format).
  2713. * @return {!Uint8Array}
  2714. */
  2715. proto.im.CreateSystemRequest.prototype.serializeBinary = function () {
  2716. var writer = new jspb.BinaryWriter();
  2717. proto.im.CreateSystemRequest.serializeBinaryToWriter(this, writer);
  2718. return writer.getResultBuffer();
  2719. };
  2720. /**
  2721. * Serializes the given message to binary data (in protobuf wire
  2722. * format), writing to the given BinaryWriter.
  2723. * @param {!proto.im.CreateSystemRequest} message
  2724. * @param {!jspb.BinaryWriter} writer
  2725. * @suppress {unusedLocalVariables} f is only used for nested messages
  2726. */
  2727. proto.im.CreateSystemRequest.serializeBinaryToWriter = function (message, writer) {
  2728. var f = undefined;
  2729. f = message.getFullname();
  2730. if (f.length > 0) {
  2731. writer.writeString(
  2732. 1,
  2733. f
  2734. );
  2735. }
  2736. f = message.getShortname();
  2737. if (f.length > 0) {
  2738. writer.writeString(
  2739. 2,
  2740. f
  2741. );
  2742. }
  2743. f = message.getSysurl();
  2744. if (f.length > 0) {
  2745. writer.writeString(
  2746. 3,
  2747. f
  2748. );
  2749. }
  2750. f = message.getMemo();
  2751. if (f.length > 0) {
  2752. writer.writeString(
  2753. 4,
  2754. f
  2755. );
  2756. }
  2757. };
  2758. /**
  2759. * optional string fullName = 1;
  2760. * @return {string}
  2761. */
  2762. proto.im.CreateSystemRequest.prototype.getFullname = function () {
  2763. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2764. };
  2765. /**
  2766. * @param {string} value
  2767. * @return {!proto.im.CreateSystemRequest} returns this
  2768. */
  2769. proto.im.CreateSystemRequest.prototype.setFullname = function (value) {
  2770. return jspb.Message.setProto3StringField(this, 1, value);
  2771. };
  2772. /**
  2773. * optional string shortname = 2;
  2774. * @return {string}
  2775. */
  2776. proto.im.CreateSystemRequest.prototype.getShortname = function () {
  2777. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2778. };
  2779. /**
  2780. * @param {string} value
  2781. * @return {!proto.im.CreateSystemRequest} returns this
  2782. */
  2783. proto.im.CreateSystemRequest.prototype.setShortname = function (value) {
  2784. return jspb.Message.setProto3StringField(this, 2, value);
  2785. };
  2786. /**
  2787. * optional string sysUrl = 3;
  2788. * @return {string}
  2789. */
  2790. proto.im.CreateSystemRequest.prototype.getSysurl = function () {
  2791. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  2792. };
  2793. /**
  2794. * @param {string} value
  2795. * @return {!proto.im.CreateSystemRequest} returns this
  2796. */
  2797. proto.im.CreateSystemRequest.prototype.setSysurl = function (value) {
  2798. return jspb.Message.setProto3StringField(this, 3, value);
  2799. };
  2800. /**
  2801. * optional string memo = 4;
  2802. * @return {string}
  2803. */
  2804. proto.im.CreateSystemRequest.prototype.getMemo = function () {
  2805. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  2806. };
  2807. /**
  2808. * @param {string} value
  2809. * @return {!proto.im.CreateSystemRequest} returns this
  2810. */
  2811. proto.im.CreateSystemRequest.prototype.setMemo = function (value) {
  2812. return jspb.Message.setProto3StringField(this, 4, value);
  2813. };
  2814. if (jspb.Message.GENERATE_TO_OBJECT) {
  2815. /**
  2816. * Creates an object representation of this proto.
  2817. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2818. * Optional fields that are not set will be set to undefined.
  2819. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2820. * For the list of reserved names please see:
  2821. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2822. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2823. * JSPB instance for transitional soy proto support:
  2824. * http://goto/soy-param-migration
  2825. * @return {!Object}
  2826. */
  2827. proto.im.UserGetColumnListRequest.prototype.toObject = function (opt_includeInstance) {
  2828. return proto.im.UserGetColumnListRequest.toObject(opt_includeInstance, this);
  2829. };
  2830. /**
  2831. * Static version of the {@see toObject} method.
  2832. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2833. * the JSPB instance for transitional soy proto support:
  2834. * http://goto/soy-param-migration
  2835. * @param {!proto.im.UserGetColumnListRequest} msg The msg instance to transform.
  2836. * @return {!Object}
  2837. * @suppress {unusedLocalVariables} f is only used for nested messages
  2838. */
  2839. proto.im.UserGetColumnListRequest.toObject = function (includeInstance, msg) {
  2840. var f, obj = {
  2841. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2842. parentid: jspb.Message.getFieldWithDefault(msg, 2, 0),
  2843. sysid: jspb.Message.getFieldWithDefault(msg, 3, 0)
  2844. };
  2845. if (includeInstance) {
  2846. obj.$jspbMessageInstance = msg;
  2847. }
  2848. return obj;
  2849. };
  2850. }
  2851. /**
  2852. * Deserializes binary data (in protobuf wire format).
  2853. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2854. * @return {!proto.im.UserGetColumnListRequest}
  2855. */
  2856. proto.im.UserGetColumnListRequest.deserializeBinary = function (bytes) {
  2857. var reader = new jspb.BinaryReader(bytes);
  2858. var msg = new proto.im.UserGetColumnListRequest;
  2859. return proto.im.UserGetColumnListRequest.deserializeBinaryFromReader(msg, reader);
  2860. };
  2861. /**
  2862. * Deserializes binary data (in protobuf wire format) from the
  2863. * given reader into the given message object.
  2864. * @param {!proto.im.UserGetColumnListRequest} msg The message object to deserialize into.
  2865. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2866. * @return {!proto.im.UserGetColumnListRequest}
  2867. */
  2868. proto.im.UserGetColumnListRequest.deserializeBinaryFromReader = function (msg, reader) {
  2869. while (reader.nextField()) {
  2870. if (reader.isEndGroup()) {
  2871. break;
  2872. }
  2873. var field = reader.getFieldNumber();
  2874. switch (field) {
  2875. case 1:
  2876. var value = /** @type {number} */ (reader.readInt64());
  2877. msg.setUserid(value);
  2878. break;
  2879. case 2:
  2880. var value = /** @type {number} */ (reader.readInt32());
  2881. msg.setParentid(value);
  2882. break;
  2883. case 3:
  2884. var value = /** @type {number} */ (reader.readInt64());
  2885. msg.setSysid(value);
  2886. break;
  2887. default:
  2888. reader.skipField();
  2889. break;
  2890. }
  2891. }
  2892. return msg;
  2893. };
  2894. /**
  2895. * Serializes the message to binary data (in protobuf wire format).
  2896. * @return {!Uint8Array}
  2897. */
  2898. proto.im.UserGetColumnListRequest.prototype.serializeBinary = function () {
  2899. var writer = new jspb.BinaryWriter();
  2900. proto.im.UserGetColumnListRequest.serializeBinaryToWriter(this, writer);
  2901. return writer.getResultBuffer();
  2902. };
  2903. /**
  2904. * Serializes the given message to binary data (in protobuf wire
  2905. * format), writing to the given BinaryWriter.
  2906. * @param {!proto.im.UserGetColumnListRequest} message
  2907. * @param {!jspb.BinaryWriter} writer
  2908. * @suppress {unusedLocalVariables} f is only used for nested messages
  2909. */
  2910. proto.im.UserGetColumnListRequest.serializeBinaryToWriter = function (message, writer) {
  2911. var f = undefined;
  2912. f = message.getUserid();
  2913. if (f !== 0) {
  2914. writer.writeInt64(
  2915. 1,
  2916. f
  2917. );
  2918. }
  2919. f = message.getParentid();
  2920. if (f !== 0) {
  2921. writer.writeInt32(
  2922. 2,
  2923. f
  2924. );
  2925. }
  2926. f = message.getSysid();
  2927. if (f !== 0) {
  2928. writer.writeInt64(
  2929. 3,
  2930. f
  2931. );
  2932. }
  2933. };
  2934. /**
  2935. * optional int64 userId = 1;
  2936. * @return {number}
  2937. */
  2938. proto.im.UserGetColumnListRequest.prototype.getUserid = function () {
  2939. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2940. };
  2941. /**
  2942. * @param {number} value
  2943. * @return {!proto.im.UserGetColumnListRequest} returns this
  2944. */
  2945. proto.im.UserGetColumnListRequest.prototype.setUserid = function (value) {
  2946. return jspb.Message.setProto3IntField(this, 1, value);
  2947. };
  2948. /**
  2949. * optional int32 parentId = 2;
  2950. * @return {number}
  2951. */
  2952. proto.im.UserGetColumnListRequest.prototype.getParentid = function () {
  2953. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  2954. };
  2955. /**
  2956. * @param {number} value
  2957. * @return {!proto.im.UserGetColumnListRequest} returns this
  2958. */
  2959. proto.im.UserGetColumnListRequest.prototype.setParentid = function (value) {
  2960. return jspb.Message.setProto3IntField(this, 2, value);
  2961. };
  2962. /**
  2963. * optional int64 sysId = 3;
  2964. * @return {number}
  2965. */
  2966. proto.im.UserGetColumnListRequest.prototype.getSysid = function () {
  2967. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  2968. };
  2969. /**
  2970. * @param {number} value
  2971. * @return {!proto.im.UserGetColumnListRequest} returns this
  2972. */
  2973. proto.im.UserGetColumnListRequest.prototype.setSysid = function (value) {
  2974. return jspb.Message.setProto3IntField(this, 3, value);
  2975. };
  2976. if (jspb.Message.GENERATE_TO_OBJECT) {
  2977. /**
  2978. * Creates an object representation of this proto.
  2979. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2980. * Optional fields that are not set will be set to undefined.
  2981. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2982. * For the list of reserved names please see:
  2983. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2984. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2985. * JSPB instance for transitional soy proto support:
  2986. * http://goto/soy-param-migration
  2987. * @return {!Object}
  2988. */
  2989. proto.im.Column.prototype.toObject = function (opt_includeInstance) {
  2990. return proto.im.Column.toObject(opt_includeInstance, this);
  2991. };
  2992. /**
  2993. * Static version of the {@see toObject} method.
  2994. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2995. * the JSPB instance for transitional soy proto support:
  2996. * http://goto/soy-param-migration
  2997. * @param {!proto.im.Column} msg The msg instance to transform.
  2998. * @return {!Object}
  2999. * @suppress {unusedLocalVariables} f is only used for nested messages
  3000. */
  3001. proto.im.Column.toObject = function (includeInstance, msg) {
  3002. var f, obj = {
  3003. name: jspb.Message.getFieldWithDefault(msg, 1, ""),
  3004. url: jspb.Message.getFieldWithDefault(msg, 2, ""),
  3005. code: jspb.Message.getFieldWithDefault(msg, 3, ""),
  3006. sn: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3007. status: jspb.Message.getFieldWithDefault(msg, 5, 0),
  3008. navshow: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
  3009. id: jspb.Message.getFieldWithDefault(msg, 7, 0)
  3010. };
  3011. if (includeInstance) {
  3012. obj.$jspbMessageInstance = msg;
  3013. }
  3014. return obj;
  3015. };
  3016. }
  3017. /**
  3018. * Deserializes binary data (in protobuf wire format).
  3019. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3020. * @return {!proto.im.Column}
  3021. */
  3022. proto.im.Column.deserializeBinary = function (bytes) {
  3023. var reader = new jspb.BinaryReader(bytes);
  3024. var msg = new proto.im.Column;
  3025. return proto.im.Column.deserializeBinaryFromReader(msg, reader);
  3026. };
  3027. /**
  3028. * Deserializes binary data (in protobuf wire format) from the
  3029. * given reader into the given message object.
  3030. * @param {!proto.im.Column} msg The message object to deserialize into.
  3031. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3032. * @return {!proto.im.Column}
  3033. */
  3034. proto.im.Column.deserializeBinaryFromReader = function (msg, reader) {
  3035. while (reader.nextField()) {
  3036. if (reader.isEndGroup()) {
  3037. break;
  3038. }
  3039. var field = reader.getFieldNumber();
  3040. switch (field) {
  3041. case 1:
  3042. var value = /** @type {string} */ (reader.readString());
  3043. msg.setName(value);
  3044. break;
  3045. case 2:
  3046. var value = /** @type {string} */ (reader.readString());
  3047. msg.setUrl(value);
  3048. break;
  3049. case 3:
  3050. var value = /** @type {string} */ (reader.readString());
  3051. msg.setCode(value);
  3052. break;
  3053. case 4:
  3054. var value = /** @type {number} */ (reader.readInt32());
  3055. msg.setSn(value);
  3056. break;
  3057. case 5:
  3058. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  3059. msg.setStatus(value);
  3060. break;
  3061. case 6:
  3062. var value = /** @type {boolean} */ (reader.readBool());
  3063. msg.setNavshow(value);
  3064. break;
  3065. case 7:
  3066. var value = /** @type {number} */ (reader.readInt64());
  3067. msg.setId(value);
  3068. break;
  3069. default:
  3070. reader.skipField();
  3071. break;
  3072. }
  3073. }
  3074. return msg;
  3075. };
  3076. /**
  3077. * Serializes the message to binary data (in protobuf wire format).
  3078. * @return {!Uint8Array}
  3079. */
  3080. proto.im.Column.prototype.serializeBinary = function () {
  3081. var writer = new jspb.BinaryWriter();
  3082. proto.im.Column.serializeBinaryToWriter(this, writer);
  3083. return writer.getResultBuffer();
  3084. };
  3085. /**
  3086. * Serializes the given message to binary data (in protobuf wire
  3087. * format), writing to the given BinaryWriter.
  3088. * @param {!proto.im.Column} message
  3089. * @param {!jspb.BinaryWriter} writer
  3090. * @suppress {unusedLocalVariables} f is only used for nested messages
  3091. */
  3092. proto.im.Column.serializeBinaryToWriter = function (message, writer) {
  3093. var f = undefined;
  3094. f = message.getName();
  3095. if (f.length > 0) {
  3096. writer.writeString(
  3097. 1,
  3098. f
  3099. );
  3100. }
  3101. f = message.getUrl();
  3102. if (f.length > 0) {
  3103. writer.writeString(
  3104. 2,
  3105. f
  3106. );
  3107. }
  3108. f = message.getCode();
  3109. if (f.length > 0) {
  3110. writer.writeString(
  3111. 3,
  3112. f
  3113. );
  3114. }
  3115. f = message.getSn();
  3116. if (f !== 0) {
  3117. writer.writeInt32(
  3118. 4,
  3119. f
  3120. );
  3121. }
  3122. f = message.getStatus();
  3123. if (f !== 0.0) {
  3124. writer.writeEnum(
  3125. 5,
  3126. f
  3127. );
  3128. }
  3129. f = message.getNavshow();
  3130. if (f) {
  3131. writer.writeBool(
  3132. 6,
  3133. f
  3134. );
  3135. }
  3136. f = message.getId();
  3137. if (f !== 0) {
  3138. writer.writeInt64(
  3139. 7,
  3140. f
  3141. );
  3142. }
  3143. };
  3144. /**
  3145. * optional string name = 1;
  3146. * @return {string}
  3147. */
  3148. proto.im.Column.prototype.getName = function () {
  3149. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3150. };
  3151. /**
  3152. * @param {string} value
  3153. * @return {!proto.im.Column} returns this
  3154. */
  3155. proto.im.Column.prototype.setName = function (value) {
  3156. return jspb.Message.setProto3StringField(this, 1, value);
  3157. };
  3158. /**
  3159. * optional string url = 2;
  3160. * @return {string}
  3161. */
  3162. proto.im.Column.prototype.getUrl = function () {
  3163. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3164. };
  3165. /**
  3166. * @param {string} value
  3167. * @return {!proto.im.Column} returns this
  3168. */
  3169. proto.im.Column.prototype.setUrl = function (value) {
  3170. return jspb.Message.setProto3StringField(this, 2, value);
  3171. };
  3172. /**
  3173. * optional string code = 3;
  3174. * @return {string}
  3175. */
  3176. proto.im.Column.prototype.getCode = function () {
  3177. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  3178. };
  3179. /**
  3180. * @param {string} value
  3181. * @return {!proto.im.Column} returns this
  3182. */
  3183. proto.im.Column.prototype.setCode = function (value) {
  3184. return jspb.Message.setProto3StringField(this, 3, value);
  3185. };
  3186. /**
  3187. * optional int32 sn = 4;
  3188. * @return {number}
  3189. */
  3190. proto.im.Column.prototype.getSn = function () {
  3191. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3192. };
  3193. /**
  3194. * @param {number} value
  3195. * @return {!proto.im.Column} returns this
  3196. */
  3197. proto.im.Column.prototype.setSn = function (value) {
  3198. return jspb.Message.setProto3IntField(this, 4, value);
  3199. };
  3200. /**
  3201. * optional Status status = 5;
  3202. * @return {!proto.im.Status}
  3203. */
  3204. proto.im.Column.prototype.getStatus = function () {
  3205. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  3206. };
  3207. /**
  3208. * @param {!proto.im.Status} value
  3209. * @return {!proto.im.Column} returns this
  3210. */
  3211. proto.im.Column.prototype.setStatus = function (value) {
  3212. return jspb.Message.setProto3EnumField(this, 5, value);
  3213. };
  3214. /**
  3215. * optional bool navShow = 6;
  3216. * @return {boolean}
  3217. */
  3218. proto.im.Column.prototype.getNavshow = function () {
  3219. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
  3220. };
  3221. /**
  3222. * @param {boolean} value
  3223. * @return {!proto.im.Column} returns this
  3224. */
  3225. proto.im.Column.prototype.setNavshow = function (value) {
  3226. return jspb.Message.setProto3BooleanField(this, 6, value);
  3227. };
  3228. /**
  3229. * optional int64 id = 7;
  3230. * @return {number}
  3231. */
  3232. proto.im.Column.prototype.getId = function () {
  3233. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  3234. };
  3235. /**
  3236. * @param {number} value
  3237. * @return {!proto.im.Column} returns this
  3238. */
  3239. proto.im.Column.prototype.setId = function (value) {
  3240. return jspb.Message.setProto3IntField(this, 7, value);
  3241. };
  3242. /**
  3243. * List of repeated fields within this message type.
  3244. * @private {!Array<number>}
  3245. * @const
  3246. */
  3247. proto.im.UserGetColumnListReply.repeatedFields_ = [1];
  3248. if (jspb.Message.GENERATE_TO_OBJECT) {
  3249. /**
  3250. * Creates an object representation of this proto.
  3251. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3252. * Optional fields that are not set will be set to undefined.
  3253. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3254. * For the list of reserved names please see:
  3255. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3256. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3257. * JSPB instance for transitional soy proto support:
  3258. * http://goto/soy-param-migration
  3259. * @return {!Object}
  3260. */
  3261. proto.im.UserGetColumnListReply.prototype.toObject = function (opt_includeInstance) {
  3262. return proto.im.UserGetColumnListReply.toObject(opt_includeInstance, this);
  3263. };
  3264. /**
  3265. * Static version of the {@see toObject} method.
  3266. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3267. * the JSPB instance for transitional soy proto support:
  3268. * http://goto/soy-param-migration
  3269. * @param {!proto.im.UserGetColumnListReply} msg The msg instance to transform.
  3270. * @return {!Object}
  3271. * @suppress {unusedLocalVariables} f is only used for nested messages
  3272. */
  3273. proto.im.UserGetColumnListReply.toObject = function (includeInstance, msg) {
  3274. var f, obj = {
  3275. listList: jspb.Message.toObjectList(msg.getListList(),
  3276. proto.im.Column.toObject, includeInstance)
  3277. };
  3278. if (includeInstance) {
  3279. obj.$jspbMessageInstance = msg;
  3280. }
  3281. return obj;
  3282. };
  3283. }
  3284. /**
  3285. * Deserializes binary data (in protobuf wire format).
  3286. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3287. * @return {!proto.im.UserGetColumnListReply}
  3288. */
  3289. proto.im.UserGetColumnListReply.deserializeBinary = function (bytes) {
  3290. var reader = new jspb.BinaryReader(bytes);
  3291. var msg = new proto.im.UserGetColumnListReply;
  3292. return proto.im.UserGetColumnListReply.deserializeBinaryFromReader(msg, reader);
  3293. };
  3294. /**
  3295. * Deserializes binary data (in protobuf wire format) from the
  3296. * given reader into the given message object.
  3297. * @param {!proto.im.UserGetColumnListReply} msg The message object to deserialize into.
  3298. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3299. * @return {!proto.im.UserGetColumnListReply}
  3300. */
  3301. proto.im.UserGetColumnListReply.deserializeBinaryFromReader = function (msg, reader) {
  3302. while (reader.nextField()) {
  3303. if (reader.isEndGroup()) {
  3304. break;
  3305. }
  3306. var field = reader.getFieldNumber();
  3307. switch (field) {
  3308. case 1:
  3309. var value = new proto.im.Column;
  3310. reader.readMessage(value, proto.im.Column.deserializeBinaryFromReader);
  3311. msg.addList(value);
  3312. break;
  3313. default:
  3314. reader.skipField();
  3315. break;
  3316. }
  3317. }
  3318. return msg;
  3319. };
  3320. /**
  3321. * Serializes the message to binary data (in protobuf wire format).
  3322. * @return {!Uint8Array}
  3323. */
  3324. proto.im.UserGetColumnListReply.prototype.serializeBinary = function () {
  3325. var writer = new jspb.BinaryWriter();
  3326. proto.im.UserGetColumnListReply.serializeBinaryToWriter(this, writer);
  3327. return writer.getResultBuffer();
  3328. };
  3329. /**
  3330. * Serializes the given message to binary data (in protobuf wire
  3331. * format), writing to the given BinaryWriter.
  3332. * @param {!proto.im.UserGetColumnListReply} message
  3333. * @param {!jspb.BinaryWriter} writer
  3334. * @suppress {unusedLocalVariables} f is only used for nested messages
  3335. */
  3336. proto.im.UserGetColumnListReply.serializeBinaryToWriter = function (message, writer) {
  3337. var f = undefined;
  3338. f = message.getListList();
  3339. if (f.length > 0) {
  3340. writer.writeRepeatedMessage(
  3341. 1,
  3342. f,
  3343. proto.im.Column.serializeBinaryToWriter
  3344. );
  3345. }
  3346. };
  3347. /**
  3348. * repeated Column list = 1;
  3349. * @return {!Array<!proto.im.Column>}
  3350. */
  3351. proto.im.UserGetColumnListReply.prototype.getListList = function () {
  3352. return /** @type{!Array<!proto.im.Column>} */ (
  3353. jspb.Message.getRepeatedWrapperField(this, proto.im.Column, 1));
  3354. };
  3355. /**
  3356. * @param {!Array<!proto.im.Column>} value
  3357. * @return {!proto.im.UserGetColumnListReply} returns this
  3358. */
  3359. proto.im.UserGetColumnListReply.prototype.setListList = function (value) {
  3360. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  3361. };
  3362. /**
  3363. * @param {!proto.im.Column=} opt_value
  3364. * @param {number=} opt_index
  3365. * @return {!proto.im.Column}
  3366. */
  3367. proto.im.UserGetColumnListReply.prototype.addList = function (opt_value, opt_index) {
  3368. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.Column, opt_index);
  3369. };
  3370. /**
  3371. * Clears the list making it empty but non-null.
  3372. * @return {!proto.im.UserGetColumnListReply} returns this
  3373. */
  3374. proto.im.UserGetColumnListReply.prototype.clearListList = function () {
  3375. return this.setListList([]);
  3376. };
  3377. if (jspb.Message.GENERATE_TO_OBJECT) {
  3378. /**
  3379. * Creates an object representation of this proto.
  3380. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3381. * Optional fields that are not set will be set to undefined.
  3382. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3383. * For the list of reserved names please see:
  3384. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3385. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3386. * JSPB instance for transitional soy proto support:
  3387. * http://goto/soy-param-migration
  3388. * @return {!Object}
  3389. */
  3390. proto.im.CreateRoleRequest.prototype.toObject = function (opt_includeInstance) {
  3391. return proto.im.CreateRoleRequest.toObject(opt_includeInstance, this);
  3392. };
  3393. /**
  3394. * Static version of the {@see toObject} method.
  3395. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3396. * the JSPB instance for transitional soy proto support:
  3397. * http://goto/soy-param-migration
  3398. * @param {!proto.im.CreateRoleRequest} msg The msg instance to transform.
  3399. * @return {!Object}
  3400. * @suppress {unusedLocalVariables} f is only used for nested messages
  3401. */
  3402. proto.im.CreateRoleRequest.toObject = function (includeInstance, msg) {
  3403. var f, obj = {
  3404. name: jspb.Message.getFieldWithDefault(msg, 1, ""),
  3405. memo: jspb.Message.getFieldWithDefault(msg, 2, "")
  3406. };
  3407. if (includeInstance) {
  3408. obj.$jspbMessageInstance = msg;
  3409. }
  3410. return obj;
  3411. };
  3412. }
  3413. /**
  3414. * Deserializes binary data (in protobuf wire format).
  3415. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3416. * @return {!proto.im.CreateRoleRequest}
  3417. */
  3418. proto.im.CreateRoleRequest.deserializeBinary = function (bytes) {
  3419. var reader = new jspb.BinaryReader(bytes);
  3420. var msg = new proto.im.CreateRoleRequest;
  3421. return proto.im.CreateRoleRequest.deserializeBinaryFromReader(msg, reader);
  3422. };
  3423. /**
  3424. * Deserializes binary data (in protobuf wire format) from the
  3425. * given reader into the given message object.
  3426. * @param {!proto.im.CreateRoleRequest} msg The message object to deserialize into.
  3427. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3428. * @return {!proto.im.CreateRoleRequest}
  3429. */
  3430. proto.im.CreateRoleRequest.deserializeBinaryFromReader = function (msg, reader) {
  3431. while (reader.nextField()) {
  3432. if (reader.isEndGroup()) {
  3433. break;
  3434. }
  3435. var field = reader.getFieldNumber();
  3436. switch (field) {
  3437. case 1:
  3438. var value = /** @type {string} */ (reader.readString());
  3439. msg.setName(value);
  3440. break;
  3441. case 2:
  3442. var value = /** @type {string} */ (reader.readString());
  3443. msg.setMemo(value);
  3444. break;
  3445. default:
  3446. reader.skipField();
  3447. break;
  3448. }
  3449. }
  3450. return msg;
  3451. };
  3452. /**
  3453. * Serializes the message to binary data (in protobuf wire format).
  3454. * @return {!Uint8Array}
  3455. */
  3456. proto.im.CreateRoleRequest.prototype.serializeBinary = function () {
  3457. var writer = new jspb.BinaryWriter();
  3458. proto.im.CreateRoleRequest.serializeBinaryToWriter(this, writer);
  3459. return writer.getResultBuffer();
  3460. };
  3461. /**
  3462. * Serializes the given message to binary data (in protobuf wire
  3463. * format), writing to the given BinaryWriter.
  3464. * @param {!proto.im.CreateRoleRequest} message
  3465. * @param {!jspb.BinaryWriter} writer
  3466. * @suppress {unusedLocalVariables} f is only used for nested messages
  3467. */
  3468. proto.im.CreateRoleRequest.serializeBinaryToWriter = function (message, writer) {
  3469. var f = undefined;
  3470. f = message.getName();
  3471. if (f.length > 0) {
  3472. writer.writeString(
  3473. 1,
  3474. f
  3475. );
  3476. }
  3477. f = message.getMemo();
  3478. if (f.length > 0) {
  3479. writer.writeString(
  3480. 2,
  3481. f
  3482. );
  3483. }
  3484. };
  3485. /**
  3486. * optional string name = 1;
  3487. * @return {string}
  3488. */
  3489. proto.im.CreateRoleRequest.prototype.getName = function () {
  3490. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3491. };
  3492. /**
  3493. * @param {string} value
  3494. * @return {!proto.im.CreateRoleRequest} returns this
  3495. */
  3496. proto.im.CreateRoleRequest.prototype.setName = function (value) {
  3497. return jspb.Message.setProto3StringField(this, 1, value);
  3498. };
  3499. /**
  3500. * optional string memo = 2;
  3501. * @return {string}
  3502. */
  3503. proto.im.CreateRoleRequest.prototype.getMemo = function () {
  3504. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3505. };
  3506. /**
  3507. * @param {string} value
  3508. * @return {!proto.im.CreateRoleRequest} returns this
  3509. */
  3510. proto.im.CreateRoleRequest.prototype.setMemo = function (value) {
  3511. return jspb.Message.setProto3StringField(this, 2, value);
  3512. };
  3513. if (jspb.Message.GENERATE_TO_OBJECT) {
  3514. /**
  3515. * Creates an object representation of this proto.
  3516. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3517. * Optional fields that are not set will be set to undefined.
  3518. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3519. * For the list of reserved names please see:
  3520. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3521. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3522. * JSPB instance for transitional soy proto support:
  3523. * http://goto/soy-param-migration
  3524. * @return {!Object}
  3525. */
  3526. proto.im.Role.prototype.toObject = function (opt_includeInstance) {
  3527. return proto.im.Role.toObject(opt_includeInstance, this);
  3528. };
  3529. /**
  3530. * Static version of the {@see toObject} method.
  3531. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3532. * the JSPB instance for transitional soy proto support:
  3533. * http://goto/soy-param-migration
  3534. * @param {!proto.im.Role} msg The msg instance to transform.
  3535. * @return {!Object}
  3536. * @suppress {unusedLocalVariables} f is only used for nested messages
  3537. */
  3538. proto.im.Role.toObject = function (includeInstance, msg) {
  3539. var f, obj = {
  3540. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3541. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  3542. memo: jspb.Message.getFieldWithDefault(msg, 3, ""),
  3543. status: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3544. systemname: jspb.Message.getFieldWithDefault(msg, 5, "")
  3545. };
  3546. if (includeInstance) {
  3547. obj.$jspbMessageInstance = msg;
  3548. }
  3549. return obj;
  3550. };
  3551. }
  3552. /**
  3553. * Deserializes binary data (in protobuf wire format).
  3554. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3555. * @return {!proto.im.Role}
  3556. */
  3557. proto.im.Role.deserializeBinary = function (bytes) {
  3558. var reader = new jspb.BinaryReader(bytes);
  3559. var msg = new proto.im.Role;
  3560. return proto.im.Role.deserializeBinaryFromReader(msg, reader);
  3561. };
  3562. /**
  3563. * Deserializes binary data (in protobuf wire format) from the
  3564. * given reader into the given message object.
  3565. * @param {!proto.im.Role} msg The message object to deserialize into.
  3566. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3567. * @return {!proto.im.Role}
  3568. */
  3569. proto.im.Role.deserializeBinaryFromReader = function (msg, reader) {
  3570. while (reader.nextField()) {
  3571. if (reader.isEndGroup()) {
  3572. break;
  3573. }
  3574. var field = reader.getFieldNumber();
  3575. switch (field) {
  3576. case 1:
  3577. var value = /** @type {number} */ (reader.readInt64());
  3578. msg.setId(value);
  3579. break;
  3580. case 2:
  3581. var value = /** @type {string} */ (reader.readString());
  3582. msg.setName(value);
  3583. break;
  3584. case 3:
  3585. var value = /** @type {string} */ (reader.readString());
  3586. msg.setMemo(value);
  3587. break;
  3588. case 4:
  3589. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  3590. msg.setStatus(value);
  3591. break;
  3592. case 5:
  3593. var value = /** @type {string} */ (reader.readString());
  3594. msg.setSystemname(value);
  3595. break;
  3596. default:
  3597. reader.skipField();
  3598. break;
  3599. }
  3600. }
  3601. return msg;
  3602. };
  3603. /**
  3604. * Serializes the message to binary data (in protobuf wire format).
  3605. * @return {!Uint8Array}
  3606. */
  3607. proto.im.Role.prototype.serializeBinary = function () {
  3608. var writer = new jspb.BinaryWriter();
  3609. proto.im.Role.serializeBinaryToWriter(this, writer);
  3610. return writer.getResultBuffer();
  3611. };
  3612. /**
  3613. * Serializes the given message to binary data (in protobuf wire
  3614. * format), writing to the given BinaryWriter.
  3615. * @param {!proto.im.Role} message
  3616. * @param {!jspb.BinaryWriter} writer
  3617. * @suppress {unusedLocalVariables} f is only used for nested messages
  3618. */
  3619. proto.im.Role.serializeBinaryToWriter = function (message, writer) {
  3620. var f = undefined;
  3621. f = message.getId();
  3622. if (f !== 0) {
  3623. writer.writeInt64(
  3624. 1,
  3625. f
  3626. );
  3627. }
  3628. f = message.getName();
  3629. if (f.length > 0) {
  3630. writer.writeString(
  3631. 2,
  3632. f
  3633. );
  3634. }
  3635. f = message.getMemo();
  3636. if (f.length > 0) {
  3637. writer.writeString(
  3638. 3,
  3639. f
  3640. );
  3641. }
  3642. f = message.getStatus();
  3643. if (f !== 0.0) {
  3644. writer.writeEnum(
  3645. 4,
  3646. f
  3647. );
  3648. }
  3649. f = message.getSystemname();
  3650. if (f.length > 0) {
  3651. writer.writeString(
  3652. 5,
  3653. f
  3654. );
  3655. }
  3656. };
  3657. /**
  3658. * optional int64 id = 1;
  3659. * @return {number}
  3660. */
  3661. proto.im.Role.prototype.getId = function () {
  3662. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3663. };
  3664. /**
  3665. * @param {number} value
  3666. * @return {!proto.im.Role} returns this
  3667. */
  3668. proto.im.Role.prototype.setId = function (value) {
  3669. return jspb.Message.setProto3IntField(this, 1, value);
  3670. };
  3671. /**
  3672. * optional string name = 2;
  3673. * @return {string}
  3674. */
  3675. proto.im.Role.prototype.getName = function () {
  3676. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3677. };
  3678. /**
  3679. * @param {string} value
  3680. * @return {!proto.im.Role} returns this
  3681. */
  3682. proto.im.Role.prototype.setName = function (value) {
  3683. return jspb.Message.setProto3StringField(this, 2, value);
  3684. };
  3685. /**
  3686. * optional string memo = 3;
  3687. * @return {string}
  3688. */
  3689. proto.im.Role.prototype.getMemo = function () {
  3690. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  3691. };
  3692. /**
  3693. * @param {string} value
  3694. * @return {!proto.im.Role} returns this
  3695. */
  3696. proto.im.Role.prototype.setMemo = function (value) {
  3697. return jspb.Message.setProto3StringField(this, 3, value);
  3698. };
  3699. /**
  3700. * optional Status status = 4;
  3701. * @return {!proto.im.Status}
  3702. */
  3703. proto.im.Role.prototype.getStatus = function () {
  3704. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3705. };
  3706. /**
  3707. * @param {!proto.im.Status} value
  3708. * @return {!proto.im.Role} returns this
  3709. */
  3710. proto.im.Role.prototype.setStatus = function (value) {
  3711. return jspb.Message.setProto3EnumField(this, 4, value);
  3712. };
  3713. /**
  3714. * optional string systemName = 5;
  3715. * @return {string}
  3716. */
  3717. proto.im.Role.prototype.getSystemname = function () {
  3718. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  3719. };
  3720. /**
  3721. * @param {string} value
  3722. * @return {!proto.im.Role} returns this
  3723. */
  3724. proto.im.Role.prototype.setSystemname = function (value) {
  3725. return jspb.Message.setProto3StringField(this, 5, value);
  3726. };
  3727. if (jspb.Message.GENERATE_TO_OBJECT) {
  3728. /**
  3729. * Creates an object representation of this proto.
  3730. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3731. * Optional fields that are not set will be set to undefined.
  3732. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3733. * For the list of reserved names please see:
  3734. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3735. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3736. * JSPB instance for transitional soy proto support:
  3737. * http://goto/soy-param-migration
  3738. * @return {!Object}
  3739. */
  3740. proto.im.RoleListRequest.prototype.toObject = function (opt_includeInstance) {
  3741. return proto.im.RoleListRequest.toObject(opt_includeInstance, this);
  3742. };
  3743. /**
  3744. * Static version of the {@see toObject} method.
  3745. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3746. * the JSPB instance for transitional soy proto support:
  3747. * http://goto/soy-param-migration
  3748. * @param {!proto.im.RoleListRequest} msg The msg instance to transform.
  3749. * @return {!Object}
  3750. * @suppress {unusedLocalVariables} f is only used for nested messages
  3751. */
  3752. proto.im.RoleListRequest.toObject = function (includeInstance, msg) {
  3753. var f, obj = {
  3754. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3755. sysid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  3756. };
  3757. if (includeInstance) {
  3758. obj.$jspbMessageInstance = msg;
  3759. }
  3760. return obj;
  3761. };
  3762. }
  3763. /**
  3764. * Deserializes binary data (in protobuf wire format).
  3765. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3766. * @return {!proto.im.RoleListRequest}
  3767. */
  3768. proto.im.RoleListRequest.deserializeBinary = function (bytes) {
  3769. var reader = new jspb.BinaryReader(bytes);
  3770. var msg = new proto.im.RoleListRequest;
  3771. return proto.im.RoleListRequest.deserializeBinaryFromReader(msg, reader);
  3772. };
  3773. /**
  3774. * Deserializes binary data (in protobuf wire format) from the
  3775. * given reader into the given message object.
  3776. * @param {!proto.im.RoleListRequest} msg The message object to deserialize into.
  3777. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3778. * @return {!proto.im.RoleListRequest}
  3779. */
  3780. proto.im.RoleListRequest.deserializeBinaryFromReader = function (msg, reader) {
  3781. while (reader.nextField()) {
  3782. if (reader.isEndGroup()) {
  3783. break;
  3784. }
  3785. var field = reader.getFieldNumber();
  3786. switch (field) {
  3787. case 1:
  3788. var value = /** @type {number} */ (reader.readInt64());
  3789. msg.setUserid(value);
  3790. break;
  3791. case 2:
  3792. var value = /** @type {number} */ (reader.readInt64());
  3793. msg.setSysid(value);
  3794. break;
  3795. default:
  3796. reader.skipField();
  3797. break;
  3798. }
  3799. }
  3800. return msg;
  3801. };
  3802. /**
  3803. * Serializes the message to binary data (in protobuf wire format).
  3804. * @return {!Uint8Array}
  3805. */
  3806. proto.im.RoleListRequest.prototype.serializeBinary = function () {
  3807. var writer = new jspb.BinaryWriter();
  3808. proto.im.RoleListRequest.serializeBinaryToWriter(this, writer);
  3809. return writer.getResultBuffer();
  3810. };
  3811. /**
  3812. * Serializes the given message to binary data (in protobuf wire
  3813. * format), writing to the given BinaryWriter.
  3814. * @param {!proto.im.RoleListRequest} message
  3815. * @param {!jspb.BinaryWriter} writer
  3816. * @suppress {unusedLocalVariables} f is only used for nested messages
  3817. */
  3818. proto.im.RoleListRequest.serializeBinaryToWriter = function (message, writer) {
  3819. var f = undefined;
  3820. f = message.getUserid();
  3821. if (f !== 0) {
  3822. writer.writeInt64(
  3823. 1,
  3824. f
  3825. );
  3826. }
  3827. f = message.getSysid();
  3828. if (f !== 0) {
  3829. writer.writeInt64(
  3830. 2,
  3831. f
  3832. );
  3833. }
  3834. };
  3835. /**
  3836. * optional int64 userId = 1;
  3837. * @return {number}
  3838. */
  3839. proto.im.RoleListRequest.prototype.getUserid = function () {
  3840. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3841. };
  3842. /**
  3843. * @param {number} value
  3844. * @return {!proto.im.RoleListRequest} returns this
  3845. */
  3846. proto.im.RoleListRequest.prototype.setUserid = function (value) {
  3847. return jspb.Message.setProto3IntField(this, 1, value);
  3848. };
  3849. /**
  3850. * optional int64 sysId = 2;
  3851. * @return {number}
  3852. */
  3853. proto.im.RoleListRequest.prototype.getSysid = function () {
  3854. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  3855. };
  3856. /**
  3857. * @param {number} value
  3858. * @return {!proto.im.RoleListRequest} returns this
  3859. */
  3860. proto.im.RoleListRequest.prototype.setSysid = function (value) {
  3861. return jspb.Message.setProto3IntField(this, 2, value);
  3862. };
  3863. if (jspb.Message.GENERATE_TO_OBJECT) {
  3864. /**
  3865. * Creates an object representation of this proto.
  3866. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3867. * Optional fields that are not set will be set to undefined.
  3868. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3869. * For the list of reserved names please see:
  3870. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3871. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3872. * JSPB instance for transitional soy proto support:
  3873. * http://goto/soy-param-migration
  3874. * @return {!Object}
  3875. */
  3876. proto.im.UserListRequest.prototype.toObject = function (opt_includeInstance) {
  3877. return proto.im.UserListRequest.toObject(opt_includeInstance, this);
  3878. };
  3879. /**
  3880. * Static version of the {@see toObject} method.
  3881. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3882. * the JSPB instance for transitional soy proto support:
  3883. * http://goto/soy-param-migration
  3884. * @param {!proto.im.UserListRequest} msg The msg instance to transform.
  3885. * @return {!Object}
  3886. * @suppress {unusedLocalVariables} f is only used for nested messages
  3887. */
  3888. proto.im.UserListRequest.toObject = function (includeInstance, msg) {
  3889. var f, obj = {
  3890. roleid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3891. status: jspb.Message.getFieldWithDefault(msg, 2, 0),
  3892. name: jspb.Message.getFieldWithDefault(msg, 3, ""),
  3893. lcstypeid: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3894. sysid: jspb.Message.getFieldWithDefault(msg, 5, 0)
  3895. };
  3896. if (includeInstance) {
  3897. obj.$jspbMessageInstance = msg;
  3898. }
  3899. return obj;
  3900. };
  3901. }
  3902. /**
  3903. * Deserializes binary data (in protobuf wire format).
  3904. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3905. * @return {!proto.im.UserListRequest}
  3906. */
  3907. proto.im.UserListRequest.deserializeBinary = function (bytes) {
  3908. var reader = new jspb.BinaryReader(bytes);
  3909. var msg = new proto.im.UserListRequest;
  3910. return proto.im.UserListRequest.deserializeBinaryFromReader(msg, reader);
  3911. };
  3912. /**
  3913. * Deserializes binary data (in protobuf wire format) from the
  3914. * given reader into the given message object.
  3915. * @param {!proto.im.UserListRequest} msg The message object to deserialize into.
  3916. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3917. * @return {!proto.im.UserListRequest}
  3918. */
  3919. proto.im.UserListRequest.deserializeBinaryFromReader = function (msg, reader) {
  3920. while (reader.nextField()) {
  3921. if (reader.isEndGroup()) {
  3922. break;
  3923. }
  3924. var field = reader.getFieldNumber();
  3925. switch (field) {
  3926. case 1:
  3927. var value = /** @type {number} */ (reader.readInt64());
  3928. msg.setRoleid(value);
  3929. break;
  3930. case 2:
  3931. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  3932. msg.setStatus(value);
  3933. break;
  3934. case 3:
  3935. var value = /** @type {string} */ (reader.readString());
  3936. msg.setName(value);
  3937. break;
  3938. case 4:
  3939. var value = /** @type {number} */ (reader.readInt64());
  3940. msg.setLcstypeid(value);
  3941. break;
  3942. case 5:
  3943. var value = /** @type {number} */ (reader.readInt64());
  3944. msg.setSysid(value);
  3945. break;
  3946. default:
  3947. reader.skipField();
  3948. break;
  3949. }
  3950. }
  3951. return msg;
  3952. };
  3953. /**
  3954. * Serializes the message to binary data (in protobuf wire format).
  3955. * @return {!Uint8Array}
  3956. */
  3957. proto.im.UserListRequest.prototype.serializeBinary = function () {
  3958. var writer = new jspb.BinaryWriter();
  3959. proto.im.UserListRequest.serializeBinaryToWriter(this, writer);
  3960. return writer.getResultBuffer();
  3961. };
  3962. /**
  3963. * Serializes the given message to binary data (in protobuf wire
  3964. * format), writing to the given BinaryWriter.
  3965. * @param {!proto.im.UserListRequest} message
  3966. * @param {!jspb.BinaryWriter} writer
  3967. * @suppress {unusedLocalVariables} f is only used for nested messages
  3968. */
  3969. proto.im.UserListRequest.serializeBinaryToWriter = function (message, writer) {
  3970. var f = undefined;
  3971. f = message.getRoleid();
  3972. if (f !== 0) {
  3973. writer.writeInt64(
  3974. 1,
  3975. f
  3976. );
  3977. }
  3978. f = message.getStatus();
  3979. if (f !== 0.0) {
  3980. writer.writeEnum(
  3981. 2,
  3982. f
  3983. );
  3984. }
  3985. f = message.getName();
  3986. if (f.length > 0) {
  3987. writer.writeString(
  3988. 3,
  3989. f
  3990. );
  3991. }
  3992. f = message.getLcstypeid();
  3993. if (f !== 0) {
  3994. writer.writeInt64(
  3995. 4,
  3996. f
  3997. );
  3998. }
  3999. f = message.getSysid();
  4000. if (f !== 0) {
  4001. writer.writeInt64(
  4002. 5,
  4003. f
  4004. );
  4005. }
  4006. };
  4007. /**
  4008. * optional int64 roleId = 1;
  4009. * @return {number}
  4010. */
  4011. proto.im.UserListRequest.prototype.getRoleid = function () {
  4012. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4013. };
  4014. /**
  4015. * @param {number} value
  4016. * @return {!proto.im.UserListRequest} returns this
  4017. */
  4018. proto.im.UserListRequest.prototype.setRoleid = function (value) {
  4019. return jspb.Message.setProto3IntField(this, 1, value);
  4020. };
  4021. /**
  4022. * optional Status status = 2;
  4023. * @return {!proto.im.Status}
  4024. */
  4025. proto.im.UserListRequest.prototype.getStatus = function () {
  4026. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  4027. };
  4028. /**
  4029. * @param {!proto.im.Status} value
  4030. * @return {!proto.im.UserListRequest} returns this
  4031. */
  4032. proto.im.UserListRequest.prototype.setStatus = function (value) {
  4033. return jspb.Message.setProto3EnumField(this, 2, value);
  4034. };
  4035. /**
  4036. * optional string name = 3;
  4037. * @return {string}
  4038. */
  4039. proto.im.UserListRequest.prototype.getName = function () {
  4040. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  4041. };
  4042. /**
  4043. * @param {string} value
  4044. * @return {!proto.im.UserListRequest} returns this
  4045. */
  4046. proto.im.UserListRequest.prototype.setName = function (value) {
  4047. return jspb.Message.setProto3StringField(this, 3, value);
  4048. };
  4049. /**
  4050. * optional int64 lcstypeid = 4;
  4051. * @return {number}
  4052. */
  4053. proto.im.UserListRequest.prototype.getLcstypeid = function () {
  4054. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  4055. };
  4056. /**
  4057. * @param {number} value
  4058. * @return {!proto.im.UserListRequest} returns this
  4059. */
  4060. proto.im.UserListRequest.prototype.setLcstypeid = function (value) {
  4061. return jspb.Message.setProto3IntField(this, 4, value);
  4062. };
  4063. /**
  4064. * optional int64 sysId = 5;
  4065. * @return {number}
  4066. */
  4067. proto.im.UserListRequest.prototype.getSysid = function () {
  4068. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  4069. };
  4070. /**
  4071. * @param {number} value
  4072. * @return {!proto.im.UserListRequest} returns this
  4073. */
  4074. proto.im.UserListRequest.prototype.setSysid = function (value) {
  4075. return jspb.Message.setProto3IntField(this, 5, value);
  4076. };
  4077. /**
  4078. * List of repeated fields within this message type.
  4079. * @private {!Array<number>}
  4080. * @const
  4081. */
  4082. proto.im.UserListReply.repeatedFields_ = [1];
  4083. if (jspb.Message.GENERATE_TO_OBJECT) {
  4084. /**
  4085. * Creates an object representation of this proto.
  4086. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4087. * Optional fields that are not set will be set to undefined.
  4088. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4089. * For the list of reserved names please see:
  4090. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4091. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4092. * JSPB instance for transitional soy proto support:
  4093. * http://goto/soy-param-migration
  4094. * @return {!Object}
  4095. */
  4096. proto.im.UserListReply.prototype.toObject = function (opt_includeInstance) {
  4097. return proto.im.UserListReply.toObject(opt_includeInstance, this);
  4098. };
  4099. /**
  4100. * Static version of the {@see toObject} method.
  4101. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4102. * the JSPB instance for transitional soy proto support:
  4103. * http://goto/soy-param-migration
  4104. * @param {!proto.im.UserListReply} msg The msg instance to transform.
  4105. * @return {!Object}
  4106. * @suppress {unusedLocalVariables} f is only used for nested messages
  4107. */
  4108. proto.im.UserListReply.toObject = function (includeInstance, msg) {
  4109. var f, obj = {
  4110. listList: jspb.Message.toObjectList(msg.getListList(),
  4111. proto.im.UserInfo.toObject, includeInstance)
  4112. };
  4113. if (includeInstance) {
  4114. obj.$jspbMessageInstance = msg;
  4115. }
  4116. return obj;
  4117. };
  4118. }
  4119. /**
  4120. * Deserializes binary data (in protobuf wire format).
  4121. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4122. * @return {!proto.im.UserListReply}
  4123. */
  4124. proto.im.UserListReply.deserializeBinary = function (bytes) {
  4125. var reader = new jspb.BinaryReader(bytes);
  4126. var msg = new proto.im.UserListReply;
  4127. return proto.im.UserListReply.deserializeBinaryFromReader(msg, reader);
  4128. };
  4129. /**
  4130. * Deserializes binary data (in protobuf wire format) from the
  4131. * given reader into the given message object.
  4132. * @param {!proto.im.UserListReply} msg The message object to deserialize into.
  4133. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4134. * @return {!proto.im.UserListReply}
  4135. */
  4136. proto.im.UserListReply.deserializeBinaryFromReader = function (msg, reader) {
  4137. while (reader.nextField()) {
  4138. if (reader.isEndGroup()) {
  4139. break;
  4140. }
  4141. var field = reader.getFieldNumber();
  4142. switch (field) {
  4143. case 1:
  4144. var value = new proto.im.UserInfo;
  4145. reader.readMessage(value, proto.im.UserInfo.deserializeBinaryFromReader);
  4146. msg.addList(value);
  4147. break;
  4148. default:
  4149. reader.skipField();
  4150. break;
  4151. }
  4152. }
  4153. return msg;
  4154. };
  4155. /**
  4156. * Serializes the message to binary data (in protobuf wire format).
  4157. * @return {!Uint8Array}
  4158. */
  4159. proto.im.UserListReply.prototype.serializeBinary = function () {
  4160. var writer = new jspb.BinaryWriter();
  4161. proto.im.UserListReply.serializeBinaryToWriter(this, writer);
  4162. return writer.getResultBuffer();
  4163. };
  4164. /**
  4165. * Serializes the given message to binary data (in protobuf wire
  4166. * format), writing to the given BinaryWriter.
  4167. * @param {!proto.im.UserListReply} message
  4168. * @param {!jspb.BinaryWriter} writer
  4169. * @suppress {unusedLocalVariables} f is only used for nested messages
  4170. */
  4171. proto.im.UserListReply.serializeBinaryToWriter = function (message, writer) {
  4172. var f = undefined;
  4173. f = message.getListList();
  4174. if (f.length > 0) {
  4175. writer.writeRepeatedMessage(
  4176. 1,
  4177. f,
  4178. proto.im.UserInfo.serializeBinaryToWriter
  4179. );
  4180. }
  4181. };
  4182. /**
  4183. * repeated UserInfo list = 1;
  4184. * @return {!Array<!proto.im.UserInfo>}
  4185. */
  4186. proto.im.UserListReply.prototype.getListList = function () {
  4187. return /** @type{!Array<!proto.im.UserInfo>} */ (
  4188. jspb.Message.getRepeatedWrapperField(this, proto.im.UserInfo, 1));
  4189. };
  4190. /**
  4191. * @param {!Array<!proto.im.UserInfo>} value
  4192. * @return {!proto.im.UserListReply} returns this
  4193. */
  4194. proto.im.UserListReply.prototype.setListList = function (value) {
  4195. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  4196. };
  4197. /**
  4198. * @param {!proto.im.UserInfo=} opt_value
  4199. * @param {number=} opt_index
  4200. * @return {!proto.im.UserInfo}
  4201. */
  4202. proto.im.UserListReply.prototype.addList = function (opt_value, opt_index) {
  4203. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.UserInfo, opt_index);
  4204. };
  4205. /**
  4206. * Clears the list making it empty but non-null.
  4207. * @return {!proto.im.UserListReply} returns this
  4208. */
  4209. proto.im.UserListReply.prototype.clearListList = function () {
  4210. return this.setListList([]);
  4211. };
  4212. if (jspb.Message.GENERATE_TO_OBJECT) {
  4213. /**
  4214. * Creates an object representation of this proto.
  4215. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4216. * Optional fields that are not set will be set to undefined.
  4217. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4218. * For the list of reserved names please see:
  4219. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4220. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4221. * JSPB instance for transitional soy proto support:
  4222. * http://goto/soy-param-migration
  4223. * @return {!Object}
  4224. */
  4225. proto.im.UserGetInfoRequest.prototype.toObject = function (opt_includeInstance) {
  4226. return proto.im.UserGetInfoRequest.toObject(opt_includeInstance, this);
  4227. };
  4228. /**
  4229. * Static version of the {@see toObject} method.
  4230. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4231. * the JSPB instance for transitional soy proto support:
  4232. * http://goto/soy-param-migration
  4233. * @param {!proto.im.UserGetInfoRequest} msg The msg instance to transform.
  4234. * @return {!Object}
  4235. * @suppress {unusedLocalVariables} f is only used for nested messages
  4236. */
  4237. proto.im.UserGetInfoRequest.toObject = function (includeInstance, msg) {
  4238. var f, obj = {
  4239. userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
  4240. };
  4241. if (includeInstance) {
  4242. obj.$jspbMessageInstance = msg;
  4243. }
  4244. return obj;
  4245. };
  4246. }
  4247. /**
  4248. * Deserializes binary data (in protobuf wire format).
  4249. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4250. * @return {!proto.im.UserGetInfoRequest}
  4251. */
  4252. proto.im.UserGetInfoRequest.deserializeBinary = function (bytes) {
  4253. var reader = new jspb.BinaryReader(bytes);
  4254. var msg = new proto.im.UserGetInfoRequest;
  4255. return proto.im.UserGetInfoRequest.deserializeBinaryFromReader(msg, reader);
  4256. };
  4257. /**
  4258. * Deserializes binary data (in protobuf wire format) from the
  4259. * given reader into the given message object.
  4260. * @param {!proto.im.UserGetInfoRequest} msg The message object to deserialize into.
  4261. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4262. * @return {!proto.im.UserGetInfoRequest}
  4263. */
  4264. proto.im.UserGetInfoRequest.deserializeBinaryFromReader = function (msg, reader) {
  4265. while (reader.nextField()) {
  4266. if (reader.isEndGroup()) {
  4267. break;
  4268. }
  4269. var field = reader.getFieldNumber();
  4270. switch (field) {
  4271. case 1:
  4272. var value = /** @type {number} */ (reader.readInt64());
  4273. msg.setUserid(value);
  4274. break;
  4275. default:
  4276. reader.skipField();
  4277. break;
  4278. }
  4279. }
  4280. return msg;
  4281. };
  4282. /**
  4283. * Serializes the message to binary data (in protobuf wire format).
  4284. * @return {!Uint8Array}
  4285. */
  4286. proto.im.UserGetInfoRequest.prototype.serializeBinary = function () {
  4287. var writer = new jspb.BinaryWriter();
  4288. proto.im.UserGetInfoRequest.serializeBinaryToWriter(this, writer);
  4289. return writer.getResultBuffer();
  4290. };
  4291. /**
  4292. * Serializes the given message to binary data (in protobuf wire
  4293. * format), writing to the given BinaryWriter.
  4294. * @param {!proto.im.UserGetInfoRequest} message
  4295. * @param {!jspb.BinaryWriter} writer
  4296. * @suppress {unusedLocalVariables} f is only used for nested messages
  4297. */
  4298. proto.im.UserGetInfoRequest.serializeBinaryToWriter = function (message, writer) {
  4299. var f = undefined;
  4300. f = message.getUserid();
  4301. if (f !== 0) {
  4302. writer.writeInt64(
  4303. 1,
  4304. f
  4305. );
  4306. }
  4307. };
  4308. /**
  4309. * optional int64 userId = 1;
  4310. * @return {number}
  4311. */
  4312. proto.im.UserGetInfoRequest.prototype.getUserid = function () {
  4313. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4314. };
  4315. /**
  4316. * @param {number} value
  4317. * @return {!proto.im.UserGetInfoRequest} returns this
  4318. */
  4319. proto.im.UserGetInfoRequest.prototype.setUserid = function (value) {
  4320. return jspb.Message.setProto3IntField(this, 1, value);
  4321. };
  4322. /**
  4323. * List of repeated fields within this message type.
  4324. * @private {!Array<number>}
  4325. * @const
  4326. */
  4327. proto.im.UserRolesRequest.repeatedFields_ = [2];
  4328. if (jspb.Message.GENERATE_TO_OBJECT) {
  4329. /**
  4330. * Creates an object representation of this proto.
  4331. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4332. * Optional fields that are not set will be set to undefined.
  4333. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4334. * For the list of reserved names please see:
  4335. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4336. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4337. * JSPB instance for transitional soy proto support:
  4338. * http://goto/soy-param-migration
  4339. * @return {!Object}
  4340. */
  4341. proto.im.UserRolesRequest.prototype.toObject = function (opt_includeInstance) {
  4342. return proto.im.UserRolesRequest.toObject(opt_includeInstance, this);
  4343. };
  4344. /**
  4345. * Static version of the {@see toObject} method.
  4346. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4347. * the JSPB instance for transitional soy proto support:
  4348. * http://goto/soy-param-migration
  4349. * @param {!proto.im.UserRolesRequest} msg The msg instance to transform.
  4350. * @return {!Object}
  4351. * @suppress {unusedLocalVariables} f is only used for nested messages
  4352. */
  4353. proto.im.UserRolesRequest.toObject = function (includeInstance, msg) {
  4354. var f, obj = {
  4355. userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4356. roleidlistList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
  4357. };
  4358. if (includeInstance) {
  4359. obj.$jspbMessageInstance = msg;
  4360. }
  4361. return obj;
  4362. };
  4363. }
  4364. /**
  4365. * Deserializes binary data (in protobuf wire format).
  4366. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4367. * @return {!proto.im.UserRolesRequest}
  4368. */
  4369. proto.im.UserRolesRequest.deserializeBinary = function (bytes) {
  4370. var reader = new jspb.BinaryReader(bytes);
  4371. var msg = new proto.im.UserRolesRequest;
  4372. return proto.im.UserRolesRequest.deserializeBinaryFromReader(msg, reader);
  4373. };
  4374. /**
  4375. * Deserializes binary data (in protobuf wire format) from the
  4376. * given reader into the given message object.
  4377. * @param {!proto.im.UserRolesRequest} msg The message object to deserialize into.
  4378. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4379. * @return {!proto.im.UserRolesRequest}
  4380. */
  4381. proto.im.UserRolesRequest.deserializeBinaryFromReader = function (msg, reader) {
  4382. while (reader.nextField()) {
  4383. if (reader.isEndGroup()) {
  4384. break;
  4385. }
  4386. var field = reader.getFieldNumber();
  4387. switch (field) {
  4388. case 1:
  4389. var value = /** @type {number} */ (reader.readInt64());
  4390. msg.setUserid(value);
  4391. break;
  4392. case 2:
  4393. var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
  4394. for (var i = 0; i < values.length; i++) {
  4395. msg.addRoleidlist(values[i]);
  4396. }
  4397. break;
  4398. default:
  4399. reader.skipField();
  4400. break;
  4401. }
  4402. }
  4403. return msg;
  4404. };
  4405. /**
  4406. * Serializes the message to binary data (in protobuf wire format).
  4407. * @return {!Uint8Array}
  4408. */
  4409. proto.im.UserRolesRequest.prototype.serializeBinary = function () {
  4410. var writer = new jspb.BinaryWriter();
  4411. proto.im.UserRolesRequest.serializeBinaryToWriter(this, writer);
  4412. return writer.getResultBuffer();
  4413. };
  4414. /**
  4415. * Serializes the given message to binary data (in protobuf wire
  4416. * format), writing to the given BinaryWriter.
  4417. * @param {!proto.im.UserRolesRequest} message
  4418. * @param {!jspb.BinaryWriter} writer
  4419. * @suppress {unusedLocalVariables} f is only used for nested messages
  4420. */
  4421. proto.im.UserRolesRequest.serializeBinaryToWriter = function (message, writer) {
  4422. var f = undefined;
  4423. f = message.getUserid();
  4424. if (f !== 0) {
  4425. writer.writeInt64(
  4426. 1,
  4427. f
  4428. );
  4429. }
  4430. f = message.getRoleidlistList();
  4431. if (f.length > 0) {
  4432. writer.writePackedInt64(
  4433. 2,
  4434. f
  4435. );
  4436. }
  4437. };
  4438. /**
  4439. * optional int64 userId = 1;
  4440. * @return {number}
  4441. */
  4442. proto.im.UserRolesRequest.prototype.getUserid = function () {
  4443. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4444. };
  4445. /**
  4446. * @param {number} value
  4447. * @return {!proto.im.UserRolesRequest} returns this
  4448. */
  4449. proto.im.UserRolesRequest.prototype.setUserid = function (value) {
  4450. return jspb.Message.setProto3IntField(this, 1, value);
  4451. };
  4452. /**
  4453. * repeated int64 roleIdList = 2;
  4454. * @return {!Array<number>}
  4455. */
  4456. proto.im.UserRolesRequest.prototype.getRoleidlistList = function () {
  4457. return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
  4458. };
  4459. /**
  4460. * @param {!Array<number>} value
  4461. * @return {!proto.im.UserRolesRequest} returns this
  4462. */
  4463. proto.im.UserRolesRequest.prototype.setRoleidlistList = function (value) {
  4464. return jspb.Message.setField(this, 2, value || []);
  4465. };
  4466. /**
  4467. * @param {number} value
  4468. * @param {number=} opt_index
  4469. * @return {!proto.im.UserRolesRequest} returns this
  4470. */
  4471. proto.im.UserRolesRequest.prototype.addRoleidlist = function (value, opt_index) {
  4472. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  4473. };
  4474. /**
  4475. * Clears the list making it empty but non-null.
  4476. * @return {!proto.im.UserRolesRequest} returns this
  4477. */
  4478. proto.im.UserRolesRequest.prototype.clearRoleidlistList = function () {
  4479. return this.setRoleidlistList([]);
  4480. };
  4481. /**
  4482. * List of repeated fields within this message type.
  4483. * @private {!Array<number>}
  4484. * @const
  4485. */
  4486. proto.im.RoleListReply.repeatedFields_ = [1];
  4487. if (jspb.Message.GENERATE_TO_OBJECT) {
  4488. /**
  4489. * Creates an object representation of this proto.
  4490. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4491. * Optional fields that are not set will be set to undefined.
  4492. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4493. * For the list of reserved names please see:
  4494. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4495. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4496. * JSPB instance for transitional soy proto support:
  4497. * http://goto/soy-param-migration
  4498. * @return {!Object}
  4499. */
  4500. proto.im.RoleListReply.prototype.toObject = function (opt_includeInstance) {
  4501. return proto.im.RoleListReply.toObject(opt_includeInstance, this);
  4502. };
  4503. /**
  4504. * Static version of the {@see toObject} method.
  4505. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4506. * the JSPB instance for transitional soy proto support:
  4507. * http://goto/soy-param-migration
  4508. * @param {!proto.im.RoleListReply} msg The msg instance to transform.
  4509. * @return {!Object}
  4510. * @suppress {unusedLocalVariables} f is only used for nested messages
  4511. */
  4512. proto.im.RoleListReply.toObject = function (includeInstance, msg) {
  4513. var f, obj = {
  4514. listList: jspb.Message.toObjectList(msg.getListList(),
  4515. proto.im.Role.toObject, includeInstance)
  4516. };
  4517. if (includeInstance) {
  4518. obj.$jspbMessageInstance = msg;
  4519. }
  4520. return obj;
  4521. };
  4522. }
  4523. /**
  4524. * Deserializes binary data (in protobuf wire format).
  4525. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4526. * @return {!proto.im.RoleListReply}
  4527. */
  4528. proto.im.RoleListReply.deserializeBinary = function (bytes) {
  4529. var reader = new jspb.BinaryReader(bytes);
  4530. var msg = new proto.im.RoleListReply;
  4531. return proto.im.RoleListReply.deserializeBinaryFromReader(msg, reader);
  4532. };
  4533. /**
  4534. * Deserializes binary data (in protobuf wire format) from the
  4535. * given reader into the given message object.
  4536. * @param {!proto.im.RoleListReply} msg The message object to deserialize into.
  4537. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4538. * @return {!proto.im.RoleListReply}
  4539. */
  4540. proto.im.RoleListReply.deserializeBinaryFromReader = function (msg, reader) {
  4541. while (reader.nextField()) {
  4542. if (reader.isEndGroup()) {
  4543. break;
  4544. }
  4545. var field = reader.getFieldNumber();
  4546. switch (field) {
  4547. case 1:
  4548. var value = new proto.im.Role;
  4549. reader.readMessage(value, proto.im.Role.deserializeBinaryFromReader);
  4550. msg.addList(value);
  4551. break;
  4552. default:
  4553. reader.skipField();
  4554. break;
  4555. }
  4556. }
  4557. return msg;
  4558. };
  4559. /**
  4560. * Serializes the message to binary data (in protobuf wire format).
  4561. * @return {!Uint8Array}
  4562. */
  4563. proto.im.RoleListReply.prototype.serializeBinary = function () {
  4564. var writer = new jspb.BinaryWriter();
  4565. proto.im.RoleListReply.serializeBinaryToWriter(this, writer);
  4566. return writer.getResultBuffer();
  4567. };
  4568. /**
  4569. * Serializes the given message to binary data (in protobuf wire
  4570. * format), writing to the given BinaryWriter.
  4571. * @param {!proto.im.RoleListReply} message
  4572. * @param {!jspb.BinaryWriter} writer
  4573. * @suppress {unusedLocalVariables} f is only used for nested messages
  4574. */
  4575. proto.im.RoleListReply.serializeBinaryToWriter = function (message, writer) {
  4576. var f = undefined;
  4577. f = message.getListList();
  4578. if (f.length > 0) {
  4579. writer.writeRepeatedMessage(
  4580. 1,
  4581. f,
  4582. proto.im.Role.serializeBinaryToWriter
  4583. );
  4584. }
  4585. };
  4586. /**
  4587. * repeated Role list = 1;
  4588. * @return {!Array<!proto.im.Role>}
  4589. */
  4590. proto.im.RoleListReply.prototype.getListList = function () {
  4591. return /** @type{!Array<!proto.im.Role>} */ (
  4592. jspb.Message.getRepeatedWrapperField(this, proto.im.Role, 1));
  4593. };
  4594. /**
  4595. * @param {!Array<!proto.im.Role>} value
  4596. * @return {!proto.im.RoleListReply} returns this
  4597. */
  4598. proto.im.RoleListReply.prototype.setListList = function (value) {
  4599. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  4600. };
  4601. /**
  4602. * @param {!proto.im.Role=} opt_value
  4603. * @param {number=} opt_index
  4604. * @return {!proto.im.Role}
  4605. */
  4606. proto.im.RoleListReply.prototype.addList = function (opt_value, opt_index) {
  4607. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.Role, opt_index);
  4608. };
  4609. /**
  4610. * Clears the list making it empty but non-null.
  4611. * @return {!proto.im.RoleListReply} returns this
  4612. */
  4613. proto.im.RoleListReply.prototype.clearListList = function () {
  4614. return this.setListList([]);
  4615. };
  4616. /**
  4617. * List of repeated fields within this message type.
  4618. * @private {!Array<number>}
  4619. * @const
  4620. */
  4621. proto.im.RolePermissionRequest.repeatedFields_ = [2];
  4622. if (jspb.Message.GENERATE_TO_OBJECT) {
  4623. /**
  4624. * Creates an object representation of this proto.
  4625. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4626. * Optional fields that are not set will be set to undefined.
  4627. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4628. * For the list of reserved names please see:
  4629. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4630. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4631. * JSPB instance for transitional soy proto support:
  4632. * http://goto/soy-param-migration
  4633. * @return {!Object}
  4634. */
  4635. proto.im.RolePermissionRequest.prototype.toObject = function (opt_includeInstance) {
  4636. return proto.im.RolePermissionRequest.toObject(opt_includeInstance, this);
  4637. };
  4638. /**
  4639. * Static version of the {@see toObject} method.
  4640. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4641. * the JSPB instance for transitional soy proto support:
  4642. * http://goto/soy-param-migration
  4643. * @param {!proto.im.RolePermissionRequest} msg The msg instance to transform.
  4644. * @return {!Object}
  4645. * @suppress {unusedLocalVariables} f is only used for nested messages
  4646. */
  4647. proto.im.RolePermissionRequest.toObject = function (includeInstance, msg) {
  4648. var f, obj = {
  4649. roleid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  4650. servicepathList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
  4651. };
  4652. if (includeInstance) {
  4653. obj.$jspbMessageInstance = msg;
  4654. }
  4655. return obj;
  4656. };
  4657. }
  4658. /**
  4659. * Deserializes binary data (in protobuf wire format).
  4660. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4661. * @return {!proto.im.RolePermissionRequest}
  4662. */
  4663. proto.im.RolePermissionRequest.deserializeBinary = function (bytes) {
  4664. var reader = new jspb.BinaryReader(bytes);
  4665. var msg = new proto.im.RolePermissionRequest;
  4666. return proto.im.RolePermissionRequest.deserializeBinaryFromReader(msg, reader);
  4667. };
  4668. /**
  4669. * Deserializes binary data (in protobuf wire format) from the
  4670. * given reader into the given message object.
  4671. * @param {!proto.im.RolePermissionRequest} msg The message object to deserialize into.
  4672. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4673. * @return {!proto.im.RolePermissionRequest}
  4674. */
  4675. proto.im.RolePermissionRequest.deserializeBinaryFromReader = function (msg, reader) {
  4676. while (reader.nextField()) {
  4677. if (reader.isEndGroup()) {
  4678. break;
  4679. }
  4680. var field = reader.getFieldNumber();
  4681. switch (field) {
  4682. case 1:
  4683. var value = /** @type {number} */ (reader.readInt64());
  4684. msg.setRoleid(value);
  4685. break;
  4686. case 2:
  4687. var value = /** @type {string} */ (reader.readString());
  4688. msg.addServicepath(value);
  4689. break;
  4690. default:
  4691. reader.skipField();
  4692. break;
  4693. }
  4694. }
  4695. return msg;
  4696. };
  4697. /**
  4698. * Serializes the message to binary data (in protobuf wire format).
  4699. * @return {!Uint8Array}
  4700. */
  4701. proto.im.RolePermissionRequest.prototype.serializeBinary = function () {
  4702. var writer = new jspb.BinaryWriter();
  4703. proto.im.RolePermissionRequest.serializeBinaryToWriter(this, writer);
  4704. return writer.getResultBuffer();
  4705. };
  4706. /**
  4707. * Serializes the given message to binary data (in protobuf wire
  4708. * format), writing to the given BinaryWriter.
  4709. * @param {!proto.im.RolePermissionRequest} message
  4710. * @param {!jspb.BinaryWriter} writer
  4711. * @suppress {unusedLocalVariables} f is only used for nested messages
  4712. */
  4713. proto.im.RolePermissionRequest.serializeBinaryToWriter = function (message, writer) {
  4714. var f = undefined;
  4715. f = message.getRoleid();
  4716. if (f !== 0) {
  4717. writer.writeInt64(
  4718. 1,
  4719. f
  4720. );
  4721. }
  4722. f = message.getServicepathList();
  4723. if (f.length > 0) {
  4724. writer.writeRepeatedString(
  4725. 2,
  4726. f
  4727. );
  4728. }
  4729. };
  4730. /**
  4731. * optional int64 roleId = 1;
  4732. * @return {number}
  4733. */
  4734. proto.im.RolePermissionRequest.prototype.getRoleid = function () {
  4735. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4736. };
  4737. /**
  4738. * @param {number} value
  4739. * @return {!proto.im.RolePermissionRequest} returns this
  4740. */
  4741. proto.im.RolePermissionRequest.prototype.setRoleid = function (value) {
  4742. return jspb.Message.setProto3IntField(this, 1, value);
  4743. };
  4744. /**
  4745. * repeated string servicePath = 2;
  4746. * @return {!Array<string>}
  4747. */
  4748. proto.im.RolePermissionRequest.prototype.getServicepathList = function () {
  4749. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  4750. };
  4751. /**
  4752. * @param {!Array<string>} value
  4753. * @return {!proto.im.RolePermissionRequest} returns this
  4754. */
  4755. proto.im.RolePermissionRequest.prototype.setServicepathList = function (value) {
  4756. return jspb.Message.setField(this, 2, value || []);
  4757. };
  4758. /**
  4759. * @param {string} value
  4760. * @param {number=} opt_index
  4761. * @return {!proto.im.RolePermissionRequest} returns this
  4762. */
  4763. proto.im.RolePermissionRequest.prototype.addServicepath = function (value, opt_index) {
  4764. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  4765. };
  4766. /**
  4767. * Clears the list making it empty but non-null.
  4768. * @return {!proto.im.RolePermissionRequest} returns this
  4769. */
  4770. proto.im.RolePermissionRequest.prototype.clearServicepathList = function () {
  4771. return this.setServicepathList([]);
  4772. };
  4773. if (jspb.Message.GENERATE_TO_OBJECT) {
  4774. /**
  4775. * Creates an object representation of this proto.
  4776. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4777. * Optional fields that are not set will be set to undefined.
  4778. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4779. * For the list of reserved names please see:
  4780. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4781. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4782. * JSPB instance for transitional soy proto support:
  4783. * http://goto/soy-param-migration
  4784. * @return {!Object}
  4785. */
  4786. proto.im.ServiceListRequest.prototype.toObject = function (opt_includeInstance) {
  4787. return proto.im.ServiceListRequest.toObject(opt_includeInstance, this);
  4788. };
  4789. /**
  4790. * Static version of the {@see toObject} method.
  4791. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4792. * the JSPB instance for transitional soy proto support:
  4793. * http://goto/soy-param-migration
  4794. * @param {!proto.im.ServiceListRequest} msg The msg instance to transform.
  4795. * @return {!Object}
  4796. * @suppress {unusedLocalVariables} f is only used for nested messages
  4797. */
  4798. proto.im.ServiceListRequest.toObject = function (includeInstance, msg) {
  4799. var f, obj = {
  4800. sysid: jspb.Message.getFieldWithDefault(msg, 1, 0)
  4801. };
  4802. if (includeInstance) {
  4803. obj.$jspbMessageInstance = msg;
  4804. }
  4805. return obj;
  4806. };
  4807. }
  4808. /**
  4809. * Deserializes binary data (in protobuf wire format).
  4810. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4811. * @return {!proto.im.ServiceListRequest}
  4812. */
  4813. proto.im.ServiceListRequest.deserializeBinary = function (bytes) {
  4814. var reader = new jspb.BinaryReader(bytes);
  4815. var msg = new proto.im.ServiceListRequest;
  4816. return proto.im.ServiceListRequest.deserializeBinaryFromReader(msg, reader);
  4817. };
  4818. /**
  4819. * Deserializes binary data (in protobuf wire format) from the
  4820. * given reader into the given message object.
  4821. * @param {!proto.im.ServiceListRequest} msg The message object to deserialize into.
  4822. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4823. * @return {!proto.im.ServiceListRequest}
  4824. */
  4825. proto.im.ServiceListRequest.deserializeBinaryFromReader = function (msg, reader) {
  4826. while (reader.nextField()) {
  4827. if (reader.isEndGroup()) {
  4828. break;
  4829. }
  4830. var field = reader.getFieldNumber();
  4831. switch (field) {
  4832. case 1:
  4833. var value = /** @type {number} */ (reader.readInt64());
  4834. msg.setSysid(value);
  4835. break;
  4836. default:
  4837. reader.skipField();
  4838. break;
  4839. }
  4840. }
  4841. return msg;
  4842. };
  4843. /**
  4844. * Serializes the message to binary data (in protobuf wire format).
  4845. * @return {!Uint8Array}
  4846. */
  4847. proto.im.ServiceListRequest.prototype.serializeBinary = function () {
  4848. var writer = new jspb.BinaryWriter();
  4849. proto.im.ServiceListRequest.serializeBinaryToWriter(this, writer);
  4850. return writer.getResultBuffer();
  4851. };
  4852. /**
  4853. * Serializes the given message to binary data (in protobuf wire
  4854. * format), writing to the given BinaryWriter.
  4855. * @param {!proto.im.ServiceListRequest} message
  4856. * @param {!jspb.BinaryWriter} writer
  4857. * @suppress {unusedLocalVariables} f is only used for nested messages
  4858. */
  4859. proto.im.ServiceListRequest.serializeBinaryToWriter = function (message, writer) {
  4860. var f = undefined;
  4861. f = message.getSysid();
  4862. if (f !== 0) {
  4863. writer.writeInt64(
  4864. 1,
  4865. f
  4866. );
  4867. }
  4868. };
  4869. /**
  4870. * optional int64 sysId = 1;
  4871. * @return {number}
  4872. */
  4873. proto.im.ServiceListRequest.prototype.getSysid = function () {
  4874. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  4875. };
  4876. /**
  4877. * @param {number} value
  4878. * @return {!proto.im.ServiceListRequest} returns this
  4879. */
  4880. proto.im.ServiceListRequest.prototype.setSysid = function (value) {
  4881. return jspb.Message.setProto3IntField(this, 1, value);
  4882. };
  4883. /**
  4884. * List of repeated fields within this message type.
  4885. * @private {!Array<number>}
  4886. * @const
  4887. */
  4888. proto.im.ServiceListReply.repeatedFields_ = [1];
  4889. if (jspb.Message.GENERATE_TO_OBJECT) {
  4890. /**
  4891. * Creates an object representation of this proto.
  4892. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  4893. * Optional fields that are not set will be set to undefined.
  4894. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  4895. * For the list of reserved names please see:
  4896. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  4897. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  4898. * JSPB instance for transitional soy proto support:
  4899. * http://goto/soy-param-migration
  4900. * @return {!Object}
  4901. */
  4902. proto.im.ServiceListReply.prototype.toObject = function (opt_includeInstance) {
  4903. return proto.im.ServiceListReply.toObject(opt_includeInstance, this);
  4904. };
  4905. /**
  4906. * Static version of the {@see toObject} method.
  4907. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  4908. * the JSPB instance for transitional soy proto support:
  4909. * http://goto/soy-param-migration
  4910. * @param {!proto.im.ServiceListReply} msg The msg instance to transform.
  4911. * @return {!Object}
  4912. * @suppress {unusedLocalVariables} f is only used for nested messages
  4913. */
  4914. proto.im.ServiceListReply.toObject = function (includeInstance, msg) {
  4915. var f, obj = {
  4916. listList: jspb.Message.toObjectList(msg.getListList(),
  4917. proto.im.Service.toObject, includeInstance)
  4918. };
  4919. if (includeInstance) {
  4920. obj.$jspbMessageInstance = msg;
  4921. }
  4922. return obj;
  4923. };
  4924. }
  4925. /**
  4926. * Deserializes binary data (in protobuf wire format).
  4927. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  4928. * @return {!proto.im.ServiceListReply}
  4929. */
  4930. proto.im.ServiceListReply.deserializeBinary = function (bytes) {
  4931. var reader = new jspb.BinaryReader(bytes);
  4932. var msg = new proto.im.ServiceListReply;
  4933. return proto.im.ServiceListReply.deserializeBinaryFromReader(msg, reader);
  4934. };
  4935. /**
  4936. * Deserializes binary data (in protobuf wire format) from the
  4937. * given reader into the given message object.
  4938. * @param {!proto.im.ServiceListReply} msg The message object to deserialize into.
  4939. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  4940. * @return {!proto.im.ServiceListReply}
  4941. */
  4942. proto.im.ServiceListReply.deserializeBinaryFromReader = function (msg, reader) {
  4943. while (reader.nextField()) {
  4944. if (reader.isEndGroup()) {
  4945. break;
  4946. }
  4947. var field = reader.getFieldNumber();
  4948. switch (field) {
  4949. case 1:
  4950. var value = new proto.im.Service;
  4951. reader.readMessage(value, proto.im.Service.deserializeBinaryFromReader);
  4952. msg.addList(value);
  4953. break;
  4954. default:
  4955. reader.skipField();
  4956. break;
  4957. }
  4958. }
  4959. return msg;
  4960. };
  4961. /**
  4962. * Serializes the message to binary data (in protobuf wire format).
  4963. * @return {!Uint8Array}
  4964. */
  4965. proto.im.ServiceListReply.prototype.serializeBinary = function () {
  4966. var writer = new jspb.BinaryWriter();
  4967. proto.im.ServiceListReply.serializeBinaryToWriter(this, writer);
  4968. return writer.getResultBuffer();
  4969. };
  4970. /**
  4971. * Serializes the given message to binary data (in protobuf wire
  4972. * format), writing to the given BinaryWriter.
  4973. * @param {!proto.im.ServiceListReply} message
  4974. * @param {!jspb.BinaryWriter} writer
  4975. * @suppress {unusedLocalVariables} f is only used for nested messages
  4976. */
  4977. proto.im.ServiceListReply.serializeBinaryToWriter = function (message, writer) {
  4978. var f = undefined;
  4979. f = message.getListList();
  4980. if (f.length > 0) {
  4981. writer.writeRepeatedMessage(
  4982. 1,
  4983. f,
  4984. proto.im.Service.serializeBinaryToWriter
  4985. );
  4986. }
  4987. };
  4988. /**
  4989. * repeated Service list = 1;
  4990. * @return {!Array<!proto.im.Service>}
  4991. */
  4992. proto.im.ServiceListReply.prototype.getListList = function () {
  4993. return /** @type{!Array<!proto.im.Service>} */ (
  4994. jspb.Message.getRepeatedWrapperField(this, proto.im.Service, 1));
  4995. };
  4996. /**
  4997. * @param {!Array<!proto.im.Service>} value
  4998. * @return {!proto.im.ServiceListReply} returns this
  4999. */
  5000. proto.im.ServiceListReply.prototype.setListList = function (value) {
  5001. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  5002. };
  5003. /**
  5004. * @param {!proto.im.Service=} opt_value
  5005. * @param {number=} opt_index
  5006. * @return {!proto.im.Service}
  5007. */
  5008. proto.im.ServiceListReply.prototype.addList = function (opt_value, opt_index) {
  5009. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.Service, opt_index);
  5010. };
  5011. /**
  5012. * Clears the list making it empty but non-null.
  5013. * @return {!proto.im.ServiceListReply} returns this
  5014. */
  5015. proto.im.ServiceListReply.prototype.clearListList = function () {
  5016. return this.setListList([]);
  5017. };
  5018. /**
  5019. * List of repeated fields within this message type.
  5020. * @private {!Array<number>}
  5021. * @const
  5022. */
  5023. proto.im.ServiceRemoveRequest.repeatedFields_ = [1];
  5024. if (jspb.Message.GENERATE_TO_OBJECT) {
  5025. /**
  5026. * Creates an object representation of this proto.
  5027. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5028. * Optional fields that are not set will be set to undefined.
  5029. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5030. * For the list of reserved names please see:
  5031. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5032. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5033. * JSPB instance for transitional soy proto support:
  5034. * http://goto/soy-param-migration
  5035. * @return {!Object}
  5036. */
  5037. proto.im.ServiceRemoveRequest.prototype.toObject = function (opt_includeInstance) {
  5038. return proto.im.ServiceRemoveRequest.toObject(opt_includeInstance, this);
  5039. };
  5040. /**
  5041. * Static version of the {@see toObject} method.
  5042. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5043. * the JSPB instance for transitional soy proto support:
  5044. * http://goto/soy-param-migration
  5045. * @param {!proto.im.ServiceRemoveRequest} msg The msg instance to transform.
  5046. * @return {!Object}
  5047. * @suppress {unusedLocalVariables} f is only used for nested messages
  5048. */
  5049. proto.im.ServiceRemoveRequest.toObject = function (includeInstance, msg) {
  5050. var f, obj = {
  5051. pathlistList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
  5052. };
  5053. if (includeInstance) {
  5054. obj.$jspbMessageInstance = msg;
  5055. }
  5056. return obj;
  5057. };
  5058. }
  5059. /**
  5060. * Deserializes binary data (in protobuf wire format).
  5061. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5062. * @return {!proto.im.ServiceRemoveRequest}
  5063. */
  5064. proto.im.ServiceRemoveRequest.deserializeBinary = function (bytes) {
  5065. var reader = new jspb.BinaryReader(bytes);
  5066. var msg = new proto.im.ServiceRemoveRequest;
  5067. return proto.im.ServiceRemoveRequest.deserializeBinaryFromReader(msg, reader);
  5068. };
  5069. /**
  5070. * Deserializes binary data (in protobuf wire format) from the
  5071. * given reader into the given message object.
  5072. * @param {!proto.im.ServiceRemoveRequest} msg The message object to deserialize into.
  5073. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5074. * @return {!proto.im.ServiceRemoveRequest}
  5075. */
  5076. proto.im.ServiceRemoveRequest.deserializeBinaryFromReader = function (msg, reader) {
  5077. while (reader.nextField()) {
  5078. if (reader.isEndGroup()) {
  5079. break;
  5080. }
  5081. var field = reader.getFieldNumber();
  5082. switch (field) {
  5083. case 1:
  5084. var value = /** @type {string} */ (reader.readString());
  5085. msg.addPathlist(value);
  5086. break;
  5087. default:
  5088. reader.skipField();
  5089. break;
  5090. }
  5091. }
  5092. return msg;
  5093. };
  5094. /**
  5095. * Serializes the message to binary data (in protobuf wire format).
  5096. * @return {!Uint8Array}
  5097. */
  5098. proto.im.ServiceRemoveRequest.prototype.serializeBinary = function () {
  5099. var writer = new jspb.BinaryWriter();
  5100. proto.im.ServiceRemoveRequest.serializeBinaryToWriter(this, writer);
  5101. return writer.getResultBuffer();
  5102. };
  5103. /**
  5104. * Serializes the given message to binary data (in protobuf wire
  5105. * format), writing to the given BinaryWriter.
  5106. * @param {!proto.im.ServiceRemoveRequest} message
  5107. * @param {!jspb.BinaryWriter} writer
  5108. * @suppress {unusedLocalVariables} f is only used for nested messages
  5109. */
  5110. proto.im.ServiceRemoveRequest.serializeBinaryToWriter = function (message, writer) {
  5111. var f = undefined;
  5112. f = message.getPathlistList();
  5113. if (f.length > 0) {
  5114. writer.writeRepeatedString(
  5115. 1,
  5116. f
  5117. );
  5118. }
  5119. };
  5120. /**
  5121. * repeated string pathList = 1;
  5122. * @return {!Array<string>}
  5123. */
  5124. proto.im.ServiceRemoveRequest.prototype.getPathlistList = function () {
  5125. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
  5126. };
  5127. /**
  5128. * @param {!Array<string>} value
  5129. * @return {!proto.im.ServiceRemoveRequest} returns this
  5130. */
  5131. proto.im.ServiceRemoveRequest.prototype.setPathlistList = function (value) {
  5132. return jspb.Message.setField(this, 1, value || []);
  5133. };
  5134. /**
  5135. * @param {string} value
  5136. * @param {number=} opt_index
  5137. * @return {!proto.im.ServiceRemoveRequest} returns this
  5138. */
  5139. proto.im.ServiceRemoveRequest.prototype.addPathlist = function (value, opt_index) {
  5140. return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
  5141. };
  5142. /**
  5143. * Clears the list making it empty but non-null.
  5144. * @return {!proto.im.ServiceRemoveRequest} returns this
  5145. */
  5146. proto.im.ServiceRemoveRequest.prototype.clearPathlistList = function () {
  5147. return this.setPathlistList([]);
  5148. };
  5149. if (jspb.Message.GENERATE_TO_OBJECT) {
  5150. /**
  5151. * Creates an object representation of this proto.
  5152. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5153. * Optional fields that are not set will be set to undefined.
  5154. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5155. * For the list of reserved names please see:
  5156. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5157. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5158. * JSPB instance for transitional soy proto support:
  5159. * http://goto/soy-param-migration
  5160. * @return {!Object}
  5161. */
  5162. proto.im.CreateShopRequest.prototype.toObject = function (opt_includeInstance) {
  5163. return proto.im.CreateShopRequest.toObject(opt_includeInstance, this);
  5164. };
  5165. /**
  5166. * Static version of the {@see toObject} method.
  5167. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5168. * the JSPB instance for transitional soy proto support:
  5169. * http://goto/soy-param-migration
  5170. * @param {!proto.im.CreateShopRequest} msg The msg instance to transform.
  5171. * @return {!Object}
  5172. * @suppress {unusedLocalVariables} f is only used for nested messages
  5173. */
  5174. proto.im.CreateShopRequest.toObject = function (includeInstance, msg) {
  5175. var f, obj = {
  5176. name: jspb.Message.getFieldWithDefault(msg, 1, ""),
  5177. key: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5178. sid: jspb.Message.getFieldWithDefault(msg, 3, 0),
  5179. addr: jspb.Message.getFieldWithDefault(msg, 4, ""),
  5180. phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
  5181. contacts: jspb.Message.getFieldWithDefault(msg, 6, ""),
  5182. createuser: jspb.Message.getFieldWithDefault(msg, 7, 0)
  5183. };
  5184. if (includeInstance) {
  5185. obj.$jspbMessageInstance = msg;
  5186. }
  5187. return obj;
  5188. };
  5189. }
  5190. /**
  5191. * Deserializes binary data (in protobuf wire format).
  5192. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5193. * @return {!proto.im.CreateShopRequest}
  5194. */
  5195. proto.im.CreateShopRequest.deserializeBinary = function (bytes) {
  5196. var reader = new jspb.BinaryReader(bytes);
  5197. var msg = new proto.im.CreateShopRequest;
  5198. return proto.im.CreateShopRequest.deserializeBinaryFromReader(msg, reader);
  5199. };
  5200. /**
  5201. * Deserializes binary data (in protobuf wire format) from the
  5202. * given reader into the given message object.
  5203. * @param {!proto.im.CreateShopRequest} msg The message object to deserialize into.
  5204. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5205. * @return {!proto.im.CreateShopRequest}
  5206. */
  5207. proto.im.CreateShopRequest.deserializeBinaryFromReader = function (msg, reader) {
  5208. while (reader.nextField()) {
  5209. if (reader.isEndGroup()) {
  5210. break;
  5211. }
  5212. var field = reader.getFieldNumber();
  5213. switch (field) {
  5214. case 1:
  5215. var value = /** @type {string} */ (reader.readString());
  5216. msg.setName(value);
  5217. break;
  5218. case 2:
  5219. var value = /** @type {string} */ (reader.readString());
  5220. msg.setKey(value);
  5221. break;
  5222. case 3:
  5223. var value = /** @type {number} */ (reader.readInt64());
  5224. msg.setSid(value);
  5225. break;
  5226. case 4:
  5227. var value = /** @type {string} */ (reader.readString());
  5228. msg.setAddr(value);
  5229. break;
  5230. case 5:
  5231. var value = /** @type {string} */ (reader.readString());
  5232. msg.setPhone(value);
  5233. break;
  5234. case 6:
  5235. var value = /** @type {string} */ (reader.readString());
  5236. msg.setContacts(value);
  5237. break;
  5238. case 7:
  5239. var value = /** @type {number} */ (reader.readInt64());
  5240. msg.setCreateuser(value);
  5241. break;
  5242. default:
  5243. reader.skipField();
  5244. break;
  5245. }
  5246. }
  5247. return msg;
  5248. };
  5249. /**
  5250. * Serializes the message to binary data (in protobuf wire format).
  5251. * @return {!Uint8Array}
  5252. */
  5253. proto.im.CreateShopRequest.prototype.serializeBinary = function () {
  5254. var writer = new jspb.BinaryWriter();
  5255. proto.im.CreateShopRequest.serializeBinaryToWriter(this, writer);
  5256. return writer.getResultBuffer();
  5257. };
  5258. /**
  5259. * Serializes the given message to binary data (in protobuf wire
  5260. * format), writing to the given BinaryWriter.
  5261. * @param {!proto.im.CreateShopRequest} message
  5262. * @param {!jspb.BinaryWriter} writer
  5263. * @suppress {unusedLocalVariables} f is only used for nested messages
  5264. */
  5265. proto.im.CreateShopRequest.serializeBinaryToWriter = function (message, writer) {
  5266. var f = undefined;
  5267. f = message.getName();
  5268. if (f.length > 0) {
  5269. writer.writeString(
  5270. 1,
  5271. f
  5272. );
  5273. }
  5274. f = message.getKey();
  5275. if (f.length > 0) {
  5276. writer.writeString(
  5277. 2,
  5278. f
  5279. );
  5280. }
  5281. f = message.getSid();
  5282. if (f !== 0) {
  5283. writer.writeInt64(
  5284. 3,
  5285. f
  5286. );
  5287. }
  5288. f = message.getAddr();
  5289. if (f.length > 0) {
  5290. writer.writeString(
  5291. 4,
  5292. f
  5293. );
  5294. }
  5295. f = message.getPhone();
  5296. if (f.length > 0) {
  5297. writer.writeString(
  5298. 5,
  5299. f
  5300. );
  5301. }
  5302. f = message.getContacts();
  5303. if (f.length > 0) {
  5304. writer.writeString(
  5305. 6,
  5306. f
  5307. );
  5308. }
  5309. f = message.getCreateuser();
  5310. if (f !== 0) {
  5311. writer.writeInt64(
  5312. 7,
  5313. f
  5314. );
  5315. }
  5316. };
  5317. /**
  5318. * optional string name = 1;
  5319. * @return {string}
  5320. */
  5321. proto.im.CreateShopRequest.prototype.getName = function () {
  5322. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  5323. };
  5324. /**
  5325. * @param {string} value
  5326. * @return {!proto.im.CreateShopRequest} returns this
  5327. */
  5328. proto.im.CreateShopRequest.prototype.setName = function (value) {
  5329. return jspb.Message.setProto3StringField(this, 1, value);
  5330. };
  5331. /**
  5332. * optional string key = 2;
  5333. * @return {string}
  5334. */
  5335. proto.im.CreateShopRequest.prototype.getKey = function () {
  5336. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5337. };
  5338. /**
  5339. * @param {string} value
  5340. * @return {!proto.im.CreateShopRequest} returns this
  5341. */
  5342. proto.im.CreateShopRequest.prototype.setKey = function (value) {
  5343. return jspb.Message.setProto3StringField(this, 2, value);
  5344. };
  5345. /**
  5346. * optional int64 sId = 3;
  5347. * @return {number}
  5348. */
  5349. proto.im.CreateShopRequest.prototype.getSid = function () {
  5350. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5351. };
  5352. /**
  5353. * @param {number} value
  5354. * @return {!proto.im.CreateShopRequest} returns this
  5355. */
  5356. proto.im.CreateShopRequest.prototype.setSid = function (value) {
  5357. return jspb.Message.setProto3IntField(this, 3, value);
  5358. };
  5359. /**
  5360. * optional string addr = 4;
  5361. * @return {string}
  5362. */
  5363. proto.im.CreateShopRequest.prototype.getAddr = function () {
  5364. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  5365. };
  5366. /**
  5367. * @param {string} value
  5368. * @return {!proto.im.CreateShopRequest} returns this
  5369. */
  5370. proto.im.CreateShopRequest.prototype.setAddr = function (value) {
  5371. return jspb.Message.setProto3StringField(this, 4, value);
  5372. };
  5373. /**
  5374. * optional string phone = 5;
  5375. * @return {string}
  5376. */
  5377. proto.im.CreateShopRequest.prototype.getPhone = function () {
  5378. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  5379. };
  5380. /**
  5381. * @param {string} value
  5382. * @return {!proto.im.CreateShopRequest} returns this
  5383. */
  5384. proto.im.CreateShopRequest.prototype.setPhone = function (value) {
  5385. return jspb.Message.setProto3StringField(this, 5, value);
  5386. };
  5387. /**
  5388. * optional string contacts = 6;
  5389. * @return {string}
  5390. */
  5391. proto.im.CreateShopRequest.prototype.getContacts = function () {
  5392. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  5393. };
  5394. /**
  5395. * @param {string} value
  5396. * @return {!proto.im.CreateShopRequest} returns this
  5397. */
  5398. proto.im.CreateShopRequest.prototype.setContacts = function (value) {
  5399. return jspb.Message.setProto3StringField(this, 6, value);
  5400. };
  5401. /**
  5402. * optional int64 createUser = 7;
  5403. * @return {number}
  5404. */
  5405. proto.im.CreateShopRequest.prototype.getCreateuser = function () {
  5406. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  5407. };
  5408. /**
  5409. * @param {number} value
  5410. * @return {!proto.im.CreateShopRequest} returns this
  5411. */
  5412. proto.im.CreateShopRequest.prototype.setCreateuser = function (value) {
  5413. return jspb.Message.setProto3IntField(this, 7, value);
  5414. };
  5415. if (jspb.Message.GENERATE_TO_OBJECT) {
  5416. /**
  5417. * Creates an object representation of this proto.
  5418. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5419. * Optional fields that are not set will be set to undefined.
  5420. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5421. * For the list of reserved names please see:
  5422. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5423. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5424. * JSPB instance for transitional soy proto support:
  5425. * http://goto/soy-param-migration
  5426. * @return {!Object}
  5427. */
  5428. proto.im.ShopListRequest.prototype.toObject = function (opt_includeInstance) {
  5429. return proto.im.ShopListRequest.toObject(opt_includeInstance, this);
  5430. };
  5431. /**
  5432. * Static version of the {@see toObject} method.
  5433. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5434. * the JSPB instance for transitional soy proto support:
  5435. * http://goto/soy-param-migration
  5436. * @param {!proto.im.ShopListRequest} msg The msg instance to transform.
  5437. * @return {!Object}
  5438. * @suppress {unusedLocalVariables} f is only used for nested messages
  5439. */
  5440. proto.im.ShopListRequest.toObject = function (includeInstance, msg) {
  5441. var f, obj = {
  5442. sysid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5443. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5444. status: jspb.Message.getFieldWithDefault(msg, 3, 0),
  5445. sid: jspb.Message.getFieldWithDefault(msg, 4, 0)
  5446. };
  5447. if (includeInstance) {
  5448. obj.$jspbMessageInstance = msg;
  5449. }
  5450. return obj;
  5451. };
  5452. }
  5453. /**
  5454. * Deserializes binary data (in protobuf wire format).
  5455. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5456. * @return {!proto.im.ShopListRequest}
  5457. */
  5458. proto.im.ShopListRequest.deserializeBinary = function (bytes) {
  5459. var reader = new jspb.BinaryReader(bytes);
  5460. var msg = new proto.im.ShopListRequest;
  5461. return proto.im.ShopListRequest.deserializeBinaryFromReader(msg, reader);
  5462. };
  5463. /**
  5464. * Deserializes binary data (in protobuf wire format) from the
  5465. * given reader into the given message object.
  5466. * @param {!proto.im.ShopListRequest} msg The message object to deserialize into.
  5467. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5468. * @return {!proto.im.ShopListRequest}
  5469. */
  5470. proto.im.ShopListRequest.deserializeBinaryFromReader = function (msg, reader) {
  5471. while (reader.nextField()) {
  5472. if (reader.isEndGroup()) {
  5473. break;
  5474. }
  5475. var field = reader.getFieldNumber();
  5476. switch (field) {
  5477. case 1:
  5478. var value = /** @type {number} */ (reader.readInt64());
  5479. msg.setSysid(value);
  5480. break;
  5481. case 2:
  5482. var value = /** @type {string} */ (reader.readString());
  5483. msg.setName(value);
  5484. break;
  5485. case 3:
  5486. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  5487. msg.setStatus(value);
  5488. break;
  5489. case 4:
  5490. var value = /** @type {number} */ (reader.readInt64());
  5491. msg.setSid(value);
  5492. break;
  5493. default:
  5494. reader.skipField();
  5495. break;
  5496. }
  5497. }
  5498. return msg;
  5499. };
  5500. /**
  5501. * Serializes the message to binary data (in protobuf wire format).
  5502. * @return {!Uint8Array}
  5503. */
  5504. proto.im.ShopListRequest.prototype.serializeBinary = function () {
  5505. var writer = new jspb.BinaryWriter();
  5506. proto.im.ShopListRequest.serializeBinaryToWriter(this, writer);
  5507. return writer.getResultBuffer();
  5508. };
  5509. /**
  5510. * Serializes the given message to binary data (in protobuf wire
  5511. * format), writing to the given BinaryWriter.
  5512. * @param {!proto.im.ShopListRequest} message
  5513. * @param {!jspb.BinaryWriter} writer
  5514. * @suppress {unusedLocalVariables} f is only used for nested messages
  5515. */
  5516. proto.im.ShopListRequest.serializeBinaryToWriter = function (message, writer) {
  5517. var f = undefined;
  5518. f = message.getSysid();
  5519. if (f !== 0) {
  5520. writer.writeInt64(
  5521. 1,
  5522. f
  5523. );
  5524. }
  5525. f = message.getName();
  5526. if (f.length > 0) {
  5527. writer.writeString(
  5528. 2,
  5529. f
  5530. );
  5531. }
  5532. f = message.getStatus();
  5533. if (f !== 0.0) {
  5534. writer.writeEnum(
  5535. 3,
  5536. f
  5537. );
  5538. }
  5539. f = message.getSid();
  5540. if (f !== 0) {
  5541. writer.writeInt64(
  5542. 4,
  5543. f
  5544. );
  5545. }
  5546. };
  5547. /**
  5548. * optional int64 sysId = 1;
  5549. * @return {number}
  5550. */
  5551. proto.im.ShopListRequest.prototype.getSysid = function () {
  5552. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5553. };
  5554. /**
  5555. * @param {number} value
  5556. * @return {!proto.im.ShopListRequest} returns this
  5557. */
  5558. proto.im.ShopListRequest.prototype.setSysid = function (value) {
  5559. return jspb.Message.setProto3IntField(this, 1, value);
  5560. };
  5561. /**
  5562. * optional string name = 2;
  5563. * @return {string}
  5564. */
  5565. proto.im.ShopListRequest.prototype.getName = function () {
  5566. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5567. };
  5568. /**
  5569. * @param {string} value
  5570. * @return {!proto.im.ShopListRequest} returns this
  5571. */
  5572. proto.im.ShopListRequest.prototype.setName = function (value) {
  5573. return jspb.Message.setProto3StringField(this, 2, value);
  5574. };
  5575. /**
  5576. * optional Status status = 3;
  5577. * @return {!proto.im.Status}
  5578. */
  5579. proto.im.ShopListRequest.prototype.getStatus = function () {
  5580. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5581. };
  5582. /**
  5583. * @param {!proto.im.Status} value
  5584. * @return {!proto.im.ShopListRequest} returns this
  5585. */
  5586. proto.im.ShopListRequest.prototype.setStatus = function (value) {
  5587. return jspb.Message.setProto3EnumField(this, 3, value);
  5588. };
  5589. /**
  5590. * optional int64 sId = 4;
  5591. * @return {number}
  5592. */
  5593. proto.im.ShopListRequest.prototype.getSid = function () {
  5594. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  5595. };
  5596. /**
  5597. * @param {number} value
  5598. * @return {!proto.im.ShopListRequest} returns this
  5599. */
  5600. proto.im.ShopListRequest.prototype.setSid = function (value) {
  5601. return jspb.Message.setProto3IntField(this, 4, value);
  5602. };
  5603. if (jspb.Message.GENERATE_TO_OBJECT) {
  5604. /**
  5605. * Creates an object representation of this proto.
  5606. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5607. * Optional fields that are not set will be set to undefined.
  5608. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5609. * For the list of reserved names please see:
  5610. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5611. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5612. * JSPB instance for transitional soy proto support:
  5613. * http://goto/soy-param-migration
  5614. * @return {!Object}
  5615. */
  5616. proto.im.ShopInfo.prototype.toObject = function (opt_includeInstance) {
  5617. return proto.im.ShopInfo.toObject(opt_includeInstance, this);
  5618. };
  5619. /**
  5620. * Static version of the {@see toObject} method.
  5621. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5622. * the JSPB instance for transitional soy proto support:
  5623. * http://goto/soy-param-migration
  5624. * @param {!proto.im.ShopInfo} msg The msg instance to transform.
  5625. * @return {!Object}
  5626. * @suppress {unusedLocalVariables} f is only used for nested messages
  5627. */
  5628. proto.im.ShopInfo.toObject = function (includeInstance, msg) {
  5629. var f, obj = {
  5630. shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  5631. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  5632. sid: jspb.Message.getFieldWithDefault(msg, 3, 0),
  5633. addr: jspb.Message.getFieldWithDefault(msg, 4, ""),
  5634. phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
  5635. contacts: jspb.Message.getFieldWithDefault(msg, 6, ""),
  5636. status: jspb.Message.getFieldWithDefault(msg, 7, 0),
  5637. createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0),
  5638. createdUser: jspb.Message.getFieldWithDefault(msg, 9, 0),
  5639. updatedAt: jspb.Message.getFieldWithDefault(msg, 10, 0),
  5640. updatedUser: jspb.Message.getFieldWithDefault(msg, 11, 0)
  5641. };
  5642. if (includeInstance) {
  5643. obj.$jspbMessageInstance = msg;
  5644. }
  5645. return obj;
  5646. };
  5647. }
  5648. /**
  5649. * Deserializes binary data (in protobuf wire format).
  5650. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  5651. * @return {!proto.im.ShopInfo}
  5652. */
  5653. proto.im.ShopInfo.deserializeBinary = function (bytes) {
  5654. var reader = new jspb.BinaryReader(bytes);
  5655. var msg = new proto.im.ShopInfo;
  5656. return proto.im.ShopInfo.deserializeBinaryFromReader(msg, reader);
  5657. };
  5658. /**
  5659. * Deserializes binary data (in protobuf wire format) from the
  5660. * given reader into the given message object.
  5661. * @param {!proto.im.ShopInfo} msg The message object to deserialize into.
  5662. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  5663. * @return {!proto.im.ShopInfo}
  5664. */
  5665. proto.im.ShopInfo.deserializeBinaryFromReader = function (msg, reader) {
  5666. while (reader.nextField()) {
  5667. if (reader.isEndGroup()) {
  5668. break;
  5669. }
  5670. var field = reader.getFieldNumber();
  5671. switch (field) {
  5672. case 1:
  5673. var value = /** @type {number} */ (reader.readInt64());
  5674. msg.setShopid(value);
  5675. break;
  5676. case 2:
  5677. var value = /** @type {string} */ (reader.readString());
  5678. msg.setName(value);
  5679. break;
  5680. case 3:
  5681. var value = /** @type {number} */ (reader.readInt64());
  5682. msg.setSid(value);
  5683. break;
  5684. case 4:
  5685. var value = /** @type {string} */ (reader.readString());
  5686. msg.setAddr(value);
  5687. break;
  5688. case 5:
  5689. var value = /** @type {string} */ (reader.readString());
  5690. msg.setPhone(value);
  5691. break;
  5692. case 6:
  5693. var value = /** @type {string} */ (reader.readString());
  5694. msg.setContacts(value);
  5695. break;
  5696. case 7:
  5697. var value = /** @type {!proto.im.Status} */ (reader.readEnum());
  5698. msg.setStatus(value);
  5699. break;
  5700. case 8:
  5701. var value = /** @type {number} */ (reader.readInt64());
  5702. msg.setCreatedAt(value);
  5703. break;
  5704. case 9:
  5705. var value = /** @type {number} */ (reader.readInt64());
  5706. msg.setCreatedUser(value);
  5707. break;
  5708. case 10:
  5709. var value = /** @type {number} */ (reader.readInt64());
  5710. msg.setUpdatedAt(value);
  5711. break;
  5712. case 11:
  5713. var value = /** @type {number} */ (reader.readInt64());
  5714. msg.setUpdatedUser(value);
  5715. break;
  5716. default:
  5717. reader.skipField();
  5718. break;
  5719. }
  5720. }
  5721. return msg;
  5722. };
  5723. /**
  5724. * Serializes the message to binary data (in protobuf wire format).
  5725. * @return {!Uint8Array}
  5726. */
  5727. proto.im.ShopInfo.prototype.serializeBinary = function () {
  5728. var writer = new jspb.BinaryWriter();
  5729. proto.im.ShopInfo.serializeBinaryToWriter(this, writer);
  5730. return writer.getResultBuffer();
  5731. };
  5732. /**
  5733. * Serializes the given message to binary data (in protobuf wire
  5734. * format), writing to the given BinaryWriter.
  5735. * @param {!proto.im.ShopInfo} message
  5736. * @param {!jspb.BinaryWriter} writer
  5737. * @suppress {unusedLocalVariables} f is only used for nested messages
  5738. */
  5739. proto.im.ShopInfo.serializeBinaryToWriter = function (message, writer) {
  5740. var f = undefined;
  5741. f = message.getShopid();
  5742. if (f !== 0) {
  5743. writer.writeInt64(
  5744. 1,
  5745. f
  5746. );
  5747. }
  5748. f = message.getName();
  5749. if (f.length > 0) {
  5750. writer.writeString(
  5751. 2,
  5752. f
  5753. );
  5754. }
  5755. f = message.getSid();
  5756. if (f !== 0) {
  5757. writer.writeInt64(
  5758. 3,
  5759. f
  5760. );
  5761. }
  5762. f = message.getAddr();
  5763. if (f.length > 0) {
  5764. writer.writeString(
  5765. 4,
  5766. f
  5767. );
  5768. }
  5769. f = message.getPhone();
  5770. if (f.length > 0) {
  5771. writer.writeString(
  5772. 5,
  5773. f
  5774. );
  5775. }
  5776. f = message.getContacts();
  5777. if (f.length > 0) {
  5778. writer.writeString(
  5779. 6,
  5780. f
  5781. );
  5782. }
  5783. f = message.getStatus();
  5784. if (f !== 0.0) {
  5785. writer.writeEnum(
  5786. 7,
  5787. f
  5788. );
  5789. }
  5790. f = message.getCreatedAt();
  5791. if (f !== 0) {
  5792. writer.writeInt64(
  5793. 8,
  5794. f
  5795. );
  5796. }
  5797. f = message.getCreatedUser();
  5798. if (f !== 0) {
  5799. writer.writeInt64(
  5800. 9,
  5801. f
  5802. );
  5803. }
  5804. f = message.getUpdatedAt();
  5805. if (f !== 0) {
  5806. writer.writeInt64(
  5807. 10,
  5808. f
  5809. );
  5810. }
  5811. f = message.getUpdatedUser();
  5812. if (f !== 0) {
  5813. writer.writeInt64(
  5814. 11,
  5815. f
  5816. );
  5817. }
  5818. };
  5819. /**
  5820. * optional int64 shopId = 1;
  5821. * @return {number}
  5822. */
  5823. proto.im.ShopInfo.prototype.getShopid = function () {
  5824. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  5825. };
  5826. /**
  5827. * @param {number} value
  5828. * @return {!proto.im.ShopInfo} returns this
  5829. */
  5830. proto.im.ShopInfo.prototype.setShopid = function (value) {
  5831. return jspb.Message.setProto3IntField(this, 1, value);
  5832. };
  5833. /**
  5834. * optional string name = 2;
  5835. * @return {string}
  5836. */
  5837. proto.im.ShopInfo.prototype.getName = function () {
  5838. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  5839. };
  5840. /**
  5841. * @param {string} value
  5842. * @return {!proto.im.ShopInfo} returns this
  5843. */
  5844. proto.im.ShopInfo.prototype.setName = function (value) {
  5845. return jspb.Message.setProto3StringField(this, 2, value);
  5846. };
  5847. /**
  5848. * optional int64 sId = 3;
  5849. * @return {number}
  5850. */
  5851. proto.im.ShopInfo.prototype.getSid = function () {
  5852. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  5853. };
  5854. /**
  5855. * @param {number} value
  5856. * @return {!proto.im.ShopInfo} returns this
  5857. */
  5858. proto.im.ShopInfo.prototype.setSid = function (value) {
  5859. return jspb.Message.setProto3IntField(this, 3, value);
  5860. };
  5861. /**
  5862. * optional string addr = 4;
  5863. * @return {string}
  5864. */
  5865. proto.im.ShopInfo.prototype.getAddr = function () {
  5866. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
  5867. };
  5868. /**
  5869. * @param {string} value
  5870. * @return {!proto.im.ShopInfo} returns this
  5871. */
  5872. proto.im.ShopInfo.prototype.setAddr = function (value) {
  5873. return jspb.Message.setProto3StringField(this, 4, value);
  5874. };
  5875. /**
  5876. * optional string phone = 5;
  5877. * @return {string}
  5878. */
  5879. proto.im.ShopInfo.prototype.getPhone = function () {
  5880. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  5881. };
  5882. /**
  5883. * @param {string} value
  5884. * @return {!proto.im.ShopInfo} returns this
  5885. */
  5886. proto.im.ShopInfo.prototype.setPhone = function (value) {
  5887. return jspb.Message.setProto3StringField(this, 5, value);
  5888. };
  5889. /**
  5890. * optional string contacts = 6;
  5891. * @return {string}
  5892. */
  5893. proto.im.ShopInfo.prototype.getContacts = function () {
  5894. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  5895. };
  5896. /**
  5897. * @param {string} value
  5898. * @return {!proto.im.ShopInfo} returns this
  5899. */
  5900. proto.im.ShopInfo.prototype.setContacts = function (value) {
  5901. return jspb.Message.setProto3StringField(this, 6, value);
  5902. };
  5903. /**
  5904. * optional Status status = 7;
  5905. * @return {!proto.im.Status}
  5906. */
  5907. proto.im.ShopInfo.prototype.getStatus = function () {
  5908. return /** @type {!proto.im.Status} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
  5909. };
  5910. /**
  5911. * @param {!proto.im.Status} value
  5912. * @return {!proto.im.ShopInfo} returns this
  5913. */
  5914. proto.im.ShopInfo.prototype.setStatus = function (value) {
  5915. return jspb.Message.setProto3EnumField(this, 7, value);
  5916. };
  5917. /**
  5918. * optional int64 created_at = 8;
  5919. * @return {number}
  5920. */
  5921. proto.im.ShopInfo.prototype.getCreatedAt = function () {
  5922. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
  5923. };
  5924. /**
  5925. * @param {number} value
  5926. * @return {!proto.im.ShopInfo} returns this
  5927. */
  5928. proto.im.ShopInfo.prototype.setCreatedAt = function (value) {
  5929. return jspb.Message.setProto3IntField(this, 8, value);
  5930. };
  5931. /**
  5932. * optional int64 created_user = 9;
  5933. * @return {number}
  5934. */
  5935. proto.im.ShopInfo.prototype.getCreatedUser = function () {
  5936. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  5937. };
  5938. /**
  5939. * @param {number} value
  5940. * @return {!proto.im.ShopInfo} returns this
  5941. */
  5942. proto.im.ShopInfo.prototype.setCreatedUser = function (value) {
  5943. return jspb.Message.setProto3IntField(this, 9, value);
  5944. };
  5945. /**
  5946. * optional int64 updated_at = 10;
  5947. * @return {number}
  5948. */
  5949. proto.im.ShopInfo.prototype.getUpdatedAt = function () {
  5950. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
  5951. };
  5952. /**
  5953. * @param {number} value
  5954. * @return {!proto.im.ShopInfo} returns this
  5955. */
  5956. proto.im.ShopInfo.prototype.setUpdatedAt = function (value) {
  5957. return jspb.Message.setProto3IntField(this, 10, value);
  5958. };
  5959. /**
  5960. * optional int64 updated_user = 11;
  5961. * @return {number}
  5962. */
  5963. proto.im.ShopInfo.prototype.getUpdatedUser = function () {
  5964. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
  5965. };
  5966. /**
  5967. * @param {number} value
  5968. * @return {!proto.im.ShopInfo} returns this
  5969. */
  5970. proto.im.ShopInfo.prototype.setUpdatedUser = function (value) {
  5971. return jspb.Message.setProto3IntField(this, 11, value);
  5972. };
  5973. /**
  5974. * List of repeated fields within this message type.
  5975. * @private {!Array<number>}
  5976. * @const
  5977. */
  5978. proto.im.ShopListReply.repeatedFields_ = [1];
  5979. if (jspb.Message.GENERATE_TO_OBJECT) {
  5980. /**
  5981. * Creates an object representation of this proto.
  5982. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  5983. * Optional fields that are not set will be set to undefined.
  5984. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  5985. * For the list of reserved names please see:
  5986. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  5987. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  5988. * JSPB instance for transitional soy proto support:
  5989. * http://goto/soy-param-migration
  5990. * @return {!Object}
  5991. */
  5992. proto.im.ShopListReply.prototype.toObject = function (opt_includeInstance) {
  5993. return proto.im.ShopListReply.toObject(opt_includeInstance, this);
  5994. };
  5995. /**
  5996. * Static version of the {@see toObject} method.
  5997. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  5998. * the JSPB instance for transitional soy proto support:
  5999. * http://goto/soy-param-migration
  6000. * @param {!proto.im.ShopListReply} msg The msg instance to transform.
  6001. * @return {!Object}
  6002. * @suppress {unusedLocalVariables} f is only used for nested messages
  6003. */
  6004. proto.im.ShopListReply.toObject = function (includeInstance, msg) {
  6005. var f, obj = {
  6006. listList: jspb.Message.toObjectList(msg.getListList(),
  6007. proto.im.ShopInfo.toObject, includeInstance)
  6008. };
  6009. if (includeInstance) {
  6010. obj.$jspbMessageInstance = msg;
  6011. }
  6012. return obj;
  6013. };
  6014. }
  6015. /**
  6016. * Deserializes binary data (in protobuf wire format).
  6017. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6018. * @return {!proto.im.ShopListReply}
  6019. */
  6020. proto.im.ShopListReply.deserializeBinary = function (bytes) {
  6021. var reader = new jspb.BinaryReader(bytes);
  6022. var msg = new proto.im.ShopListReply;
  6023. return proto.im.ShopListReply.deserializeBinaryFromReader(msg, reader);
  6024. };
  6025. /**
  6026. * Deserializes binary data (in protobuf wire format) from the
  6027. * given reader into the given message object.
  6028. * @param {!proto.im.ShopListReply} msg The message object to deserialize into.
  6029. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6030. * @return {!proto.im.ShopListReply}
  6031. */
  6032. proto.im.ShopListReply.deserializeBinaryFromReader = function (msg, reader) {
  6033. while (reader.nextField()) {
  6034. if (reader.isEndGroup()) {
  6035. break;
  6036. }
  6037. var field = reader.getFieldNumber();
  6038. switch (field) {
  6039. case 1:
  6040. var value = new proto.im.ShopInfo;
  6041. reader.readMessage(value, proto.im.ShopInfo.deserializeBinaryFromReader);
  6042. msg.addList(value);
  6043. break;
  6044. default:
  6045. reader.skipField();
  6046. break;
  6047. }
  6048. }
  6049. return msg;
  6050. };
  6051. /**
  6052. * Serializes the message to binary data (in protobuf wire format).
  6053. * @return {!Uint8Array}
  6054. */
  6055. proto.im.ShopListReply.prototype.serializeBinary = function () {
  6056. var writer = new jspb.BinaryWriter();
  6057. proto.im.ShopListReply.serializeBinaryToWriter(this, writer);
  6058. return writer.getResultBuffer();
  6059. };
  6060. /**
  6061. * Serializes the given message to binary data (in protobuf wire
  6062. * format), writing to the given BinaryWriter.
  6063. * @param {!proto.im.ShopListReply} message
  6064. * @param {!jspb.BinaryWriter} writer
  6065. * @suppress {unusedLocalVariables} f is only used for nested messages
  6066. */
  6067. proto.im.ShopListReply.serializeBinaryToWriter = function (message, writer) {
  6068. var f = undefined;
  6069. f = message.getListList();
  6070. if (f.length > 0) {
  6071. writer.writeRepeatedMessage(
  6072. 1,
  6073. f,
  6074. proto.im.ShopInfo.serializeBinaryToWriter
  6075. );
  6076. }
  6077. };
  6078. /**
  6079. * repeated ShopInfo list = 1;
  6080. * @return {!Array<!proto.im.ShopInfo>}
  6081. */
  6082. proto.im.ShopListReply.prototype.getListList = function () {
  6083. return /** @type{!Array<!proto.im.ShopInfo>} */ (
  6084. jspb.Message.getRepeatedWrapperField(this, proto.im.ShopInfo, 1));
  6085. };
  6086. /**
  6087. * @param {!Array<!proto.im.ShopInfo>} value
  6088. * @return {!proto.im.ShopListReply} returns this
  6089. */
  6090. proto.im.ShopListReply.prototype.setListList = function (value) {
  6091. return jspb.Message.setRepeatedWrapperField(this, 1, value);
  6092. };
  6093. /**
  6094. * @param {!proto.im.ShopInfo=} opt_value
  6095. * @param {number=} opt_index
  6096. * @return {!proto.im.ShopInfo}
  6097. */
  6098. proto.im.ShopListReply.prototype.addList = function (opt_value, opt_index) {
  6099. return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.im.ShopInfo, opt_index);
  6100. };
  6101. /**
  6102. * Clears the list making it empty but non-null.
  6103. * @return {!proto.im.ShopListReply} returns this
  6104. */
  6105. proto.im.ShopListReply.prototype.clearListList = function () {
  6106. return this.setListList([]);
  6107. };
  6108. if (jspb.Message.GENERATE_TO_OBJECT) {
  6109. /**
  6110. * Creates an object representation of this proto.
  6111. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6112. * Optional fields that are not set will be set to undefined.
  6113. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6114. * For the list of reserved names please see:
  6115. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6116. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6117. * JSPB instance for transitional soy proto support:
  6118. * http://goto/soy-param-migration
  6119. * @return {!Object}
  6120. */
  6121. proto.im.SystemAddShopRequest.prototype.toObject = function (opt_includeInstance) {
  6122. return proto.im.SystemAddShopRequest.toObject(opt_includeInstance, this);
  6123. };
  6124. /**
  6125. * Static version of the {@see toObject} method.
  6126. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6127. * the JSPB instance for transitional soy proto support:
  6128. * http://goto/soy-param-migration
  6129. * @param {!proto.im.SystemAddShopRequest} msg The msg instance to transform.
  6130. * @return {!Object}
  6131. * @suppress {unusedLocalVariables} f is only used for nested messages
  6132. */
  6133. proto.im.SystemAddShopRequest.toObject = function (includeInstance, msg) {
  6134. var f, obj = {
  6135. sysid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  6136. shopid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  6137. };
  6138. if (includeInstance) {
  6139. obj.$jspbMessageInstance = msg;
  6140. }
  6141. return obj;
  6142. };
  6143. }
  6144. /**
  6145. * Deserializes binary data (in protobuf wire format).
  6146. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6147. * @return {!proto.im.SystemAddShopRequest}
  6148. */
  6149. proto.im.SystemAddShopRequest.deserializeBinary = function (bytes) {
  6150. var reader = new jspb.BinaryReader(bytes);
  6151. var msg = new proto.im.SystemAddShopRequest;
  6152. return proto.im.SystemAddShopRequest.deserializeBinaryFromReader(msg, reader);
  6153. };
  6154. /**
  6155. * Deserializes binary data (in protobuf wire format) from the
  6156. * given reader into the given message object.
  6157. * @param {!proto.im.SystemAddShopRequest} msg The message object to deserialize into.
  6158. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6159. * @return {!proto.im.SystemAddShopRequest}
  6160. */
  6161. proto.im.SystemAddShopRequest.deserializeBinaryFromReader = function (msg, reader) {
  6162. while (reader.nextField()) {
  6163. if (reader.isEndGroup()) {
  6164. break;
  6165. }
  6166. var field = reader.getFieldNumber();
  6167. switch (field) {
  6168. case 1:
  6169. var value = /** @type {number} */ (reader.readInt64());
  6170. msg.setSysid(value);
  6171. break;
  6172. case 2:
  6173. var value = /** @type {number} */ (reader.readInt64());
  6174. msg.setShopid(value);
  6175. break;
  6176. default:
  6177. reader.skipField();
  6178. break;
  6179. }
  6180. }
  6181. return msg;
  6182. };
  6183. /**
  6184. * Serializes the message to binary data (in protobuf wire format).
  6185. * @return {!Uint8Array}
  6186. */
  6187. proto.im.SystemAddShopRequest.prototype.serializeBinary = function () {
  6188. var writer = new jspb.BinaryWriter();
  6189. proto.im.SystemAddShopRequest.serializeBinaryToWriter(this, writer);
  6190. return writer.getResultBuffer();
  6191. };
  6192. /**
  6193. * Serializes the given message to binary data (in protobuf wire
  6194. * format), writing to the given BinaryWriter.
  6195. * @param {!proto.im.SystemAddShopRequest} message
  6196. * @param {!jspb.BinaryWriter} writer
  6197. * @suppress {unusedLocalVariables} f is only used for nested messages
  6198. */
  6199. proto.im.SystemAddShopRequest.serializeBinaryToWriter = function (message, writer) {
  6200. var f = undefined;
  6201. f = message.getSysid();
  6202. if (f !== 0) {
  6203. writer.writeInt64(
  6204. 1,
  6205. f
  6206. );
  6207. }
  6208. f = message.getShopid();
  6209. if (f !== 0) {
  6210. writer.writeInt64(
  6211. 2,
  6212. f
  6213. );
  6214. }
  6215. };
  6216. /**
  6217. * optional int64 sysId = 1;
  6218. * @return {number}
  6219. */
  6220. proto.im.SystemAddShopRequest.prototype.getSysid = function () {
  6221. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6222. };
  6223. /**
  6224. * @param {number} value
  6225. * @return {!proto.im.SystemAddShopRequest} returns this
  6226. */
  6227. proto.im.SystemAddShopRequest.prototype.setSysid = function (value) {
  6228. return jspb.Message.setProto3IntField(this, 1, value);
  6229. };
  6230. /**
  6231. * optional int64 shopId = 2;
  6232. * @return {number}
  6233. */
  6234. proto.im.SystemAddShopRequest.prototype.getShopid = function () {
  6235. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  6236. };
  6237. /**
  6238. * @param {number} value
  6239. * @return {!proto.im.SystemAddShopRequest} returns this
  6240. */
  6241. proto.im.SystemAddShopRequest.prototype.setShopid = function (value) {
  6242. return jspb.Message.setProto3IntField(this, 2, value);
  6243. };
  6244. if (jspb.Message.GENERATE_TO_OBJECT) {
  6245. /**
  6246. * Creates an object representation of this proto.
  6247. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6248. * Optional fields that are not set will be set to undefined.
  6249. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6250. * For the list of reserved names please see:
  6251. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6252. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6253. * JSPB instance for transitional soy proto support:
  6254. * http://goto/soy-param-migration
  6255. * @return {!Object}
  6256. */
  6257. proto.im.SystemAddUserRequest.prototype.toObject = function (opt_includeInstance) {
  6258. return proto.im.SystemAddUserRequest.toObject(opt_includeInstance, this);
  6259. };
  6260. /**
  6261. * Static version of the {@see toObject} method.
  6262. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6263. * the JSPB instance for transitional soy proto support:
  6264. * http://goto/soy-param-migration
  6265. * @param {!proto.im.SystemAddUserRequest} msg The msg instance to transform.
  6266. * @return {!Object}
  6267. * @suppress {unusedLocalVariables} f is only used for nested messages
  6268. */
  6269. proto.im.SystemAddUserRequest.toObject = function (includeInstance, msg) {
  6270. var f, obj = {
  6271. sysid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  6272. userid: jspb.Message.getFieldWithDefault(msg, 2, 0)
  6273. };
  6274. if (includeInstance) {
  6275. obj.$jspbMessageInstance = msg;
  6276. }
  6277. return obj;
  6278. };
  6279. }
  6280. /**
  6281. * Deserializes binary data (in protobuf wire format).
  6282. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6283. * @return {!proto.im.SystemAddUserRequest}
  6284. */
  6285. proto.im.SystemAddUserRequest.deserializeBinary = function (bytes) {
  6286. var reader = new jspb.BinaryReader(bytes);
  6287. var msg = new proto.im.SystemAddUserRequest;
  6288. return proto.im.SystemAddUserRequest.deserializeBinaryFromReader(msg, reader);
  6289. };
  6290. /**
  6291. * Deserializes binary data (in protobuf wire format) from the
  6292. * given reader into the given message object.
  6293. * @param {!proto.im.SystemAddUserRequest} msg The message object to deserialize into.
  6294. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6295. * @return {!proto.im.SystemAddUserRequest}
  6296. */
  6297. proto.im.SystemAddUserRequest.deserializeBinaryFromReader = function (msg, reader) {
  6298. while (reader.nextField()) {
  6299. if (reader.isEndGroup()) {
  6300. break;
  6301. }
  6302. var field = reader.getFieldNumber();
  6303. switch (field) {
  6304. case 1:
  6305. var value = /** @type {number} */ (reader.readInt64());
  6306. msg.setSysid(value);
  6307. break;
  6308. case 2:
  6309. var value = /** @type {number} */ (reader.readInt64());
  6310. msg.setUserid(value);
  6311. break;
  6312. default:
  6313. reader.skipField();
  6314. break;
  6315. }
  6316. }
  6317. return msg;
  6318. };
  6319. /**
  6320. * Serializes the message to binary data (in protobuf wire format).
  6321. * @return {!Uint8Array}
  6322. */
  6323. proto.im.SystemAddUserRequest.prototype.serializeBinary = function () {
  6324. var writer = new jspb.BinaryWriter();
  6325. proto.im.SystemAddUserRequest.serializeBinaryToWriter(this, writer);
  6326. return writer.getResultBuffer();
  6327. };
  6328. /**
  6329. * Serializes the given message to binary data (in protobuf wire
  6330. * format), writing to the given BinaryWriter.
  6331. * @param {!proto.im.SystemAddUserRequest} message
  6332. * @param {!jspb.BinaryWriter} writer
  6333. * @suppress {unusedLocalVariables} f is only used for nested messages
  6334. */
  6335. proto.im.SystemAddUserRequest.serializeBinaryToWriter = function (message, writer) {
  6336. var f = undefined;
  6337. f = message.getSysid();
  6338. if (f !== 0) {
  6339. writer.writeInt64(
  6340. 1,
  6341. f
  6342. );
  6343. }
  6344. f = message.getUserid();
  6345. if (f !== 0) {
  6346. writer.writeInt64(
  6347. 2,
  6348. f
  6349. );
  6350. }
  6351. };
  6352. /**
  6353. * optional int64 sysId = 1;
  6354. * @return {number}
  6355. */
  6356. proto.im.SystemAddUserRequest.prototype.getSysid = function () {
  6357. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6358. };
  6359. /**
  6360. * @param {number} value
  6361. * @return {!proto.im.SystemAddUserRequest} returns this
  6362. */
  6363. proto.im.SystemAddUserRequest.prototype.setSysid = function (value) {
  6364. return jspb.Message.setProto3IntField(this, 1, value);
  6365. };
  6366. /**
  6367. * optional int64 userId = 2;
  6368. * @return {number}
  6369. */
  6370. proto.im.SystemAddUserRequest.prototype.getUserid = function () {
  6371. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  6372. };
  6373. /**
  6374. * @param {number} value
  6375. * @return {!proto.im.SystemAddUserRequest} returns this
  6376. */
  6377. proto.im.SystemAddUserRequest.prototype.setUserid = function (value) {
  6378. return jspb.Message.setProto3IntField(this, 2, value);
  6379. };
  6380. if (jspb.Message.GENERATE_TO_OBJECT) {
  6381. /**
  6382. * Creates an object representation of this proto.
  6383. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  6384. * Optional fields that are not set will be set to undefined.
  6385. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  6386. * For the list of reserved names please see:
  6387. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  6388. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  6389. * JSPB instance for transitional soy proto support:
  6390. * http://goto/soy-param-migration
  6391. * @return {!Object}
  6392. */
  6393. proto.im.Message.prototype.toObject = function (opt_includeInstance) {
  6394. return proto.im.Message.toObject(opt_includeInstance, this);
  6395. };
  6396. /**
  6397. * Static version of the {@see toObject} method.
  6398. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  6399. * the JSPB instance for transitional soy proto support:
  6400. * http://goto/soy-param-migration
  6401. * @param {!proto.im.Message} msg The msg instance to transform.
  6402. * @return {!Object}
  6403. * @suppress {unusedLocalVariables} f is only used for nested messages
  6404. */
  6405. proto.im.Message.toObject = function (includeInstance, msg) {
  6406. var f, obj = {
  6407. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  6408. title: jspb.Message.getFieldWithDefault(msg, 2, ""),
  6409. content: jspb.Message.getFieldWithDefault(msg, 3, ""),
  6410. level: jspb.Message.getFieldWithDefault(msg, 4, 0),
  6411. createat: jspb.Message.getFieldWithDefault(msg, 5, 0)
  6412. };
  6413. if (includeInstance) {
  6414. obj.$jspbMessageInstance = msg;
  6415. }
  6416. return obj;
  6417. };
  6418. }
  6419. /**
  6420. * Deserializes binary data (in protobuf wire format).
  6421. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  6422. * @return {!proto.im.Message}
  6423. */
  6424. proto.im.Message.deserializeBinary = function (bytes) {
  6425. var reader = new jspb.BinaryReader(bytes);
  6426. var msg = new proto.im.Message;
  6427. return proto.im.Message.deserializeBinaryFromReader(msg, reader);
  6428. };
  6429. /**
  6430. * Deserializes binary data (in protobuf wire format) from the
  6431. * given reader into the given message object.
  6432. * @param {!proto.im.Message} msg The message object to deserialize into.
  6433. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  6434. * @return {!proto.im.Message}
  6435. */
  6436. proto.im.Message.deserializeBinaryFromReader = function (msg, reader) {
  6437. while (reader.nextField()) {
  6438. if (reader.isEndGroup()) {
  6439. break;
  6440. }
  6441. var field = reader.getFieldNumber();
  6442. switch (field) {
  6443. case 1:
  6444. var value = /** @type {number} */ (reader.readInt64());
  6445. msg.setId(value);
  6446. break;
  6447. case 2:
  6448. var value = /** @type {string} */ (reader.readString());
  6449. msg.setTitle(value);
  6450. break;
  6451. case 3:
  6452. var value = /** @type {string} */ (reader.readString());
  6453. msg.setContent(value);
  6454. break;
  6455. case 4:
  6456. var value = /** @type {!proto.im.Message.Level} */ (reader.readEnum());
  6457. msg.setLevel(value);
  6458. break;
  6459. case 5:
  6460. var value = /** @type {number} */ (reader.readInt64());
  6461. msg.setCreateat(value);
  6462. break;
  6463. default:
  6464. reader.skipField();
  6465. break;
  6466. }
  6467. }
  6468. return msg;
  6469. };
  6470. /**
  6471. * Serializes the message to binary data (in protobuf wire format).
  6472. * @return {!Uint8Array}
  6473. */
  6474. proto.im.Message.prototype.serializeBinary = function () {
  6475. var writer = new jspb.BinaryWriter();
  6476. proto.im.Message.serializeBinaryToWriter(this, writer);
  6477. return writer.getResultBuffer();
  6478. };
  6479. /**
  6480. * Serializes the given message to binary data (in protobuf wire
  6481. * format), writing to the given BinaryWriter.
  6482. * @param {!proto.im.Message} message
  6483. * @param {!jspb.BinaryWriter} writer
  6484. * @suppress {unusedLocalVariables} f is only used for nested messages
  6485. */
  6486. proto.im.Message.serializeBinaryToWriter = function (message, writer) {
  6487. var f = undefined;
  6488. f = message.getId();
  6489. if (f !== 0) {
  6490. writer.writeInt64(
  6491. 1,
  6492. f
  6493. );
  6494. }
  6495. f = message.getTitle();
  6496. if (f.length > 0) {
  6497. writer.writeString(
  6498. 2,
  6499. f
  6500. );
  6501. }
  6502. f = message.getContent();
  6503. if (f.length > 0) {
  6504. writer.writeString(
  6505. 3,
  6506. f
  6507. );
  6508. }
  6509. f = message.getLevel();
  6510. if (f !== 0.0) {
  6511. writer.writeEnum(
  6512. 4,
  6513. f
  6514. );
  6515. }
  6516. f = message.getCreateat();
  6517. if (f !== 0) {
  6518. writer.writeInt64(
  6519. 5,
  6520. f
  6521. );
  6522. }
  6523. };
  6524. /**
  6525. * @enum {number}
  6526. */
  6527. proto.im.Message.Level = {
  6528. NULL: 0,
  6529. NORMAL: 1,
  6530. WARN: 2,
  6531. ERROR: 3
  6532. };
  6533. /**
  6534. * optional int64 id = 1;
  6535. * @return {number}
  6536. */
  6537. proto.im.Message.prototype.getId = function () {
  6538. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  6539. };
  6540. /**
  6541. * @param {number} value
  6542. * @return {!proto.im.Message} returns this
  6543. */
  6544. proto.im.Message.prototype.setId = function (value) {
  6545. return jspb.Message.setProto3IntField(this, 1, value);
  6546. };
  6547. /**
  6548. * optional string title = 2;
  6549. * @return {string}
  6550. */
  6551. proto.im.Message.prototype.getTitle = function () {
  6552. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  6553. };
  6554. /**
  6555. * @param {string} value
  6556. * @return {!proto.im.Message} returns this
  6557. */
  6558. proto.im.Message.prototype.setTitle = function (value) {
  6559. return jspb.Message.setProto3StringField(this, 2, value);
  6560. };
  6561. /**
  6562. * optional string content = 3;
  6563. * @return {string}
  6564. */
  6565. proto.im.Message.prototype.getContent = function () {
  6566. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  6567. };
  6568. /**
  6569. * @param {string} value
  6570. * @return {!proto.im.Message} returns this
  6571. */
  6572. proto.im.Message.prototype.setContent = function (value) {
  6573. return jspb.Message.setProto3StringField(this, 3, value);
  6574. };
  6575. /**
  6576. * optional Level level = 4;
  6577. * @return {!proto.im.Message.Level}
  6578. */
  6579. proto.im.Message.prototype.getLevel = function () {
  6580. return /** @type {!proto.im.Message.Level} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  6581. };
  6582. /**
  6583. * @param {!proto.im.Message.Level} value
  6584. * @return {!proto.im.Message} returns this
  6585. */
  6586. proto.im.Message.prototype.setLevel = function (value) {
  6587. return jspb.Message.setProto3EnumField(this, 4, value);
  6588. };
  6589. /**
  6590. * optional int64 createAt = 5;
  6591. * @return {number}
  6592. */
  6593. proto.im.Message.prototype.getCreateat = function () {
  6594. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  6595. };
  6596. /**
  6597. * @param {number} value
  6598. * @return {!proto.im.Message} returns this
  6599. */
  6600. proto.im.Message.prototype.setCreateat = function (value) {
  6601. return jspb.Message.setProto3IntField(this, 5, value);
  6602. };
  6603. /**
  6604. * @enum {number}
  6605. */
  6606. proto.im.ErrorCode = {
  6607. OK: 0,
  6608. PARAM: 4001,
  6609. EXIST: 4002,
  6610. TOKEN: 4003
  6611. };
  6612. /**
  6613. * @enum {number}
  6614. */
  6615. proto.im.Status = {
  6616. NULL: 0,
  6617. BAN: 1,
  6618. ON: 2,
  6619. DELETE: 9
  6620. };
  6621. goog.object.extend(exports, proto.im);