Achv.pb.go 19 KB

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