up.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/up/api/v1/up.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // UpActivity up主活跃度信息
  14. type UpActivity struct {
  15. // mid up主id
  16. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid"`
  17. // activity 活跃度
  18. Activity int8 `protobuf:"varint,2,opt,name=activity,proto3,casttype=int8" json:"activity"`
  19. }
  20. func (m *UpActivity) Reset() { *m = UpActivity{} }
  21. func (m *UpActivity) String() string { return proto.CompactTextString(m) }
  22. func (*UpActivity) ProtoMessage() {}
  23. func (*UpActivity) Descriptor() ([]byte, []int) { return fileDescriptorUp, []int{0} }
  24. func (m *UpActivity) GetMid() int64 {
  25. if m != nil {
  26. return m.Mid
  27. }
  28. return 0
  29. }
  30. func (m *UpActivity) GetActivity() int8 {
  31. if m != nil {
  32. return m.Activity
  33. }
  34. return 0
  35. }
  36. // UpGroup up主的特殊用户组信息
  37. type UpGroup struct {
  38. // id 分组ID
  39. ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  40. // name 分组名
  41. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  42. // tag 标签名称
  43. Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag"`
  44. // tag 标签简称
  45. ShortTag string `protobuf:"bytes,4,opt,name=short_tag,json=shortTag,proto3" json:"short_tag"`
  46. // font_color 字体色
  47. FontColor string `protobuf:"bytes,5,opt,name=font_color,json=fontColor,proto3" json:"font_color"`
  48. // bg_color 背景色
  49. BgColor string `protobuf:"bytes,6,opt,name=bg_color,json=bgColor,proto3" json:"bg_color"`
  50. // note 备注
  51. Note string `protobuf:"bytes,7,opt,name=note,proto3" json:"note"`
  52. }
  53. func (m *UpGroup) Reset() { *m = UpGroup{} }
  54. func (m *UpGroup) String() string { return proto.CompactTextString(m) }
  55. func (*UpGroup) ProtoMessage() {}
  56. func (*UpGroup) Descriptor() ([]byte, []int) { return fileDescriptorUp, []int{1} }
  57. func (m *UpGroup) GetID() int64 {
  58. if m != nil {
  59. return m.ID
  60. }
  61. return 0
  62. }
  63. func (m *UpGroup) GetName() string {
  64. if m != nil {
  65. return m.Name
  66. }
  67. return ""
  68. }
  69. func (m *UpGroup) GetTag() string {
  70. if m != nil {
  71. return m.Tag
  72. }
  73. return ""
  74. }
  75. func (m *UpGroup) GetShortTag() string {
  76. if m != nil {
  77. return m.ShortTag
  78. }
  79. return ""
  80. }
  81. func (m *UpGroup) GetFontColor() string {
  82. if m != nil {
  83. return m.FontColor
  84. }
  85. return ""
  86. }
  87. func (m *UpGroup) GetBgColor() string {
  88. if m != nil {
  89. return m.BgColor
  90. }
  91. return ""
  92. }
  93. func (m *UpGroup) GetNote() string {
  94. if m != nil {
  95. return m.Note
  96. }
  97. return ""
  98. }
  99. // UpSpecial up主的特殊属性
  100. type UpSpecial struct {
  101. // group_ids 特殊属性数组
  102. GroupIDs []int64 `protobuf:"varint,1,rep,packed,name=group_ids,json=groupIds" json:"group_ids"`
  103. }
  104. func (m *UpSpecial) Reset() { *m = UpSpecial{} }
  105. func (m *UpSpecial) String() string { return proto.CompactTextString(m) }
  106. func (*UpSpecial) ProtoMessage() {}
  107. func (*UpSpecial) Descriptor() ([]byte, []int) { return fileDescriptorUp, []int{2} }
  108. func (m *UpSpecial) GetGroupIDs() []int64 {
  109. if m != nil {
  110. return m.GroupIDs
  111. }
  112. return nil
  113. }
  114. func init() {
  115. proto.RegisterType((*UpActivity)(nil), "archive.service.up.v1.UpActivity")
  116. proto.RegisterType((*UpGroup)(nil), "archive.service.up.v1.UpGroup")
  117. proto.RegisterType((*UpSpecial)(nil), "archive.service.up.v1.UpSpecial")
  118. }
  119. func (m *UpActivity) Marshal() (dAtA []byte, err error) {
  120. size := m.Size()
  121. dAtA = make([]byte, size)
  122. n, err := m.MarshalTo(dAtA)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return dAtA[:n], nil
  127. }
  128. func (m *UpActivity) MarshalTo(dAtA []byte) (int, error) {
  129. var i int
  130. _ = i
  131. var l int
  132. _ = l
  133. if m.Mid != 0 {
  134. dAtA[i] = 0x8
  135. i++
  136. i = encodeVarintUp(dAtA, i, uint64(m.Mid))
  137. }
  138. if m.Activity != 0 {
  139. dAtA[i] = 0x10
  140. i++
  141. i = encodeVarintUp(dAtA, i, uint64(m.Activity))
  142. }
  143. return i, nil
  144. }
  145. func (m *UpGroup) Marshal() (dAtA []byte, err error) {
  146. size := m.Size()
  147. dAtA = make([]byte, size)
  148. n, err := m.MarshalTo(dAtA)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return dAtA[:n], nil
  153. }
  154. func (m *UpGroup) MarshalTo(dAtA []byte) (int, error) {
  155. var i int
  156. _ = i
  157. var l int
  158. _ = l
  159. if m.ID != 0 {
  160. dAtA[i] = 0x8
  161. i++
  162. i = encodeVarintUp(dAtA, i, uint64(m.ID))
  163. }
  164. if len(m.Name) > 0 {
  165. dAtA[i] = 0x12
  166. i++
  167. i = encodeVarintUp(dAtA, i, uint64(len(m.Name)))
  168. i += copy(dAtA[i:], m.Name)
  169. }
  170. if len(m.Tag) > 0 {
  171. dAtA[i] = 0x1a
  172. i++
  173. i = encodeVarintUp(dAtA, i, uint64(len(m.Tag)))
  174. i += copy(dAtA[i:], m.Tag)
  175. }
  176. if len(m.ShortTag) > 0 {
  177. dAtA[i] = 0x22
  178. i++
  179. i = encodeVarintUp(dAtA, i, uint64(len(m.ShortTag)))
  180. i += copy(dAtA[i:], m.ShortTag)
  181. }
  182. if len(m.FontColor) > 0 {
  183. dAtA[i] = 0x2a
  184. i++
  185. i = encodeVarintUp(dAtA, i, uint64(len(m.FontColor)))
  186. i += copy(dAtA[i:], m.FontColor)
  187. }
  188. if len(m.BgColor) > 0 {
  189. dAtA[i] = 0x32
  190. i++
  191. i = encodeVarintUp(dAtA, i, uint64(len(m.BgColor)))
  192. i += copy(dAtA[i:], m.BgColor)
  193. }
  194. if len(m.Note) > 0 {
  195. dAtA[i] = 0x3a
  196. i++
  197. i = encodeVarintUp(dAtA, i, uint64(len(m.Note)))
  198. i += copy(dAtA[i:], m.Note)
  199. }
  200. return i, nil
  201. }
  202. func (m *UpSpecial) Marshal() (dAtA []byte, err error) {
  203. size := m.Size()
  204. dAtA = make([]byte, size)
  205. n, err := m.MarshalTo(dAtA)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return dAtA[:n], nil
  210. }
  211. func (m *UpSpecial) MarshalTo(dAtA []byte) (int, error) {
  212. var i int
  213. _ = i
  214. var l int
  215. _ = l
  216. if len(m.GroupIDs) > 0 {
  217. dAtA2 := make([]byte, len(m.GroupIDs)*10)
  218. var j1 int
  219. for _, num1 := range m.GroupIDs {
  220. num := uint64(num1)
  221. for num >= 1<<7 {
  222. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  223. num >>= 7
  224. j1++
  225. }
  226. dAtA2[j1] = uint8(num)
  227. j1++
  228. }
  229. dAtA[i] = 0xa
  230. i++
  231. i = encodeVarintUp(dAtA, i, uint64(j1))
  232. i += copy(dAtA[i:], dAtA2[:j1])
  233. }
  234. return i, nil
  235. }
  236. func encodeVarintUp(dAtA []byte, offset int, v uint64) int {
  237. for v >= 1<<7 {
  238. dAtA[offset] = uint8(v&0x7f | 0x80)
  239. v >>= 7
  240. offset++
  241. }
  242. dAtA[offset] = uint8(v)
  243. return offset + 1
  244. }
  245. func (m *UpActivity) Size() (n int) {
  246. var l int
  247. _ = l
  248. if m.Mid != 0 {
  249. n += 1 + sovUp(uint64(m.Mid))
  250. }
  251. if m.Activity != 0 {
  252. n += 1 + sovUp(uint64(m.Activity))
  253. }
  254. return n
  255. }
  256. func (m *UpGroup) Size() (n int) {
  257. var l int
  258. _ = l
  259. if m.ID != 0 {
  260. n += 1 + sovUp(uint64(m.ID))
  261. }
  262. l = len(m.Name)
  263. if l > 0 {
  264. n += 1 + l + sovUp(uint64(l))
  265. }
  266. l = len(m.Tag)
  267. if l > 0 {
  268. n += 1 + l + sovUp(uint64(l))
  269. }
  270. l = len(m.ShortTag)
  271. if l > 0 {
  272. n += 1 + l + sovUp(uint64(l))
  273. }
  274. l = len(m.FontColor)
  275. if l > 0 {
  276. n += 1 + l + sovUp(uint64(l))
  277. }
  278. l = len(m.BgColor)
  279. if l > 0 {
  280. n += 1 + l + sovUp(uint64(l))
  281. }
  282. l = len(m.Note)
  283. if l > 0 {
  284. n += 1 + l + sovUp(uint64(l))
  285. }
  286. return n
  287. }
  288. func (m *UpSpecial) Size() (n int) {
  289. var l int
  290. _ = l
  291. if len(m.GroupIDs) > 0 {
  292. l = 0
  293. for _, e := range m.GroupIDs {
  294. l += sovUp(uint64(e))
  295. }
  296. n += 1 + sovUp(uint64(l)) + l
  297. }
  298. return n
  299. }
  300. func sovUp(x uint64) (n int) {
  301. for {
  302. n++
  303. x >>= 7
  304. if x == 0 {
  305. break
  306. }
  307. }
  308. return n
  309. }
  310. func sozUp(x uint64) (n int) {
  311. return sovUp(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  312. }
  313. func (m *UpActivity) Unmarshal(dAtA []byte) error {
  314. l := len(dAtA)
  315. iNdEx := 0
  316. for iNdEx < l {
  317. preIndex := iNdEx
  318. var wire uint64
  319. for shift := uint(0); ; shift += 7 {
  320. if shift >= 64 {
  321. return ErrIntOverflowUp
  322. }
  323. if iNdEx >= l {
  324. return io.ErrUnexpectedEOF
  325. }
  326. b := dAtA[iNdEx]
  327. iNdEx++
  328. wire |= (uint64(b) & 0x7F) << shift
  329. if b < 0x80 {
  330. break
  331. }
  332. }
  333. fieldNum := int32(wire >> 3)
  334. wireType := int(wire & 0x7)
  335. if wireType == 4 {
  336. return fmt.Errorf("proto: UpActivity: wiretype end group for non-group")
  337. }
  338. if fieldNum <= 0 {
  339. return fmt.Errorf("proto: UpActivity: illegal tag %d (wire type %d)", fieldNum, wire)
  340. }
  341. switch fieldNum {
  342. case 1:
  343. if wireType != 0 {
  344. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  345. }
  346. m.Mid = 0
  347. for shift := uint(0); ; shift += 7 {
  348. if shift >= 64 {
  349. return ErrIntOverflowUp
  350. }
  351. if iNdEx >= l {
  352. return io.ErrUnexpectedEOF
  353. }
  354. b := dAtA[iNdEx]
  355. iNdEx++
  356. m.Mid |= (int64(b) & 0x7F) << shift
  357. if b < 0x80 {
  358. break
  359. }
  360. }
  361. case 2:
  362. if wireType != 0 {
  363. return fmt.Errorf("proto: wrong wireType = %d for field Activity", wireType)
  364. }
  365. m.Activity = 0
  366. for shift := uint(0); ; shift += 7 {
  367. if shift >= 64 {
  368. return ErrIntOverflowUp
  369. }
  370. if iNdEx >= l {
  371. return io.ErrUnexpectedEOF
  372. }
  373. b := dAtA[iNdEx]
  374. iNdEx++
  375. m.Activity |= (int8(b) & 0x7F) << shift
  376. if b < 0x80 {
  377. break
  378. }
  379. }
  380. default:
  381. iNdEx = preIndex
  382. skippy, err := skipUp(dAtA[iNdEx:])
  383. if err != nil {
  384. return err
  385. }
  386. if skippy < 0 {
  387. return ErrInvalidLengthUp
  388. }
  389. if (iNdEx + skippy) > l {
  390. return io.ErrUnexpectedEOF
  391. }
  392. iNdEx += skippy
  393. }
  394. }
  395. if iNdEx > l {
  396. return io.ErrUnexpectedEOF
  397. }
  398. return nil
  399. }
  400. func (m *UpGroup) Unmarshal(dAtA []byte) error {
  401. l := len(dAtA)
  402. iNdEx := 0
  403. for iNdEx < l {
  404. preIndex := iNdEx
  405. var wire uint64
  406. for shift := uint(0); ; shift += 7 {
  407. if shift >= 64 {
  408. return ErrIntOverflowUp
  409. }
  410. if iNdEx >= l {
  411. return io.ErrUnexpectedEOF
  412. }
  413. b := dAtA[iNdEx]
  414. iNdEx++
  415. wire |= (uint64(b) & 0x7F) << shift
  416. if b < 0x80 {
  417. break
  418. }
  419. }
  420. fieldNum := int32(wire >> 3)
  421. wireType := int(wire & 0x7)
  422. if wireType == 4 {
  423. return fmt.Errorf("proto: UpGroup: wiretype end group for non-group")
  424. }
  425. if fieldNum <= 0 {
  426. return fmt.Errorf("proto: UpGroup: illegal tag %d (wire type %d)", fieldNum, wire)
  427. }
  428. switch fieldNum {
  429. case 1:
  430. if wireType != 0 {
  431. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  432. }
  433. m.ID = 0
  434. for shift := uint(0); ; shift += 7 {
  435. if shift >= 64 {
  436. return ErrIntOverflowUp
  437. }
  438. if iNdEx >= l {
  439. return io.ErrUnexpectedEOF
  440. }
  441. b := dAtA[iNdEx]
  442. iNdEx++
  443. m.ID |= (int64(b) & 0x7F) << shift
  444. if b < 0x80 {
  445. break
  446. }
  447. }
  448. case 2:
  449. if wireType != 2 {
  450. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  451. }
  452. var stringLen uint64
  453. for shift := uint(0); ; shift += 7 {
  454. if shift >= 64 {
  455. return ErrIntOverflowUp
  456. }
  457. if iNdEx >= l {
  458. return io.ErrUnexpectedEOF
  459. }
  460. b := dAtA[iNdEx]
  461. iNdEx++
  462. stringLen |= (uint64(b) & 0x7F) << shift
  463. if b < 0x80 {
  464. break
  465. }
  466. }
  467. intStringLen := int(stringLen)
  468. if intStringLen < 0 {
  469. return ErrInvalidLengthUp
  470. }
  471. postIndex := iNdEx + intStringLen
  472. if postIndex > l {
  473. return io.ErrUnexpectedEOF
  474. }
  475. m.Name = string(dAtA[iNdEx:postIndex])
  476. iNdEx = postIndex
  477. case 3:
  478. if wireType != 2 {
  479. return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType)
  480. }
  481. var stringLen uint64
  482. for shift := uint(0); ; shift += 7 {
  483. if shift >= 64 {
  484. return ErrIntOverflowUp
  485. }
  486. if iNdEx >= l {
  487. return io.ErrUnexpectedEOF
  488. }
  489. b := dAtA[iNdEx]
  490. iNdEx++
  491. stringLen |= (uint64(b) & 0x7F) << shift
  492. if b < 0x80 {
  493. break
  494. }
  495. }
  496. intStringLen := int(stringLen)
  497. if intStringLen < 0 {
  498. return ErrInvalidLengthUp
  499. }
  500. postIndex := iNdEx + intStringLen
  501. if postIndex > l {
  502. return io.ErrUnexpectedEOF
  503. }
  504. m.Tag = string(dAtA[iNdEx:postIndex])
  505. iNdEx = postIndex
  506. case 4:
  507. if wireType != 2 {
  508. return fmt.Errorf("proto: wrong wireType = %d for field ShortTag", wireType)
  509. }
  510. var stringLen uint64
  511. for shift := uint(0); ; shift += 7 {
  512. if shift >= 64 {
  513. return ErrIntOverflowUp
  514. }
  515. if iNdEx >= l {
  516. return io.ErrUnexpectedEOF
  517. }
  518. b := dAtA[iNdEx]
  519. iNdEx++
  520. stringLen |= (uint64(b) & 0x7F) << shift
  521. if b < 0x80 {
  522. break
  523. }
  524. }
  525. intStringLen := int(stringLen)
  526. if intStringLen < 0 {
  527. return ErrInvalidLengthUp
  528. }
  529. postIndex := iNdEx + intStringLen
  530. if postIndex > l {
  531. return io.ErrUnexpectedEOF
  532. }
  533. m.ShortTag = string(dAtA[iNdEx:postIndex])
  534. iNdEx = postIndex
  535. case 5:
  536. if wireType != 2 {
  537. return fmt.Errorf("proto: wrong wireType = %d for field FontColor", wireType)
  538. }
  539. var stringLen uint64
  540. for shift := uint(0); ; shift += 7 {
  541. if shift >= 64 {
  542. return ErrIntOverflowUp
  543. }
  544. if iNdEx >= l {
  545. return io.ErrUnexpectedEOF
  546. }
  547. b := dAtA[iNdEx]
  548. iNdEx++
  549. stringLen |= (uint64(b) & 0x7F) << shift
  550. if b < 0x80 {
  551. break
  552. }
  553. }
  554. intStringLen := int(stringLen)
  555. if intStringLen < 0 {
  556. return ErrInvalidLengthUp
  557. }
  558. postIndex := iNdEx + intStringLen
  559. if postIndex > l {
  560. return io.ErrUnexpectedEOF
  561. }
  562. m.FontColor = string(dAtA[iNdEx:postIndex])
  563. iNdEx = postIndex
  564. case 6:
  565. if wireType != 2 {
  566. return fmt.Errorf("proto: wrong wireType = %d for field BgColor", wireType)
  567. }
  568. var stringLen uint64
  569. for shift := uint(0); ; shift += 7 {
  570. if shift >= 64 {
  571. return ErrIntOverflowUp
  572. }
  573. if iNdEx >= l {
  574. return io.ErrUnexpectedEOF
  575. }
  576. b := dAtA[iNdEx]
  577. iNdEx++
  578. stringLen |= (uint64(b) & 0x7F) << shift
  579. if b < 0x80 {
  580. break
  581. }
  582. }
  583. intStringLen := int(stringLen)
  584. if intStringLen < 0 {
  585. return ErrInvalidLengthUp
  586. }
  587. postIndex := iNdEx + intStringLen
  588. if postIndex > l {
  589. return io.ErrUnexpectedEOF
  590. }
  591. m.BgColor = string(dAtA[iNdEx:postIndex])
  592. iNdEx = postIndex
  593. case 7:
  594. if wireType != 2 {
  595. return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType)
  596. }
  597. var stringLen uint64
  598. for shift := uint(0); ; shift += 7 {
  599. if shift >= 64 {
  600. return ErrIntOverflowUp
  601. }
  602. if iNdEx >= l {
  603. return io.ErrUnexpectedEOF
  604. }
  605. b := dAtA[iNdEx]
  606. iNdEx++
  607. stringLen |= (uint64(b) & 0x7F) << shift
  608. if b < 0x80 {
  609. break
  610. }
  611. }
  612. intStringLen := int(stringLen)
  613. if intStringLen < 0 {
  614. return ErrInvalidLengthUp
  615. }
  616. postIndex := iNdEx + intStringLen
  617. if postIndex > l {
  618. return io.ErrUnexpectedEOF
  619. }
  620. m.Note = string(dAtA[iNdEx:postIndex])
  621. iNdEx = postIndex
  622. default:
  623. iNdEx = preIndex
  624. skippy, err := skipUp(dAtA[iNdEx:])
  625. if err != nil {
  626. return err
  627. }
  628. if skippy < 0 {
  629. return ErrInvalidLengthUp
  630. }
  631. if (iNdEx + skippy) > l {
  632. return io.ErrUnexpectedEOF
  633. }
  634. iNdEx += skippy
  635. }
  636. }
  637. if iNdEx > l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. return nil
  641. }
  642. func (m *UpSpecial) Unmarshal(dAtA []byte) error {
  643. l := len(dAtA)
  644. iNdEx := 0
  645. for iNdEx < l {
  646. preIndex := iNdEx
  647. var wire uint64
  648. for shift := uint(0); ; shift += 7 {
  649. if shift >= 64 {
  650. return ErrIntOverflowUp
  651. }
  652. if iNdEx >= l {
  653. return io.ErrUnexpectedEOF
  654. }
  655. b := dAtA[iNdEx]
  656. iNdEx++
  657. wire |= (uint64(b) & 0x7F) << shift
  658. if b < 0x80 {
  659. break
  660. }
  661. }
  662. fieldNum := int32(wire >> 3)
  663. wireType := int(wire & 0x7)
  664. if wireType == 4 {
  665. return fmt.Errorf("proto: UpSpecial: wiretype end group for non-group")
  666. }
  667. if fieldNum <= 0 {
  668. return fmt.Errorf("proto: UpSpecial: illegal tag %d (wire type %d)", fieldNum, wire)
  669. }
  670. switch fieldNum {
  671. case 1:
  672. if wireType == 0 {
  673. var v int64
  674. for shift := uint(0); ; shift += 7 {
  675. if shift >= 64 {
  676. return ErrIntOverflowUp
  677. }
  678. if iNdEx >= l {
  679. return io.ErrUnexpectedEOF
  680. }
  681. b := dAtA[iNdEx]
  682. iNdEx++
  683. v |= (int64(b) & 0x7F) << shift
  684. if b < 0x80 {
  685. break
  686. }
  687. }
  688. m.GroupIDs = append(m.GroupIDs, v)
  689. } else if wireType == 2 {
  690. var packedLen int
  691. for shift := uint(0); ; shift += 7 {
  692. if shift >= 64 {
  693. return ErrIntOverflowUp
  694. }
  695. if iNdEx >= l {
  696. return io.ErrUnexpectedEOF
  697. }
  698. b := dAtA[iNdEx]
  699. iNdEx++
  700. packedLen |= (int(b) & 0x7F) << shift
  701. if b < 0x80 {
  702. break
  703. }
  704. }
  705. if packedLen < 0 {
  706. return ErrInvalidLengthUp
  707. }
  708. postIndex := iNdEx + packedLen
  709. if postIndex > l {
  710. return io.ErrUnexpectedEOF
  711. }
  712. for iNdEx < postIndex {
  713. var v int64
  714. for shift := uint(0); ; shift += 7 {
  715. if shift >= 64 {
  716. return ErrIntOverflowUp
  717. }
  718. if iNdEx >= l {
  719. return io.ErrUnexpectedEOF
  720. }
  721. b := dAtA[iNdEx]
  722. iNdEx++
  723. v |= (int64(b) & 0x7F) << shift
  724. if b < 0x80 {
  725. break
  726. }
  727. }
  728. m.GroupIDs = append(m.GroupIDs, v)
  729. }
  730. } else {
  731. return fmt.Errorf("proto: wrong wireType = %d for field GroupIDs", wireType)
  732. }
  733. default:
  734. iNdEx = preIndex
  735. skippy, err := skipUp(dAtA[iNdEx:])
  736. if err != nil {
  737. return err
  738. }
  739. if skippy < 0 {
  740. return ErrInvalidLengthUp
  741. }
  742. if (iNdEx + skippy) > l {
  743. return io.ErrUnexpectedEOF
  744. }
  745. iNdEx += skippy
  746. }
  747. }
  748. if iNdEx > l {
  749. return io.ErrUnexpectedEOF
  750. }
  751. return nil
  752. }
  753. func skipUp(dAtA []byte) (n int, err error) {
  754. l := len(dAtA)
  755. iNdEx := 0
  756. for iNdEx < l {
  757. var wire uint64
  758. for shift := uint(0); ; shift += 7 {
  759. if shift >= 64 {
  760. return 0, ErrIntOverflowUp
  761. }
  762. if iNdEx >= l {
  763. return 0, io.ErrUnexpectedEOF
  764. }
  765. b := dAtA[iNdEx]
  766. iNdEx++
  767. wire |= (uint64(b) & 0x7F) << shift
  768. if b < 0x80 {
  769. break
  770. }
  771. }
  772. wireType := int(wire & 0x7)
  773. switch wireType {
  774. case 0:
  775. for shift := uint(0); ; shift += 7 {
  776. if shift >= 64 {
  777. return 0, ErrIntOverflowUp
  778. }
  779. if iNdEx >= l {
  780. return 0, io.ErrUnexpectedEOF
  781. }
  782. iNdEx++
  783. if dAtA[iNdEx-1] < 0x80 {
  784. break
  785. }
  786. }
  787. return iNdEx, nil
  788. case 1:
  789. iNdEx += 8
  790. return iNdEx, nil
  791. case 2:
  792. var length int
  793. for shift := uint(0); ; shift += 7 {
  794. if shift >= 64 {
  795. return 0, ErrIntOverflowUp
  796. }
  797. if iNdEx >= l {
  798. return 0, io.ErrUnexpectedEOF
  799. }
  800. b := dAtA[iNdEx]
  801. iNdEx++
  802. length |= (int(b) & 0x7F) << shift
  803. if b < 0x80 {
  804. break
  805. }
  806. }
  807. iNdEx += length
  808. if length < 0 {
  809. return 0, ErrInvalidLengthUp
  810. }
  811. return iNdEx, nil
  812. case 3:
  813. for {
  814. var innerWire uint64
  815. var start int = iNdEx
  816. for shift := uint(0); ; shift += 7 {
  817. if shift >= 64 {
  818. return 0, ErrIntOverflowUp
  819. }
  820. if iNdEx >= l {
  821. return 0, io.ErrUnexpectedEOF
  822. }
  823. b := dAtA[iNdEx]
  824. iNdEx++
  825. innerWire |= (uint64(b) & 0x7F) << shift
  826. if b < 0x80 {
  827. break
  828. }
  829. }
  830. innerWireType := int(innerWire & 0x7)
  831. if innerWireType == 4 {
  832. break
  833. }
  834. next, err := skipUp(dAtA[start:])
  835. if err != nil {
  836. return 0, err
  837. }
  838. iNdEx = start + next
  839. }
  840. return iNdEx, nil
  841. case 4:
  842. return iNdEx, nil
  843. case 5:
  844. iNdEx += 4
  845. return iNdEx, nil
  846. default:
  847. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  848. }
  849. }
  850. panic("unreachable")
  851. }
  852. var (
  853. ErrInvalidLengthUp = fmt.Errorf("proto: negative length found during unmarshaling")
  854. ErrIntOverflowUp = fmt.Errorf("proto: integer overflow")
  855. )
  856. func init() { proto.RegisterFile("app/service/main/up/api/v1/up.proto", fileDescriptorUp) }
  857. var fileDescriptorUp = []byte{
  858. // 397 bytes of a gzipped FileDescriptorProto
  859. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0x4f, 0x8b, 0xd4, 0x30,
  860. 0x18, 0xc6, 0x69, 0x3b, 0xbb, 0x6d, 0xc3, 0x2a, 0x12, 0x14, 0xba, 0xb2, 0x4c, 0x86, 0xf1, 0xe0,
  861. 0x20, 0x6c, 0xe3, 0x20, 0x88, 0x57, 0xbb, 0x0b, 0x32, 0xd7, 0xe8, 0x1c, 0xf4, 0x32, 0xa4, 0x7f,
  862. 0x36, 0x13, 0xd8, 0x36, 0xa1, 0x4d, 0x0b, 0x5e, 0xfd, 0x74, 0x1e, 0xfd, 0x04, 0x41, 0x7a, 0xec,
  863. 0x47, 0xf0, 0x24, 0x79, 0x77, 0xac, 0x7b, 0x79, 0x79, 0x9e, 0xa7, 0x3f, 0x5e, 0x9e, 0xbe, 0x41,
  864. 0xaf, 0xb8, 0xd6, 0xb4, 0xab, 0xda, 0x41, 0x16, 0x15, 0xad, 0xb9, 0x6c, 0x68, 0xaf, 0x29, 0xd7,
  865. 0x92, 0x0e, 0x5b, 0xda, 0xeb, 0x54, 0xb7, 0xca, 0x28, 0xfc, 0x82, 0xb7, 0xc5, 0x51, 0x0e, 0x55,
  866. 0x7a, 0x02, 0xd3, 0x5e, 0xa7, 0xc3, 0xf6, 0xe5, 0xb5, 0x90, 0xe6, 0xd8, 0xe7, 0x69, 0xa1, 0x6a,
  867. 0x2a, 0x94, 0x50, 0x14, 0xe8, 0xbc, 0xbf, 0x03, 0x07, 0x06, 0xd4, 0xc3, 0x96, 0xf5, 0x57, 0x84,
  868. 0xf6, 0xfa, 0x63, 0x61, 0xe4, 0x20, 0xcd, 0x77, 0x7c, 0x89, 0x82, 0x5a, 0x96, 0x89, 0xb7, 0xf2,
  869. 0x36, 0x41, 0x16, 0x4e, 0x96, 0x38, 0xcb, 0xdc, 0xc0, 0x6f, 0x51, 0xc4, 0x4f, 0x58, 0xe2, 0xaf,
  870. 0xbc, 0xcd, 0x59, 0xf6, 0x7c, 0xb2, 0x64, 0xce, 0xfe, 0x58, 0xb2, 0x90, 0x8d, 0xf9, 0xc0, 0xe6,
  871. 0x64, 0xfd, 0xc3, 0x47, 0xe1, 0x5e, 0x7f, 0x6a, 0x55, 0xaf, 0xf1, 0x15, 0xf2, 0xe7, 0xbd, 0x17,
  872. 0xa3, 0x25, 0xfe, 0xee, 0x76, 0xb2, 0xc4, 0x97, 0x25, 0xf3, 0x65, 0x89, 0xaf, 0xd0, 0xa2, 0xe1,
  873. 0x75, 0x05, 0x7b, 0xe3, 0x2c, 0x9a, 0x2c, 0x01, 0xcf, 0x60, 0xba, 0x52, 0x86, 0x8b, 0x24, 0x80,
  874. 0x8f, 0x50, 0xca, 0x70, 0xc1, 0xdc, 0xc0, 0x6f, 0x50, 0xdc, 0x1d, 0x55, 0x6b, 0x0e, 0x0e, 0x58,
  875. 0x00, 0xf0, 0x64, 0xb2, 0xe4, 0x7f, 0xc8, 0x22, 0x90, 0x5f, 0xb8, 0xc0, 0xd7, 0x08, 0xdd, 0xa9,
  876. 0xc6, 0x1c, 0x0a, 0x75, 0xaf, 0xda, 0xe4, 0x0c, 0xe0, 0xa7, 0x93, 0x25, 0x8f, 0x52, 0x16, 0x3b,
  877. 0x7d, 0xe3, 0x24, 0x7e, 0x8d, 0xa2, 0x5c, 0x9c, 0xe0, 0x73, 0x80, 0x2f, 0xdc, 0xff, 0xfe, 0xcb,
  878. 0x58, 0x98, 0x8b, 0x07, 0xd0, 0x95, 0x57, 0xa6, 0x4a, 0xc2, 0x47, 0xe5, 0x95, 0x71, 0xe5, 0x95,
  879. 0xa9, 0xd6, 0x37, 0x28, 0xde, 0xeb, 0xcf, 0xba, 0x2a, 0x24, 0xbf, 0xc7, 0xef, 0x51, 0x2c, 0xdc,
  880. 0x39, 0x0e, 0xb2, 0xec, 0x12, 0x6f, 0x15, 0x6c, 0x82, 0xec, 0x72, 0xb4, 0x24, 0x82, 0x1b, 0xed,
  881. 0x6e, 0x3b, 0x57, 0x7d, 0x06, 0x58, 0x04, 0x72, 0x57, 0x76, 0xd9, 0xb3, 0x9f, 0xe3, 0xd2, 0xfb,
  882. 0x35, 0x2e, 0xbd, 0xdf, 0xe3, 0xd2, 0xfb, 0xe6, 0x0f, 0xdb, 0xfc, 0x1c, 0x5e, 0xef, 0xdd, 0xdf,
  883. 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x8e, 0x29, 0xd2, 0x2a, 0x02, 0x00, 0x00,
  884. }