Bubble.pb.go 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/Bubble.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type BubbleGetCurrentReq struct {
  19. // 用户 uid
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. // 房间号
  22. RoomId int64 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  23. }
  24. func (m *BubbleGetCurrentReq) Reset() { *m = BubbleGetCurrentReq{} }
  25. func (m *BubbleGetCurrentReq) String() string { return proto.CompactTextString(m) }
  26. func (*BubbleGetCurrentReq) ProtoMessage() {}
  27. func (*BubbleGetCurrentReq) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_Bubble_05538dd71b728df4, []int{0}
  29. }
  30. func (m *BubbleGetCurrentReq) XXX_Unmarshal(b []byte) error {
  31. return m.Unmarshal(b)
  32. }
  33. func (m *BubbleGetCurrentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. if deterministic {
  35. return xxx_messageInfo_BubbleGetCurrentReq.Marshal(b, m, deterministic)
  36. } else {
  37. b = b[:cap(b)]
  38. n, err := m.MarshalTo(b)
  39. if err != nil {
  40. return nil, err
  41. }
  42. return b[:n], nil
  43. }
  44. }
  45. func (dst *BubbleGetCurrentReq) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_BubbleGetCurrentReq.Merge(dst, src)
  47. }
  48. func (m *BubbleGetCurrentReq) XXX_Size() int {
  49. return m.Size()
  50. }
  51. func (m *BubbleGetCurrentReq) XXX_DiscardUnknown() {
  52. xxx_messageInfo_BubbleGetCurrentReq.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_BubbleGetCurrentReq proto.InternalMessageInfo
  55. func (m *BubbleGetCurrentReq) GetUid() int64 {
  56. if m != nil {
  57. return m.Uid
  58. }
  59. return 0
  60. }
  61. func (m *BubbleGetCurrentReq) GetRoomId() int64 {
  62. if m != nil {
  63. return m.RoomId
  64. }
  65. return 0
  66. }
  67. type BubbleGetCurrentResp struct {
  68. //
  69. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  70. //
  71. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  72. //
  73. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  74. //
  75. Data *BubbleGetCurrentResp_Data `protobuf:"bytes,4,opt,name=data" json:"data"`
  76. }
  77. func (m *BubbleGetCurrentResp) Reset() { *m = BubbleGetCurrentResp{} }
  78. func (m *BubbleGetCurrentResp) String() string { return proto.CompactTextString(m) }
  79. func (*BubbleGetCurrentResp) ProtoMessage() {}
  80. func (*BubbleGetCurrentResp) Descriptor() ([]byte, []int) {
  81. return fileDescriptor_Bubble_05538dd71b728df4, []int{1}
  82. }
  83. func (m *BubbleGetCurrentResp) XXX_Unmarshal(b []byte) error {
  84. return m.Unmarshal(b)
  85. }
  86. func (m *BubbleGetCurrentResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. if deterministic {
  88. return xxx_messageInfo_BubbleGetCurrentResp.Marshal(b, m, deterministic)
  89. } else {
  90. b = b[:cap(b)]
  91. n, err := m.MarshalTo(b)
  92. if err != nil {
  93. return nil, err
  94. }
  95. return b[:n], nil
  96. }
  97. }
  98. func (dst *BubbleGetCurrentResp) XXX_Merge(src proto.Message) {
  99. xxx_messageInfo_BubbleGetCurrentResp.Merge(dst, src)
  100. }
  101. func (m *BubbleGetCurrentResp) XXX_Size() int {
  102. return m.Size()
  103. }
  104. func (m *BubbleGetCurrentResp) XXX_DiscardUnknown() {
  105. xxx_messageInfo_BubbleGetCurrentResp.DiscardUnknown(m)
  106. }
  107. var xxx_messageInfo_BubbleGetCurrentResp proto.InternalMessageInfo
  108. func (m *BubbleGetCurrentResp) GetCode() int64 {
  109. if m != nil {
  110. return m.Code
  111. }
  112. return 0
  113. }
  114. func (m *BubbleGetCurrentResp) GetMsg() string {
  115. if m != nil {
  116. return m.Msg
  117. }
  118. return ""
  119. }
  120. func (m *BubbleGetCurrentResp) GetMessage() string {
  121. if m != nil {
  122. return m.Message
  123. }
  124. return ""
  125. }
  126. func (m *BubbleGetCurrentResp) GetData() *BubbleGetCurrentResp_Data {
  127. if m != nil {
  128. return m.Data
  129. }
  130. return nil
  131. }
  132. type BubbleGetCurrentResp_Data struct {
  133. // 当前气泡框ID
  134. Bubble int64 `protobuf:"varint,1,opt,name=bubble,proto3" json:"bubble"`
  135. }
  136. func (m *BubbleGetCurrentResp_Data) Reset() { *m = BubbleGetCurrentResp_Data{} }
  137. func (m *BubbleGetCurrentResp_Data) String() string { return proto.CompactTextString(m) }
  138. func (*BubbleGetCurrentResp_Data) ProtoMessage() {}
  139. func (*BubbleGetCurrentResp_Data) Descriptor() ([]byte, []int) {
  140. return fileDescriptor_Bubble_05538dd71b728df4, []int{1, 0}
  141. }
  142. func (m *BubbleGetCurrentResp_Data) XXX_Unmarshal(b []byte) error {
  143. return m.Unmarshal(b)
  144. }
  145. func (m *BubbleGetCurrentResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  146. if deterministic {
  147. return xxx_messageInfo_BubbleGetCurrentResp_Data.Marshal(b, m, deterministic)
  148. } else {
  149. b = b[:cap(b)]
  150. n, err := m.MarshalTo(b)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return b[:n], nil
  155. }
  156. }
  157. func (dst *BubbleGetCurrentResp_Data) XXX_Merge(src proto.Message) {
  158. xxx_messageInfo_BubbleGetCurrentResp_Data.Merge(dst, src)
  159. }
  160. func (m *BubbleGetCurrentResp_Data) XXX_Size() int {
  161. return m.Size()
  162. }
  163. func (m *BubbleGetCurrentResp_Data) XXX_DiscardUnknown() {
  164. xxx_messageInfo_BubbleGetCurrentResp_Data.DiscardUnknown(m)
  165. }
  166. var xxx_messageInfo_BubbleGetCurrentResp_Data proto.InternalMessageInfo
  167. func (m *BubbleGetCurrentResp_Data) GetBubble() int64 {
  168. if m != nil {
  169. return m.Bubble
  170. }
  171. return 0
  172. }
  173. type BubbleGetBubbleReq struct {
  174. // 用户 uid
  175. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  176. // 房间号
  177. RoomId int64 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  178. // 上报上来的气泡框ID
  179. BubbleId int64 `protobuf:"varint,3,opt,name=bubble_id,json=bubbleId,proto3" json:"bubble_id"`
  180. // 上报上来的大航海信息
  181. GuardLevel int64 `protobuf:"varint,4,opt,name=guard_level,json=guardLevel,proto3" json:"guard_level"`
  182. }
  183. func (m *BubbleGetBubbleReq) Reset() { *m = BubbleGetBubbleReq{} }
  184. func (m *BubbleGetBubbleReq) String() string { return proto.CompactTextString(m) }
  185. func (*BubbleGetBubbleReq) ProtoMessage() {}
  186. func (*BubbleGetBubbleReq) Descriptor() ([]byte, []int) {
  187. return fileDescriptor_Bubble_05538dd71b728df4, []int{2}
  188. }
  189. func (m *BubbleGetBubbleReq) XXX_Unmarshal(b []byte) error {
  190. return m.Unmarshal(b)
  191. }
  192. func (m *BubbleGetBubbleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  193. if deterministic {
  194. return xxx_messageInfo_BubbleGetBubbleReq.Marshal(b, m, deterministic)
  195. } else {
  196. b = b[:cap(b)]
  197. n, err := m.MarshalTo(b)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return b[:n], nil
  202. }
  203. }
  204. func (dst *BubbleGetBubbleReq) XXX_Merge(src proto.Message) {
  205. xxx_messageInfo_BubbleGetBubbleReq.Merge(dst, src)
  206. }
  207. func (m *BubbleGetBubbleReq) XXX_Size() int {
  208. return m.Size()
  209. }
  210. func (m *BubbleGetBubbleReq) XXX_DiscardUnknown() {
  211. xxx_messageInfo_BubbleGetBubbleReq.DiscardUnknown(m)
  212. }
  213. var xxx_messageInfo_BubbleGetBubbleReq proto.InternalMessageInfo
  214. func (m *BubbleGetBubbleReq) GetUid() int64 {
  215. if m != nil {
  216. return m.Uid
  217. }
  218. return 0
  219. }
  220. func (m *BubbleGetBubbleReq) GetRoomId() int64 {
  221. if m != nil {
  222. return m.RoomId
  223. }
  224. return 0
  225. }
  226. func (m *BubbleGetBubbleReq) GetBubbleId() int64 {
  227. if m != nil {
  228. return m.BubbleId
  229. }
  230. return 0
  231. }
  232. func (m *BubbleGetBubbleReq) GetGuardLevel() int64 {
  233. if m != nil {
  234. return m.GuardLevel
  235. }
  236. return 0
  237. }
  238. type BubbleGetBubbleResp struct {
  239. //
  240. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  241. //
  242. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  243. //
  244. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  245. //
  246. Data *BubbleGetBubbleResp_Data `protobuf:"bytes,4,opt,name=data" json:"data"`
  247. }
  248. func (m *BubbleGetBubbleResp) Reset() { *m = BubbleGetBubbleResp{} }
  249. func (m *BubbleGetBubbleResp) String() string { return proto.CompactTextString(m) }
  250. func (*BubbleGetBubbleResp) ProtoMessage() {}
  251. func (*BubbleGetBubbleResp) Descriptor() ([]byte, []int) {
  252. return fileDescriptor_Bubble_05538dd71b728df4, []int{3}
  253. }
  254. func (m *BubbleGetBubbleResp) XXX_Unmarshal(b []byte) error {
  255. return m.Unmarshal(b)
  256. }
  257. func (m *BubbleGetBubbleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  258. if deterministic {
  259. return xxx_messageInfo_BubbleGetBubbleResp.Marshal(b, m, deterministic)
  260. } else {
  261. b = b[:cap(b)]
  262. n, err := m.MarshalTo(b)
  263. if err != nil {
  264. return nil, err
  265. }
  266. return b[:n], nil
  267. }
  268. }
  269. func (dst *BubbleGetBubbleResp) XXX_Merge(src proto.Message) {
  270. xxx_messageInfo_BubbleGetBubbleResp.Merge(dst, src)
  271. }
  272. func (m *BubbleGetBubbleResp) XXX_Size() int {
  273. return m.Size()
  274. }
  275. func (m *BubbleGetBubbleResp) XXX_DiscardUnknown() {
  276. xxx_messageInfo_BubbleGetBubbleResp.DiscardUnknown(m)
  277. }
  278. var xxx_messageInfo_BubbleGetBubbleResp proto.InternalMessageInfo
  279. func (m *BubbleGetBubbleResp) GetCode() int64 {
  280. if m != nil {
  281. return m.Code
  282. }
  283. return 0
  284. }
  285. func (m *BubbleGetBubbleResp) GetMsg() string {
  286. if m != nil {
  287. return m.Msg
  288. }
  289. return ""
  290. }
  291. func (m *BubbleGetBubbleResp) GetMessage() string {
  292. if m != nil {
  293. return m.Message
  294. }
  295. return ""
  296. }
  297. func (m *BubbleGetBubbleResp) GetData() *BubbleGetBubbleResp_Data {
  298. if m != nil {
  299. return m.Data
  300. }
  301. return nil
  302. }
  303. type BubbleGetBubbleResp_Data struct {
  304. // 当前气泡框ID
  305. Bubble int64 `protobuf:"varint,1,opt,name=bubble,proto3" json:"bubble"`
  306. }
  307. func (m *BubbleGetBubbleResp_Data) Reset() { *m = BubbleGetBubbleResp_Data{} }
  308. func (m *BubbleGetBubbleResp_Data) String() string { return proto.CompactTextString(m) }
  309. func (*BubbleGetBubbleResp_Data) ProtoMessage() {}
  310. func (*BubbleGetBubbleResp_Data) Descriptor() ([]byte, []int) {
  311. return fileDescriptor_Bubble_05538dd71b728df4, []int{3, 0}
  312. }
  313. func (m *BubbleGetBubbleResp_Data) XXX_Unmarshal(b []byte) error {
  314. return m.Unmarshal(b)
  315. }
  316. func (m *BubbleGetBubbleResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  317. if deterministic {
  318. return xxx_messageInfo_BubbleGetBubbleResp_Data.Marshal(b, m, deterministic)
  319. } else {
  320. b = b[:cap(b)]
  321. n, err := m.MarshalTo(b)
  322. if err != nil {
  323. return nil, err
  324. }
  325. return b[:n], nil
  326. }
  327. }
  328. func (dst *BubbleGetBubbleResp_Data) XXX_Merge(src proto.Message) {
  329. xxx_messageInfo_BubbleGetBubbleResp_Data.Merge(dst, src)
  330. }
  331. func (m *BubbleGetBubbleResp_Data) XXX_Size() int {
  332. return m.Size()
  333. }
  334. func (m *BubbleGetBubbleResp_Data) XXX_DiscardUnknown() {
  335. xxx_messageInfo_BubbleGetBubbleResp_Data.DiscardUnknown(m)
  336. }
  337. var xxx_messageInfo_BubbleGetBubbleResp_Data proto.InternalMessageInfo
  338. func (m *BubbleGetBubbleResp_Data) GetBubble() int64 {
  339. if m != nil {
  340. return m.Bubble
  341. }
  342. return 0
  343. }
  344. type BubbleCheckAuthReq struct {
  345. // 用户uid
  346. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  347. // 房间号
  348. RoomId int64 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  349. // 气泡ID
  350. BubbleId int64 `protobuf:"varint,3,opt,name=bubble_id,json=bubbleId,proto3" json:"bubble_id"`
  351. }
  352. func (m *BubbleCheckAuthReq) Reset() { *m = BubbleCheckAuthReq{} }
  353. func (m *BubbleCheckAuthReq) String() string { return proto.CompactTextString(m) }
  354. func (*BubbleCheckAuthReq) ProtoMessage() {}
  355. func (*BubbleCheckAuthReq) Descriptor() ([]byte, []int) {
  356. return fileDescriptor_Bubble_05538dd71b728df4, []int{4}
  357. }
  358. func (m *BubbleCheckAuthReq) XXX_Unmarshal(b []byte) error {
  359. return m.Unmarshal(b)
  360. }
  361. func (m *BubbleCheckAuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  362. if deterministic {
  363. return xxx_messageInfo_BubbleCheckAuthReq.Marshal(b, m, deterministic)
  364. } else {
  365. b = b[:cap(b)]
  366. n, err := m.MarshalTo(b)
  367. if err != nil {
  368. return nil, err
  369. }
  370. return b[:n], nil
  371. }
  372. }
  373. func (dst *BubbleCheckAuthReq) XXX_Merge(src proto.Message) {
  374. xxx_messageInfo_BubbleCheckAuthReq.Merge(dst, src)
  375. }
  376. func (m *BubbleCheckAuthReq) XXX_Size() int {
  377. return m.Size()
  378. }
  379. func (m *BubbleCheckAuthReq) XXX_DiscardUnknown() {
  380. xxx_messageInfo_BubbleCheckAuthReq.DiscardUnknown(m)
  381. }
  382. var xxx_messageInfo_BubbleCheckAuthReq proto.InternalMessageInfo
  383. func (m *BubbleCheckAuthReq) GetUid() int64 {
  384. if m != nil {
  385. return m.Uid
  386. }
  387. return 0
  388. }
  389. func (m *BubbleCheckAuthReq) GetRoomId() int64 {
  390. if m != nil {
  391. return m.RoomId
  392. }
  393. return 0
  394. }
  395. func (m *BubbleCheckAuthReq) GetBubbleId() int64 {
  396. if m != nil {
  397. return m.BubbleId
  398. }
  399. return 0
  400. }
  401. type BubbleCheckAuthResp struct {
  402. //
  403. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  404. //
  405. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  406. //
  407. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  408. //
  409. Data *BubbleCheckAuthResp_Data `protobuf:"bytes,4,opt,name=data" json:"data"`
  410. }
  411. func (m *BubbleCheckAuthResp) Reset() { *m = BubbleCheckAuthResp{} }
  412. func (m *BubbleCheckAuthResp) String() string { return proto.CompactTextString(m) }
  413. func (*BubbleCheckAuthResp) ProtoMessage() {}
  414. func (*BubbleCheckAuthResp) Descriptor() ([]byte, []int) {
  415. return fileDescriptor_Bubble_05538dd71b728df4, []int{5}
  416. }
  417. func (m *BubbleCheckAuthResp) XXX_Unmarshal(b []byte) error {
  418. return m.Unmarshal(b)
  419. }
  420. func (m *BubbleCheckAuthResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  421. if deterministic {
  422. return xxx_messageInfo_BubbleCheckAuthResp.Marshal(b, m, deterministic)
  423. } else {
  424. b = b[:cap(b)]
  425. n, err := m.MarshalTo(b)
  426. if err != nil {
  427. return nil, err
  428. }
  429. return b[:n], nil
  430. }
  431. }
  432. func (dst *BubbleCheckAuthResp) XXX_Merge(src proto.Message) {
  433. xxx_messageInfo_BubbleCheckAuthResp.Merge(dst, src)
  434. }
  435. func (m *BubbleCheckAuthResp) XXX_Size() int {
  436. return m.Size()
  437. }
  438. func (m *BubbleCheckAuthResp) XXX_DiscardUnknown() {
  439. xxx_messageInfo_BubbleCheckAuthResp.DiscardUnknown(m)
  440. }
  441. var xxx_messageInfo_BubbleCheckAuthResp proto.InternalMessageInfo
  442. func (m *BubbleCheckAuthResp) GetCode() int64 {
  443. if m != nil {
  444. return m.Code
  445. }
  446. return 0
  447. }
  448. func (m *BubbleCheckAuthResp) GetMsg() string {
  449. if m != nil {
  450. return m.Msg
  451. }
  452. return ""
  453. }
  454. func (m *BubbleCheckAuthResp) GetMessage() string {
  455. if m != nil {
  456. return m.Message
  457. }
  458. return ""
  459. }
  460. func (m *BubbleCheckAuthResp) GetData() *BubbleCheckAuthResp_Data {
  461. if m != nil {
  462. return m.Data
  463. }
  464. return nil
  465. }
  466. type BubbleCheckAuthResp_Data struct {
  467. // 逻辑错误码 -1 非法 0 合法
  468. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  469. // 错误原因
  470. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"`
  471. }
  472. func (m *BubbleCheckAuthResp_Data) Reset() { *m = BubbleCheckAuthResp_Data{} }
  473. func (m *BubbleCheckAuthResp_Data) String() string { return proto.CompactTextString(m) }
  474. func (*BubbleCheckAuthResp_Data) ProtoMessage() {}
  475. func (*BubbleCheckAuthResp_Data) Descriptor() ([]byte, []int) {
  476. return fileDescriptor_Bubble_05538dd71b728df4, []int{5, 0}
  477. }
  478. func (m *BubbleCheckAuthResp_Data) XXX_Unmarshal(b []byte) error {
  479. return m.Unmarshal(b)
  480. }
  481. func (m *BubbleCheckAuthResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  482. if deterministic {
  483. return xxx_messageInfo_BubbleCheckAuthResp_Data.Marshal(b, m, deterministic)
  484. } else {
  485. b = b[:cap(b)]
  486. n, err := m.MarshalTo(b)
  487. if err != nil {
  488. return nil, err
  489. }
  490. return b[:n], nil
  491. }
  492. }
  493. func (dst *BubbleCheckAuthResp_Data) XXX_Merge(src proto.Message) {
  494. xxx_messageInfo_BubbleCheckAuthResp_Data.Merge(dst, src)
  495. }
  496. func (m *BubbleCheckAuthResp_Data) XXX_Size() int {
  497. return m.Size()
  498. }
  499. func (m *BubbleCheckAuthResp_Data) XXX_DiscardUnknown() {
  500. xxx_messageInfo_BubbleCheckAuthResp_Data.DiscardUnknown(m)
  501. }
  502. var xxx_messageInfo_BubbleCheckAuthResp_Data proto.InternalMessageInfo
  503. func (m *BubbleCheckAuthResp_Data) GetCode() int64 {
  504. if m != nil {
  505. return m.Code
  506. }
  507. return 0
  508. }
  509. func (m *BubbleCheckAuthResp_Data) GetMessage() string {
  510. if m != nil {
  511. return m.Message
  512. }
  513. return ""
  514. }
  515. type BubbleMultiAddReq struct {
  516. // 用户uid逗号拼接
  517. UidList string `protobuf:"bytes,1,opt,name=uid_list,json=uidList,proto3" json:"uid_list"`
  518. // 气泡ID
  519. BubbleId int64 `protobuf:"varint,2,opt,name=bubble_id,json=bubbleId,proto3" json:"bubble_id"`
  520. // 过期的时间戳
  521. ExpiredAt int64 `protobuf:"varint,3,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at"`
  522. // 业务描述
  523. Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc"`
  524. // 大区ID
  525. Category int64 `protobuf:"varint,5,opt,name=category,proto3" json:"category"`
  526. // 分区ID
  527. SubCategory int64 `protobuf:"varint,6,opt,name=sub_category,json=subCategory,proto3" json:"sub_category"`
  528. // 房间号
  529. RoomId int64 `protobuf:"varint,7,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  530. }
  531. func (m *BubbleMultiAddReq) Reset() { *m = BubbleMultiAddReq{} }
  532. func (m *BubbleMultiAddReq) String() string { return proto.CompactTextString(m) }
  533. func (*BubbleMultiAddReq) ProtoMessage() {}
  534. func (*BubbleMultiAddReq) Descriptor() ([]byte, []int) {
  535. return fileDescriptor_Bubble_05538dd71b728df4, []int{6}
  536. }
  537. func (m *BubbleMultiAddReq) XXX_Unmarshal(b []byte) error {
  538. return m.Unmarshal(b)
  539. }
  540. func (m *BubbleMultiAddReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  541. if deterministic {
  542. return xxx_messageInfo_BubbleMultiAddReq.Marshal(b, m, deterministic)
  543. } else {
  544. b = b[:cap(b)]
  545. n, err := m.MarshalTo(b)
  546. if err != nil {
  547. return nil, err
  548. }
  549. return b[:n], nil
  550. }
  551. }
  552. func (dst *BubbleMultiAddReq) XXX_Merge(src proto.Message) {
  553. xxx_messageInfo_BubbleMultiAddReq.Merge(dst, src)
  554. }
  555. func (m *BubbleMultiAddReq) XXX_Size() int {
  556. return m.Size()
  557. }
  558. func (m *BubbleMultiAddReq) XXX_DiscardUnknown() {
  559. xxx_messageInfo_BubbleMultiAddReq.DiscardUnknown(m)
  560. }
  561. var xxx_messageInfo_BubbleMultiAddReq proto.InternalMessageInfo
  562. func (m *BubbleMultiAddReq) GetUidList() string {
  563. if m != nil {
  564. return m.UidList
  565. }
  566. return ""
  567. }
  568. func (m *BubbleMultiAddReq) GetBubbleId() int64 {
  569. if m != nil {
  570. return m.BubbleId
  571. }
  572. return 0
  573. }
  574. func (m *BubbleMultiAddReq) GetExpiredAt() int64 {
  575. if m != nil {
  576. return m.ExpiredAt
  577. }
  578. return 0
  579. }
  580. func (m *BubbleMultiAddReq) GetDesc() string {
  581. if m != nil {
  582. return m.Desc
  583. }
  584. return ""
  585. }
  586. func (m *BubbleMultiAddReq) GetCategory() int64 {
  587. if m != nil {
  588. return m.Category
  589. }
  590. return 0
  591. }
  592. func (m *BubbleMultiAddReq) GetSubCategory() int64 {
  593. if m != nil {
  594. return m.SubCategory
  595. }
  596. return 0
  597. }
  598. func (m *BubbleMultiAddReq) GetRoomId() int64 {
  599. if m != nil {
  600. return m.RoomId
  601. }
  602. return 0
  603. }
  604. type BubbleMultiAddResp struct {
  605. //
  606. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  607. //
  608. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  609. //
  610. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
  611. //
  612. Data *BubbleMultiAddResp_Data `protobuf:"bytes,4,opt,name=data" json:"data"`
  613. }
  614. func (m *BubbleMultiAddResp) Reset() { *m = BubbleMultiAddResp{} }
  615. func (m *BubbleMultiAddResp) String() string { return proto.CompactTextString(m) }
  616. func (*BubbleMultiAddResp) ProtoMessage() {}
  617. func (*BubbleMultiAddResp) Descriptor() ([]byte, []int) {
  618. return fileDescriptor_Bubble_05538dd71b728df4, []int{7}
  619. }
  620. func (m *BubbleMultiAddResp) XXX_Unmarshal(b []byte) error {
  621. return m.Unmarshal(b)
  622. }
  623. func (m *BubbleMultiAddResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  624. if deterministic {
  625. return xxx_messageInfo_BubbleMultiAddResp.Marshal(b, m, deterministic)
  626. } else {
  627. b = b[:cap(b)]
  628. n, err := m.MarshalTo(b)
  629. if err != nil {
  630. return nil, err
  631. }
  632. return b[:n], nil
  633. }
  634. }
  635. func (dst *BubbleMultiAddResp) XXX_Merge(src proto.Message) {
  636. xxx_messageInfo_BubbleMultiAddResp.Merge(dst, src)
  637. }
  638. func (m *BubbleMultiAddResp) XXX_Size() int {
  639. return m.Size()
  640. }
  641. func (m *BubbleMultiAddResp) XXX_DiscardUnknown() {
  642. xxx_messageInfo_BubbleMultiAddResp.DiscardUnknown(m)
  643. }
  644. var xxx_messageInfo_BubbleMultiAddResp proto.InternalMessageInfo
  645. func (m *BubbleMultiAddResp) GetCode() int64 {
  646. if m != nil {
  647. return m.Code
  648. }
  649. return 0
  650. }
  651. func (m *BubbleMultiAddResp) GetMsg() string {
  652. if m != nil {
  653. return m.Msg
  654. }
  655. return ""
  656. }
  657. func (m *BubbleMultiAddResp) GetMessage() string {
  658. if m != nil {
  659. return m.Message
  660. }
  661. return ""
  662. }
  663. func (m *BubbleMultiAddResp) GetData() *BubbleMultiAddResp_Data {
  664. if m != nil {
  665. return m.Data
  666. }
  667. return nil
  668. }
  669. type BubbleMultiAddResp_UidList struct {
  670. //
  671. Uid []int64 `protobuf:"varint,1,rep,packed,name=uid" json:"uid"`
  672. }
  673. func (m *BubbleMultiAddResp_UidList) Reset() { *m = BubbleMultiAddResp_UidList{} }
  674. func (m *BubbleMultiAddResp_UidList) String() string { return proto.CompactTextString(m) }
  675. func (*BubbleMultiAddResp_UidList) ProtoMessage() {}
  676. func (*BubbleMultiAddResp_UidList) Descriptor() ([]byte, []int) {
  677. return fileDescriptor_Bubble_05538dd71b728df4, []int{7, 0}
  678. }
  679. func (m *BubbleMultiAddResp_UidList) XXX_Unmarshal(b []byte) error {
  680. return m.Unmarshal(b)
  681. }
  682. func (m *BubbleMultiAddResp_UidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  683. if deterministic {
  684. return xxx_messageInfo_BubbleMultiAddResp_UidList.Marshal(b, m, deterministic)
  685. } else {
  686. b = b[:cap(b)]
  687. n, err := m.MarshalTo(b)
  688. if err != nil {
  689. return nil, err
  690. }
  691. return b[:n], nil
  692. }
  693. }
  694. func (dst *BubbleMultiAddResp_UidList) XXX_Merge(src proto.Message) {
  695. xxx_messageInfo_BubbleMultiAddResp_UidList.Merge(dst, src)
  696. }
  697. func (m *BubbleMultiAddResp_UidList) XXX_Size() int {
  698. return m.Size()
  699. }
  700. func (m *BubbleMultiAddResp_UidList) XXX_DiscardUnknown() {
  701. xxx_messageInfo_BubbleMultiAddResp_UidList.DiscardUnknown(m)
  702. }
  703. var xxx_messageInfo_BubbleMultiAddResp_UidList proto.InternalMessageInfo
  704. func (m *BubbleMultiAddResp_UidList) GetUid() []int64 {
  705. if m != nil {
  706. return m.Uid
  707. }
  708. return nil
  709. }
  710. type BubbleMultiAddResp_Data struct {
  711. //
  712. Success *BubbleMultiAddResp_UidList `protobuf:"bytes,1,opt,name=success" json:"success"`
  713. //
  714. Failed *BubbleMultiAddResp_UidList `protobuf:"bytes,2,opt,name=failed" json:"failed"`
  715. }
  716. func (m *BubbleMultiAddResp_Data) Reset() { *m = BubbleMultiAddResp_Data{} }
  717. func (m *BubbleMultiAddResp_Data) String() string { return proto.CompactTextString(m) }
  718. func (*BubbleMultiAddResp_Data) ProtoMessage() {}
  719. func (*BubbleMultiAddResp_Data) Descriptor() ([]byte, []int) {
  720. return fileDescriptor_Bubble_05538dd71b728df4, []int{7, 1}
  721. }
  722. func (m *BubbleMultiAddResp_Data) XXX_Unmarshal(b []byte) error {
  723. return m.Unmarshal(b)
  724. }
  725. func (m *BubbleMultiAddResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  726. if deterministic {
  727. return xxx_messageInfo_BubbleMultiAddResp_Data.Marshal(b, m, deterministic)
  728. } else {
  729. b = b[:cap(b)]
  730. n, err := m.MarshalTo(b)
  731. if err != nil {
  732. return nil, err
  733. }
  734. return b[:n], nil
  735. }
  736. }
  737. func (dst *BubbleMultiAddResp_Data) XXX_Merge(src proto.Message) {
  738. xxx_messageInfo_BubbleMultiAddResp_Data.Merge(dst, src)
  739. }
  740. func (m *BubbleMultiAddResp_Data) XXX_Size() int {
  741. return m.Size()
  742. }
  743. func (m *BubbleMultiAddResp_Data) XXX_DiscardUnknown() {
  744. xxx_messageInfo_BubbleMultiAddResp_Data.DiscardUnknown(m)
  745. }
  746. var xxx_messageInfo_BubbleMultiAddResp_Data proto.InternalMessageInfo
  747. func (m *BubbleMultiAddResp_Data) GetSuccess() *BubbleMultiAddResp_UidList {
  748. if m != nil {
  749. return m.Success
  750. }
  751. return nil
  752. }
  753. func (m *BubbleMultiAddResp_Data) GetFailed() *BubbleMultiAddResp_UidList {
  754. if m != nil {
  755. return m.Failed
  756. }
  757. return nil
  758. }
  759. func init() {
  760. proto.RegisterType((*BubbleGetCurrentReq)(nil), "userext.v1.BubbleGetCurrentReq")
  761. proto.RegisterType((*BubbleGetCurrentResp)(nil), "userext.v1.BubbleGetCurrentResp")
  762. proto.RegisterType((*BubbleGetCurrentResp_Data)(nil), "userext.v1.BubbleGetCurrentResp.Data")
  763. proto.RegisterType((*BubbleGetBubbleReq)(nil), "userext.v1.BubbleGetBubbleReq")
  764. proto.RegisterType((*BubbleGetBubbleResp)(nil), "userext.v1.BubbleGetBubbleResp")
  765. proto.RegisterType((*BubbleGetBubbleResp_Data)(nil), "userext.v1.BubbleGetBubbleResp.Data")
  766. proto.RegisterType((*BubbleCheckAuthReq)(nil), "userext.v1.BubbleCheckAuthReq")
  767. proto.RegisterType((*BubbleCheckAuthResp)(nil), "userext.v1.BubbleCheckAuthResp")
  768. proto.RegisterType((*BubbleCheckAuthResp_Data)(nil), "userext.v1.BubbleCheckAuthResp.Data")
  769. proto.RegisterType((*BubbleMultiAddReq)(nil), "userext.v1.BubbleMultiAddReq")
  770. proto.RegisterType((*BubbleMultiAddResp)(nil), "userext.v1.BubbleMultiAddResp")
  771. proto.RegisterType((*BubbleMultiAddResp_UidList)(nil), "userext.v1.BubbleMultiAddResp.UidList")
  772. proto.RegisterType((*BubbleMultiAddResp_Data)(nil), "userext.v1.BubbleMultiAddResp.Data")
  773. }
  774. func (m *BubbleGetCurrentReq) Marshal() (dAtA []byte, err error) {
  775. size := m.Size()
  776. dAtA = make([]byte, size)
  777. n, err := m.MarshalTo(dAtA)
  778. if err != nil {
  779. return nil, err
  780. }
  781. return dAtA[:n], nil
  782. }
  783. func (m *BubbleGetCurrentReq) MarshalTo(dAtA []byte) (int, error) {
  784. var i int
  785. _ = i
  786. var l int
  787. _ = l
  788. if m.Uid != 0 {
  789. dAtA[i] = 0x8
  790. i++
  791. i = encodeVarintBubble(dAtA, i, uint64(m.Uid))
  792. }
  793. if m.RoomId != 0 {
  794. dAtA[i] = 0x10
  795. i++
  796. i = encodeVarintBubble(dAtA, i, uint64(m.RoomId))
  797. }
  798. return i, nil
  799. }
  800. func (m *BubbleGetCurrentResp) Marshal() (dAtA []byte, err error) {
  801. size := m.Size()
  802. dAtA = make([]byte, size)
  803. n, err := m.MarshalTo(dAtA)
  804. if err != nil {
  805. return nil, err
  806. }
  807. return dAtA[:n], nil
  808. }
  809. func (m *BubbleGetCurrentResp) MarshalTo(dAtA []byte) (int, error) {
  810. var i int
  811. _ = i
  812. var l int
  813. _ = l
  814. if m.Code != 0 {
  815. dAtA[i] = 0x8
  816. i++
  817. i = encodeVarintBubble(dAtA, i, uint64(m.Code))
  818. }
  819. if len(m.Msg) > 0 {
  820. dAtA[i] = 0x12
  821. i++
  822. i = encodeVarintBubble(dAtA, i, uint64(len(m.Msg)))
  823. i += copy(dAtA[i:], m.Msg)
  824. }
  825. if len(m.Message) > 0 {
  826. dAtA[i] = 0x1a
  827. i++
  828. i = encodeVarintBubble(dAtA, i, uint64(len(m.Message)))
  829. i += copy(dAtA[i:], m.Message)
  830. }
  831. if m.Data != nil {
  832. dAtA[i] = 0x22
  833. i++
  834. i = encodeVarintBubble(dAtA, i, uint64(m.Data.Size()))
  835. n1, err := m.Data.MarshalTo(dAtA[i:])
  836. if err != nil {
  837. return 0, err
  838. }
  839. i += n1
  840. }
  841. return i, nil
  842. }
  843. func (m *BubbleGetCurrentResp_Data) Marshal() (dAtA []byte, err error) {
  844. size := m.Size()
  845. dAtA = make([]byte, size)
  846. n, err := m.MarshalTo(dAtA)
  847. if err != nil {
  848. return nil, err
  849. }
  850. return dAtA[:n], nil
  851. }
  852. func (m *BubbleGetCurrentResp_Data) MarshalTo(dAtA []byte) (int, error) {
  853. var i int
  854. _ = i
  855. var l int
  856. _ = l
  857. if m.Bubble != 0 {
  858. dAtA[i] = 0x8
  859. i++
  860. i = encodeVarintBubble(dAtA, i, uint64(m.Bubble))
  861. }
  862. return i, nil
  863. }
  864. func (m *BubbleGetBubbleReq) Marshal() (dAtA []byte, err error) {
  865. size := m.Size()
  866. dAtA = make([]byte, size)
  867. n, err := m.MarshalTo(dAtA)
  868. if err != nil {
  869. return nil, err
  870. }
  871. return dAtA[:n], nil
  872. }
  873. func (m *BubbleGetBubbleReq) MarshalTo(dAtA []byte) (int, error) {
  874. var i int
  875. _ = i
  876. var l int
  877. _ = l
  878. if m.Uid != 0 {
  879. dAtA[i] = 0x8
  880. i++
  881. i = encodeVarintBubble(dAtA, i, uint64(m.Uid))
  882. }
  883. if m.RoomId != 0 {
  884. dAtA[i] = 0x10
  885. i++
  886. i = encodeVarintBubble(dAtA, i, uint64(m.RoomId))
  887. }
  888. if m.BubbleId != 0 {
  889. dAtA[i] = 0x18
  890. i++
  891. i = encodeVarintBubble(dAtA, i, uint64(m.BubbleId))
  892. }
  893. if m.GuardLevel != 0 {
  894. dAtA[i] = 0x20
  895. i++
  896. i = encodeVarintBubble(dAtA, i, uint64(m.GuardLevel))
  897. }
  898. return i, nil
  899. }
  900. func (m *BubbleGetBubbleResp) Marshal() (dAtA []byte, err error) {
  901. size := m.Size()
  902. dAtA = make([]byte, size)
  903. n, err := m.MarshalTo(dAtA)
  904. if err != nil {
  905. return nil, err
  906. }
  907. return dAtA[:n], nil
  908. }
  909. func (m *BubbleGetBubbleResp) MarshalTo(dAtA []byte) (int, error) {
  910. var i int
  911. _ = i
  912. var l int
  913. _ = l
  914. if m.Code != 0 {
  915. dAtA[i] = 0x8
  916. i++
  917. i = encodeVarintBubble(dAtA, i, uint64(m.Code))
  918. }
  919. if len(m.Msg) > 0 {
  920. dAtA[i] = 0x12
  921. i++
  922. i = encodeVarintBubble(dAtA, i, uint64(len(m.Msg)))
  923. i += copy(dAtA[i:], m.Msg)
  924. }
  925. if len(m.Message) > 0 {
  926. dAtA[i] = 0x1a
  927. i++
  928. i = encodeVarintBubble(dAtA, i, uint64(len(m.Message)))
  929. i += copy(dAtA[i:], m.Message)
  930. }
  931. if m.Data != nil {
  932. dAtA[i] = 0x22
  933. i++
  934. i = encodeVarintBubble(dAtA, i, uint64(m.Data.Size()))
  935. n2, err := m.Data.MarshalTo(dAtA[i:])
  936. if err != nil {
  937. return 0, err
  938. }
  939. i += n2
  940. }
  941. return i, nil
  942. }
  943. func (m *BubbleGetBubbleResp_Data) Marshal() (dAtA []byte, err error) {
  944. size := m.Size()
  945. dAtA = make([]byte, size)
  946. n, err := m.MarshalTo(dAtA)
  947. if err != nil {
  948. return nil, err
  949. }
  950. return dAtA[:n], nil
  951. }
  952. func (m *BubbleGetBubbleResp_Data) MarshalTo(dAtA []byte) (int, error) {
  953. var i int
  954. _ = i
  955. var l int
  956. _ = l
  957. if m.Bubble != 0 {
  958. dAtA[i] = 0x8
  959. i++
  960. i = encodeVarintBubble(dAtA, i, uint64(m.Bubble))
  961. }
  962. return i, nil
  963. }
  964. func (m *BubbleCheckAuthReq) Marshal() (dAtA []byte, err error) {
  965. size := m.Size()
  966. dAtA = make([]byte, size)
  967. n, err := m.MarshalTo(dAtA)
  968. if err != nil {
  969. return nil, err
  970. }
  971. return dAtA[:n], nil
  972. }
  973. func (m *BubbleCheckAuthReq) MarshalTo(dAtA []byte) (int, error) {
  974. var i int
  975. _ = i
  976. var l int
  977. _ = l
  978. if m.Uid != 0 {
  979. dAtA[i] = 0x8
  980. i++
  981. i = encodeVarintBubble(dAtA, i, uint64(m.Uid))
  982. }
  983. if m.RoomId != 0 {
  984. dAtA[i] = 0x10
  985. i++
  986. i = encodeVarintBubble(dAtA, i, uint64(m.RoomId))
  987. }
  988. if m.BubbleId != 0 {
  989. dAtA[i] = 0x18
  990. i++
  991. i = encodeVarintBubble(dAtA, i, uint64(m.BubbleId))
  992. }
  993. return i, nil
  994. }
  995. func (m *BubbleCheckAuthResp) Marshal() (dAtA []byte, err error) {
  996. size := m.Size()
  997. dAtA = make([]byte, size)
  998. n, err := m.MarshalTo(dAtA)
  999. if err != nil {
  1000. return nil, err
  1001. }
  1002. return dAtA[:n], nil
  1003. }
  1004. func (m *BubbleCheckAuthResp) MarshalTo(dAtA []byte) (int, error) {
  1005. var i int
  1006. _ = i
  1007. var l int
  1008. _ = l
  1009. if m.Code != 0 {
  1010. dAtA[i] = 0x8
  1011. i++
  1012. i = encodeVarintBubble(dAtA, i, uint64(m.Code))
  1013. }
  1014. if len(m.Msg) > 0 {
  1015. dAtA[i] = 0x12
  1016. i++
  1017. i = encodeVarintBubble(dAtA, i, uint64(len(m.Msg)))
  1018. i += copy(dAtA[i:], m.Msg)
  1019. }
  1020. if len(m.Message) > 0 {
  1021. dAtA[i] = 0x1a
  1022. i++
  1023. i = encodeVarintBubble(dAtA, i, uint64(len(m.Message)))
  1024. i += copy(dAtA[i:], m.Message)
  1025. }
  1026. if m.Data != nil {
  1027. dAtA[i] = 0x22
  1028. i++
  1029. i = encodeVarintBubble(dAtA, i, uint64(m.Data.Size()))
  1030. n3, err := m.Data.MarshalTo(dAtA[i:])
  1031. if err != nil {
  1032. return 0, err
  1033. }
  1034. i += n3
  1035. }
  1036. return i, nil
  1037. }
  1038. func (m *BubbleCheckAuthResp_Data) Marshal() (dAtA []byte, err error) {
  1039. size := m.Size()
  1040. dAtA = make([]byte, size)
  1041. n, err := m.MarshalTo(dAtA)
  1042. if err != nil {
  1043. return nil, err
  1044. }
  1045. return dAtA[:n], nil
  1046. }
  1047. func (m *BubbleCheckAuthResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1048. var i int
  1049. _ = i
  1050. var l int
  1051. _ = l
  1052. if m.Code != 0 {
  1053. dAtA[i] = 0x8
  1054. i++
  1055. i = encodeVarintBubble(dAtA, i, uint64(m.Code))
  1056. }
  1057. if len(m.Message) > 0 {
  1058. dAtA[i] = 0x12
  1059. i++
  1060. i = encodeVarintBubble(dAtA, i, uint64(len(m.Message)))
  1061. i += copy(dAtA[i:], m.Message)
  1062. }
  1063. return i, nil
  1064. }
  1065. func (m *BubbleMultiAddReq) Marshal() (dAtA []byte, err error) {
  1066. size := m.Size()
  1067. dAtA = make([]byte, size)
  1068. n, err := m.MarshalTo(dAtA)
  1069. if err != nil {
  1070. return nil, err
  1071. }
  1072. return dAtA[:n], nil
  1073. }
  1074. func (m *BubbleMultiAddReq) MarshalTo(dAtA []byte) (int, error) {
  1075. var i int
  1076. _ = i
  1077. var l int
  1078. _ = l
  1079. if len(m.UidList) > 0 {
  1080. dAtA[i] = 0xa
  1081. i++
  1082. i = encodeVarintBubble(dAtA, i, uint64(len(m.UidList)))
  1083. i += copy(dAtA[i:], m.UidList)
  1084. }
  1085. if m.BubbleId != 0 {
  1086. dAtA[i] = 0x10
  1087. i++
  1088. i = encodeVarintBubble(dAtA, i, uint64(m.BubbleId))
  1089. }
  1090. if m.ExpiredAt != 0 {
  1091. dAtA[i] = 0x18
  1092. i++
  1093. i = encodeVarintBubble(dAtA, i, uint64(m.ExpiredAt))
  1094. }
  1095. if len(m.Desc) > 0 {
  1096. dAtA[i] = 0x22
  1097. i++
  1098. i = encodeVarintBubble(dAtA, i, uint64(len(m.Desc)))
  1099. i += copy(dAtA[i:], m.Desc)
  1100. }
  1101. if m.Category != 0 {
  1102. dAtA[i] = 0x28
  1103. i++
  1104. i = encodeVarintBubble(dAtA, i, uint64(m.Category))
  1105. }
  1106. if m.SubCategory != 0 {
  1107. dAtA[i] = 0x30
  1108. i++
  1109. i = encodeVarintBubble(dAtA, i, uint64(m.SubCategory))
  1110. }
  1111. if m.RoomId != 0 {
  1112. dAtA[i] = 0x38
  1113. i++
  1114. i = encodeVarintBubble(dAtA, i, uint64(m.RoomId))
  1115. }
  1116. return i, nil
  1117. }
  1118. func (m *BubbleMultiAddResp) Marshal() (dAtA []byte, err error) {
  1119. size := m.Size()
  1120. dAtA = make([]byte, size)
  1121. n, err := m.MarshalTo(dAtA)
  1122. if err != nil {
  1123. return nil, err
  1124. }
  1125. return dAtA[:n], nil
  1126. }
  1127. func (m *BubbleMultiAddResp) MarshalTo(dAtA []byte) (int, error) {
  1128. var i int
  1129. _ = i
  1130. var l int
  1131. _ = l
  1132. if m.Code != 0 {
  1133. dAtA[i] = 0x8
  1134. i++
  1135. i = encodeVarintBubble(dAtA, i, uint64(m.Code))
  1136. }
  1137. if len(m.Msg) > 0 {
  1138. dAtA[i] = 0x12
  1139. i++
  1140. i = encodeVarintBubble(dAtA, i, uint64(len(m.Msg)))
  1141. i += copy(dAtA[i:], m.Msg)
  1142. }
  1143. if len(m.Message) > 0 {
  1144. dAtA[i] = 0x1a
  1145. i++
  1146. i = encodeVarintBubble(dAtA, i, uint64(len(m.Message)))
  1147. i += copy(dAtA[i:], m.Message)
  1148. }
  1149. if m.Data != nil {
  1150. dAtA[i] = 0x22
  1151. i++
  1152. i = encodeVarintBubble(dAtA, i, uint64(m.Data.Size()))
  1153. n4, err := m.Data.MarshalTo(dAtA[i:])
  1154. if err != nil {
  1155. return 0, err
  1156. }
  1157. i += n4
  1158. }
  1159. return i, nil
  1160. }
  1161. func (m *BubbleMultiAddResp_UidList) Marshal() (dAtA []byte, err error) {
  1162. size := m.Size()
  1163. dAtA = make([]byte, size)
  1164. n, err := m.MarshalTo(dAtA)
  1165. if err != nil {
  1166. return nil, err
  1167. }
  1168. return dAtA[:n], nil
  1169. }
  1170. func (m *BubbleMultiAddResp_UidList) MarshalTo(dAtA []byte) (int, error) {
  1171. var i int
  1172. _ = i
  1173. var l int
  1174. _ = l
  1175. if len(m.Uid) > 0 {
  1176. dAtA6 := make([]byte, len(m.Uid)*10)
  1177. var j5 int
  1178. for _, num1 := range m.Uid {
  1179. num := uint64(num1)
  1180. for num >= 1<<7 {
  1181. dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80)
  1182. num >>= 7
  1183. j5++
  1184. }
  1185. dAtA6[j5] = uint8(num)
  1186. j5++
  1187. }
  1188. dAtA[i] = 0xa
  1189. i++
  1190. i = encodeVarintBubble(dAtA, i, uint64(j5))
  1191. i += copy(dAtA[i:], dAtA6[:j5])
  1192. }
  1193. return i, nil
  1194. }
  1195. func (m *BubbleMultiAddResp_Data) Marshal() (dAtA []byte, err error) {
  1196. size := m.Size()
  1197. dAtA = make([]byte, size)
  1198. n, err := m.MarshalTo(dAtA)
  1199. if err != nil {
  1200. return nil, err
  1201. }
  1202. return dAtA[:n], nil
  1203. }
  1204. func (m *BubbleMultiAddResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1205. var i int
  1206. _ = i
  1207. var l int
  1208. _ = l
  1209. if m.Success != nil {
  1210. dAtA[i] = 0xa
  1211. i++
  1212. i = encodeVarintBubble(dAtA, i, uint64(m.Success.Size()))
  1213. n7, err := m.Success.MarshalTo(dAtA[i:])
  1214. if err != nil {
  1215. return 0, err
  1216. }
  1217. i += n7
  1218. }
  1219. if m.Failed != nil {
  1220. dAtA[i] = 0x12
  1221. i++
  1222. i = encodeVarintBubble(dAtA, i, uint64(m.Failed.Size()))
  1223. n8, err := m.Failed.MarshalTo(dAtA[i:])
  1224. if err != nil {
  1225. return 0, err
  1226. }
  1227. i += n8
  1228. }
  1229. return i, nil
  1230. }
  1231. func encodeVarintBubble(dAtA []byte, offset int, v uint64) int {
  1232. for v >= 1<<7 {
  1233. dAtA[offset] = uint8(v&0x7f | 0x80)
  1234. v >>= 7
  1235. offset++
  1236. }
  1237. dAtA[offset] = uint8(v)
  1238. return offset + 1
  1239. }
  1240. func (m *BubbleGetCurrentReq) Size() (n int) {
  1241. if m == nil {
  1242. return 0
  1243. }
  1244. var l int
  1245. _ = l
  1246. if m.Uid != 0 {
  1247. n += 1 + sovBubble(uint64(m.Uid))
  1248. }
  1249. if m.RoomId != 0 {
  1250. n += 1 + sovBubble(uint64(m.RoomId))
  1251. }
  1252. return n
  1253. }
  1254. func (m *BubbleGetCurrentResp) Size() (n int) {
  1255. if m == nil {
  1256. return 0
  1257. }
  1258. var l int
  1259. _ = l
  1260. if m.Code != 0 {
  1261. n += 1 + sovBubble(uint64(m.Code))
  1262. }
  1263. l = len(m.Msg)
  1264. if l > 0 {
  1265. n += 1 + l + sovBubble(uint64(l))
  1266. }
  1267. l = len(m.Message)
  1268. if l > 0 {
  1269. n += 1 + l + sovBubble(uint64(l))
  1270. }
  1271. if m.Data != nil {
  1272. l = m.Data.Size()
  1273. n += 1 + l + sovBubble(uint64(l))
  1274. }
  1275. return n
  1276. }
  1277. func (m *BubbleGetCurrentResp_Data) Size() (n int) {
  1278. if m == nil {
  1279. return 0
  1280. }
  1281. var l int
  1282. _ = l
  1283. if m.Bubble != 0 {
  1284. n += 1 + sovBubble(uint64(m.Bubble))
  1285. }
  1286. return n
  1287. }
  1288. func (m *BubbleGetBubbleReq) Size() (n int) {
  1289. if m == nil {
  1290. return 0
  1291. }
  1292. var l int
  1293. _ = l
  1294. if m.Uid != 0 {
  1295. n += 1 + sovBubble(uint64(m.Uid))
  1296. }
  1297. if m.RoomId != 0 {
  1298. n += 1 + sovBubble(uint64(m.RoomId))
  1299. }
  1300. if m.BubbleId != 0 {
  1301. n += 1 + sovBubble(uint64(m.BubbleId))
  1302. }
  1303. if m.GuardLevel != 0 {
  1304. n += 1 + sovBubble(uint64(m.GuardLevel))
  1305. }
  1306. return n
  1307. }
  1308. func (m *BubbleGetBubbleResp) Size() (n int) {
  1309. if m == nil {
  1310. return 0
  1311. }
  1312. var l int
  1313. _ = l
  1314. if m.Code != 0 {
  1315. n += 1 + sovBubble(uint64(m.Code))
  1316. }
  1317. l = len(m.Msg)
  1318. if l > 0 {
  1319. n += 1 + l + sovBubble(uint64(l))
  1320. }
  1321. l = len(m.Message)
  1322. if l > 0 {
  1323. n += 1 + l + sovBubble(uint64(l))
  1324. }
  1325. if m.Data != nil {
  1326. l = m.Data.Size()
  1327. n += 1 + l + sovBubble(uint64(l))
  1328. }
  1329. return n
  1330. }
  1331. func (m *BubbleGetBubbleResp_Data) Size() (n int) {
  1332. if m == nil {
  1333. return 0
  1334. }
  1335. var l int
  1336. _ = l
  1337. if m.Bubble != 0 {
  1338. n += 1 + sovBubble(uint64(m.Bubble))
  1339. }
  1340. return n
  1341. }
  1342. func (m *BubbleCheckAuthReq) Size() (n int) {
  1343. if m == nil {
  1344. return 0
  1345. }
  1346. var l int
  1347. _ = l
  1348. if m.Uid != 0 {
  1349. n += 1 + sovBubble(uint64(m.Uid))
  1350. }
  1351. if m.RoomId != 0 {
  1352. n += 1 + sovBubble(uint64(m.RoomId))
  1353. }
  1354. if m.BubbleId != 0 {
  1355. n += 1 + sovBubble(uint64(m.BubbleId))
  1356. }
  1357. return n
  1358. }
  1359. func (m *BubbleCheckAuthResp) Size() (n int) {
  1360. if m == nil {
  1361. return 0
  1362. }
  1363. var l int
  1364. _ = l
  1365. if m.Code != 0 {
  1366. n += 1 + sovBubble(uint64(m.Code))
  1367. }
  1368. l = len(m.Msg)
  1369. if l > 0 {
  1370. n += 1 + l + sovBubble(uint64(l))
  1371. }
  1372. l = len(m.Message)
  1373. if l > 0 {
  1374. n += 1 + l + sovBubble(uint64(l))
  1375. }
  1376. if m.Data != nil {
  1377. l = m.Data.Size()
  1378. n += 1 + l + sovBubble(uint64(l))
  1379. }
  1380. return n
  1381. }
  1382. func (m *BubbleCheckAuthResp_Data) Size() (n int) {
  1383. if m == nil {
  1384. return 0
  1385. }
  1386. var l int
  1387. _ = l
  1388. if m.Code != 0 {
  1389. n += 1 + sovBubble(uint64(m.Code))
  1390. }
  1391. l = len(m.Message)
  1392. if l > 0 {
  1393. n += 1 + l + sovBubble(uint64(l))
  1394. }
  1395. return n
  1396. }
  1397. func (m *BubbleMultiAddReq) Size() (n int) {
  1398. if m == nil {
  1399. return 0
  1400. }
  1401. var l int
  1402. _ = l
  1403. l = len(m.UidList)
  1404. if l > 0 {
  1405. n += 1 + l + sovBubble(uint64(l))
  1406. }
  1407. if m.BubbleId != 0 {
  1408. n += 1 + sovBubble(uint64(m.BubbleId))
  1409. }
  1410. if m.ExpiredAt != 0 {
  1411. n += 1 + sovBubble(uint64(m.ExpiredAt))
  1412. }
  1413. l = len(m.Desc)
  1414. if l > 0 {
  1415. n += 1 + l + sovBubble(uint64(l))
  1416. }
  1417. if m.Category != 0 {
  1418. n += 1 + sovBubble(uint64(m.Category))
  1419. }
  1420. if m.SubCategory != 0 {
  1421. n += 1 + sovBubble(uint64(m.SubCategory))
  1422. }
  1423. if m.RoomId != 0 {
  1424. n += 1 + sovBubble(uint64(m.RoomId))
  1425. }
  1426. return n
  1427. }
  1428. func (m *BubbleMultiAddResp) Size() (n int) {
  1429. if m == nil {
  1430. return 0
  1431. }
  1432. var l int
  1433. _ = l
  1434. if m.Code != 0 {
  1435. n += 1 + sovBubble(uint64(m.Code))
  1436. }
  1437. l = len(m.Msg)
  1438. if l > 0 {
  1439. n += 1 + l + sovBubble(uint64(l))
  1440. }
  1441. l = len(m.Message)
  1442. if l > 0 {
  1443. n += 1 + l + sovBubble(uint64(l))
  1444. }
  1445. if m.Data != nil {
  1446. l = m.Data.Size()
  1447. n += 1 + l + sovBubble(uint64(l))
  1448. }
  1449. return n
  1450. }
  1451. func (m *BubbleMultiAddResp_UidList) Size() (n int) {
  1452. if m == nil {
  1453. return 0
  1454. }
  1455. var l int
  1456. _ = l
  1457. if len(m.Uid) > 0 {
  1458. l = 0
  1459. for _, e := range m.Uid {
  1460. l += sovBubble(uint64(e))
  1461. }
  1462. n += 1 + sovBubble(uint64(l)) + l
  1463. }
  1464. return n
  1465. }
  1466. func (m *BubbleMultiAddResp_Data) Size() (n int) {
  1467. if m == nil {
  1468. return 0
  1469. }
  1470. var l int
  1471. _ = l
  1472. if m.Success != nil {
  1473. l = m.Success.Size()
  1474. n += 1 + l + sovBubble(uint64(l))
  1475. }
  1476. if m.Failed != nil {
  1477. l = m.Failed.Size()
  1478. n += 1 + l + sovBubble(uint64(l))
  1479. }
  1480. return n
  1481. }
  1482. func sovBubble(x uint64) (n int) {
  1483. for {
  1484. n++
  1485. x >>= 7
  1486. if x == 0 {
  1487. break
  1488. }
  1489. }
  1490. return n
  1491. }
  1492. func sozBubble(x uint64) (n int) {
  1493. return sovBubble(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1494. }
  1495. func (m *BubbleGetCurrentReq) Unmarshal(dAtA []byte) error {
  1496. l := len(dAtA)
  1497. iNdEx := 0
  1498. for iNdEx < l {
  1499. preIndex := iNdEx
  1500. var wire uint64
  1501. for shift := uint(0); ; shift += 7 {
  1502. if shift >= 64 {
  1503. return ErrIntOverflowBubble
  1504. }
  1505. if iNdEx >= l {
  1506. return io.ErrUnexpectedEOF
  1507. }
  1508. b := dAtA[iNdEx]
  1509. iNdEx++
  1510. wire |= (uint64(b) & 0x7F) << shift
  1511. if b < 0x80 {
  1512. break
  1513. }
  1514. }
  1515. fieldNum := int32(wire >> 3)
  1516. wireType := int(wire & 0x7)
  1517. if wireType == 4 {
  1518. return fmt.Errorf("proto: BubbleGetCurrentReq: wiretype end group for non-group")
  1519. }
  1520. if fieldNum <= 0 {
  1521. return fmt.Errorf("proto: BubbleGetCurrentReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1522. }
  1523. switch fieldNum {
  1524. case 1:
  1525. if wireType != 0 {
  1526. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1527. }
  1528. m.Uid = 0
  1529. for shift := uint(0); ; shift += 7 {
  1530. if shift >= 64 {
  1531. return ErrIntOverflowBubble
  1532. }
  1533. if iNdEx >= l {
  1534. return io.ErrUnexpectedEOF
  1535. }
  1536. b := dAtA[iNdEx]
  1537. iNdEx++
  1538. m.Uid |= (int64(b) & 0x7F) << shift
  1539. if b < 0x80 {
  1540. break
  1541. }
  1542. }
  1543. case 2:
  1544. if wireType != 0 {
  1545. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  1546. }
  1547. m.RoomId = 0
  1548. for shift := uint(0); ; shift += 7 {
  1549. if shift >= 64 {
  1550. return ErrIntOverflowBubble
  1551. }
  1552. if iNdEx >= l {
  1553. return io.ErrUnexpectedEOF
  1554. }
  1555. b := dAtA[iNdEx]
  1556. iNdEx++
  1557. m.RoomId |= (int64(b) & 0x7F) << shift
  1558. if b < 0x80 {
  1559. break
  1560. }
  1561. }
  1562. default:
  1563. iNdEx = preIndex
  1564. skippy, err := skipBubble(dAtA[iNdEx:])
  1565. if err != nil {
  1566. return err
  1567. }
  1568. if skippy < 0 {
  1569. return ErrInvalidLengthBubble
  1570. }
  1571. if (iNdEx + skippy) > l {
  1572. return io.ErrUnexpectedEOF
  1573. }
  1574. iNdEx += skippy
  1575. }
  1576. }
  1577. if iNdEx > l {
  1578. return io.ErrUnexpectedEOF
  1579. }
  1580. return nil
  1581. }
  1582. func (m *BubbleGetCurrentResp) Unmarshal(dAtA []byte) error {
  1583. l := len(dAtA)
  1584. iNdEx := 0
  1585. for iNdEx < l {
  1586. preIndex := iNdEx
  1587. var wire uint64
  1588. for shift := uint(0); ; shift += 7 {
  1589. if shift >= 64 {
  1590. return ErrIntOverflowBubble
  1591. }
  1592. if iNdEx >= l {
  1593. return io.ErrUnexpectedEOF
  1594. }
  1595. b := dAtA[iNdEx]
  1596. iNdEx++
  1597. wire |= (uint64(b) & 0x7F) << shift
  1598. if b < 0x80 {
  1599. break
  1600. }
  1601. }
  1602. fieldNum := int32(wire >> 3)
  1603. wireType := int(wire & 0x7)
  1604. if wireType == 4 {
  1605. return fmt.Errorf("proto: BubbleGetCurrentResp: wiretype end group for non-group")
  1606. }
  1607. if fieldNum <= 0 {
  1608. return fmt.Errorf("proto: BubbleGetCurrentResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1609. }
  1610. switch fieldNum {
  1611. case 1:
  1612. if wireType != 0 {
  1613. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1614. }
  1615. m.Code = 0
  1616. for shift := uint(0); ; shift += 7 {
  1617. if shift >= 64 {
  1618. return ErrIntOverflowBubble
  1619. }
  1620. if iNdEx >= l {
  1621. return io.ErrUnexpectedEOF
  1622. }
  1623. b := dAtA[iNdEx]
  1624. iNdEx++
  1625. m.Code |= (int64(b) & 0x7F) << shift
  1626. if b < 0x80 {
  1627. break
  1628. }
  1629. }
  1630. case 2:
  1631. if wireType != 2 {
  1632. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1633. }
  1634. var stringLen uint64
  1635. for shift := uint(0); ; shift += 7 {
  1636. if shift >= 64 {
  1637. return ErrIntOverflowBubble
  1638. }
  1639. if iNdEx >= l {
  1640. return io.ErrUnexpectedEOF
  1641. }
  1642. b := dAtA[iNdEx]
  1643. iNdEx++
  1644. stringLen |= (uint64(b) & 0x7F) << shift
  1645. if b < 0x80 {
  1646. break
  1647. }
  1648. }
  1649. intStringLen := int(stringLen)
  1650. if intStringLen < 0 {
  1651. return ErrInvalidLengthBubble
  1652. }
  1653. postIndex := iNdEx + intStringLen
  1654. if postIndex > l {
  1655. return io.ErrUnexpectedEOF
  1656. }
  1657. m.Msg = string(dAtA[iNdEx:postIndex])
  1658. iNdEx = postIndex
  1659. case 3:
  1660. if wireType != 2 {
  1661. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1662. }
  1663. var stringLen uint64
  1664. for shift := uint(0); ; shift += 7 {
  1665. if shift >= 64 {
  1666. return ErrIntOverflowBubble
  1667. }
  1668. if iNdEx >= l {
  1669. return io.ErrUnexpectedEOF
  1670. }
  1671. b := dAtA[iNdEx]
  1672. iNdEx++
  1673. stringLen |= (uint64(b) & 0x7F) << shift
  1674. if b < 0x80 {
  1675. break
  1676. }
  1677. }
  1678. intStringLen := int(stringLen)
  1679. if intStringLen < 0 {
  1680. return ErrInvalidLengthBubble
  1681. }
  1682. postIndex := iNdEx + intStringLen
  1683. if postIndex > l {
  1684. return io.ErrUnexpectedEOF
  1685. }
  1686. m.Message = string(dAtA[iNdEx:postIndex])
  1687. iNdEx = postIndex
  1688. case 4:
  1689. if wireType != 2 {
  1690. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1691. }
  1692. var msglen int
  1693. for shift := uint(0); ; shift += 7 {
  1694. if shift >= 64 {
  1695. return ErrIntOverflowBubble
  1696. }
  1697. if iNdEx >= l {
  1698. return io.ErrUnexpectedEOF
  1699. }
  1700. b := dAtA[iNdEx]
  1701. iNdEx++
  1702. msglen |= (int(b) & 0x7F) << shift
  1703. if b < 0x80 {
  1704. break
  1705. }
  1706. }
  1707. if msglen < 0 {
  1708. return ErrInvalidLengthBubble
  1709. }
  1710. postIndex := iNdEx + msglen
  1711. if postIndex > l {
  1712. return io.ErrUnexpectedEOF
  1713. }
  1714. if m.Data == nil {
  1715. m.Data = &BubbleGetCurrentResp_Data{}
  1716. }
  1717. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1718. return err
  1719. }
  1720. iNdEx = postIndex
  1721. default:
  1722. iNdEx = preIndex
  1723. skippy, err := skipBubble(dAtA[iNdEx:])
  1724. if err != nil {
  1725. return err
  1726. }
  1727. if skippy < 0 {
  1728. return ErrInvalidLengthBubble
  1729. }
  1730. if (iNdEx + skippy) > l {
  1731. return io.ErrUnexpectedEOF
  1732. }
  1733. iNdEx += skippy
  1734. }
  1735. }
  1736. if iNdEx > l {
  1737. return io.ErrUnexpectedEOF
  1738. }
  1739. return nil
  1740. }
  1741. func (m *BubbleGetCurrentResp_Data) Unmarshal(dAtA []byte) error {
  1742. l := len(dAtA)
  1743. iNdEx := 0
  1744. for iNdEx < l {
  1745. preIndex := iNdEx
  1746. var wire uint64
  1747. for shift := uint(0); ; shift += 7 {
  1748. if shift >= 64 {
  1749. return ErrIntOverflowBubble
  1750. }
  1751. if iNdEx >= l {
  1752. return io.ErrUnexpectedEOF
  1753. }
  1754. b := dAtA[iNdEx]
  1755. iNdEx++
  1756. wire |= (uint64(b) & 0x7F) << shift
  1757. if b < 0x80 {
  1758. break
  1759. }
  1760. }
  1761. fieldNum := int32(wire >> 3)
  1762. wireType := int(wire & 0x7)
  1763. if wireType == 4 {
  1764. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  1765. }
  1766. if fieldNum <= 0 {
  1767. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  1768. }
  1769. switch fieldNum {
  1770. case 1:
  1771. if wireType != 0 {
  1772. return fmt.Errorf("proto: wrong wireType = %d for field Bubble", wireType)
  1773. }
  1774. m.Bubble = 0
  1775. for shift := uint(0); ; shift += 7 {
  1776. if shift >= 64 {
  1777. return ErrIntOverflowBubble
  1778. }
  1779. if iNdEx >= l {
  1780. return io.ErrUnexpectedEOF
  1781. }
  1782. b := dAtA[iNdEx]
  1783. iNdEx++
  1784. m.Bubble |= (int64(b) & 0x7F) << shift
  1785. if b < 0x80 {
  1786. break
  1787. }
  1788. }
  1789. default:
  1790. iNdEx = preIndex
  1791. skippy, err := skipBubble(dAtA[iNdEx:])
  1792. if err != nil {
  1793. return err
  1794. }
  1795. if skippy < 0 {
  1796. return ErrInvalidLengthBubble
  1797. }
  1798. if (iNdEx + skippy) > l {
  1799. return io.ErrUnexpectedEOF
  1800. }
  1801. iNdEx += skippy
  1802. }
  1803. }
  1804. if iNdEx > l {
  1805. return io.ErrUnexpectedEOF
  1806. }
  1807. return nil
  1808. }
  1809. func (m *BubbleGetBubbleReq) Unmarshal(dAtA []byte) error {
  1810. l := len(dAtA)
  1811. iNdEx := 0
  1812. for iNdEx < l {
  1813. preIndex := iNdEx
  1814. var wire uint64
  1815. for shift := uint(0); ; shift += 7 {
  1816. if shift >= 64 {
  1817. return ErrIntOverflowBubble
  1818. }
  1819. if iNdEx >= l {
  1820. return io.ErrUnexpectedEOF
  1821. }
  1822. b := dAtA[iNdEx]
  1823. iNdEx++
  1824. wire |= (uint64(b) & 0x7F) << shift
  1825. if b < 0x80 {
  1826. break
  1827. }
  1828. }
  1829. fieldNum := int32(wire >> 3)
  1830. wireType := int(wire & 0x7)
  1831. if wireType == 4 {
  1832. return fmt.Errorf("proto: BubbleGetBubbleReq: wiretype end group for non-group")
  1833. }
  1834. if fieldNum <= 0 {
  1835. return fmt.Errorf("proto: BubbleGetBubbleReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1836. }
  1837. switch fieldNum {
  1838. case 1:
  1839. if wireType != 0 {
  1840. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1841. }
  1842. m.Uid = 0
  1843. for shift := uint(0); ; shift += 7 {
  1844. if shift >= 64 {
  1845. return ErrIntOverflowBubble
  1846. }
  1847. if iNdEx >= l {
  1848. return io.ErrUnexpectedEOF
  1849. }
  1850. b := dAtA[iNdEx]
  1851. iNdEx++
  1852. m.Uid |= (int64(b) & 0x7F) << shift
  1853. if b < 0x80 {
  1854. break
  1855. }
  1856. }
  1857. case 2:
  1858. if wireType != 0 {
  1859. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  1860. }
  1861. m.RoomId = 0
  1862. for shift := uint(0); ; shift += 7 {
  1863. if shift >= 64 {
  1864. return ErrIntOverflowBubble
  1865. }
  1866. if iNdEx >= l {
  1867. return io.ErrUnexpectedEOF
  1868. }
  1869. b := dAtA[iNdEx]
  1870. iNdEx++
  1871. m.RoomId |= (int64(b) & 0x7F) << shift
  1872. if b < 0x80 {
  1873. break
  1874. }
  1875. }
  1876. case 3:
  1877. if wireType != 0 {
  1878. return fmt.Errorf("proto: wrong wireType = %d for field BubbleId", wireType)
  1879. }
  1880. m.BubbleId = 0
  1881. for shift := uint(0); ; shift += 7 {
  1882. if shift >= 64 {
  1883. return ErrIntOverflowBubble
  1884. }
  1885. if iNdEx >= l {
  1886. return io.ErrUnexpectedEOF
  1887. }
  1888. b := dAtA[iNdEx]
  1889. iNdEx++
  1890. m.BubbleId |= (int64(b) & 0x7F) << shift
  1891. if b < 0x80 {
  1892. break
  1893. }
  1894. }
  1895. case 4:
  1896. if wireType != 0 {
  1897. return fmt.Errorf("proto: wrong wireType = %d for field GuardLevel", wireType)
  1898. }
  1899. m.GuardLevel = 0
  1900. for shift := uint(0); ; shift += 7 {
  1901. if shift >= 64 {
  1902. return ErrIntOverflowBubble
  1903. }
  1904. if iNdEx >= l {
  1905. return io.ErrUnexpectedEOF
  1906. }
  1907. b := dAtA[iNdEx]
  1908. iNdEx++
  1909. m.GuardLevel |= (int64(b) & 0x7F) << shift
  1910. if b < 0x80 {
  1911. break
  1912. }
  1913. }
  1914. default:
  1915. iNdEx = preIndex
  1916. skippy, err := skipBubble(dAtA[iNdEx:])
  1917. if err != nil {
  1918. return err
  1919. }
  1920. if skippy < 0 {
  1921. return ErrInvalidLengthBubble
  1922. }
  1923. if (iNdEx + skippy) > l {
  1924. return io.ErrUnexpectedEOF
  1925. }
  1926. iNdEx += skippy
  1927. }
  1928. }
  1929. if iNdEx > l {
  1930. return io.ErrUnexpectedEOF
  1931. }
  1932. return nil
  1933. }
  1934. func (m *BubbleGetBubbleResp) Unmarshal(dAtA []byte) error {
  1935. l := len(dAtA)
  1936. iNdEx := 0
  1937. for iNdEx < l {
  1938. preIndex := iNdEx
  1939. var wire uint64
  1940. for shift := uint(0); ; shift += 7 {
  1941. if shift >= 64 {
  1942. return ErrIntOverflowBubble
  1943. }
  1944. if iNdEx >= l {
  1945. return io.ErrUnexpectedEOF
  1946. }
  1947. b := dAtA[iNdEx]
  1948. iNdEx++
  1949. wire |= (uint64(b) & 0x7F) << shift
  1950. if b < 0x80 {
  1951. break
  1952. }
  1953. }
  1954. fieldNum := int32(wire >> 3)
  1955. wireType := int(wire & 0x7)
  1956. if wireType == 4 {
  1957. return fmt.Errorf("proto: BubbleGetBubbleResp: wiretype end group for non-group")
  1958. }
  1959. if fieldNum <= 0 {
  1960. return fmt.Errorf("proto: BubbleGetBubbleResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1961. }
  1962. switch fieldNum {
  1963. case 1:
  1964. if wireType != 0 {
  1965. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1966. }
  1967. m.Code = 0
  1968. for shift := uint(0); ; shift += 7 {
  1969. if shift >= 64 {
  1970. return ErrIntOverflowBubble
  1971. }
  1972. if iNdEx >= l {
  1973. return io.ErrUnexpectedEOF
  1974. }
  1975. b := dAtA[iNdEx]
  1976. iNdEx++
  1977. m.Code |= (int64(b) & 0x7F) << shift
  1978. if b < 0x80 {
  1979. break
  1980. }
  1981. }
  1982. case 2:
  1983. if wireType != 2 {
  1984. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1985. }
  1986. var stringLen uint64
  1987. for shift := uint(0); ; shift += 7 {
  1988. if shift >= 64 {
  1989. return ErrIntOverflowBubble
  1990. }
  1991. if iNdEx >= l {
  1992. return io.ErrUnexpectedEOF
  1993. }
  1994. b := dAtA[iNdEx]
  1995. iNdEx++
  1996. stringLen |= (uint64(b) & 0x7F) << shift
  1997. if b < 0x80 {
  1998. break
  1999. }
  2000. }
  2001. intStringLen := int(stringLen)
  2002. if intStringLen < 0 {
  2003. return ErrInvalidLengthBubble
  2004. }
  2005. postIndex := iNdEx + intStringLen
  2006. if postIndex > l {
  2007. return io.ErrUnexpectedEOF
  2008. }
  2009. m.Msg = string(dAtA[iNdEx:postIndex])
  2010. iNdEx = postIndex
  2011. case 3:
  2012. if wireType != 2 {
  2013. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2014. }
  2015. var stringLen uint64
  2016. for shift := uint(0); ; shift += 7 {
  2017. if shift >= 64 {
  2018. return ErrIntOverflowBubble
  2019. }
  2020. if iNdEx >= l {
  2021. return io.ErrUnexpectedEOF
  2022. }
  2023. b := dAtA[iNdEx]
  2024. iNdEx++
  2025. stringLen |= (uint64(b) & 0x7F) << shift
  2026. if b < 0x80 {
  2027. break
  2028. }
  2029. }
  2030. intStringLen := int(stringLen)
  2031. if intStringLen < 0 {
  2032. return ErrInvalidLengthBubble
  2033. }
  2034. postIndex := iNdEx + intStringLen
  2035. if postIndex > l {
  2036. return io.ErrUnexpectedEOF
  2037. }
  2038. m.Message = string(dAtA[iNdEx:postIndex])
  2039. iNdEx = postIndex
  2040. case 4:
  2041. if wireType != 2 {
  2042. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2043. }
  2044. var msglen int
  2045. for shift := uint(0); ; shift += 7 {
  2046. if shift >= 64 {
  2047. return ErrIntOverflowBubble
  2048. }
  2049. if iNdEx >= l {
  2050. return io.ErrUnexpectedEOF
  2051. }
  2052. b := dAtA[iNdEx]
  2053. iNdEx++
  2054. msglen |= (int(b) & 0x7F) << shift
  2055. if b < 0x80 {
  2056. break
  2057. }
  2058. }
  2059. if msglen < 0 {
  2060. return ErrInvalidLengthBubble
  2061. }
  2062. postIndex := iNdEx + msglen
  2063. if postIndex > l {
  2064. return io.ErrUnexpectedEOF
  2065. }
  2066. if m.Data == nil {
  2067. m.Data = &BubbleGetBubbleResp_Data{}
  2068. }
  2069. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2070. return err
  2071. }
  2072. iNdEx = postIndex
  2073. default:
  2074. iNdEx = preIndex
  2075. skippy, err := skipBubble(dAtA[iNdEx:])
  2076. if err != nil {
  2077. return err
  2078. }
  2079. if skippy < 0 {
  2080. return ErrInvalidLengthBubble
  2081. }
  2082. if (iNdEx + skippy) > l {
  2083. return io.ErrUnexpectedEOF
  2084. }
  2085. iNdEx += skippy
  2086. }
  2087. }
  2088. if iNdEx > l {
  2089. return io.ErrUnexpectedEOF
  2090. }
  2091. return nil
  2092. }
  2093. func (m *BubbleGetBubbleResp_Data) Unmarshal(dAtA []byte) error {
  2094. l := len(dAtA)
  2095. iNdEx := 0
  2096. for iNdEx < l {
  2097. preIndex := iNdEx
  2098. var wire uint64
  2099. for shift := uint(0); ; shift += 7 {
  2100. if shift >= 64 {
  2101. return ErrIntOverflowBubble
  2102. }
  2103. if iNdEx >= l {
  2104. return io.ErrUnexpectedEOF
  2105. }
  2106. b := dAtA[iNdEx]
  2107. iNdEx++
  2108. wire |= (uint64(b) & 0x7F) << shift
  2109. if b < 0x80 {
  2110. break
  2111. }
  2112. }
  2113. fieldNum := int32(wire >> 3)
  2114. wireType := int(wire & 0x7)
  2115. if wireType == 4 {
  2116. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  2117. }
  2118. if fieldNum <= 0 {
  2119. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  2120. }
  2121. switch fieldNum {
  2122. case 1:
  2123. if wireType != 0 {
  2124. return fmt.Errorf("proto: wrong wireType = %d for field Bubble", wireType)
  2125. }
  2126. m.Bubble = 0
  2127. for shift := uint(0); ; shift += 7 {
  2128. if shift >= 64 {
  2129. return ErrIntOverflowBubble
  2130. }
  2131. if iNdEx >= l {
  2132. return io.ErrUnexpectedEOF
  2133. }
  2134. b := dAtA[iNdEx]
  2135. iNdEx++
  2136. m.Bubble |= (int64(b) & 0x7F) << shift
  2137. if b < 0x80 {
  2138. break
  2139. }
  2140. }
  2141. default:
  2142. iNdEx = preIndex
  2143. skippy, err := skipBubble(dAtA[iNdEx:])
  2144. if err != nil {
  2145. return err
  2146. }
  2147. if skippy < 0 {
  2148. return ErrInvalidLengthBubble
  2149. }
  2150. if (iNdEx + skippy) > l {
  2151. return io.ErrUnexpectedEOF
  2152. }
  2153. iNdEx += skippy
  2154. }
  2155. }
  2156. if iNdEx > l {
  2157. return io.ErrUnexpectedEOF
  2158. }
  2159. return nil
  2160. }
  2161. func (m *BubbleCheckAuthReq) Unmarshal(dAtA []byte) error {
  2162. l := len(dAtA)
  2163. iNdEx := 0
  2164. for iNdEx < l {
  2165. preIndex := iNdEx
  2166. var wire uint64
  2167. for shift := uint(0); ; shift += 7 {
  2168. if shift >= 64 {
  2169. return ErrIntOverflowBubble
  2170. }
  2171. if iNdEx >= l {
  2172. return io.ErrUnexpectedEOF
  2173. }
  2174. b := dAtA[iNdEx]
  2175. iNdEx++
  2176. wire |= (uint64(b) & 0x7F) << shift
  2177. if b < 0x80 {
  2178. break
  2179. }
  2180. }
  2181. fieldNum := int32(wire >> 3)
  2182. wireType := int(wire & 0x7)
  2183. if wireType == 4 {
  2184. return fmt.Errorf("proto: BubbleCheckAuthReq: wiretype end group for non-group")
  2185. }
  2186. if fieldNum <= 0 {
  2187. return fmt.Errorf("proto: BubbleCheckAuthReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2188. }
  2189. switch fieldNum {
  2190. case 1:
  2191. if wireType != 0 {
  2192. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  2193. }
  2194. m.Uid = 0
  2195. for shift := uint(0); ; shift += 7 {
  2196. if shift >= 64 {
  2197. return ErrIntOverflowBubble
  2198. }
  2199. if iNdEx >= l {
  2200. return io.ErrUnexpectedEOF
  2201. }
  2202. b := dAtA[iNdEx]
  2203. iNdEx++
  2204. m.Uid |= (int64(b) & 0x7F) << shift
  2205. if b < 0x80 {
  2206. break
  2207. }
  2208. }
  2209. case 2:
  2210. if wireType != 0 {
  2211. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  2212. }
  2213. m.RoomId = 0
  2214. for shift := uint(0); ; shift += 7 {
  2215. if shift >= 64 {
  2216. return ErrIntOverflowBubble
  2217. }
  2218. if iNdEx >= l {
  2219. return io.ErrUnexpectedEOF
  2220. }
  2221. b := dAtA[iNdEx]
  2222. iNdEx++
  2223. m.RoomId |= (int64(b) & 0x7F) << shift
  2224. if b < 0x80 {
  2225. break
  2226. }
  2227. }
  2228. case 3:
  2229. if wireType != 0 {
  2230. return fmt.Errorf("proto: wrong wireType = %d for field BubbleId", wireType)
  2231. }
  2232. m.BubbleId = 0
  2233. for shift := uint(0); ; shift += 7 {
  2234. if shift >= 64 {
  2235. return ErrIntOverflowBubble
  2236. }
  2237. if iNdEx >= l {
  2238. return io.ErrUnexpectedEOF
  2239. }
  2240. b := dAtA[iNdEx]
  2241. iNdEx++
  2242. m.BubbleId |= (int64(b) & 0x7F) << shift
  2243. if b < 0x80 {
  2244. break
  2245. }
  2246. }
  2247. default:
  2248. iNdEx = preIndex
  2249. skippy, err := skipBubble(dAtA[iNdEx:])
  2250. if err != nil {
  2251. return err
  2252. }
  2253. if skippy < 0 {
  2254. return ErrInvalidLengthBubble
  2255. }
  2256. if (iNdEx + skippy) > l {
  2257. return io.ErrUnexpectedEOF
  2258. }
  2259. iNdEx += skippy
  2260. }
  2261. }
  2262. if iNdEx > l {
  2263. return io.ErrUnexpectedEOF
  2264. }
  2265. return nil
  2266. }
  2267. func (m *BubbleCheckAuthResp) Unmarshal(dAtA []byte) error {
  2268. l := len(dAtA)
  2269. iNdEx := 0
  2270. for iNdEx < l {
  2271. preIndex := iNdEx
  2272. var wire uint64
  2273. for shift := uint(0); ; shift += 7 {
  2274. if shift >= 64 {
  2275. return ErrIntOverflowBubble
  2276. }
  2277. if iNdEx >= l {
  2278. return io.ErrUnexpectedEOF
  2279. }
  2280. b := dAtA[iNdEx]
  2281. iNdEx++
  2282. wire |= (uint64(b) & 0x7F) << shift
  2283. if b < 0x80 {
  2284. break
  2285. }
  2286. }
  2287. fieldNum := int32(wire >> 3)
  2288. wireType := int(wire & 0x7)
  2289. if wireType == 4 {
  2290. return fmt.Errorf("proto: BubbleCheckAuthResp: wiretype end group for non-group")
  2291. }
  2292. if fieldNum <= 0 {
  2293. return fmt.Errorf("proto: BubbleCheckAuthResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2294. }
  2295. switch fieldNum {
  2296. case 1:
  2297. if wireType != 0 {
  2298. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2299. }
  2300. m.Code = 0
  2301. for shift := uint(0); ; shift += 7 {
  2302. if shift >= 64 {
  2303. return ErrIntOverflowBubble
  2304. }
  2305. if iNdEx >= l {
  2306. return io.ErrUnexpectedEOF
  2307. }
  2308. b := dAtA[iNdEx]
  2309. iNdEx++
  2310. m.Code |= (int64(b) & 0x7F) << shift
  2311. if b < 0x80 {
  2312. break
  2313. }
  2314. }
  2315. case 2:
  2316. if wireType != 2 {
  2317. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2318. }
  2319. var stringLen uint64
  2320. for shift := uint(0); ; shift += 7 {
  2321. if shift >= 64 {
  2322. return ErrIntOverflowBubble
  2323. }
  2324. if iNdEx >= l {
  2325. return io.ErrUnexpectedEOF
  2326. }
  2327. b := dAtA[iNdEx]
  2328. iNdEx++
  2329. stringLen |= (uint64(b) & 0x7F) << shift
  2330. if b < 0x80 {
  2331. break
  2332. }
  2333. }
  2334. intStringLen := int(stringLen)
  2335. if intStringLen < 0 {
  2336. return ErrInvalidLengthBubble
  2337. }
  2338. postIndex := iNdEx + intStringLen
  2339. if postIndex > l {
  2340. return io.ErrUnexpectedEOF
  2341. }
  2342. m.Msg = string(dAtA[iNdEx:postIndex])
  2343. iNdEx = postIndex
  2344. case 3:
  2345. if wireType != 2 {
  2346. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2347. }
  2348. var stringLen uint64
  2349. for shift := uint(0); ; shift += 7 {
  2350. if shift >= 64 {
  2351. return ErrIntOverflowBubble
  2352. }
  2353. if iNdEx >= l {
  2354. return io.ErrUnexpectedEOF
  2355. }
  2356. b := dAtA[iNdEx]
  2357. iNdEx++
  2358. stringLen |= (uint64(b) & 0x7F) << shift
  2359. if b < 0x80 {
  2360. break
  2361. }
  2362. }
  2363. intStringLen := int(stringLen)
  2364. if intStringLen < 0 {
  2365. return ErrInvalidLengthBubble
  2366. }
  2367. postIndex := iNdEx + intStringLen
  2368. if postIndex > l {
  2369. return io.ErrUnexpectedEOF
  2370. }
  2371. m.Message = string(dAtA[iNdEx:postIndex])
  2372. iNdEx = postIndex
  2373. case 4:
  2374. if wireType != 2 {
  2375. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2376. }
  2377. var msglen int
  2378. for shift := uint(0); ; shift += 7 {
  2379. if shift >= 64 {
  2380. return ErrIntOverflowBubble
  2381. }
  2382. if iNdEx >= l {
  2383. return io.ErrUnexpectedEOF
  2384. }
  2385. b := dAtA[iNdEx]
  2386. iNdEx++
  2387. msglen |= (int(b) & 0x7F) << shift
  2388. if b < 0x80 {
  2389. break
  2390. }
  2391. }
  2392. if msglen < 0 {
  2393. return ErrInvalidLengthBubble
  2394. }
  2395. postIndex := iNdEx + msglen
  2396. if postIndex > l {
  2397. return io.ErrUnexpectedEOF
  2398. }
  2399. if m.Data == nil {
  2400. m.Data = &BubbleCheckAuthResp_Data{}
  2401. }
  2402. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2403. return err
  2404. }
  2405. iNdEx = postIndex
  2406. default:
  2407. iNdEx = preIndex
  2408. skippy, err := skipBubble(dAtA[iNdEx:])
  2409. if err != nil {
  2410. return err
  2411. }
  2412. if skippy < 0 {
  2413. return ErrInvalidLengthBubble
  2414. }
  2415. if (iNdEx + skippy) > l {
  2416. return io.ErrUnexpectedEOF
  2417. }
  2418. iNdEx += skippy
  2419. }
  2420. }
  2421. if iNdEx > l {
  2422. return io.ErrUnexpectedEOF
  2423. }
  2424. return nil
  2425. }
  2426. func (m *BubbleCheckAuthResp_Data) Unmarshal(dAtA []byte) error {
  2427. l := len(dAtA)
  2428. iNdEx := 0
  2429. for iNdEx < l {
  2430. preIndex := iNdEx
  2431. var wire uint64
  2432. for shift := uint(0); ; shift += 7 {
  2433. if shift >= 64 {
  2434. return ErrIntOverflowBubble
  2435. }
  2436. if iNdEx >= l {
  2437. return io.ErrUnexpectedEOF
  2438. }
  2439. b := dAtA[iNdEx]
  2440. iNdEx++
  2441. wire |= (uint64(b) & 0x7F) << shift
  2442. if b < 0x80 {
  2443. break
  2444. }
  2445. }
  2446. fieldNum := int32(wire >> 3)
  2447. wireType := int(wire & 0x7)
  2448. if wireType == 4 {
  2449. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  2450. }
  2451. if fieldNum <= 0 {
  2452. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  2453. }
  2454. switch fieldNum {
  2455. case 1:
  2456. if wireType != 0 {
  2457. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2458. }
  2459. m.Code = 0
  2460. for shift := uint(0); ; shift += 7 {
  2461. if shift >= 64 {
  2462. return ErrIntOverflowBubble
  2463. }
  2464. if iNdEx >= l {
  2465. return io.ErrUnexpectedEOF
  2466. }
  2467. b := dAtA[iNdEx]
  2468. iNdEx++
  2469. m.Code |= (int64(b) & 0x7F) << shift
  2470. if b < 0x80 {
  2471. break
  2472. }
  2473. }
  2474. case 2:
  2475. if wireType != 2 {
  2476. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2477. }
  2478. var stringLen uint64
  2479. for shift := uint(0); ; shift += 7 {
  2480. if shift >= 64 {
  2481. return ErrIntOverflowBubble
  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 ErrInvalidLengthBubble
  2496. }
  2497. postIndex := iNdEx + intStringLen
  2498. if postIndex > l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. m.Message = string(dAtA[iNdEx:postIndex])
  2502. iNdEx = postIndex
  2503. default:
  2504. iNdEx = preIndex
  2505. skippy, err := skipBubble(dAtA[iNdEx:])
  2506. if err != nil {
  2507. return err
  2508. }
  2509. if skippy < 0 {
  2510. return ErrInvalidLengthBubble
  2511. }
  2512. if (iNdEx + skippy) > l {
  2513. return io.ErrUnexpectedEOF
  2514. }
  2515. iNdEx += skippy
  2516. }
  2517. }
  2518. if iNdEx > l {
  2519. return io.ErrUnexpectedEOF
  2520. }
  2521. return nil
  2522. }
  2523. func (m *BubbleMultiAddReq) Unmarshal(dAtA []byte) error {
  2524. l := len(dAtA)
  2525. iNdEx := 0
  2526. for iNdEx < l {
  2527. preIndex := iNdEx
  2528. var wire uint64
  2529. for shift := uint(0); ; shift += 7 {
  2530. if shift >= 64 {
  2531. return ErrIntOverflowBubble
  2532. }
  2533. if iNdEx >= l {
  2534. return io.ErrUnexpectedEOF
  2535. }
  2536. b := dAtA[iNdEx]
  2537. iNdEx++
  2538. wire |= (uint64(b) & 0x7F) << shift
  2539. if b < 0x80 {
  2540. break
  2541. }
  2542. }
  2543. fieldNum := int32(wire >> 3)
  2544. wireType := int(wire & 0x7)
  2545. if wireType == 4 {
  2546. return fmt.Errorf("proto: BubbleMultiAddReq: wiretype end group for non-group")
  2547. }
  2548. if fieldNum <= 0 {
  2549. return fmt.Errorf("proto: BubbleMultiAddReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2550. }
  2551. switch fieldNum {
  2552. case 1:
  2553. if wireType != 2 {
  2554. return fmt.Errorf("proto: wrong wireType = %d for field UidList", wireType)
  2555. }
  2556. var stringLen uint64
  2557. for shift := uint(0); ; shift += 7 {
  2558. if shift >= 64 {
  2559. return ErrIntOverflowBubble
  2560. }
  2561. if iNdEx >= l {
  2562. return io.ErrUnexpectedEOF
  2563. }
  2564. b := dAtA[iNdEx]
  2565. iNdEx++
  2566. stringLen |= (uint64(b) & 0x7F) << shift
  2567. if b < 0x80 {
  2568. break
  2569. }
  2570. }
  2571. intStringLen := int(stringLen)
  2572. if intStringLen < 0 {
  2573. return ErrInvalidLengthBubble
  2574. }
  2575. postIndex := iNdEx + intStringLen
  2576. if postIndex > l {
  2577. return io.ErrUnexpectedEOF
  2578. }
  2579. m.UidList = string(dAtA[iNdEx:postIndex])
  2580. iNdEx = postIndex
  2581. case 2:
  2582. if wireType != 0 {
  2583. return fmt.Errorf("proto: wrong wireType = %d for field BubbleId", wireType)
  2584. }
  2585. m.BubbleId = 0
  2586. for shift := uint(0); ; shift += 7 {
  2587. if shift >= 64 {
  2588. return ErrIntOverflowBubble
  2589. }
  2590. if iNdEx >= l {
  2591. return io.ErrUnexpectedEOF
  2592. }
  2593. b := dAtA[iNdEx]
  2594. iNdEx++
  2595. m.BubbleId |= (int64(b) & 0x7F) << shift
  2596. if b < 0x80 {
  2597. break
  2598. }
  2599. }
  2600. case 3:
  2601. if wireType != 0 {
  2602. return fmt.Errorf("proto: wrong wireType = %d for field ExpiredAt", wireType)
  2603. }
  2604. m.ExpiredAt = 0
  2605. for shift := uint(0); ; shift += 7 {
  2606. if shift >= 64 {
  2607. return ErrIntOverflowBubble
  2608. }
  2609. if iNdEx >= l {
  2610. return io.ErrUnexpectedEOF
  2611. }
  2612. b := dAtA[iNdEx]
  2613. iNdEx++
  2614. m.ExpiredAt |= (int64(b) & 0x7F) << shift
  2615. if b < 0x80 {
  2616. break
  2617. }
  2618. }
  2619. case 4:
  2620. if wireType != 2 {
  2621. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  2622. }
  2623. var stringLen uint64
  2624. for shift := uint(0); ; shift += 7 {
  2625. if shift >= 64 {
  2626. return ErrIntOverflowBubble
  2627. }
  2628. if iNdEx >= l {
  2629. return io.ErrUnexpectedEOF
  2630. }
  2631. b := dAtA[iNdEx]
  2632. iNdEx++
  2633. stringLen |= (uint64(b) & 0x7F) << shift
  2634. if b < 0x80 {
  2635. break
  2636. }
  2637. }
  2638. intStringLen := int(stringLen)
  2639. if intStringLen < 0 {
  2640. return ErrInvalidLengthBubble
  2641. }
  2642. postIndex := iNdEx + intStringLen
  2643. if postIndex > l {
  2644. return io.ErrUnexpectedEOF
  2645. }
  2646. m.Desc = string(dAtA[iNdEx:postIndex])
  2647. iNdEx = postIndex
  2648. case 5:
  2649. if wireType != 0 {
  2650. return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType)
  2651. }
  2652. m.Category = 0
  2653. for shift := uint(0); ; shift += 7 {
  2654. if shift >= 64 {
  2655. return ErrIntOverflowBubble
  2656. }
  2657. if iNdEx >= l {
  2658. return io.ErrUnexpectedEOF
  2659. }
  2660. b := dAtA[iNdEx]
  2661. iNdEx++
  2662. m.Category |= (int64(b) & 0x7F) << shift
  2663. if b < 0x80 {
  2664. break
  2665. }
  2666. }
  2667. case 6:
  2668. if wireType != 0 {
  2669. return fmt.Errorf("proto: wrong wireType = %d for field SubCategory", wireType)
  2670. }
  2671. m.SubCategory = 0
  2672. for shift := uint(0); ; shift += 7 {
  2673. if shift >= 64 {
  2674. return ErrIntOverflowBubble
  2675. }
  2676. if iNdEx >= l {
  2677. return io.ErrUnexpectedEOF
  2678. }
  2679. b := dAtA[iNdEx]
  2680. iNdEx++
  2681. m.SubCategory |= (int64(b) & 0x7F) << shift
  2682. if b < 0x80 {
  2683. break
  2684. }
  2685. }
  2686. case 7:
  2687. if wireType != 0 {
  2688. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  2689. }
  2690. m.RoomId = 0
  2691. for shift := uint(0); ; shift += 7 {
  2692. if shift >= 64 {
  2693. return ErrIntOverflowBubble
  2694. }
  2695. if iNdEx >= l {
  2696. return io.ErrUnexpectedEOF
  2697. }
  2698. b := dAtA[iNdEx]
  2699. iNdEx++
  2700. m.RoomId |= (int64(b) & 0x7F) << shift
  2701. if b < 0x80 {
  2702. break
  2703. }
  2704. }
  2705. default:
  2706. iNdEx = preIndex
  2707. skippy, err := skipBubble(dAtA[iNdEx:])
  2708. if err != nil {
  2709. return err
  2710. }
  2711. if skippy < 0 {
  2712. return ErrInvalidLengthBubble
  2713. }
  2714. if (iNdEx + skippy) > l {
  2715. return io.ErrUnexpectedEOF
  2716. }
  2717. iNdEx += skippy
  2718. }
  2719. }
  2720. if iNdEx > l {
  2721. return io.ErrUnexpectedEOF
  2722. }
  2723. return nil
  2724. }
  2725. func (m *BubbleMultiAddResp) Unmarshal(dAtA []byte) error {
  2726. l := len(dAtA)
  2727. iNdEx := 0
  2728. for iNdEx < l {
  2729. preIndex := iNdEx
  2730. var wire uint64
  2731. for shift := uint(0); ; shift += 7 {
  2732. if shift >= 64 {
  2733. return ErrIntOverflowBubble
  2734. }
  2735. if iNdEx >= l {
  2736. return io.ErrUnexpectedEOF
  2737. }
  2738. b := dAtA[iNdEx]
  2739. iNdEx++
  2740. wire |= (uint64(b) & 0x7F) << shift
  2741. if b < 0x80 {
  2742. break
  2743. }
  2744. }
  2745. fieldNum := int32(wire >> 3)
  2746. wireType := int(wire & 0x7)
  2747. if wireType == 4 {
  2748. return fmt.Errorf("proto: BubbleMultiAddResp: wiretype end group for non-group")
  2749. }
  2750. if fieldNum <= 0 {
  2751. return fmt.Errorf("proto: BubbleMultiAddResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2752. }
  2753. switch fieldNum {
  2754. case 1:
  2755. if wireType != 0 {
  2756. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2757. }
  2758. m.Code = 0
  2759. for shift := uint(0); ; shift += 7 {
  2760. if shift >= 64 {
  2761. return ErrIntOverflowBubble
  2762. }
  2763. if iNdEx >= l {
  2764. return io.ErrUnexpectedEOF
  2765. }
  2766. b := dAtA[iNdEx]
  2767. iNdEx++
  2768. m.Code |= (int64(b) & 0x7F) << shift
  2769. if b < 0x80 {
  2770. break
  2771. }
  2772. }
  2773. case 2:
  2774. if wireType != 2 {
  2775. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2776. }
  2777. var stringLen uint64
  2778. for shift := uint(0); ; shift += 7 {
  2779. if shift >= 64 {
  2780. return ErrIntOverflowBubble
  2781. }
  2782. if iNdEx >= l {
  2783. return io.ErrUnexpectedEOF
  2784. }
  2785. b := dAtA[iNdEx]
  2786. iNdEx++
  2787. stringLen |= (uint64(b) & 0x7F) << shift
  2788. if b < 0x80 {
  2789. break
  2790. }
  2791. }
  2792. intStringLen := int(stringLen)
  2793. if intStringLen < 0 {
  2794. return ErrInvalidLengthBubble
  2795. }
  2796. postIndex := iNdEx + intStringLen
  2797. if postIndex > l {
  2798. return io.ErrUnexpectedEOF
  2799. }
  2800. m.Msg = string(dAtA[iNdEx:postIndex])
  2801. iNdEx = postIndex
  2802. case 3:
  2803. if wireType != 2 {
  2804. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2805. }
  2806. var stringLen uint64
  2807. for shift := uint(0); ; shift += 7 {
  2808. if shift >= 64 {
  2809. return ErrIntOverflowBubble
  2810. }
  2811. if iNdEx >= l {
  2812. return io.ErrUnexpectedEOF
  2813. }
  2814. b := dAtA[iNdEx]
  2815. iNdEx++
  2816. stringLen |= (uint64(b) & 0x7F) << shift
  2817. if b < 0x80 {
  2818. break
  2819. }
  2820. }
  2821. intStringLen := int(stringLen)
  2822. if intStringLen < 0 {
  2823. return ErrInvalidLengthBubble
  2824. }
  2825. postIndex := iNdEx + intStringLen
  2826. if postIndex > l {
  2827. return io.ErrUnexpectedEOF
  2828. }
  2829. m.Message = string(dAtA[iNdEx:postIndex])
  2830. iNdEx = postIndex
  2831. case 4:
  2832. if wireType != 2 {
  2833. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2834. }
  2835. var msglen int
  2836. for shift := uint(0); ; shift += 7 {
  2837. if shift >= 64 {
  2838. return ErrIntOverflowBubble
  2839. }
  2840. if iNdEx >= l {
  2841. return io.ErrUnexpectedEOF
  2842. }
  2843. b := dAtA[iNdEx]
  2844. iNdEx++
  2845. msglen |= (int(b) & 0x7F) << shift
  2846. if b < 0x80 {
  2847. break
  2848. }
  2849. }
  2850. if msglen < 0 {
  2851. return ErrInvalidLengthBubble
  2852. }
  2853. postIndex := iNdEx + msglen
  2854. if postIndex > l {
  2855. return io.ErrUnexpectedEOF
  2856. }
  2857. if m.Data == nil {
  2858. m.Data = &BubbleMultiAddResp_Data{}
  2859. }
  2860. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2861. return err
  2862. }
  2863. iNdEx = postIndex
  2864. default:
  2865. iNdEx = preIndex
  2866. skippy, err := skipBubble(dAtA[iNdEx:])
  2867. if err != nil {
  2868. return err
  2869. }
  2870. if skippy < 0 {
  2871. return ErrInvalidLengthBubble
  2872. }
  2873. if (iNdEx + skippy) > l {
  2874. return io.ErrUnexpectedEOF
  2875. }
  2876. iNdEx += skippy
  2877. }
  2878. }
  2879. if iNdEx > l {
  2880. return io.ErrUnexpectedEOF
  2881. }
  2882. return nil
  2883. }
  2884. func (m *BubbleMultiAddResp_UidList) Unmarshal(dAtA []byte) error {
  2885. l := len(dAtA)
  2886. iNdEx := 0
  2887. for iNdEx < l {
  2888. preIndex := iNdEx
  2889. var wire uint64
  2890. for shift := uint(0); ; shift += 7 {
  2891. if shift >= 64 {
  2892. return ErrIntOverflowBubble
  2893. }
  2894. if iNdEx >= l {
  2895. return io.ErrUnexpectedEOF
  2896. }
  2897. b := dAtA[iNdEx]
  2898. iNdEx++
  2899. wire |= (uint64(b) & 0x7F) << shift
  2900. if b < 0x80 {
  2901. break
  2902. }
  2903. }
  2904. fieldNum := int32(wire >> 3)
  2905. wireType := int(wire & 0x7)
  2906. if wireType == 4 {
  2907. return fmt.Errorf("proto: UidList: wiretype end group for non-group")
  2908. }
  2909. if fieldNum <= 0 {
  2910. return fmt.Errorf("proto: UidList: illegal tag %d (wire type %d)", fieldNum, wire)
  2911. }
  2912. switch fieldNum {
  2913. case 1:
  2914. if wireType == 0 {
  2915. var v int64
  2916. for shift := uint(0); ; shift += 7 {
  2917. if shift >= 64 {
  2918. return ErrIntOverflowBubble
  2919. }
  2920. if iNdEx >= l {
  2921. return io.ErrUnexpectedEOF
  2922. }
  2923. b := dAtA[iNdEx]
  2924. iNdEx++
  2925. v |= (int64(b) & 0x7F) << shift
  2926. if b < 0x80 {
  2927. break
  2928. }
  2929. }
  2930. m.Uid = append(m.Uid, v)
  2931. } else if wireType == 2 {
  2932. var packedLen int
  2933. for shift := uint(0); ; shift += 7 {
  2934. if shift >= 64 {
  2935. return ErrIntOverflowBubble
  2936. }
  2937. if iNdEx >= l {
  2938. return io.ErrUnexpectedEOF
  2939. }
  2940. b := dAtA[iNdEx]
  2941. iNdEx++
  2942. packedLen |= (int(b) & 0x7F) << shift
  2943. if b < 0x80 {
  2944. break
  2945. }
  2946. }
  2947. if packedLen < 0 {
  2948. return ErrInvalidLengthBubble
  2949. }
  2950. postIndex := iNdEx + packedLen
  2951. if postIndex > l {
  2952. return io.ErrUnexpectedEOF
  2953. }
  2954. var elementCount int
  2955. var count int
  2956. for _, integer := range dAtA {
  2957. if integer < 128 {
  2958. count++
  2959. }
  2960. }
  2961. elementCount = count
  2962. if elementCount != 0 && len(m.Uid) == 0 {
  2963. m.Uid = make([]int64, 0, elementCount)
  2964. }
  2965. for iNdEx < postIndex {
  2966. var v int64
  2967. for shift := uint(0); ; shift += 7 {
  2968. if shift >= 64 {
  2969. return ErrIntOverflowBubble
  2970. }
  2971. if iNdEx >= l {
  2972. return io.ErrUnexpectedEOF
  2973. }
  2974. b := dAtA[iNdEx]
  2975. iNdEx++
  2976. v |= (int64(b) & 0x7F) << shift
  2977. if b < 0x80 {
  2978. break
  2979. }
  2980. }
  2981. m.Uid = append(m.Uid, v)
  2982. }
  2983. } else {
  2984. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  2985. }
  2986. default:
  2987. iNdEx = preIndex
  2988. skippy, err := skipBubble(dAtA[iNdEx:])
  2989. if err != nil {
  2990. return err
  2991. }
  2992. if skippy < 0 {
  2993. return ErrInvalidLengthBubble
  2994. }
  2995. if (iNdEx + skippy) > l {
  2996. return io.ErrUnexpectedEOF
  2997. }
  2998. iNdEx += skippy
  2999. }
  3000. }
  3001. if iNdEx > l {
  3002. return io.ErrUnexpectedEOF
  3003. }
  3004. return nil
  3005. }
  3006. func (m *BubbleMultiAddResp_Data) Unmarshal(dAtA []byte) error {
  3007. l := len(dAtA)
  3008. iNdEx := 0
  3009. for iNdEx < l {
  3010. preIndex := iNdEx
  3011. var wire uint64
  3012. for shift := uint(0); ; shift += 7 {
  3013. if shift >= 64 {
  3014. return ErrIntOverflowBubble
  3015. }
  3016. if iNdEx >= l {
  3017. return io.ErrUnexpectedEOF
  3018. }
  3019. b := dAtA[iNdEx]
  3020. iNdEx++
  3021. wire |= (uint64(b) & 0x7F) << shift
  3022. if b < 0x80 {
  3023. break
  3024. }
  3025. }
  3026. fieldNum := int32(wire >> 3)
  3027. wireType := int(wire & 0x7)
  3028. if wireType == 4 {
  3029. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  3030. }
  3031. if fieldNum <= 0 {
  3032. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  3033. }
  3034. switch fieldNum {
  3035. case 1:
  3036. if wireType != 2 {
  3037. return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
  3038. }
  3039. var msglen int
  3040. for shift := uint(0); ; shift += 7 {
  3041. if shift >= 64 {
  3042. return ErrIntOverflowBubble
  3043. }
  3044. if iNdEx >= l {
  3045. return io.ErrUnexpectedEOF
  3046. }
  3047. b := dAtA[iNdEx]
  3048. iNdEx++
  3049. msglen |= (int(b) & 0x7F) << shift
  3050. if b < 0x80 {
  3051. break
  3052. }
  3053. }
  3054. if msglen < 0 {
  3055. return ErrInvalidLengthBubble
  3056. }
  3057. postIndex := iNdEx + msglen
  3058. if postIndex > l {
  3059. return io.ErrUnexpectedEOF
  3060. }
  3061. if m.Success == nil {
  3062. m.Success = &BubbleMultiAddResp_UidList{}
  3063. }
  3064. if err := m.Success.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3065. return err
  3066. }
  3067. iNdEx = postIndex
  3068. case 2:
  3069. if wireType != 2 {
  3070. return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType)
  3071. }
  3072. var msglen int
  3073. for shift := uint(0); ; shift += 7 {
  3074. if shift >= 64 {
  3075. return ErrIntOverflowBubble
  3076. }
  3077. if iNdEx >= l {
  3078. return io.ErrUnexpectedEOF
  3079. }
  3080. b := dAtA[iNdEx]
  3081. iNdEx++
  3082. msglen |= (int(b) & 0x7F) << shift
  3083. if b < 0x80 {
  3084. break
  3085. }
  3086. }
  3087. if msglen < 0 {
  3088. return ErrInvalidLengthBubble
  3089. }
  3090. postIndex := iNdEx + msglen
  3091. if postIndex > l {
  3092. return io.ErrUnexpectedEOF
  3093. }
  3094. if m.Failed == nil {
  3095. m.Failed = &BubbleMultiAddResp_UidList{}
  3096. }
  3097. if err := m.Failed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3098. return err
  3099. }
  3100. iNdEx = postIndex
  3101. default:
  3102. iNdEx = preIndex
  3103. skippy, err := skipBubble(dAtA[iNdEx:])
  3104. if err != nil {
  3105. return err
  3106. }
  3107. if skippy < 0 {
  3108. return ErrInvalidLengthBubble
  3109. }
  3110. if (iNdEx + skippy) > l {
  3111. return io.ErrUnexpectedEOF
  3112. }
  3113. iNdEx += skippy
  3114. }
  3115. }
  3116. if iNdEx > l {
  3117. return io.ErrUnexpectedEOF
  3118. }
  3119. return nil
  3120. }
  3121. func skipBubble(dAtA []byte) (n int, err error) {
  3122. l := len(dAtA)
  3123. iNdEx := 0
  3124. for iNdEx < l {
  3125. var wire uint64
  3126. for shift := uint(0); ; shift += 7 {
  3127. if shift >= 64 {
  3128. return 0, ErrIntOverflowBubble
  3129. }
  3130. if iNdEx >= l {
  3131. return 0, io.ErrUnexpectedEOF
  3132. }
  3133. b := dAtA[iNdEx]
  3134. iNdEx++
  3135. wire |= (uint64(b) & 0x7F) << shift
  3136. if b < 0x80 {
  3137. break
  3138. }
  3139. }
  3140. wireType := int(wire & 0x7)
  3141. switch wireType {
  3142. case 0:
  3143. for shift := uint(0); ; shift += 7 {
  3144. if shift >= 64 {
  3145. return 0, ErrIntOverflowBubble
  3146. }
  3147. if iNdEx >= l {
  3148. return 0, io.ErrUnexpectedEOF
  3149. }
  3150. iNdEx++
  3151. if dAtA[iNdEx-1] < 0x80 {
  3152. break
  3153. }
  3154. }
  3155. return iNdEx, nil
  3156. case 1:
  3157. iNdEx += 8
  3158. return iNdEx, nil
  3159. case 2:
  3160. var length int
  3161. for shift := uint(0); ; shift += 7 {
  3162. if shift >= 64 {
  3163. return 0, ErrIntOverflowBubble
  3164. }
  3165. if iNdEx >= l {
  3166. return 0, io.ErrUnexpectedEOF
  3167. }
  3168. b := dAtA[iNdEx]
  3169. iNdEx++
  3170. length |= (int(b) & 0x7F) << shift
  3171. if b < 0x80 {
  3172. break
  3173. }
  3174. }
  3175. iNdEx += length
  3176. if length < 0 {
  3177. return 0, ErrInvalidLengthBubble
  3178. }
  3179. return iNdEx, nil
  3180. case 3:
  3181. for {
  3182. var innerWire uint64
  3183. var start int = iNdEx
  3184. for shift := uint(0); ; shift += 7 {
  3185. if shift >= 64 {
  3186. return 0, ErrIntOverflowBubble
  3187. }
  3188. if iNdEx >= l {
  3189. return 0, io.ErrUnexpectedEOF
  3190. }
  3191. b := dAtA[iNdEx]
  3192. iNdEx++
  3193. innerWire |= (uint64(b) & 0x7F) << shift
  3194. if b < 0x80 {
  3195. break
  3196. }
  3197. }
  3198. innerWireType := int(innerWire & 0x7)
  3199. if innerWireType == 4 {
  3200. break
  3201. }
  3202. next, err := skipBubble(dAtA[start:])
  3203. if err != nil {
  3204. return 0, err
  3205. }
  3206. iNdEx = start + next
  3207. }
  3208. return iNdEx, nil
  3209. case 4:
  3210. return iNdEx, nil
  3211. case 5:
  3212. iNdEx += 4
  3213. return iNdEx, nil
  3214. default:
  3215. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3216. }
  3217. }
  3218. panic("unreachable")
  3219. }
  3220. var (
  3221. ErrInvalidLengthBubble = fmt.Errorf("proto: negative length found during unmarshaling")
  3222. ErrIntOverflowBubble = fmt.Errorf("proto: integer overflow")
  3223. )
  3224. func init() { proto.RegisterFile("v1/Bubble.proto", fileDescriptor_Bubble_05538dd71b728df4) }
  3225. var fileDescriptor_Bubble_05538dd71b728df4 = []byte{
  3226. // 729 bytes of a gzipped FileDescriptorProto
  3227. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xd3, 0x4a,
  3228. 0x14, 0xae, 0xed, 0xdc, 0x38, 0x39, 0xe9, 0xbd, 0xbd, 0x77, 0x2e, 0x8b, 0x10, 0x15, 0xbb, 0x32,
  3229. 0x2d, 0x54, 0x95, 0x9a, 0xd2, 0xf6, 0x09, 0x92, 0x20, 0xa1, 0x42, 0x2b, 0xa4, 0x91, 0x60, 0xc1,
  3230. 0x26, 0xf2, 0xcf, 0xd4, 0xb5, 0x48, 0x70, 0xe3, 0x99, 0x89, 0xca, 0xb2, 0x1b, 0xd6, 0xbc, 0x02,
  3231. 0xcf, 0xc0, 0x8e, 0x15, 0x4b, 0x96, 0x5d, 0xb2, 0xb2, 0x50, 0x2b, 0x84, 0xe4, 0xa7, 0x40, 0x1e,
  3232. 0x8f, 0x1d, 0x87, 0xa6, 0x29, 0x12, 0xa8, 0x62, 0x33, 0x39, 0x73, 0x3c, 0xe7, 0x9b, 0x6f, 0xbe,
  3233. 0x73, 0xe6, 0x4c, 0x60, 0x69, 0xbc, 0xbd, 0xd5, 0xe5, 0x8e, 0x33, 0x20, 0xed, 0xe3, 0x28, 0x64,
  3234. 0x21, 0x02, 0x4e, 0x49, 0x44, 0x4e, 0x58, 0x7b, 0xbc, 0xdd, 0xda, 0xf4, 0x03, 0x76, 0xc4, 0x9d,
  3235. 0xb6, 0x1b, 0x0e, 0xb7, 0xfc, 0xd0, 0x0f, 0xb7, 0xc4, 0x12, 0x87, 0x1f, 0x8a, 0x99, 0x98, 0x08,
  3236. 0x2b, 0x0b, 0xb5, 0x9e, 0xc3, 0xff, 0x19, 0xd4, 0x23, 0xc2, 0x7a, 0x3c, 0x8a, 0xc8, 0x2b, 0x86,
  3237. 0xc9, 0x08, 0xdd, 0x06, 0x8d, 0x07, 0x5e, 0x53, 0x59, 0x51, 0xd6, 0xb5, 0xae, 0x9e, 0xc4, 0x66,
  3238. 0x3a, 0xc5, 0xe9, 0x80, 0x56, 0x41, 0x8f, 0xc2, 0x70, 0xd8, 0x0f, 0xbc, 0xa6, 0x2a, 0x3e, 0x37,
  3239. 0x92, 0xd8, 0xcc, 0x5d, 0xb8, 0x9a, 0x1a, 0x7b, 0x9e, 0xf5, 0x4d, 0x81, 0x5b, 0x97, 0x81, 0xe9,
  3240. 0x31, 0x5a, 0x86, 0x8a, 0x1b, 0x7a, 0x44, 0x42, 0xd7, 0x92, 0xd8, 0x14, 0x73, 0x2c, 0xc6, 0x74,
  3241. 0xdf, 0x21, 0xf5, 0x05, 0x70, 0x3d, 0xdb, 0x77, 0x48, 0x7d, 0x9c, 0x0e, 0x68, 0x0d, 0xf4, 0x21,
  3242. 0xa1, 0xd4, 0xf6, 0x49, 0x53, 0x13, 0x9f, 0xc5, 0xbe, 0xd2, 0x85, 0x73, 0x03, 0xf5, 0xa0, 0xe2,
  3243. 0xd9, 0xcc, 0x6e, 0x56, 0x56, 0x94, 0xf5, 0xc6, 0xce, 0x5a, 0x7b, 0x22, 0x4d, 0x7b, 0x16, 0x9f,
  3244. 0xf6, 0x43, 0x9b, 0xd9, 0x19, 0x8d, 0x34, 0x0c, 0x8b, 0xb1, 0xb5, 0x01, 0x95, 0xd4, 0x8f, 0x2c,
  3245. 0xa8, 0x3a, 0x22, 0x48, 0xd2, 0x85, 0x24, 0x36, 0xa5, 0x07, 0xcb, 0x5f, 0xeb, 0xbd, 0x02, 0xa8,
  3246. 0x40, 0xce, 0x8c, 0xdf, 0xa1, 0x20, 0xda, 0x80, 0x7a, 0xb6, 0x43, 0xba, 0x4e, 0x13, 0xeb, 0xfe,
  3247. 0x4e, 0x62, 0x73, 0xe2, 0xc4, 0xb5, 0xcc, 0xdc, 0xf3, 0xd0, 0x03, 0x68, 0xf8, 0xdc, 0x8e, 0xbc,
  3248. 0xfe, 0x80, 0x8c, 0xc9, 0x40, 0x9c, 0x5d, 0xeb, 0x2e, 0x25, 0xb1, 0x59, 0x76, 0x63, 0x10, 0x93,
  3249. 0xfd, 0xd4, 0xb6, 0xbe, 0x2a, 0xa5, 0xc4, 0xe7, 0xac, 0x6f, 0x20, 0x3d, 0xdd, 0xa9, 0xf4, 0xac,
  3250. 0xce, 0x4c, 0xcf, 0x84, 0xce, 0xaf, 0x67, 0xe7, 0xb4, 0xc8, 0x4e, 0xef, 0x88, 0xb8, 0x2f, 0x3b,
  3251. 0x9c, 0x1d, 0xdd, 0x74, 0x76, 0xac, 0x37, 0x6a, 0xae, 0x75, 0x89, 0xc3, 0x9f, 0xa0, 0xf5, 0x14,
  3252. 0x9d, 0xd9, 0x5a, 0x3f, 0x91, 0x5a, 0xcf, 0xe7, 0x5a, 0x22, 0xa4, 0x5e, 0x4d, 0xc8, 0xfa, 0xa0,
  3253. 0xc2, 0x7f, 0xd9, 0xce, 0x07, 0x7c, 0xc0, 0x82, 0x8e, 0xe7, 0xa5, 0xb9, 0xb8, 0x0f, 0x35, 0x1e,
  3254. 0x78, 0xfd, 0x41, 0x40, 0x99, 0x80, 0xaf, 0x77, 0x17, 0x93, 0xd8, 0x2c, 0x7c, 0x58, 0xe7, 0x81,
  3255. 0xb7, 0x1f, 0x50, 0x36, 0xad, 0xb9, 0x3a, 0xff, 0x46, 0x6c, 0x02, 0x90, 0x93, 0xe3, 0x20, 0x22,
  3256. 0x5e, 0xdf, 0x66, 0x32, 0x41, 0xff, 0x24, 0xb1, 0x59, 0xf2, 0xe2, 0xba, 0xb4, 0x3b, 0x2c, 0x3d,
  3257. 0x9e, 0x47, 0xa8, 0x2b, 0xa4, 0xaa, 0x4b, 0x11, 0x08, 0x75, 0xb1, 0x18, 0xd1, 0x3a, 0xd4, 0x5c,
  3258. 0x9b, 0x11, 0x3f, 0x8c, 0x5e, 0x37, 0xff, 0x12, 0x50, 0x82, 0x61, 0xee, 0xc3, 0x85, 0x85, 0x76,
  3259. 0x61, 0x91, 0x72, 0xa7, 0x5f, 0xac, 0xae, 0x8a, 0xd5, 0xff, 0x26, 0xb1, 0x39, 0xe5, 0xc7, 0x0d,
  3260. 0xca, 0x9d, 0x5e, 0x1e, 0x54, 0xaa, 0x38, 0xfd, 0xea, 0x8e, 0x7a, 0xaa, 0xe5, 0x95, 0x3c, 0x11,
  3261. 0xef, 0x06, 0x8a, 0xa8, 0x33, 0x55, 0x44, 0x77, 0x2f, 0x17, 0x51, 0x99, 0xcd, 0xec, 0x1a, 0x5a,
  3262. 0x05, 0xfd, 0x99, 0x4c, 0x61, 0x71, 0xef, 0xb4, 0x1f, 0xef, 0x5d, 0xeb, 0x9d, 0x22, 0x4b, 0xed,
  3263. 0x00, 0x74, 0xca, 0x5d, 0x97, 0x50, 0x2a, 0x0e, 0xd5, 0xd8, 0xb9, 0x77, 0xcd, 0xa6, 0x12, 0x3c,
  3264. 0x3b, 0x80, 0x0c, 0xc5, 0xb9, 0x81, 0x1e, 0x43, 0xf5, 0xd0, 0x0e, 0x06, 0x24, 0x2b, 0x99, 0x9f,
  3265. 0x47, 0x13, 0xdd, 0x24, 0x8b, 0xc4, 0xf2, 0x77, 0xe7, 0xa3, 0x0a, 0xd5, 0x2c, 0x04, 0x3d, 0x05,
  3266. 0xf0, 0x8b, 0x97, 0x04, 0x99, 0xf3, 0xdf, 0x99, 0x51, 0x6b, 0xe5, 0xba, 0x87, 0x08, 0xed, 0x43,
  3267. 0xdd, 0xcf, 0x7b, 0x1f, 0x32, 0xe6, 0x36, 0xc6, 0x51, 0xcb, 0xbc, 0xa6, 0x71, 0xa6, 0x68, 0x6e,
  3268. 0x7e, 0xbb, 0x67, 0xa1, 0x95, 0xbb, 0xe1, 0x2c, 0xb4, 0xe9, 0x4e, 0xb5, 0x07, 0xb5, 0xa1, 0xd4,
  3269. 0x08, 0xdd, 0x99, 0xa7, 0xdf, 0xa8, 0x65, 0xcc, 0x97, 0xb7, 0xbb, 0xfc, 0xe9, 0xdc, 0x50, 0xce,
  3270. 0xce, 0x0d, 0xe5, 0xcb, 0xb9, 0xa1, 0xbc, 0xbd, 0x30, 0x16, 0xce, 0x2e, 0x8c, 0x85, 0xcf, 0x17,
  3271. 0xc6, 0xc2, 0x0b, 0x75, 0xbc, 0xed, 0x54, 0xc5, 0xbf, 0x92, 0xdd, 0xef, 0x01, 0x00, 0x00, 0xff,
  3272. 0xff, 0x44, 0x25, 0xd6, 0x84, 0xe3, 0x08, 0x00, 0x00,
  3273. }