feed.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: feed.proto
  3. /*
  4. Package model is a generated protocol buffer package.
  5. It is generated from these files:
  6. feed.proto
  7. It has these top-level messages:
  8. NewEp
  9. Bangumi
  10. */
  11. package model
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. import _ "github.com/gogo/protobuf/gogoproto"
  16. import io "io"
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type NewEp struct {
  27. Cover string `protobuf:"bytes,1,opt,name=Cover,proto3" json:"cover"`
  28. Dm int64 `protobuf:"varint,2,opt,name=Dm,proto3" json:"dm"`
  29. EpisodeID int64 `protobuf:"varint,3,opt,name=EpisodeID,proto3" json:"episode_id"`
  30. Index string `protobuf:"bytes,4,opt,name=Index,proto3" json:"index"`
  31. IndexTitle string `protobuf:"bytes,5,opt,name=IndexTitle,proto3" json:"index_title"`
  32. Play int64 `protobuf:"varint,6,opt,name=Play,proto3" json:"play"`
  33. }
  34. func (m *NewEp) Reset() { *m = NewEp{} }
  35. func (m *NewEp) String() string { return proto.CompactTextString(m) }
  36. func (*NewEp) ProtoMessage() {}
  37. func (*NewEp) Descriptor() ([]byte, []int) { return fileDescriptorFeed, []int{0} }
  38. type Bangumi struct {
  39. BgmType int32 `protobuf:"varint,1,opt,name=BgmType,proto3" json:"bgm_type"`
  40. Cover string `protobuf:"bytes,2,opt,name=Cover,proto3" json:"cover"`
  41. IsFinish int32 `protobuf:"varint,3,opt,name=IsFinish,proto3" json:"is_finish"`
  42. NewEp NewEp `protobuf:"bytes,4,opt,name=NewEp" json:"new_ep"`
  43. SeasonID int64 `protobuf:"varint,5,opt,name=SeasonID,proto3" json:"season_id"`
  44. Title string `protobuf:"bytes,6,opt,name=Title,proto3" json:"title"`
  45. TotalCount int64 `protobuf:"varint,7,opt,name=TotalCount,proto3" json:"total_count"`
  46. Ts int64 `protobuf:"varint,8,opt,name=Ts,proto3" json:"ts"`
  47. }
  48. func (m *Bangumi) Reset() { *m = Bangumi{} }
  49. func (m *Bangumi) String() string { return proto.CompactTextString(m) }
  50. func (*Bangumi) ProtoMessage() {}
  51. func (*Bangumi) Descriptor() ([]byte, []int) { return fileDescriptorFeed, []int{1} }
  52. func init() {
  53. proto.RegisterType((*NewEp)(nil), "model.NewEp")
  54. proto.RegisterType((*Bangumi)(nil), "model.Bangumi")
  55. }
  56. func (m *NewEp) Marshal() (dAtA []byte, err error) {
  57. size := m.Size()
  58. dAtA = make([]byte, size)
  59. n, err := m.MarshalTo(dAtA)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return dAtA[:n], nil
  64. }
  65. func (m *NewEp) MarshalTo(dAtA []byte) (int, error) {
  66. var i int
  67. _ = i
  68. var l int
  69. _ = l
  70. if len(m.Cover) > 0 {
  71. dAtA[i] = 0xa
  72. i++
  73. i = encodeVarintFeed(dAtA, i, uint64(len(m.Cover)))
  74. i += copy(dAtA[i:], m.Cover)
  75. }
  76. if m.Dm != 0 {
  77. dAtA[i] = 0x10
  78. i++
  79. i = encodeVarintFeed(dAtA, i, uint64(m.Dm))
  80. }
  81. if m.EpisodeID != 0 {
  82. dAtA[i] = 0x18
  83. i++
  84. i = encodeVarintFeed(dAtA, i, uint64(m.EpisodeID))
  85. }
  86. if len(m.Index) > 0 {
  87. dAtA[i] = 0x22
  88. i++
  89. i = encodeVarintFeed(dAtA, i, uint64(len(m.Index)))
  90. i += copy(dAtA[i:], m.Index)
  91. }
  92. if len(m.IndexTitle) > 0 {
  93. dAtA[i] = 0x2a
  94. i++
  95. i = encodeVarintFeed(dAtA, i, uint64(len(m.IndexTitle)))
  96. i += copy(dAtA[i:], m.IndexTitle)
  97. }
  98. if m.Play != 0 {
  99. dAtA[i] = 0x30
  100. i++
  101. i = encodeVarintFeed(dAtA, i, uint64(m.Play))
  102. }
  103. return i, nil
  104. }
  105. func (m *Bangumi) Marshal() (dAtA []byte, err error) {
  106. size := m.Size()
  107. dAtA = make([]byte, size)
  108. n, err := m.MarshalTo(dAtA)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return dAtA[:n], nil
  113. }
  114. func (m *Bangumi) MarshalTo(dAtA []byte) (int, error) {
  115. var i int
  116. _ = i
  117. var l int
  118. _ = l
  119. if m.BgmType != 0 {
  120. dAtA[i] = 0x8
  121. i++
  122. i = encodeVarintFeed(dAtA, i, uint64(m.BgmType))
  123. }
  124. if len(m.Cover) > 0 {
  125. dAtA[i] = 0x12
  126. i++
  127. i = encodeVarintFeed(dAtA, i, uint64(len(m.Cover)))
  128. i += copy(dAtA[i:], m.Cover)
  129. }
  130. if m.IsFinish != 0 {
  131. dAtA[i] = 0x18
  132. i++
  133. i = encodeVarintFeed(dAtA, i, uint64(m.IsFinish))
  134. }
  135. dAtA[i] = 0x22
  136. i++
  137. i = encodeVarintFeed(dAtA, i, uint64(m.NewEp.Size()))
  138. n1, err := m.NewEp.MarshalTo(dAtA[i:])
  139. if err != nil {
  140. return 0, err
  141. }
  142. i += n1
  143. if m.SeasonID != 0 {
  144. dAtA[i] = 0x28
  145. i++
  146. i = encodeVarintFeed(dAtA, i, uint64(m.SeasonID))
  147. }
  148. if len(m.Title) > 0 {
  149. dAtA[i] = 0x32
  150. i++
  151. i = encodeVarintFeed(dAtA, i, uint64(len(m.Title)))
  152. i += copy(dAtA[i:], m.Title)
  153. }
  154. if m.TotalCount != 0 {
  155. dAtA[i] = 0x38
  156. i++
  157. i = encodeVarintFeed(dAtA, i, uint64(m.TotalCount))
  158. }
  159. if m.Ts != 0 {
  160. dAtA[i] = 0x40
  161. i++
  162. i = encodeVarintFeed(dAtA, i, uint64(m.Ts))
  163. }
  164. return i, nil
  165. }
  166. func encodeVarintFeed(dAtA []byte, offset int, v uint64) int {
  167. for v >= 1<<7 {
  168. dAtA[offset] = uint8(v&0x7f | 0x80)
  169. v >>= 7
  170. offset++
  171. }
  172. dAtA[offset] = uint8(v)
  173. return offset + 1
  174. }
  175. func (m *NewEp) Size() (n int) {
  176. var l int
  177. _ = l
  178. l = len(m.Cover)
  179. if l > 0 {
  180. n += 1 + l + sovFeed(uint64(l))
  181. }
  182. if m.Dm != 0 {
  183. n += 1 + sovFeed(uint64(m.Dm))
  184. }
  185. if m.EpisodeID != 0 {
  186. n += 1 + sovFeed(uint64(m.EpisodeID))
  187. }
  188. l = len(m.Index)
  189. if l > 0 {
  190. n += 1 + l + sovFeed(uint64(l))
  191. }
  192. l = len(m.IndexTitle)
  193. if l > 0 {
  194. n += 1 + l + sovFeed(uint64(l))
  195. }
  196. if m.Play != 0 {
  197. n += 1 + sovFeed(uint64(m.Play))
  198. }
  199. return n
  200. }
  201. func (m *Bangumi) Size() (n int) {
  202. var l int
  203. _ = l
  204. if m.BgmType != 0 {
  205. n += 1 + sovFeed(uint64(m.BgmType))
  206. }
  207. l = len(m.Cover)
  208. if l > 0 {
  209. n += 1 + l + sovFeed(uint64(l))
  210. }
  211. if m.IsFinish != 0 {
  212. n += 1 + sovFeed(uint64(m.IsFinish))
  213. }
  214. l = m.NewEp.Size()
  215. n += 1 + l + sovFeed(uint64(l))
  216. if m.SeasonID != 0 {
  217. n += 1 + sovFeed(uint64(m.SeasonID))
  218. }
  219. l = len(m.Title)
  220. if l > 0 {
  221. n += 1 + l + sovFeed(uint64(l))
  222. }
  223. if m.TotalCount != 0 {
  224. n += 1 + sovFeed(uint64(m.TotalCount))
  225. }
  226. if m.Ts != 0 {
  227. n += 1 + sovFeed(uint64(m.Ts))
  228. }
  229. return n
  230. }
  231. func sovFeed(x uint64) (n int) {
  232. for {
  233. n++
  234. x >>= 7
  235. if x == 0 {
  236. break
  237. }
  238. }
  239. return n
  240. }
  241. func sozFeed(x uint64) (n int) {
  242. return sovFeed(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  243. }
  244. func (m *NewEp) Unmarshal(dAtA []byte) error {
  245. l := len(dAtA)
  246. iNdEx := 0
  247. for iNdEx < l {
  248. preIndex := iNdEx
  249. var wire uint64
  250. for shift := uint(0); ; shift += 7 {
  251. if shift >= 64 {
  252. return ErrIntOverflowFeed
  253. }
  254. if iNdEx >= l {
  255. return io.ErrUnexpectedEOF
  256. }
  257. b := dAtA[iNdEx]
  258. iNdEx++
  259. wire |= (uint64(b) & 0x7F) << shift
  260. if b < 0x80 {
  261. break
  262. }
  263. }
  264. fieldNum := int32(wire >> 3)
  265. wireType := int(wire & 0x7)
  266. if wireType == 4 {
  267. return fmt.Errorf("proto: NewEp: wiretype end group for non-group")
  268. }
  269. if fieldNum <= 0 {
  270. return fmt.Errorf("proto: NewEp: illegal tag %d (wire type %d)", fieldNum, wire)
  271. }
  272. switch fieldNum {
  273. case 1:
  274. if wireType != 2 {
  275. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  276. }
  277. var stringLen uint64
  278. for shift := uint(0); ; shift += 7 {
  279. if shift >= 64 {
  280. return ErrIntOverflowFeed
  281. }
  282. if iNdEx >= l {
  283. return io.ErrUnexpectedEOF
  284. }
  285. b := dAtA[iNdEx]
  286. iNdEx++
  287. stringLen |= (uint64(b) & 0x7F) << shift
  288. if b < 0x80 {
  289. break
  290. }
  291. }
  292. intStringLen := int(stringLen)
  293. if intStringLen < 0 {
  294. return ErrInvalidLengthFeed
  295. }
  296. postIndex := iNdEx + intStringLen
  297. if postIndex > l {
  298. return io.ErrUnexpectedEOF
  299. }
  300. m.Cover = string(dAtA[iNdEx:postIndex])
  301. iNdEx = postIndex
  302. case 2:
  303. if wireType != 0 {
  304. return fmt.Errorf("proto: wrong wireType = %d for field Dm", wireType)
  305. }
  306. m.Dm = 0
  307. for shift := uint(0); ; shift += 7 {
  308. if shift >= 64 {
  309. return ErrIntOverflowFeed
  310. }
  311. if iNdEx >= l {
  312. return io.ErrUnexpectedEOF
  313. }
  314. b := dAtA[iNdEx]
  315. iNdEx++
  316. m.Dm |= (int64(b) & 0x7F) << shift
  317. if b < 0x80 {
  318. break
  319. }
  320. }
  321. case 3:
  322. if wireType != 0 {
  323. return fmt.Errorf("proto: wrong wireType = %d for field EpisodeID", wireType)
  324. }
  325. m.EpisodeID = 0
  326. for shift := uint(0); ; shift += 7 {
  327. if shift >= 64 {
  328. return ErrIntOverflowFeed
  329. }
  330. if iNdEx >= l {
  331. return io.ErrUnexpectedEOF
  332. }
  333. b := dAtA[iNdEx]
  334. iNdEx++
  335. m.EpisodeID |= (int64(b) & 0x7F) << shift
  336. if b < 0x80 {
  337. break
  338. }
  339. }
  340. case 4:
  341. if wireType != 2 {
  342. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  343. }
  344. var stringLen uint64
  345. for shift := uint(0); ; shift += 7 {
  346. if shift >= 64 {
  347. return ErrIntOverflowFeed
  348. }
  349. if iNdEx >= l {
  350. return io.ErrUnexpectedEOF
  351. }
  352. b := dAtA[iNdEx]
  353. iNdEx++
  354. stringLen |= (uint64(b) & 0x7F) << shift
  355. if b < 0x80 {
  356. break
  357. }
  358. }
  359. intStringLen := int(stringLen)
  360. if intStringLen < 0 {
  361. return ErrInvalidLengthFeed
  362. }
  363. postIndex := iNdEx + intStringLen
  364. if postIndex > l {
  365. return io.ErrUnexpectedEOF
  366. }
  367. m.Index = string(dAtA[iNdEx:postIndex])
  368. iNdEx = postIndex
  369. case 5:
  370. if wireType != 2 {
  371. return fmt.Errorf("proto: wrong wireType = %d for field IndexTitle", wireType)
  372. }
  373. var stringLen uint64
  374. for shift := uint(0); ; shift += 7 {
  375. if shift >= 64 {
  376. return ErrIntOverflowFeed
  377. }
  378. if iNdEx >= l {
  379. return io.ErrUnexpectedEOF
  380. }
  381. b := dAtA[iNdEx]
  382. iNdEx++
  383. stringLen |= (uint64(b) & 0x7F) << shift
  384. if b < 0x80 {
  385. break
  386. }
  387. }
  388. intStringLen := int(stringLen)
  389. if intStringLen < 0 {
  390. return ErrInvalidLengthFeed
  391. }
  392. postIndex := iNdEx + intStringLen
  393. if postIndex > l {
  394. return io.ErrUnexpectedEOF
  395. }
  396. m.IndexTitle = string(dAtA[iNdEx:postIndex])
  397. iNdEx = postIndex
  398. case 6:
  399. if wireType != 0 {
  400. return fmt.Errorf("proto: wrong wireType = %d for field Play", wireType)
  401. }
  402. m.Play = 0
  403. for shift := uint(0); ; shift += 7 {
  404. if shift >= 64 {
  405. return ErrIntOverflowFeed
  406. }
  407. if iNdEx >= l {
  408. return io.ErrUnexpectedEOF
  409. }
  410. b := dAtA[iNdEx]
  411. iNdEx++
  412. m.Play |= (int64(b) & 0x7F) << shift
  413. if b < 0x80 {
  414. break
  415. }
  416. }
  417. default:
  418. iNdEx = preIndex
  419. skippy, err := skipFeed(dAtA[iNdEx:])
  420. if err != nil {
  421. return err
  422. }
  423. if skippy < 0 {
  424. return ErrInvalidLengthFeed
  425. }
  426. if (iNdEx + skippy) > l {
  427. return io.ErrUnexpectedEOF
  428. }
  429. iNdEx += skippy
  430. }
  431. }
  432. if iNdEx > l {
  433. return io.ErrUnexpectedEOF
  434. }
  435. return nil
  436. }
  437. func (m *Bangumi) Unmarshal(dAtA []byte) error {
  438. l := len(dAtA)
  439. iNdEx := 0
  440. for iNdEx < l {
  441. preIndex := iNdEx
  442. var wire uint64
  443. for shift := uint(0); ; shift += 7 {
  444. if shift >= 64 {
  445. return ErrIntOverflowFeed
  446. }
  447. if iNdEx >= l {
  448. return io.ErrUnexpectedEOF
  449. }
  450. b := dAtA[iNdEx]
  451. iNdEx++
  452. wire |= (uint64(b) & 0x7F) << shift
  453. if b < 0x80 {
  454. break
  455. }
  456. }
  457. fieldNum := int32(wire >> 3)
  458. wireType := int(wire & 0x7)
  459. if wireType == 4 {
  460. return fmt.Errorf("proto: Bangumi: wiretype end group for non-group")
  461. }
  462. if fieldNum <= 0 {
  463. return fmt.Errorf("proto: Bangumi: illegal tag %d (wire type %d)", fieldNum, wire)
  464. }
  465. switch fieldNum {
  466. case 1:
  467. if wireType != 0 {
  468. return fmt.Errorf("proto: wrong wireType = %d for field BgmType", wireType)
  469. }
  470. m.BgmType = 0
  471. for shift := uint(0); ; shift += 7 {
  472. if shift >= 64 {
  473. return ErrIntOverflowFeed
  474. }
  475. if iNdEx >= l {
  476. return io.ErrUnexpectedEOF
  477. }
  478. b := dAtA[iNdEx]
  479. iNdEx++
  480. m.BgmType |= (int32(b) & 0x7F) << shift
  481. if b < 0x80 {
  482. break
  483. }
  484. }
  485. case 2:
  486. if wireType != 2 {
  487. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  488. }
  489. var stringLen uint64
  490. for shift := uint(0); ; shift += 7 {
  491. if shift >= 64 {
  492. return ErrIntOverflowFeed
  493. }
  494. if iNdEx >= l {
  495. return io.ErrUnexpectedEOF
  496. }
  497. b := dAtA[iNdEx]
  498. iNdEx++
  499. stringLen |= (uint64(b) & 0x7F) << shift
  500. if b < 0x80 {
  501. break
  502. }
  503. }
  504. intStringLen := int(stringLen)
  505. if intStringLen < 0 {
  506. return ErrInvalidLengthFeed
  507. }
  508. postIndex := iNdEx + intStringLen
  509. if postIndex > l {
  510. return io.ErrUnexpectedEOF
  511. }
  512. m.Cover = string(dAtA[iNdEx:postIndex])
  513. iNdEx = postIndex
  514. case 3:
  515. if wireType != 0 {
  516. return fmt.Errorf("proto: wrong wireType = %d for field IsFinish", wireType)
  517. }
  518. m.IsFinish = 0
  519. for shift := uint(0); ; shift += 7 {
  520. if shift >= 64 {
  521. return ErrIntOverflowFeed
  522. }
  523. if iNdEx >= l {
  524. return io.ErrUnexpectedEOF
  525. }
  526. b := dAtA[iNdEx]
  527. iNdEx++
  528. m.IsFinish |= (int32(b) & 0x7F) << shift
  529. if b < 0x80 {
  530. break
  531. }
  532. }
  533. case 4:
  534. if wireType != 2 {
  535. return fmt.Errorf("proto: wrong wireType = %d for field NewEp", wireType)
  536. }
  537. var msglen int
  538. for shift := uint(0); ; shift += 7 {
  539. if shift >= 64 {
  540. return ErrIntOverflowFeed
  541. }
  542. if iNdEx >= l {
  543. return io.ErrUnexpectedEOF
  544. }
  545. b := dAtA[iNdEx]
  546. iNdEx++
  547. msglen |= (int(b) & 0x7F) << shift
  548. if b < 0x80 {
  549. break
  550. }
  551. }
  552. if msglen < 0 {
  553. return ErrInvalidLengthFeed
  554. }
  555. postIndex := iNdEx + msglen
  556. if postIndex > l {
  557. return io.ErrUnexpectedEOF
  558. }
  559. if err := m.NewEp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  560. return err
  561. }
  562. iNdEx = postIndex
  563. case 5:
  564. if wireType != 0 {
  565. return fmt.Errorf("proto: wrong wireType = %d for field SeasonID", wireType)
  566. }
  567. m.SeasonID = 0
  568. for shift := uint(0); ; shift += 7 {
  569. if shift >= 64 {
  570. return ErrIntOverflowFeed
  571. }
  572. if iNdEx >= l {
  573. return io.ErrUnexpectedEOF
  574. }
  575. b := dAtA[iNdEx]
  576. iNdEx++
  577. m.SeasonID |= (int64(b) & 0x7F) << shift
  578. if b < 0x80 {
  579. break
  580. }
  581. }
  582. case 6:
  583. if wireType != 2 {
  584. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  585. }
  586. var stringLen uint64
  587. for shift := uint(0); ; shift += 7 {
  588. if shift >= 64 {
  589. return ErrIntOverflowFeed
  590. }
  591. if iNdEx >= l {
  592. return io.ErrUnexpectedEOF
  593. }
  594. b := dAtA[iNdEx]
  595. iNdEx++
  596. stringLen |= (uint64(b) & 0x7F) << shift
  597. if b < 0x80 {
  598. break
  599. }
  600. }
  601. intStringLen := int(stringLen)
  602. if intStringLen < 0 {
  603. return ErrInvalidLengthFeed
  604. }
  605. postIndex := iNdEx + intStringLen
  606. if postIndex > l {
  607. return io.ErrUnexpectedEOF
  608. }
  609. m.Title = string(dAtA[iNdEx:postIndex])
  610. iNdEx = postIndex
  611. case 7:
  612. if wireType != 0 {
  613. return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType)
  614. }
  615. m.TotalCount = 0
  616. for shift := uint(0); ; shift += 7 {
  617. if shift >= 64 {
  618. return ErrIntOverflowFeed
  619. }
  620. if iNdEx >= l {
  621. return io.ErrUnexpectedEOF
  622. }
  623. b := dAtA[iNdEx]
  624. iNdEx++
  625. m.TotalCount |= (int64(b) & 0x7F) << shift
  626. if b < 0x80 {
  627. break
  628. }
  629. }
  630. case 8:
  631. if wireType != 0 {
  632. return fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType)
  633. }
  634. m.Ts = 0
  635. for shift := uint(0); ; shift += 7 {
  636. if shift >= 64 {
  637. return ErrIntOverflowFeed
  638. }
  639. if iNdEx >= l {
  640. return io.ErrUnexpectedEOF
  641. }
  642. b := dAtA[iNdEx]
  643. iNdEx++
  644. m.Ts |= (int64(b) & 0x7F) << shift
  645. if b < 0x80 {
  646. break
  647. }
  648. }
  649. default:
  650. iNdEx = preIndex
  651. skippy, err := skipFeed(dAtA[iNdEx:])
  652. if err != nil {
  653. return err
  654. }
  655. if skippy < 0 {
  656. return ErrInvalidLengthFeed
  657. }
  658. if (iNdEx + skippy) > l {
  659. return io.ErrUnexpectedEOF
  660. }
  661. iNdEx += skippy
  662. }
  663. }
  664. if iNdEx > l {
  665. return io.ErrUnexpectedEOF
  666. }
  667. return nil
  668. }
  669. func skipFeed(dAtA []byte) (n int, err error) {
  670. l := len(dAtA)
  671. iNdEx := 0
  672. for iNdEx < l {
  673. var wire uint64
  674. for shift := uint(0); ; shift += 7 {
  675. if shift >= 64 {
  676. return 0, ErrIntOverflowFeed
  677. }
  678. if iNdEx >= l {
  679. return 0, io.ErrUnexpectedEOF
  680. }
  681. b := dAtA[iNdEx]
  682. iNdEx++
  683. wire |= (uint64(b) & 0x7F) << shift
  684. if b < 0x80 {
  685. break
  686. }
  687. }
  688. wireType := int(wire & 0x7)
  689. switch wireType {
  690. case 0:
  691. for shift := uint(0); ; shift += 7 {
  692. if shift >= 64 {
  693. return 0, ErrIntOverflowFeed
  694. }
  695. if iNdEx >= l {
  696. return 0, io.ErrUnexpectedEOF
  697. }
  698. iNdEx++
  699. if dAtA[iNdEx-1] < 0x80 {
  700. break
  701. }
  702. }
  703. return iNdEx, nil
  704. case 1:
  705. iNdEx += 8
  706. return iNdEx, nil
  707. case 2:
  708. var length int
  709. for shift := uint(0); ; shift += 7 {
  710. if shift >= 64 {
  711. return 0, ErrIntOverflowFeed
  712. }
  713. if iNdEx >= l {
  714. return 0, io.ErrUnexpectedEOF
  715. }
  716. b := dAtA[iNdEx]
  717. iNdEx++
  718. length |= (int(b) & 0x7F) << shift
  719. if b < 0x80 {
  720. break
  721. }
  722. }
  723. iNdEx += length
  724. if length < 0 {
  725. return 0, ErrInvalidLengthFeed
  726. }
  727. return iNdEx, nil
  728. case 3:
  729. for {
  730. var innerWire uint64
  731. var start int = iNdEx
  732. for shift := uint(0); ; shift += 7 {
  733. if shift >= 64 {
  734. return 0, ErrIntOverflowFeed
  735. }
  736. if iNdEx >= l {
  737. return 0, io.ErrUnexpectedEOF
  738. }
  739. b := dAtA[iNdEx]
  740. iNdEx++
  741. innerWire |= (uint64(b) & 0x7F) << shift
  742. if b < 0x80 {
  743. break
  744. }
  745. }
  746. innerWireType := int(innerWire & 0x7)
  747. if innerWireType == 4 {
  748. break
  749. }
  750. next, err := skipFeed(dAtA[start:])
  751. if err != nil {
  752. return 0, err
  753. }
  754. iNdEx = start + next
  755. }
  756. return iNdEx, nil
  757. case 4:
  758. return iNdEx, nil
  759. case 5:
  760. iNdEx += 4
  761. return iNdEx, nil
  762. default:
  763. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  764. }
  765. }
  766. panic("unreachable")
  767. }
  768. var (
  769. ErrInvalidLengthFeed = fmt.Errorf("proto: negative length found during unmarshaling")
  770. ErrIntOverflowFeed = fmt.Errorf("proto: integer overflow")
  771. )
  772. func init() { proto.RegisterFile("feed.proto", fileDescriptorFeed) }
  773. var fileDescriptorFeed = []byte{
  774. // 431 bytes of a gzipped FileDescriptorProto
  775. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xd1, 0x6a, 0xdb, 0x30,
  776. 0x14, 0x86, 0x63, 0x27, 0x76, 0x1c, 0xb5, 0xeb, 0xc0, 0x17, 0x43, 0x8c, 0x61, 0x95, 0x5e, 0x8c,
  777. 0x16, 0xb6, 0x04, 0xba, 0x37, 0x70, 0xd3, 0x41, 0x6e, 0xc6, 0xd0, 0x7c, 0x6f, 0x9c, 0x58, 0x71,
  778. 0x05, 0xb6, 0x65, 0x2a, 0x65, 0x9d, 0xdf, 0x64, 0x4f, 0x34, 0x72, 0xd9, 0x27, 0x10, 0x6b, 0x76,
  779. 0xa7, 0xa7, 0x18, 0x3a, 0xea, 0xea, 0xdc, 0xec, 0x4e, 0xfa, 0xfe, 0xdf, 0x3a, 0xe7, 0xfc, 0xc7,
  780. 0x08, 0x6d, 0x19, 0x2b, 0xe7, 0xdd, 0xbd, 0x50, 0x22, 0x0e, 0x1a, 0x51, 0xb2, 0xfa, 0xed, 0xc7,
  781. 0x8a, 0xab, 0xbb, 0xdd, 0x7a, 0xbe, 0x11, 0xcd, 0xa2, 0x12, 0x95, 0x58, 0x80, 0xba, 0xde, 0x6d,
  782. 0xe1, 0x06, 0x17, 0x38, 0xb9, 0xaf, 0x2e, 0xb4, 0x87, 0x82, 0x2f, 0xec, 0xe1, 0xb6, 0x8b, 0x09,
  783. 0x0a, 0x6e, 0xc4, 0x77, 0x76, 0x8f, 0xbd, 0x73, 0xef, 0x72, 0x96, 0xce, 0x8c, 0x26, 0xc1, 0xc6,
  784. 0x02, 0xea, 0x78, 0xfc, 0x06, 0xf9, 0xcb, 0x06, 0xfb, 0xe7, 0xde, 0xe5, 0x38, 0x0d, 0x8d, 0x26,
  785. 0x7e, 0xd9, 0x50, 0x7f, 0xd9, 0xc4, 0x1f, 0xd0, 0xec, 0xb6, 0xe3, 0x52, 0x94, 0x6c, 0xb5, 0xc4,
  786. 0x63, 0x90, 0xcf, 0x8c, 0x26, 0x88, 0x39, 0x98, 0xf3, 0x92, 0x0e, 0x06, 0x5b, 0x66, 0xd5, 0x96,
  787. 0xec, 0x07, 0x9e, 0x0c, 0x65, 0xb8, 0x05, 0xd4, 0xf1, 0x78, 0x81, 0x10, 0x1c, 0x32, 0xae, 0x6a,
  788. 0x86, 0x03, 0x70, 0xbd, 0x36, 0x9a, 0x9c, 0x80, 0x2b, 0x57, 0x16, 0xd3, 0x23, 0x4b, 0xfc, 0x0e,
  789. 0x4d, 0xbe, 0xd6, 0x45, 0x8f, 0x43, 0x28, 0x1d, 0x19, 0x4d, 0x26, 0x5d, 0x5d, 0xf4, 0x14, 0xe8,
  790. 0xc5, 0x2f, 0x1f, 0x4d, 0xd3, 0xa2, 0xad, 0x76, 0x0d, 0x8f, 0xdf, 0xa3, 0x69, 0x5a, 0x35, 0x59,
  791. 0xdf, 0x31, 0x18, 0x32, 0x48, 0x4f, 0x8d, 0x26, 0xd1, 0xba, 0x6a, 0x72, 0xd5, 0x77, 0x8c, 0xfe,
  792. 0x13, 0x87, 0x28, 0xfc, 0xff, 0x44, 0x71, 0x85, 0xa2, 0x95, 0xfc, 0xcc, 0x5b, 0x2e, 0xef, 0x60,
  793. 0xe2, 0x20, 0x7d, 0x65, 0x34, 0x99, 0x71, 0x99, 0x6f, 0x01, 0xd2, 0x17, 0x39, 0xbe, 0x7e, 0xce,
  794. 0x17, 0xe6, 0x3d, 0xb9, 0x3e, 0x9d, 0xc3, 0x9a, 0xe6, 0xc0, 0xd2, 0xb3, 0xbd, 0x26, 0x23, 0xa3,
  795. 0x49, 0xd8, 0xb2, 0x87, 0x9c, 0x75, 0xf4, 0x79, 0x15, 0x57, 0x28, 0xfa, 0xc6, 0x0a, 0x29, 0xda,
  796. 0xd5, 0x12, 0x02, 0x18, 0xbb, 0xe7, 0x25, 0x30, 0x9b, 0xe7, 0x8b, 0x6c, 0x5b, 0x75, 0x41, 0x85,
  797. 0x43, 0xab, 0x2e, 0x22, 0xc7, 0x6d, 0x9c, 0x99, 0x50, 0x45, 0x7d, 0x23, 0x76, 0xad, 0xc2, 0x53,
  798. 0x78, 0x0d, 0xe2, 0x54, 0x96, 0xe6, 0x1b, 0x8b, 0xe9, 0x91, 0xc5, 0xae, 0x39, 0x93, 0x38, 0x1a,
  799. 0xd6, 0xac, 0x24, 0xf5, 0x33, 0x99, 0xe2, 0xfd, 0x53, 0x32, 0x7a, 0x7c, 0x4a, 0x46, 0xfb, 0x43,
  800. 0xe2, 0x3d, 0x1e, 0x12, 0xef, 0xf7, 0x21, 0xf1, 0x7e, 0xfe, 0x49, 0x46, 0xeb, 0x10, 0x7e, 0xa5,
  801. 0x4f, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x54, 0x10, 0x16, 0x1a, 0x8e, 0x02, 0x00, 0x00,
  802. }