Room.pb.go 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Room.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import io "io"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  17. type RoomGetInfoByIdReq struct {
  18. Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
  19. Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
  20. }
  21. func (m *RoomGetInfoByIdReq) Reset() { *m = RoomGetInfoByIdReq{} }
  22. func (m *RoomGetInfoByIdReq) String() string { return proto.CompactTextString(m) }
  23. func (*RoomGetInfoByIdReq) ProtoMessage() {}
  24. func (*RoomGetInfoByIdReq) Descriptor() ([]byte, []int) {
  25. return fileDescriptor_Room_ebfa725c6fe265e6, []int{0}
  26. }
  27. func (m *RoomGetInfoByIdReq) XXX_Unmarshal(b []byte) error {
  28. return m.Unmarshal(b)
  29. }
  30. func (m *RoomGetInfoByIdReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  31. if deterministic {
  32. return xxx_messageInfo_RoomGetInfoByIdReq.Marshal(b, m, deterministic)
  33. } else {
  34. b = b[:cap(b)]
  35. n, err := m.MarshalTo(b)
  36. if err != nil {
  37. return nil, err
  38. }
  39. return b[:n], nil
  40. }
  41. }
  42. func (dst *RoomGetInfoByIdReq) XXX_Merge(src proto.Message) {
  43. xxx_messageInfo_RoomGetInfoByIdReq.Merge(dst, src)
  44. }
  45. func (m *RoomGetInfoByIdReq) XXX_Size() int {
  46. return m.Size()
  47. }
  48. func (m *RoomGetInfoByIdReq) XXX_DiscardUnknown() {
  49. xxx_messageInfo_RoomGetInfoByIdReq.DiscardUnknown(m)
  50. }
  51. var xxx_messageInfo_RoomGetInfoByIdReq proto.InternalMessageInfo
  52. func (m *RoomGetInfoByIdReq) GetIds() []int64 {
  53. if m != nil {
  54. return m.Ids
  55. }
  56. return nil
  57. }
  58. func (m *RoomGetInfoByIdReq) GetFields() []string {
  59. if m != nil {
  60. return m.Fields
  61. }
  62. return nil
  63. }
  64. type RoomGetInfoByIdResp struct {
  65. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  66. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  67. Data map[string]*RoomGetInfoByIdResp_RoomInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  68. }
  69. func (m *RoomGetInfoByIdResp) Reset() { *m = RoomGetInfoByIdResp{} }
  70. func (m *RoomGetInfoByIdResp) String() string { return proto.CompactTextString(m) }
  71. func (*RoomGetInfoByIdResp) ProtoMessage() {}
  72. func (*RoomGetInfoByIdResp) Descriptor() ([]byte, []int) {
  73. return fileDescriptor_Room_ebfa725c6fe265e6, []int{1}
  74. }
  75. func (m *RoomGetInfoByIdResp) XXX_Unmarshal(b []byte) error {
  76. return m.Unmarshal(b)
  77. }
  78. func (m *RoomGetInfoByIdResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  79. if deterministic {
  80. return xxx_messageInfo_RoomGetInfoByIdResp.Marshal(b, m, deterministic)
  81. } else {
  82. b = b[:cap(b)]
  83. n, err := m.MarshalTo(b)
  84. if err != nil {
  85. return nil, err
  86. }
  87. return b[:n], nil
  88. }
  89. }
  90. func (dst *RoomGetInfoByIdResp) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_RoomGetInfoByIdResp.Merge(dst, src)
  92. }
  93. func (m *RoomGetInfoByIdResp) XXX_Size() int {
  94. return m.Size()
  95. }
  96. func (m *RoomGetInfoByIdResp) XXX_DiscardUnknown() {
  97. xxx_messageInfo_RoomGetInfoByIdResp.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_RoomGetInfoByIdResp proto.InternalMessageInfo
  100. func (m *RoomGetInfoByIdResp) GetCode() int64 {
  101. if m != nil {
  102. return m.Code
  103. }
  104. return 0
  105. }
  106. func (m *RoomGetInfoByIdResp) GetMsg() string {
  107. if m != nil {
  108. return m.Msg
  109. }
  110. return ""
  111. }
  112. func (m *RoomGetInfoByIdResp) GetData() map[string]*RoomGetInfoByIdResp_RoomInfo {
  113. if m != nil {
  114. return m.Data
  115. }
  116. return nil
  117. }
  118. type RoomGetInfoByIdResp_RoomInfo struct {
  119. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty"`
  120. Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname,omitempty"`
  121. Cover string `protobuf:"bytes,3,opt,name=cover,proto3" json:"cover,omitempty"`
  122. Uid int64 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`
  123. LiveTime string `protobuf:"bytes,5,opt,name=live_time,json=liveTime,proto3" json:"live_time,omitempty"`
  124. RoundStatus int64 `protobuf:"varint,6,opt,name=round_status,json=roundStatus,proto3" json:"round_status,omitempty"`
  125. OnFlag int64 `protobuf:"varint,7,opt,name=on_flag,json=onFlag,proto3" json:"on_flag,omitempty"`
  126. Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
  127. LockStatus string `protobuf:"bytes,9,opt,name=lock_status,json=lockStatus,proto3" json:"lock_status,omitempty"`
  128. HiddenStatus string `protobuf:"bytes,10,opt,name=hidden_status,json=hiddenStatus,proto3" json:"hidden_status,omitempty"`
  129. UserCover string `protobuf:"bytes,11,opt,name=user_cover,json=userCover,proto3" json:"user_cover,omitempty"`
  130. ShortId int64 `protobuf:"varint,12,opt,name=short_id,json=shortId,proto3" json:"short_id,omitempty"`
  131. Online int64 `protobuf:"varint,13,opt,name=online,proto3" json:"online,omitempty"`
  132. Area int64 `protobuf:"varint,14,opt,name=area,proto3" json:"area,omitempty"`
  133. AreaV2Id int64 `protobuf:"varint,15,opt,name=area_v2_id,json=areaV2Id,proto3" json:"area_v2_id,omitempty"`
  134. AreaV2ParentId int64 `protobuf:"varint,16,opt,name=area_v2_parent_id,json=areaV2ParentId,proto3" json:"area_v2_parent_id,omitempty"`
  135. AreaV2Name string `protobuf:"bytes,17,opt,name=area_v2_name,json=areaV2Name,proto3" json:"area_v2_name,omitempty"`
  136. AreaV2ParentName string `protobuf:"bytes,18,opt,name=area_v2_parent_name,json=areaV2ParentName,proto3" json:"area_v2_parent_name,omitempty"`
  137. Attentions int64 `protobuf:"varint,19,opt,name=attentions,proto3" json:"attentions,omitempty"`
  138. }
  139. func (m *RoomGetInfoByIdResp_RoomInfo) Reset() { *m = RoomGetInfoByIdResp_RoomInfo{} }
  140. func (m *RoomGetInfoByIdResp_RoomInfo) String() string { return proto.CompactTextString(m) }
  141. func (*RoomGetInfoByIdResp_RoomInfo) ProtoMessage() {}
  142. func (*RoomGetInfoByIdResp_RoomInfo) Descriptor() ([]byte, []int) {
  143. return fileDescriptor_Room_ebfa725c6fe265e6, []int{1, 1}
  144. }
  145. func (m *RoomGetInfoByIdResp_RoomInfo) XXX_Unmarshal(b []byte) error {
  146. return m.Unmarshal(b)
  147. }
  148. func (m *RoomGetInfoByIdResp_RoomInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  149. if deterministic {
  150. return xxx_messageInfo_RoomGetInfoByIdResp_RoomInfo.Marshal(b, m, deterministic)
  151. } else {
  152. b = b[:cap(b)]
  153. n, err := m.MarshalTo(b)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return b[:n], nil
  158. }
  159. }
  160. func (dst *RoomGetInfoByIdResp_RoomInfo) XXX_Merge(src proto.Message) {
  161. xxx_messageInfo_RoomGetInfoByIdResp_RoomInfo.Merge(dst, src)
  162. }
  163. func (m *RoomGetInfoByIdResp_RoomInfo) XXX_Size() int {
  164. return m.Size()
  165. }
  166. func (m *RoomGetInfoByIdResp_RoomInfo) XXX_DiscardUnknown() {
  167. xxx_messageInfo_RoomGetInfoByIdResp_RoomInfo.DiscardUnknown(m)
  168. }
  169. var xxx_messageInfo_RoomGetInfoByIdResp_RoomInfo proto.InternalMessageInfo
  170. func (m *RoomGetInfoByIdResp_RoomInfo) GetRoomid() int64 {
  171. if m != nil {
  172. return m.Roomid
  173. }
  174. return 0
  175. }
  176. func (m *RoomGetInfoByIdResp_RoomInfo) GetUname() string {
  177. if m != nil {
  178. return m.Uname
  179. }
  180. return ""
  181. }
  182. func (m *RoomGetInfoByIdResp_RoomInfo) GetCover() string {
  183. if m != nil {
  184. return m.Cover
  185. }
  186. return ""
  187. }
  188. func (m *RoomGetInfoByIdResp_RoomInfo) GetUid() int64 {
  189. if m != nil {
  190. return m.Uid
  191. }
  192. return 0
  193. }
  194. func (m *RoomGetInfoByIdResp_RoomInfo) GetLiveTime() string {
  195. if m != nil {
  196. return m.LiveTime
  197. }
  198. return ""
  199. }
  200. func (m *RoomGetInfoByIdResp_RoomInfo) GetRoundStatus() int64 {
  201. if m != nil {
  202. return m.RoundStatus
  203. }
  204. return 0
  205. }
  206. func (m *RoomGetInfoByIdResp_RoomInfo) GetOnFlag() int64 {
  207. if m != nil {
  208. return m.OnFlag
  209. }
  210. return 0
  211. }
  212. func (m *RoomGetInfoByIdResp_RoomInfo) GetTitle() string {
  213. if m != nil {
  214. return m.Title
  215. }
  216. return ""
  217. }
  218. func (m *RoomGetInfoByIdResp_RoomInfo) GetLockStatus() string {
  219. if m != nil {
  220. return m.LockStatus
  221. }
  222. return ""
  223. }
  224. func (m *RoomGetInfoByIdResp_RoomInfo) GetHiddenStatus() string {
  225. if m != nil {
  226. return m.HiddenStatus
  227. }
  228. return ""
  229. }
  230. func (m *RoomGetInfoByIdResp_RoomInfo) GetUserCover() string {
  231. if m != nil {
  232. return m.UserCover
  233. }
  234. return ""
  235. }
  236. func (m *RoomGetInfoByIdResp_RoomInfo) GetShortId() int64 {
  237. if m != nil {
  238. return m.ShortId
  239. }
  240. return 0
  241. }
  242. func (m *RoomGetInfoByIdResp_RoomInfo) GetOnline() int64 {
  243. if m != nil {
  244. return m.Online
  245. }
  246. return 0
  247. }
  248. func (m *RoomGetInfoByIdResp_RoomInfo) GetArea() int64 {
  249. if m != nil {
  250. return m.Area
  251. }
  252. return 0
  253. }
  254. func (m *RoomGetInfoByIdResp_RoomInfo) GetAreaV2Id() int64 {
  255. if m != nil {
  256. return m.AreaV2Id
  257. }
  258. return 0
  259. }
  260. func (m *RoomGetInfoByIdResp_RoomInfo) GetAreaV2ParentId() int64 {
  261. if m != nil {
  262. return m.AreaV2ParentId
  263. }
  264. return 0
  265. }
  266. func (m *RoomGetInfoByIdResp_RoomInfo) GetAreaV2Name() string {
  267. if m != nil {
  268. return m.AreaV2Name
  269. }
  270. return ""
  271. }
  272. func (m *RoomGetInfoByIdResp_RoomInfo) GetAreaV2ParentName() string {
  273. if m != nil {
  274. return m.AreaV2ParentName
  275. }
  276. return ""
  277. }
  278. func (m *RoomGetInfoByIdResp_RoomInfo) GetAttentions() int64 {
  279. if m != nil {
  280. return m.Attentions
  281. }
  282. return 0
  283. }
  284. type RoomGetInfoReq struct {
  285. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  286. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
  287. }
  288. func (m *RoomGetInfoReq) Reset() { *m = RoomGetInfoReq{} }
  289. func (m *RoomGetInfoReq) String() string { return proto.CompactTextString(m) }
  290. func (*RoomGetInfoReq) ProtoMessage() {}
  291. func (*RoomGetInfoReq) Descriptor() ([]byte, []int) {
  292. return fileDescriptor_Room_ebfa725c6fe265e6, []int{2}
  293. }
  294. func (m *RoomGetInfoReq) XXX_Unmarshal(b []byte) error {
  295. return m.Unmarshal(b)
  296. }
  297. func (m *RoomGetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  298. if deterministic {
  299. return xxx_messageInfo_RoomGetInfoReq.Marshal(b, m, deterministic)
  300. } else {
  301. b = b[:cap(b)]
  302. n, err := m.MarshalTo(b)
  303. if err != nil {
  304. return nil, err
  305. }
  306. return b[:n], nil
  307. }
  308. }
  309. func (dst *RoomGetInfoReq) XXX_Merge(src proto.Message) {
  310. xxx_messageInfo_RoomGetInfoReq.Merge(dst, src)
  311. }
  312. func (m *RoomGetInfoReq) XXX_Size() int {
  313. return m.Size()
  314. }
  315. func (m *RoomGetInfoReq) XXX_DiscardUnknown() {
  316. xxx_messageInfo_RoomGetInfoReq.DiscardUnknown(m)
  317. }
  318. var xxx_messageInfo_RoomGetInfoReq proto.InternalMessageInfo
  319. func (m *RoomGetInfoReq) GetId() int64 {
  320. if m != nil {
  321. return m.Id
  322. }
  323. return 0
  324. }
  325. func (m *RoomGetInfoReq) GetFrom() string {
  326. if m != nil {
  327. return m.From
  328. }
  329. return ""
  330. }
  331. type RoomGetInfoResp struct {
  332. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  333. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  334. Data *RoomGetInfoResp_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  335. }
  336. func (m *RoomGetInfoResp) Reset() { *m = RoomGetInfoResp{} }
  337. func (m *RoomGetInfoResp) String() string { return proto.CompactTextString(m) }
  338. func (*RoomGetInfoResp) ProtoMessage() {}
  339. func (*RoomGetInfoResp) Descriptor() ([]byte, []int) {
  340. return fileDescriptor_Room_ebfa725c6fe265e6, []int{3}
  341. }
  342. func (m *RoomGetInfoResp) XXX_Unmarshal(b []byte) error {
  343. return m.Unmarshal(b)
  344. }
  345. func (m *RoomGetInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  346. if deterministic {
  347. return xxx_messageInfo_RoomGetInfoResp.Marshal(b, m, deterministic)
  348. } else {
  349. b = b[:cap(b)]
  350. n, err := m.MarshalTo(b)
  351. if err != nil {
  352. return nil, err
  353. }
  354. return b[:n], nil
  355. }
  356. }
  357. func (dst *RoomGetInfoResp) XXX_Merge(src proto.Message) {
  358. xxx_messageInfo_RoomGetInfoResp.Merge(dst, src)
  359. }
  360. func (m *RoomGetInfoResp) XXX_Size() int {
  361. return m.Size()
  362. }
  363. func (m *RoomGetInfoResp) XXX_DiscardUnknown() {
  364. xxx_messageInfo_RoomGetInfoResp.DiscardUnknown(m)
  365. }
  366. var xxx_messageInfo_RoomGetInfoResp proto.InternalMessageInfo
  367. func (m *RoomGetInfoResp) GetCode() int64 {
  368. if m != nil {
  369. return m.Code
  370. }
  371. return 0
  372. }
  373. func (m *RoomGetInfoResp) GetMsg() string {
  374. if m != nil {
  375. return m.Msg
  376. }
  377. return ""
  378. }
  379. func (m *RoomGetInfoResp) GetData() *RoomGetInfoResp_Data {
  380. if m != nil {
  381. return m.Data
  382. }
  383. return nil
  384. }
  385. type RoomGetInfoResp_PendantWithDesc struct {
  386. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  387. Position int64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
  388. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  389. Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"`
  390. }
  391. func (m *RoomGetInfoResp_PendantWithDesc) Reset() { *m = RoomGetInfoResp_PendantWithDesc{} }
  392. func (m *RoomGetInfoResp_PendantWithDesc) String() string { return proto.CompactTextString(m) }
  393. func (*RoomGetInfoResp_PendantWithDesc) ProtoMessage() {}
  394. func (*RoomGetInfoResp_PendantWithDesc) Descriptor() ([]byte, []int) {
  395. return fileDescriptor_Room_ebfa725c6fe265e6, []int{3, 0}
  396. }
  397. func (m *RoomGetInfoResp_PendantWithDesc) XXX_Unmarshal(b []byte) error {
  398. return m.Unmarshal(b)
  399. }
  400. func (m *RoomGetInfoResp_PendantWithDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  401. if deterministic {
  402. return xxx_messageInfo_RoomGetInfoResp_PendantWithDesc.Marshal(b, m, deterministic)
  403. } else {
  404. b = b[:cap(b)]
  405. n, err := m.MarshalTo(b)
  406. if err != nil {
  407. return nil, err
  408. }
  409. return b[:n], nil
  410. }
  411. }
  412. func (dst *RoomGetInfoResp_PendantWithDesc) XXX_Merge(src proto.Message) {
  413. xxx_messageInfo_RoomGetInfoResp_PendantWithDesc.Merge(dst, src)
  414. }
  415. func (m *RoomGetInfoResp_PendantWithDesc) XXX_Size() int {
  416. return m.Size()
  417. }
  418. func (m *RoomGetInfoResp_PendantWithDesc) XXX_DiscardUnknown() {
  419. xxx_messageInfo_RoomGetInfoResp_PendantWithDesc.DiscardUnknown(m)
  420. }
  421. var xxx_messageInfo_RoomGetInfoResp_PendantWithDesc proto.InternalMessageInfo
  422. func (m *RoomGetInfoResp_PendantWithDesc) GetName() string {
  423. if m != nil {
  424. return m.Name
  425. }
  426. return ""
  427. }
  428. func (m *RoomGetInfoResp_PendantWithDesc) GetPosition() int64 {
  429. if m != nil {
  430. return m.Position
  431. }
  432. return 0
  433. }
  434. func (m *RoomGetInfoResp_PendantWithDesc) GetValue() string {
  435. if m != nil {
  436. return m.Value
  437. }
  438. return ""
  439. }
  440. func (m *RoomGetInfoResp_PendantWithDesc) GetDesc() string {
  441. if m != nil {
  442. return m.Desc
  443. }
  444. return ""
  445. }
  446. type RoomGetInfoResp_Pendant struct {
  447. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  448. Position int64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
  449. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  450. }
  451. func (m *RoomGetInfoResp_Pendant) Reset() { *m = RoomGetInfoResp_Pendant{} }
  452. func (m *RoomGetInfoResp_Pendant) String() string { return proto.CompactTextString(m) }
  453. func (*RoomGetInfoResp_Pendant) ProtoMessage() {}
  454. func (*RoomGetInfoResp_Pendant) Descriptor() ([]byte, []int) {
  455. return fileDescriptor_Room_ebfa725c6fe265e6, []int{3, 1}
  456. }
  457. func (m *RoomGetInfoResp_Pendant) XXX_Unmarshal(b []byte) error {
  458. return m.Unmarshal(b)
  459. }
  460. func (m *RoomGetInfoResp_Pendant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  461. if deterministic {
  462. return xxx_messageInfo_RoomGetInfoResp_Pendant.Marshal(b, m, deterministic)
  463. } else {
  464. b = b[:cap(b)]
  465. n, err := m.MarshalTo(b)
  466. if err != nil {
  467. return nil, err
  468. }
  469. return b[:n], nil
  470. }
  471. }
  472. func (dst *RoomGetInfoResp_Pendant) XXX_Merge(src proto.Message) {
  473. xxx_messageInfo_RoomGetInfoResp_Pendant.Merge(dst, src)
  474. }
  475. func (m *RoomGetInfoResp_Pendant) XXX_Size() int {
  476. return m.Size()
  477. }
  478. func (m *RoomGetInfoResp_Pendant) XXX_DiscardUnknown() {
  479. xxx_messageInfo_RoomGetInfoResp_Pendant.DiscardUnknown(m)
  480. }
  481. var xxx_messageInfo_RoomGetInfoResp_Pendant proto.InternalMessageInfo
  482. func (m *RoomGetInfoResp_Pendant) GetName() string {
  483. if m != nil {
  484. return m.Name
  485. }
  486. return ""
  487. }
  488. func (m *RoomGetInfoResp_Pendant) GetPosition() int64 {
  489. if m != nil {
  490. return m.Position
  491. }
  492. return 0
  493. }
  494. func (m *RoomGetInfoResp_Pendant) GetValue() string {
  495. if m != nil {
  496. return m.Value
  497. }
  498. return ""
  499. }
  500. type RoomGetInfoResp_Pendants struct {
  501. Frame *RoomGetInfoResp_PendantWithDesc `protobuf:"bytes,1,opt,name=frame,proto3" json:"frame,omitempty"`
  502. Badge *RoomGetInfoResp_PendantWithDesc `protobuf:"bytes,2,opt,name=badge,proto3" json:"badge,omitempty"`
  503. MobileFrame *RoomGetInfoResp_Pendant `protobuf:"bytes,3,opt,name=mobile_frame,json=mobileFrame,proto3" json:"mobile_frame,omitempty"`
  504. MobileBadge *RoomGetInfoResp_Pendant `protobuf:"bytes,4,opt,name=mobile_badge,json=mobileBadge,proto3" json:"mobile_badge,omitempty"`
  505. }
  506. func (m *RoomGetInfoResp_Pendants) Reset() { *m = RoomGetInfoResp_Pendants{} }
  507. func (m *RoomGetInfoResp_Pendants) String() string { return proto.CompactTextString(m) }
  508. func (*RoomGetInfoResp_Pendants) ProtoMessage() {}
  509. func (*RoomGetInfoResp_Pendants) Descriptor() ([]byte, []int) {
  510. return fileDescriptor_Room_ebfa725c6fe265e6, []int{3, 2}
  511. }
  512. func (m *RoomGetInfoResp_Pendants) XXX_Unmarshal(b []byte) error {
  513. return m.Unmarshal(b)
  514. }
  515. func (m *RoomGetInfoResp_Pendants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  516. if deterministic {
  517. return xxx_messageInfo_RoomGetInfoResp_Pendants.Marshal(b, m, deterministic)
  518. } else {
  519. b = b[:cap(b)]
  520. n, err := m.MarshalTo(b)
  521. if err != nil {
  522. return nil, err
  523. }
  524. return b[:n], nil
  525. }
  526. }
  527. func (dst *RoomGetInfoResp_Pendants) XXX_Merge(src proto.Message) {
  528. xxx_messageInfo_RoomGetInfoResp_Pendants.Merge(dst, src)
  529. }
  530. func (m *RoomGetInfoResp_Pendants) XXX_Size() int {
  531. return m.Size()
  532. }
  533. func (m *RoomGetInfoResp_Pendants) XXX_DiscardUnknown() {
  534. xxx_messageInfo_RoomGetInfoResp_Pendants.DiscardUnknown(m)
  535. }
  536. var xxx_messageInfo_RoomGetInfoResp_Pendants proto.InternalMessageInfo
  537. func (m *RoomGetInfoResp_Pendants) GetFrame() *RoomGetInfoResp_PendantWithDesc {
  538. if m != nil {
  539. return m.Frame
  540. }
  541. return nil
  542. }
  543. func (m *RoomGetInfoResp_Pendants) GetBadge() *RoomGetInfoResp_PendantWithDesc {
  544. if m != nil {
  545. return m.Badge
  546. }
  547. return nil
  548. }
  549. func (m *RoomGetInfoResp_Pendants) GetMobileFrame() *RoomGetInfoResp_Pendant {
  550. if m != nil {
  551. return m.MobileFrame
  552. }
  553. return nil
  554. }
  555. func (m *RoomGetInfoResp_Pendants) GetMobileBadge() *RoomGetInfoResp_Pendant {
  556. if m != nil {
  557. return m.MobileBadge
  558. }
  559. return nil
  560. }
  561. type RoomGetInfoResp_Data struct {
  562. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
  563. RoomId int64 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
  564. ShortId int64 `protobuf:"varint,3,opt,name=short_id,json=shortId,proto3" json:"short_id,omitempty"`
  565. Keyframe string `protobuf:"bytes,4,opt,name=keyframe,proto3" json:"keyframe,omitempty"`
  566. Online int64 `protobuf:"varint,5,opt,name=online,proto3" json:"online,omitempty"`
  567. IsPortrait bool `protobuf:"varint,6,opt,name=is_portrait,json=isPortrait,proto3" json:"is_portrait,omitempty"`
  568. RoomSilentType string `protobuf:"bytes,7,opt,name=room_silent_type,json=roomSilentType,proto3" json:"room_silent_type,omitempty"`
  569. RoomSilentSecond int64 `protobuf:"varint,8,opt,name=room_silent_second,json=roomSilentSecond,proto3" json:"room_silent_second,omitempty"`
  570. RoomSilentLevel int64 `protobuf:"varint,9,opt,name=room_silent_level,json=roomSilentLevel,proto3" json:"room_silent_level,omitempty"`
  571. LiveStatus int64 `protobuf:"varint,10,opt,name=live_status,json=liveStatus,proto3" json:"live_status,omitempty"`
  572. AreaId int64 `protobuf:"varint,11,opt,name=area_id,json=areaId,proto3" json:"area_id,omitempty"`
  573. ParentAreaId int64 `protobuf:"varint,12,opt,name=parent_area_id,json=parentAreaId,proto3" json:"parent_area_id,omitempty"`
  574. AreaName string `protobuf:"bytes,13,opt,name=area_name,json=areaName,proto3" json:"area_name,omitempty"`
  575. ParentAreaName string `protobuf:"bytes,14,opt,name=parent_area_name,json=parentAreaName,proto3" json:"parent_area_name,omitempty"`
  576. OldAreaId int64 `protobuf:"varint,15,opt,name=old_area_id,json=oldAreaId,proto3" json:"old_area_id,omitempty"`
  577. Background string `protobuf:"bytes,16,opt,name=background,proto3" json:"background,omitempty"`
  578. Title string `protobuf:"bytes,17,opt,name=title,proto3" json:"title,omitempty"`
  579. IsStrictRoom bool `protobuf:"varint,18,opt,name=is_strict_room,json=isStrictRoom,proto3" json:"is_strict_room,omitempty"`
  580. UserCover string `protobuf:"bytes,19,opt,name=user_cover,json=userCover,proto3" json:"user_cover,omitempty"`
  581. LiveTime string `protobuf:"bytes,20,opt,name=live_time,json=liveTime,proto3" json:"live_time,omitempty"`
  582. Pendants string `protobuf:"bytes,21,opt,name=pendants,proto3" json:"pendants,omitempty"`
  583. AreaPendants string `protobuf:"bytes,22,opt,name=area_pendants,json=areaPendants,proto3" json:"area_pendants,omitempty"`
  584. Description string `protobuf:"bytes,23,opt,name=description,proto3" json:"description,omitempty"`
  585. Tags string `protobuf:"bytes,24,opt,name=tags,proto3" json:"tags,omitempty"`
  586. Verify string `protobuf:"bytes,25,opt,name=verify,proto3" json:"verify,omitempty"`
  587. HotWords []string `protobuf:"bytes,26,rep,name=hot_words,json=hotWords,proto3" json:"hot_words,omitempty"`
  588. AllowChangeAreaTime int64 `protobuf:"varint,27,opt,name=allow_change_area_time,json=allowChangeAreaTime,proto3" json:"allow_change_area_time,omitempty"`
  589. AllowUploadCoverTime int64 `protobuf:"varint,28,opt,name=allow_upload_cover_time,json=allowUploadCoverTime,proto3" json:"allow_upload_cover_time,omitempty"`
  590. NewPendants *RoomGetInfoResp_Pendants `protobuf:"bytes,29,opt,name=new_pendants,json=newPendants,proto3" json:"new_pendants,omitempty"`
  591. UpSession string `protobuf:"bytes,30,opt,name=up_session,json=upSession,proto3" json:"up_session,omitempty"`
  592. PkStatus int64 `protobuf:"varint,31,opt,name=pk_status,json=pkStatus,proto3" json:"pk_status,omitempty"`
  593. }
  594. func (m *RoomGetInfoResp_Data) Reset() { *m = RoomGetInfoResp_Data{} }
  595. func (m *RoomGetInfoResp_Data) String() string { return proto.CompactTextString(m) }
  596. func (*RoomGetInfoResp_Data) ProtoMessage() {}
  597. func (*RoomGetInfoResp_Data) Descriptor() ([]byte, []int) {
  598. return fileDescriptor_Room_ebfa725c6fe265e6, []int{3, 3}
  599. }
  600. func (m *RoomGetInfoResp_Data) XXX_Unmarshal(b []byte) error {
  601. return m.Unmarshal(b)
  602. }
  603. func (m *RoomGetInfoResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  604. if deterministic {
  605. return xxx_messageInfo_RoomGetInfoResp_Data.Marshal(b, m, deterministic)
  606. } else {
  607. b = b[:cap(b)]
  608. n, err := m.MarshalTo(b)
  609. if err != nil {
  610. return nil, err
  611. }
  612. return b[:n], nil
  613. }
  614. }
  615. func (dst *RoomGetInfoResp_Data) XXX_Merge(src proto.Message) {
  616. xxx_messageInfo_RoomGetInfoResp_Data.Merge(dst, src)
  617. }
  618. func (m *RoomGetInfoResp_Data) XXX_Size() int {
  619. return m.Size()
  620. }
  621. func (m *RoomGetInfoResp_Data) XXX_DiscardUnknown() {
  622. xxx_messageInfo_RoomGetInfoResp_Data.DiscardUnknown(m)
  623. }
  624. var xxx_messageInfo_RoomGetInfoResp_Data proto.InternalMessageInfo
  625. func (m *RoomGetInfoResp_Data) GetUid() int64 {
  626. if m != nil {
  627. return m.Uid
  628. }
  629. return 0
  630. }
  631. func (m *RoomGetInfoResp_Data) GetRoomId() int64 {
  632. if m != nil {
  633. return m.RoomId
  634. }
  635. return 0
  636. }
  637. func (m *RoomGetInfoResp_Data) GetShortId() int64 {
  638. if m != nil {
  639. return m.ShortId
  640. }
  641. return 0
  642. }
  643. func (m *RoomGetInfoResp_Data) GetKeyframe() string {
  644. if m != nil {
  645. return m.Keyframe
  646. }
  647. return ""
  648. }
  649. func (m *RoomGetInfoResp_Data) GetOnline() int64 {
  650. if m != nil {
  651. return m.Online
  652. }
  653. return 0
  654. }
  655. func (m *RoomGetInfoResp_Data) GetIsPortrait() bool {
  656. if m != nil {
  657. return m.IsPortrait
  658. }
  659. return false
  660. }
  661. func (m *RoomGetInfoResp_Data) GetRoomSilentType() string {
  662. if m != nil {
  663. return m.RoomSilentType
  664. }
  665. return ""
  666. }
  667. func (m *RoomGetInfoResp_Data) GetRoomSilentSecond() int64 {
  668. if m != nil {
  669. return m.RoomSilentSecond
  670. }
  671. return 0
  672. }
  673. func (m *RoomGetInfoResp_Data) GetRoomSilentLevel() int64 {
  674. if m != nil {
  675. return m.RoomSilentLevel
  676. }
  677. return 0
  678. }
  679. func (m *RoomGetInfoResp_Data) GetLiveStatus() int64 {
  680. if m != nil {
  681. return m.LiveStatus
  682. }
  683. return 0
  684. }
  685. func (m *RoomGetInfoResp_Data) GetAreaId() int64 {
  686. if m != nil {
  687. return m.AreaId
  688. }
  689. return 0
  690. }
  691. func (m *RoomGetInfoResp_Data) GetParentAreaId() int64 {
  692. if m != nil {
  693. return m.ParentAreaId
  694. }
  695. return 0
  696. }
  697. func (m *RoomGetInfoResp_Data) GetAreaName() string {
  698. if m != nil {
  699. return m.AreaName
  700. }
  701. return ""
  702. }
  703. func (m *RoomGetInfoResp_Data) GetParentAreaName() string {
  704. if m != nil {
  705. return m.ParentAreaName
  706. }
  707. return ""
  708. }
  709. func (m *RoomGetInfoResp_Data) GetOldAreaId() int64 {
  710. if m != nil {
  711. return m.OldAreaId
  712. }
  713. return 0
  714. }
  715. func (m *RoomGetInfoResp_Data) GetBackground() string {
  716. if m != nil {
  717. return m.Background
  718. }
  719. return ""
  720. }
  721. func (m *RoomGetInfoResp_Data) GetTitle() string {
  722. if m != nil {
  723. return m.Title
  724. }
  725. return ""
  726. }
  727. func (m *RoomGetInfoResp_Data) GetIsStrictRoom() bool {
  728. if m != nil {
  729. return m.IsStrictRoom
  730. }
  731. return false
  732. }
  733. func (m *RoomGetInfoResp_Data) GetUserCover() string {
  734. if m != nil {
  735. return m.UserCover
  736. }
  737. return ""
  738. }
  739. func (m *RoomGetInfoResp_Data) GetLiveTime() string {
  740. if m != nil {
  741. return m.LiveTime
  742. }
  743. return ""
  744. }
  745. func (m *RoomGetInfoResp_Data) GetPendants() string {
  746. if m != nil {
  747. return m.Pendants
  748. }
  749. return ""
  750. }
  751. func (m *RoomGetInfoResp_Data) GetAreaPendants() string {
  752. if m != nil {
  753. return m.AreaPendants
  754. }
  755. return ""
  756. }
  757. func (m *RoomGetInfoResp_Data) GetDescription() string {
  758. if m != nil {
  759. return m.Description
  760. }
  761. return ""
  762. }
  763. func (m *RoomGetInfoResp_Data) GetTags() string {
  764. if m != nil {
  765. return m.Tags
  766. }
  767. return ""
  768. }
  769. func (m *RoomGetInfoResp_Data) GetVerify() string {
  770. if m != nil {
  771. return m.Verify
  772. }
  773. return ""
  774. }
  775. func (m *RoomGetInfoResp_Data) GetHotWords() []string {
  776. if m != nil {
  777. return m.HotWords
  778. }
  779. return nil
  780. }
  781. func (m *RoomGetInfoResp_Data) GetAllowChangeAreaTime() int64 {
  782. if m != nil {
  783. return m.AllowChangeAreaTime
  784. }
  785. return 0
  786. }
  787. func (m *RoomGetInfoResp_Data) GetAllowUploadCoverTime() int64 {
  788. if m != nil {
  789. return m.AllowUploadCoverTime
  790. }
  791. return 0
  792. }
  793. func (m *RoomGetInfoResp_Data) GetNewPendants() *RoomGetInfoResp_Pendants {
  794. if m != nil {
  795. return m.NewPendants
  796. }
  797. return nil
  798. }
  799. func (m *RoomGetInfoResp_Data) GetUpSession() string {
  800. if m != nil {
  801. return m.UpSession
  802. }
  803. return ""
  804. }
  805. func (m *RoomGetInfoResp_Data) GetPkStatus() int64 {
  806. if m != nil {
  807. return m.PkStatus
  808. }
  809. return 0
  810. }
  811. func init() {
  812. proto.RegisterType((*RoomGetInfoByIdReq)(nil), "room.v1.RoomGetInfoByIdReq")
  813. proto.RegisterType((*RoomGetInfoByIdResp)(nil), "room.v1.RoomGetInfoByIdResp")
  814. proto.RegisterMapType((map[string]*RoomGetInfoByIdResp_RoomInfo)(nil), "room.v1.RoomGetInfoByIdResp.DataEntry")
  815. proto.RegisterType((*RoomGetInfoByIdResp_RoomInfo)(nil), "room.v1.RoomGetInfoByIdResp.RoomInfo")
  816. proto.RegisterType((*RoomGetInfoReq)(nil), "room.v1.RoomGetInfoReq")
  817. proto.RegisterType((*RoomGetInfoResp)(nil), "room.v1.RoomGetInfoResp")
  818. proto.RegisterType((*RoomGetInfoResp_PendantWithDesc)(nil), "room.v1.RoomGetInfoResp.PendantWithDesc")
  819. proto.RegisterType((*RoomGetInfoResp_Pendant)(nil), "room.v1.RoomGetInfoResp.Pendant")
  820. proto.RegisterType((*RoomGetInfoResp_Pendants)(nil), "room.v1.RoomGetInfoResp.Pendants")
  821. proto.RegisterType((*RoomGetInfoResp_Data)(nil), "room.v1.RoomGetInfoResp.Data")
  822. }
  823. func (m *RoomGetInfoByIdReq) Marshal() (dAtA []byte, err error) {
  824. size := m.Size()
  825. dAtA = make([]byte, size)
  826. n, err := m.MarshalTo(dAtA)
  827. if err != nil {
  828. return nil, err
  829. }
  830. return dAtA[:n], nil
  831. }
  832. func (m *RoomGetInfoByIdReq) MarshalTo(dAtA []byte) (int, error) {
  833. var i int
  834. _ = i
  835. var l int
  836. _ = l
  837. if len(m.Ids) > 0 {
  838. dAtA2 := make([]byte, len(m.Ids)*10)
  839. var j1 int
  840. for _, num1 := range m.Ids {
  841. num := uint64(num1)
  842. for num >= 1<<7 {
  843. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  844. num >>= 7
  845. j1++
  846. }
  847. dAtA2[j1] = uint8(num)
  848. j1++
  849. }
  850. dAtA[i] = 0xa
  851. i++
  852. i = encodeVarintRoom(dAtA, i, uint64(j1))
  853. i += copy(dAtA[i:], dAtA2[:j1])
  854. }
  855. if len(m.Fields) > 0 {
  856. for _, s := range m.Fields {
  857. dAtA[i] = 0x12
  858. i++
  859. l = len(s)
  860. for l >= 1<<7 {
  861. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  862. l >>= 7
  863. i++
  864. }
  865. dAtA[i] = uint8(l)
  866. i++
  867. i += copy(dAtA[i:], s)
  868. }
  869. }
  870. return i, nil
  871. }
  872. func (m *RoomGetInfoByIdResp) Marshal() (dAtA []byte, err error) {
  873. size := m.Size()
  874. dAtA = make([]byte, size)
  875. n, err := m.MarshalTo(dAtA)
  876. if err != nil {
  877. return nil, err
  878. }
  879. return dAtA[:n], nil
  880. }
  881. func (m *RoomGetInfoByIdResp) MarshalTo(dAtA []byte) (int, error) {
  882. var i int
  883. _ = i
  884. var l int
  885. _ = l
  886. if m.Code != 0 {
  887. dAtA[i] = 0x8
  888. i++
  889. i = encodeVarintRoom(dAtA, i, uint64(m.Code))
  890. }
  891. if len(m.Msg) > 0 {
  892. dAtA[i] = 0x12
  893. i++
  894. i = encodeVarintRoom(dAtA, i, uint64(len(m.Msg)))
  895. i += copy(dAtA[i:], m.Msg)
  896. }
  897. if len(m.Data) > 0 {
  898. for k, _ := range m.Data {
  899. dAtA[i] = 0x1a
  900. i++
  901. v := m.Data[k]
  902. msgSize := 0
  903. if v != nil {
  904. msgSize = v.Size()
  905. msgSize += 1 + sovRoom(uint64(msgSize))
  906. }
  907. mapSize := 1 + len(k) + sovRoom(uint64(len(k))) + msgSize
  908. i = encodeVarintRoom(dAtA, i, uint64(mapSize))
  909. dAtA[i] = 0xa
  910. i++
  911. i = encodeVarintRoom(dAtA, i, uint64(len(k)))
  912. i += copy(dAtA[i:], k)
  913. if v != nil {
  914. dAtA[i] = 0x12
  915. i++
  916. i = encodeVarintRoom(dAtA, i, uint64(v.Size()))
  917. n3, err := v.MarshalTo(dAtA[i:])
  918. if err != nil {
  919. return 0, err
  920. }
  921. i += n3
  922. }
  923. }
  924. }
  925. return i, nil
  926. }
  927. func (m *RoomGetInfoByIdResp_RoomInfo) Marshal() (dAtA []byte, err error) {
  928. size := m.Size()
  929. dAtA = make([]byte, size)
  930. n, err := m.MarshalTo(dAtA)
  931. if err != nil {
  932. return nil, err
  933. }
  934. return dAtA[:n], nil
  935. }
  936. func (m *RoomGetInfoByIdResp_RoomInfo) MarshalTo(dAtA []byte) (int, error) {
  937. var i int
  938. _ = i
  939. var l int
  940. _ = l
  941. if m.Roomid != 0 {
  942. dAtA[i] = 0x8
  943. i++
  944. i = encodeVarintRoom(dAtA, i, uint64(m.Roomid))
  945. }
  946. if len(m.Uname) > 0 {
  947. dAtA[i] = 0x12
  948. i++
  949. i = encodeVarintRoom(dAtA, i, uint64(len(m.Uname)))
  950. i += copy(dAtA[i:], m.Uname)
  951. }
  952. if len(m.Cover) > 0 {
  953. dAtA[i] = 0x1a
  954. i++
  955. i = encodeVarintRoom(dAtA, i, uint64(len(m.Cover)))
  956. i += copy(dAtA[i:], m.Cover)
  957. }
  958. if m.Uid != 0 {
  959. dAtA[i] = 0x20
  960. i++
  961. i = encodeVarintRoom(dAtA, i, uint64(m.Uid))
  962. }
  963. if len(m.LiveTime) > 0 {
  964. dAtA[i] = 0x2a
  965. i++
  966. i = encodeVarintRoom(dAtA, i, uint64(len(m.LiveTime)))
  967. i += copy(dAtA[i:], m.LiveTime)
  968. }
  969. if m.RoundStatus != 0 {
  970. dAtA[i] = 0x30
  971. i++
  972. i = encodeVarintRoom(dAtA, i, uint64(m.RoundStatus))
  973. }
  974. if m.OnFlag != 0 {
  975. dAtA[i] = 0x38
  976. i++
  977. i = encodeVarintRoom(dAtA, i, uint64(m.OnFlag))
  978. }
  979. if len(m.Title) > 0 {
  980. dAtA[i] = 0x42
  981. i++
  982. i = encodeVarintRoom(dAtA, i, uint64(len(m.Title)))
  983. i += copy(dAtA[i:], m.Title)
  984. }
  985. if len(m.LockStatus) > 0 {
  986. dAtA[i] = 0x4a
  987. i++
  988. i = encodeVarintRoom(dAtA, i, uint64(len(m.LockStatus)))
  989. i += copy(dAtA[i:], m.LockStatus)
  990. }
  991. if len(m.HiddenStatus) > 0 {
  992. dAtA[i] = 0x52
  993. i++
  994. i = encodeVarintRoom(dAtA, i, uint64(len(m.HiddenStatus)))
  995. i += copy(dAtA[i:], m.HiddenStatus)
  996. }
  997. if len(m.UserCover) > 0 {
  998. dAtA[i] = 0x5a
  999. i++
  1000. i = encodeVarintRoom(dAtA, i, uint64(len(m.UserCover)))
  1001. i += copy(dAtA[i:], m.UserCover)
  1002. }
  1003. if m.ShortId != 0 {
  1004. dAtA[i] = 0x60
  1005. i++
  1006. i = encodeVarintRoom(dAtA, i, uint64(m.ShortId))
  1007. }
  1008. if m.Online != 0 {
  1009. dAtA[i] = 0x68
  1010. i++
  1011. i = encodeVarintRoom(dAtA, i, uint64(m.Online))
  1012. }
  1013. if m.Area != 0 {
  1014. dAtA[i] = 0x70
  1015. i++
  1016. i = encodeVarintRoom(dAtA, i, uint64(m.Area))
  1017. }
  1018. if m.AreaV2Id != 0 {
  1019. dAtA[i] = 0x78
  1020. i++
  1021. i = encodeVarintRoom(dAtA, i, uint64(m.AreaV2Id))
  1022. }
  1023. if m.AreaV2ParentId != 0 {
  1024. dAtA[i] = 0x80
  1025. i++
  1026. dAtA[i] = 0x1
  1027. i++
  1028. i = encodeVarintRoom(dAtA, i, uint64(m.AreaV2ParentId))
  1029. }
  1030. if len(m.AreaV2Name) > 0 {
  1031. dAtA[i] = 0x8a
  1032. i++
  1033. dAtA[i] = 0x1
  1034. i++
  1035. i = encodeVarintRoom(dAtA, i, uint64(len(m.AreaV2Name)))
  1036. i += copy(dAtA[i:], m.AreaV2Name)
  1037. }
  1038. if len(m.AreaV2ParentName) > 0 {
  1039. dAtA[i] = 0x92
  1040. i++
  1041. dAtA[i] = 0x1
  1042. i++
  1043. i = encodeVarintRoom(dAtA, i, uint64(len(m.AreaV2ParentName)))
  1044. i += copy(dAtA[i:], m.AreaV2ParentName)
  1045. }
  1046. if m.Attentions != 0 {
  1047. dAtA[i] = 0x98
  1048. i++
  1049. dAtA[i] = 0x1
  1050. i++
  1051. i = encodeVarintRoom(dAtA, i, uint64(m.Attentions))
  1052. }
  1053. return i, nil
  1054. }
  1055. func (m *RoomGetInfoReq) Marshal() (dAtA []byte, err error) {
  1056. size := m.Size()
  1057. dAtA = make([]byte, size)
  1058. n, err := m.MarshalTo(dAtA)
  1059. if err != nil {
  1060. return nil, err
  1061. }
  1062. return dAtA[:n], nil
  1063. }
  1064. func (m *RoomGetInfoReq) MarshalTo(dAtA []byte) (int, error) {
  1065. var i int
  1066. _ = i
  1067. var l int
  1068. _ = l
  1069. if m.Id != 0 {
  1070. dAtA[i] = 0x8
  1071. i++
  1072. i = encodeVarintRoom(dAtA, i, uint64(m.Id))
  1073. }
  1074. if len(m.From) > 0 {
  1075. dAtA[i] = 0x12
  1076. i++
  1077. i = encodeVarintRoom(dAtA, i, uint64(len(m.From)))
  1078. i += copy(dAtA[i:], m.From)
  1079. }
  1080. return i, nil
  1081. }
  1082. func (m *RoomGetInfoResp) Marshal() (dAtA []byte, err error) {
  1083. size := m.Size()
  1084. dAtA = make([]byte, size)
  1085. n, err := m.MarshalTo(dAtA)
  1086. if err != nil {
  1087. return nil, err
  1088. }
  1089. return dAtA[:n], nil
  1090. }
  1091. func (m *RoomGetInfoResp) MarshalTo(dAtA []byte) (int, error) {
  1092. var i int
  1093. _ = i
  1094. var l int
  1095. _ = l
  1096. if m.Code != 0 {
  1097. dAtA[i] = 0x8
  1098. i++
  1099. i = encodeVarintRoom(dAtA, i, uint64(m.Code))
  1100. }
  1101. if len(m.Msg) > 0 {
  1102. dAtA[i] = 0x12
  1103. i++
  1104. i = encodeVarintRoom(dAtA, i, uint64(len(m.Msg)))
  1105. i += copy(dAtA[i:], m.Msg)
  1106. }
  1107. if m.Data != nil {
  1108. dAtA[i] = 0x1a
  1109. i++
  1110. i = encodeVarintRoom(dAtA, i, uint64(m.Data.Size()))
  1111. n4, err := m.Data.MarshalTo(dAtA[i:])
  1112. if err != nil {
  1113. return 0, err
  1114. }
  1115. i += n4
  1116. }
  1117. return i, nil
  1118. }
  1119. func (m *RoomGetInfoResp_PendantWithDesc) Marshal() (dAtA []byte, err error) {
  1120. size := m.Size()
  1121. dAtA = make([]byte, size)
  1122. n, err := m.MarshalTo(dAtA)
  1123. if err != nil {
  1124. return nil, err
  1125. }
  1126. return dAtA[:n], nil
  1127. }
  1128. func (m *RoomGetInfoResp_PendantWithDesc) MarshalTo(dAtA []byte) (int, error) {
  1129. var i int
  1130. _ = i
  1131. var l int
  1132. _ = l
  1133. if len(m.Name) > 0 {
  1134. dAtA[i] = 0xa
  1135. i++
  1136. i = encodeVarintRoom(dAtA, i, uint64(len(m.Name)))
  1137. i += copy(dAtA[i:], m.Name)
  1138. }
  1139. if m.Position != 0 {
  1140. dAtA[i] = 0x10
  1141. i++
  1142. i = encodeVarintRoom(dAtA, i, uint64(m.Position))
  1143. }
  1144. if len(m.Value) > 0 {
  1145. dAtA[i] = 0x1a
  1146. i++
  1147. i = encodeVarintRoom(dAtA, i, uint64(len(m.Value)))
  1148. i += copy(dAtA[i:], m.Value)
  1149. }
  1150. if len(m.Desc) > 0 {
  1151. dAtA[i] = 0x22
  1152. i++
  1153. i = encodeVarintRoom(dAtA, i, uint64(len(m.Desc)))
  1154. i += copy(dAtA[i:], m.Desc)
  1155. }
  1156. return i, nil
  1157. }
  1158. func (m *RoomGetInfoResp_Pendant) Marshal() (dAtA []byte, err error) {
  1159. size := m.Size()
  1160. dAtA = make([]byte, size)
  1161. n, err := m.MarshalTo(dAtA)
  1162. if err != nil {
  1163. return nil, err
  1164. }
  1165. return dAtA[:n], nil
  1166. }
  1167. func (m *RoomGetInfoResp_Pendant) MarshalTo(dAtA []byte) (int, error) {
  1168. var i int
  1169. _ = i
  1170. var l int
  1171. _ = l
  1172. if len(m.Name) > 0 {
  1173. dAtA[i] = 0xa
  1174. i++
  1175. i = encodeVarintRoom(dAtA, i, uint64(len(m.Name)))
  1176. i += copy(dAtA[i:], m.Name)
  1177. }
  1178. if m.Position != 0 {
  1179. dAtA[i] = 0x10
  1180. i++
  1181. i = encodeVarintRoom(dAtA, i, uint64(m.Position))
  1182. }
  1183. if len(m.Value) > 0 {
  1184. dAtA[i] = 0x1a
  1185. i++
  1186. i = encodeVarintRoom(dAtA, i, uint64(len(m.Value)))
  1187. i += copy(dAtA[i:], m.Value)
  1188. }
  1189. return i, nil
  1190. }
  1191. func (m *RoomGetInfoResp_Pendants) Marshal() (dAtA []byte, err error) {
  1192. size := m.Size()
  1193. dAtA = make([]byte, size)
  1194. n, err := m.MarshalTo(dAtA)
  1195. if err != nil {
  1196. return nil, err
  1197. }
  1198. return dAtA[:n], nil
  1199. }
  1200. func (m *RoomGetInfoResp_Pendants) MarshalTo(dAtA []byte) (int, error) {
  1201. var i int
  1202. _ = i
  1203. var l int
  1204. _ = l
  1205. if m.Frame != nil {
  1206. dAtA[i] = 0xa
  1207. i++
  1208. i = encodeVarintRoom(dAtA, i, uint64(m.Frame.Size()))
  1209. n5, err := m.Frame.MarshalTo(dAtA[i:])
  1210. if err != nil {
  1211. return 0, err
  1212. }
  1213. i += n5
  1214. }
  1215. if m.Badge != nil {
  1216. dAtA[i] = 0x12
  1217. i++
  1218. i = encodeVarintRoom(dAtA, i, uint64(m.Badge.Size()))
  1219. n6, err := m.Badge.MarshalTo(dAtA[i:])
  1220. if err != nil {
  1221. return 0, err
  1222. }
  1223. i += n6
  1224. }
  1225. if m.MobileFrame != nil {
  1226. dAtA[i] = 0x1a
  1227. i++
  1228. i = encodeVarintRoom(dAtA, i, uint64(m.MobileFrame.Size()))
  1229. n7, err := m.MobileFrame.MarshalTo(dAtA[i:])
  1230. if err != nil {
  1231. return 0, err
  1232. }
  1233. i += n7
  1234. }
  1235. if m.MobileBadge != nil {
  1236. dAtA[i] = 0x22
  1237. i++
  1238. i = encodeVarintRoom(dAtA, i, uint64(m.MobileBadge.Size()))
  1239. n8, err := m.MobileBadge.MarshalTo(dAtA[i:])
  1240. if err != nil {
  1241. return 0, err
  1242. }
  1243. i += n8
  1244. }
  1245. return i, nil
  1246. }
  1247. func (m *RoomGetInfoResp_Data) Marshal() (dAtA []byte, err error) {
  1248. size := m.Size()
  1249. dAtA = make([]byte, size)
  1250. n, err := m.MarshalTo(dAtA)
  1251. if err != nil {
  1252. return nil, err
  1253. }
  1254. return dAtA[:n], nil
  1255. }
  1256. func (m *RoomGetInfoResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1257. var i int
  1258. _ = i
  1259. var l int
  1260. _ = l
  1261. if m.Uid != 0 {
  1262. dAtA[i] = 0x8
  1263. i++
  1264. i = encodeVarintRoom(dAtA, i, uint64(m.Uid))
  1265. }
  1266. if m.RoomId != 0 {
  1267. dAtA[i] = 0x10
  1268. i++
  1269. i = encodeVarintRoom(dAtA, i, uint64(m.RoomId))
  1270. }
  1271. if m.ShortId != 0 {
  1272. dAtA[i] = 0x18
  1273. i++
  1274. i = encodeVarintRoom(dAtA, i, uint64(m.ShortId))
  1275. }
  1276. if len(m.Keyframe) > 0 {
  1277. dAtA[i] = 0x22
  1278. i++
  1279. i = encodeVarintRoom(dAtA, i, uint64(len(m.Keyframe)))
  1280. i += copy(dAtA[i:], m.Keyframe)
  1281. }
  1282. if m.Online != 0 {
  1283. dAtA[i] = 0x28
  1284. i++
  1285. i = encodeVarintRoom(dAtA, i, uint64(m.Online))
  1286. }
  1287. if m.IsPortrait {
  1288. dAtA[i] = 0x30
  1289. i++
  1290. if m.IsPortrait {
  1291. dAtA[i] = 1
  1292. } else {
  1293. dAtA[i] = 0
  1294. }
  1295. i++
  1296. }
  1297. if len(m.RoomSilentType) > 0 {
  1298. dAtA[i] = 0x3a
  1299. i++
  1300. i = encodeVarintRoom(dAtA, i, uint64(len(m.RoomSilentType)))
  1301. i += copy(dAtA[i:], m.RoomSilentType)
  1302. }
  1303. if m.RoomSilentSecond != 0 {
  1304. dAtA[i] = 0x40
  1305. i++
  1306. i = encodeVarintRoom(dAtA, i, uint64(m.RoomSilentSecond))
  1307. }
  1308. if m.RoomSilentLevel != 0 {
  1309. dAtA[i] = 0x48
  1310. i++
  1311. i = encodeVarintRoom(dAtA, i, uint64(m.RoomSilentLevel))
  1312. }
  1313. if m.LiveStatus != 0 {
  1314. dAtA[i] = 0x50
  1315. i++
  1316. i = encodeVarintRoom(dAtA, i, uint64(m.LiveStatus))
  1317. }
  1318. if m.AreaId != 0 {
  1319. dAtA[i] = 0x58
  1320. i++
  1321. i = encodeVarintRoom(dAtA, i, uint64(m.AreaId))
  1322. }
  1323. if m.ParentAreaId != 0 {
  1324. dAtA[i] = 0x60
  1325. i++
  1326. i = encodeVarintRoom(dAtA, i, uint64(m.ParentAreaId))
  1327. }
  1328. if len(m.AreaName) > 0 {
  1329. dAtA[i] = 0x6a
  1330. i++
  1331. i = encodeVarintRoom(dAtA, i, uint64(len(m.AreaName)))
  1332. i += copy(dAtA[i:], m.AreaName)
  1333. }
  1334. if len(m.ParentAreaName) > 0 {
  1335. dAtA[i] = 0x72
  1336. i++
  1337. i = encodeVarintRoom(dAtA, i, uint64(len(m.ParentAreaName)))
  1338. i += copy(dAtA[i:], m.ParentAreaName)
  1339. }
  1340. if m.OldAreaId != 0 {
  1341. dAtA[i] = 0x78
  1342. i++
  1343. i = encodeVarintRoom(dAtA, i, uint64(m.OldAreaId))
  1344. }
  1345. if len(m.Background) > 0 {
  1346. dAtA[i] = 0x82
  1347. i++
  1348. dAtA[i] = 0x1
  1349. i++
  1350. i = encodeVarintRoom(dAtA, i, uint64(len(m.Background)))
  1351. i += copy(dAtA[i:], m.Background)
  1352. }
  1353. if len(m.Title) > 0 {
  1354. dAtA[i] = 0x8a
  1355. i++
  1356. dAtA[i] = 0x1
  1357. i++
  1358. i = encodeVarintRoom(dAtA, i, uint64(len(m.Title)))
  1359. i += copy(dAtA[i:], m.Title)
  1360. }
  1361. if m.IsStrictRoom {
  1362. dAtA[i] = 0x90
  1363. i++
  1364. dAtA[i] = 0x1
  1365. i++
  1366. if m.IsStrictRoom {
  1367. dAtA[i] = 1
  1368. } else {
  1369. dAtA[i] = 0
  1370. }
  1371. i++
  1372. }
  1373. if len(m.UserCover) > 0 {
  1374. dAtA[i] = 0x9a
  1375. i++
  1376. dAtA[i] = 0x1
  1377. i++
  1378. i = encodeVarintRoom(dAtA, i, uint64(len(m.UserCover)))
  1379. i += copy(dAtA[i:], m.UserCover)
  1380. }
  1381. if len(m.LiveTime) > 0 {
  1382. dAtA[i] = 0xa2
  1383. i++
  1384. dAtA[i] = 0x1
  1385. i++
  1386. i = encodeVarintRoom(dAtA, i, uint64(len(m.LiveTime)))
  1387. i += copy(dAtA[i:], m.LiveTime)
  1388. }
  1389. if len(m.Pendants) > 0 {
  1390. dAtA[i] = 0xaa
  1391. i++
  1392. dAtA[i] = 0x1
  1393. i++
  1394. i = encodeVarintRoom(dAtA, i, uint64(len(m.Pendants)))
  1395. i += copy(dAtA[i:], m.Pendants)
  1396. }
  1397. if len(m.AreaPendants) > 0 {
  1398. dAtA[i] = 0xb2
  1399. i++
  1400. dAtA[i] = 0x1
  1401. i++
  1402. i = encodeVarintRoom(dAtA, i, uint64(len(m.AreaPendants)))
  1403. i += copy(dAtA[i:], m.AreaPendants)
  1404. }
  1405. if len(m.Description) > 0 {
  1406. dAtA[i] = 0xba
  1407. i++
  1408. dAtA[i] = 0x1
  1409. i++
  1410. i = encodeVarintRoom(dAtA, i, uint64(len(m.Description)))
  1411. i += copy(dAtA[i:], m.Description)
  1412. }
  1413. if len(m.Tags) > 0 {
  1414. dAtA[i] = 0xc2
  1415. i++
  1416. dAtA[i] = 0x1
  1417. i++
  1418. i = encodeVarintRoom(dAtA, i, uint64(len(m.Tags)))
  1419. i += copy(dAtA[i:], m.Tags)
  1420. }
  1421. if len(m.Verify) > 0 {
  1422. dAtA[i] = 0xca
  1423. i++
  1424. dAtA[i] = 0x1
  1425. i++
  1426. i = encodeVarintRoom(dAtA, i, uint64(len(m.Verify)))
  1427. i += copy(dAtA[i:], m.Verify)
  1428. }
  1429. if len(m.HotWords) > 0 {
  1430. for _, s := range m.HotWords {
  1431. dAtA[i] = 0xd2
  1432. i++
  1433. dAtA[i] = 0x1
  1434. i++
  1435. l = len(s)
  1436. for l >= 1<<7 {
  1437. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  1438. l >>= 7
  1439. i++
  1440. }
  1441. dAtA[i] = uint8(l)
  1442. i++
  1443. i += copy(dAtA[i:], s)
  1444. }
  1445. }
  1446. if m.AllowChangeAreaTime != 0 {
  1447. dAtA[i] = 0xd8
  1448. i++
  1449. dAtA[i] = 0x1
  1450. i++
  1451. i = encodeVarintRoom(dAtA, i, uint64(m.AllowChangeAreaTime))
  1452. }
  1453. if m.AllowUploadCoverTime != 0 {
  1454. dAtA[i] = 0xe0
  1455. i++
  1456. dAtA[i] = 0x1
  1457. i++
  1458. i = encodeVarintRoom(dAtA, i, uint64(m.AllowUploadCoverTime))
  1459. }
  1460. if m.NewPendants != nil {
  1461. dAtA[i] = 0xea
  1462. i++
  1463. dAtA[i] = 0x1
  1464. i++
  1465. i = encodeVarintRoom(dAtA, i, uint64(m.NewPendants.Size()))
  1466. n9, err := m.NewPendants.MarshalTo(dAtA[i:])
  1467. if err != nil {
  1468. return 0, err
  1469. }
  1470. i += n9
  1471. }
  1472. if len(m.UpSession) > 0 {
  1473. dAtA[i] = 0xf2
  1474. i++
  1475. dAtA[i] = 0x1
  1476. i++
  1477. i = encodeVarintRoom(dAtA, i, uint64(len(m.UpSession)))
  1478. i += copy(dAtA[i:], m.UpSession)
  1479. }
  1480. if m.PkStatus != 0 {
  1481. dAtA[i] = 0xf8
  1482. i++
  1483. dAtA[i] = 0x1
  1484. i++
  1485. i = encodeVarintRoom(dAtA, i, uint64(m.PkStatus))
  1486. }
  1487. return i, nil
  1488. }
  1489. func encodeVarintRoom(dAtA []byte, offset int, v uint64) int {
  1490. for v >= 1<<7 {
  1491. dAtA[offset] = uint8(v&0x7f | 0x80)
  1492. v >>= 7
  1493. offset++
  1494. }
  1495. dAtA[offset] = uint8(v)
  1496. return offset + 1
  1497. }
  1498. func (m *RoomGetInfoByIdReq) Size() (n int) {
  1499. if m == nil {
  1500. return 0
  1501. }
  1502. var l int
  1503. _ = l
  1504. if len(m.Ids) > 0 {
  1505. l = 0
  1506. for _, e := range m.Ids {
  1507. l += sovRoom(uint64(e))
  1508. }
  1509. n += 1 + sovRoom(uint64(l)) + l
  1510. }
  1511. if len(m.Fields) > 0 {
  1512. for _, s := range m.Fields {
  1513. l = len(s)
  1514. n += 1 + l + sovRoom(uint64(l))
  1515. }
  1516. }
  1517. return n
  1518. }
  1519. func (m *RoomGetInfoByIdResp) Size() (n int) {
  1520. if m == nil {
  1521. return 0
  1522. }
  1523. var l int
  1524. _ = l
  1525. if m.Code != 0 {
  1526. n += 1 + sovRoom(uint64(m.Code))
  1527. }
  1528. l = len(m.Msg)
  1529. if l > 0 {
  1530. n += 1 + l + sovRoom(uint64(l))
  1531. }
  1532. if len(m.Data) > 0 {
  1533. for k, v := range m.Data {
  1534. _ = k
  1535. _ = v
  1536. l = 0
  1537. if v != nil {
  1538. l = v.Size()
  1539. l += 1 + sovRoom(uint64(l))
  1540. }
  1541. mapEntrySize := 1 + len(k) + sovRoom(uint64(len(k))) + l
  1542. n += mapEntrySize + 1 + sovRoom(uint64(mapEntrySize))
  1543. }
  1544. }
  1545. return n
  1546. }
  1547. func (m *RoomGetInfoByIdResp_RoomInfo) Size() (n int) {
  1548. if m == nil {
  1549. return 0
  1550. }
  1551. var l int
  1552. _ = l
  1553. if m.Roomid != 0 {
  1554. n += 1 + sovRoom(uint64(m.Roomid))
  1555. }
  1556. l = len(m.Uname)
  1557. if l > 0 {
  1558. n += 1 + l + sovRoom(uint64(l))
  1559. }
  1560. l = len(m.Cover)
  1561. if l > 0 {
  1562. n += 1 + l + sovRoom(uint64(l))
  1563. }
  1564. if m.Uid != 0 {
  1565. n += 1 + sovRoom(uint64(m.Uid))
  1566. }
  1567. l = len(m.LiveTime)
  1568. if l > 0 {
  1569. n += 1 + l + sovRoom(uint64(l))
  1570. }
  1571. if m.RoundStatus != 0 {
  1572. n += 1 + sovRoom(uint64(m.RoundStatus))
  1573. }
  1574. if m.OnFlag != 0 {
  1575. n += 1 + sovRoom(uint64(m.OnFlag))
  1576. }
  1577. l = len(m.Title)
  1578. if l > 0 {
  1579. n += 1 + l + sovRoom(uint64(l))
  1580. }
  1581. l = len(m.LockStatus)
  1582. if l > 0 {
  1583. n += 1 + l + sovRoom(uint64(l))
  1584. }
  1585. l = len(m.HiddenStatus)
  1586. if l > 0 {
  1587. n += 1 + l + sovRoom(uint64(l))
  1588. }
  1589. l = len(m.UserCover)
  1590. if l > 0 {
  1591. n += 1 + l + sovRoom(uint64(l))
  1592. }
  1593. if m.ShortId != 0 {
  1594. n += 1 + sovRoom(uint64(m.ShortId))
  1595. }
  1596. if m.Online != 0 {
  1597. n += 1 + sovRoom(uint64(m.Online))
  1598. }
  1599. if m.Area != 0 {
  1600. n += 1 + sovRoom(uint64(m.Area))
  1601. }
  1602. if m.AreaV2Id != 0 {
  1603. n += 1 + sovRoom(uint64(m.AreaV2Id))
  1604. }
  1605. if m.AreaV2ParentId != 0 {
  1606. n += 2 + sovRoom(uint64(m.AreaV2ParentId))
  1607. }
  1608. l = len(m.AreaV2Name)
  1609. if l > 0 {
  1610. n += 2 + l + sovRoom(uint64(l))
  1611. }
  1612. l = len(m.AreaV2ParentName)
  1613. if l > 0 {
  1614. n += 2 + l + sovRoom(uint64(l))
  1615. }
  1616. if m.Attentions != 0 {
  1617. n += 2 + sovRoom(uint64(m.Attentions))
  1618. }
  1619. return n
  1620. }
  1621. func (m *RoomGetInfoReq) Size() (n int) {
  1622. if m == nil {
  1623. return 0
  1624. }
  1625. var l int
  1626. _ = l
  1627. if m.Id != 0 {
  1628. n += 1 + sovRoom(uint64(m.Id))
  1629. }
  1630. l = len(m.From)
  1631. if l > 0 {
  1632. n += 1 + l + sovRoom(uint64(l))
  1633. }
  1634. return n
  1635. }
  1636. func (m *RoomGetInfoResp) Size() (n int) {
  1637. if m == nil {
  1638. return 0
  1639. }
  1640. var l int
  1641. _ = l
  1642. if m.Code != 0 {
  1643. n += 1 + sovRoom(uint64(m.Code))
  1644. }
  1645. l = len(m.Msg)
  1646. if l > 0 {
  1647. n += 1 + l + sovRoom(uint64(l))
  1648. }
  1649. if m.Data != nil {
  1650. l = m.Data.Size()
  1651. n += 1 + l + sovRoom(uint64(l))
  1652. }
  1653. return n
  1654. }
  1655. func (m *RoomGetInfoResp_PendantWithDesc) Size() (n int) {
  1656. if m == nil {
  1657. return 0
  1658. }
  1659. var l int
  1660. _ = l
  1661. l = len(m.Name)
  1662. if l > 0 {
  1663. n += 1 + l + sovRoom(uint64(l))
  1664. }
  1665. if m.Position != 0 {
  1666. n += 1 + sovRoom(uint64(m.Position))
  1667. }
  1668. l = len(m.Value)
  1669. if l > 0 {
  1670. n += 1 + l + sovRoom(uint64(l))
  1671. }
  1672. l = len(m.Desc)
  1673. if l > 0 {
  1674. n += 1 + l + sovRoom(uint64(l))
  1675. }
  1676. return n
  1677. }
  1678. func (m *RoomGetInfoResp_Pendant) Size() (n int) {
  1679. if m == nil {
  1680. return 0
  1681. }
  1682. var l int
  1683. _ = l
  1684. l = len(m.Name)
  1685. if l > 0 {
  1686. n += 1 + l + sovRoom(uint64(l))
  1687. }
  1688. if m.Position != 0 {
  1689. n += 1 + sovRoom(uint64(m.Position))
  1690. }
  1691. l = len(m.Value)
  1692. if l > 0 {
  1693. n += 1 + l + sovRoom(uint64(l))
  1694. }
  1695. return n
  1696. }
  1697. func (m *RoomGetInfoResp_Pendants) Size() (n int) {
  1698. if m == nil {
  1699. return 0
  1700. }
  1701. var l int
  1702. _ = l
  1703. if m.Frame != nil {
  1704. l = m.Frame.Size()
  1705. n += 1 + l + sovRoom(uint64(l))
  1706. }
  1707. if m.Badge != nil {
  1708. l = m.Badge.Size()
  1709. n += 1 + l + sovRoom(uint64(l))
  1710. }
  1711. if m.MobileFrame != nil {
  1712. l = m.MobileFrame.Size()
  1713. n += 1 + l + sovRoom(uint64(l))
  1714. }
  1715. if m.MobileBadge != nil {
  1716. l = m.MobileBadge.Size()
  1717. n += 1 + l + sovRoom(uint64(l))
  1718. }
  1719. return n
  1720. }
  1721. func (m *RoomGetInfoResp_Data) Size() (n int) {
  1722. if m == nil {
  1723. return 0
  1724. }
  1725. var l int
  1726. _ = l
  1727. if m.Uid != 0 {
  1728. n += 1 + sovRoom(uint64(m.Uid))
  1729. }
  1730. if m.RoomId != 0 {
  1731. n += 1 + sovRoom(uint64(m.RoomId))
  1732. }
  1733. if m.ShortId != 0 {
  1734. n += 1 + sovRoom(uint64(m.ShortId))
  1735. }
  1736. l = len(m.Keyframe)
  1737. if l > 0 {
  1738. n += 1 + l + sovRoom(uint64(l))
  1739. }
  1740. if m.Online != 0 {
  1741. n += 1 + sovRoom(uint64(m.Online))
  1742. }
  1743. if m.IsPortrait {
  1744. n += 2
  1745. }
  1746. l = len(m.RoomSilentType)
  1747. if l > 0 {
  1748. n += 1 + l + sovRoom(uint64(l))
  1749. }
  1750. if m.RoomSilentSecond != 0 {
  1751. n += 1 + sovRoom(uint64(m.RoomSilentSecond))
  1752. }
  1753. if m.RoomSilentLevel != 0 {
  1754. n += 1 + sovRoom(uint64(m.RoomSilentLevel))
  1755. }
  1756. if m.LiveStatus != 0 {
  1757. n += 1 + sovRoom(uint64(m.LiveStatus))
  1758. }
  1759. if m.AreaId != 0 {
  1760. n += 1 + sovRoom(uint64(m.AreaId))
  1761. }
  1762. if m.ParentAreaId != 0 {
  1763. n += 1 + sovRoom(uint64(m.ParentAreaId))
  1764. }
  1765. l = len(m.AreaName)
  1766. if l > 0 {
  1767. n += 1 + l + sovRoom(uint64(l))
  1768. }
  1769. l = len(m.ParentAreaName)
  1770. if l > 0 {
  1771. n += 1 + l + sovRoom(uint64(l))
  1772. }
  1773. if m.OldAreaId != 0 {
  1774. n += 1 + sovRoom(uint64(m.OldAreaId))
  1775. }
  1776. l = len(m.Background)
  1777. if l > 0 {
  1778. n += 2 + l + sovRoom(uint64(l))
  1779. }
  1780. l = len(m.Title)
  1781. if l > 0 {
  1782. n += 2 + l + sovRoom(uint64(l))
  1783. }
  1784. if m.IsStrictRoom {
  1785. n += 3
  1786. }
  1787. l = len(m.UserCover)
  1788. if l > 0 {
  1789. n += 2 + l + sovRoom(uint64(l))
  1790. }
  1791. l = len(m.LiveTime)
  1792. if l > 0 {
  1793. n += 2 + l + sovRoom(uint64(l))
  1794. }
  1795. l = len(m.Pendants)
  1796. if l > 0 {
  1797. n += 2 + l + sovRoom(uint64(l))
  1798. }
  1799. l = len(m.AreaPendants)
  1800. if l > 0 {
  1801. n += 2 + l + sovRoom(uint64(l))
  1802. }
  1803. l = len(m.Description)
  1804. if l > 0 {
  1805. n += 2 + l + sovRoom(uint64(l))
  1806. }
  1807. l = len(m.Tags)
  1808. if l > 0 {
  1809. n += 2 + l + sovRoom(uint64(l))
  1810. }
  1811. l = len(m.Verify)
  1812. if l > 0 {
  1813. n += 2 + l + sovRoom(uint64(l))
  1814. }
  1815. if len(m.HotWords) > 0 {
  1816. for _, s := range m.HotWords {
  1817. l = len(s)
  1818. n += 2 + l + sovRoom(uint64(l))
  1819. }
  1820. }
  1821. if m.AllowChangeAreaTime != 0 {
  1822. n += 2 + sovRoom(uint64(m.AllowChangeAreaTime))
  1823. }
  1824. if m.AllowUploadCoverTime != 0 {
  1825. n += 2 + sovRoom(uint64(m.AllowUploadCoverTime))
  1826. }
  1827. if m.NewPendants != nil {
  1828. l = m.NewPendants.Size()
  1829. n += 2 + l + sovRoom(uint64(l))
  1830. }
  1831. l = len(m.UpSession)
  1832. if l > 0 {
  1833. n += 2 + l + sovRoom(uint64(l))
  1834. }
  1835. if m.PkStatus != 0 {
  1836. n += 2 + sovRoom(uint64(m.PkStatus))
  1837. }
  1838. return n
  1839. }
  1840. func sovRoom(x uint64) (n int) {
  1841. for {
  1842. n++
  1843. x >>= 7
  1844. if x == 0 {
  1845. break
  1846. }
  1847. }
  1848. return n
  1849. }
  1850. func sozRoom(x uint64) (n int) {
  1851. return sovRoom(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1852. }
  1853. func (m *RoomGetInfoByIdReq) Unmarshal(dAtA []byte) error {
  1854. l := len(dAtA)
  1855. iNdEx := 0
  1856. for iNdEx < l {
  1857. preIndex := iNdEx
  1858. var wire uint64
  1859. for shift := uint(0); ; shift += 7 {
  1860. if shift >= 64 {
  1861. return ErrIntOverflowRoom
  1862. }
  1863. if iNdEx >= l {
  1864. return io.ErrUnexpectedEOF
  1865. }
  1866. b := dAtA[iNdEx]
  1867. iNdEx++
  1868. wire |= (uint64(b) & 0x7F) << shift
  1869. if b < 0x80 {
  1870. break
  1871. }
  1872. }
  1873. fieldNum := int32(wire >> 3)
  1874. wireType := int(wire & 0x7)
  1875. if wireType == 4 {
  1876. return fmt.Errorf("proto: RoomGetInfoByIdReq: wiretype end group for non-group")
  1877. }
  1878. if fieldNum <= 0 {
  1879. return fmt.Errorf("proto: RoomGetInfoByIdReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1880. }
  1881. switch fieldNum {
  1882. case 1:
  1883. if wireType == 0 {
  1884. var v int64
  1885. for shift := uint(0); ; shift += 7 {
  1886. if shift >= 64 {
  1887. return ErrIntOverflowRoom
  1888. }
  1889. if iNdEx >= l {
  1890. return io.ErrUnexpectedEOF
  1891. }
  1892. b := dAtA[iNdEx]
  1893. iNdEx++
  1894. v |= (int64(b) & 0x7F) << shift
  1895. if b < 0x80 {
  1896. break
  1897. }
  1898. }
  1899. m.Ids = append(m.Ids, v)
  1900. } else if wireType == 2 {
  1901. var packedLen int
  1902. for shift := uint(0); ; shift += 7 {
  1903. if shift >= 64 {
  1904. return ErrIntOverflowRoom
  1905. }
  1906. if iNdEx >= l {
  1907. return io.ErrUnexpectedEOF
  1908. }
  1909. b := dAtA[iNdEx]
  1910. iNdEx++
  1911. packedLen |= (int(b) & 0x7F) << shift
  1912. if b < 0x80 {
  1913. break
  1914. }
  1915. }
  1916. if packedLen < 0 {
  1917. return ErrInvalidLengthRoom
  1918. }
  1919. postIndex := iNdEx + packedLen
  1920. if postIndex > l {
  1921. return io.ErrUnexpectedEOF
  1922. }
  1923. var elementCount int
  1924. var count int
  1925. for _, integer := range dAtA {
  1926. if integer < 128 {
  1927. count++
  1928. }
  1929. }
  1930. elementCount = count
  1931. if elementCount != 0 && len(m.Ids) == 0 {
  1932. m.Ids = make([]int64, 0, elementCount)
  1933. }
  1934. for iNdEx < postIndex {
  1935. var v int64
  1936. for shift := uint(0); ; shift += 7 {
  1937. if shift >= 64 {
  1938. return ErrIntOverflowRoom
  1939. }
  1940. if iNdEx >= l {
  1941. return io.ErrUnexpectedEOF
  1942. }
  1943. b := dAtA[iNdEx]
  1944. iNdEx++
  1945. v |= (int64(b) & 0x7F) << shift
  1946. if b < 0x80 {
  1947. break
  1948. }
  1949. }
  1950. m.Ids = append(m.Ids, v)
  1951. }
  1952. } else {
  1953. return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType)
  1954. }
  1955. case 2:
  1956. if wireType != 2 {
  1957. return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
  1958. }
  1959. var stringLen uint64
  1960. for shift := uint(0); ; shift += 7 {
  1961. if shift >= 64 {
  1962. return ErrIntOverflowRoom
  1963. }
  1964. if iNdEx >= l {
  1965. return io.ErrUnexpectedEOF
  1966. }
  1967. b := dAtA[iNdEx]
  1968. iNdEx++
  1969. stringLen |= (uint64(b) & 0x7F) << shift
  1970. if b < 0x80 {
  1971. break
  1972. }
  1973. }
  1974. intStringLen := int(stringLen)
  1975. if intStringLen < 0 {
  1976. return ErrInvalidLengthRoom
  1977. }
  1978. postIndex := iNdEx + intStringLen
  1979. if postIndex > l {
  1980. return io.ErrUnexpectedEOF
  1981. }
  1982. m.Fields = append(m.Fields, string(dAtA[iNdEx:postIndex]))
  1983. iNdEx = postIndex
  1984. default:
  1985. iNdEx = preIndex
  1986. skippy, err := skipRoom(dAtA[iNdEx:])
  1987. if err != nil {
  1988. return err
  1989. }
  1990. if skippy < 0 {
  1991. return ErrInvalidLengthRoom
  1992. }
  1993. if (iNdEx + skippy) > l {
  1994. return io.ErrUnexpectedEOF
  1995. }
  1996. iNdEx += skippy
  1997. }
  1998. }
  1999. if iNdEx > l {
  2000. return io.ErrUnexpectedEOF
  2001. }
  2002. return nil
  2003. }
  2004. func (m *RoomGetInfoByIdResp) Unmarshal(dAtA []byte) error {
  2005. l := len(dAtA)
  2006. iNdEx := 0
  2007. for iNdEx < l {
  2008. preIndex := iNdEx
  2009. var wire uint64
  2010. for shift := uint(0); ; shift += 7 {
  2011. if shift >= 64 {
  2012. return ErrIntOverflowRoom
  2013. }
  2014. if iNdEx >= l {
  2015. return io.ErrUnexpectedEOF
  2016. }
  2017. b := dAtA[iNdEx]
  2018. iNdEx++
  2019. wire |= (uint64(b) & 0x7F) << shift
  2020. if b < 0x80 {
  2021. break
  2022. }
  2023. }
  2024. fieldNum := int32(wire >> 3)
  2025. wireType := int(wire & 0x7)
  2026. if wireType == 4 {
  2027. return fmt.Errorf("proto: RoomGetInfoByIdResp: wiretype end group for non-group")
  2028. }
  2029. if fieldNum <= 0 {
  2030. return fmt.Errorf("proto: RoomGetInfoByIdResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2031. }
  2032. switch fieldNum {
  2033. case 1:
  2034. if wireType != 0 {
  2035. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2036. }
  2037. m.Code = 0
  2038. for shift := uint(0); ; shift += 7 {
  2039. if shift >= 64 {
  2040. return ErrIntOverflowRoom
  2041. }
  2042. if iNdEx >= l {
  2043. return io.ErrUnexpectedEOF
  2044. }
  2045. b := dAtA[iNdEx]
  2046. iNdEx++
  2047. m.Code |= (int64(b) & 0x7F) << shift
  2048. if b < 0x80 {
  2049. break
  2050. }
  2051. }
  2052. case 2:
  2053. if wireType != 2 {
  2054. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2055. }
  2056. var stringLen uint64
  2057. for shift := uint(0); ; shift += 7 {
  2058. if shift >= 64 {
  2059. return ErrIntOverflowRoom
  2060. }
  2061. if iNdEx >= l {
  2062. return io.ErrUnexpectedEOF
  2063. }
  2064. b := dAtA[iNdEx]
  2065. iNdEx++
  2066. stringLen |= (uint64(b) & 0x7F) << shift
  2067. if b < 0x80 {
  2068. break
  2069. }
  2070. }
  2071. intStringLen := int(stringLen)
  2072. if intStringLen < 0 {
  2073. return ErrInvalidLengthRoom
  2074. }
  2075. postIndex := iNdEx + intStringLen
  2076. if postIndex > l {
  2077. return io.ErrUnexpectedEOF
  2078. }
  2079. m.Msg = string(dAtA[iNdEx:postIndex])
  2080. iNdEx = postIndex
  2081. case 3:
  2082. if wireType != 2 {
  2083. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2084. }
  2085. var msglen int
  2086. for shift := uint(0); ; shift += 7 {
  2087. if shift >= 64 {
  2088. return ErrIntOverflowRoom
  2089. }
  2090. if iNdEx >= l {
  2091. return io.ErrUnexpectedEOF
  2092. }
  2093. b := dAtA[iNdEx]
  2094. iNdEx++
  2095. msglen |= (int(b) & 0x7F) << shift
  2096. if b < 0x80 {
  2097. break
  2098. }
  2099. }
  2100. if msglen < 0 {
  2101. return ErrInvalidLengthRoom
  2102. }
  2103. postIndex := iNdEx + msglen
  2104. if postIndex > l {
  2105. return io.ErrUnexpectedEOF
  2106. }
  2107. if m.Data == nil {
  2108. m.Data = make(map[string]*RoomGetInfoByIdResp_RoomInfo)
  2109. }
  2110. var mapkey string
  2111. var mapvalue *RoomGetInfoByIdResp_RoomInfo
  2112. for iNdEx < postIndex {
  2113. entryPreIndex := iNdEx
  2114. var wire uint64
  2115. for shift := uint(0); ; shift += 7 {
  2116. if shift >= 64 {
  2117. return ErrIntOverflowRoom
  2118. }
  2119. if iNdEx >= l {
  2120. return io.ErrUnexpectedEOF
  2121. }
  2122. b := dAtA[iNdEx]
  2123. iNdEx++
  2124. wire |= (uint64(b) & 0x7F) << shift
  2125. if b < 0x80 {
  2126. break
  2127. }
  2128. }
  2129. fieldNum := int32(wire >> 3)
  2130. if fieldNum == 1 {
  2131. var stringLenmapkey uint64
  2132. for shift := uint(0); ; shift += 7 {
  2133. if shift >= 64 {
  2134. return ErrIntOverflowRoom
  2135. }
  2136. if iNdEx >= l {
  2137. return io.ErrUnexpectedEOF
  2138. }
  2139. b := dAtA[iNdEx]
  2140. iNdEx++
  2141. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2142. if b < 0x80 {
  2143. break
  2144. }
  2145. }
  2146. intStringLenmapkey := int(stringLenmapkey)
  2147. if intStringLenmapkey < 0 {
  2148. return ErrInvalidLengthRoom
  2149. }
  2150. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2151. if postStringIndexmapkey > l {
  2152. return io.ErrUnexpectedEOF
  2153. }
  2154. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2155. iNdEx = postStringIndexmapkey
  2156. } else if fieldNum == 2 {
  2157. var mapmsglen int
  2158. for shift := uint(0); ; shift += 7 {
  2159. if shift >= 64 {
  2160. return ErrIntOverflowRoom
  2161. }
  2162. if iNdEx >= l {
  2163. return io.ErrUnexpectedEOF
  2164. }
  2165. b := dAtA[iNdEx]
  2166. iNdEx++
  2167. mapmsglen |= (int(b) & 0x7F) << shift
  2168. if b < 0x80 {
  2169. break
  2170. }
  2171. }
  2172. if mapmsglen < 0 {
  2173. return ErrInvalidLengthRoom
  2174. }
  2175. postmsgIndex := iNdEx + mapmsglen
  2176. if mapmsglen < 0 {
  2177. return ErrInvalidLengthRoom
  2178. }
  2179. if postmsgIndex > l {
  2180. return io.ErrUnexpectedEOF
  2181. }
  2182. mapvalue = &RoomGetInfoByIdResp_RoomInfo{}
  2183. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2184. return err
  2185. }
  2186. iNdEx = postmsgIndex
  2187. } else {
  2188. iNdEx = entryPreIndex
  2189. skippy, err := skipRoom(dAtA[iNdEx:])
  2190. if err != nil {
  2191. return err
  2192. }
  2193. if skippy < 0 {
  2194. return ErrInvalidLengthRoom
  2195. }
  2196. if (iNdEx + skippy) > postIndex {
  2197. return io.ErrUnexpectedEOF
  2198. }
  2199. iNdEx += skippy
  2200. }
  2201. }
  2202. m.Data[mapkey] = mapvalue
  2203. iNdEx = postIndex
  2204. default:
  2205. iNdEx = preIndex
  2206. skippy, err := skipRoom(dAtA[iNdEx:])
  2207. if err != nil {
  2208. return err
  2209. }
  2210. if skippy < 0 {
  2211. return ErrInvalidLengthRoom
  2212. }
  2213. if (iNdEx + skippy) > l {
  2214. return io.ErrUnexpectedEOF
  2215. }
  2216. iNdEx += skippy
  2217. }
  2218. }
  2219. if iNdEx > l {
  2220. return io.ErrUnexpectedEOF
  2221. }
  2222. return nil
  2223. }
  2224. func (m *RoomGetInfoByIdResp_RoomInfo) Unmarshal(dAtA []byte) error {
  2225. l := len(dAtA)
  2226. iNdEx := 0
  2227. for iNdEx < l {
  2228. preIndex := iNdEx
  2229. var wire uint64
  2230. for shift := uint(0); ; shift += 7 {
  2231. if shift >= 64 {
  2232. return ErrIntOverflowRoom
  2233. }
  2234. if iNdEx >= l {
  2235. return io.ErrUnexpectedEOF
  2236. }
  2237. b := dAtA[iNdEx]
  2238. iNdEx++
  2239. wire |= (uint64(b) & 0x7F) << shift
  2240. if b < 0x80 {
  2241. break
  2242. }
  2243. }
  2244. fieldNum := int32(wire >> 3)
  2245. wireType := int(wire & 0x7)
  2246. if wireType == 4 {
  2247. return fmt.Errorf("proto: RoomInfo: wiretype end group for non-group")
  2248. }
  2249. if fieldNum <= 0 {
  2250. return fmt.Errorf("proto: RoomInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2251. }
  2252. switch fieldNum {
  2253. case 1:
  2254. if wireType != 0 {
  2255. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  2256. }
  2257. m.Roomid = 0
  2258. for shift := uint(0); ; shift += 7 {
  2259. if shift >= 64 {
  2260. return ErrIntOverflowRoom
  2261. }
  2262. if iNdEx >= l {
  2263. return io.ErrUnexpectedEOF
  2264. }
  2265. b := dAtA[iNdEx]
  2266. iNdEx++
  2267. m.Roomid |= (int64(b) & 0x7F) << shift
  2268. if b < 0x80 {
  2269. break
  2270. }
  2271. }
  2272. case 2:
  2273. if wireType != 2 {
  2274. return fmt.Errorf("proto: wrong wireType = %d for field Uname", wireType)
  2275. }
  2276. var stringLen uint64
  2277. for shift := uint(0); ; shift += 7 {
  2278. if shift >= 64 {
  2279. return ErrIntOverflowRoom
  2280. }
  2281. if iNdEx >= l {
  2282. return io.ErrUnexpectedEOF
  2283. }
  2284. b := dAtA[iNdEx]
  2285. iNdEx++
  2286. stringLen |= (uint64(b) & 0x7F) << shift
  2287. if b < 0x80 {
  2288. break
  2289. }
  2290. }
  2291. intStringLen := int(stringLen)
  2292. if intStringLen < 0 {
  2293. return ErrInvalidLengthRoom
  2294. }
  2295. postIndex := iNdEx + intStringLen
  2296. if postIndex > l {
  2297. return io.ErrUnexpectedEOF
  2298. }
  2299. m.Uname = string(dAtA[iNdEx:postIndex])
  2300. iNdEx = postIndex
  2301. case 3:
  2302. if wireType != 2 {
  2303. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  2304. }
  2305. var stringLen uint64
  2306. for shift := uint(0); ; shift += 7 {
  2307. if shift >= 64 {
  2308. return ErrIntOverflowRoom
  2309. }
  2310. if iNdEx >= l {
  2311. return io.ErrUnexpectedEOF
  2312. }
  2313. b := dAtA[iNdEx]
  2314. iNdEx++
  2315. stringLen |= (uint64(b) & 0x7F) << shift
  2316. if b < 0x80 {
  2317. break
  2318. }
  2319. }
  2320. intStringLen := int(stringLen)
  2321. if intStringLen < 0 {
  2322. return ErrInvalidLengthRoom
  2323. }
  2324. postIndex := iNdEx + intStringLen
  2325. if postIndex > l {
  2326. return io.ErrUnexpectedEOF
  2327. }
  2328. m.Cover = string(dAtA[iNdEx:postIndex])
  2329. iNdEx = postIndex
  2330. case 4:
  2331. if wireType != 0 {
  2332. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  2333. }
  2334. m.Uid = 0
  2335. for shift := uint(0); ; shift += 7 {
  2336. if shift >= 64 {
  2337. return ErrIntOverflowRoom
  2338. }
  2339. if iNdEx >= l {
  2340. return io.ErrUnexpectedEOF
  2341. }
  2342. b := dAtA[iNdEx]
  2343. iNdEx++
  2344. m.Uid |= (int64(b) & 0x7F) << shift
  2345. if b < 0x80 {
  2346. break
  2347. }
  2348. }
  2349. case 5:
  2350. if wireType != 2 {
  2351. return fmt.Errorf("proto: wrong wireType = %d for field LiveTime", wireType)
  2352. }
  2353. var stringLen uint64
  2354. for shift := uint(0); ; shift += 7 {
  2355. if shift >= 64 {
  2356. return ErrIntOverflowRoom
  2357. }
  2358. if iNdEx >= l {
  2359. return io.ErrUnexpectedEOF
  2360. }
  2361. b := dAtA[iNdEx]
  2362. iNdEx++
  2363. stringLen |= (uint64(b) & 0x7F) << shift
  2364. if b < 0x80 {
  2365. break
  2366. }
  2367. }
  2368. intStringLen := int(stringLen)
  2369. if intStringLen < 0 {
  2370. return ErrInvalidLengthRoom
  2371. }
  2372. postIndex := iNdEx + intStringLen
  2373. if postIndex > l {
  2374. return io.ErrUnexpectedEOF
  2375. }
  2376. m.LiveTime = string(dAtA[iNdEx:postIndex])
  2377. iNdEx = postIndex
  2378. case 6:
  2379. if wireType != 0 {
  2380. return fmt.Errorf("proto: wrong wireType = %d for field RoundStatus", wireType)
  2381. }
  2382. m.RoundStatus = 0
  2383. for shift := uint(0); ; shift += 7 {
  2384. if shift >= 64 {
  2385. return ErrIntOverflowRoom
  2386. }
  2387. if iNdEx >= l {
  2388. return io.ErrUnexpectedEOF
  2389. }
  2390. b := dAtA[iNdEx]
  2391. iNdEx++
  2392. m.RoundStatus |= (int64(b) & 0x7F) << shift
  2393. if b < 0x80 {
  2394. break
  2395. }
  2396. }
  2397. case 7:
  2398. if wireType != 0 {
  2399. return fmt.Errorf("proto: wrong wireType = %d for field OnFlag", wireType)
  2400. }
  2401. m.OnFlag = 0
  2402. for shift := uint(0); ; shift += 7 {
  2403. if shift >= 64 {
  2404. return ErrIntOverflowRoom
  2405. }
  2406. if iNdEx >= l {
  2407. return io.ErrUnexpectedEOF
  2408. }
  2409. b := dAtA[iNdEx]
  2410. iNdEx++
  2411. m.OnFlag |= (int64(b) & 0x7F) << shift
  2412. if b < 0x80 {
  2413. break
  2414. }
  2415. }
  2416. case 8:
  2417. if wireType != 2 {
  2418. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  2419. }
  2420. var stringLen uint64
  2421. for shift := uint(0); ; shift += 7 {
  2422. if shift >= 64 {
  2423. return ErrIntOverflowRoom
  2424. }
  2425. if iNdEx >= l {
  2426. return io.ErrUnexpectedEOF
  2427. }
  2428. b := dAtA[iNdEx]
  2429. iNdEx++
  2430. stringLen |= (uint64(b) & 0x7F) << shift
  2431. if b < 0x80 {
  2432. break
  2433. }
  2434. }
  2435. intStringLen := int(stringLen)
  2436. if intStringLen < 0 {
  2437. return ErrInvalidLengthRoom
  2438. }
  2439. postIndex := iNdEx + intStringLen
  2440. if postIndex > l {
  2441. return io.ErrUnexpectedEOF
  2442. }
  2443. m.Title = string(dAtA[iNdEx:postIndex])
  2444. iNdEx = postIndex
  2445. case 9:
  2446. if wireType != 2 {
  2447. return fmt.Errorf("proto: wrong wireType = %d for field LockStatus", wireType)
  2448. }
  2449. var stringLen uint64
  2450. for shift := uint(0); ; shift += 7 {
  2451. if shift >= 64 {
  2452. return ErrIntOverflowRoom
  2453. }
  2454. if iNdEx >= l {
  2455. return io.ErrUnexpectedEOF
  2456. }
  2457. b := dAtA[iNdEx]
  2458. iNdEx++
  2459. stringLen |= (uint64(b) & 0x7F) << shift
  2460. if b < 0x80 {
  2461. break
  2462. }
  2463. }
  2464. intStringLen := int(stringLen)
  2465. if intStringLen < 0 {
  2466. return ErrInvalidLengthRoom
  2467. }
  2468. postIndex := iNdEx + intStringLen
  2469. if postIndex > l {
  2470. return io.ErrUnexpectedEOF
  2471. }
  2472. m.LockStatus = string(dAtA[iNdEx:postIndex])
  2473. iNdEx = postIndex
  2474. case 10:
  2475. if wireType != 2 {
  2476. return fmt.Errorf("proto: wrong wireType = %d for field HiddenStatus", wireType)
  2477. }
  2478. var stringLen uint64
  2479. for shift := uint(0); ; shift += 7 {
  2480. if shift >= 64 {
  2481. return ErrIntOverflowRoom
  2482. }
  2483. if iNdEx >= l {
  2484. return io.ErrUnexpectedEOF
  2485. }
  2486. b := dAtA[iNdEx]
  2487. iNdEx++
  2488. stringLen |= (uint64(b) & 0x7F) << shift
  2489. if b < 0x80 {
  2490. break
  2491. }
  2492. }
  2493. intStringLen := int(stringLen)
  2494. if intStringLen < 0 {
  2495. return ErrInvalidLengthRoom
  2496. }
  2497. postIndex := iNdEx + intStringLen
  2498. if postIndex > l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. m.HiddenStatus = string(dAtA[iNdEx:postIndex])
  2502. iNdEx = postIndex
  2503. case 11:
  2504. if wireType != 2 {
  2505. return fmt.Errorf("proto: wrong wireType = %d for field UserCover", wireType)
  2506. }
  2507. var stringLen uint64
  2508. for shift := uint(0); ; shift += 7 {
  2509. if shift >= 64 {
  2510. return ErrIntOverflowRoom
  2511. }
  2512. if iNdEx >= l {
  2513. return io.ErrUnexpectedEOF
  2514. }
  2515. b := dAtA[iNdEx]
  2516. iNdEx++
  2517. stringLen |= (uint64(b) & 0x7F) << shift
  2518. if b < 0x80 {
  2519. break
  2520. }
  2521. }
  2522. intStringLen := int(stringLen)
  2523. if intStringLen < 0 {
  2524. return ErrInvalidLengthRoom
  2525. }
  2526. postIndex := iNdEx + intStringLen
  2527. if postIndex > l {
  2528. return io.ErrUnexpectedEOF
  2529. }
  2530. m.UserCover = string(dAtA[iNdEx:postIndex])
  2531. iNdEx = postIndex
  2532. case 12:
  2533. if wireType != 0 {
  2534. return fmt.Errorf("proto: wrong wireType = %d for field ShortId", wireType)
  2535. }
  2536. m.ShortId = 0
  2537. for shift := uint(0); ; shift += 7 {
  2538. if shift >= 64 {
  2539. return ErrIntOverflowRoom
  2540. }
  2541. if iNdEx >= l {
  2542. return io.ErrUnexpectedEOF
  2543. }
  2544. b := dAtA[iNdEx]
  2545. iNdEx++
  2546. m.ShortId |= (int64(b) & 0x7F) << shift
  2547. if b < 0x80 {
  2548. break
  2549. }
  2550. }
  2551. case 13:
  2552. if wireType != 0 {
  2553. return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
  2554. }
  2555. m.Online = 0
  2556. for shift := uint(0); ; shift += 7 {
  2557. if shift >= 64 {
  2558. return ErrIntOverflowRoom
  2559. }
  2560. if iNdEx >= l {
  2561. return io.ErrUnexpectedEOF
  2562. }
  2563. b := dAtA[iNdEx]
  2564. iNdEx++
  2565. m.Online |= (int64(b) & 0x7F) << shift
  2566. if b < 0x80 {
  2567. break
  2568. }
  2569. }
  2570. case 14:
  2571. if wireType != 0 {
  2572. return fmt.Errorf("proto: wrong wireType = %d for field Area", wireType)
  2573. }
  2574. m.Area = 0
  2575. for shift := uint(0); ; shift += 7 {
  2576. if shift >= 64 {
  2577. return ErrIntOverflowRoom
  2578. }
  2579. if iNdEx >= l {
  2580. return io.ErrUnexpectedEOF
  2581. }
  2582. b := dAtA[iNdEx]
  2583. iNdEx++
  2584. m.Area |= (int64(b) & 0x7F) << shift
  2585. if b < 0x80 {
  2586. break
  2587. }
  2588. }
  2589. case 15:
  2590. if wireType != 0 {
  2591. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2Id", wireType)
  2592. }
  2593. m.AreaV2Id = 0
  2594. for shift := uint(0); ; shift += 7 {
  2595. if shift >= 64 {
  2596. return ErrIntOverflowRoom
  2597. }
  2598. if iNdEx >= l {
  2599. return io.ErrUnexpectedEOF
  2600. }
  2601. b := dAtA[iNdEx]
  2602. iNdEx++
  2603. m.AreaV2Id |= (int64(b) & 0x7F) << shift
  2604. if b < 0x80 {
  2605. break
  2606. }
  2607. }
  2608. case 16:
  2609. if wireType != 0 {
  2610. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2ParentId", wireType)
  2611. }
  2612. m.AreaV2ParentId = 0
  2613. for shift := uint(0); ; shift += 7 {
  2614. if shift >= 64 {
  2615. return ErrIntOverflowRoom
  2616. }
  2617. if iNdEx >= l {
  2618. return io.ErrUnexpectedEOF
  2619. }
  2620. b := dAtA[iNdEx]
  2621. iNdEx++
  2622. m.AreaV2ParentId |= (int64(b) & 0x7F) << shift
  2623. if b < 0x80 {
  2624. break
  2625. }
  2626. }
  2627. case 17:
  2628. if wireType != 2 {
  2629. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2Name", wireType)
  2630. }
  2631. var stringLen uint64
  2632. for shift := uint(0); ; shift += 7 {
  2633. if shift >= 64 {
  2634. return ErrIntOverflowRoom
  2635. }
  2636. if iNdEx >= l {
  2637. return io.ErrUnexpectedEOF
  2638. }
  2639. b := dAtA[iNdEx]
  2640. iNdEx++
  2641. stringLen |= (uint64(b) & 0x7F) << shift
  2642. if b < 0x80 {
  2643. break
  2644. }
  2645. }
  2646. intStringLen := int(stringLen)
  2647. if intStringLen < 0 {
  2648. return ErrInvalidLengthRoom
  2649. }
  2650. postIndex := iNdEx + intStringLen
  2651. if postIndex > l {
  2652. return io.ErrUnexpectedEOF
  2653. }
  2654. m.AreaV2Name = string(dAtA[iNdEx:postIndex])
  2655. iNdEx = postIndex
  2656. case 18:
  2657. if wireType != 2 {
  2658. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2ParentName", wireType)
  2659. }
  2660. var stringLen uint64
  2661. for shift := uint(0); ; shift += 7 {
  2662. if shift >= 64 {
  2663. return ErrIntOverflowRoom
  2664. }
  2665. if iNdEx >= l {
  2666. return io.ErrUnexpectedEOF
  2667. }
  2668. b := dAtA[iNdEx]
  2669. iNdEx++
  2670. stringLen |= (uint64(b) & 0x7F) << shift
  2671. if b < 0x80 {
  2672. break
  2673. }
  2674. }
  2675. intStringLen := int(stringLen)
  2676. if intStringLen < 0 {
  2677. return ErrInvalidLengthRoom
  2678. }
  2679. postIndex := iNdEx + intStringLen
  2680. if postIndex > l {
  2681. return io.ErrUnexpectedEOF
  2682. }
  2683. m.AreaV2ParentName = string(dAtA[iNdEx:postIndex])
  2684. iNdEx = postIndex
  2685. case 19:
  2686. if wireType != 0 {
  2687. return fmt.Errorf("proto: wrong wireType = %d for field Attentions", wireType)
  2688. }
  2689. m.Attentions = 0
  2690. for shift := uint(0); ; shift += 7 {
  2691. if shift >= 64 {
  2692. return ErrIntOverflowRoom
  2693. }
  2694. if iNdEx >= l {
  2695. return io.ErrUnexpectedEOF
  2696. }
  2697. b := dAtA[iNdEx]
  2698. iNdEx++
  2699. m.Attentions |= (int64(b) & 0x7F) << shift
  2700. if b < 0x80 {
  2701. break
  2702. }
  2703. }
  2704. default:
  2705. iNdEx = preIndex
  2706. skippy, err := skipRoom(dAtA[iNdEx:])
  2707. if err != nil {
  2708. return err
  2709. }
  2710. if skippy < 0 {
  2711. return ErrInvalidLengthRoom
  2712. }
  2713. if (iNdEx + skippy) > l {
  2714. return io.ErrUnexpectedEOF
  2715. }
  2716. iNdEx += skippy
  2717. }
  2718. }
  2719. if iNdEx > l {
  2720. return io.ErrUnexpectedEOF
  2721. }
  2722. return nil
  2723. }
  2724. func (m *RoomGetInfoReq) Unmarshal(dAtA []byte) error {
  2725. l := len(dAtA)
  2726. iNdEx := 0
  2727. for iNdEx < l {
  2728. preIndex := iNdEx
  2729. var wire uint64
  2730. for shift := uint(0); ; shift += 7 {
  2731. if shift >= 64 {
  2732. return ErrIntOverflowRoom
  2733. }
  2734. if iNdEx >= l {
  2735. return io.ErrUnexpectedEOF
  2736. }
  2737. b := dAtA[iNdEx]
  2738. iNdEx++
  2739. wire |= (uint64(b) & 0x7F) << shift
  2740. if b < 0x80 {
  2741. break
  2742. }
  2743. }
  2744. fieldNum := int32(wire >> 3)
  2745. wireType := int(wire & 0x7)
  2746. if wireType == 4 {
  2747. return fmt.Errorf("proto: RoomGetInfoReq: wiretype end group for non-group")
  2748. }
  2749. if fieldNum <= 0 {
  2750. return fmt.Errorf("proto: RoomGetInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2751. }
  2752. switch fieldNum {
  2753. case 1:
  2754. if wireType != 0 {
  2755. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  2756. }
  2757. m.Id = 0
  2758. for shift := uint(0); ; shift += 7 {
  2759. if shift >= 64 {
  2760. return ErrIntOverflowRoom
  2761. }
  2762. if iNdEx >= l {
  2763. return io.ErrUnexpectedEOF
  2764. }
  2765. b := dAtA[iNdEx]
  2766. iNdEx++
  2767. m.Id |= (int64(b) & 0x7F) << shift
  2768. if b < 0x80 {
  2769. break
  2770. }
  2771. }
  2772. case 2:
  2773. if wireType != 2 {
  2774. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  2775. }
  2776. var stringLen uint64
  2777. for shift := uint(0); ; shift += 7 {
  2778. if shift >= 64 {
  2779. return ErrIntOverflowRoom
  2780. }
  2781. if iNdEx >= l {
  2782. return io.ErrUnexpectedEOF
  2783. }
  2784. b := dAtA[iNdEx]
  2785. iNdEx++
  2786. stringLen |= (uint64(b) & 0x7F) << shift
  2787. if b < 0x80 {
  2788. break
  2789. }
  2790. }
  2791. intStringLen := int(stringLen)
  2792. if intStringLen < 0 {
  2793. return ErrInvalidLengthRoom
  2794. }
  2795. postIndex := iNdEx + intStringLen
  2796. if postIndex > l {
  2797. return io.ErrUnexpectedEOF
  2798. }
  2799. m.From = string(dAtA[iNdEx:postIndex])
  2800. iNdEx = postIndex
  2801. default:
  2802. iNdEx = preIndex
  2803. skippy, err := skipRoom(dAtA[iNdEx:])
  2804. if err != nil {
  2805. return err
  2806. }
  2807. if skippy < 0 {
  2808. return ErrInvalidLengthRoom
  2809. }
  2810. if (iNdEx + skippy) > l {
  2811. return io.ErrUnexpectedEOF
  2812. }
  2813. iNdEx += skippy
  2814. }
  2815. }
  2816. if iNdEx > l {
  2817. return io.ErrUnexpectedEOF
  2818. }
  2819. return nil
  2820. }
  2821. func (m *RoomGetInfoResp) Unmarshal(dAtA []byte) error {
  2822. l := len(dAtA)
  2823. iNdEx := 0
  2824. for iNdEx < l {
  2825. preIndex := iNdEx
  2826. var wire uint64
  2827. for shift := uint(0); ; shift += 7 {
  2828. if shift >= 64 {
  2829. return ErrIntOverflowRoom
  2830. }
  2831. if iNdEx >= l {
  2832. return io.ErrUnexpectedEOF
  2833. }
  2834. b := dAtA[iNdEx]
  2835. iNdEx++
  2836. wire |= (uint64(b) & 0x7F) << shift
  2837. if b < 0x80 {
  2838. break
  2839. }
  2840. }
  2841. fieldNum := int32(wire >> 3)
  2842. wireType := int(wire & 0x7)
  2843. if wireType == 4 {
  2844. return fmt.Errorf("proto: RoomGetInfoResp: wiretype end group for non-group")
  2845. }
  2846. if fieldNum <= 0 {
  2847. return fmt.Errorf("proto: RoomGetInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2848. }
  2849. switch fieldNum {
  2850. case 1:
  2851. if wireType != 0 {
  2852. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2853. }
  2854. m.Code = 0
  2855. for shift := uint(0); ; shift += 7 {
  2856. if shift >= 64 {
  2857. return ErrIntOverflowRoom
  2858. }
  2859. if iNdEx >= l {
  2860. return io.ErrUnexpectedEOF
  2861. }
  2862. b := dAtA[iNdEx]
  2863. iNdEx++
  2864. m.Code |= (int64(b) & 0x7F) << shift
  2865. if b < 0x80 {
  2866. break
  2867. }
  2868. }
  2869. case 2:
  2870. if wireType != 2 {
  2871. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2872. }
  2873. var stringLen uint64
  2874. for shift := uint(0); ; shift += 7 {
  2875. if shift >= 64 {
  2876. return ErrIntOverflowRoom
  2877. }
  2878. if iNdEx >= l {
  2879. return io.ErrUnexpectedEOF
  2880. }
  2881. b := dAtA[iNdEx]
  2882. iNdEx++
  2883. stringLen |= (uint64(b) & 0x7F) << shift
  2884. if b < 0x80 {
  2885. break
  2886. }
  2887. }
  2888. intStringLen := int(stringLen)
  2889. if intStringLen < 0 {
  2890. return ErrInvalidLengthRoom
  2891. }
  2892. postIndex := iNdEx + intStringLen
  2893. if postIndex > l {
  2894. return io.ErrUnexpectedEOF
  2895. }
  2896. m.Msg = string(dAtA[iNdEx:postIndex])
  2897. iNdEx = postIndex
  2898. case 3:
  2899. if wireType != 2 {
  2900. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2901. }
  2902. var msglen int
  2903. for shift := uint(0); ; shift += 7 {
  2904. if shift >= 64 {
  2905. return ErrIntOverflowRoom
  2906. }
  2907. if iNdEx >= l {
  2908. return io.ErrUnexpectedEOF
  2909. }
  2910. b := dAtA[iNdEx]
  2911. iNdEx++
  2912. msglen |= (int(b) & 0x7F) << shift
  2913. if b < 0x80 {
  2914. break
  2915. }
  2916. }
  2917. if msglen < 0 {
  2918. return ErrInvalidLengthRoom
  2919. }
  2920. postIndex := iNdEx + msglen
  2921. if postIndex > l {
  2922. return io.ErrUnexpectedEOF
  2923. }
  2924. if m.Data == nil {
  2925. m.Data = &RoomGetInfoResp_Data{}
  2926. }
  2927. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2928. return err
  2929. }
  2930. iNdEx = postIndex
  2931. default:
  2932. iNdEx = preIndex
  2933. skippy, err := skipRoom(dAtA[iNdEx:])
  2934. if err != nil {
  2935. return err
  2936. }
  2937. if skippy < 0 {
  2938. return ErrInvalidLengthRoom
  2939. }
  2940. if (iNdEx + skippy) > l {
  2941. return io.ErrUnexpectedEOF
  2942. }
  2943. iNdEx += skippy
  2944. }
  2945. }
  2946. if iNdEx > l {
  2947. return io.ErrUnexpectedEOF
  2948. }
  2949. return nil
  2950. }
  2951. func (m *RoomGetInfoResp_PendantWithDesc) Unmarshal(dAtA []byte) error {
  2952. l := len(dAtA)
  2953. iNdEx := 0
  2954. for iNdEx < l {
  2955. preIndex := iNdEx
  2956. var wire uint64
  2957. for shift := uint(0); ; shift += 7 {
  2958. if shift >= 64 {
  2959. return ErrIntOverflowRoom
  2960. }
  2961. if iNdEx >= l {
  2962. return io.ErrUnexpectedEOF
  2963. }
  2964. b := dAtA[iNdEx]
  2965. iNdEx++
  2966. wire |= (uint64(b) & 0x7F) << shift
  2967. if b < 0x80 {
  2968. break
  2969. }
  2970. }
  2971. fieldNum := int32(wire >> 3)
  2972. wireType := int(wire & 0x7)
  2973. if wireType == 4 {
  2974. return fmt.Errorf("proto: PendantWithDesc: wiretype end group for non-group")
  2975. }
  2976. if fieldNum <= 0 {
  2977. return fmt.Errorf("proto: PendantWithDesc: illegal tag %d (wire type %d)", fieldNum, wire)
  2978. }
  2979. switch fieldNum {
  2980. case 1:
  2981. if wireType != 2 {
  2982. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2983. }
  2984. var stringLen uint64
  2985. for shift := uint(0); ; shift += 7 {
  2986. if shift >= 64 {
  2987. return ErrIntOverflowRoom
  2988. }
  2989. if iNdEx >= l {
  2990. return io.ErrUnexpectedEOF
  2991. }
  2992. b := dAtA[iNdEx]
  2993. iNdEx++
  2994. stringLen |= (uint64(b) & 0x7F) << shift
  2995. if b < 0x80 {
  2996. break
  2997. }
  2998. }
  2999. intStringLen := int(stringLen)
  3000. if intStringLen < 0 {
  3001. return ErrInvalidLengthRoom
  3002. }
  3003. postIndex := iNdEx + intStringLen
  3004. if postIndex > l {
  3005. return io.ErrUnexpectedEOF
  3006. }
  3007. m.Name = string(dAtA[iNdEx:postIndex])
  3008. iNdEx = postIndex
  3009. case 2:
  3010. if wireType != 0 {
  3011. return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
  3012. }
  3013. m.Position = 0
  3014. for shift := uint(0); ; shift += 7 {
  3015. if shift >= 64 {
  3016. return ErrIntOverflowRoom
  3017. }
  3018. if iNdEx >= l {
  3019. return io.ErrUnexpectedEOF
  3020. }
  3021. b := dAtA[iNdEx]
  3022. iNdEx++
  3023. m.Position |= (int64(b) & 0x7F) << shift
  3024. if b < 0x80 {
  3025. break
  3026. }
  3027. }
  3028. case 3:
  3029. if wireType != 2 {
  3030. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  3031. }
  3032. var stringLen uint64
  3033. for shift := uint(0); ; shift += 7 {
  3034. if shift >= 64 {
  3035. return ErrIntOverflowRoom
  3036. }
  3037. if iNdEx >= l {
  3038. return io.ErrUnexpectedEOF
  3039. }
  3040. b := dAtA[iNdEx]
  3041. iNdEx++
  3042. stringLen |= (uint64(b) & 0x7F) << shift
  3043. if b < 0x80 {
  3044. break
  3045. }
  3046. }
  3047. intStringLen := int(stringLen)
  3048. if intStringLen < 0 {
  3049. return ErrInvalidLengthRoom
  3050. }
  3051. postIndex := iNdEx + intStringLen
  3052. if postIndex > l {
  3053. return io.ErrUnexpectedEOF
  3054. }
  3055. m.Value = string(dAtA[iNdEx:postIndex])
  3056. iNdEx = postIndex
  3057. case 4:
  3058. if wireType != 2 {
  3059. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  3060. }
  3061. var stringLen uint64
  3062. for shift := uint(0); ; shift += 7 {
  3063. if shift >= 64 {
  3064. return ErrIntOverflowRoom
  3065. }
  3066. if iNdEx >= l {
  3067. return io.ErrUnexpectedEOF
  3068. }
  3069. b := dAtA[iNdEx]
  3070. iNdEx++
  3071. stringLen |= (uint64(b) & 0x7F) << shift
  3072. if b < 0x80 {
  3073. break
  3074. }
  3075. }
  3076. intStringLen := int(stringLen)
  3077. if intStringLen < 0 {
  3078. return ErrInvalidLengthRoom
  3079. }
  3080. postIndex := iNdEx + intStringLen
  3081. if postIndex > l {
  3082. return io.ErrUnexpectedEOF
  3083. }
  3084. m.Desc = string(dAtA[iNdEx:postIndex])
  3085. iNdEx = postIndex
  3086. default:
  3087. iNdEx = preIndex
  3088. skippy, err := skipRoom(dAtA[iNdEx:])
  3089. if err != nil {
  3090. return err
  3091. }
  3092. if skippy < 0 {
  3093. return ErrInvalidLengthRoom
  3094. }
  3095. if (iNdEx + skippy) > l {
  3096. return io.ErrUnexpectedEOF
  3097. }
  3098. iNdEx += skippy
  3099. }
  3100. }
  3101. if iNdEx > l {
  3102. return io.ErrUnexpectedEOF
  3103. }
  3104. return nil
  3105. }
  3106. func (m *RoomGetInfoResp_Pendant) Unmarshal(dAtA []byte) error {
  3107. l := len(dAtA)
  3108. iNdEx := 0
  3109. for iNdEx < l {
  3110. preIndex := iNdEx
  3111. var wire uint64
  3112. for shift := uint(0); ; shift += 7 {
  3113. if shift >= 64 {
  3114. return ErrIntOverflowRoom
  3115. }
  3116. if iNdEx >= l {
  3117. return io.ErrUnexpectedEOF
  3118. }
  3119. b := dAtA[iNdEx]
  3120. iNdEx++
  3121. wire |= (uint64(b) & 0x7F) << shift
  3122. if b < 0x80 {
  3123. break
  3124. }
  3125. }
  3126. fieldNum := int32(wire >> 3)
  3127. wireType := int(wire & 0x7)
  3128. if wireType == 4 {
  3129. return fmt.Errorf("proto: Pendant: wiretype end group for non-group")
  3130. }
  3131. if fieldNum <= 0 {
  3132. return fmt.Errorf("proto: Pendant: illegal tag %d (wire type %d)", fieldNum, wire)
  3133. }
  3134. switch fieldNum {
  3135. case 1:
  3136. if wireType != 2 {
  3137. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3138. }
  3139. var stringLen uint64
  3140. for shift := uint(0); ; shift += 7 {
  3141. if shift >= 64 {
  3142. return ErrIntOverflowRoom
  3143. }
  3144. if iNdEx >= l {
  3145. return io.ErrUnexpectedEOF
  3146. }
  3147. b := dAtA[iNdEx]
  3148. iNdEx++
  3149. stringLen |= (uint64(b) & 0x7F) << shift
  3150. if b < 0x80 {
  3151. break
  3152. }
  3153. }
  3154. intStringLen := int(stringLen)
  3155. if intStringLen < 0 {
  3156. return ErrInvalidLengthRoom
  3157. }
  3158. postIndex := iNdEx + intStringLen
  3159. if postIndex > l {
  3160. return io.ErrUnexpectedEOF
  3161. }
  3162. m.Name = string(dAtA[iNdEx:postIndex])
  3163. iNdEx = postIndex
  3164. case 2:
  3165. if wireType != 0 {
  3166. return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType)
  3167. }
  3168. m.Position = 0
  3169. for shift := uint(0); ; shift += 7 {
  3170. if shift >= 64 {
  3171. return ErrIntOverflowRoom
  3172. }
  3173. if iNdEx >= l {
  3174. return io.ErrUnexpectedEOF
  3175. }
  3176. b := dAtA[iNdEx]
  3177. iNdEx++
  3178. m.Position |= (int64(b) & 0x7F) << shift
  3179. if b < 0x80 {
  3180. break
  3181. }
  3182. }
  3183. case 3:
  3184. if wireType != 2 {
  3185. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  3186. }
  3187. var stringLen uint64
  3188. for shift := uint(0); ; shift += 7 {
  3189. if shift >= 64 {
  3190. return ErrIntOverflowRoom
  3191. }
  3192. if iNdEx >= l {
  3193. return io.ErrUnexpectedEOF
  3194. }
  3195. b := dAtA[iNdEx]
  3196. iNdEx++
  3197. stringLen |= (uint64(b) & 0x7F) << shift
  3198. if b < 0x80 {
  3199. break
  3200. }
  3201. }
  3202. intStringLen := int(stringLen)
  3203. if intStringLen < 0 {
  3204. return ErrInvalidLengthRoom
  3205. }
  3206. postIndex := iNdEx + intStringLen
  3207. if postIndex > l {
  3208. return io.ErrUnexpectedEOF
  3209. }
  3210. m.Value = string(dAtA[iNdEx:postIndex])
  3211. iNdEx = postIndex
  3212. default:
  3213. iNdEx = preIndex
  3214. skippy, err := skipRoom(dAtA[iNdEx:])
  3215. if err != nil {
  3216. return err
  3217. }
  3218. if skippy < 0 {
  3219. return ErrInvalidLengthRoom
  3220. }
  3221. if (iNdEx + skippy) > l {
  3222. return io.ErrUnexpectedEOF
  3223. }
  3224. iNdEx += skippy
  3225. }
  3226. }
  3227. if iNdEx > l {
  3228. return io.ErrUnexpectedEOF
  3229. }
  3230. return nil
  3231. }
  3232. func (m *RoomGetInfoResp_Pendants) Unmarshal(dAtA []byte) error {
  3233. l := len(dAtA)
  3234. iNdEx := 0
  3235. for iNdEx < l {
  3236. preIndex := iNdEx
  3237. var wire uint64
  3238. for shift := uint(0); ; shift += 7 {
  3239. if shift >= 64 {
  3240. return ErrIntOverflowRoom
  3241. }
  3242. if iNdEx >= l {
  3243. return io.ErrUnexpectedEOF
  3244. }
  3245. b := dAtA[iNdEx]
  3246. iNdEx++
  3247. wire |= (uint64(b) & 0x7F) << shift
  3248. if b < 0x80 {
  3249. break
  3250. }
  3251. }
  3252. fieldNum := int32(wire >> 3)
  3253. wireType := int(wire & 0x7)
  3254. if wireType == 4 {
  3255. return fmt.Errorf("proto: Pendants: wiretype end group for non-group")
  3256. }
  3257. if fieldNum <= 0 {
  3258. return fmt.Errorf("proto: Pendants: illegal tag %d (wire type %d)", fieldNum, wire)
  3259. }
  3260. switch fieldNum {
  3261. case 1:
  3262. if wireType != 2 {
  3263. return fmt.Errorf("proto: wrong wireType = %d for field Frame", wireType)
  3264. }
  3265. var msglen int
  3266. for shift := uint(0); ; shift += 7 {
  3267. if shift >= 64 {
  3268. return ErrIntOverflowRoom
  3269. }
  3270. if iNdEx >= l {
  3271. return io.ErrUnexpectedEOF
  3272. }
  3273. b := dAtA[iNdEx]
  3274. iNdEx++
  3275. msglen |= (int(b) & 0x7F) << shift
  3276. if b < 0x80 {
  3277. break
  3278. }
  3279. }
  3280. if msglen < 0 {
  3281. return ErrInvalidLengthRoom
  3282. }
  3283. postIndex := iNdEx + msglen
  3284. if postIndex > l {
  3285. return io.ErrUnexpectedEOF
  3286. }
  3287. if m.Frame == nil {
  3288. m.Frame = &RoomGetInfoResp_PendantWithDesc{}
  3289. }
  3290. if err := m.Frame.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3291. return err
  3292. }
  3293. iNdEx = postIndex
  3294. case 2:
  3295. if wireType != 2 {
  3296. return fmt.Errorf("proto: wrong wireType = %d for field Badge", wireType)
  3297. }
  3298. var msglen int
  3299. for shift := uint(0); ; shift += 7 {
  3300. if shift >= 64 {
  3301. return ErrIntOverflowRoom
  3302. }
  3303. if iNdEx >= l {
  3304. return io.ErrUnexpectedEOF
  3305. }
  3306. b := dAtA[iNdEx]
  3307. iNdEx++
  3308. msglen |= (int(b) & 0x7F) << shift
  3309. if b < 0x80 {
  3310. break
  3311. }
  3312. }
  3313. if msglen < 0 {
  3314. return ErrInvalidLengthRoom
  3315. }
  3316. postIndex := iNdEx + msglen
  3317. if postIndex > l {
  3318. return io.ErrUnexpectedEOF
  3319. }
  3320. if m.Badge == nil {
  3321. m.Badge = &RoomGetInfoResp_PendantWithDesc{}
  3322. }
  3323. if err := m.Badge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3324. return err
  3325. }
  3326. iNdEx = postIndex
  3327. case 3:
  3328. if wireType != 2 {
  3329. return fmt.Errorf("proto: wrong wireType = %d for field MobileFrame", wireType)
  3330. }
  3331. var msglen int
  3332. for shift := uint(0); ; shift += 7 {
  3333. if shift >= 64 {
  3334. return ErrIntOverflowRoom
  3335. }
  3336. if iNdEx >= l {
  3337. return io.ErrUnexpectedEOF
  3338. }
  3339. b := dAtA[iNdEx]
  3340. iNdEx++
  3341. msglen |= (int(b) & 0x7F) << shift
  3342. if b < 0x80 {
  3343. break
  3344. }
  3345. }
  3346. if msglen < 0 {
  3347. return ErrInvalidLengthRoom
  3348. }
  3349. postIndex := iNdEx + msglen
  3350. if postIndex > l {
  3351. return io.ErrUnexpectedEOF
  3352. }
  3353. if m.MobileFrame == nil {
  3354. m.MobileFrame = &RoomGetInfoResp_Pendant{}
  3355. }
  3356. if err := m.MobileFrame.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3357. return err
  3358. }
  3359. iNdEx = postIndex
  3360. case 4:
  3361. if wireType != 2 {
  3362. return fmt.Errorf("proto: wrong wireType = %d for field MobileBadge", wireType)
  3363. }
  3364. var msglen int
  3365. for shift := uint(0); ; shift += 7 {
  3366. if shift >= 64 {
  3367. return ErrIntOverflowRoom
  3368. }
  3369. if iNdEx >= l {
  3370. return io.ErrUnexpectedEOF
  3371. }
  3372. b := dAtA[iNdEx]
  3373. iNdEx++
  3374. msglen |= (int(b) & 0x7F) << shift
  3375. if b < 0x80 {
  3376. break
  3377. }
  3378. }
  3379. if msglen < 0 {
  3380. return ErrInvalidLengthRoom
  3381. }
  3382. postIndex := iNdEx + msglen
  3383. if postIndex > l {
  3384. return io.ErrUnexpectedEOF
  3385. }
  3386. if m.MobileBadge == nil {
  3387. m.MobileBadge = &RoomGetInfoResp_Pendant{}
  3388. }
  3389. if err := m.MobileBadge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3390. return err
  3391. }
  3392. iNdEx = postIndex
  3393. default:
  3394. iNdEx = preIndex
  3395. skippy, err := skipRoom(dAtA[iNdEx:])
  3396. if err != nil {
  3397. return err
  3398. }
  3399. if skippy < 0 {
  3400. return ErrInvalidLengthRoom
  3401. }
  3402. if (iNdEx + skippy) > l {
  3403. return io.ErrUnexpectedEOF
  3404. }
  3405. iNdEx += skippy
  3406. }
  3407. }
  3408. if iNdEx > l {
  3409. return io.ErrUnexpectedEOF
  3410. }
  3411. return nil
  3412. }
  3413. func (m *RoomGetInfoResp_Data) Unmarshal(dAtA []byte) error {
  3414. l := len(dAtA)
  3415. iNdEx := 0
  3416. for iNdEx < l {
  3417. preIndex := iNdEx
  3418. var wire uint64
  3419. for shift := uint(0); ; shift += 7 {
  3420. if shift >= 64 {
  3421. return ErrIntOverflowRoom
  3422. }
  3423. if iNdEx >= l {
  3424. return io.ErrUnexpectedEOF
  3425. }
  3426. b := dAtA[iNdEx]
  3427. iNdEx++
  3428. wire |= (uint64(b) & 0x7F) << shift
  3429. if b < 0x80 {
  3430. break
  3431. }
  3432. }
  3433. fieldNum := int32(wire >> 3)
  3434. wireType := int(wire & 0x7)
  3435. if wireType == 4 {
  3436. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  3437. }
  3438. if fieldNum <= 0 {
  3439. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  3440. }
  3441. switch fieldNum {
  3442. case 1:
  3443. if wireType != 0 {
  3444. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  3445. }
  3446. m.Uid = 0
  3447. for shift := uint(0); ; shift += 7 {
  3448. if shift >= 64 {
  3449. return ErrIntOverflowRoom
  3450. }
  3451. if iNdEx >= l {
  3452. return io.ErrUnexpectedEOF
  3453. }
  3454. b := dAtA[iNdEx]
  3455. iNdEx++
  3456. m.Uid |= (int64(b) & 0x7F) << shift
  3457. if b < 0x80 {
  3458. break
  3459. }
  3460. }
  3461. case 2:
  3462. if wireType != 0 {
  3463. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  3464. }
  3465. m.RoomId = 0
  3466. for shift := uint(0); ; shift += 7 {
  3467. if shift >= 64 {
  3468. return ErrIntOverflowRoom
  3469. }
  3470. if iNdEx >= l {
  3471. return io.ErrUnexpectedEOF
  3472. }
  3473. b := dAtA[iNdEx]
  3474. iNdEx++
  3475. m.RoomId |= (int64(b) & 0x7F) << shift
  3476. if b < 0x80 {
  3477. break
  3478. }
  3479. }
  3480. case 3:
  3481. if wireType != 0 {
  3482. return fmt.Errorf("proto: wrong wireType = %d for field ShortId", wireType)
  3483. }
  3484. m.ShortId = 0
  3485. for shift := uint(0); ; shift += 7 {
  3486. if shift >= 64 {
  3487. return ErrIntOverflowRoom
  3488. }
  3489. if iNdEx >= l {
  3490. return io.ErrUnexpectedEOF
  3491. }
  3492. b := dAtA[iNdEx]
  3493. iNdEx++
  3494. m.ShortId |= (int64(b) & 0x7F) << shift
  3495. if b < 0x80 {
  3496. break
  3497. }
  3498. }
  3499. case 4:
  3500. if wireType != 2 {
  3501. return fmt.Errorf("proto: wrong wireType = %d for field Keyframe", wireType)
  3502. }
  3503. var stringLen uint64
  3504. for shift := uint(0); ; shift += 7 {
  3505. if shift >= 64 {
  3506. return ErrIntOverflowRoom
  3507. }
  3508. if iNdEx >= l {
  3509. return io.ErrUnexpectedEOF
  3510. }
  3511. b := dAtA[iNdEx]
  3512. iNdEx++
  3513. stringLen |= (uint64(b) & 0x7F) << shift
  3514. if b < 0x80 {
  3515. break
  3516. }
  3517. }
  3518. intStringLen := int(stringLen)
  3519. if intStringLen < 0 {
  3520. return ErrInvalidLengthRoom
  3521. }
  3522. postIndex := iNdEx + intStringLen
  3523. if postIndex > l {
  3524. return io.ErrUnexpectedEOF
  3525. }
  3526. m.Keyframe = string(dAtA[iNdEx:postIndex])
  3527. iNdEx = postIndex
  3528. case 5:
  3529. if wireType != 0 {
  3530. return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
  3531. }
  3532. m.Online = 0
  3533. for shift := uint(0); ; shift += 7 {
  3534. if shift >= 64 {
  3535. return ErrIntOverflowRoom
  3536. }
  3537. if iNdEx >= l {
  3538. return io.ErrUnexpectedEOF
  3539. }
  3540. b := dAtA[iNdEx]
  3541. iNdEx++
  3542. m.Online |= (int64(b) & 0x7F) << shift
  3543. if b < 0x80 {
  3544. break
  3545. }
  3546. }
  3547. case 6:
  3548. if wireType != 0 {
  3549. return fmt.Errorf("proto: wrong wireType = %d for field IsPortrait", wireType)
  3550. }
  3551. var v int
  3552. for shift := uint(0); ; shift += 7 {
  3553. if shift >= 64 {
  3554. return ErrIntOverflowRoom
  3555. }
  3556. if iNdEx >= l {
  3557. return io.ErrUnexpectedEOF
  3558. }
  3559. b := dAtA[iNdEx]
  3560. iNdEx++
  3561. v |= (int(b) & 0x7F) << shift
  3562. if b < 0x80 {
  3563. break
  3564. }
  3565. }
  3566. m.IsPortrait = bool(v != 0)
  3567. case 7:
  3568. if wireType != 2 {
  3569. return fmt.Errorf("proto: wrong wireType = %d for field RoomSilentType", wireType)
  3570. }
  3571. var stringLen uint64
  3572. for shift := uint(0); ; shift += 7 {
  3573. if shift >= 64 {
  3574. return ErrIntOverflowRoom
  3575. }
  3576. if iNdEx >= l {
  3577. return io.ErrUnexpectedEOF
  3578. }
  3579. b := dAtA[iNdEx]
  3580. iNdEx++
  3581. stringLen |= (uint64(b) & 0x7F) << shift
  3582. if b < 0x80 {
  3583. break
  3584. }
  3585. }
  3586. intStringLen := int(stringLen)
  3587. if intStringLen < 0 {
  3588. return ErrInvalidLengthRoom
  3589. }
  3590. postIndex := iNdEx + intStringLen
  3591. if postIndex > l {
  3592. return io.ErrUnexpectedEOF
  3593. }
  3594. m.RoomSilentType = string(dAtA[iNdEx:postIndex])
  3595. iNdEx = postIndex
  3596. case 8:
  3597. if wireType != 0 {
  3598. return fmt.Errorf("proto: wrong wireType = %d for field RoomSilentSecond", wireType)
  3599. }
  3600. m.RoomSilentSecond = 0
  3601. for shift := uint(0); ; shift += 7 {
  3602. if shift >= 64 {
  3603. return ErrIntOverflowRoom
  3604. }
  3605. if iNdEx >= l {
  3606. return io.ErrUnexpectedEOF
  3607. }
  3608. b := dAtA[iNdEx]
  3609. iNdEx++
  3610. m.RoomSilentSecond |= (int64(b) & 0x7F) << shift
  3611. if b < 0x80 {
  3612. break
  3613. }
  3614. }
  3615. case 9:
  3616. if wireType != 0 {
  3617. return fmt.Errorf("proto: wrong wireType = %d for field RoomSilentLevel", wireType)
  3618. }
  3619. m.RoomSilentLevel = 0
  3620. for shift := uint(0); ; shift += 7 {
  3621. if shift >= 64 {
  3622. return ErrIntOverflowRoom
  3623. }
  3624. if iNdEx >= l {
  3625. return io.ErrUnexpectedEOF
  3626. }
  3627. b := dAtA[iNdEx]
  3628. iNdEx++
  3629. m.RoomSilentLevel |= (int64(b) & 0x7F) << shift
  3630. if b < 0x80 {
  3631. break
  3632. }
  3633. }
  3634. case 10:
  3635. if wireType != 0 {
  3636. return fmt.Errorf("proto: wrong wireType = %d for field LiveStatus", wireType)
  3637. }
  3638. m.LiveStatus = 0
  3639. for shift := uint(0); ; shift += 7 {
  3640. if shift >= 64 {
  3641. return ErrIntOverflowRoom
  3642. }
  3643. if iNdEx >= l {
  3644. return io.ErrUnexpectedEOF
  3645. }
  3646. b := dAtA[iNdEx]
  3647. iNdEx++
  3648. m.LiveStatus |= (int64(b) & 0x7F) << shift
  3649. if b < 0x80 {
  3650. break
  3651. }
  3652. }
  3653. case 11:
  3654. if wireType != 0 {
  3655. return fmt.Errorf("proto: wrong wireType = %d for field AreaId", wireType)
  3656. }
  3657. m.AreaId = 0
  3658. for shift := uint(0); ; shift += 7 {
  3659. if shift >= 64 {
  3660. return ErrIntOverflowRoom
  3661. }
  3662. if iNdEx >= l {
  3663. return io.ErrUnexpectedEOF
  3664. }
  3665. b := dAtA[iNdEx]
  3666. iNdEx++
  3667. m.AreaId |= (int64(b) & 0x7F) << shift
  3668. if b < 0x80 {
  3669. break
  3670. }
  3671. }
  3672. case 12:
  3673. if wireType != 0 {
  3674. return fmt.Errorf("proto: wrong wireType = %d for field ParentAreaId", wireType)
  3675. }
  3676. m.ParentAreaId = 0
  3677. for shift := uint(0); ; shift += 7 {
  3678. if shift >= 64 {
  3679. return ErrIntOverflowRoom
  3680. }
  3681. if iNdEx >= l {
  3682. return io.ErrUnexpectedEOF
  3683. }
  3684. b := dAtA[iNdEx]
  3685. iNdEx++
  3686. m.ParentAreaId |= (int64(b) & 0x7F) << shift
  3687. if b < 0x80 {
  3688. break
  3689. }
  3690. }
  3691. case 13:
  3692. if wireType != 2 {
  3693. return fmt.Errorf("proto: wrong wireType = %d for field AreaName", wireType)
  3694. }
  3695. var stringLen uint64
  3696. for shift := uint(0); ; shift += 7 {
  3697. if shift >= 64 {
  3698. return ErrIntOverflowRoom
  3699. }
  3700. if iNdEx >= l {
  3701. return io.ErrUnexpectedEOF
  3702. }
  3703. b := dAtA[iNdEx]
  3704. iNdEx++
  3705. stringLen |= (uint64(b) & 0x7F) << shift
  3706. if b < 0x80 {
  3707. break
  3708. }
  3709. }
  3710. intStringLen := int(stringLen)
  3711. if intStringLen < 0 {
  3712. return ErrInvalidLengthRoom
  3713. }
  3714. postIndex := iNdEx + intStringLen
  3715. if postIndex > l {
  3716. return io.ErrUnexpectedEOF
  3717. }
  3718. m.AreaName = string(dAtA[iNdEx:postIndex])
  3719. iNdEx = postIndex
  3720. case 14:
  3721. if wireType != 2 {
  3722. return fmt.Errorf("proto: wrong wireType = %d for field ParentAreaName", wireType)
  3723. }
  3724. var stringLen uint64
  3725. for shift := uint(0); ; shift += 7 {
  3726. if shift >= 64 {
  3727. return ErrIntOverflowRoom
  3728. }
  3729. if iNdEx >= l {
  3730. return io.ErrUnexpectedEOF
  3731. }
  3732. b := dAtA[iNdEx]
  3733. iNdEx++
  3734. stringLen |= (uint64(b) & 0x7F) << shift
  3735. if b < 0x80 {
  3736. break
  3737. }
  3738. }
  3739. intStringLen := int(stringLen)
  3740. if intStringLen < 0 {
  3741. return ErrInvalidLengthRoom
  3742. }
  3743. postIndex := iNdEx + intStringLen
  3744. if postIndex > l {
  3745. return io.ErrUnexpectedEOF
  3746. }
  3747. m.ParentAreaName = string(dAtA[iNdEx:postIndex])
  3748. iNdEx = postIndex
  3749. case 15:
  3750. if wireType != 0 {
  3751. return fmt.Errorf("proto: wrong wireType = %d for field OldAreaId", wireType)
  3752. }
  3753. m.OldAreaId = 0
  3754. for shift := uint(0); ; shift += 7 {
  3755. if shift >= 64 {
  3756. return ErrIntOverflowRoom
  3757. }
  3758. if iNdEx >= l {
  3759. return io.ErrUnexpectedEOF
  3760. }
  3761. b := dAtA[iNdEx]
  3762. iNdEx++
  3763. m.OldAreaId |= (int64(b) & 0x7F) << shift
  3764. if b < 0x80 {
  3765. break
  3766. }
  3767. }
  3768. case 16:
  3769. if wireType != 2 {
  3770. return fmt.Errorf("proto: wrong wireType = %d for field Background", wireType)
  3771. }
  3772. var stringLen uint64
  3773. for shift := uint(0); ; shift += 7 {
  3774. if shift >= 64 {
  3775. return ErrIntOverflowRoom
  3776. }
  3777. if iNdEx >= l {
  3778. return io.ErrUnexpectedEOF
  3779. }
  3780. b := dAtA[iNdEx]
  3781. iNdEx++
  3782. stringLen |= (uint64(b) & 0x7F) << shift
  3783. if b < 0x80 {
  3784. break
  3785. }
  3786. }
  3787. intStringLen := int(stringLen)
  3788. if intStringLen < 0 {
  3789. return ErrInvalidLengthRoom
  3790. }
  3791. postIndex := iNdEx + intStringLen
  3792. if postIndex > l {
  3793. return io.ErrUnexpectedEOF
  3794. }
  3795. m.Background = string(dAtA[iNdEx:postIndex])
  3796. iNdEx = postIndex
  3797. case 17:
  3798. if wireType != 2 {
  3799. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  3800. }
  3801. var stringLen uint64
  3802. for shift := uint(0); ; shift += 7 {
  3803. if shift >= 64 {
  3804. return ErrIntOverflowRoom
  3805. }
  3806. if iNdEx >= l {
  3807. return io.ErrUnexpectedEOF
  3808. }
  3809. b := dAtA[iNdEx]
  3810. iNdEx++
  3811. stringLen |= (uint64(b) & 0x7F) << shift
  3812. if b < 0x80 {
  3813. break
  3814. }
  3815. }
  3816. intStringLen := int(stringLen)
  3817. if intStringLen < 0 {
  3818. return ErrInvalidLengthRoom
  3819. }
  3820. postIndex := iNdEx + intStringLen
  3821. if postIndex > l {
  3822. return io.ErrUnexpectedEOF
  3823. }
  3824. m.Title = string(dAtA[iNdEx:postIndex])
  3825. iNdEx = postIndex
  3826. case 18:
  3827. if wireType != 0 {
  3828. return fmt.Errorf("proto: wrong wireType = %d for field IsStrictRoom", wireType)
  3829. }
  3830. var v int
  3831. for shift := uint(0); ; shift += 7 {
  3832. if shift >= 64 {
  3833. return ErrIntOverflowRoom
  3834. }
  3835. if iNdEx >= l {
  3836. return io.ErrUnexpectedEOF
  3837. }
  3838. b := dAtA[iNdEx]
  3839. iNdEx++
  3840. v |= (int(b) & 0x7F) << shift
  3841. if b < 0x80 {
  3842. break
  3843. }
  3844. }
  3845. m.IsStrictRoom = bool(v != 0)
  3846. case 19:
  3847. if wireType != 2 {
  3848. return fmt.Errorf("proto: wrong wireType = %d for field UserCover", wireType)
  3849. }
  3850. var stringLen uint64
  3851. for shift := uint(0); ; shift += 7 {
  3852. if shift >= 64 {
  3853. return ErrIntOverflowRoom
  3854. }
  3855. if iNdEx >= l {
  3856. return io.ErrUnexpectedEOF
  3857. }
  3858. b := dAtA[iNdEx]
  3859. iNdEx++
  3860. stringLen |= (uint64(b) & 0x7F) << shift
  3861. if b < 0x80 {
  3862. break
  3863. }
  3864. }
  3865. intStringLen := int(stringLen)
  3866. if intStringLen < 0 {
  3867. return ErrInvalidLengthRoom
  3868. }
  3869. postIndex := iNdEx + intStringLen
  3870. if postIndex > l {
  3871. return io.ErrUnexpectedEOF
  3872. }
  3873. m.UserCover = string(dAtA[iNdEx:postIndex])
  3874. iNdEx = postIndex
  3875. case 20:
  3876. if wireType != 2 {
  3877. return fmt.Errorf("proto: wrong wireType = %d for field LiveTime", wireType)
  3878. }
  3879. var stringLen uint64
  3880. for shift := uint(0); ; shift += 7 {
  3881. if shift >= 64 {
  3882. return ErrIntOverflowRoom
  3883. }
  3884. if iNdEx >= l {
  3885. return io.ErrUnexpectedEOF
  3886. }
  3887. b := dAtA[iNdEx]
  3888. iNdEx++
  3889. stringLen |= (uint64(b) & 0x7F) << shift
  3890. if b < 0x80 {
  3891. break
  3892. }
  3893. }
  3894. intStringLen := int(stringLen)
  3895. if intStringLen < 0 {
  3896. return ErrInvalidLengthRoom
  3897. }
  3898. postIndex := iNdEx + intStringLen
  3899. if postIndex > l {
  3900. return io.ErrUnexpectedEOF
  3901. }
  3902. m.LiveTime = string(dAtA[iNdEx:postIndex])
  3903. iNdEx = postIndex
  3904. case 21:
  3905. if wireType != 2 {
  3906. return fmt.Errorf("proto: wrong wireType = %d for field Pendants", wireType)
  3907. }
  3908. var stringLen uint64
  3909. for shift := uint(0); ; shift += 7 {
  3910. if shift >= 64 {
  3911. return ErrIntOverflowRoom
  3912. }
  3913. if iNdEx >= l {
  3914. return io.ErrUnexpectedEOF
  3915. }
  3916. b := dAtA[iNdEx]
  3917. iNdEx++
  3918. stringLen |= (uint64(b) & 0x7F) << shift
  3919. if b < 0x80 {
  3920. break
  3921. }
  3922. }
  3923. intStringLen := int(stringLen)
  3924. if intStringLen < 0 {
  3925. return ErrInvalidLengthRoom
  3926. }
  3927. postIndex := iNdEx + intStringLen
  3928. if postIndex > l {
  3929. return io.ErrUnexpectedEOF
  3930. }
  3931. m.Pendants = string(dAtA[iNdEx:postIndex])
  3932. iNdEx = postIndex
  3933. case 22:
  3934. if wireType != 2 {
  3935. return fmt.Errorf("proto: wrong wireType = %d for field AreaPendants", wireType)
  3936. }
  3937. var stringLen uint64
  3938. for shift := uint(0); ; shift += 7 {
  3939. if shift >= 64 {
  3940. return ErrIntOverflowRoom
  3941. }
  3942. if iNdEx >= l {
  3943. return io.ErrUnexpectedEOF
  3944. }
  3945. b := dAtA[iNdEx]
  3946. iNdEx++
  3947. stringLen |= (uint64(b) & 0x7F) << shift
  3948. if b < 0x80 {
  3949. break
  3950. }
  3951. }
  3952. intStringLen := int(stringLen)
  3953. if intStringLen < 0 {
  3954. return ErrInvalidLengthRoom
  3955. }
  3956. postIndex := iNdEx + intStringLen
  3957. if postIndex > l {
  3958. return io.ErrUnexpectedEOF
  3959. }
  3960. m.AreaPendants = string(dAtA[iNdEx:postIndex])
  3961. iNdEx = postIndex
  3962. case 23:
  3963. if wireType != 2 {
  3964. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  3965. }
  3966. var stringLen uint64
  3967. for shift := uint(0); ; shift += 7 {
  3968. if shift >= 64 {
  3969. return ErrIntOverflowRoom
  3970. }
  3971. if iNdEx >= l {
  3972. return io.ErrUnexpectedEOF
  3973. }
  3974. b := dAtA[iNdEx]
  3975. iNdEx++
  3976. stringLen |= (uint64(b) & 0x7F) << shift
  3977. if b < 0x80 {
  3978. break
  3979. }
  3980. }
  3981. intStringLen := int(stringLen)
  3982. if intStringLen < 0 {
  3983. return ErrInvalidLengthRoom
  3984. }
  3985. postIndex := iNdEx + intStringLen
  3986. if postIndex > l {
  3987. return io.ErrUnexpectedEOF
  3988. }
  3989. m.Description = string(dAtA[iNdEx:postIndex])
  3990. iNdEx = postIndex
  3991. case 24:
  3992. if wireType != 2 {
  3993. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  3994. }
  3995. var stringLen uint64
  3996. for shift := uint(0); ; shift += 7 {
  3997. if shift >= 64 {
  3998. return ErrIntOverflowRoom
  3999. }
  4000. if iNdEx >= l {
  4001. return io.ErrUnexpectedEOF
  4002. }
  4003. b := dAtA[iNdEx]
  4004. iNdEx++
  4005. stringLen |= (uint64(b) & 0x7F) << shift
  4006. if b < 0x80 {
  4007. break
  4008. }
  4009. }
  4010. intStringLen := int(stringLen)
  4011. if intStringLen < 0 {
  4012. return ErrInvalidLengthRoom
  4013. }
  4014. postIndex := iNdEx + intStringLen
  4015. if postIndex > l {
  4016. return io.ErrUnexpectedEOF
  4017. }
  4018. m.Tags = string(dAtA[iNdEx:postIndex])
  4019. iNdEx = postIndex
  4020. case 25:
  4021. if wireType != 2 {
  4022. return fmt.Errorf("proto: wrong wireType = %d for field Verify", wireType)
  4023. }
  4024. var stringLen uint64
  4025. for shift := uint(0); ; shift += 7 {
  4026. if shift >= 64 {
  4027. return ErrIntOverflowRoom
  4028. }
  4029. if iNdEx >= l {
  4030. return io.ErrUnexpectedEOF
  4031. }
  4032. b := dAtA[iNdEx]
  4033. iNdEx++
  4034. stringLen |= (uint64(b) & 0x7F) << shift
  4035. if b < 0x80 {
  4036. break
  4037. }
  4038. }
  4039. intStringLen := int(stringLen)
  4040. if intStringLen < 0 {
  4041. return ErrInvalidLengthRoom
  4042. }
  4043. postIndex := iNdEx + intStringLen
  4044. if postIndex > l {
  4045. return io.ErrUnexpectedEOF
  4046. }
  4047. m.Verify = string(dAtA[iNdEx:postIndex])
  4048. iNdEx = postIndex
  4049. case 26:
  4050. if wireType != 2 {
  4051. return fmt.Errorf("proto: wrong wireType = %d for field HotWords", wireType)
  4052. }
  4053. var stringLen uint64
  4054. for shift := uint(0); ; shift += 7 {
  4055. if shift >= 64 {
  4056. return ErrIntOverflowRoom
  4057. }
  4058. if iNdEx >= l {
  4059. return io.ErrUnexpectedEOF
  4060. }
  4061. b := dAtA[iNdEx]
  4062. iNdEx++
  4063. stringLen |= (uint64(b) & 0x7F) << shift
  4064. if b < 0x80 {
  4065. break
  4066. }
  4067. }
  4068. intStringLen := int(stringLen)
  4069. if intStringLen < 0 {
  4070. return ErrInvalidLengthRoom
  4071. }
  4072. postIndex := iNdEx + intStringLen
  4073. if postIndex > l {
  4074. return io.ErrUnexpectedEOF
  4075. }
  4076. m.HotWords = append(m.HotWords, string(dAtA[iNdEx:postIndex]))
  4077. iNdEx = postIndex
  4078. case 27:
  4079. if wireType != 0 {
  4080. return fmt.Errorf("proto: wrong wireType = %d for field AllowChangeAreaTime", wireType)
  4081. }
  4082. m.AllowChangeAreaTime = 0
  4083. for shift := uint(0); ; shift += 7 {
  4084. if shift >= 64 {
  4085. return ErrIntOverflowRoom
  4086. }
  4087. if iNdEx >= l {
  4088. return io.ErrUnexpectedEOF
  4089. }
  4090. b := dAtA[iNdEx]
  4091. iNdEx++
  4092. m.AllowChangeAreaTime |= (int64(b) & 0x7F) << shift
  4093. if b < 0x80 {
  4094. break
  4095. }
  4096. }
  4097. case 28:
  4098. if wireType != 0 {
  4099. return fmt.Errorf("proto: wrong wireType = %d for field AllowUploadCoverTime", wireType)
  4100. }
  4101. m.AllowUploadCoverTime = 0
  4102. for shift := uint(0); ; shift += 7 {
  4103. if shift >= 64 {
  4104. return ErrIntOverflowRoom
  4105. }
  4106. if iNdEx >= l {
  4107. return io.ErrUnexpectedEOF
  4108. }
  4109. b := dAtA[iNdEx]
  4110. iNdEx++
  4111. m.AllowUploadCoverTime |= (int64(b) & 0x7F) << shift
  4112. if b < 0x80 {
  4113. break
  4114. }
  4115. }
  4116. case 29:
  4117. if wireType != 2 {
  4118. return fmt.Errorf("proto: wrong wireType = %d for field NewPendants", wireType)
  4119. }
  4120. var msglen int
  4121. for shift := uint(0); ; shift += 7 {
  4122. if shift >= 64 {
  4123. return ErrIntOverflowRoom
  4124. }
  4125. if iNdEx >= l {
  4126. return io.ErrUnexpectedEOF
  4127. }
  4128. b := dAtA[iNdEx]
  4129. iNdEx++
  4130. msglen |= (int(b) & 0x7F) << shift
  4131. if b < 0x80 {
  4132. break
  4133. }
  4134. }
  4135. if msglen < 0 {
  4136. return ErrInvalidLengthRoom
  4137. }
  4138. postIndex := iNdEx + msglen
  4139. if postIndex > l {
  4140. return io.ErrUnexpectedEOF
  4141. }
  4142. if m.NewPendants == nil {
  4143. m.NewPendants = &RoomGetInfoResp_Pendants{}
  4144. }
  4145. if err := m.NewPendants.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4146. return err
  4147. }
  4148. iNdEx = postIndex
  4149. case 30:
  4150. if wireType != 2 {
  4151. return fmt.Errorf("proto: wrong wireType = %d for field UpSession", wireType)
  4152. }
  4153. var stringLen uint64
  4154. for shift := uint(0); ; shift += 7 {
  4155. if shift >= 64 {
  4156. return ErrIntOverflowRoom
  4157. }
  4158. if iNdEx >= l {
  4159. return io.ErrUnexpectedEOF
  4160. }
  4161. b := dAtA[iNdEx]
  4162. iNdEx++
  4163. stringLen |= (uint64(b) & 0x7F) << shift
  4164. if b < 0x80 {
  4165. break
  4166. }
  4167. }
  4168. intStringLen := int(stringLen)
  4169. if intStringLen < 0 {
  4170. return ErrInvalidLengthRoom
  4171. }
  4172. postIndex := iNdEx + intStringLen
  4173. if postIndex > l {
  4174. return io.ErrUnexpectedEOF
  4175. }
  4176. m.UpSession = string(dAtA[iNdEx:postIndex])
  4177. iNdEx = postIndex
  4178. case 31:
  4179. if wireType != 0 {
  4180. return fmt.Errorf("proto: wrong wireType = %d for field PkStatus", wireType)
  4181. }
  4182. m.PkStatus = 0
  4183. for shift := uint(0); ; shift += 7 {
  4184. if shift >= 64 {
  4185. return ErrIntOverflowRoom
  4186. }
  4187. if iNdEx >= l {
  4188. return io.ErrUnexpectedEOF
  4189. }
  4190. b := dAtA[iNdEx]
  4191. iNdEx++
  4192. m.PkStatus |= (int64(b) & 0x7F) << shift
  4193. if b < 0x80 {
  4194. break
  4195. }
  4196. }
  4197. default:
  4198. iNdEx = preIndex
  4199. skippy, err := skipRoom(dAtA[iNdEx:])
  4200. if err != nil {
  4201. return err
  4202. }
  4203. if skippy < 0 {
  4204. return ErrInvalidLengthRoom
  4205. }
  4206. if (iNdEx + skippy) > l {
  4207. return io.ErrUnexpectedEOF
  4208. }
  4209. iNdEx += skippy
  4210. }
  4211. }
  4212. if iNdEx > l {
  4213. return io.ErrUnexpectedEOF
  4214. }
  4215. return nil
  4216. }
  4217. func skipRoom(dAtA []byte) (n int, err error) {
  4218. l := len(dAtA)
  4219. iNdEx := 0
  4220. for iNdEx < l {
  4221. var wire uint64
  4222. for shift := uint(0); ; shift += 7 {
  4223. if shift >= 64 {
  4224. return 0, ErrIntOverflowRoom
  4225. }
  4226. if iNdEx >= l {
  4227. return 0, io.ErrUnexpectedEOF
  4228. }
  4229. b := dAtA[iNdEx]
  4230. iNdEx++
  4231. wire |= (uint64(b) & 0x7F) << shift
  4232. if b < 0x80 {
  4233. break
  4234. }
  4235. }
  4236. wireType := int(wire & 0x7)
  4237. switch wireType {
  4238. case 0:
  4239. for shift := uint(0); ; shift += 7 {
  4240. if shift >= 64 {
  4241. return 0, ErrIntOverflowRoom
  4242. }
  4243. if iNdEx >= l {
  4244. return 0, io.ErrUnexpectedEOF
  4245. }
  4246. iNdEx++
  4247. if dAtA[iNdEx-1] < 0x80 {
  4248. break
  4249. }
  4250. }
  4251. return iNdEx, nil
  4252. case 1:
  4253. iNdEx += 8
  4254. return iNdEx, nil
  4255. case 2:
  4256. var length int
  4257. for shift := uint(0); ; shift += 7 {
  4258. if shift >= 64 {
  4259. return 0, ErrIntOverflowRoom
  4260. }
  4261. if iNdEx >= l {
  4262. return 0, io.ErrUnexpectedEOF
  4263. }
  4264. b := dAtA[iNdEx]
  4265. iNdEx++
  4266. length |= (int(b) & 0x7F) << shift
  4267. if b < 0x80 {
  4268. break
  4269. }
  4270. }
  4271. iNdEx += length
  4272. if length < 0 {
  4273. return 0, ErrInvalidLengthRoom
  4274. }
  4275. return iNdEx, nil
  4276. case 3:
  4277. for {
  4278. var innerWire uint64
  4279. var start int = iNdEx
  4280. for shift := uint(0); ; shift += 7 {
  4281. if shift >= 64 {
  4282. return 0, ErrIntOverflowRoom
  4283. }
  4284. if iNdEx >= l {
  4285. return 0, io.ErrUnexpectedEOF
  4286. }
  4287. b := dAtA[iNdEx]
  4288. iNdEx++
  4289. innerWire |= (uint64(b) & 0x7F) << shift
  4290. if b < 0x80 {
  4291. break
  4292. }
  4293. }
  4294. innerWireType := int(innerWire & 0x7)
  4295. if innerWireType == 4 {
  4296. break
  4297. }
  4298. next, err := skipRoom(dAtA[start:])
  4299. if err != nil {
  4300. return 0, err
  4301. }
  4302. iNdEx = start + next
  4303. }
  4304. return iNdEx, nil
  4305. case 4:
  4306. return iNdEx, nil
  4307. case 5:
  4308. iNdEx += 4
  4309. return iNdEx, nil
  4310. default:
  4311. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4312. }
  4313. }
  4314. panic("unreachable")
  4315. }
  4316. var (
  4317. ErrInvalidLengthRoom = fmt.Errorf("proto: negative length found during unmarshaling")
  4318. ErrIntOverflowRoom = fmt.Errorf("proto: integer overflow")
  4319. )
  4320. func init() { proto.RegisterFile("v1/Room.proto", fileDescriptor_Room_ebfa725c6fe265e6) }
  4321. var fileDescriptor_Room_ebfa725c6fe265e6 = []byte{
  4322. // 1206 bytes of a gzipped FileDescriptorProto
  4323. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x51, 0x6f, 0x1b, 0xc5,
  4324. 0x13, 0xaf, 0x7d, 0x4e, 0x72, 0x37, 0x76, 0x1c, 0x67, 0xd3, 0x7f, 0x73, 0x75, 0x53, 0xd7, 0xcd,
  4325. 0xbf, 0x20, 0x83, 0x20, 0x28, 0x2e, 0x48, 0xa8, 0x88, 0x4a, 0xb4, 0xa5, 0xc8, 0x02, 0x41, 0x75,
  4326. 0x29, 0x54, 0xe2, 0x81, 0xd3, 0xc5, 0xbb, 0xb6, 0x57, 0x39, 0xdf, 0x5e, 0x6e, 0xd7, 0x8e, 0xfc,
  4327. 0x29, 0x40, 0x88, 0x67, 0xbe, 0x05, 0xdf, 0x81, 0xc7, 0x3e, 0xf2, 0x58, 0x25, 0x5f, 0x04, 0xcd,
  4328. 0xec, 0x9d, 0xed, 0x84, 0xa4, 0xa5, 0x12, 0x4f, 0xb7, 0xf3, 0xdb, 0x99, 0xd9, 0x99, 0xd9, 0x99,
  4329. 0xdf, 0x1e, 0xac, 0x4f, 0xf7, 0x3f, 0x0a, 0x94, 0x1a, 0xef, 0xa5, 0x99, 0x32, 0x8a, 0xad, 0x65,
  4330. 0xb8, 0x9e, 0xee, 0xef, 0x3e, 0x04, 0x86, 0xf0, 0x57, 0xc2, 0xf4, 0x92, 0x81, 0x7a, 0x34, 0xeb,
  4331. 0xf1, 0x40, 0x1c, 0xb3, 0x06, 0x38, 0x92, 0x6b, 0xbf, 0xd4, 0x76, 0x3a, 0x4e, 0x80, 0x4b, 0x76,
  4332. 0x03, 0x56, 0x07, 0x52, 0xc4, 0x5c, 0xfb, 0xe5, 0xb6, 0xd3, 0xf1, 0x82, 0x5c, 0xda, 0xfd, 0x79,
  4333. 0x15, 0xb6, 0xfe, 0xe1, 0x40, 0xa7, 0x8c, 0x41, 0xa5, 0xaf, 0xb8, 0xf0, 0x4b, 0xed, 0x52, 0xc7,
  4334. 0x09, 0x68, 0x8d, 0x5e, 0xc7, 0x7a, 0xe8, 0x97, 0xdb, 0xa5, 0x8e, 0x17, 0xe0, 0x92, 0x3d, 0x80,
  4335. 0x0a, 0x8f, 0x4c, 0xe4, 0x3b, 0x6d, 0xa7, 0x53, 0xed, 0xbe, 0xbb, 0x97, 0x47, 0xb5, 0x77, 0x89,
  4336. 0xc7, 0xbd, 0x27, 0x91, 0x89, 0xbe, 0x4c, 0x4c, 0x36, 0x0b, 0xc8, 0xa6, 0xf9, 0x13, 0x78, 0x73,
  4337. 0x08, 0x5d, 0x1f, 0x89, 0x19, 0x9d, 0xe6, 0x05, 0xb8, 0x64, 0x9f, 0xc1, 0xca, 0x34, 0x8a, 0x27,
  4338. 0x82, 0x8e, 0xab, 0x76, 0xdf, 0x79, 0xad, 0x6f, 0xc4, 0x10, 0x08, 0xac, 0xcd, 0x83, 0xf2, 0xa7,
  4339. 0xa5, 0xe6, 0x1f, 0x15, 0x70, 0x0b, 0x1c, 0xd3, 0x47, 0x7b, 0xc9, 0xf3, 0x84, 0x72, 0x89, 0x5d,
  4340. 0x87, 0x95, 0x49, 0x12, 0x8d, 0x45, 0x9e, 0x94, 0x15, 0x10, 0xed, 0xab, 0xa9, 0xc8, 0x7c, 0xc7,
  4341. 0xa2, 0x24, 0x60, 0x8c, 0x13, 0xc9, 0xfd, 0x0a, 0x39, 0xc0, 0x25, 0xbb, 0x05, 0x5e, 0x2c, 0xa7,
  4342. 0x22, 0x34, 0x72, 0x2c, 0xfc, 0x15, 0xd2, 0x75, 0x11, 0x78, 0x2e, 0xc7, 0x82, 0xdd, 0x85, 0x5a,
  4343. 0xa6, 0x26, 0x09, 0x0f, 0xb5, 0x89, 0xcc, 0x44, 0xfb, 0xab, 0x64, 0x57, 0x25, 0xec, 0x80, 0x20,
  4344. 0xb6, 0x0d, 0x6b, 0x2a, 0x09, 0x07, 0x71, 0x34, 0xf4, 0xd7, 0x6c, 0x58, 0x2a, 0x79, 0x1a, 0x47,
  4345. 0x43, 0x0c, 0xc0, 0x48, 0x13, 0x0b, 0xdf, 0xb5, 0x01, 0x90, 0xc0, 0xee, 0x40, 0x35, 0x56, 0xfd,
  4346. 0xa3, 0xc2, 0xa1, 0x47, 0x7b, 0x80, 0x50, 0xee, 0xef, 0xff, 0xb0, 0x3e, 0x92, 0x9c, 0x8b, 0xa4,
  4347. 0x50, 0x01, 0x52, 0xa9, 0x59, 0x30, 0x57, 0xba, 0x0d, 0x30, 0xd1, 0x22, 0x0b, 0x6d, 0x86, 0x55,
  4348. 0xd2, 0xf0, 0x10, 0x79, 0x4c, 0x59, 0xde, 0x04, 0x57, 0x8f, 0x54, 0x66, 0x42, 0xc9, 0xfd, 0x1a,
  4349. 0x05, 0xb5, 0x46, 0x72, 0x8f, 0x63, 0x11, 0x55, 0x12, 0xcb, 0x44, 0xf8, 0xeb, 0x45, 0xb4, 0x28,
  4350. 0x61, 0xaf, 0x44, 0x99, 0x88, 0xfc, 0xba, 0xed, 0x15, 0x5c, 0xb3, 0x1d, 0x00, 0xfc, 0x86, 0xd3,
  4351. 0x2e, 0x3a, 0xda, 0xa0, 0x1d, 0x17, 0x91, 0x1f, 0xba, 0x3d, 0xce, 0xde, 0x83, 0xcd, 0x62, 0x37,
  4352. 0x8d, 0x32, 0x91, 0xd0, 0x69, 0x0d, 0x52, 0xaa, 0x5b, 0xa5, 0x67, 0x04, 0xf7, 0x38, 0x6b, 0x43,
  4353. 0xad, 0x50, 0xa5, 0x8b, 0xda, 0xb4, 0x59, 0x5b, 0xad, 0x6f, 0xf1, 0xb6, 0x3e, 0x84, 0xad, 0x0b,
  4354. 0xce, 0x48, 0x91, 0x91, 0x62, 0x63, 0xd9, 0x1d, 0xa9, 0xb7, 0x00, 0x22, 0x63, 0x44, 0x62, 0xa4,
  4355. 0x4a, 0xb4, 0xbf, 0x45, 0x87, 0x2e, 0x21, 0xbb, 0x1f, 0x43, 0x7d, 0xa9, 0xc5, 0x70, 0x9a, 0xea,
  4356. 0x50, 0x9e, 0x37, 0x4e, 0x59, 0x72, 0xcc, 0x77, 0x90, 0xa9, 0x71, 0xde, 0x33, 0xb4, 0xde, 0x7d,
  4357. 0x55, 0x83, 0x8d, 0x73, 0x66, 0xff, 0x7a, 0x86, 0xf6, 0xe7, 0x33, 0x84, 0x7d, 0x7e, 0xfb, 0xb2,
  4358. 0x3e, 0x9f, 0xcf, 0x4f, 0x3e, 0x3a, 0x47, 0xb0, 0xf1, 0x4c, 0x24, 0x3c, 0x4a, 0xcc, 0x0b, 0x69,
  4359. 0x46, 0x4f, 0x84, 0xee, 0xe3, 0x59, 0x94, 0xb5, 0x9d, 0x20, 0x5a, 0xb3, 0x26, 0xb8, 0xa9, 0xd2,
  4360. 0x12, 0xd3, 0xa2, 0x03, 0x9d, 0x60, 0x2e, 0x63, 0x87, 0xd9, 0xf1, 0xca, 0x5b, 0x9c, 0x04, 0xf4,
  4361. 0xc2, 0x85, 0xee, 0x53, 0x8f, 0x7b, 0x01, 0xad, 0x9b, 0xdf, 0xc1, 0x5a, 0x7e, 0xd8, 0x7f, 0x73,
  4362. 0x48, 0xf3, 0xb7, 0x32, 0xb8, 0xb9, 0x47, 0xcd, 0x1e, 0xc2, 0xca, 0x20, 0x2b, 0x7c, 0x56, 0xbb,
  4363. 0x9d, 0x2b, 0xd3, 0xbf, 0x90, 0x70, 0x60, 0xcd, 0xd0, 0xfe, 0x30, 0xe2, 0xc3, 0x82, 0x26, 0xde,
  4364. 0xc2, 0x9e, 0xcc, 0xd8, 0x63, 0xa8, 0x8d, 0xd5, 0xa1, 0x8c, 0x45, 0x68, 0xc3, 0xb0, 0xb7, 0xd0,
  4365. 0x7e, 0x93, 0x9b, 0xa0, 0x6a, 0xad, 0x9e, 0x52, 0x10, 0x0b, 0x27, 0x36, 0x96, 0xca, 0xdb, 0x39,
  4366. 0x79, 0x84, 0x46, 0xcd, 0xdf, 0x5d, 0xa8, 0xe0, 0x1d, 0x17, 0x3c, 0x53, 0x5a, 0xf0, 0xcc, 0x36,
  4367. 0x10, 0xdf, 0xe3, 0x90, 0x94, 0x17, 0xf4, 0xd5, 0xe3, 0xe7, 0x86, 0xd5, 0x39, 0x3f, 0xac, 0x4d,
  4368. 0x70, 0x8f, 0xc4, 0xcc, 0x26, 0x65, 0xaf, 0x73, 0x2e, 0x2f, 0x0d, 0xf2, 0xca, 0xb9, 0x41, 0xbe,
  4369. 0x03, 0x55, 0xa9, 0xc3, 0x54, 0x65, 0x26, 0x8b, 0xa4, 0x21, 0xc6, 0x72, 0x03, 0x90, 0xfa, 0x59,
  4370. 0x8e, 0xb0, 0x0e, 0x34, 0x28, 0x10, 0x2d, 0x63, 0x9c, 0x33, 0x33, 0x4b, 0x05, 0x31, 0x97, 0x17,
  4371. 0xd4, 0x11, 0x3f, 0x20, 0xf8, 0xf9, 0x2c, 0x15, 0xec, 0x03, 0x60, 0xcb, 0x9a, 0x5a, 0xf4, 0x55,
  4372. 0xc2, 0x89, 0xce, 0x9c, 0xa0, 0xb1, 0xd0, 0x3d, 0x20, 0x9c, 0xbd, 0x0f, 0x9b, 0xcb, 0xda, 0xb1,
  4373. 0x98, 0x8a, 0x98, 0xf8, 0xcd, 0x09, 0x36, 0x16, 0xca, 0xdf, 0x20, 0x4c, 0x2c, 0x88, 0xa4, 0xbb,
  4374. 0x44, 0x71, 0x4e, 0x00, 0x08, 0x2d, 0x58, 0x95, 0xf8, 0x40, 0x72, 0x62, 0x37, 0x27, 0x58, 0x45,
  4375. 0xb1, 0xc7, 0xd9, 0x3d, 0xa8, 0xe7, 0x04, 0x51, 0xec, 0x5b, 0x82, 0xab, 0x59, 0xf4, 0x0b, 0xab,
  4376. 0x75, 0x0b, 0x3c, 0xda, 0xa6, 0x4e, 0x5f, 0xb7, 0x95, 0x43, 0x80, 0xc8, 0xa3, 0x03, 0x8d, 0x65,
  4377. 0x17, 0xa4, 0x53, 0xb7, 0x05, 0x58, 0x38, 0xc9, 0x69, 0xa6, 0xaa, 0x62, 0x3e, 0x3f, 0xc9, 0x32,
  4378. 0xa0, 0xa7, 0x62, 0x9e, 0x1f, 0xd3, 0x02, 0x38, 0x8c, 0xfa, 0x47, 0x43, 0x7a, 0x0f, 0x88, 0xfb,
  4379. 0xbc, 0x60, 0x09, 0x59, 0x3c, 0x01, 0x9b, 0xcb, 0x4f, 0xc0, 0x3d, 0xa8, 0x4b, 0x1d, 0x6a, 0x93,
  4380. 0xc9, 0xbe, 0x09, 0xb1, 0x32, 0x44, 0x73, 0x6e, 0x50, 0x93, 0xfa, 0x80, 0x40, 0x6c, 0xb5, 0x0b,
  4381. 0x14, 0xbf, 0x75, 0x91, 0xe2, 0xcf, 0x3d, 0x5b, 0xd7, 0x2f, 0x3c, 0x5b, 0x38, 0xcf, 0xf9, 0x70,
  4382. 0xfa, 0xff, 0xb3, 0x7b, 0x85, 0x8c, 0xef, 0x0b, 0xe5, 0x33, 0x57, 0xb8, 0x61, 0xdf, 0x17, 0x04,
  4383. 0xe7, 0x13, 0xdd, 0x86, 0x2a, 0xf2, 0x46, 0x26, 0x53, 0xe2, 0x84, 0x6d, 0x52, 0x59, 0x86, 0x90,
  4384. 0x46, 0x4c, 0x34, 0xd4, 0xbe, 0x6f, 0x69, 0x04, 0xd7, 0xd8, 0x92, 0x53, 0x91, 0xc9, 0xc1, 0xcc,
  4385. 0xbf, 0x49, 0x68, 0x2e, 0x61, 0xac, 0x23, 0x65, 0xc2, 0x13, 0x95, 0x71, 0xed, 0x37, 0xe9, 0xd7,
  4386. 0xc5, 0x1d, 0x29, 0xf3, 0x02, 0x65, 0x76, 0x1f, 0x6e, 0x44, 0x71, 0xac, 0x4e, 0xc2, 0xfe, 0x28,
  4387. 0x4a, 0x86, 0xc2, 0x16, 0x9b, 0xb2, 0xba, 0x45, 0xe5, 0xde, 0xa2, 0xdd, 0xc7, 0xb4, 0x89, 0x65,
  4388. 0xa7, 0x04, 0x3f, 0x81, 0x6d, 0x6b, 0x34, 0x49, 0x63, 0x15, 0x71, 0x5b, 0x24, 0x6b, 0xb5, 0x43,
  4389. 0x56, 0xd7, 0x69, 0xfb, 0x7b, 0xda, 0xa5, 0x82, 0x91, 0xd9, 0x13, 0xa8, 0x25, 0xe2, 0x64, 0x91,
  4390. 0xfa, 0x6d, 0x9a, 0xf1, 0xbb, 0x6f, 0x9a, 0x71, 0x1d, 0x54, 0x13, 0x71, 0x32, 0x2f, 0x0e, 0xde,
  4391. 0x4c, 0x1a, 0x6a, 0xa1, 0x35, 0xd6, 0xa6, 0x95, 0xdf, 0x4c, 0x7a, 0x60, 0x01, 0xcc, 0x36, 0x9d,
  4392. 0xbf, 0xef, 0x77, 0x72, 0x36, 0xcd, 0x5f, 0xf7, 0xee, 0xaf, 0x25, 0xa8, 0xd0, 0xf5, 0x7e, 0x0d,
  4393. 0xf5, 0xa1, 0x30, 0xa1, 0x4c, 0x06, 0x2a, 0x3c, 0x9c, 0x85, 0xf8, 0x23, 0x72, 0xf5, 0xdf, 0xd1,
  4394. 0x71, 0x73, 0xe7, 0x75, 0xbf, 0x4e, 0xec, 0x73, 0x70, 0x0b, 0x67, 0x6c, 0xfb, 0xf2, 0x6c, 0x8e,
  4395. 0x9b, 0xfe, 0x55, 0x69, 0x3e, 0xda, 0xf9, 0xf3, 0xb4, 0x55, 0x7a, 0x79, 0xda, 0x2a, 0xbd, 0x3a,
  4396. 0x6d, 0x95, 0x7e, 0x39, 0x6b, 0x5d, 0x7b, 0x79, 0xd6, 0xba, 0xf6, 0xd7, 0x59, 0xeb, 0xda, 0x8f,
  4397. 0xe5, 0xe9, 0xfe, 0xe1, 0x2a, 0xfd, 0xad, 0xde, 0xff, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x85, 0xf9,
  4398. 0xa5, 0xa3, 0xbe, 0x0a, 0x00, 0x00,
  4399. }