api.pb.go 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/xroom-feed/api/api.proto
  3. package api
  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 (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. type RecPoolReq struct {
  23. // 投放模块
  24. ModuleType int64 `protobuf:"varint,1,opt,name=module_type,json=moduleType,proto3" json:"module_type,omitempty" form:"module_type" validate:"required"`
  25. // 投放模块位置数
  26. PositionNum int64 `protobuf:"varint,2,opt,name=position_num,json=positionNum,proto3" json:"position_num,omitempty" form:"position_num" validate:"required"`
  27. // 投放模块页数 不传或传0、1都按一页算(暂时没用)
  28. PageNum int64 `protobuf:"varint,3,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty" form:"page_num"`
  29. // 当前模块已存在的位置房间(逗号分隔、有序),1~position*N(内部去重,保证同一个房间优先出现在好位置)
  30. ModuleExistRooms string `protobuf:"bytes,4,opt,name=module_exist_rooms,json=moduleExistRooms,proto3" json:"module_exist_rooms,omitempty" form:"module_exist_rooms"`
  31. // 其它模块已存在的位置房间(逗号分隔、有序),1~position*N(内部去重,保证同一个房间优先出现在好位置)
  32. OtherExistRooms string `protobuf:"bytes,5,opt,name=other_exist_rooms,json=otherExistRooms,proto3" json:"other_exist_rooms,omitempty" form:"other_exist_rooms"`
  33. // 请求来源
  34. From string `protobuf:"bytes,6,opt,name=from,proto3" json:"from,omitempty" form:"from"`
  35. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  36. XXX_unrecognized []byte `json:"-"`
  37. XXX_sizecache int32 `json:"-"`
  38. }
  39. func (m *RecPoolReq) Reset() { *m = RecPoolReq{} }
  40. func (m *RecPoolReq) String() string { return proto.CompactTextString(m) }
  41. func (*RecPoolReq) ProtoMessage() {}
  42. func (*RecPoolReq) Descriptor() ([]byte, []int) {
  43. return fileDescriptor_api_1c1f9f8a1548f1df, []int{0}
  44. }
  45. func (m *RecPoolReq) XXX_Unmarshal(b []byte) error {
  46. return m.Unmarshal(b)
  47. }
  48. func (m *RecPoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  49. if deterministic {
  50. return xxx_messageInfo_RecPoolReq.Marshal(b, m, deterministic)
  51. } else {
  52. b = b[:cap(b)]
  53. n, err := m.MarshalTo(b)
  54. if err != nil {
  55. return nil, err
  56. }
  57. return b[:n], nil
  58. }
  59. }
  60. func (dst *RecPoolReq) XXX_Merge(src proto.Message) {
  61. xxx_messageInfo_RecPoolReq.Merge(dst, src)
  62. }
  63. func (m *RecPoolReq) XXX_Size() int {
  64. return m.Size()
  65. }
  66. func (m *RecPoolReq) XXX_DiscardUnknown() {
  67. xxx_messageInfo_RecPoolReq.DiscardUnknown(m)
  68. }
  69. var xxx_messageInfo_RecPoolReq proto.InternalMessageInfo
  70. type RecPoolResp struct {
  71. // 主播position => 房间信息(依赖计算的)
  72. List map[int64]*RoomItem `protobuf:"bytes,1,rep,name=list" json:"list" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  73. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  74. XXX_unrecognized []byte `json:"-"`
  75. XXX_sizecache int32 `json:"-"`
  76. }
  77. func (m *RecPoolResp) Reset() { *m = RecPoolResp{} }
  78. func (m *RecPoolResp) String() string { return proto.CompactTextString(m) }
  79. func (*RecPoolResp) ProtoMessage() {}
  80. func (*RecPoolResp) Descriptor() ([]byte, []int) {
  81. return fileDescriptor_api_1c1f9f8a1548f1df, []int{1}
  82. }
  83. func (m *RecPoolResp) XXX_Unmarshal(b []byte) error {
  84. return m.Unmarshal(b)
  85. }
  86. func (m *RecPoolResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. if deterministic {
  88. return xxx_messageInfo_RecPoolResp.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 *RecPoolResp) XXX_Merge(src proto.Message) {
  99. xxx_messageInfo_RecPoolResp.Merge(dst, src)
  100. }
  101. func (m *RecPoolResp) XXX_Size() int {
  102. return m.Size()
  103. }
  104. func (m *RecPoolResp) XXX_DiscardUnknown() {
  105. xxx_messageInfo_RecPoolResp.DiscardUnknown(m)
  106. }
  107. var xxx_messageInfo_RecPoolResp proto.InternalMessageInfo
  108. type RoomItem struct {
  109. // 房间id
  110. RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id"`
  111. // 主播uid
  112. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"`
  113. // 房间标题
  114. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title"`
  115. // 人气
  116. PopularityCount int64 `protobuf:"varint,4,opt,name=popularity_count,json=popularityCount,proto3" json:"popularity_count"`
  117. // 关键帧
  118. Keyframe string `protobuf:"bytes,5,opt,name=keyframe,proto3" json:"keyframe"`
  119. // 封面
  120. Cover string `protobuf:"bytes,6,opt,name=cover,proto3" json:"cover"`
  121. // 二级分区id
  122. AreaId int64 `protobuf:"varint,7,opt,name=area_id,json=areaId,proto3" json:"area_id"`
  123. // 一级分区id
  124. ParentAreaId int64 `protobuf:"varint,8,opt,name=parent_area_id,json=parentAreaId,proto3" json:"parent_area_id"`
  125. // 二级分区名称
  126. AreaName string `protobuf:"bytes,9,opt,name=area_name,json=areaName,proto3" json:"area_name"`
  127. // 一级分区名称
  128. ParentAreaName string `protobuf:"bytes,10,opt,name=parent_area_name,json=parentAreaName,proto3" json:"parent_area_name"`
  129. // 推荐规则 10000+rule_id
  130. RecType int64 `protobuf:"varint,11,opt,name=rec_type,json=recType,proto3" json:"rec_type"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. func (m *RoomItem) Reset() { *m = RoomItem{} }
  136. func (m *RoomItem) String() string { return proto.CompactTextString(m) }
  137. func (*RoomItem) ProtoMessage() {}
  138. func (*RoomItem) Descriptor() ([]byte, []int) {
  139. return fileDescriptor_api_1c1f9f8a1548f1df, []int{2}
  140. }
  141. func (m *RoomItem) XXX_Unmarshal(b []byte) error {
  142. return m.Unmarshal(b)
  143. }
  144. func (m *RoomItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  145. if deterministic {
  146. return xxx_messageInfo_RoomItem.Marshal(b, m, deterministic)
  147. } else {
  148. b = b[:cap(b)]
  149. n, err := m.MarshalTo(b)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return b[:n], nil
  154. }
  155. }
  156. func (dst *RoomItem) XXX_Merge(src proto.Message) {
  157. xxx_messageInfo_RoomItem.Merge(dst, src)
  158. }
  159. func (m *RoomItem) XXX_Size() int {
  160. return m.Size()
  161. }
  162. func (m *RoomItem) XXX_DiscardUnknown() {
  163. xxx_messageInfo_RoomItem.DiscardUnknown(m)
  164. }
  165. var xxx_messageInfo_RoomItem proto.InternalMessageInfo
  166. func init() {
  167. proto.RegisterType((*RecPoolReq)(nil), "live.xroomfeed.v1.RecPoolReq")
  168. proto.RegisterType((*RecPoolResp)(nil), "live.xroomfeed.v1.RecPoolResp")
  169. proto.RegisterMapType((map[int64]*RoomItem)(nil), "live.xroomfeed.v1.RecPoolResp.ListEntry")
  170. proto.RegisterType((*RoomItem)(nil), "live.xroomfeed.v1.RoomItem")
  171. }
  172. // Reference imports to suppress errors if they are not otherwise used.
  173. var _ context.Context
  174. var _ grpc.ClientConn
  175. // This is a compile-time assertion to ensure that this generated file
  176. // is compatible with the grpc package it is being compiled against.
  177. const _ = grpc.SupportPackageIsVersion4
  178. // RecPoolClient is the client API for RecPool service.
  179. //
  180. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  181. type RecPoolClient interface {
  182. // 根据模块位置获取投放列表 position=>RoomItem
  183. GetList(ctx context.Context, in *RecPoolReq, opts ...grpc.CallOption) (*RecPoolResp, error)
  184. }
  185. type recPoolClient struct {
  186. cc *grpc.ClientConn
  187. }
  188. func NewRecPoolClient(cc *grpc.ClientConn) RecPoolClient {
  189. return &recPoolClient{cc}
  190. }
  191. func (c *recPoolClient) GetList(ctx context.Context, in *RecPoolReq, opts ...grpc.CallOption) (*RecPoolResp, error) {
  192. out := new(RecPoolResp)
  193. err := c.cc.Invoke(ctx, "/live.xroomfeed.v1.RecPool/GetList", in, out, opts...)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return out, nil
  198. }
  199. // RecPoolServer is the server API for RecPool service.
  200. type RecPoolServer interface {
  201. // 根据模块位置获取投放列表 position=>RoomItem
  202. GetList(context.Context, *RecPoolReq) (*RecPoolResp, error)
  203. }
  204. func RegisterRecPoolServer(s *grpc.Server, srv RecPoolServer) {
  205. s.RegisterService(&_RecPool_serviceDesc, srv)
  206. }
  207. func _RecPool_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  208. in := new(RecPoolReq)
  209. if err := dec(in); err != nil {
  210. return nil, err
  211. }
  212. if interceptor == nil {
  213. return srv.(RecPoolServer).GetList(ctx, in)
  214. }
  215. info := &grpc.UnaryServerInfo{
  216. Server: srv,
  217. FullMethod: "/live.xroomfeed.v1.RecPool/GetList",
  218. }
  219. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  220. return srv.(RecPoolServer).GetList(ctx, req.(*RecPoolReq))
  221. }
  222. return interceptor(ctx, in, info, handler)
  223. }
  224. var _RecPool_serviceDesc = grpc.ServiceDesc{
  225. ServiceName: "live.xroomfeed.v1.RecPool",
  226. HandlerType: (*RecPoolServer)(nil),
  227. Methods: []grpc.MethodDesc{
  228. {
  229. MethodName: "GetList",
  230. Handler: _RecPool_GetList_Handler,
  231. },
  232. },
  233. Streams: []grpc.StreamDesc{},
  234. Metadata: "app/service/live/xroom-feed/api/api.proto",
  235. }
  236. func (m *RecPoolReq) Marshal() (dAtA []byte, err error) {
  237. size := m.Size()
  238. dAtA = make([]byte, size)
  239. n, err := m.MarshalTo(dAtA)
  240. if err != nil {
  241. return nil, err
  242. }
  243. return dAtA[:n], nil
  244. }
  245. func (m *RecPoolReq) MarshalTo(dAtA []byte) (int, error) {
  246. var i int
  247. _ = i
  248. var l int
  249. _ = l
  250. if m.ModuleType != 0 {
  251. dAtA[i] = 0x8
  252. i++
  253. i = encodeVarintApi(dAtA, i, uint64(m.ModuleType))
  254. }
  255. if m.PositionNum != 0 {
  256. dAtA[i] = 0x10
  257. i++
  258. i = encodeVarintApi(dAtA, i, uint64(m.PositionNum))
  259. }
  260. if m.PageNum != 0 {
  261. dAtA[i] = 0x18
  262. i++
  263. i = encodeVarintApi(dAtA, i, uint64(m.PageNum))
  264. }
  265. if len(m.ModuleExistRooms) > 0 {
  266. dAtA[i] = 0x22
  267. i++
  268. i = encodeVarintApi(dAtA, i, uint64(len(m.ModuleExistRooms)))
  269. i += copy(dAtA[i:], m.ModuleExistRooms)
  270. }
  271. if len(m.OtherExistRooms) > 0 {
  272. dAtA[i] = 0x2a
  273. i++
  274. i = encodeVarintApi(dAtA, i, uint64(len(m.OtherExistRooms)))
  275. i += copy(dAtA[i:], m.OtherExistRooms)
  276. }
  277. if len(m.From) > 0 {
  278. dAtA[i] = 0x32
  279. i++
  280. i = encodeVarintApi(dAtA, i, uint64(len(m.From)))
  281. i += copy(dAtA[i:], m.From)
  282. }
  283. if m.XXX_unrecognized != nil {
  284. i += copy(dAtA[i:], m.XXX_unrecognized)
  285. }
  286. return i, nil
  287. }
  288. func (m *RecPoolResp) Marshal() (dAtA []byte, err error) {
  289. size := m.Size()
  290. dAtA = make([]byte, size)
  291. n, err := m.MarshalTo(dAtA)
  292. if err != nil {
  293. return nil, err
  294. }
  295. return dAtA[:n], nil
  296. }
  297. func (m *RecPoolResp) MarshalTo(dAtA []byte) (int, error) {
  298. var i int
  299. _ = i
  300. var l int
  301. _ = l
  302. if len(m.List) > 0 {
  303. for k, _ := range m.List {
  304. dAtA[i] = 0xa
  305. i++
  306. v := m.List[k]
  307. msgSize := 0
  308. if v != nil {
  309. msgSize = v.Size()
  310. msgSize += 1 + sovApi(uint64(msgSize))
  311. }
  312. mapSize := 1 + sovApi(uint64(k)) + msgSize
  313. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  314. dAtA[i] = 0x8
  315. i++
  316. i = encodeVarintApi(dAtA, i, uint64(k))
  317. if v != nil {
  318. dAtA[i] = 0x12
  319. i++
  320. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  321. n1, err := v.MarshalTo(dAtA[i:])
  322. if err != nil {
  323. return 0, err
  324. }
  325. i += n1
  326. }
  327. }
  328. }
  329. if m.XXX_unrecognized != nil {
  330. i += copy(dAtA[i:], m.XXX_unrecognized)
  331. }
  332. return i, nil
  333. }
  334. func (m *RoomItem) Marshal() (dAtA []byte, err error) {
  335. size := m.Size()
  336. dAtA = make([]byte, size)
  337. n, err := m.MarshalTo(dAtA)
  338. if err != nil {
  339. return nil, err
  340. }
  341. return dAtA[:n], nil
  342. }
  343. func (m *RoomItem) MarshalTo(dAtA []byte) (int, error) {
  344. var i int
  345. _ = i
  346. var l int
  347. _ = l
  348. if m.RoomId != 0 {
  349. dAtA[i] = 0x8
  350. i++
  351. i = encodeVarintApi(dAtA, i, uint64(m.RoomId))
  352. }
  353. if m.Uid != 0 {
  354. dAtA[i] = 0x10
  355. i++
  356. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  357. }
  358. if len(m.Title) > 0 {
  359. dAtA[i] = 0x1a
  360. i++
  361. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  362. i += copy(dAtA[i:], m.Title)
  363. }
  364. if m.PopularityCount != 0 {
  365. dAtA[i] = 0x20
  366. i++
  367. i = encodeVarintApi(dAtA, i, uint64(m.PopularityCount))
  368. }
  369. if len(m.Keyframe) > 0 {
  370. dAtA[i] = 0x2a
  371. i++
  372. i = encodeVarintApi(dAtA, i, uint64(len(m.Keyframe)))
  373. i += copy(dAtA[i:], m.Keyframe)
  374. }
  375. if len(m.Cover) > 0 {
  376. dAtA[i] = 0x32
  377. i++
  378. i = encodeVarintApi(dAtA, i, uint64(len(m.Cover)))
  379. i += copy(dAtA[i:], m.Cover)
  380. }
  381. if m.AreaId != 0 {
  382. dAtA[i] = 0x38
  383. i++
  384. i = encodeVarintApi(dAtA, i, uint64(m.AreaId))
  385. }
  386. if m.ParentAreaId != 0 {
  387. dAtA[i] = 0x40
  388. i++
  389. i = encodeVarintApi(dAtA, i, uint64(m.ParentAreaId))
  390. }
  391. if len(m.AreaName) > 0 {
  392. dAtA[i] = 0x4a
  393. i++
  394. i = encodeVarintApi(dAtA, i, uint64(len(m.AreaName)))
  395. i += copy(dAtA[i:], m.AreaName)
  396. }
  397. if len(m.ParentAreaName) > 0 {
  398. dAtA[i] = 0x52
  399. i++
  400. i = encodeVarintApi(dAtA, i, uint64(len(m.ParentAreaName)))
  401. i += copy(dAtA[i:], m.ParentAreaName)
  402. }
  403. if m.RecType != 0 {
  404. dAtA[i] = 0x58
  405. i++
  406. i = encodeVarintApi(dAtA, i, uint64(m.RecType))
  407. }
  408. if m.XXX_unrecognized != nil {
  409. i += copy(dAtA[i:], m.XXX_unrecognized)
  410. }
  411. return i, nil
  412. }
  413. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  414. for v >= 1<<7 {
  415. dAtA[offset] = uint8(v&0x7f | 0x80)
  416. v >>= 7
  417. offset++
  418. }
  419. dAtA[offset] = uint8(v)
  420. return offset + 1
  421. }
  422. func (m *RecPoolReq) Size() (n int) {
  423. if m == nil {
  424. return 0
  425. }
  426. var l int
  427. _ = l
  428. if m.ModuleType != 0 {
  429. n += 1 + sovApi(uint64(m.ModuleType))
  430. }
  431. if m.PositionNum != 0 {
  432. n += 1 + sovApi(uint64(m.PositionNum))
  433. }
  434. if m.PageNum != 0 {
  435. n += 1 + sovApi(uint64(m.PageNum))
  436. }
  437. l = len(m.ModuleExistRooms)
  438. if l > 0 {
  439. n += 1 + l + sovApi(uint64(l))
  440. }
  441. l = len(m.OtherExistRooms)
  442. if l > 0 {
  443. n += 1 + l + sovApi(uint64(l))
  444. }
  445. l = len(m.From)
  446. if l > 0 {
  447. n += 1 + l + sovApi(uint64(l))
  448. }
  449. if m.XXX_unrecognized != nil {
  450. n += len(m.XXX_unrecognized)
  451. }
  452. return n
  453. }
  454. func (m *RecPoolResp) Size() (n int) {
  455. if m == nil {
  456. return 0
  457. }
  458. var l int
  459. _ = l
  460. if len(m.List) > 0 {
  461. for k, v := range m.List {
  462. _ = k
  463. _ = v
  464. l = 0
  465. if v != nil {
  466. l = v.Size()
  467. l += 1 + sovApi(uint64(l))
  468. }
  469. mapEntrySize := 1 + sovApi(uint64(k)) + l
  470. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  471. }
  472. }
  473. if m.XXX_unrecognized != nil {
  474. n += len(m.XXX_unrecognized)
  475. }
  476. return n
  477. }
  478. func (m *RoomItem) Size() (n int) {
  479. if m == nil {
  480. return 0
  481. }
  482. var l int
  483. _ = l
  484. if m.RoomId != 0 {
  485. n += 1 + sovApi(uint64(m.RoomId))
  486. }
  487. if m.Uid != 0 {
  488. n += 1 + sovApi(uint64(m.Uid))
  489. }
  490. l = len(m.Title)
  491. if l > 0 {
  492. n += 1 + l + sovApi(uint64(l))
  493. }
  494. if m.PopularityCount != 0 {
  495. n += 1 + sovApi(uint64(m.PopularityCount))
  496. }
  497. l = len(m.Keyframe)
  498. if l > 0 {
  499. n += 1 + l + sovApi(uint64(l))
  500. }
  501. l = len(m.Cover)
  502. if l > 0 {
  503. n += 1 + l + sovApi(uint64(l))
  504. }
  505. if m.AreaId != 0 {
  506. n += 1 + sovApi(uint64(m.AreaId))
  507. }
  508. if m.ParentAreaId != 0 {
  509. n += 1 + sovApi(uint64(m.ParentAreaId))
  510. }
  511. l = len(m.AreaName)
  512. if l > 0 {
  513. n += 1 + l + sovApi(uint64(l))
  514. }
  515. l = len(m.ParentAreaName)
  516. if l > 0 {
  517. n += 1 + l + sovApi(uint64(l))
  518. }
  519. if m.RecType != 0 {
  520. n += 1 + sovApi(uint64(m.RecType))
  521. }
  522. if m.XXX_unrecognized != nil {
  523. n += len(m.XXX_unrecognized)
  524. }
  525. return n
  526. }
  527. func sovApi(x uint64) (n int) {
  528. for {
  529. n++
  530. x >>= 7
  531. if x == 0 {
  532. break
  533. }
  534. }
  535. return n
  536. }
  537. func sozApi(x uint64) (n int) {
  538. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  539. }
  540. func (m *RecPoolReq) Unmarshal(dAtA []byte) error {
  541. l := len(dAtA)
  542. iNdEx := 0
  543. for iNdEx < l {
  544. preIndex := iNdEx
  545. var wire uint64
  546. for shift := uint(0); ; shift += 7 {
  547. if shift >= 64 {
  548. return ErrIntOverflowApi
  549. }
  550. if iNdEx >= l {
  551. return io.ErrUnexpectedEOF
  552. }
  553. b := dAtA[iNdEx]
  554. iNdEx++
  555. wire |= (uint64(b) & 0x7F) << shift
  556. if b < 0x80 {
  557. break
  558. }
  559. }
  560. fieldNum := int32(wire >> 3)
  561. wireType := int(wire & 0x7)
  562. if wireType == 4 {
  563. return fmt.Errorf("proto: RecPoolReq: wiretype end group for non-group")
  564. }
  565. if fieldNum <= 0 {
  566. return fmt.Errorf("proto: RecPoolReq: illegal tag %d (wire type %d)", fieldNum, wire)
  567. }
  568. switch fieldNum {
  569. case 1:
  570. if wireType != 0 {
  571. return fmt.Errorf("proto: wrong wireType = %d for field ModuleType", wireType)
  572. }
  573. m.ModuleType = 0
  574. for shift := uint(0); ; shift += 7 {
  575. if shift >= 64 {
  576. return ErrIntOverflowApi
  577. }
  578. if iNdEx >= l {
  579. return io.ErrUnexpectedEOF
  580. }
  581. b := dAtA[iNdEx]
  582. iNdEx++
  583. m.ModuleType |= (int64(b) & 0x7F) << shift
  584. if b < 0x80 {
  585. break
  586. }
  587. }
  588. case 2:
  589. if wireType != 0 {
  590. return fmt.Errorf("proto: wrong wireType = %d for field PositionNum", wireType)
  591. }
  592. m.PositionNum = 0
  593. for shift := uint(0); ; shift += 7 {
  594. if shift >= 64 {
  595. return ErrIntOverflowApi
  596. }
  597. if iNdEx >= l {
  598. return io.ErrUnexpectedEOF
  599. }
  600. b := dAtA[iNdEx]
  601. iNdEx++
  602. m.PositionNum |= (int64(b) & 0x7F) << shift
  603. if b < 0x80 {
  604. break
  605. }
  606. }
  607. case 3:
  608. if wireType != 0 {
  609. return fmt.Errorf("proto: wrong wireType = %d for field PageNum", wireType)
  610. }
  611. m.PageNum = 0
  612. for shift := uint(0); ; shift += 7 {
  613. if shift >= 64 {
  614. return ErrIntOverflowApi
  615. }
  616. if iNdEx >= l {
  617. return io.ErrUnexpectedEOF
  618. }
  619. b := dAtA[iNdEx]
  620. iNdEx++
  621. m.PageNum |= (int64(b) & 0x7F) << shift
  622. if b < 0x80 {
  623. break
  624. }
  625. }
  626. case 4:
  627. if wireType != 2 {
  628. return fmt.Errorf("proto: wrong wireType = %d for field ModuleExistRooms", wireType)
  629. }
  630. var stringLen uint64
  631. for shift := uint(0); ; shift += 7 {
  632. if shift >= 64 {
  633. return ErrIntOverflowApi
  634. }
  635. if iNdEx >= l {
  636. return io.ErrUnexpectedEOF
  637. }
  638. b := dAtA[iNdEx]
  639. iNdEx++
  640. stringLen |= (uint64(b) & 0x7F) << shift
  641. if b < 0x80 {
  642. break
  643. }
  644. }
  645. intStringLen := int(stringLen)
  646. if intStringLen < 0 {
  647. return ErrInvalidLengthApi
  648. }
  649. postIndex := iNdEx + intStringLen
  650. if postIndex > l {
  651. return io.ErrUnexpectedEOF
  652. }
  653. m.ModuleExistRooms = string(dAtA[iNdEx:postIndex])
  654. iNdEx = postIndex
  655. case 5:
  656. if wireType != 2 {
  657. return fmt.Errorf("proto: wrong wireType = %d for field OtherExistRooms", wireType)
  658. }
  659. var stringLen uint64
  660. for shift := uint(0); ; shift += 7 {
  661. if shift >= 64 {
  662. return ErrIntOverflowApi
  663. }
  664. if iNdEx >= l {
  665. return io.ErrUnexpectedEOF
  666. }
  667. b := dAtA[iNdEx]
  668. iNdEx++
  669. stringLen |= (uint64(b) & 0x7F) << shift
  670. if b < 0x80 {
  671. break
  672. }
  673. }
  674. intStringLen := int(stringLen)
  675. if intStringLen < 0 {
  676. return ErrInvalidLengthApi
  677. }
  678. postIndex := iNdEx + intStringLen
  679. if postIndex > l {
  680. return io.ErrUnexpectedEOF
  681. }
  682. m.OtherExistRooms = string(dAtA[iNdEx:postIndex])
  683. iNdEx = postIndex
  684. case 6:
  685. if wireType != 2 {
  686. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  687. }
  688. var stringLen uint64
  689. for shift := uint(0); ; shift += 7 {
  690. if shift >= 64 {
  691. return ErrIntOverflowApi
  692. }
  693. if iNdEx >= l {
  694. return io.ErrUnexpectedEOF
  695. }
  696. b := dAtA[iNdEx]
  697. iNdEx++
  698. stringLen |= (uint64(b) & 0x7F) << shift
  699. if b < 0x80 {
  700. break
  701. }
  702. }
  703. intStringLen := int(stringLen)
  704. if intStringLen < 0 {
  705. return ErrInvalidLengthApi
  706. }
  707. postIndex := iNdEx + intStringLen
  708. if postIndex > l {
  709. return io.ErrUnexpectedEOF
  710. }
  711. m.From = string(dAtA[iNdEx:postIndex])
  712. iNdEx = postIndex
  713. default:
  714. iNdEx = preIndex
  715. skippy, err := skipApi(dAtA[iNdEx:])
  716. if err != nil {
  717. return err
  718. }
  719. if skippy < 0 {
  720. return ErrInvalidLengthApi
  721. }
  722. if (iNdEx + skippy) > l {
  723. return io.ErrUnexpectedEOF
  724. }
  725. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  726. iNdEx += skippy
  727. }
  728. }
  729. if iNdEx > l {
  730. return io.ErrUnexpectedEOF
  731. }
  732. return nil
  733. }
  734. func (m *RecPoolResp) Unmarshal(dAtA []byte) error {
  735. l := len(dAtA)
  736. iNdEx := 0
  737. for iNdEx < l {
  738. preIndex := iNdEx
  739. var wire uint64
  740. for shift := uint(0); ; shift += 7 {
  741. if shift >= 64 {
  742. return ErrIntOverflowApi
  743. }
  744. if iNdEx >= l {
  745. return io.ErrUnexpectedEOF
  746. }
  747. b := dAtA[iNdEx]
  748. iNdEx++
  749. wire |= (uint64(b) & 0x7F) << shift
  750. if b < 0x80 {
  751. break
  752. }
  753. }
  754. fieldNum := int32(wire >> 3)
  755. wireType := int(wire & 0x7)
  756. if wireType == 4 {
  757. return fmt.Errorf("proto: RecPoolResp: wiretype end group for non-group")
  758. }
  759. if fieldNum <= 0 {
  760. return fmt.Errorf("proto: RecPoolResp: illegal tag %d (wire type %d)", fieldNum, wire)
  761. }
  762. switch fieldNum {
  763. case 1:
  764. if wireType != 2 {
  765. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  766. }
  767. var msglen int
  768. for shift := uint(0); ; shift += 7 {
  769. if shift >= 64 {
  770. return ErrIntOverflowApi
  771. }
  772. if iNdEx >= l {
  773. return io.ErrUnexpectedEOF
  774. }
  775. b := dAtA[iNdEx]
  776. iNdEx++
  777. msglen |= (int(b) & 0x7F) << shift
  778. if b < 0x80 {
  779. break
  780. }
  781. }
  782. if msglen < 0 {
  783. return ErrInvalidLengthApi
  784. }
  785. postIndex := iNdEx + msglen
  786. if postIndex > l {
  787. return io.ErrUnexpectedEOF
  788. }
  789. if m.List == nil {
  790. m.List = make(map[int64]*RoomItem)
  791. }
  792. var mapkey int64
  793. var mapvalue *RoomItem
  794. for iNdEx < postIndex {
  795. entryPreIndex := iNdEx
  796. var wire uint64
  797. for shift := uint(0); ; shift += 7 {
  798. if shift >= 64 {
  799. return ErrIntOverflowApi
  800. }
  801. if iNdEx >= l {
  802. return io.ErrUnexpectedEOF
  803. }
  804. b := dAtA[iNdEx]
  805. iNdEx++
  806. wire |= (uint64(b) & 0x7F) << shift
  807. if b < 0x80 {
  808. break
  809. }
  810. }
  811. fieldNum := int32(wire >> 3)
  812. if fieldNum == 1 {
  813. for shift := uint(0); ; shift += 7 {
  814. if shift >= 64 {
  815. return ErrIntOverflowApi
  816. }
  817. if iNdEx >= l {
  818. return io.ErrUnexpectedEOF
  819. }
  820. b := dAtA[iNdEx]
  821. iNdEx++
  822. mapkey |= (int64(b) & 0x7F) << shift
  823. if b < 0x80 {
  824. break
  825. }
  826. }
  827. } else if fieldNum == 2 {
  828. var mapmsglen int
  829. for shift := uint(0); ; shift += 7 {
  830. if shift >= 64 {
  831. return ErrIntOverflowApi
  832. }
  833. if iNdEx >= l {
  834. return io.ErrUnexpectedEOF
  835. }
  836. b := dAtA[iNdEx]
  837. iNdEx++
  838. mapmsglen |= (int(b) & 0x7F) << shift
  839. if b < 0x80 {
  840. break
  841. }
  842. }
  843. if mapmsglen < 0 {
  844. return ErrInvalidLengthApi
  845. }
  846. postmsgIndex := iNdEx + mapmsglen
  847. if mapmsglen < 0 {
  848. return ErrInvalidLengthApi
  849. }
  850. if postmsgIndex > l {
  851. return io.ErrUnexpectedEOF
  852. }
  853. mapvalue = &RoomItem{}
  854. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  855. return err
  856. }
  857. iNdEx = postmsgIndex
  858. } else {
  859. iNdEx = entryPreIndex
  860. skippy, err := skipApi(dAtA[iNdEx:])
  861. if err != nil {
  862. return err
  863. }
  864. if skippy < 0 {
  865. return ErrInvalidLengthApi
  866. }
  867. if (iNdEx + skippy) > postIndex {
  868. return io.ErrUnexpectedEOF
  869. }
  870. iNdEx += skippy
  871. }
  872. }
  873. m.List[mapkey] = mapvalue
  874. iNdEx = postIndex
  875. default:
  876. iNdEx = preIndex
  877. skippy, err := skipApi(dAtA[iNdEx:])
  878. if err != nil {
  879. return err
  880. }
  881. if skippy < 0 {
  882. return ErrInvalidLengthApi
  883. }
  884. if (iNdEx + skippy) > l {
  885. return io.ErrUnexpectedEOF
  886. }
  887. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  888. iNdEx += skippy
  889. }
  890. }
  891. if iNdEx > l {
  892. return io.ErrUnexpectedEOF
  893. }
  894. return nil
  895. }
  896. func (m *RoomItem) Unmarshal(dAtA []byte) error {
  897. l := len(dAtA)
  898. iNdEx := 0
  899. for iNdEx < l {
  900. preIndex := iNdEx
  901. var wire uint64
  902. for shift := uint(0); ; shift += 7 {
  903. if shift >= 64 {
  904. return ErrIntOverflowApi
  905. }
  906. if iNdEx >= l {
  907. return io.ErrUnexpectedEOF
  908. }
  909. b := dAtA[iNdEx]
  910. iNdEx++
  911. wire |= (uint64(b) & 0x7F) << shift
  912. if b < 0x80 {
  913. break
  914. }
  915. }
  916. fieldNum := int32(wire >> 3)
  917. wireType := int(wire & 0x7)
  918. if wireType == 4 {
  919. return fmt.Errorf("proto: RoomItem: wiretype end group for non-group")
  920. }
  921. if fieldNum <= 0 {
  922. return fmt.Errorf("proto: RoomItem: illegal tag %d (wire type %d)", fieldNum, wire)
  923. }
  924. switch fieldNum {
  925. case 1:
  926. if wireType != 0 {
  927. return fmt.Errorf("proto: wrong wireType = %d for field RoomId", wireType)
  928. }
  929. m.RoomId = 0
  930. for shift := uint(0); ; shift += 7 {
  931. if shift >= 64 {
  932. return ErrIntOverflowApi
  933. }
  934. if iNdEx >= l {
  935. return io.ErrUnexpectedEOF
  936. }
  937. b := dAtA[iNdEx]
  938. iNdEx++
  939. m.RoomId |= (int64(b) & 0x7F) << shift
  940. if b < 0x80 {
  941. break
  942. }
  943. }
  944. case 2:
  945. if wireType != 0 {
  946. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  947. }
  948. m.Uid = 0
  949. for shift := uint(0); ; shift += 7 {
  950. if shift >= 64 {
  951. return ErrIntOverflowApi
  952. }
  953. if iNdEx >= l {
  954. return io.ErrUnexpectedEOF
  955. }
  956. b := dAtA[iNdEx]
  957. iNdEx++
  958. m.Uid |= (int64(b) & 0x7F) << shift
  959. if b < 0x80 {
  960. break
  961. }
  962. }
  963. case 3:
  964. if wireType != 2 {
  965. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  966. }
  967. var stringLen uint64
  968. for shift := uint(0); ; shift += 7 {
  969. if shift >= 64 {
  970. return ErrIntOverflowApi
  971. }
  972. if iNdEx >= l {
  973. return io.ErrUnexpectedEOF
  974. }
  975. b := dAtA[iNdEx]
  976. iNdEx++
  977. stringLen |= (uint64(b) & 0x7F) << shift
  978. if b < 0x80 {
  979. break
  980. }
  981. }
  982. intStringLen := int(stringLen)
  983. if intStringLen < 0 {
  984. return ErrInvalidLengthApi
  985. }
  986. postIndex := iNdEx + intStringLen
  987. if postIndex > l {
  988. return io.ErrUnexpectedEOF
  989. }
  990. m.Title = string(dAtA[iNdEx:postIndex])
  991. iNdEx = postIndex
  992. case 4:
  993. if wireType != 0 {
  994. return fmt.Errorf("proto: wrong wireType = %d for field PopularityCount", wireType)
  995. }
  996. m.PopularityCount = 0
  997. for shift := uint(0); ; shift += 7 {
  998. if shift >= 64 {
  999. return ErrIntOverflowApi
  1000. }
  1001. if iNdEx >= l {
  1002. return io.ErrUnexpectedEOF
  1003. }
  1004. b := dAtA[iNdEx]
  1005. iNdEx++
  1006. m.PopularityCount |= (int64(b) & 0x7F) << shift
  1007. if b < 0x80 {
  1008. break
  1009. }
  1010. }
  1011. case 5:
  1012. if wireType != 2 {
  1013. return fmt.Errorf("proto: wrong wireType = %d for field Keyframe", wireType)
  1014. }
  1015. var stringLen uint64
  1016. for shift := uint(0); ; shift += 7 {
  1017. if shift >= 64 {
  1018. return ErrIntOverflowApi
  1019. }
  1020. if iNdEx >= l {
  1021. return io.ErrUnexpectedEOF
  1022. }
  1023. b := dAtA[iNdEx]
  1024. iNdEx++
  1025. stringLen |= (uint64(b) & 0x7F) << shift
  1026. if b < 0x80 {
  1027. break
  1028. }
  1029. }
  1030. intStringLen := int(stringLen)
  1031. if intStringLen < 0 {
  1032. return ErrInvalidLengthApi
  1033. }
  1034. postIndex := iNdEx + intStringLen
  1035. if postIndex > l {
  1036. return io.ErrUnexpectedEOF
  1037. }
  1038. m.Keyframe = string(dAtA[iNdEx:postIndex])
  1039. iNdEx = postIndex
  1040. case 6:
  1041. if wireType != 2 {
  1042. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  1043. }
  1044. var stringLen uint64
  1045. for shift := uint(0); ; shift += 7 {
  1046. if shift >= 64 {
  1047. return ErrIntOverflowApi
  1048. }
  1049. if iNdEx >= l {
  1050. return io.ErrUnexpectedEOF
  1051. }
  1052. b := dAtA[iNdEx]
  1053. iNdEx++
  1054. stringLen |= (uint64(b) & 0x7F) << shift
  1055. if b < 0x80 {
  1056. break
  1057. }
  1058. }
  1059. intStringLen := int(stringLen)
  1060. if intStringLen < 0 {
  1061. return ErrInvalidLengthApi
  1062. }
  1063. postIndex := iNdEx + intStringLen
  1064. if postIndex > l {
  1065. return io.ErrUnexpectedEOF
  1066. }
  1067. m.Cover = string(dAtA[iNdEx:postIndex])
  1068. iNdEx = postIndex
  1069. case 7:
  1070. if wireType != 0 {
  1071. return fmt.Errorf("proto: wrong wireType = %d for field AreaId", wireType)
  1072. }
  1073. m.AreaId = 0
  1074. for shift := uint(0); ; shift += 7 {
  1075. if shift >= 64 {
  1076. return ErrIntOverflowApi
  1077. }
  1078. if iNdEx >= l {
  1079. return io.ErrUnexpectedEOF
  1080. }
  1081. b := dAtA[iNdEx]
  1082. iNdEx++
  1083. m.AreaId |= (int64(b) & 0x7F) << shift
  1084. if b < 0x80 {
  1085. break
  1086. }
  1087. }
  1088. case 8:
  1089. if wireType != 0 {
  1090. return fmt.Errorf("proto: wrong wireType = %d for field ParentAreaId", wireType)
  1091. }
  1092. m.ParentAreaId = 0
  1093. for shift := uint(0); ; shift += 7 {
  1094. if shift >= 64 {
  1095. return ErrIntOverflowApi
  1096. }
  1097. if iNdEx >= l {
  1098. return io.ErrUnexpectedEOF
  1099. }
  1100. b := dAtA[iNdEx]
  1101. iNdEx++
  1102. m.ParentAreaId |= (int64(b) & 0x7F) << shift
  1103. if b < 0x80 {
  1104. break
  1105. }
  1106. }
  1107. case 9:
  1108. if wireType != 2 {
  1109. return fmt.Errorf("proto: wrong wireType = %d for field AreaName", wireType)
  1110. }
  1111. var stringLen uint64
  1112. for shift := uint(0); ; shift += 7 {
  1113. if shift >= 64 {
  1114. return ErrIntOverflowApi
  1115. }
  1116. if iNdEx >= l {
  1117. return io.ErrUnexpectedEOF
  1118. }
  1119. b := dAtA[iNdEx]
  1120. iNdEx++
  1121. stringLen |= (uint64(b) & 0x7F) << shift
  1122. if b < 0x80 {
  1123. break
  1124. }
  1125. }
  1126. intStringLen := int(stringLen)
  1127. if intStringLen < 0 {
  1128. return ErrInvalidLengthApi
  1129. }
  1130. postIndex := iNdEx + intStringLen
  1131. if postIndex > l {
  1132. return io.ErrUnexpectedEOF
  1133. }
  1134. m.AreaName = string(dAtA[iNdEx:postIndex])
  1135. iNdEx = postIndex
  1136. case 10:
  1137. if wireType != 2 {
  1138. return fmt.Errorf("proto: wrong wireType = %d for field ParentAreaName", wireType)
  1139. }
  1140. var stringLen uint64
  1141. for shift := uint(0); ; shift += 7 {
  1142. if shift >= 64 {
  1143. return ErrIntOverflowApi
  1144. }
  1145. if iNdEx >= l {
  1146. return io.ErrUnexpectedEOF
  1147. }
  1148. b := dAtA[iNdEx]
  1149. iNdEx++
  1150. stringLen |= (uint64(b) & 0x7F) << shift
  1151. if b < 0x80 {
  1152. break
  1153. }
  1154. }
  1155. intStringLen := int(stringLen)
  1156. if intStringLen < 0 {
  1157. return ErrInvalidLengthApi
  1158. }
  1159. postIndex := iNdEx + intStringLen
  1160. if postIndex > l {
  1161. return io.ErrUnexpectedEOF
  1162. }
  1163. m.ParentAreaName = string(dAtA[iNdEx:postIndex])
  1164. iNdEx = postIndex
  1165. case 11:
  1166. if wireType != 0 {
  1167. return fmt.Errorf("proto: wrong wireType = %d for field RecType", wireType)
  1168. }
  1169. m.RecType = 0
  1170. for shift := uint(0); ; shift += 7 {
  1171. if shift >= 64 {
  1172. return ErrIntOverflowApi
  1173. }
  1174. if iNdEx >= l {
  1175. return io.ErrUnexpectedEOF
  1176. }
  1177. b := dAtA[iNdEx]
  1178. iNdEx++
  1179. m.RecType |= (int64(b) & 0x7F) << shift
  1180. if b < 0x80 {
  1181. break
  1182. }
  1183. }
  1184. default:
  1185. iNdEx = preIndex
  1186. skippy, err := skipApi(dAtA[iNdEx:])
  1187. if err != nil {
  1188. return err
  1189. }
  1190. if skippy < 0 {
  1191. return ErrInvalidLengthApi
  1192. }
  1193. if (iNdEx + skippy) > l {
  1194. return io.ErrUnexpectedEOF
  1195. }
  1196. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1197. iNdEx += skippy
  1198. }
  1199. }
  1200. if iNdEx > l {
  1201. return io.ErrUnexpectedEOF
  1202. }
  1203. return nil
  1204. }
  1205. func skipApi(dAtA []byte) (n int, err error) {
  1206. l := len(dAtA)
  1207. iNdEx := 0
  1208. for iNdEx < l {
  1209. var wire uint64
  1210. for shift := uint(0); ; shift += 7 {
  1211. if shift >= 64 {
  1212. return 0, ErrIntOverflowApi
  1213. }
  1214. if iNdEx >= l {
  1215. return 0, io.ErrUnexpectedEOF
  1216. }
  1217. b := dAtA[iNdEx]
  1218. iNdEx++
  1219. wire |= (uint64(b) & 0x7F) << shift
  1220. if b < 0x80 {
  1221. break
  1222. }
  1223. }
  1224. wireType := int(wire & 0x7)
  1225. switch wireType {
  1226. case 0:
  1227. for shift := uint(0); ; shift += 7 {
  1228. if shift >= 64 {
  1229. return 0, ErrIntOverflowApi
  1230. }
  1231. if iNdEx >= l {
  1232. return 0, io.ErrUnexpectedEOF
  1233. }
  1234. iNdEx++
  1235. if dAtA[iNdEx-1] < 0x80 {
  1236. break
  1237. }
  1238. }
  1239. return iNdEx, nil
  1240. case 1:
  1241. iNdEx += 8
  1242. return iNdEx, nil
  1243. case 2:
  1244. var length int
  1245. for shift := uint(0); ; shift += 7 {
  1246. if shift >= 64 {
  1247. return 0, ErrIntOverflowApi
  1248. }
  1249. if iNdEx >= l {
  1250. return 0, io.ErrUnexpectedEOF
  1251. }
  1252. b := dAtA[iNdEx]
  1253. iNdEx++
  1254. length |= (int(b) & 0x7F) << shift
  1255. if b < 0x80 {
  1256. break
  1257. }
  1258. }
  1259. iNdEx += length
  1260. if length < 0 {
  1261. return 0, ErrInvalidLengthApi
  1262. }
  1263. return iNdEx, nil
  1264. case 3:
  1265. for {
  1266. var innerWire uint64
  1267. var start int = iNdEx
  1268. for shift := uint(0); ; shift += 7 {
  1269. if shift >= 64 {
  1270. return 0, ErrIntOverflowApi
  1271. }
  1272. if iNdEx >= l {
  1273. return 0, io.ErrUnexpectedEOF
  1274. }
  1275. b := dAtA[iNdEx]
  1276. iNdEx++
  1277. innerWire |= (uint64(b) & 0x7F) << shift
  1278. if b < 0x80 {
  1279. break
  1280. }
  1281. }
  1282. innerWireType := int(innerWire & 0x7)
  1283. if innerWireType == 4 {
  1284. break
  1285. }
  1286. next, err := skipApi(dAtA[start:])
  1287. if err != nil {
  1288. return 0, err
  1289. }
  1290. iNdEx = start + next
  1291. }
  1292. return iNdEx, nil
  1293. case 4:
  1294. return iNdEx, nil
  1295. case 5:
  1296. iNdEx += 4
  1297. return iNdEx, nil
  1298. default:
  1299. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1300. }
  1301. }
  1302. panic("unreachable")
  1303. }
  1304. var (
  1305. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1306. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1307. )
  1308. func init() {
  1309. proto.RegisterFile("app/service/live/xroom-feed/api/api.proto", fileDescriptor_api_1c1f9f8a1548f1df)
  1310. }
  1311. var fileDescriptor_api_1c1f9f8a1548f1df = []byte{
  1312. // 703 bytes of a gzipped FileDescriptorProto
  1313. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdd, 0x4e, 0xdb, 0x3c,
  1314. 0x18, 0xfe, 0x42, 0xa0, 0x3f, 0x0e, 0x1f, 0x2d, 0xfe, 0xbe, 0x49, 0x85, 0x8d, 0xba, 0xca, 0xa6,
  1315. 0xd1, 0x31, 0x91, 0x0a, 0x76, 0x82, 0x38, 0xd8, 0xb4, 0x4e, 0x6c, 0x20, 0x26, 0x34, 0x79, 0x1c,
  1316. 0xed, 0xa4, 0x0a, 0x8d, 0x5b, 0x2c, 0x92, 0x3a, 0x38, 0x4e, 0x45, 0x2f, 0x64, 0x57, 0xb1, 0x1b,
  1317. 0xe1, 0x70, 0x57, 0x60, 0x6d, 0x1c, 0x46, 0xda, 0x49, 0xaf, 0x60, 0xb2, 0x9d, 0xfe, 0xf0, 0x23,
  1318. 0x0e, 0x9a, 0xbc, 0x7e, 0x9e, 0xe7, 0x7d, 0xf2, 0xda, 0xef, 0xeb, 0x82, 0x57, 0x7e, 0x1c, 0xb7,
  1319. 0x12, 0xc2, 0x87, 0xb4, 0x4b, 0x5a, 0x21, 0x1d, 0x92, 0xd6, 0x15, 0x67, 0x2c, 0xda, 0xee, 0x11,
  1320. 0x12, 0xb4, 0xfc, 0x98, 0xaa, 0x9f, 0x17, 0x73, 0x26, 0x18, 0x5c, 0x55, 0xb4, 0xa7, 0x69, 0xc5,
  1321. 0x7a, 0xc3, 0x9d, 0xf5, 0xed, 0x3e, 0x15, 0xe7, 0xe9, 0x99, 0xd7, 0x65, 0x51, 0xab, 0xcf, 0xfa,
  1322. 0xac, 0xa5, 0x95, 0x67, 0x69, 0x4f, 0xaf, 0xf4, 0x42, 0x47, 0xc6, 0xc1, 0xfd, 0x6e, 0x03, 0x80,
  1323. 0x49, 0xf7, 0x0b, 0x63, 0x21, 0x26, 0x97, 0xf0, 0x18, 0x38, 0x11, 0x0b, 0xd2, 0x90, 0x74, 0xc4,
  1324. 0x28, 0x26, 0x35, 0xab, 0x61, 0x35, 0xed, 0xf6, 0xd6, 0x58, 0xa2, 0x97, 0x3d, 0xc6, 0xa3, 0x7d,
  1325. 0x77, 0x8e, 0x74, 0x1b, 0x43, 0x3f, 0xa4, 0x81, 0x2f, 0xc8, 0xbe, 0xcb, 0xc9, 0x65, 0x4a, 0x39,
  1326. 0x09, 0x5c, 0x0c, 0x8c, 0xe2, 0x74, 0x14, 0x13, 0x78, 0x02, 0x96, 0x63, 0x96, 0x50, 0x41, 0xd9,
  1327. 0xa0, 0x33, 0x48, 0xa3, 0xda, 0x82, 0x76, 0x7b, 0x3d, 0x96, 0x68, 0xd3, 0xb8, 0xcd, 0xb3, 0x0f,
  1328. 0xdb, 0x39, 0x13, 0xc9, 0x49, 0x1a, 0x41, 0x0f, 0x94, 0x62, 0xbf, 0x4f, 0xb4, 0x97, 0xad, 0xbd,
  1329. 0xfe, 0x1b, 0x4b, 0x54, 0xc9, 0xbd, 0x72, 0xc6, 0xc5, 0x45, 0x15, 0x2a, 0xfd, 0x31, 0x80, 0x79,
  1330. 0xbd, 0xe4, 0x8a, 0x26, 0xa2, 0xa3, 0x8e, 0x29, 0xa9, 0x2d, 0x36, 0xac, 0x66, 0xb9, 0xbd, 0x31,
  1331. 0x96, 0x68, 0xed, 0xd6, 0x9e, 0xe6, 0x34, 0x2e, 0xae, 0x1a, 0xf0, 0x40, 0x61, 0x58, 0x41, 0xf0,
  1332. 0x10, 0xac, 0x32, 0x71, 0x4e, 0xf8, 0x2d, 0xaf, 0x25, 0xed, 0xf5, 0x6c, 0x2c, 0x51, 0xcd, 0x78,
  1333. 0xdd, 0x93, 0xb8, 0xb8, 0xa2, 0xb1, 0x39, 0xa7, 0xe7, 0x60, 0xb1, 0xc7, 0x59, 0x54, 0x2b, 0xe8,
  1334. 0xe4, 0xca, 0x58, 0x22, 0xc7, 0x24, 0x2b, 0xd4, 0xc5, 0x9a, 0x74, 0x7f, 0x58, 0xc0, 0x99, 0xf6,
  1335. 0x25, 0x89, 0xe1, 0x47, 0xb0, 0x18, 0xd2, 0x44, 0xd4, 0xac, 0x86, 0xdd, 0x74, 0x76, 0x9b, 0xde,
  1336. 0xbd, 0xc6, 0x7b, 0x73, 0x6a, 0xef, 0x33, 0x4d, 0xc4, 0xc1, 0x40, 0xf0, 0x51, 0xbb, 0x94, 0x49,
  1337. 0xa4, 0x33, 0xb1, 0x7e, 0xae, 0x9f, 0x82, 0xf2, 0x94, 0x84, 0x55, 0x60, 0x5f, 0x90, 0x91, 0xe9,
  1338. 0x32, 0x56, 0x21, 0xdc, 0x01, 0x4b, 0x43, 0x3f, 0x4c, 0x89, 0xee, 0x95, 0xb3, 0xfb, 0xf4, 0xa1,
  1339. 0xef, 0x30, 0x16, 0x1d, 0x09, 0x12, 0x61, 0xa3, 0xdc, 0x5f, 0xd8, 0xb3, 0xdc, 0x3f, 0x36, 0x28,
  1340. 0x4d, 0x70, 0xf8, 0x02, 0x14, 0x95, 0xbe, 0x43, 0x83, 0x7c, 0x7e, 0x9c, 0x4c, 0xa2, 0x09, 0x84,
  1341. 0x0b, 0x2a, 0x38, 0x0a, 0xe0, 0x1a, 0xb0, 0x53, 0x1a, 0xe4, 0x33, 0x51, 0xcc, 0x24, 0x52, 0x4b,
  1342. 0xac, 0x1e, 0x10, 0x81, 0x25, 0x41, 0x45, 0x48, 0x74, 0x93, 0xcb, 0xed, 0x72, 0x26, 0x91, 0x01,
  1343. 0xb0, 0x79, 0xc1, 0x77, 0xa0, 0x1a, 0xb3, 0x38, 0x0d, 0x7d, 0x4e, 0xc5, 0xa8, 0xd3, 0x65, 0xe9,
  1344. 0x40, 0xe8, 0xb6, 0xda, 0xed, 0xff, 0x33, 0x89, 0xee, 0x71, 0xb8, 0x32, 0x43, 0x3e, 0x28, 0x00,
  1345. 0x36, 0x41, 0xe9, 0x82, 0x8c, 0x7a, 0xdc, 0x8f, 0x48, 0xde, 0xc3, 0xe5, 0x4c, 0xa2, 0x29, 0x86,
  1346. 0xa7, 0x91, 0xaa, 0xa5, 0xcb, 0x86, 0x84, 0xe7, 0xdd, 0xd2, 0xb5, 0x68, 0x00, 0x9b, 0x97, 0xda,
  1347. 0xad, 0xcf, 0x89, 0xaf, 0x76, 0x5b, 0x9c, 0xed, 0x36, 0x87, 0x70, 0x41, 0x05, 0x47, 0x01, 0xdc,
  1348. 0x03, 0x2b, 0xb1, 0xcf, 0xc9, 0x40, 0x74, 0x26, 0xe2, 0x92, 0x16, 0xc3, 0x4c, 0xa2, 0x3b, 0x0c,
  1349. 0x5e, 0x36, 0xeb, 0xf7, 0x26, 0x73, 0x0b, 0x94, 0x35, 0x31, 0x50, 0xb5, 0x96, 0x75, 0x11, 0xff,
  1350. 0x66, 0x12, 0xcd, 0x40, 0x5c, 0x52, 0xe1, 0x89, 0x2a, 0xf6, 0x2d, 0xa8, 0xce, 0x7b, 0xe9, 0x14,
  1351. 0xa0, 0x53, 0xcc, 0xb9, 0xdc, 0xe1, 0xf0, 0xca, 0xec, 0x4b, 0x3a, 0x7f, 0x13, 0x94, 0x38, 0xe9,
  1352. 0x9a, 0xab, 0xef, 0xe8, 0xfa, 0xf4, 0xb1, 0x4c, 0x30, 0x5c, 0xe4, 0xa4, 0xab, 0x6e, 0xf6, 0xee,
  1353. 0x57, 0x50, 0xcc, 0xc7, 0x0d, 0x1e, 0x82, 0xe2, 0x27, 0x22, 0xd4, 0x4c, 0xc1, 0x8d, 0xc7, 0xa6,
  1354. 0xf2, 0x72, 0xbd, 0xfe, 0xf8, 0xd0, 0xb6, 0x9f, 0x5c, 0xff, 0xae, 0xff, 0x73, 0x7d, 0x53, 0xb7,
  1355. 0x7e, 0xde, 0xd4, 0xad, 0x5f, 0x37, 0x75, 0xeb, 0x9b, 0xed, 0xc7, 0xf4, 0xac, 0xa0, 0xff, 0xa8,
  1356. 0xde, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x6b, 0x1b, 0x30, 0x17, 0x05, 0x00, 0x00,
  1357. }