AppIndex.pb.go 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/AppIndex.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 AppIndexGetListByIdsReq struct {
  19. //
  20. Ids []int64 `protobuf:"varint,1,rep,packed,name=ids" json:"ids"`
  21. }
  22. func (m *AppIndexGetListByIdsReq) Reset() { *m = AppIndexGetListByIdsReq{} }
  23. func (m *AppIndexGetListByIdsReq) String() string { return proto.CompactTextString(m) }
  24. func (*AppIndexGetListByIdsReq) ProtoMessage() {}
  25. func (*AppIndexGetListByIdsReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_AppIndex_e6fcc9887f31b3ad, []int{0}
  27. }
  28. func (m *AppIndexGetListByIdsReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *AppIndexGetListByIdsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_AppIndexGetListByIdsReq.Marshal(b, m, deterministic)
  34. } else {
  35. b = b[:cap(b)]
  36. n, err := m.MarshalTo(b)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return b[:n], nil
  41. }
  42. }
  43. func (dst *AppIndexGetListByIdsReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_AppIndexGetListByIdsReq.Merge(dst, src)
  45. }
  46. func (m *AppIndexGetListByIdsReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *AppIndexGetListByIdsReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_AppIndexGetListByIdsReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_AppIndexGetListByIdsReq proto.InternalMessageInfo
  53. func (m *AppIndexGetListByIdsReq) GetIds() []int64 {
  54. if m != nil {
  55. return m.Ids
  56. }
  57. return nil
  58. }
  59. type AppIndexGetListByIdsResp struct {
  60. // code
  61. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  62. // msg
  63. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  64. //
  65. Data map[int64]*AppIndexGetListByIdsResp_RoomList `protobuf:"bytes,3,rep,name=data" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  66. }
  67. func (m *AppIndexGetListByIdsResp) Reset() { *m = AppIndexGetListByIdsResp{} }
  68. func (m *AppIndexGetListByIdsResp) String() string { return proto.CompactTextString(m) }
  69. func (*AppIndexGetListByIdsResp) ProtoMessage() {}
  70. func (*AppIndexGetListByIdsResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_AppIndex_e6fcc9887f31b3ad, []int{1}
  72. }
  73. func (m *AppIndexGetListByIdsResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *AppIndexGetListByIdsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_AppIndexGetListByIdsResp.Marshal(b, m, deterministic)
  79. } else {
  80. b = b[:cap(b)]
  81. n, err := m.MarshalTo(b)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return b[:n], nil
  86. }
  87. }
  88. func (dst *AppIndexGetListByIdsResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_AppIndexGetListByIdsResp.Merge(dst, src)
  90. }
  91. func (m *AppIndexGetListByIdsResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *AppIndexGetListByIdsResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_AppIndexGetListByIdsResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_AppIndexGetListByIdsResp proto.InternalMessageInfo
  98. func (m *AppIndexGetListByIdsResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *AppIndexGetListByIdsResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *AppIndexGetListByIdsResp) GetData() map[int64]*AppIndexGetListByIdsResp_RoomList {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type AppIndexGetListByIdsResp_RoomInfo struct {
  117. // 房间id
  118. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid"`
  119. // 房间标题
  120. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  121. // 用户名
  122. Uname string `protobuf:"bytes,3,opt,name=uname,proto3" json:"uname"`
  123. // 在线人数
  124. Online int64 `protobuf:"varint,4,opt,name=online,proto3" json:"online"`
  125. // 封面,封面现在有3种:关键帧、封面图、秀场封面(正方形的),返回哪个由后端决定
  126. Cover string `protobuf:"bytes,5,opt,name=cover,proto3" json:"cover"`
  127. // 链接
  128. Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link"`
  129. // 主播头像
  130. Face string `protobuf:"bytes,7,opt,name=face,proto3" json:"face"`
  131. // 父分区id
  132. AreaV2ParentId int64 `protobuf:"varint,8,opt,name=area_v2_parent_id,json=areaV2ParentId,proto3" json:"area_v2_parent_id"`
  133. // 父分区名称
  134. AreaV2ParentName string `protobuf:"bytes,9,opt,name=area_v2_parent_name,json=areaV2ParentName,proto3" json:"area_v2_parent_name"`
  135. // 二级分区id
  136. AreaV2Id int64 `protobuf:"varint,10,opt,name=area_v2_id,json=areaV2Id,proto3" json:"area_v2_id"`
  137. // 二级分区名
  138. AreaV2Name string `protobuf:"bytes,11,opt,name=area_v2_name,json=areaV2Name,proto3" json:"area_v2_name"`
  139. // 秒开播放串 h264
  140. PlayUrl string `protobuf:"bytes,12,opt,name=play_url,json=playUrl,proto3" json:"play_url"`
  141. // 秒开播放串 h265
  142. PlayUrlH265 string `protobuf:"bytes,13,opt,name=play_url_h265,json=playUrlH265,proto3" json:"play_url_h265"`
  143. // 当前清晰度,清晰度 0:默认码率, 2:800 3:1500 4:原画
  144. CurrentQuality int64 `protobuf:"varint,14,opt,name=current_quality,json=currentQuality,proto3" json:"current_quality"`
  145. // 当前拥有清晰度列表
  146. AcceptQuality []int64 `protobuf:"varint,15,rep,packed,name=accept_quality,json=acceptQuality" json:"accept_quality"`
  147. // 横竖屏 0:横屏 1:竖屏 -1:异常情况
  148. BroadcastType int64 `protobuf:"varint,16,opt,name=broadcast_type,json=broadcastType,proto3" json:"broadcast_type"`
  149. // 新版角标-右上 默认为空 只能是文字!!!@古月 【5.29显示更新】:服务端还是吐右上(兼容老版),5.29显示在左上
  150. PendentRu string `protobuf:"bytes,17,opt,name=pendent_ru,json=pendentRu,proto3" json:"pendent_ru"`
  151. // 【5.29显示更新】:服务端还是吐右上,5.29客户端显示在左上,对应的背景图片
  152. PendentRuPic string `protobuf:"bytes,18,opt,name=pendent_ru_pic,json=pendentRuPic,proto3" json:"pendent_ru_pic"`
  153. // 新版移动端角标色值-右上
  154. PendentRuColor string `protobuf:"bytes,19,opt,name=pendent_ru_color,json=pendentRuColor,proto3" json:"pendent_ru_color"`
  155. // 推荐类型 1:人气 2:营收 3:运营强推 4:天马推荐(暂定)用于客户端打点
  156. RecType int64 `protobuf:"varint,20,opt,name=rec_type,json=recType,proto3" json:"rec_type"`
  157. // 当前房间pk_id,默认0 用于客户端打点
  158. PkId int64 `protobuf:"varint,21,opt,name=pk_id,json=pkId,proto3" json:"pk_id"`
  159. }
  160. func (m *AppIndexGetListByIdsResp_RoomInfo) Reset() { *m = AppIndexGetListByIdsResp_RoomInfo{} }
  161. func (m *AppIndexGetListByIdsResp_RoomInfo) String() string { return proto.CompactTextString(m) }
  162. func (*AppIndexGetListByIdsResp_RoomInfo) ProtoMessage() {}
  163. func (*AppIndexGetListByIdsResp_RoomInfo) Descriptor() ([]byte, []int) {
  164. return fileDescriptor_AppIndex_e6fcc9887f31b3ad, []int{1, 1}
  165. }
  166. func (m *AppIndexGetListByIdsResp_RoomInfo) XXX_Unmarshal(b []byte) error {
  167. return m.Unmarshal(b)
  168. }
  169. func (m *AppIndexGetListByIdsResp_RoomInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  170. if deterministic {
  171. return xxx_messageInfo_AppIndexGetListByIdsResp_RoomInfo.Marshal(b, m, deterministic)
  172. } else {
  173. b = b[:cap(b)]
  174. n, err := m.MarshalTo(b)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return b[:n], nil
  179. }
  180. }
  181. func (dst *AppIndexGetListByIdsResp_RoomInfo) XXX_Merge(src proto.Message) {
  182. xxx_messageInfo_AppIndexGetListByIdsResp_RoomInfo.Merge(dst, src)
  183. }
  184. func (m *AppIndexGetListByIdsResp_RoomInfo) XXX_Size() int {
  185. return m.Size()
  186. }
  187. func (m *AppIndexGetListByIdsResp_RoomInfo) XXX_DiscardUnknown() {
  188. xxx_messageInfo_AppIndexGetListByIdsResp_RoomInfo.DiscardUnknown(m)
  189. }
  190. var xxx_messageInfo_AppIndexGetListByIdsResp_RoomInfo proto.InternalMessageInfo
  191. func (m *AppIndexGetListByIdsResp_RoomInfo) GetRoomid() int64 {
  192. if m != nil {
  193. return m.Roomid
  194. }
  195. return 0
  196. }
  197. func (m *AppIndexGetListByIdsResp_RoomInfo) GetTitle() string {
  198. if m != nil {
  199. return m.Title
  200. }
  201. return ""
  202. }
  203. func (m *AppIndexGetListByIdsResp_RoomInfo) GetUname() string {
  204. if m != nil {
  205. return m.Uname
  206. }
  207. return ""
  208. }
  209. func (m *AppIndexGetListByIdsResp_RoomInfo) GetOnline() int64 {
  210. if m != nil {
  211. return m.Online
  212. }
  213. return 0
  214. }
  215. func (m *AppIndexGetListByIdsResp_RoomInfo) GetCover() string {
  216. if m != nil {
  217. return m.Cover
  218. }
  219. return ""
  220. }
  221. func (m *AppIndexGetListByIdsResp_RoomInfo) GetLink() string {
  222. if m != nil {
  223. return m.Link
  224. }
  225. return ""
  226. }
  227. func (m *AppIndexGetListByIdsResp_RoomInfo) GetFace() string {
  228. if m != nil {
  229. return m.Face
  230. }
  231. return ""
  232. }
  233. func (m *AppIndexGetListByIdsResp_RoomInfo) GetAreaV2ParentId() int64 {
  234. if m != nil {
  235. return m.AreaV2ParentId
  236. }
  237. return 0
  238. }
  239. func (m *AppIndexGetListByIdsResp_RoomInfo) GetAreaV2ParentName() string {
  240. if m != nil {
  241. return m.AreaV2ParentName
  242. }
  243. return ""
  244. }
  245. func (m *AppIndexGetListByIdsResp_RoomInfo) GetAreaV2Id() int64 {
  246. if m != nil {
  247. return m.AreaV2Id
  248. }
  249. return 0
  250. }
  251. func (m *AppIndexGetListByIdsResp_RoomInfo) GetAreaV2Name() string {
  252. if m != nil {
  253. return m.AreaV2Name
  254. }
  255. return ""
  256. }
  257. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPlayUrl() string {
  258. if m != nil {
  259. return m.PlayUrl
  260. }
  261. return ""
  262. }
  263. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPlayUrlH265() string {
  264. if m != nil {
  265. return m.PlayUrlH265
  266. }
  267. return ""
  268. }
  269. func (m *AppIndexGetListByIdsResp_RoomInfo) GetCurrentQuality() int64 {
  270. if m != nil {
  271. return m.CurrentQuality
  272. }
  273. return 0
  274. }
  275. func (m *AppIndexGetListByIdsResp_RoomInfo) GetAcceptQuality() []int64 {
  276. if m != nil {
  277. return m.AcceptQuality
  278. }
  279. return nil
  280. }
  281. func (m *AppIndexGetListByIdsResp_RoomInfo) GetBroadcastType() int64 {
  282. if m != nil {
  283. return m.BroadcastType
  284. }
  285. return 0
  286. }
  287. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPendentRu() string {
  288. if m != nil {
  289. return m.PendentRu
  290. }
  291. return ""
  292. }
  293. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPendentRuPic() string {
  294. if m != nil {
  295. return m.PendentRuPic
  296. }
  297. return ""
  298. }
  299. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPendentRuColor() string {
  300. if m != nil {
  301. return m.PendentRuColor
  302. }
  303. return ""
  304. }
  305. func (m *AppIndexGetListByIdsResp_RoomInfo) GetRecType() int64 {
  306. if m != nil {
  307. return m.RecType
  308. }
  309. return 0
  310. }
  311. func (m *AppIndexGetListByIdsResp_RoomInfo) GetPkId() int64 {
  312. if m != nil {
  313. return m.PkId
  314. }
  315. return 0
  316. }
  317. type AppIndexGetListByIdsResp_RoomList struct {
  318. //
  319. List []*AppIndexGetListByIdsResp_RoomInfo `protobuf:"bytes,1,rep,name=list" json:"list"`
  320. }
  321. func (m *AppIndexGetListByIdsResp_RoomList) Reset() { *m = AppIndexGetListByIdsResp_RoomList{} }
  322. func (m *AppIndexGetListByIdsResp_RoomList) String() string { return proto.CompactTextString(m) }
  323. func (*AppIndexGetListByIdsResp_RoomList) ProtoMessage() {}
  324. func (*AppIndexGetListByIdsResp_RoomList) Descriptor() ([]byte, []int) {
  325. return fileDescriptor_AppIndex_e6fcc9887f31b3ad, []int{1, 2}
  326. }
  327. func (m *AppIndexGetListByIdsResp_RoomList) XXX_Unmarshal(b []byte) error {
  328. return m.Unmarshal(b)
  329. }
  330. func (m *AppIndexGetListByIdsResp_RoomList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  331. if deterministic {
  332. return xxx_messageInfo_AppIndexGetListByIdsResp_RoomList.Marshal(b, m, deterministic)
  333. } else {
  334. b = b[:cap(b)]
  335. n, err := m.MarshalTo(b)
  336. if err != nil {
  337. return nil, err
  338. }
  339. return b[:n], nil
  340. }
  341. }
  342. func (dst *AppIndexGetListByIdsResp_RoomList) XXX_Merge(src proto.Message) {
  343. xxx_messageInfo_AppIndexGetListByIdsResp_RoomList.Merge(dst, src)
  344. }
  345. func (m *AppIndexGetListByIdsResp_RoomList) XXX_Size() int {
  346. return m.Size()
  347. }
  348. func (m *AppIndexGetListByIdsResp_RoomList) XXX_DiscardUnknown() {
  349. xxx_messageInfo_AppIndexGetListByIdsResp_RoomList.DiscardUnknown(m)
  350. }
  351. var xxx_messageInfo_AppIndexGetListByIdsResp_RoomList proto.InternalMessageInfo
  352. func (m *AppIndexGetListByIdsResp_RoomList) GetList() []*AppIndexGetListByIdsResp_RoomInfo {
  353. if m != nil {
  354. return m.List
  355. }
  356. return nil
  357. }
  358. func init() {
  359. proto.RegisterType((*AppIndexGetListByIdsReq)(nil), "room.v1.AppIndexGetListByIdsReq")
  360. proto.RegisterType((*AppIndexGetListByIdsResp)(nil), "room.v1.AppIndexGetListByIdsResp")
  361. proto.RegisterMapType((map[int64]*AppIndexGetListByIdsResp_RoomList)(nil), "room.v1.AppIndexGetListByIdsResp.DataEntry")
  362. proto.RegisterType((*AppIndexGetListByIdsResp_RoomInfo)(nil), "room.v1.AppIndexGetListByIdsResp.RoomInfo")
  363. proto.RegisterType((*AppIndexGetListByIdsResp_RoomList)(nil), "room.v1.AppIndexGetListByIdsResp.RoomList")
  364. }
  365. func (m *AppIndexGetListByIdsReq) Marshal() (dAtA []byte, err error) {
  366. size := m.Size()
  367. dAtA = make([]byte, size)
  368. n, err := m.MarshalTo(dAtA)
  369. if err != nil {
  370. return nil, err
  371. }
  372. return dAtA[:n], nil
  373. }
  374. func (m *AppIndexGetListByIdsReq) MarshalTo(dAtA []byte) (int, error) {
  375. var i int
  376. _ = i
  377. var l int
  378. _ = l
  379. if len(m.Ids) > 0 {
  380. dAtA2 := make([]byte, len(m.Ids)*10)
  381. var j1 int
  382. for _, num1 := range m.Ids {
  383. num := uint64(num1)
  384. for num >= 1<<7 {
  385. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  386. num >>= 7
  387. j1++
  388. }
  389. dAtA2[j1] = uint8(num)
  390. j1++
  391. }
  392. dAtA[i] = 0xa
  393. i++
  394. i = encodeVarintAppIndex(dAtA, i, uint64(j1))
  395. i += copy(dAtA[i:], dAtA2[:j1])
  396. }
  397. return i, nil
  398. }
  399. func (m *AppIndexGetListByIdsResp) Marshal() (dAtA []byte, err error) {
  400. size := m.Size()
  401. dAtA = make([]byte, size)
  402. n, err := m.MarshalTo(dAtA)
  403. if err != nil {
  404. return nil, err
  405. }
  406. return dAtA[:n], nil
  407. }
  408. func (m *AppIndexGetListByIdsResp) MarshalTo(dAtA []byte) (int, error) {
  409. var i int
  410. _ = i
  411. var l int
  412. _ = l
  413. if m.Code != 0 {
  414. dAtA[i] = 0x8
  415. i++
  416. i = encodeVarintAppIndex(dAtA, i, uint64(m.Code))
  417. }
  418. if len(m.Msg) > 0 {
  419. dAtA[i] = 0x12
  420. i++
  421. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Msg)))
  422. i += copy(dAtA[i:], m.Msg)
  423. }
  424. if len(m.Data) > 0 {
  425. for k, _ := range m.Data {
  426. dAtA[i] = 0x1a
  427. i++
  428. v := m.Data[k]
  429. msgSize := 0
  430. if v != nil {
  431. msgSize = v.Size()
  432. msgSize += 1 + sovAppIndex(uint64(msgSize))
  433. }
  434. mapSize := 1 + sovAppIndex(uint64(k)) + msgSize
  435. i = encodeVarintAppIndex(dAtA, i, uint64(mapSize))
  436. dAtA[i] = 0x8
  437. i++
  438. i = encodeVarintAppIndex(dAtA, i, uint64(k))
  439. if v != nil {
  440. dAtA[i] = 0x12
  441. i++
  442. i = encodeVarintAppIndex(dAtA, i, uint64(v.Size()))
  443. n3, err := v.MarshalTo(dAtA[i:])
  444. if err != nil {
  445. return 0, err
  446. }
  447. i += n3
  448. }
  449. }
  450. }
  451. return i, nil
  452. }
  453. func (m *AppIndexGetListByIdsResp_RoomInfo) Marshal() (dAtA []byte, err error) {
  454. size := m.Size()
  455. dAtA = make([]byte, size)
  456. n, err := m.MarshalTo(dAtA)
  457. if err != nil {
  458. return nil, err
  459. }
  460. return dAtA[:n], nil
  461. }
  462. func (m *AppIndexGetListByIdsResp_RoomInfo) MarshalTo(dAtA []byte) (int, error) {
  463. var i int
  464. _ = i
  465. var l int
  466. _ = l
  467. if m.Roomid != 0 {
  468. dAtA[i] = 0x8
  469. i++
  470. i = encodeVarintAppIndex(dAtA, i, uint64(m.Roomid))
  471. }
  472. if len(m.Title) > 0 {
  473. dAtA[i] = 0x12
  474. i++
  475. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Title)))
  476. i += copy(dAtA[i:], m.Title)
  477. }
  478. if len(m.Uname) > 0 {
  479. dAtA[i] = 0x1a
  480. i++
  481. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Uname)))
  482. i += copy(dAtA[i:], m.Uname)
  483. }
  484. if m.Online != 0 {
  485. dAtA[i] = 0x20
  486. i++
  487. i = encodeVarintAppIndex(dAtA, i, uint64(m.Online))
  488. }
  489. if len(m.Cover) > 0 {
  490. dAtA[i] = 0x2a
  491. i++
  492. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Cover)))
  493. i += copy(dAtA[i:], m.Cover)
  494. }
  495. if len(m.Link) > 0 {
  496. dAtA[i] = 0x32
  497. i++
  498. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Link)))
  499. i += copy(dAtA[i:], m.Link)
  500. }
  501. if len(m.Face) > 0 {
  502. dAtA[i] = 0x3a
  503. i++
  504. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.Face)))
  505. i += copy(dAtA[i:], m.Face)
  506. }
  507. if m.AreaV2ParentId != 0 {
  508. dAtA[i] = 0x40
  509. i++
  510. i = encodeVarintAppIndex(dAtA, i, uint64(m.AreaV2ParentId))
  511. }
  512. if len(m.AreaV2ParentName) > 0 {
  513. dAtA[i] = 0x4a
  514. i++
  515. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.AreaV2ParentName)))
  516. i += copy(dAtA[i:], m.AreaV2ParentName)
  517. }
  518. if m.AreaV2Id != 0 {
  519. dAtA[i] = 0x50
  520. i++
  521. i = encodeVarintAppIndex(dAtA, i, uint64(m.AreaV2Id))
  522. }
  523. if len(m.AreaV2Name) > 0 {
  524. dAtA[i] = 0x5a
  525. i++
  526. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.AreaV2Name)))
  527. i += copy(dAtA[i:], m.AreaV2Name)
  528. }
  529. if len(m.PlayUrl) > 0 {
  530. dAtA[i] = 0x62
  531. i++
  532. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.PlayUrl)))
  533. i += copy(dAtA[i:], m.PlayUrl)
  534. }
  535. if len(m.PlayUrlH265) > 0 {
  536. dAtA[i] = 0x6a
  537. i++
  538. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.PlayUrlH265)))
  539. i += copy(dAtA[i:], m.PlayUrlH265)
  540. }
  541. if m.CurrentQuality != 0 {
  542. dAtA[i] = 0x70
  543. i++
  544. i = encodeVarintAppIndex(dAtA, i, uint64(m.CurrentQuality))
  545. }
  546. if len(m.AcceptQuality) > 0 {
  547. dAtA5 := make([]byte, len(m.AcceptQuality)*10)
  548. var j4 int
  549. for _, num1 := range m.AcceptQuality {
  550. num := uint64(num1)
  551. for num >= 1<<7 {
  552. dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80)
  553. num >>= 7
  554. j4++
  555. }
  556. dAtA5[j4] = uint8(num)
  557. j4++
  558. }
  559. dAtA[i] = 0x7a
  560. i++
  561. i = encodeVarintAppIndex(dAtA, i, uint64(j4))
  562. i += copy(dAtA[i:], dAtA5[:j4])
  563. }
  564. if m.BroadcastType != 0 {
  565. dAtA[i] = 0x80
  566. i++
  567. dAtA[i] = 0x1
  568. i++
  569. i = encodeVarintAppIndex(dAtA, i, uint64(m.BroadcastType))
  570. }
  571. if len(m.PendentRu) > 0 {
  572. dAtA[i] = 0x8a
  573. i++
  574. dAtA[i] = 0x1
  575. i++
  576. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.PendentRu)))
  577. i += copy(dAtA[i:], m.PendentRu)
  578. }
  579. if len(m.PendentRuPic) > 0 {
  580. dAtA[i] = 0x92
  581. i++
  582. dAtA[i] = 0x1
  583. i++
  584. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.PendentRuPic)))
  585. i += copy(dAtA[i:], m.PendentRuPic)
  586. }
  587. if len(m.PendentRuColor) > 0 {
  588. dAtA[i] = 0x9a
  589. i++
  590. dAtA[i] = 0x1
  591. i++
  592. i = encodeVarintAppIndex(dAtA, i, uint64(len(m.PendentRuColor)))
  593. i += copy(dAtA[i:], m.PendentRuColor)
  594. }
  595. if m.RecType != 0 {
  596. dAtA[i] = 0xa0
  597. i++
  598. dAtA[i] = 0x1
  599. i++
  600. i = encodeVarintAppIndex(dAtA, i, uint64(m.RecType))
  601. }
  602. if m.PkId != 0 {
  603. dAtA[i] = 0xa8
  604. i++
  605. dAtA[i] = 0x1
  606. i++
  607. i = encodeVarintAppIndex(dAtA, i, uint64(m.PkId))
  608. }
  609. return i, nil
  610. }
  611. func (m *AppIndexGetListByIdsResp_RoomList) Marshal() (dAtA []byte, err error) {
  612. size := m.Size()
  613. dAtA = make([]byte, size)
  614. n, err := m.MarshalTo(dAtA)
  615. if err != nil {
  616. return nil, err
  617. }
  618. return dAtA[:n], nil
  619. }
  620. func (m *AppIndexGetListByIdsResp_RoomList) MarshalTo(dAtA []byte) (int, error) {
  621. var i int
  622. _ = i
  623. var l int
  624. _ = l
  625. if len(m.List) > 0 {
  626. for _, msg := range m.List {
  627. dAtA[i] = 0xa
  628. i++
  629. i = encodeVarintAppIndex(dAtA, i, uint64(msg.Size()))
  630. n, err := msg.MarshalTo(dAtA[i:])
  631. if err != nil {
  632. return 0, err
  633. }
  634. i += n
  635. }
  636. }
  637. return i, nil
  638. }
  639. func encodeVarintAppIndex(dAtA []byte, offset int, v uint64) int {
  640. for v >= 1<<7 {
  641. dAtA[offset] = uint8(v&0x7f | 0x80)
  642. v >>= 7
  643. offset++
  644. }
  645. dAtA[offset] = uint8(v)
  646. return offset + 1
  647. }
  648. func (m *AppIndexGetListByIdsReq) Size() (n int) {
  649. if m == nil {
  650. return 0
  651. }
  652. var l int
  653. _ = l
  654. if len(m.Ids) > 0 {
  655. l = 0
  656. for _, e := range m.Ids {
  657. l += sovAppIndex(uint64(e))
  658. }
  659. n += 1 + sovAppIndex(uint64(l)) + l
  660. }
  661. return n
  662. }
  663. func (m *AppIndexGetListByIdsResp) Size() (n int) {
  664. if m == nil {
  665. return 0
  666. }
  667. var l int
  668. _ = l
  669. if m.Code != 0 {
  670. n += 1 + sovAppIndex(uint64(m.Code))
  671. }
  672. l = len(m.Msg)
  673. if l > 0 {
  674. n += 1 + l + sovAppIndex(uint64(l))
  675. }
  676. if len(m.Data) > 0 {
  677. for k, v := range m.Data {
  678. _ = k
  679. _ = v
  680. l = 0
  681. if v != nil {
  682. l = v.Size()
  683. l += 1 + sovAppIndex(uint64(l))
  684. }
  685. mapEntrySize := 1 + sovAppIndex(uint64(k)) + l
  686. n += mapEntrySize + 1 + sovAppIndex(uint64(mapEntrySize))
  687. }
  688. }
  689. return n
  690. }
  691. func (m *AppIndexGetListByIdsResp_RoomInfo) Size() (n int) {
  692. if m == nil {
  693. return 0
  694. }
  695. var l int
  696. _ = l
  697. if m.Roomid != 0 {
  698. n += 1 + sovAppIndex(uint64(m.Roomid))
  699. }
  700. l = len(m.Title)
  701. if l > 0 {
  702. n += 1 + l + sovAppIndex(uint64(l))
  703. }
  704. l = len(m.Uname)
  705. if l > 0 {
  706. n += 1 + l + sovAppIndex(uint64(l))
  707. }
  708. if m.Online != 0 {
  709. n += 1 + sovAppIndex(uint64(m.Online))
  710. }
  711. l = len(m.Cover)
  712. if l > 0 {
  713. n += 1 + l + sovAppIndex(uint64(l))
  714. }
  715. l = len(m.Link)
  716. if l > 0 {
  717. n += 1 + l + sovAppIndex(uint64(l))
  718. }
  719. l = len(m.Face)
  720. if l > 0 {
  721. n += 1 + l + sovAppIndex(uint64(l))
  722. }
  723. if m.AreaV2ParentId != 0 {
  724. n += 1 + sovAppIndex(uint64(m.AreaV2ParentId))
  725. }
  726. l = len(m.AreaV2ParentName)
  727. if l > 0 {
  728. n += 1 + l + sovAppIndex(uint64(l))
  729. }
  730. if m.AreaV2Id != 0 {
  731. n += 1 + sovAppIndex(uint64(m.AreaV2Id))
  732. }
  733. l = len(m.AreaV2Name)
  734. if l > 0 {
  735. n += 1 + l + sovAppIndex(uint64(l))
  736. }
  737. l = len(m.PlayUrl)
  738. if l > 0 {
  739. n += 1 + l + sovAppIndex(uint64(l))
  740. }
  741. l = len(m.PlayUrlH265)
  742. if l > 0 {
  743. n += 1 + l + sovAppIndex(uint64(l))
  744. }
  745. if m.CurrentQuality != 0 {
  746. n += 1 + sovAppIndex(uint64(m.CurrentQuality))
  747. }
  748. if len(m.AcceptQuality) > 0 {
  749. l = 0
  750. for _, e := range m.AcceptQuality {
  751. l += sovAppIndex(uint64(e))
  752. }
  753. n += 1 + sovAppIndex(uint64(l)) + l
  754. }
  755. if m.BroadcastType != 0 {
  756. n += 2 + sovAppIndex(uint64(m.BroadcastType))
  757. }
  758. l = len(m.PendentRu)
  759. if l > 0 {
  760. n += 2 + l + sovAppIndex(uint64(l))
  761. }
  762. l = len(m.PendentRuPic)
  763. if l > 0 {
  764. n += 2 + l + sovAppIndex(uint64(l))
  765. }
  766. l = len(m.PendentRuColor)
  767. if l > 0 {
  768. n += 2 + l + sovAppIndex(uint64(l))
  769. }
  770. if m.RecType != 0 {
  771. n += 2 + sovAppIndex(uint64(m.RecType))
  772. }
  773. if m.PkId != 0 {
  774. n += 2 + sovAppIndex(uint64(m.PkId))
  775. }
  776. return n
  777. }
  778. func (m *AppIndexGetListByIdsResp_RoomList) Size() (n int) {
  779. if m == nil {
  780. return 0
  781. }
  782. var l int
  783. _ = l
  784. if len(m.List) > 0 {
  785. for _, e := range m.List {
  786. l = e.Size()
  787. n += 1 + l + sovAppIndex(uint64(l))
  788. }
  789. }
  790. return n
  791. }
  792. func sovAppIndex(x uint64) (n int) {
  793. for {
  794. n++
  795. x >>= 7
  796. if x == 0 {
  797. break
  798. }
  799. }
  800. return n
  801. }
  802. func sozAppIndex(x uint64) (n int) {
  803. return sovAppIndex(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  804. }
  805. func (m *AppIndexGetListByIdsReq) Unmarshal(dAtA []byte) error {
  806. l := len(dAtA)
  807. iNdEx := 0
  808. for iNdEx < l {
  809. preIndex := iNdEx
  810. var wire uint64
  811. for shift := uint(0); ; shift += 7 {
  812. if shift >= 64 {
  813. return ErrIntOverflowAppIndex
  814. }
  815. if iNdEx >= l {
  816. return io.ErrUnexpectedEOF
  817. }
  818. b := dAtA[iNdEx]
  819. iNdEx++
  820. wire |= (uint64(b) & 0x7F) << shift
  821. if b < 0x80 {
  822. break
  823. }
  824. }
  825. fieldNum := int32(wire >> 3)
  826. wireType := int(wire & 0x7)
  827. if wireType == 4 {
  828. return fmt.Errorf("proto: AppIndexGetListByIdsReq: wiretype end group for non-group")
  829. }
  830. if fieldNum <= 0 {
  831. return fmt.Errorf("proto: AppIndexGetListByIdsReq: illegal tag %d (wire type %d)", fieldNum, wire)
  832. }
  833. switch fieldNum {
  834. case 1:
  835. if wireType == 0 {
  836. var v int64
  837. for shift := uint(0); ; shift += 7 {
  838. if shift >= 64 {
  839. return ErrIntOverflowAppIndex
  840. }
  841. if iNdEx >= l {
  842. return io.ErrUnexpectedEOF
  843. }
  844. b := dAtA[iNdEx]
  845. iNdEx++
  846. v |= (int64(b) & 0x7F) << shift
  847. if b < 0x80 {
  848. break
  849. }
  850. }
  851. m.Ids = append(m.Ids, v)
  852. } else if wireType == 2 {
  853. var packedLen int
  854. for shift := uint(0); ; shift += 7 {
  855. if shift >= 64 {
  856. return ErrIntOverflowAppIndex
  857. }
  858. if iNdEx >= l {
  859. return io.ErrUnexpectedEOF
  860. }
  861. b := dAtA[iNdEx]
  862. iNdEx++
  863. packedLen |= (int(b) & 0x7F) << shift
  864. if b < 0x80 {
  865. break
  866. }
  867. }
  868. if packedLen < 0 {
  869. return ErrInvalidLengthAppIndex
  870. }
  871. postIndex := iNdEx + packedLen
  872. if postIndex > l {
  873. return io.ErrUnexpectedEOF
  874. }
  875. var elementCount int
  876. var count int
  877. for _, integer := range dAtA {
  878. if integer < 128 {
  879. count++
  880. }
  881. }
  882. elementCount = count
  883. if elementCount != 0 && len(m.Ids) == 0 {
  884. m.Ids = make([]int64, 0, elementCount)
  885. }
  886. for iNdEx < postIndex {
  887. var v int64
  888. for shift := uint(0); ; shift += 7 {
  889. if shift >= 64 {
  890. return ErrIntOverflowAppIndex
  891. }
  892. if iNdEx >= l {
  893. return io.ErrUnexpectedEOF
  894. }
  895. b := dAtA[iNdEx]
  896. iNdEx++
  897. v |= (int64(b) & 0x7F) << shift
  898. if b < 0x80 {
  899. break
  900. }
  901. }
  902. m.Ids = append(m.Ids, v)
  903. }
  904. } else {
  905. return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType)
  906. }
  907. default:
  908. iNdEx = preIndex
  909. skippy, err := skipAppIndex(dAtA[iNdEx:])
  910. if err != nil {
  911. return err
  912. }
  913. if skippy < 0 {
  914. return ErrInvalidLengthAppIndex
  915. }
  916. if (iNdEx + skippy) > l {
  917. return io.ErrUnexpectedEOF
  918. }
  919. iNdEx += skippy
  920. }
  921. }
  922. if iNdEx > l {
  923. return io.ErrUnexpectedEOF
  924. }
  925. return nil
  926. }
  927. func (m *AppIndexGetListByIdsResp) Unmarshal(dAtA []byte) error {
  928. l := len(dAtA)
  929. iNdEx := 0
  930. for iNdEx < l {
  931. preIndex := iNdEx
  932. var wire uint64
  933. for shift := uint(0); ; shift += 7 {
  934. if shift >= 64 {
  935. return ErrIntOverflowAppIndex
  936. }
  937. if iNdEx >= l {
  938. return io.ErrUnexpectedEOF
  939. }
  940. b := dAtA[iNdEx]
  941. iNdEx++
  942. wire |= (uint64(b) & 0x7F) << shift
  943. if b < 0x80 {
  944. break
  945. }
  946. }
  947. fieldNum := int32(wire >> 3)
  948. wireType := int(wire & 0x7)
  949. if wireType == 4 {
  950. return fmt.Errorf("proto: AppIndexGetListByIdsResp: wiretype end group for non-group")
  951. }
  952. if fieldNum <= 0 {
  953. return fmt.Errorf("proto: AppIndexGetListByIdsResp: illegal tag %d (wire type %d)", fieldNum, wire)
  954. }
  955. switch fieldNum {
  956. case 1:
  957. if wireType != 0 {
  958. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  959. }
  960. m.Code = 0
  961. for shift := uint(0); ; shift += 7 {
  962. if shift >= 64 {
  963. return ErrIntOverflowAppIndex
  964. }
  965. if iNdEx >= l {
  966. return io.ErrUnexpectedEOF
  967. }
  968. b := dAtA[iNdEx]
  969. iNdEx++
  970. m.Code |= (int64(b) & 0x7F) << shift
  971. if b < 0x80 {
  972. break
  973. }
  974. }
  975. case 2:
  976. if wireType != 2 {
  977. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  978. }
  979. var stringLen uint64
  980. for shift := uint(0); ; shift += 7 {
  981. if shift >= 64 {
  982. return ErrIntOverflowAppIndex
  983. }
  984. if iNdEx >= l {
  985. return io.ErrUnexpectedEOF
  986. }
  987. b := dAtA[iNdEx]
  988. iNdEx++
  989. stringLen |= (uint64(b) & 0x7F) << shift
  990. if b < 0x80 {
  991. break
  992. }
  993. }
  994. intStringLen := int(stringLen)
  995. if intStringLen < 0 {
  996. return ErrInvalidLengthAppIndex
  997. }
  998. postIndex := iNdEx + intStringLen
  999. if postIndex > l {
  1000. return io.ErrUnexpectedEOF
  1001. }
  1002. m.Msg = string(dAtA[iNdEx:postIndex])
  1003. iNdEx = postIndex
  1004. case 3:
  1005. if wireType != 2 {
  1006. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1007. }
  1008. var msglen int
  1009. for shift := uint(0); ; shift += 7 {
  1010. if shift >= 64 {
  1011. return ErrIntOverflowAppIndex
  1012. }
  1013. if iNdEx >= l {
  1014. return io.ErrUnexpectedEOF
  1015. }
  1016. b := dAtA[iNdEx]
  1017. iNdEx++
  1018. msglen |= (int(b) & 0x7F) << shift
  1019. if b < 0x80 {
  1020. break
  1021. }
  1022. }
  1023. if msglen < 0 {
  1024. return ErrInvalidLengthAppIndex
  1025. }
  1026. postIndex := iNdEx + msglen
  1027. if postIndex > l {
  1028. return io.ErrUnexpectedEOF
  1029. }
  1030. if m.Data == nil {
  1031. m.Data = make(map[int64]*AppIndexGetListByIdsResp_RoomList)
  1032. }
  1033. var mapkey int64
  1034. var mapvalue *AppIndexGetListByIdsResp_RoomList
  1035. for iNdEx < postIndex {
  1036. entryPreIndex := iNdEx
  1037. var wire uint64
  1038. for shift := uint(0); ; shift += 7 {
  1039. if shift >= 64 {
  1040. return ErrIntOverflowAppIndex
  1041. }
  1042. if iNdEx >= l {
  1043. return io.ErrUnexpectedEOF
  1044. }
  1045. b := dAtA[iNdEx]
  1046. iNdEx++
  1047. wire |= (uint64(b) & 0x7F) << shift
  1048. if b < 0x80 {
  1049. break
  1050. }
  1051. }
  1052. fieldNum := int32(wire >> 3)
  1053. if fieldNum == 1 {
  1054. for shift := uint(0); ; shift += 7 {
  1055. if shift >= 64 {
  1056. return ErrIntOverflowAppIndex
  1057. }
  1058. if iNdEx >= l {
  1059. return io.ErrUnexpectedEOF
  1060. }
  1061. b := dAtA[iNdEx]
  1062. iNdEx++
  1063. mapkey |= (int64(b) & 0x7F) << shift
  1064. if b < 0x80 {
  1065. break
  1066. }
  1067. }
  1068. } else if fieldNum == 2 {
  1069. var mapmsglen int
  1070. for shift := uint(0); ; shift += 7 {
  1071. if shift >= 64 {
  1072. return ErrIntOverflowAppIndex
  1073. }
  1074. if iNdEx >= l {
  1075. return io.ErrUnexpectedEOF
  1076. }
  1077. b := dAtA[iNdEx]
  1078. iNdEx++
  1079. mapmsglen |= (int(b) & 0x7F) << shift
  1080. if b < 0x80 {
  1081. break
  1082. }
  1083. }
  1084. if mapmsglen < 0 {
  1085. return ErrInvalidLengthAppIndex
  1086. }
  1087. postmsgIndex := iNdEx + mapmsglen
  1088. if mapmsglen < 0 {
  1089. return ErrInvalidLengthAppIndex
  1090. }
  1091. if postmsgIndex > l {
  1092. return io.ErrUnexpectedEOF
  1093. }
  1094. mapvalue = &AppIndexGetListByIdsResp_RoomList{}
  1095. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1096. return err
  1097. }
  1098. iNdEx = postmsgIndex
  1099. } else {
  1100. iNdEx = entryPreIndex
  1101. skippy, err := skipAppIndex(dAtA[iNdEx:])
  1102. if err != nil {
  1103. return err
  1104. }
  1105. if skippy < 0 {
  1106. return ErrInvalidLengthAppIndex
  1107. }
  1108. if (iNdEx + skippy) > postIndex {
  1109. return io.ErrUnexpectedEOF
  1110. }
  1111. iNdEx += skippy
  1112. }
  1113. }
  1114. m.Data[mapkey] = mapvalue
  1115. iNdEx = postIndex
  1116. default:
  1117. iNdEx = preIndex
  1118. skippy, err := skipAppIndex(dAtA[iNdEx:])
  1119. if err != nil {
  1120. return err
  1121. }
  1122. if skippy < 0 {
  1123. return ErrInvalidLengthAppIndex
  1124. }
  1125. if (iNdEx + skippy) > l {
  1126. return io.ErrUnexpectedEOF
  1127. }
  1128. iNdEx += skippy
  1129. }
  1130. }
  1131. if iNdEx > l {
  1132. return io.ErrUnexpectedEOF
  1133. }
  1134. return nil
  1135. }
  1136. func (m *AppIndexGetListByIdsResp_RoomInfo) Unmarshal(dAtA []byte) error {
  1137. l := len(dAtA)
  1138. iNdEx := 0
  1139. for iNdEx < l {
  1140. preIndex := iNdEx
  1141. var wire uint64
  1142. for shift := uint(0); ; shift += 7 {
  1143. if shift >= 64 {
  1144. return ErrIntOverflowAppIndex
  1145. }
  1146. if iNdEx >= l {
  1147. return io.ErrUnexpectedEOF
  1148. }
  1149. b := dAtA[iNdEx]
  1150. iNdEx++
  1151. wire |= (uint64(b) & 0x7F) << shift
  1152. if b < 0x80 {
  1153. break
  1154. }
  1155. }
  1156. fieldNum := int32(wire >> 3)
  1157. wireType := int(wire & 0x7)
  1158. if wireType == 4 {
  1159. return fmt.Errorf("proto: RoomInfo: wiretype end group for non-group")
  1160. }
  1161. if fieldNum <= 0 {
  1162. return fmt.Errorf("proto: RoomInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1163. }
  1164. switch fieldNum {
  1165. case 1:
  1166. if wireType != 0 {
  1167. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  1168. }
  1169. m.Roomid = 0
  1170. for shift := uint(0); ; shift += 7 {
  1171. if shift >= 64 {
  1172. return ErrIntOverflowAppIndex
  1173. }
  1174. if iNdEx >= l {
  1175. return io.ErrUnexpectedEOF
  1176. }
  1177. b := dAtA[iNdEx]
  1178. iNdEx++
  1179. m.Roomid |= (int64(b) & 0x7F) << shift
  1180. if b < 0x80 {
  1181. break
  1182. }
  1183. }
  1184. case 2:
  1185. if wireType != 2 {
  1186. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1187. }
  1188. var stringLen uint64
  1189. for shift := uint(0); ; shift += 7 {
  1190. if shift >= 64 {
  1191. return ErrIntOverflowAppIndex
  1192. }
  1193. if iNdEx >= l {
  1194. return io.ErrUnexpectedEOF
  1195. }
  1196. b := dAtA[iNdEx]
  1197. iNdEx++
  1198. stringLen |= (uint64(b) & 0x7F) << shift
  1199. if b < 0x80 {
  1200. break
  1201. }
  1202. }
  1203. intStringLen := int(stringLen)
  1204. if intStringLen < 0 {
  1205. return ErrInvalidLengthAppIndex
  1206. }
  1207. postIndex := iNdEx + intStringLen
  1208. if postIndex > l {
  1209. return io.ErrUnexpectedEOF
  1210. }
  1211. m.Title = string(dAtA[iNdEx:postIndex])
  1212. iNdEx = postIndex
  1213. case 3:
  1214. if wireType != 2 {
  1215. return fmt.Errorf("proto: wrong wireType = %d for field Uname", wireType)
  1216. }
  1217. var stringLen uint64
  1218. for shift := uint(0); ; shift += 7 {
  1219. if shift >= 64 {
  1220. return ErrIntOverflowAppIndex
  1221. }
  1222. if iNdEx >= l {
  1223. return io.ErrUnexpectedEOF
  1224. }
  1225. b := dAtA[iNdEx]
  1226. iNdEx++
  1227. stringLen |= (uint64(b) & 0x7F) << shift
  1228. if b < 0x80 {
  1229. break
  1230. }
  1231. }
  1232. intStringLen := int(stringLen)
  1233. if intStringLen < 0 {
  1234. return ErrInvalidLengthAppIndex
  1235. }
  1236. postIndex := iNdEx + intStringLen
  1237. if postIndex > l {
  1238. return io.ErrUnexpectedEOF
  1239. }
  1240. m.Uname = string(dAtA[iNdEx:postIndex])
  1241. iNdEx = postIndex
  1242. case 4:
  1243. if wireType != 0 {
  1244. return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
  1245. }
  1246. m.Online = 0
  1247. for shift := uint(0); ; shift += 7 {
  1248. if shift >= 64 {
  1249. return ErrIntOverflowAppIndex
  1250. }
  1251. if iNdEx >= l {
  1252. return io.ErrUnexpectedEOF
  1253. }
  1254. b := dAtA[iNdEx]
  1255. iNdEx++
  1256. m.Online |= (int64(b) & 0x7F) << shift
  1257. if b < 0x80 {
  1258. break
  1259. }
  1260. }
  1261. case 5:
  1262. if wireType != 2 {
  1263. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  1264. }
  1265. var stringLen uint64
  1266. for shift := uint(0); ; shift += 7 {
  1267. if shift >= 64 {
  1268. return ErrIntOverflowAppIndex
  1269. }
  1270. if iNdEx >= l {
  1271. return io.ErrUnexpectedEOF
  1272. }
  1273. b := dAtA[iNdEx]
  1274. iNdEx++
  1275. stringLen |= (uint64(b) & 0x7F) << shift
  1276. if b < 0x80 {
  1277. break
  1278. }
  1279. }
  1280. intStringLen := int(stringLen)
  1281. if intStringLen < 0 {
  1282. return ErrInvalidLengthAppIndex
  1283. }
  1284. postIndex := iNdEx + intStringLen
  1285. if postIndex > l {
  1286. return io.ErrUnexpectedEOF
  1287. }
  1288. m.Cover = string(dAtA[iNdEx:postIndex])
  1289. iNdEx = postIndex
  1290. case 6:
  1291. if wireType != 2 {
  1292. return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType)
  1293. }
  1294. var stringLen uint64
  1295. for shift := uint(0); ; shift += 7 {
  1296. if shift >= 64 {
  1297. return ErrIntOverflowAppIndex
  1298. }
  1299. if iNdEx >= l {
  1300. return io.ErrUnexpectedEOF
  1301. }
  1302. b := dAtA[iNdEx]
  1303. iNdEx++
  1304. stringLen |= (uint64(b) & 0x7F) << shift
  1305. if b < 0x80 {
  1306. break
  1307. }
  1308. }
  1309. intStringLen := int(stringLen)
  1310. if intStringLen < 0 {
  1311. return ErrInvalidLengthAppIndex
  1312. }
  1313. postIndex := iNdEx + intStringLen
  1314. if postIndex > l {
  1315. return io.ErrUnexpectedEOF
  1316. }
  1317. m.Link = string(dAtA[iNdEx:postIndex])
  1318. iNdEx = postIndex
  1319. case 7:
  1320. if wireType != 2 {
  1321. return fmt.Errorf("proto: wrong wireType = %d for field Face", wireType)
  1322. }
  1323. var stringLen uint64
  1324. for shift := uint(0); ; shift += 7 {
  1325. if shift >= 64 {
  1326. return ErrIntOverflowAppIndex
  1327. }
  1328. if iNdEx >= l {
  1329. return io.ErrUnexpectedEOF
  1330. }
  1331. b := dAtA[iNdEx]
  1332. iNdEx++
  1333. stringLen |= (uint64(b) & 0x7F) << shift
  1334. if b < 0x80 {
  1335. break
  1336. }
  1337. }
  1338. intStringLen := int(stringLen)
  1339. if intStringLen < 0 {
  1340. return ErrInvalidLengthAppIndex
  1341. }
  1342. postIndex := iNdEx + intStringLen
  1343. if postIndex > l {
  1344. return io.ErrUnexpectedEOF
  1345. }
  1346. m.Face = string(dAtA[iNdEx:postIndex])
  1347. iNdEx = postIndex
  1348. case 8:
  1349. if wireType != 0 {
  1350. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2ParentId", wireType)
  1351. }
  1352. m.AreaV2ParentId = 0
  1353. for shift := uint(0); ; shift += 7 {
  1354. if shift >= 64 {
  1355. return ErrIntOverflowAppIndex
  1356. }
  1357. if iNdEx >= l {
  1358. return io.ErrUnexpectedEOF
  1359. }
  1360. b := dAtA[iNdEx]
  1361. iNdEx++
  1362. m.AreaV2ParentId |= (int64(b) & 0x7F) << shift
  1363. if b < 0x80 {
  1364. break
  1365. }
  1366. }
  1367. case 9:
  1368. if wireType != 2 {
  1369. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2ParentName", wireType)
  1370. }
  1371. var stringLen uint64
  1372. for shift := uint(0); ; shift += 7 {
  1373. if shift >= 64 {
  1374. return ErrIntOverflowAppIndex
  1375. }
  1376. if iNdEx >= l {
  1377. return io.ErrUnexpectedEOF
  1378. }
  1379. b := dAtA[iNdEx]
  1380. iNdEx++
  1381. stringLen |= (uint64(b) & 0x7F) << shift
  1382. if b < 0x80 {
  1383. break
  1384. }
  1385. }
  1386. intStringLen := int(stringLen)
  1387. if intStringLen < 0 {
  1388. return ErrInvalidLengthAppIndex
  1389. }
  1390. postIndex := iNdEx + intStringLen
  1391. if postIndex > l {
  1392. return io.ErrUnexpectedEOF
  1393. }
  1394. m.AreaV2ParentName = string(dAtA[iNdEx:postIndex])
  1395. iNdEx = postIndex
  1396. case 10:
  1397. if wireType != 0 {
  1398. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2Id", wireType)
  1399. }
  1400. m.AreaV2Id = 0
  1401. for shift := uint(0); ; shift += 7 {
  1402. if shift >= 64 {
  1403. return ErrIntOverflowAppIndex
  1404. }
  1405. if iNdEx >= l {
  1406. return io.ErrUnexpectedEOF
  1407. }
  1408. b := dAtA[iNdEx]
  1409. iNdEx++
  1410. m.AreaV2Id |= (int64(b) & 0x7F) << shift
  1411. if b < 0x80 {
  1412. break
  1413. }
  1414. }
  1415. case 11:
  1416. if wireType != 2 {
  1417. return fmt.Errorf("proto: wrong wireType = %d for field AreaV2Name", wireType)
  1418. }
  1419. var stringLen uint64
  1420. for shift := uint(0); ; shift += 7 {
  1421. if shift >= 64 {
  1422. return ErrIntOverflowAppIndex
  1423. }
  1424. if iNdEx >= l {
  1425. return io.ErrUnexpectedEOF
  1426. }
  1427. b := dAtA[iNdEx]
  1428. iNdEx++
  1429. stringLen |= (uint64(b) & 0x7F) << shift
  1430. if b < 0x80 {
  1431. break
  1432. }
  1433. }
  1434. intStringLen := int(stringLen)
  1435. if intStringLen < 0 {
  1436. return ErrInvalidLengthAppIndex
  1437. }
  1438. postIndex := iNdEx + intStringLen
  1439. if postIndex > l {
  1440. return io.ErrUnexpectedEOF
  1441. }
  1442. m.AreaV2Name = string(dAtA[iNdEx:postIndex])
  1443. iNdEx = postIndex
  1444. case 12:
  1445. if wireType != 2 {
  1446. return fmt.Errorf("proto: wrong wireType = %d for field PlayUrl", wireType)
  1447. }
  1448. var stringLen uint64
  1449. for shift := uint(0); ; shift += 7 {
  1450. if shift >= 64 {
  1451. return ErrIntOverflowAppIndex
  1452. }
  1453. if iNdEx >= l {
  1454. return io.ErrUnexpectedEOF
  1455. }
  1456. b := dAtA[iNdEx]
  1457. iNdEx++
  1458. stringLen |= (uint64(b) & 0x7F) << shift
  1459. if b < 0x80 {
  1460. break
  1461. }
  1462. }
  1463. intStringLen := int(stringLen)
  1464. if intStringLen < 0 {
  1465. return ErrInvalidLengthAppIndex
  1466. }
  1467. postIndex := iNdEx + intStringLen
  1468. if postIndex > l {
  1469. return io.ErrUnexpectedEOF
  1470. }
  1471. m.PlayUrl = string(dAtA[iNdEx:postIndex])
  1472. iNdEx = postIndex
  1473. case 13:
  1474. if wireType != 2 {
  1475. return fmt.Errorf("proto: wrong wireType = %d for field PlayUrlH265", wireType)
  1476. }
  1477. var stringLen uint64
  1478. for shift := uint(0); ; shift += 7 {
  1479. if shift >= 64 {
  1480. return ErrIntOverflowAppIndex
  1481. }
  1482. if iNdEx >= l {
  1483. return io.ErrUnexpectedEOF
  1484. }
  1485. b := dAtA[iNdEx]
  1486. iNdEx++
  1487. stringLen |= (uint64(b) & 0x7F) << shift
  1488. if b < 0x80 {
  1489. break
  1490. }
  1491. }
  1492. intStringLen := int(stringLen)
  1493. if intStringLen < 0 {
  1494. return ErrInvalidLengthAppIndex
  1495. }
  1496. postIndex := iNdEx + intStringLen
  1497. if postIndex > l {
  1498. return io.ErrUnexpectedEOF
  1499. }
  1500. m.PlayUrlH265 = string(dAtA[iNdEx:postIndex])
  1501. iNdEx = postIndex
  1502. case 14:
  1503. if wireType != 0 {
  1504. return fmt.Errorf("proto: wrong wireType = %d for field CurrentQuality", wireType)
  1505. }
  1506. m.CurrentQuality = 0
  1507. for shift := uint(0); ; shift += 7 {
  1508. if shift >= 64 {
  1509. return ErrIntOverflowAppIndex
  1510. }
  1511. if iNdEx >= l {
  1512. return io.ErrUnexpectedEOF
  1513. }
  1514. b := dAtA[iNdEx]
  1515. iNdEx++
  1516. m.CurrentQuality |= (int64(b) & 0x7F) << shift
  1517. if b < 0x80 {
  1518. break
  1519. }
  1520. }
  1521. case 15:
  1522. if wireType == 0 {
  1523. var v int64
  1524. for shift := uint(0); ; shift += 7 {
  1525. if shift >= 64 {
  1526. return ErrIntOverflowAppIndex
  1527. }
  1528. if iNdEx >= l {
  1529. return io.ErrUnexpectedEOF
  1530. }
  1531. b := dAtA[iNdEx]
  1532. iNdEx++
  1533. v |= (int64(b) & 0x7F) << shift
  1534. if b < 0x80 {
  1535. break
  1536. }
  1537. }
  1538. m.AcceptQuality = append(m.AcceptQuality, v)
  1539. } else if wireType == 2 {
  1540. var packedLen int
  1541. for shift := uint(0); ; shift += 7 {
  1542. if shift >= 64 {
  1543. return ErrIntOverflowAppIndex
  1544. }
  1545. if iNdEx >= l {
  1546. return io.ErrUnexpectedEOF
  1547. }
  1548. b := dAtA[iNdEx]
  1549. iNdEx++
  1550. packedLen |= (int(b) & 0x7F) << shift
  1551. if b < 0x80 {
  1552. break
  1553. }
  1554. }
  1555. if packedLen < 0 {
  1556. return ErrInvalidLengthAppIndex
  1557. }
  1558. postIndex := iNdEx + packedLen
  1559. if postIndex > l {
  1560. return io.ErrUnexpectedEOF
  1561. }
  1562. var elementCount int
  1563. var count int
  1564. for _, integer := range dAtA {
  1565. if integer < 128 {
  1566. count++
  1567. }
  1568. }
  1569. elementCount = count
  1570. if elementCount != 0 && len(m.AcceptQuality) == 0 {
  1571. m.AcceptQuality = make([]int64, 0, elementCount)
  1572. }
  1573. for iNdEx < postIndex {
  1574. var v int64
  1575. for shift := uint(0); ; shift += 7 {
  1576. if shift >= 64 {
  1577. return ErrIntOverflowAppIndex
  1578. }
  1579. if iNdEx >= l {
  1580. return io.ErrUnexpectedEOF
  1581. }
  1582. b := dAtA[iNdEx]
  1583. iNdEx++
  1584. v |= (int64(b) & 0x7F) << shift
  1585. if b < 0x80 {
  1586. break
  1587. }
  1588. }
  1589. m.AcceptQuality = append(m.AcceptQuality, v)
  1590. }
  1591. } else {
  1592. return fmt.Errorf("proto: wrong wireType = %d for field AcceptQuality", wireType)
  1593. }
  1594. case 16:
  1595. if wireType != 0 {
  1596. return fmt.Errorf("proto: wrong wireType = %d for field BroadcastType", wireType)
  1597. }
  1598. m.BroadcastType = 0
  1599. for shift := uint(0); ; shift += 7 {
  1600. if shift >= 64 {
  1601. return ErrIntOverflowAppIndex
  1602. }
  1603. if iNdEx >= l {
  1604. return io.ErrUnexpectedEOF
  1605. }
  1606. b := dAtA[iNdEx]
  1607. iNdEx++
  1608. m.BroadcastType |= (int64(b) & 0x7F) << shift
  1609. if b < 0x80 {
  1610. break
  1611. }
  1612. }
  1613. case 17:
  1614. if wireType != 2 {
  1615. return fmt.Errorf("proto: wrong wireType = %d for field PendentRu", wireType)
  1616. }
  1617. var stringLen uint64
  1618. for shift := uint(0); ; shift += 7 {
  1619. if shift >= 64 {
  1620. return ErrIntOverflowAppIndex
  1621. }
  1622. if iNdEx >= l {
  1623. return io.ErrUnexpectedEOF
  1624. }
  1625. b := dAtA[iNdEx]
  1626. iNdEx++
  1627. stringLen |= (uint64(b) & 0x7F) << shift
  1628. if b < 0x80 {
  1629. break
  1630. }
  1631. }
  1632. intStringLen := int(stringLen)
  1633. if intStringLen < 0 {
  1634. return ErrInvalidLengthAppIndex
  1635. }
  1636. postIndex := iNdEx + intStringLen
  1637. if postIndex > l {
  1638. return io.ErrUnexpectedEOF
  1639. }
  1640. m.PendentRu = string(dAtA[iNdEx:postIndex])
  1641. iNdEx = postIndex
  1642. case 18:
  1643. if wireType != 2 {
  1644. return fmt.Errorf("proto: wrong wireType = %d for field PendentRuPic", wireType)
  1645. }
  1646. var stringLen uint64
  1647. for shift := uint(0); ; shift += 7 {
  1648. if shift >= 64 {
  1649. return ErrIntOverflowAppIndex
  1650. }
  1651. if iNdEx >= l {
  1652. return io.ErrUnexpectedEOF
  1653. }
  1654. b := dAtA[iNdEx]
  1655. iNdEx++
  1656. stringLen |= (uint64(b) & 0x7F) << shift
  1657. if b < 0x80 {
  1658. break
  1659. }
  1660. }
  1661. intStringLen := int(stringLen)
  1662. if intStringLen < 0 {
  1663. return ErrInvalidLengthAppIndex
  1664. }
  1665. postIndex := iNdEx + intStringLen
  1666. if postIndex > l {
  1667. return io.ErrUnexpectedEOF
  1668. }
  1669. m.PendentRuPic = string(dAtA[iNdEx:postIndex])
  1670. iNdEx = postIndex
  1671. case 19:
  1672. if wireType != 2 {
  1673. return fmt.Errorf("proto: wrong wireType = %d for field PendentRuColor", wireType)
  1674. }
  1675. var stringLen uint64
  1676. for shift := uint(0); ; shift += 7 {
  1677. if shift >= 64 {
  1678. return ErrIntOverflowAppIndex
  1679. }
  1680. if iNdEx >= l {
  1681. return io.ErrUnexpectedEOF
  1682. }
  1683. b := dAtA[iNdEx]
  1684. iNdEx++
  1685. stringLen |= (uint64(b) & 0x7F) << shift
  1686. if b < 0x80 {
  1687. break
  1688. }
  1689. }
  1690. intStringLen := int(stringLen)
  1691. if intStringLen < 0 {
  1692. return ErrInvalidLengthAppIndex
  1693. }
  1694. postIndex := iNdEx + intStringLen
  1695. if postIndex > l {
  1696. return io.ErrUnexpectedEOF
  1697. }
  1698. m.PendentRuColor = string(dAtA[iNdEx:postIndex])
  1699. iNdEx = postIndex
  1700. case 20:
  1701. if wireType != 0 {
  1702. return fmt.Errorf("proto: wrong wireType = %d for field RecType", wireType)
  1703. }
  1704. m.RecType = 0
  1705. for shift := uint(0); ; shift += 7 {
  1706. if shift >= 64 {
  1707. return ErrIntOverflowAppIndex
  1708. }
  1709. if iNdEx >= l {
  1710. return io.ErrUnexpectedEOF
  1711. }
  1712. b := dAtA[iNdEx]
  1713. iNdEx++
  1714. m.RecType |= (int64(b) & 0x7F) << shift
  1715. if b < 0x80 {
  1716. break
  1717. }
  1718. }
  1719. case 21:
  1720. if wireType != 0 {
  1721. return fmt.Errorf("proto: wrong wireType = %d for field PkId", wireType)
  1722. }
  1723. m.PkId = 0
  1724. for shift := uint(0); ; shift += 7 {
  1725. if shift >= 64 {
  1726. return ErrIntOverflowAppIndex
  1727. }
  1728. if iNdEx >= l {
  1729. return io.ErrUnexpectedEOF
  1730. }
  1731. b := dAtA[iNdEx]
  1732. iNdEx++
  1733. m.PkId |= (int64(b) & 0x7F) << shift
  1734. if b < 0x80 {
  1735. break
  1736. }
  1737. }
  1738. default:
  1739. iNdEx = preIndex
  1740. skippy, err := skipAppIndex(dAtA[iNdEx:])
  1741. if err != nil {
  1742. return err
  1743. }
  1744. if skippy < 0 {
  1745. return ErrInvalidLengthAppIndex
  1746. }
  1747. if (iNdEx + skippy) > l {
  1748. return io.ErrUnexpectedEOF
  1749. }
  1750. iNdEx += skippy
  1751. }
  1752. }
  1753. if iNdEx > l {
  1754. return io.ErrUnexpectedEOF
  1755. }
  1756. return nil
  1757. }
  1758. func (m *AppIndexGetListByIdsResp_RoomList) Unmarshal(dAtA []byte) error {
  1759. l := len(dAtA)
  1760. iNdEx := 0
  1761. for iNdEx < l {
  1762. preIndex := iNdEx
  1763. var wire uint64
  1764. for shift := uint(0); ; shift += 7 {
  1765. if shift >= 64 {
  1766. return ErrIntOverflowAppIndex
  1767. }
  1768. if iNdEx >= l {
  1769. return io.ErrUnexpectedEOF
  1770. }
  1771. b := dAtA[iNdEx]
  1772. iNdEx++
  1773. wire |= (uint64(b) & 0x7F) << shift
  1774. if b < 0x80 {
  1775. break
  1776. }
  1777. }
  1778. fieldNum := int32(wire >> 3)
  1779. wireType := int(wire & 0x7)
  1780. if wireType == 4 {
  1781. return fmt.Errorf("proto: RoomList: wiretype end group for non-group")
  1782. }
  1783. if fieldNum <= 0 {
  1784. return fmt.Errorf("proto: RoomList: illegal tag %d (wire type %d)", fieldNum, wire)
  1785. }
  1786. switch fieldNum {
  1787. case 1:
  1788. if wireType != 2 {
  1789. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  1790. }
  1791. var msglen int
  1792. for shift := uint(0); ; shift += 7 {
  1793. if shift >= 64 {
  1794. return ErrIntOverflowAppIndex
  1795. }
  1796. if iNdEx >= l {
  1797. return io.ErrUnexpectedEOF
  1798. }
  1799. b := dAtA[iNdEx]
  1800. iNdEx++
  1801. msglen |= (int(b) & 0x7F) << shift
  1802. if b < 0x80 {
  1803. break
  1804. }
  1805. }
  1806. if msglen < 0 {
  1807. return ErrInvalidLengthAppIndex
  1808. }
  1809. postIndex := iNdEx + msglen
  1810. if postIndex > l {
  1811. return io.ErrUnexpectedEOF
  1812. }
  1813. m.List = append(m.List, &AppIndexGetListByIdsResp_RoomInfo{})
  1814. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1815. return err
  1816. }
  1817. iNdEx = postIndex
  1818. default:
  1819. iNdEx = preIndex
  1820. skippy, err := skipAppIndex(dAtA[iNdEx:])
  1821. if err != nil {
  1822. return err
  1823. }
  1824. if skippy < 0 {
  1825. return ErrInvalidLengthAppIndex
  1826. }
  1827. if (iNdEx + skippy) > l {
  1828. return io.ErrUnexpectedEOF
  1829. }
  1830. iNdEx += skippy
  1831. }
  1832. }
  1833. if iNdEx > l {
  1834. return io.ErrUnexpectedEOF
  1835. }
  1836. return nil
  1837. }
  1838. func skipAppIndex(dAtA []byte) (n int, err error) {
  1839. l := len(dAtA)
  1840. iNdEx := 0
  1841. for iNdEx < l {
  1842. var wire uint64
  1843. for shift := uint(0); ; shift += 7 {
  1844. if shift >= 64 {
  1845. return 0, ErrIntOverflowAppIndex
  1846. }
  1847. if iNdEx >= l {
  1848. return 0, io.ErrUnexpectedEOF
  1849. }
  1850. b := dAtA[iNdEx]
  1851. iNdEx++
  1852. wire |= (uint64(b) & 0x7F) << shift
  1853. if b < 0x80 {
  1854. break
  1855. }
  1856. }
  1857. wireType := int(wire & 0x7)
  1858. switch wireType {
  1859. case 0:
  1860. for shift := uint(0); ; shift += 7 {
  1861. if shift >= 64 {
  1862. return 0, ErrIntOverflowAppIndex
  1863. }
  1864. if iNdEx >= l {
  1865. return 0, io.ErrUnexpectedEOF
  1866. }
  1867. iNdEx++
  1868. if dAtA[iNdEx-1] < 0x80 {
  1869. break
  1870. }
  1871. }
  1872. return iNdEx, nil
  1873. case 1:
  1874. iNdEx += 8
  1875. return iNdEx, nil
  1876. case 2:
  1877. var length int
  1878. for shift := uint(0); ; shift += 7 {
  1879. if shift >= 64 {
  1880. return 0, ErrIntOverflowAppIndex
  1881. }
  1882. if iNdEx >= l {
  1883. return 0, io.ErrUnexpectedEOF
  1884. }
  1885. b := dAtA[iNdEx]
  1886. iNdEx++
  1887. length |= (int(b) & 0x7F) << shift
  1888. if b < 0x80 {
  1889. break
  1890. }
  1891. }
  1892. iNdEx += length
  1893. if length < 0 {
  1894. return 0, ErrInvalidLengthAppIndex
  1895. }
  1896. return iNdEx, nil
  1897. case 3:
  1898. for {
  1899. var innerWire uint64
  1900. var start int = iNdEx
  1901. for shift := uint(0); ; shift += 7 {
  1902. if shift >= 64 {
  1903. return 0, ErrIntOverflowAppIndex
  1904. }
  1905. if iNdEx >= l {
  1906. return 0, io.ErrUnexpectedEOF
  1907. }
  1908. b := dAtA[iNdEx]
  1909. iNdEx++
  1910. innerWire |= (uint64(b) & 0x7F) << shift
  1911. if b < 0x80 {
  1912. break
  1913. }
  1914. }
  1915. innerWireType := int(innerWire & 0x7)
  1916. if innerWireType == 4 {
  1917. break
  1918. }
  1919. next, err := skipAppIndex(dAtA[start:])
  1920. if err != nil {
  1921. return 0, err
  1922. }
  1923. iNdEx = start + next
  1924. }
  1925. return iNdEx, nil
  1926. case 4:
  1927. return iNdEx, nil
  1928. case 5:
  1929. iNdEx += 4
  1930. return iNdEx, nil
  1931. default:
  1932. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1933. }
  1934. }
  1935. panic("unreachable")
  1936. }
  1937. var (
  1938. ErrInvalidLengthAppIndex = fmt.Errorf("proto: negative length found during unmarshaling")
  1939. ErrIntOverflowAppIndex = fmt.Errorf("proto: integer overflow")
  1940. )
  1941. func init() { proto.RegisterFile("v1/AppIndex.proto", fileDescriptor_AppIndex_e6fcc9887f31b3ad) }
  1942. var fileDescriptor_AppIndex_e6fcc9887f31b3ad = []byte{
  1943. // 786 bytes of a gzipped FileDescriptorProto
  1944. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x5b, 0x6f, 0xe3, 0x44,
  1945. 0x14, 0xae, 0xeb, 0xa4, 0x49, 0x4e, 0x2e, 0x9b, 0x4c, 0x77, 0xb5, 0x43, 0xb4, 0x8a, 0x43, 0x5f,
  1946. 0x88, 0x80, 0x4d, 0x55, 0x43, 0x57, 0x0b, 0x42, 0x68, 0x09, 0xb7, 0x8d, 0x84, 0xd0, 0x32, 0x14,
  1947. 0x1e, 0x78, 0xb1, 0x1c, 0x7b, 0x9a, 0x5a, 0x71, 0x3c, 0xae, 0x2f, 0x11, 0xf9, 0x17, 0xfc, 0x23,
  1948. 0x5e, 0x79, 0xec, 0x23, 0x4f, 0x16, 0x6a, 0xde, 0xfc, 0x2b, 0xd0, 0x9c, 0x71, 0x6e, 0x6d, 0x51,
  1949. 0x79, 0x39, 0x33, 0xe7, 0xfb, 0xce, 0x77, 0xce, 0x1c, 0x8f, 0xcf, 0x40, 0x67, 0x71, 0x76, 0xfa,
  1950. 0x55, 0x18, 0x8e, 0x03, 0x97, 0xff, 0x3e, 0x0c, 0x23, 0x91, 0x08, 0x52, 0x89, 0x84, 0x98, 0x0f,
  1951. 0x17, 0x67, 0xdd, 0x97, 0x53, 0x2f, 0xb9, 0x4a, 0x27, 0x43, 0x47, 0xcc, 0x4f, 0xa7, 0x62, 0x2a,
  1952. 0x4e, 0x91, 0x9f, 0xa4, 0x97, 0xe8, 0xa1, 0x83, 0x3b, 0xa5, 0x3b, 0xf9, 0x14, 0x9e, 0xaf, 0x33,
  1953. 0x7d, 0xcf, 0x93, 0x1f, 0xbc, 0x38, 0x19, 0x2d, 0xc7, 0x6e, 0xcc, 0xf8, 0x35, 0x79, 0x0f, 0x74,
  1954. 0xcf, 0x8d, 0xa9, 0xd6, 0xd7, 0x07, 0xfa, 0xa8, 0x92, 0x67, 0x86, 0x74, 0x99, 0x34, 0x27, 0x7f,
  1955. 0x02, 0xd0, 0x87, 0x65, 0x71, 0x48, 0x5e, 0x40, 0xc9, 0x11, 0x2e, 0xa7, 0x5a, 0x5f, 0x1b, 0xe8,
  1956. 0xa3, 0x6a, 0x9e, 0x19, 0xe8, 0x33, 0xb4, 0x32, 0xeb, 0x3c, 0x9e, 0xd2, 0xc3, 0xbe, 0x36, 0xa8,
  1957. 0xa9, 0xac, 0xf3, 0x78, 0xca, 0xa4, 0x21, 0x63, 0x28, 0xb9, 0x76, 0x62, 0x53, 0xbd, 0xaf, 0x0f,
  1958. 0xea, 0xe6, 0x47, 0xc3, 0xa2, 0xa5, 0xe1, 0x7f, 0x55, 0x1a, 0x7e, 0x63, 0x27, 0xf6, 0xb7, 0x41,
  1959. 0x12, 0x2d, 0x55, 0x15, 0x29, 0x66, 0x68, 0xbb, 0x0e, 0xd4, 0x36, 0x24, 0x69, 0x83, 0x3e, 0xe3,
  1960. 0x4b, 0x75, 0x1e, 0x26, 0xb7, 0xe4, 0x0d, 0x94, 0x17, 0xb6, 0x9f, 0x72, 0x3c, 0x46, 0xdd, 0xfc,
  1961. 0xf0, 0xf1, 0x52, 0x4c, 0x88, 0xb9, 0x44, 0x98, 0x12, 0x7e, 0x7e, 0xf8, 0x5a, 0xeb, 0xae, 0x2a,
  1962. 0x50, 0x95, 0xf8, 0x38, 0xb8, 0x14, 0xe4, 0x04, 0x8e, 0x64, 0x12, 0xcf, 0x2d, 0xfa, 0x86, 0x3c,
  1963. 0x33, 0x0a, 0x84, 0x15, 0x2b, 0x31, 0xa0, 0x9c, 0x78, 0x89, 0xcf, 0x8b, 0xee, 0x6b, 0x79, 0x66,
  1964. 0x28, 0x80, 0xa9, 0x45, 0x06, 0xa4, 0x81, 0x3d, 0xe7, 0x54, 0xdf, 0x06, 0x20, 0xc0, 0xd4, 0x22,
  1965. 0xab, 0x88, 0xc0, 0xf7, 0x02, 0x4e, 0x4b, 0xdb, 0x2a, 0x0a, 0x61, 0xc5, 0x2a, 0x93, 0x38, 0x62,
  1966. 0xc1, 0x23, 0x5a, 0xde, 0x26, 0x41, 0x80, 0xa9, 0x45, 0x5e, 0x90, 0xef, 0x05, 0x33, 0x7a, 0x84,
  1967. 0x3c, 0x7e, 0x3a, 0xe9, 0x33, 0xb4, 0x92, 0xbd, 0xb4, 0x1d, 0x4e, 0x2b, 0x5b, 0x56, 0xfa, 0x0c,
  1968. 0x2d, 0x79, 0x03, 0x1d, 0x3b, 0xe2, 0xb6, 0xb5, 0x30, 0xad, 0xd0, 0x8e, 0x78, 0x90, 0x58, 0x9e,
  1969. 0x4b, 0xab, 0x78, 0x96, 0x67, 0x79, 0x66, 0xdc, 0x27, 0x59, 0x4b, 0x42, 0xbf, 0x9a, 0xef, 0x10,
  1970. 0x18, 0xbb, 0xe4, 0x3b, 0x38, 0xbe, 0x13, 0x84, 0x1d, 0xd7, 0xb0, 0xdc, 0xf3, 0x3c, 0x33, 0x1e,
  1971. 0xa2, 0x59, 0x7b, 0x37, 0xcb, 0x8f, 0xf2, 0x53, 0x7c, 0x0c, 0xb0, 0x0e, 0xf4, 0x5c, 0x0a, 0x78,
  1972. 0x84, 0x56, 0x9e, 0x19, 0x3b, 0x28, 0xab, 0x2a, 0xd5, 0xd8, 0x25, 0x26, 0x34, 0xd6, 0x38, 0x96,
  1973. 0xab, 0x63, 0xb9, 0x76, 0x9e, 0x19, 0x7b, 0x38, 0x03, 0xa5, 0xc0, 0x0a, 0x1f, 0x40, 0x35, 0xf4,
  1974. 0xed, 0xa5, 0x95, 0x46, 0x3e, 0x6d, 0x60, 0x7c, 0x23, 0xcf, 0x8c, 0x0d, 0xc6, 0x2a, 0x72, 0xf7,
  1975. 0x4b, 0xe4, 0x93, 0x73, 0x68, 0xae, 0x41, 0xeb, 0xca, 0x7c, 0x75, 0x4e, 0x9b, 0x18, 0xdd, 0xc9,
  1976. 0x33, 0x63, 0x9f, 0x60, 0xf5, 0x42, 0xf2, 0xd6, 0x7c, 0x75, 0x4e, 0xbe, 0x80, 0x27, 0x4e, 0x1a,
  1977. 0x61, 0x8f, 0xd7, 0xa9, 0xed, 0x7b, 0xc9, 0x92, 0xb6, 0xb0, 0x8d, 0xe3, 0x3c, 0x33, 0xee, 0x52,
  1978. 0xac, 0x55, 0x00, 0x3f, 0x29, 0x9f, 0x7c, 0x06, 0x2d, 0xdb, 0x71, 0x78, 0xb8, 0x15, 0x3f, 0xc1,
  1979. 0x49, 0x25, 0x79, 0x66, 0xdc, 0x61, 0x58, 0x53, 0xf9, 0x3b, 0xd2, 0x49, 0x24, 0x6c, 0xd7, 0xb1,
  1980. 0xe3, 0xc4, 0x4a, 0x96, 0x21, 0xa7, 0x6d, 0xac, 0x8b, 0xd2, 0x7d, 0x86, 0x35, 0x37, 0xfe, 0xc5,
  1981. 0x32, 0xe4, 0xe4, 0x25, 0x40, 0xc8, 0x03, 0x57, 0x1e, 0x2c, 0x4a, 0x69, 0x07, 0xfb, 0xc4, 0xaf,
  1982. 0xbe, 0x45, 0x59, 0xad, 0xd8, 0xb3, 0x94, 0xbc, 0x86, 0xd6, 0x96, 0xb0, 0x42, 0xcf, 0xa1, 0x04,
  1983. 0x25, 0x58, 0x69, 0x9f, 0x61, 0x8d, 0x8d, 0xec, 0x9d, 0xe7, 0x90, 0x2f, 0xa1, 0xbd, 0xc3, 0x3b,
  1984. 0xc2, 0x17, 0x11, 0x3d, 0x46, 0xed, 0xd3, 0x3c, 0x33, 0xee, 0x71, 0xac, 0xb5, 0x51, 0x7f, 0x2d,
  1985. 0x7d, 0x79, 0x79, 0x11, 0x77, 0x54, 0x77, 0x4f, 0xb1, 0x3b, 0xbc, 0xbc, 0x35, 0xc6, 0x2a, 0x11,
  1986. 0x77, 0xb0, 0xa3, 0x1e, 0x94, 0xc3, 0x99, 0xfc, 0x85, 0x9e, 0x61, 0x14, 0x8e, 0x0b, 0x02, 0xac,
  1987. 0x14, 0xce, 0xc6, 0x6e, 0xf7, 0x42, 0x0d, 0xb9, 0x1c, 0x7e, 0xf2, 0x56, 0x4e, 0x4e, 0x9c, 0xe0,
  1988. 0x9b, 0xf8, 0xbf, 0x9f, 0x0d, 0xf9, 0x3c, 0xac, 0xa7, 0x2c, 0x4e, 0x18, 0x5a, 0xd3, 0x82, 0xea,
  1989. 0x5a, 0x44, 0x7e, 0x86, 0xc6, 0x74, 0x47, 0x48, 0xfa, 0x8f, 0xe4, 0xbd, 0xee, 0xbe, 0xff, 0x68,
  1990. 0xe5, 0xd1, 0x8b, 0xbf, 0x6e, 0x7b, 0xda, 0xcd, 0x6d, 0x4f, 0xfb, 0xe7, 0xb6, 0xa7, 0xfd, 0xb1,
  1991. 0xea, 0x1d, 0xdc, 0xac, 0x7a, 0x07, 0x7f, 0xaf, 0x7a, 0x07, 0xbf, 0x1d, 0x2e, 0xce, 0x26, 0x47,
  1992. 0xf8, 0xfa, 0x7f, 0xf2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x01, 0x27, 0xab, 0x4a, 0x06,
  1993. 0x00, 0x00,
  1994. }