Smalltv.pb.go 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v0/Smalltv.proto
  3. package v0
  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 SmalltvStartReq struct {
  19. // 用户id
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. // 房间号
  22. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
  23. // 道具id
  24. GiftId int64 `protobuf:"varint,3,opt,name=gift_id,json=giftId,proto3" json:"gift_id"`
  25. // 道具个数
  26. Num int64 `protobuf:"varint,4,opt,name=num,proto3" json:"num"`
  27. // 业务id
  28. Tid int64 `protobuf:"varint,5,opt,name=tid,proto3" json:"tid"`
  29. // 公告样式id
  30. StyleId int64 `protobuf:"varint,6,opt,name=style_id,json=styleId,proto3" json:"style_id"`
  31. }
  32. func (m *SmalltvStartReq) Reset() { *m = SmalltvStartReq{} }
  33. func (m *SmalltvStartReq) String() string { return proto.CompactTextString(m) }
  34. func (*SmalltvStartReq) ProtoMessage() {}
  35. func (*SmalltvStartReq) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_Smalltv_627605adbee0258c, []int{0}
  37. }
  38. func (m *SmalltvStartReq) XXX_Unmarshal(b []byte) error {
  39. return m.Unmarshal(b)
  40. }
  41. func (m *SmalltvStartReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. if deterministic {
  43. return xxx_messageInfo_SmalltvStartReq.Marshal(b, m, deterministic)
  44. } else {
  45. b = b[:cap(b)]
  46. n, err := m.MarshalTo(b)
  47. if err != nil {
  48. return nil, err
  49. }
  50. return b[:n], nil
  51. }
  52. }
  53. func (dst *SmalltvStartReq) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_SmalltvStartReq.Merge(dst, src)
  55. }
  56. func (m *SmalltvStartReq) XXX_Size() int {
  57. return m.Size()
  58. }
  59. func (m *SmalltvStartReq) XXX_DiscardUnknown() {
  60. xxx_messageInfo_SmalltvStartReq.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_SmalltvStartReq proto.InternalMessageInfo
  63. func (m *SmalltvStartReq) GetUid() int64 {
  64. if m != nil {
  65. return m.Uid
  66. }
  67. return 0
  68. }
  69. func (m *SmalltvStartReq) GetRoomid() int64 {
  70. if m != nil {
  71. return m.Roomid
  72. }
  73. return 0
  74. }
  75. func (m *SmalltvStartReq) GetGiftId() int64 {
  76. if m != nil {
  77. return m.GiftId
  78. }
  79. return 0
  80. }
  81. func (m *SmalltvStartReq) GetNum() int64 {
  82. if m != nil {
  83. return m.Num
  84. }
  85. return 0
  86. }
  87. func (m *SmalltvStartReq) GetTid() int64 {
  88. if m != nil {
  89. return m.Tid
  90. }
  91. return 0
  92. }
  93. func (m *SmalltvStartReq) GetStyleId() int64 {
  94. if m != nil {
  95. return m.StyleId
  96. }
  97. return 0
  98. }
  99. type SmalltvStartResp struct {
  100. //
  101. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  102. //
  103. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  104. //
  105. Data []*SmalltvStartResp_MSG `protobuf:"bytes,3,rep,name=data" json:"data"`
  106. }
  107. func (m *SmalltvStartResp) Reset() { *m = SmalltvStartResp{} }
  108. func (m *SmalltvStartResp) String() string { return proto.CompactTextString(m) }
  109. func (*SmalltvStartResp) ProtoMessage() {}
  110. func (*SmalltvStartResp) Descriptor() ([]byte, []int) {
  111. return fileDescriptor_Smalltv_627605adbee0258c, []int{1}
  112. }
  113. func (m *SmalltvStartResp) XXX_Unmarshal(b []byte) error {
  114. return m.Unmarshal(b)
  115. }
  116. func (m *SmalltvStartResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  117. if deterministic {
  118. return xxx_messageInfo_SmalltvStartResp.Marshal(b, m, deterministic)
  119. } else {
  120. b = b[:cap(b)]
  121. n, err := m.MarshalTo(b)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return b[:n], nil
  126. }
  127. }
  128. func (dst *SmalltvStartResp) XXX_Merge(src proto.Message) {
  129. xxx_messageInfo_SmalltvStartResp.Merge(dst, src)
  130. }
  131. func (m *SmalltvStartResp) XXX_Size() int {
  132. return m.Size()
  133. }
  134. func (m *SmalltvStartResp) XXX_DiscardUnknown() {
  135. xxx_messageInfo_SmalltvStartResp.DiscardUnknown(m)
  136. }
  137. var xxx_messageInfo_SmalltvStartResp proto.InternalMessageInfo
  138. func (m *SmalltvStartResp) GetCode() int64 {
  139. if m != nil {
  140. return m.Code
  141. }
  142. return 0
  143. }
  144. func (m *SmalltvStartResp) GetMsg() string {
  145. if m != nil {
  146. return m.Msg
  147. }
  148. return ""
  149. }
  150. func (m *SmalltvStartResp) GetData() []*SmalltvStartResp_MSG {
  151. if m != nil {
  152. return m.Data
  153. }
  154. return nil
  155. }
  156. type SmalltvStartResp_MSG struct {
  157. //
  158. Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd"`
  159. //
  160. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  161. //
  162. MsgText string `protobuf:"bytes,3,opt,name=msg_text,json=msgText,proto3" json:"msg_text"`
  163. //
  164. MsgCommon string `protobuf:"bytes,4,opt,name=msg_common,json=msgCommon,proto3" json:"msg_common"`
  165. //
  166. MsgSelf string `protobuf:"bytes,5,opt,name=msg_self,json=msgSelf,proto3" json:"msg_self"`
  167. //
  168. Rep int64 `protobuf:"varint,6,opt,name=rep,proto3" json:"rep"`
  169. //
  170. StyleType int64 `protobuf:"varint,7,opt,name=styleType,proto3" json:"styleType"`
  171. //
  172. Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url"`
  173. //
  174. Roomid int64 `protobuf:"varint,9,opt,name=roomid,proto3" json:"roomid"`
  175. //
  176. RealRoomid int64 `protobuf:"varint,10,opt,name=real_roomid,json=realRoomid,proto3" json:"real_roomid"`
  177. //
  178. Rnd int64 `protobuf:"varint,11,opt,name=rnd,proto3" json:"rnd"`
  179. //
  180. BroadcastType int64 `protobuf:"varint,12,opt,name=broadcast_type,json=broadcastType,proto3" json:"broadcast_type"`
  181. }
  182. func (m *SmalltvStartResp_MSG) Reset() { *m = SmalltvStartResp_MSG{} }
  183. func (m *SmalltvStartResp_MSG) String() string { return proto.CompactTextString(m) }
  184. func (*SmalltvStartResp_MSG) ProtoMessage() {}
  185. func (*SmalltvStartResp_MSG) Descriptor() ([]byte, []int) {
  186. return fileDescriptor_Smalltv_627605adbee0258c, []int{1, 0}
  187. }
  188. func (m *SmalltvStartResp_MSG) XXX_Unmarshal(b []byte) error {
  189. return m.Unmarshal(b)
  190. }
  191. func (m *SmalltvStartResp_MSG) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  192. if deterministic {
  193. return xxx_messageInfo_SmalltvStartResp_MSG.Marshal(b, m, deterministic)
  194. } else {
  195. b = b[:cap(b)]
  196. n, err := m.MarshalTo(b)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return b[:n], nil
  201. }
  202. }
  203. func (dst *SmalltvStartResp_MSG) XXX_Merge(src proto.Message) {
  204. xxx_messageInfo_SmalltvStartResp_MSG.Merge(dst, src)
  205. }
  206. func (m *SmalltvStartResp_MSG) XXX_Size() int {
  207. return m.Size()
  208. }
  209. func (m *SmalltvStartResp_MSG) XXX_DiscardUnknown() {
  210. xxx_messageInfo_SmalltvStartResp_MSG.DiscardUnknown(m)
  211. }
  212. var xxx_messageInfo_SmalltvStartResp_MSG proto.InternalMessageInfo
  213. func (m *SmalltvStartResp_MSG) GetCmd() string {
  214. if m != nil {
  215. return m.Cmd
  216. }
  217. return ""
  218. }
  219. func (m *SmalltvStartResp_MSG) GetMsg() string {
  220. if m != nil {
  221. return m.Msg
  222. }
  223. return ""
  224. }
  225. func (m *SmalltvStartResp_MSG) GetMsgText() string {
  226. if m != nil {
  227. return m.MsgText
  228. }
  229. return ""
  230. }
  231. func (m *SmalltvStartResp_MSG) GetMsgCommon() string {
  232. if m != nil {
  233. return m.MsgCommon
  234. }
  235. return ""
  236. }
  237. func (m *SmalltvStartResp_MSG) GetMsgSelf() string {
  238. if m != nil {
  239. return m.MsgSelf
  240. }
  241. return ""
  242. }
  243. func (m *SmalltvStartResp_MSG) GetRep() int64 {
  244. if m != nil {
  245. return m.Rep
  246. }
  247. return 0
  248. }
  249. func (m *SmalltvStartResp_MSG) GetStyleType() int64 {
  250. if m != nil {
  251. return m.StyleType
  252. }
  253. return 0
  254. }
  255. func (m *SmalltvStartResp_MSG) GetUrl() string {
  256. if m != nil {
  257. return m.Url
  258. }
  259. return ""
  260. }
  261. func (m *SmalltvStartResp_MSG) GetRoomid() int64 {
  262. if m != nil {
  263. return m.Roomid
  264. }
  265. return 0
  266. }
  267. func (m *SmalltvStartResp_MSG) GetRealRoomid() int64 {
  268. if m != nil {
  269. return m.RealRoomid
  270. }
  271. return 0
  272. }
  273. func (m *SmalltvStartResp_MSG) GetRnd() int64 {
  274. if m != nil {
  275. return m.Rnd
  276. }
  277. return 0
  278. }
  279. func (m *SmalltvStartResp_MSG) GetBroadcastType() int64 {
  280. if m != nil {
  281. return m.BroadcastType
  282. }
  283. return 0
  284. }
  285. func init() {
  286. proto.RegisterType((*SmalltvStartReq)(nil), "gift.v0.SmalltvStartReq")
  287. proto.RegisterType((*SmalltvStartResp)(nil), "gift.v0.SmalltvStartResp")
  288. proto.RegisterType((*SmalltvStartResp_MSG)(nil), "gift.v0.SmalltvStartResp.MSG")
  289. }
  290. func (m *SmalltvStartReq) Marshal() (dAtA []byte, err error) {
  291. size := m.Size()
  292. dAtA = make([]byte, size)
  293. n, err := m.MarshalTo(dAtA)
  294. if err != nil {
  295. return nil, err
  296. }
  297. return dAtA[:n], nil
  298. }
  299. func (m *SmalltvStartReq) MarshalTo(dAtA []byte) (int, error) {
  300. var i int
  301. _ = i
  302. var l int
  303. _ = l
  304. if m.Uid != 0 {
  305. dAtA[i] = 0x8
  306. i++
  307. i = encodeVarintSmalltv(dAtA, i, uint64(m.Uid))
  308. }
  309. if m.Roomid != 0 {
  310. dAtA[i] = 0x10
  311. i++
  312. i = encodeVarintSmalltv(dAtA, i, uint64(m.Roomid))
  313. }
  314. if m.GiftId != 0 {
  315. dAtA[i] = 0x18
  316. i++
  317. i = encodeVarintSmalltv(dAtA, i, uint64(m.GiftId))
  318. }
  319. if m.Num != 0 {
  320. dAtA[i] = 0x20
  321. i++
  322. i = encodeVarintSmalltv(dAtA, i, uint64(m.Num))
  323. }
  324. if m.Tid != 0 {
  325. dAtA[i] = 0x28
  326. i++
  327. i = encodeVarintSmalltv(dAtA, i, uint64(m.Tid))
  328. }
  329. if m.StyleId != 0 {
  330. dAtA[i] = 0x30
  331. i++
  332. i = encodeVarintSmalltv(dAtA, i, uint64(m.StyleId))
  333. }
  334. return i, nil
  335. }
  336. func (m *SmalltvStartResp) Marshal() (dAtA []byte, err error) {
  337. size := m.Size()
  338. dAtA = make([]byte, size)
  339. n, err := m.MarshalTo(dAtA)
  340. if err != nil {
  341. return nil, err
  342. }
  343. return dAtA[:n], nil
  344. }
  345. func (m *SmalltvStartResp) MarshalTo(dAtA []byte) (int, error) {
  346. var i int
  347. _ = i
  348. var l int
  349. _ = l
  350. if m.Code != 0 {
  351. dAtA[i] = 0x8
  352. i++
  353. i = encodeVarintSmalltv(dAtA, i, uint64(m.Code))
  354. }
  355. if len(m.Msg) > 0 {
  356. dAtA[i] = 0x12
  357. i++
  358. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.Msg)))
  359. i += copy(dAtA[i:], m.Msg)
  360. }
  361. if len(m.Data) > 0 {
  362. for _, msg := range m.Data {
  363. dAtA[i] = 0x1a
  364. i++
  365. i = encodeVarintSmalltv(dAtA, i, uint64(msg.Size()))
  366. n, err := msg.MarshalTo(dAtA[i:])
  367. if err != nil {
  368. return 0, err
  369. }
  370. i += n
  371. }
  372. }
  373. return i, nil
  374. }
  375. func (m *SmalltvStartResp_MSG) Marshal() (dAtA []byte, err error) {
  376. size := m.Size()
  377. dAtA = make([]byte, size)
  378. n, err := m.MarshalTo(dAtA)
  379. if err != nil {
  380. return nil, err
  381. }
  382. return dAtA[:n], nil
  383. }
  384. func (m *SmalltvStartResp_MSG) MarshalTo(dAtA []byte) (int, error) {
  385. var i int
  386. _ = i
  387. var l int
  388. _ = l
  389. if len(m.Cmd) > 0 {
  390. dAtA[i] = 0xa
  391. i++
  392. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.Cmd)))
  393. i += copy(dAtA[i:], m.Cmd)
  394. }
  395. if len(m.Msg) > 0 {
  396. dAtA[i] = 0x12
  397. i++
  398. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.Msg)))
  399. i += copy(dAtA[i:], m.Msg)
  400. }
  401. if len(m.MsgText) > 0 {
  402. dAtA[i] = 0x1a
  403. i++
  404. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.MsgText)))
  405. i += copy(dAtA[i:], m.MsgText)
  406. }
  407. if len(m.MsgCommon) > 0 {
  408. dAtA[i] = 0x22
  409. i++
  410. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.MsgCommon)))
  411. i += copy(dAtA[i:], m.MsgCommon)
  412. }
  413. if len(m.MsgSelf) > 0 {
  414. dAtA[i] = 0x2a
  415. i++
  416. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.MsgSelf)))
  417. i += copy(dAtA[i:], m.MsgSelf)
  418. }
  419. if m.Rep != 0 {
  420. dAtA[i] = 0x30
  421. i++
  422. i = encodeVarintSmalltv(dAtA, i, uint64(m.Rep))
  423. }
  424. if m.StyleType != 0 {
  425. dAtA[i] = 0x38
  426. i++
  427. i = encodeVarintSmalltv(dAtA, i, uint64(m.StyleType))
  428. }
  429. if len(m.Url) > 0 {
  430. dAtA[i] = 0x42
  431. i++
  432. i = encodeVarintSmalltv(dAtA, i, uint64(len(m.Url)))
  433. i += copy(dAtA[i:], m.Url)
  434. }
  435. if m.Roomid != 0 {
  436. dAtA[i] = 0x48
  437. i++
  438. i = encodeVarintSmalltv(dAtA, i, uint64(m.Roomid))
  439. }
  440. if m.RealRoomid != 0 {
  441. dAtA[i] = 0x50
  442. i++
  443. i = encodeVarintSmalltv(dAtA, i, uint64(m.RealRoomid))
  444. }
  445. if m.Rnd != 0 {
  446. dAtA[i] = 0x58
  447. i++
  448. i = encodeVarintSmalltv(dAtA, i, uint64(m.Rnd))
  449. }
  450. if m.BroadcastType != 0 {
  451. dAtA[i] = 0x60
  452. i++
  453. i = encodeVarintSmalltv(dAtA, i, uint64(m.BroadcastType))
  454. }
  455. return i, nil
  456. }
  457. func encodeVarintSmalltv(dAtA []byte, offset int, v uint64) int {
  458. for v >= 1<<7 {
  459. dAtA[offset] = uint8(v&0x7f | 0x80)
  460. v >>= 7
  461. offset++
  462. }
  463. dAtA[offset] = uint8(v)
  464. return offset + 1
  465. }
  466. func (m *SmalltvStartReq) Size() (n int) {
  467. if m == nil {
  468. return 0
  469. }
  470. var l int
  471. _ = l
  472. if m.Uid != 0 {
  473. n += 1 + sovSmalltv(uint64(m.Uid))
  474. }
  475. if m.Roomid != 0 {
  476. n += 1 + sovSmalltv(uint64(m.Roomid))
  477. }
  478. if m.GiftId != 0 {
  479. n += 1 + sovSmalltv(uint64(m.GiftId))
  480. }
  481. if m.Num != 0 {
  482. n += 1 + sovSmalltv(uint64(m.Num))
  483. }
  484. if m.Tid != 0 {
  485. n += 1 + sovSmalltv(uint64(m.Tid))
  486. }
  487. if m.StyleId != 0 {
  488. n += 1 + sovSmalltv(uint64(m.StyleId))
  489. }
  490. return n
  491. }
  492. func (m *SmalltvStartResp) Size() (n int) {
  493. if m == nil {
  494. return 0
  495. }
  496. var l int
  497. _ = l
  498. if m.Code != 0 {
  499. n += 1 + sovSmalltv(uint64(m.Code))
  500. }
  501. l = len(m.Msg)
  502. if l > 0 {
  503. n += 1 + l + sovSmalltv(uint64(l))
  504. }
  505. if len(m.Data) > 0 {
  506. for _, e := range m.Data {
  507. l = e.Size()
  508. n += 1 + l + sovSmalltv(uint64(l))
  509. }
  510. }
  511. return n
  512. }
  513. func (m *SmalltvStartResp_MSG) Size() (n int) {
  514. if m == nil {
  515. return 0
  516. }
  517. var l int
  518. _ = l
  519. l = len(m.Cmd)
  520. if l > 0 {
  521. n += 1 + l + sovSmalltv(uint64(l))
  522. }
  523. l = len(m.Msg)
  524. if l > 0 {
  525. n += 1 + l + sovSmalltv(uint64(l))
  526. }
  527. l = len(m.MsgText)
  528. if l > 0 {
  529. n += 1 + l + sovSmalltv(uint64(l))
  530. }
  531. l = len(m.MsgCommon)
  532. if l > 0 {
  533. n += 1 + l + sovSmalltv(uint64(l))
  534. }
  535. l = len(m.MsgSelf)
  536. if l > 0 {
  537. n += 1 + l + sovSmalltv(uint64(l))
  538. }
  539. if m.Rep != 0 {
  540. n += 1 + sovSmalltv(uint64(m.Rep))
  541. }
  542. if m.StyleType != 0 {
  543. n += 1 + sovSmalltv(uint64(m.StyleType))
  544. }
  545. l = len(m.Url)
  546. if l > 0 {
  547. n += 1 + l + sovSmalltv(uint64(l))
  548. }
  549. if m.Roomid != 0 {
  550. n += 1 + sovSmalltv(uint64(m.Roomid))
  551. }
  552. if m.RealRoomid != 0 {
  553. n += 1 + sovSmalltv(uint64(m.RealRoomid))
  554. }
  555. if m.Rnd != 0 {
  556. n += 1 + sovSmalltv(uint64(m.Rnd))
  557. }
  558. if m.BroadcastType != 0 {
  559. n += 1 + sovSmalltv(uint64(m.BroadcastType))
  560. }
  561. return n
  562. }
  563. func sovSmalltv(x uint64) (n int) {
  564. for {
  565. n++
  566. x >>= 7
  567. if x == 0 {
  568. break
  569. }
  570. }
  571. return n
  572. }
  573. func sozSmalltv(x uint64) (n int) {
  574. return sovSmalltv(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  575. }
  576. func (m *SmalltvStartReq) Unmarshal(dAtA []byte) error {
  577. l := len(dAtA)
  578. iNdEx := 0
  579. for iNdEx < l {
  580. preIndex := iNdEx
  581. var wire uint64
  582. for shift := uint(0); ; shift += 7 {
  583. if shift >= 64 {
  584. return ErrIntOverflowSmalltv
  585. }
  586. if iNdEx >= l {
  587. return io.ErrUnexpectedEOF
  588. }
  589. b := dAtA[iNdEx]
  590. iNdEx++
  591. wire |= (uint64(b) & 0x7F) << shift
  592. if b < 0x80 {
  593. break
  594. }
  595. }
  596. fieldNum := int32(wire >> 3)
  597. wireType := int(wire & 0x7)
  598. if wireType == 4 {
  599. return fmt.Errorf("proto: SmalltvStartReq: wiretype end group for non-group")
  600. }
  601. if fieldNum <= 0 {
  602. return fmt.Errorf("proto: SmalltvStartReq: illegal tag %d (wire type %d)", fieldNum, wire)
  603. }
  604. switch fieldNum {
  605. case 1:
  606. if wireType != 0 {
  607. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  608. }
  609. m.Uid = 0
  610. for shift := uint(0); ; shift += 7 {
  611. if shift >= 64 {
  612. return ErrIntOverflowSmalltv
  613. }
  614. if iNdEx >= l {
  615. return io.ErrUnexpectedEOF
  616. }
  617. b := dAtA[iNdEx]
  618. iNdEx++
  619. m.Uid |= (int64(b) & 0x7F) << shift
  620. if b < 0x80 {
  621. break
  622. }
  623. }
  624. case 2:
  625. if wireType != 0 {
  626. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  627. }
  628. m.Roomid = 0
  629. for shift := uint(0); ; shift += 7 {
  630. if shift >= 64 {
  631. return ErrIntOverflowSmalltv
  632. }
  633. if iNdEx >= l {
  634. return io.ErrUnexpectedEOF
  635. }
  636. b := dAtA[iNdEx]
  637. iNdEx++
  638. m.Roomid |= (int64(b) & 0x7F) << shift
  639. if b < 0x80 {
  640. break
  641. }
  642. }
  643. case 3:
  644. if wireType != 0 {
  645. return fmt.Errorf("proto: wrong wireType = %d for field GiftId", wireType)
  646. }
  647. m.GiftId = 0
  648. for shift := uint(0); ; shift += 7 {
  649. if shift >= 64 {
  650. return ErrIntOverflowSmalltv
  651. }
  652. if iNdEx >= l {
  653. return io.ErrUnexpectedEOF
  654. }
  655. b := dAtA[iNdEx]
  656. iNdEx++
  657. m.GiftId |= (int64(b) & 0x7F) << shift
  658. if b < 0x80 {
  659. break
  660. }
  661. }
  662. case 4:
  663. if wireType != 0 {
  664. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  665. }
  666. m.Num = 0
  667. for shift := uint(0); ; shift += 7 {
  668. if shift >= 64 {
  669. return ErrIntOverflowSmalltv
  670. }
  671. if iNdEx >= l {
  672. return io.ErrUnexpectedEOF
  673. }
  674. b := dAtA[iNdEx]
  675. iNdEx++
  676. m.Num |= (int64(b) & 0x7F) << shift
  677. if b < 0x80 {
  678. break
  679. }
  680. }
  681. case 5:
  682. if wireType != 0 {
  683. return fmt.Errorf("proto: wrong wireType = %d for field Tid", wireType)
  684. }
  685. m.Tid = 0
  686. for shift := uint(0); ; shift += 7 {
  687. if shift >= 64 {
  688. return ErrIntOverflowSmalltv
  689. }
  690. if iNdEx >= l {
  691. return io.ErrUnexpectedEOF
  692. }
  693. b := dAtA[iNdEx]
  694. iNdEx++
  695. m.Tid |= (int64(b) & 0x7F) << shift
  696. if b < 0x80 {
  697. break
  698. }
  699. }
  700. case 6:
  701. if wireType != 0 {
  702. return fmt.Errorf("proto: wrong wireType = %d for field StyleId", wireType)
  703. }
  704. m.StyleId = 0
  705. for shift := uint(0); ; shift += 7 {
  706. if shift >= 64 {
  707. return ErrIntOverflowSmalltv
  708. }
  709. if iNdEx >= l {
  710. return io.ErrUnexpectedEOF
  711. }
  712. b := dAtA[iNdEx]
  713. iNdEx++
  714. m.StyleId |= (int64(b) & 0x7F) << shift
  715. if b < 0x80 {
  716. break
  717. }
  718. }
  719. default:
  720. iNdEx = preIndex
  721. skippy, err := skipSmalltv(dAtA[iNdEx:])
  722. if err != nil {
  723. return err
  724. }
  725. if skippy < 0 {
  726. return ErrInvalidLengthSmalltv
  727. }
  728. if (iNdEx + skippy) > l {
  729. return io.ErrUnexpectedEOF
  730. }
  731. iNdEx += skippy
  732. }
  733. }
  734. if iNdEx > l {
  735. return io.ErrUnexpectedEOF
  736. }
  737. return nil
  738. }
  739. func (m *SmalltvStartResp) Unmarshal(dAtA []byte) error {
  740. l := len(dAtA)
  741. iNdEx := 0
  742. for iNdEx < l {
  743. preIndex := iNdEx
  744. var wire uint64
  745. for shift := uint(0); ; shift += 7 {
  746. if shift >= 64 {
  747. return ErrIntOverflowSmalltv
  748. }
  749. if iNdEx >= l {
  750. return io.ErrUnexpectedEOF
  751. }
  752. b := dAtA[iNdEx]
  753. iNdEx++
  754. wire |= (uint64(b) & 0x7F) << shift
  755. if b < 0x80 {
  756. break
  757. }
  758. }
  759. fieldNum := int32(wire >> 3)
  760. wireType := int(wire & 0x7)
  761. if wireType == 4 {
  762. return fmt.Errorf("proto: SmalltvStartResp: wiretype end group for non-group")
  763. }
  764. if fieldNum <= 0 {
  765. return fmt.Errorf("proto: SmalltvStartResp: illegal tag %d (wire type %d)", fieldNum, wire)
  766. }
  767. switch fieldNum {
  768. case 1:
  769. if wireType != 0 {
  770. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  771. }
  772. m.Code = 0
  773. for shift := uint(0); ; shift += 7 {
  774. if shift >= 64 {
  775. return ErrIntOverflowSmalltv
  776. }
  777. if iNdEx >= l {
  778. return io.ErrUnexpectedEOF
  779. }
  780. b := dAtA[iNdEx]
  781. iNdEx++
  782. m.Code |= (int64(b) & 0x7F) << shift
  783. if b < 0x80 {
  784. break
  785. }
  786. }
  787. case 2:
  788. if wireType != 2 {
  789. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  790. }
  791. var stringLen uint64
  792. for shift := uint(0); ; shift += 7 {
  793. if shift >= 64 {
  794. return ErrIntOverflowSmalltv
  795. }
  796. if iNdEx >= l {
  797. return io.ErrUnexpectedEOF
  798. }
  799. b := dAtA[iNdEx]
  800. iNdEx++
  801. stringLen |= (uint64(b) & 0x7F) << shift
  802. if b < 0x80 {
  803. break
  804. }
  805. }
  806. intStringLen := int(stringLen)
  807. if intStringLen < 0 {
  808. return ErrInvalidLengthSmalltv
  809. }
  810. postIndex := iNdEx + intStringLen
  811. if postIndex > l {
  812. return io.ErrUnexpectedEOF
  813. }
  814. m.Msg = string(dAtA[iNdEx:postIndex])
  815. iNdEx = postIndex
  816. case 3:
  817. if wireType != 2 {
  818. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  819. }
  820. var msglen int
  821. for shift := uint(0); ; shift += 7 {
  822. if shift >= 64 {
  823. return ErrIntOverflowSmalltv
  824. }
  825. if iNdEx >= l {
  826. return io.ErrUnexpectedEOF
  827. }
  828. b := dAtA[iNdEx]
  829. iNdEx++
  830. msglen |= (int(b) & 0x7F) << shift
  831. if b < 0x80 {
  832. break
  833. }
  834. }
  835. if msglen < 0 {
  836. return ErrInvalidLengthSmalltv
  837. }
  838. postIndex := iNdEx + msglen
  839. if postIndex > l {
  840. return io.ErrUnexpectedEOF
  841. }
  842. m.Data = append(m.Data, &SmalltvStartResp_MSG{})
  843. if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  844. return err
  845. }
  846. iNdEx = postIndex
  847. default:
  848. iNdEx = preIndex
  849. skippy, err := skipSmalltv(dAtA[iNdEx:])
  850. if err != nil {
  851. return err
  852. }
  853. if skippy < 0 {
  854. return ErrInvalidLengthSmalltv
  855. }
  856. if (iNdEx + skippy) > l {
  857. return io.ErrUnexpectedEOF
  858. }
  859. iNdEx += skippy
  860. }
  861. }
  862. if iNdEx > l {
  863. return io.ErrUnexpectedEOF
  864. }
  865. return nil
  866. }
  867. func (m *SmalltvStartResp_MSG) Unmarshal(dAtA []byte) error {
  868. l := len(dAtA)
  869. iNdEx := 0
  870. for iNdEx < l {
  871. preIndex := iNdEx
  872. var wire uint64
  873. for shift := uint(0); ; shift += 7 {
  874. if shift >= 64 {
  875. return ErrIntOverflowSmalltv
  876. }
  877. if iNdEx >= l {
  878. return io.ErrUnexpectedEOF
  879. }
  880. b := dAtA[iNdEx]
  881. iNdEx++
  882. wire |= (uint64(b) & 0x7F) << shift
  883. if b < 0x80 {
  884. break
  885. }
  886. }
  887. fieldNum := int32(wire >> 3)
  888. wireType := int(wire & 0x7)
  889. if wireType == 4 {
  890. return fmt.Errorf("proto: MSG: wiretype end group for non-group")
  891. }
  892. if fieldNum <= 0 {
  893. return fmt.Errorf("proto: MSG: illegal tag %d (wire type %d)", fieldNum, wire)
  894. }
  895. switch fieldNum {
  896. case 1:
  897. if wireType != 2 {
  898. return fmt.Errorf("proto: wrong wireType = %d for field Cmd", wireType)
  899. }
  900. var stringLen uint64
  901. for shift := uint(0); ; shift += 7 {
  902. if shift >= 64 {
  903. return ErrIntOverflowSmalltv
  904. }
  905. if iNdEx >= l {
  906. return io.ErrUnexpectedEOF
  907. }
  908. b := dAtA[iNdEx]
  909. iNdEx++
  910. stringLen |= (uint64(b) & 0x7F) << shift
  911. if b < 0x80 {
  912. break
  913. }
  914. }
  915. intStringLen := int(stringLen)
  916. if intStringLen < 0 {
  917. return ErrInvalidLengthSmalltv
  918. }
  919. postIndex := iNdEx + intStringLen
  920. if postIndex > l {
  921. return io.ErrUnexpectedEOF
  922. }
  923. m.Cmd = string(dAtA[iNdEx:postIndex])
  924. iNdEx = postIndex
  925. case 2:
  926. if wireType != 2 {
  927. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  928. }
  929. var stringLen uint64
  930. for shift := uint(0); ; shift += 7 {
  931. if shift >= 64 {
  932. return ErrIntOverflowSmalltv
  933. }
  934. if iNdEx >= l {
  935. return io.ErrUnexpectedEOF
  936. }
  937. b := dAtA[iNdEx]
  938. iNdEx++
  939. stringLen |= (uint64(b) & 0x7F) << shift
  940. if b < 0x80 {
  941. break
  942. }
  943. }
  944. intStringLen := int(stringLen)
  945. if intStringLen < 0 {
  946. return ErrInvalidLengthSmalltv
  947. }
  948. postIndex := iNdEx + intStringLen
  949. if postIndex > l {
  950. return io.ErrUnexpectedEOF
  951. }
  952. m.Msg = string(dAtA[iNdEx:postIndex])
  953. iNdEx = postIndex
  954. case 3:
  955. if wireType != 2 {
  956. return fmt.Errorf("proto: wrong wireType = %d for field MsgText", wireType)
  957. }
  958. var stringLen uint64
  959. for shift := uint(0); ; shift += 7 {
  960. if shift >= 64 {
  961. return ErrIntOverflowSmalltv
  962. }
  963. if iNdEx >= l {
  964. return io.ErrUnexpectedEOF
  965. }
  966. b := dAtA[iNdEx]
  967. iNdEx++
  968. stringLen |= (uint64(b) & 0x7F) << shift
  969. if b < 0x80 {
  970. break
  971. }
  972. }
  973. intStringLen := int(stringLen)
  974. if intStringLen < 0 {
  975. return ErrInvalidLengthSmalltv
  976. }
  977. postIndex := iNdEx + intStringLen
  978. if postIndex > l {
  979. return io.ErrUnexpectedEOF
  980. }
  981. m.MsgText = string(dAtA[iNdEx:postIndex])
  982. iNdEx = postIndex
  983. case 4:
  984. if wireType != 2 {
  985. return fmt.Errorf("proto: wrong wireType = %d for field MsgCommon", wireType)
  986. }
  987. var stringLen uint64
  988. for shift := uint(0); ; shift += 7 {
  989. if shift >= 64 {
  990. return ErrIntOverflowSmalltv
  991. }
  992. if iNdEx >= l {
  993. return io.ErrUnexpectedEOF
  994. }
  995. b := dAtA[iNdEx]
  996. iNdEx++
  997. stringLen |= (uint64(b) & 0x7F) << shift
  998. if b < 0x80 {
  999. break
  1000. }
  1001. }
  1002. intStringLen := int(stringLen)
  1003. if intStringLen < 0 {
  1004. return ErrInvalidLengthSmalltv
  1005. }
  1006. postIndex := iNdEx + intStringLen
  1007. if postIndex > l {
  1008. return io.ErrUnexpectedEOF
  1009. }
  1010. m.MsgCommon = string(dAtA[iNdEx:postIndex])
  1011. iNdEx = postIndex
  1012. case 5:
  1013. if wireType != 2 {
  1014. return fmt.Errorf("proto: wrong wireType = %d for field MsgSelf", wireType)
  1015. }
  1016. var stringLen uint64
  1017. for shift := uint(0); ; shift += 7 {
  1018. if shift >= 64 {
  1019. return ErrIntOverflowSmalltv
  1020. }
  1021. if iNdEx >= l {
  1022. return io.ErrUnexpectedEOF
  1023. }
  1024. b := dAtA[iNdEx]
  1025. iNdEx++
  1026. stringLen |= (uint64(b) & 0x7F) << shift
  1027. if b < 0x80 {
  1028. break
  1029. }
  1030. }
  1031. intStringLen := int(stringLen)
  1032. if intStringLen < 0 {
  1033. return ErrInvalidLengthSmalltv
  1034. }
  1035. postIndex := iNdEx + intStringLen
  1036. if postIndex > l {
  1037. return io.ErrUnexpectedEOF
  1038. }
  1039. m.MsgSelf = string(dAtA[iNdEx:postIndex])
  1040. iNdEx = postIndex
  1041. case 6:
  1042. if wireType != 0 {
  1043. return fmt.Errorf("proto: wrong wireType = %d for field Rep", wireType)
  1044. }
  1045. m.Rep = 0
  1046. for shift := uint(0); ; shift += 7 {
  1047. if shift >= 64 {
  1048. return ErrIntOverflowSmalltv
  1049. }
  1050. if iNdEx >= l {
  1051. return io.ErrUnexpectedEOF
  1052. }
  1053. b := dAtA[iNdEx]
  1054. iNdEx++
  1055. m.Rep |= (int64(b) & 0x7F) << shift
  1056. if b < 0x80 {
  1057. break
  1058. }
  1059. }
  1060. case 7:
  1061. if wireType != 0 {
  1062. return fmt.Errorf("proto: wrong wireType = %d for field StyleType", wireType)
  1063. }
  1064. m.StyleType = 0
  1065. for shift := uint(0); ; shift += 7 {
  1066. if shift >= 64 {
  1067. return ErrIntOverflowSmalltv
  1068. }
  1069. if iNdEx >= l {
  1070. return io.ErrUnexpectedEOF
  1071. }
  1072. b := dAtA[iNdEx]
  1073. iNdEx++
  1074. m.StyleType |= (int64(b) & 0x7F) << shift
  1075. if b < 0x80 {
  1076. break
  1077. }
  1078. }
  1079. case 8:
  1080. if wireType != 2 {
  1081. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  1082. }
  1083. var stringLen uint64
  1084. for shift := uint(0); ; shift += 7 {
  1085. if shift >= 64 {
  1086. return ErrIntOverflowSmalltv
  1087. }
  1088. if iNdEx >= l {
  1089. return io.ErrUnexpectedEOF
  1090. }
  1091. b := dAtA[iNdEx]
  1092. iNdEx++
  1093. stringLen |= (uint64(b) & 0x7F) << shift
  1094. if b < 0x80 {
  1095. break
  1096. }
  1097. }
  1098. intStringLen := int(stringLen)
  1099. if intStringLen < 0 {
  1100. return ErrInvalidLengthSmalltv
  1101. }
  1102. postIndex := iNdEx + intStringLen
  1103. if postIndex > l {
  1104. return io.ErrUnexpectedEOF
  1105. }
  1106. m.Url = string(dAtA[iNdEx:postIndex])
  1107. iNdEx = postIndex
  1108. case 9:
  1109. if wireType != 0 {
  1110. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  1111. }
  1112. m.Roomid = 0
  1113. for shift := uint(0); ; shift += 7 {
  1114. if shift >= 64 {
  1115. return ErrIntOverflowSmalltv
  1116. }
  1117. if iNdEx >= l {
  1118. return io.ErrUnexpectedEOF
  1119. }
  1120. b := dAtA[iNdEx]
  1121. iNdEx++
  1122. m.Roomid |= (int64(b) & 0x7F) << shift
  1123. if b < 0x80 {
  1124. break
  1125. }
  1126. }
  1127. case 10:
  1128. if wireType != 0 {
  1129. return fmt.Errorf("proto: wrong wireType = %d for field RealRoomid", wireType)
  1130. }
  1131. m.RealRoomid = 0
  1132. for shift := uint(0); ; shift += 7 {
  1133. if shift >= 64 {
  1134. return ErrIntOverflowSmalltv
  1135. }
  1136. if iNdEx >= l {
  1137. return io.ErrUnexpectedEOF
  1138. }
  1139. b := dAtA[iNdEx]
  1140. iNdEx++
  1141. m.RealRoomid |= (int64(b) & 0x7F) << shift
  1142. if b < 0x80 {
  1143. break
  1144. }
  1145. }
  1146. case 11:
  1147. if wireType != 0 {
  1148. return fmt.Errorf("proto: wrong wireType = %d for field Rnd", wireType)
  1149. }
  1150. m.Rnd = 0
  1151. for shift := uint(0); ; shift += 7 {
  1152. if shift >= 64 {
  1153. return ErrIntOverflowSmalltv
  1154. }
  1155. if iNdEx >= l {
  1156. return io.ErrUnexpectedEOF
  1157. }
  1158. b := dAtA[iNdEx]
  1159. iNdEx++
  1160. m.Rnd |= (int64(b) & 0x7F) << shift
  1161. if b < 0x80 {
  1162. break
  1163. }
  1164. }
  1165. case 12:
  1166. if wireType != 0 {
  1167. return fmt.Errorf("proto: wrong wireType = %d for field BroadcastType", wireType)
  1168. }
  1169. m.BroadcastType = 0
  1170. for shift := uint(0); ; shift += 7 {
  1171. if shift >= 64 {
  1172. return ErrIntOverflowSmalltv
  1173. }
  1174. if iNdEx >= l {
  1175. return io.ErrUnexpectedEOF
  1176. }
  1177. b := dAtA[iNdEx]
  1178. iNdEx++
  1179. m.BroadcastType |= (int64(b) & 0x7F) << shift
  1180. if b < 0x80 {
  1181. break
  1182. }
  1183. }
  1184. default:
  1185. iNdEx = preIndex
  1186. skippy, err := skipSmalltv(dAtA[iNdEx:])
  1187. if err != nil {
  1188. return err
  1189. }
  1190. if skippy < 0 {
  1191. return ErrInvalidLengthSmalltv
  1192. }
  1193. if (iNdEx + skippy) > l {
  1194. return io.ErrUnexpectedEOF
  1195. }
  1196. iNdEx += skippy
  1197. }
  1198. }
  1199. if iNdEx > l {
  1200. return io.ErrUnexpectedEOF
  1201. }
  1202. return nil
  1203. }
  1204. func skipSmalltv(dAtA []byte) (n int, err error) {
  1205. l := len(dAtA)
  1206. iNdEx := 0
  1207. for iNdEx < l {
  1208. var wire uint64
  1209. for shift := uint(0); ; shift += 7 {
  1210. if shift >= 64 {
  1211. return 0, ErrIntOverflowSmalltv
  1212. }
  1213. if iNdEx >= l {
  1214. return 0, io.ErrUnexpectedEOF
  1215. }
  1216. b := dAtA[iNdEx]
  1217. iNdEx++
  1218. wire |= (uint64(b) & 0x7F) << shift
  1219. if b < 0x80 {
  1220. break
  1221. }
  1222. }
  1223. wireType := int(wire & 0x7)
  1224. switch wireType {
  1225. case 0:
  1226. for shift := uint(0); ; shift += 7 {
  1227. if shift >= 64 {
  1228. return 0, ErrIntOverflowSmalltv
  1229. }
  1230. if iNdEx >= l {
  1231. return 0, io.ErrUnexpectedEOF
  1232. }
  1233. iNdEx++
  1234. if dAtA[iNdEx-1] < 0x80 {
  1235. break
  1236. }
  1237. }
  1238. return iNdEx, nil
  1239. case 1:
  1240. iNdEx += 8
  1241. return iNdEx, nil
  1242. case 2:
  1243. var length int
  1244. for shift := uint(0); ; shift += 7 {
  1245. if shift >= 64 {
  1246. return 0, ErrIntOverflowSmalltv
  1247. }
  1248. if iNdEx >= l {
  1249. return 0, io.ErrUnexpectedEOF
  1250. }
  1251. b := dAtA[iNdEx]
  1252. iNdEx++
  1253. length |= (int(b) & 0x7F) << shift
  1254. if b < 0x80 {
  1255. break
  1256. }
  1257. }
  1258. iNdEx += length
  1259. if length < 0 {
  1260. return 0, ErrInvalidLengthSmalltv
  1261. }
  1262. return iNdEx, nil
  1263. case 3:
  1264. for {
  1265. var innerWire uint64
  1266. var start int = iNdEx
  1267. for shift := uint(0); ; shift += 7 {
  1268. if shift >= 64 {
  1269. return 0, ErrIntOverflowSmalltv
  1270. }
  1271. if iNdEx >= l {
  1272. return 0, io.ErrUnexpectedEOF
  1273. }
  1274. b := dAtA[iNdEx]
  1275. iNdEx++
  1276. innerWire |= (uint64(b) & 0x7F) << shift
  1277. if b < 0x80 {
  1278. break
  1279. }
  1280. }
  1281. innerWireType := int(innerWire & 0x7)
  1282. if innerWireType == 4 {
  1283. break
  1284. }
  1285. next, err := skipSmalltv(dAtA[start:])
  1286. if err != nil {
  1287. return 0, err
  1288. }
  1289. iNdEx = start + next
  1290. }
  1291. return iNdEx, nil
  1292. case 4:
  1293. return iNdEx, nil
  1294. case 5:
  1295. iNdEx += 4
  1296. return iNdEx, nil
  1297. default:
  1298. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1299. }
  1300. }
  1301. panic("unreachable")
  1302. }
  1303. var (
  1304. ErrInvalidLengthSmalltv = fmt.Errorf("proto: negative length found during unmarshaling")
  1305. ErrIntOverflowSmalltv = fmt.Errorf("proto: integer overflow")
  1306. )
  1307. func init() { proto.RegisterFile("v0/Smalltv.proto", fileDescriptor_Smalltv_627605adbee0258c) }
  1308. var fileDescriptor_Smalltv_627605adbee0258c = []byte{
  1309. // 546 bytes of a gzipped FileDescriptorProto
  1310. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xcd, 0x6e, 0xda, 0x40,
  1311. 0x10, 0x8e, 0x63, 0x82, 0xf1, 0x92, 0x3f, 0xed, 0xc9, 0x41, 0xa9, 0x1d, 0xa1, 0x4a, 0x89, 0x54,
  1312. 0xc5, 0xa0, 0xf4, 0x54, 0xb5, 0x27, 0x7a, 0x40, 0x39, 0xe4, 0xb2, 0xe4, 0xd4, 0x0b, 0x32, 0xde,
  1313. 0xc5, 0xb5, 0xe4, 0x65, 0x89, 0xbd, 0x46, 0xc9, 0x5b, 0xf4, 0xb1, 0x2a, 0xf5, 0x92, 0x4b, 0xab,
  1314. 0x9e, 0xac, 0x0a, 0x6e, 0x7e, 0x8a, 0x6a, 0xc6, 0x26, 0xd0, 0x48, 0xf4, 0xf2, 0x31, 0xf3, 0xcd,
  1315. 0xf8, 0x9b, 0x9f, 0x1d, 0xc8, 0xe9, 0xa2, 0xdf, 0x1b, 0xc9, 0x20, 0x49, 0xf4, 0xc2, 0x9f, 0xa7,
  1316. 0x4a, 0x2b, 0x6a, 0x45, 0xf1, 0x54, 0xfb, 0x8b, 0x7e, 0xe7, 0x3a, 0x8a, 0xf5, 0xd7, 0x7c, 0xe2,
  1317. 0x87, 0x4a, 0xf6, 0x22, 0x15, 0xa9, 0x1e, 0xc6, 0x27, 0xf9, 0x14, 0x3d, 0x74, 0xd0, 0xaa, 0xbe,
  1318. 0xeb, 0xfe, 0x34, 0xc8, 0x49, 0xad, 0x34, 0xd2, 0x41, 0xaa, 0x99, 0x78, 0xa0, 0x67, 0xc4, 0xcc,
  1319. 0x63, 0xee, 0x18, 0x17, 0xc6, 0x95, 0x39, 0xb0, 0xca, 0xc2, 0x03, 0x97, 0x01, 0xd0, 0x2e, 0x69,
  1320. 0xa6, 0x4a, 0xc9, 0x98, 0x3b, 0xfb, 0x18, 0x25, 0x65, 0xe1, 0xd5, 0x0c, 0xab, 0x7f, 0xe9, 0x5b,
  1321. 0x82, 0xcd, 0x8c, 0x63, 0xee, 0x98, 0x98, 0xd4, 0x2e, 0x0b, 0x6f, 0x4d, 0xb1, 0x26, 0x18, 0xb7,
  1322. 0x1c, 0x8a, 0xcc, 0x72, 0xe9, 0x34, 0x36, 0x45, 0x66, 0xb9, 0x64, 0x00, 0x10, 0xd2, 0x31, 0x77,
  1323. 0x0e, 0x36, 0x21, 0x0d, 0xf5, 0x75, 0xcc, 0xe9, 0x25, 0x69, 0x65, 0xfa, 0x29, 0x11, 0x20, 0xde,
  1324. 0xc4, 0xf8, 0x61, 0x59, 0x78, 0x2f, 0x1c, 0xb3, 0xd0, 0xba, 0xe5, 0xdd, 0x5f, 0x0d, 0x72, 0xfa,
  1325. 0xef, 0x5c, 0xd9, 0x9c, 0x9e, 0x93, 0x46, 0xa8, 0xb8, 0xa8, 0x27, 0x6b, 0x95, 0x85, 0x87, 0x3e,
  1326. 0x43, 0x84, 0xb2, 0x32, 0x8b, 0x70, 0x30, 0xbb, 0x2a, 0x2b, 0xb3, 0x88, 0x01, 0xd0, 0x8f, 0xa4,
  1327. 0xc1, 0x03, 0x1d, 0x38, 0xe6, 0x85, 0x79, 0xd5, 0xbe, 0x79, 0xe3, 0xd7, 0xcb, 0xf6, 0x5f, 0x57,
  1328. 0xf0, 0xef, 0x46, 0xc3, 0x4a, 0x17, 0xd2, 0x19, 0x62, 0xe7, 0x87, 0x49, 0xcc, 0xbb, 0xd1, 0x10,
  1329. 0xf4, 0x43, 0x59, 0xad, 0xb5, 0xd6, 0x0f, 0x25, 0x67, 0x00, 0xff, 0x2b, 0x7d, 0x49, 0x5a, 0x32,
  1330. 0x8b, 0xc6, 0x5a, 0x3c, 0x6a, 0x5c, 0xa7, 0x5d, 0x4d, 0xbc, 0xe6, 0x98, 0x25, 0xb3, 0xe8, 0x5e,
  1331. 0x3c, 0x6a, 0x7a, 0x4d, 0x08, 0x90, 0xa1, 0x92, 0x52, 0xcd, 0x70, 0xaf, 0xf6, 0xe0, 0xb8, 0x2c,
  1332. 0xbc, 0x2d, 0x96, 0xd9, 0x32, 0x8b, 0x3e, 0xa3, 0xb9, 0xd6, 0xcd, 0x44, 0x32, 0xc5, 0x4d, 0x6f,
  1333. 0xe9, 0x02, 0x87, 0xba, 0x23, 0x91, 0x4c, 0xa1, 0xb7, 0x54, 0xcc, 0xeb, 0x6d, 0x63, 0x6f, 0xa9,
  1334. 0x98, 0x33, 0x00, 0xfa, 0x8e, 0xd8, 0xb8, 0xef, 0xfb, 0xa7, 0xb9, 0x70, 0x2c, 0x4c, 0x38, 0x2a,
  1335. 0x0b, 0x6f, 0x43, 0xb2, 0x8d, 0x89, 0x57, 0x95, 0x26, 0x4e, 0x6b, 0x33, 0x63, 0x9e, 0x26, 0x0c,
  1336. 0x60, 0xeb, 0xaa, 0xec, 0x9d, 0x57, 0xd5, 0x27, 0xed, 0x54, 0x04, 0xc9, 0xb8, 0x4e, 0x24, 0x98,
  1337. 0x78, 0x52, 0x16, 0xde, 0x36, 0xcd, 0x08, 0x38, 0xac, 0xfa, 0x02, 0x1a, 0x9f, 0x71, 0xa7, 0xbd,
  1338. 0xd5, 0xf8, 0x8c, 0x33, 0x00, 0xfa, 0x81, 0x1c, 0x4f, 0x52, 0x15, 0xf0, 0x30, 0xc8, 0xf4, 0x58,
  1339. 0x43, 0xf7, 0x87, 0x98, 0x45, 0xcb, 0xc2, 0x7b, 0x15, 0x61, 0x47, 0x2f, 0x3e, 0x8c, 0x71, 0x33,
  1340. 0x24, 0x56, 0xfd, 0xea, 0xf4, 0x13, 0x39, 0xc8, 0xe0, 0xe5, 0xa9, 0xb3, 0xe3, 0x20, 0x1e, 0x3a,
  1341. 0x67, 0x3b, 0x4f, 0x65, 0x70, 0xfe, 0x7d, 0xe9, 0x1a, 0xcf, 0x4b, 0xd7, 0xf8, 0xb3, 0x74, 0x8d,
  1342. 0x6f, 0x2b, 0x77, 0xef, 0x79, 0xe5, 0xee, 0xfd, 0x5e, 0xb9, 0x7b, 0x5f, 0xf6, 0x17, 0xfd, 0x49,
  1343. 0x13, 0xff, 0x9e, 0xef, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x53, 0xf7, 0x74, 0xea, 0x03,
  1344. 0x00, 0x00,
  1345. }