Anchor.pb.go 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v2/Anchor.proto
  3. package v2
  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 AnchorQueryLiveWearingReq struct {
  19. // 房管 uid
  20. UidList []int64 `protobuf:"varint,1,rep,packed,name=uid_list,json=uidList" json:"uid_list"`
  21. }
  22. func (m *AnchorQueryLiveWearingReq) Reset() { *m = AnchorQueryLiveWearingReq{} }
  23. func (m *AnchorQueryLiveWearingReq) String() string { return proto.CompactTextString(m) }
  24. func (*AnchorQueryLiveWearingReq) ProtoMessage() {}
  25. func (*AnchorQueryLiveWearingReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_Anchor_9efdd09a9d362c87, []int{0}
  27. }
  28. func (m *AnchorQueryLiveWearingReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *AnchorQueryLiveWearingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_AnchorQueryLiveWearingReq.Marshal(b, m, deterministic)
  34. } else {
  35. b = b[:cap(b)]
  36. n, err := m.MarshalTo(b)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return b[:n], nil
  41. }
  42. }
  43. func (dst *AnchorQueryLiveWearingReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_AnchorQueryLiveWearingReq.Merge(dst, src)
  45. }
  46. func (m *AnchorQueryLiveWearingReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *AnchorQueryLiveWearingReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_AnchorQueryLiveWearingReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_AnchorQueryLiveWearingReq proto.InternalMessageInfo
  53. func (m *AnchorQueryLiveWearingReq) GetUidList() []int64 {
  54. if m != nil {
  55. return m.UidList
  56. }
  57. return nil
  58. }
  59. type AnchorQueryLiveWearingResp struct {
  60. // code
  61. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  62. // msg
  63. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  64. // 勋章信息 map
  65. Data map[int64]*AnchorQueryLiveWearingResp_Medal `protobuf:"bytes,3,rep,name=data" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  66. }
  67. func (m *AnchorQueryLiveWearingResp) Reset() { *m = AnchorQueryLiveWearingResp{} }
  68. func (m *AnchorQueryLiveWearingResp) String() string { return proto.CompactTextString(m) }
  69. func (*AnchorQueryLiveWearingResp) ProtoMessage() {}
  70. func (*AnchorQueryLiveWearingResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_Anchor_9efdd09a9d362c87, []int{1}
  72. }
  73. func (m *AnchorQueryLiveWearingResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *AnchorQueryLiveWearingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_AnchorQueryLiveWearingResp.Marshal(b, m, deterministic)
  79. } else {
  80. b = b[:cap(b)]
  81. n, err := m.MarshalTo(b)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return b[:n], nil
  86. }
  87. }
  88. func (dst *AnchorQueryLiveWearingResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_AnchorQueryLiveWearingResp.Merge(dst, src)
  90. }
  91. func (m *AnchorQueryLiveWearingResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *AnchorQueryLiveWearingResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_AnchorQueryLiveWearingResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_AnchorQueryLiveWearingResp proto.InternalMessageInfo
  98. func (m *AnchorQueryLiveWearingResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *AnchorQueryLiveWearingResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *AnchorQueryLiveWearingResp) GetData() map[int64]*AnchorQueryLiveWearingResp_Medal {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type AnchorQueryLiveWearingResp_Medal struct {
  117. //
  118. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  119. //
  120. TargetId int64 `protobuf:"varint,2,opt,name=target_id,json=targetId,proto3" json:"target_id"`
  121. //
  122. MedalId int64 `protobuf:"varint,3,opt,name=medal_id,json=medalId,proto3" json:"medal_id"`
  123. //
  124. MedalName string `protobuf:"bytes,4,opt,name=medal_name,json=medalName,proto3" json:"medal_name"`
  125. //
  126. Level int64 `protobuf:"varint,5,opt,name=level,proto3" json:"level"`
  127. }
  128. func (m *AnchorQueryLiveWearingResp_Medal) Reset() { *m = AnchorQueryLiveWearingResp_Medal{} }
  129. func (m *AnchorQueryLiveWearingResp_Medal) String() string { return proto.CompactTextString(m) }
  130. func (*AnchorQueryLiveWearingResp_Medal) ProtoMessage() {}
  131. func (*AnchorQueryLiveWearingResp_Medal) Descriptor() ([]byte, []int) {
  132. return fileDescriptor_Anchor_9efdd09a9d362c87, []int{1, 1}
  133. }
  134. func (m *AnchorQueryLiveWearingResp_Medal) XXX_Unmarshal(b []byte) error {
  135. return m.Unmarshal(b)
  136. }
  137. func (m *AnchorQueryLiveWearingResp_Medal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  138. if deterministic {
  139. return xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.Marshal(b, m, deterministic)
  140. } else {
  141. b = b[:cap(b)]
  142. n, err := m.MarshalTo(b)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return b[:n], nil
  147. }
  148. }
  149. func (dst *AnchorQueryLiveWearingResp_Medal) XXX_Merge(src proto.Message) {
  150. xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.Merge(dst, src)
  151. }
  152. func (m *AnchorQueryLiveWearingResp_Medal) XXX_Size() int {
  153. return m.Size()
  154. }
  155. func (m *AnchorQueryLiveWearingResp_Medal) XXX_DiscardUnknown() {
  156. xxx_messageInfo_AnchorQueryLiveWearingResp_Medal.DiscardUnknown(m)
  157. }
  158. var xxx_messageInfo_AnchorQueryLiveWearingResp_Medal proto.InternalMessageInfo
  159. func (m *AnchorQueryLiveWearingResp_Medal) GetUid() int64 {
  160. if m != nil {
  161. return m.Uid
  162. }
  163. return 0
  164. }
  165. func (m *AnchorQueryLiveWearingResp_Medal) GetTargetId() int64 {
  166. if m != nil {
  167. return m.TargetId
  168. }
  169. return 0
  170. }
  171. func (m *AnchorQueryLiveWearingResp_Medal) GetMedalId() int64 {
  172. if m != nil {
  173. return m.MedalId
  174. }
  175. return 0
  176. }
  177. func (m *AnchorQueryLiveWearingResp_Medal) GetMedalName() string {
  178. if m != nil {
  179. return m.MedalName
  180. }
  181. return ""
  182. }
  183. func (m *AnchorQueryLiveWearingResp_Medal) GetLevel() int64 {
  184. if m != nil {
  185. return m.Level
  186. }
  187. return 0
  188. }
  189. func init() {
  190. proto.RegisterType((*AnchorQueryLiveWearingReq)(nil), "fans_medal.v2.AnchorQueryLiveWearingReq")
  191. proto.RegisterType((*AnchorQueryLiveWearingResp)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp")
  192. proto.RegisterMapType((map[int64]*AnchorQueryLiveWearingResp_Medal)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp.DataEntry")
  193. proto.RegisterType((*AnchorQueryLiveWearingResp_Medal)(nil), "fans_medal.v2.AnchorQueryLiveWearingResp.Medal")
  194. }
  195. func (m *AnchorQueryLiveWearingReq) Marshal() (dAtA []byte, err error) {
  196. size := m.Size()
  197. dAtA = make([]byte, size)
  198. n, err := m.MarshalTo(dAtA)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return dAtA[:n], nil
  203. }
  204. func (m *AnchorQueryLiveWearingReq) MarshalTo(dAtA []byte) (int, error) {
  205. var i int
  206. _ = i
  207. var l int
  208. _ = l
  209. if len(m.UidList) > 0 {
  210. dAtA2 := make([]byte, len(m.UidList)*10)
  211. var j1 int
  212. for _, num1 := range m.UidList {
  213. num := uint64(num1)
  214. for num >= 1<<7 {
  215. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  216. num >>= 7
  217. j1++
  218. }
  219. dAtA2[j1] = uint8(num)
  220. j1++
  221. }
  222. dAtA[i] = 0xa
  223. i++
  224. i = encodeVarintAnchor(dAtA, i, uint64(j1))
  225. i += copy(dAtA[i:], dAtA2[:j1])
  226. }
  227. return i, nil
  228. }
  229. func (m *AnchorQueryLiveWearingResp) Marshal() (dAtA []byte, err error) {
  230. size := m.Size()
  231. dAtA = make([]byte, size)
  232. n, err := m.MarshalTo(dAtA)
  233. if err != nil {
  234. return nil, err
  235. }
  236. return dAtA[:n], nil
  237. }
  238. func (m *AnchorQueryLiveWearingResp) MarshalTo(dAtA []byte) (int, error) {
  239. var i int
  240. _ = i
  241. var l int
  242. _ = l
  243. if m.Code != 0 {
  244. dAtA[i] = 0x8
  245. i++
  246. i = encodeVarintAnchor(dAtA, i, uint64(m.Code))
  247. }
  248. if len(m.Msg) > 0 {
  249. dAtA[i] = 0x12
  250. i++
  251. i = encodeVarintAnchor(dAtA, i, uint64(len(m.Msg)))
  252. i += copy(dAtA[i:], m.Msg)
  253. }
  254. if len(m.Data) > 0 {
  255. for k, _ := range m.Data {
  256. dAtA[i] = 0x1a
  257. i++
  258. v := m.Data[k]
  259. msgSize := 0
  260. if v != nil {
  261. msgSize = v.Size()
  262. msgSize += 1 + sovAnchor(uint64(msgSize))
  263. }
  264. mapSize := 1 + sovAnchor(uint64(k)) + msgSize
  265. i = encodeVarintAnchor(dAtA, i, uint64(mapSize))
  266. dAtA[i] = 0x8
  267. i++
  268. i = encodeVarintAnchor(dAtA, i, uint64(k))
  269. if v != nil {
  270. dAtA[i] = 0x12
  271. i++
  272. i = encodeVarintAnchor(dAtA, i, uint64(v.Size()))
  273. n3, err := v.MarshalTo(dAtA[i:])
  274. if err != nil {
  275. return 0, err
  276. }
  277. i += n3
  278. }
  279. }
  280. }
  281. return i, nil
  282. }
  283. func (m *AnchorQueryLiveWearingResp_Medal) Marshal() (dAtA []byte, err error) {
  284. size := m.Size()
  285. dAtA = make([]byte, size)
  286. n, err := m.MarshalTo(dAtA)
  287. if err != nil {
  288. return nil, err
  289. }
  290. return dAtA[:n], nil
  291. }
  292. func (m *AnchorQueryLiveWearingResp_Medal) MarshalTo(dAtA []byte) (int, error) {
  293. var i int
  294. _ = i
  295. var l int
  296. _ = l
  297. if m.Uid != 0 {
  298. dAtA[i] = 0x8
  299. i++
  300. i = encodeVarintAnchor(dAtA, i, uint64(m.Uid))
  301. }
  302. if m.TargetId != 0 {
  303. dAtA[i] = 0x10
  304. i++
  305. i = encodeVarintAnchor(dAtA, i, uint64(m.TargetId))
  306. }
  307. if m.MedalId != 0 {
  308. dAtA[i] = 0x18
  309. i++
  310. i = encodeVarintAnchor(dAtA, i, uint64(m.MedalId))
  311. }
  312. if len(m.MedalName) > 0 {
  313. dAtA[i] = 0x22
  314. i++
  315. i = encodeVarintAnchor(dAtA, i, uint64(len(m.MedalName)))
  316. i += copy(dAtA[i:], m.MedalName)
  317. }
  318. if m.Level != 0 {
  319. dAtA[i] = 0x28
  320. i++
  321. i = encodeVarintAnchor(dAtA, i, uint64(m.Level))
  322. }
  323. return i, nil
  324. }
  325. func encodeVarintAnchor(dAtA []byte, offset int, v uint64) int {
  326. for v >= 1<<7 {
  327. dAtA[offset] = uint8(v&0x7f | 0x80)
  328. v >>= 7
  329. offset++
  330. }
  331. dAtA[offset] = uint8(v)
  332. return offset + 1
  333. }
  334. func (m *AnchorQueryLiveWearingReq) Size() (n int) {
  335. if m == nil {
  336. return 0
  337. }
  338. var l int
  339. _ = l
  340. if len(m.UidList) > 0 {
  341. l = 0
  342. for _, e := range m.UidList {
  343. l += sovAnchor(uint64(e))
  344. }
  345. n += 1 + sovAnchor(uint64(l)) + l
  346. }
  347. return n
  348. }
  349. func (m *AnchorQueryLiveWearingResp) Size() (n int) {
  350. if m == nil {
  351. return 0
  352. }
  353. var l int
  354. _ = l
  355. if m.Code != 0 {
  356. n += 1 + sovAnchor(uint64(m.Code))
  357. }
  358. l = len(m.Msg)
  359. if l > 0 {
  360. n += 1 + l + sovAnchor(uint64(l))
  361. }
  362. if len(m.Data) > 0 {
  363. for k, v := range m.Data {
  364. _ = k
  365. _ = v
  366. l = 0
  367. if v != nil {
  368. l = v.Size()
  369. l += 1 + sovAnchor(uint64(l))
  370. }
  371. mapEntrySize := 1 + sovAnchor(uint64(k)) + l
  372. n += mapEntrySize + 1 + sovAnchor(uint64(mapEntrySize))
  373. }
  374. }
  375. return n
  376. }
  377. func (m *AnchorQueryLiveWearingResp_Medal) Size() (n int) {
  378. if m == nil {
  379. return 0
  380. }
  381. var l int
  382. _ = l
  383. if m.Uid != 0 {
  384. n += 1 + sovAnchor(uint64(m.Uid))
  385. }
  386. if m.TargetId != 0 {
  387. n += 1 + sovAnchor(uint64(m.TargetId))
  388. }
  389. if m.MedalId != 0 {
  390. n += 1 + sovAnchor(uint64(m.MedalId))
  391. }
  392. l = len(m.MedalName)
  393. if l > 0 {
  394. n += 1 + l + sovAnchor(uint64(l))
  395. }
  396. if m.Level != 0 {
  397. n += 1 + sovAnchor(uint64(m.Level))
  398. }
  399. return n
  400. }
  401. func sovAnchor(x uint64) (n int) {
  402. for {
  403. n++
  404. x >>= 7
  405. if x == 0 {
  406. break
  407. }
  408. }
  409. return n
  410. }
  411. func sozAnchor(x uint64) (n int) {
  412. return sovAnchor(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  413. }
  414. func (m *AnchorQueryLiveWearingReq) Unmarshal(dAtA []byte) error {
  415. l := len(dAtA)
  416. iNdEx := 0
  417. for iNdEx < l {
  418. preIndex := iNdEx
  419. var wire uint64
  420. for shift := uint(0); ; shift += 7 {
  421. if shift >= 64 {
  422. return ErrIntOverflowAnchor
  423. }
  424. if iNdEx >= l {
  425. return io.ErrUnexpectedEOF
  426. }
  427. b := dAtA[iNdEx]
  428. iNdEx++
  429. wire |= (uint64(b) & 0x7F) << shift
  430. if b < 0x80 {
  431. break
  432. }
  433. }
  434. fieldNum := int32(wire >> 3)
  435. wireType := int(wire & 0x7)
  436. if wireType == 4 {
  437. return fmt.Errorf("proto: AnchorQueryLiveWearingReq: wiretype end group for non-group")
  438. }
  439. if fieldNum <= 0 {
  440. return fmt.Errorf("proto: AnchorQueryLiveWearingReq: illegal tag %d (wire type %d)", fieldNum, wire)
  441. }
  442. switch fieldNum {
  443. case 1:
  444. if wireType == 0 {
  445. var v int64
  446. for shift := uint(0); ; shift += 7 {
  447. if shift >= 64 {
  448. return ErrIntOverflowAnchor
  449. }
  450. if iNdEx >= l {
  451. return io.ErrUnexpectedEOF
  452. }
  453. b := dAtA[iNdEx]
  454. iNdEx++
  455. v |= (int64(b) & 0x7F) << shift
  456. if b < 0x80 {
  457. break
  458. }
  459. }
  460. m.UidList = append(m.UidList, v)
  461. } else if wireType == 2 {
  462. var packedLen int
  463. for shift := uint(0); ; shift += 7 {
  464. if shift >= 64 {
  465. return ErrIntOverflowAnchor
  466. }
  467. if iNdEx >= l {
  468. return io.ErrUnexpectedEOF
  469. }
  470. b := dAtA[iNdEx]
  471. iNdEx++
  472. packedLen |= (int(b) & 0x7F) << shift
  473. if b < 0x80 {
  474. break
  475. }
  476. }
  477. if packedLen < 0 {
  478. return ErrInvalidLengthAnchor
  479. }
  480. postIndex := iNdEx + packedLen
  481. if postIndex > l {
  482. return io.ErrUnexpectedEOF
  483. }
  484. var elementCount int
  485. var count int
  486. for _, integer := range dAtA {
  487. if integer < 128 {
  488. count++
  489. }
  490. }
  491. elementCount = count
  492. if elementCount != 0 && len(m.UidList) == 0 {
  493. m.UidList = make([]int64, 0, elementCount)
  494. }
  495. for iNdEx < postIndex {
  496. var v int64
  497. for shift := uint(0); ; shift += 7 {
  498. if shift >= 64 {
  499. return ErrIntOverflowAnchor
  500. }
  501. if iNdEx >= l {
  502. return io.ErrUnexpectedEOF
  503. }
  504. b := dAtA[iNdEx]
  505. iNdEx++
  506. v |= (int64(b) & 0x7F) << shift
  507. if b < 0x80 {
  508. break
  509. }
  510. }
  511. m.UidList = append(m.UidList, v)
  512. }
  513. } else {
  514. return fmt.Errorf("proto: wrong wireType = %d for field UidList", wireType)
  515. }
  516. default:
  517. iNdEx = preIndex
  518. skippy, err := skipAnchor(dAtA[iNdEx:])
  519. if err != nil {
  520. return err
  521. }
  522. if skippy < 0 {
  523. return ErrInvalidLengthAnchor
  524. }
  525. if (iNdEx + skippy) > l {
  526. return io.ErrUnexpectedEOF
  527. }
  528. iNdEx += skippy
  529. }
  530. }
  531. if iNdEx > l {
  532. return io.ErrUnexpectedEOF
  533. }
  534. return nil
  535. }
  536. func (m *AnchorQueryLiveWearingResp) Unmarshal(dAtA []byte) error {
  537. l := len(dAtA)
  538. iNdEx := 0
  539. for iNdEx < l {
  540. preIndex := iNdEx
  541. var wire uint64
  542. for shift := uint(0); ; shift += 7 {
  543. if shift >= 64 {
  544. return ErrIntOverflowAnchor
  545. }
  546. if iNdEx >= l {
  547. return io.ErrUnexpectedEOF
  548. }
  549. b := dAtA[iNdEx]
  550. iNdEx++
  551. wire |= (uint64(b) & 0x7F) << shift
  552. if b < 0x80 {
  553. break
  554. }
  555. }
  556. fieldNum := int32(wire >> 3)
  557. wireType := int(wire & 0x7)
  558. if wireType == 4 {
  559. return fmt.Errorf("proto: AnchorQueryLiveWearingResp: wiretype end group for non-group")
  560. }
  561. if fieldNum <= 0 {
  562. return fmt.Errorf("proto: AnchorQueryLiveWearingResp: illegal tag %d (wire type %d)", fieldNum, wire)
  563. }
  564. switch fieldNum {
  565. case 1:
  566. if wireType != 0 {
  567. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  568. }
  569. m.Code = 0
  570. for shift := uint(0); ; shift += 7 {
  571. if shift >= 64 {
  572. return ErrIntOverflowAnchor
  573. }
  574. if iNdEx >= l {
  575. return io.ErrUnexpectedEOF
  576. }
  577. b := dAtA[iNdEx]
  578. iNdEx++
  579. m.Code |= (int64(b) & 0x7F) << shift
  580. if b < 0x80 {
  581. break
  582. }
  583. }
  584. case 2:
  585. if wireType != 2 {
  586. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  587. }
  588. var stringLen uint64
  589. for shift := uint(0); ; shift += 7 {
  590. if shift >= 64 {
  591. return ErrIntOverflowAnchor
  592. }
  593. if iNdEx >= l {
  594. return io.ErrUnexpectedEOF
  595. }
  596. b := dAtA[iNdEx]
  597. iNdEx++
  598. stringLen |= (uint64(b) & 0x7F) << shift
  599. if b < 0x80 {
  600. break
  601. }
  602. }
  603. intStringLen := int(stringLen)
  604. if intStringLen < 0 {
  605. return ErrInvalidLengthAnchor
  606. }
  607. postIndex := iNdEx + intStringLen
  608. if postIndex > l {
  609. return io.ErrUnexpectedEOF
  610. }
  611. m.Msg = string(dAtA[iNdEx:postIndex])
  612. iNdEx = postIndex
  613. case 3:
  614. if wireType != 2 {
  615. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  616. }
  617. var msglen int
  618. for shift := uint(0); ; shift += 7 {
  619. if shift >= 64 {
  620. return ErrIntOverflowAnchor
  621. }
  622. if iNdEx >= l {
  623. return io.ErrUnexpectedEOF
  624. }
  625. b := dAtA[iNdEx]
  626. iNdEx++
  627. msglen |= (int(b) & 0x7F) << shift
  628. if b < 0x80 {
  629. break
  630. }
  631. }
  632. if msglen < 0 {
  633. return ErrInvalidLengthAnchor
  634. }
  635. postIndex := iNdEx + msglen
  636. if postIndex > l {
  637. return io.ErrUnexpectedEOF
  638. }
  639. if m.Data == nil {
  640. m.Data = make(map[int64]*AnchorQueryLiveWearingResp_Medal)
  641. }
  642. var mapkey int64
  643. var mapvalue *AnchorQueryLiveWearingResp_Medal
  644. for iNdEx < postIndex {
  645. entryPreIndex := iNdEx
  646. var wire uint64
  647. for shift := uint(0); ; shift += 7 {
  648. if shift >= 64 {
  649. return ErrIntOverflowAnchor
  650. }
  651. if iNdEx >= l {
  652. return io.ErrUnexpectedEOF
  653. }
  654. b := dAtA[iNdEx]
  655. iNdEx++
  656. wire |= (uint64(b) & 0x7F) << shift
  657. if b < 0x80 {
  658. break
  659. }
  660. }
  661. fieldNum := int32(wire >> 3)
  662. if fieldNum == 1 {
  663. for shift := uint(0); ; shift += 7 {
  664. if shift >= 64 {
  665. return ErrIntOverflowAnchor
  666. }
  667. if iNdEx >= l {
  668. return io.ErrUnexpectedEOF
  669. }
  670. b := dAtA[iNdEx]
  671. iNdEx++
  672. mapkey |= (int64(b) & 0x7F) << shift
  673. if b < 0x80 {
  674. break
  675. }
  676. }
  677. } else if fieldNum == 2 {
  678. var mapmsglen int
  679. for shift := uint(0); ; shift += 7 {
  680. if shift >= 64 {
  681. return ErrIntOverflowAnchor
  682. }
  683. if iNdEx >= l {
  684. return io.ErrUnexpectedEOF
  685. }
  686. b := dAtA[iNdEx]
  687. iNdEx++
  688. mapmsglen |= (int(b) & 0x7F) << shift
  689. if b < 0x80 {
  690. break
  691. }
  692. }
  693. if mapmsglen < 0 {
  694. return ErrInvalidLengthAnchor
  695. }
  696. postmsgIndex := iNdEx + mapmsglen
  697. if mapmsglen < 0 {
  698. return ErrInvalidLengthAnchor
  699. }
  700. if postmsgIndex > l {
  701. return io.ErrUnexpectedEOF
  702. }
  703. mapvalue = &AnchorQueryLiveWearingResp_Medal{}
  704. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  705. return err
  706. }
  707. iNdEx = postmsgIndex
  708. } else {
  709. iNdEx = entryPreIndex
  710. skippy, err := skipAnchor(dAtA[iNdEx:])
  711. if err != nil {
  712. return err
  713. }
  714. if skippy < 0 {
  715. return ErrInvalidLengthAnchor
  716. }
  717. if (iNdEx + skippy) > postIndex {
  718. return io.ErrUnexpectedEOF
  719. }
  720. iNdEx += skippy
  721. }
  722. }
  723. m.Data[mapkey] = mapvalue
  724. iNdEx = postIndex
  725. default:
  726. iNdEx = preIndex
  727. skippy, err := skipAnchor(dAtA[iNdEx:])
  728. if err != nil {
  729. return err
  730. }
  731. if skippy < 0 {
  732. return ErrInvalidLengthAnchor
  733. }
  734. if (iNdEx + skippy) > l {
  735. return io.ErrUnexpectedEOF
  736. }
  737. iNdEx += skippy
  738. }
  739. }
  740. if iNdEx > l {
  741. return io.ErrUnexpectedEOF
  742. }
  743. return nil
  744. }
  745. func (m *AnchorQueryLiveWearingResp_Medal) Unmarshal(dAtA []byte) error {
  746. l := len(dAtA)
  747. iNdEx := 0
  748. for iNdEx < l {
  749. preIndex := iNdEx
  750. var wire uint64
  751. for shift := uint(0); ; shift += 7 {
  752. if shift >= 64 {
  753. return ErrIntOverflowAnchor
  754. }
  755. if iNdEx >= l {
  756. return io.ErrUnexpectedEOF
  757. }
  758. b := dAtA[iNdEx]
  759. iNdEx++
  760. wire |= (uint64(b) & 0x7F) << shift
  761. if b < 0x80 {
  762. break
  763. }
  764. }
  765. fieldNum := int32(wire >> 3)
  766. wireType := int(wire & 0x7)
  767. if wireType == 4 {
  768. return fmt.Errorf("proto: Medal: wiretype end group for non-group")
  769. }
  770. if fieldNum <= 0 {
  771. return fmt.Errorf("proto: Medal: illegal tag %d (wire type %d)", fieldNum, wire)
  772. }
  773. switch fieldNum {
  774. case 1:
  775. if wireType != 0 {
  776. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  777. }
  778. m.Uid = 0
  779. for shift := uint(0); ; shift += 7 {
  780. if shift >= 64 {
  781. return ErrIntOverflowAnchor
  782. }
  783. if iNdEx >= l {
  784. return io.ErrUnexpectedEOF
  785. }
  786. b := dAtA[iNdEx]
  787. iNdEx++
  788. m.Uid |= (int64(b) & 0x7F) << shift
  789. if b < 0x80 {
  790. break
  791. }
  792. }
  793. case 2:
  794. if wireType != 0 {
  795. return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
  796. }
  797. m.TargetId = 0
  798. for shift := uint(0); ; shift += 7 {
  799. if shift >= 64 {
  800. return ErrIntOverflowAnchor
  801. }
  802. if iNdEx >= l {
  803. return io.ErrUnexpectedEOF
  804. }
  805. b := dAtA[iNdEx]
  806. iNdEx++
  807. m.TargetId |= (int64(b) & 0x7F) << shift
  808. if b < 0x80 {
  809. break
  810. }
  811. }
  812. case 3:
  813. if wireType != 0 {
  814. return fmt.Errorf("proto: wrong wireType = %d for field MedalId", wireType)
  815. }
  816. m.MedalId = 0
  817. for shift := uint(0); ; shift += 7 {
  818. if shift >= 64 {
  819. return ErrIntOverflowAnchor
  820. }
  821. if iNdEx >= l {
  822. return io.ErrUnexpectedEOF
  823. }
  824. b := dAtA[iNdEx]
  825. iNdEx++
  826. m.MedalId |= (int64(b) & 0x7F) << shift
  827. if b < 0x80 {
  828. break
  829. }
  830. }
  831. case 4:
  832. if wireType != 2 {
  833. return fmt.Errorf("proto: wrong wireType = %d for field MedalName", wireType)
  834. }
  835. var stringLen uint64
  836. for shift := uint(0); ; shift += 7 {
  837. if shift >= 64 {
  838. return ErrIntOverflowAnchor
  839. }
  840. if iNdEx >= l {
  841. return io.ErrUnexpectedEOF
  842. }
  843. b := dAtA[iNdEx]
  844. iNdEx++
  845. stringLen |= (uint64(b) & 0x7F) << shift
  846. if b < 0x80 {
  847. break
  848. }
  849. }
  850. intStringLen := int(stringLen)
  851. if intStringLen < 0 {
  852. return ErrInvalidLengthAnchor
  853. }
  854. postIndex := iNdEx + intStringLen
  855. if postIndex > l {
  856. return io.ErrUnexpectedEOF
  857. }
  858. m.MedalName = string(dAtA[iNdEx:postIndex])
  859. iNdEx = postIndex
  860. case 5:
  861. if wireType != 0 {
  862. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  863. }
  864. m.Level = 0
  865. for shift := uint(0); ; shift += 7 {
  866. if shift >= 64 {
  867. return ErrIntOverflowAnchor
  868. }
  869. if iNdEx >= l {
  870. return io.ErrUnexpectedEOF
  871. }
  872. b := dAtA[iNdEx]
  873. iNdEx++
  874. m.Level |= (int64(b) & 0x7F) << shift
  875. if b < 0x80 {
  876. break
  877. }
  878. }
  879. default:
  880. iNdEx = preIndex
  881. skippy, err := skipAnchor(dAtA[iNdEx:])
  882. if err != nil {
  883. return err
  884. }
  885. if skippy < 0 {
  886. return ErrInvalidLengthAnchor
  887. }
  888. if (iNdEx + skippy) > l {
  889. return io.ErrUnexpectedEOF
  890. }
  891. iNdEx += skippy
  892. }
  893. }
  894. if iNdEx > l {
  895. return io.ErrUnexpectedEOF
  896. }
  897. return nil
  898. }
  899. func skipAnchor(dAtA []byte) (n int, err error) {
  900. l := len(dAtA)
  901. iNdEx := 0
  902. for iNdEx < l {
  903. var wire uint64
  904. for shift := uint(0); ; shift += 7 {
  905. if shift >= 64 {
  906. return 0, ErrIntOverflowAnchor
  907. }
  908. if iNdEx >= l {
  909. return 0, io.ErrUnexpectedEOF
  910. }
  911. b := dAtA[iNdEx]
  912. iNdEx++
  913. wire |= (uint64(b) & 0x7F) << shift
  914. if b < 0x80 {
  915. break
  916. }
  917. }
  918. wireType := int(wire & 0x7)
  919. switch wireType {
  920. case 0:
  921. for shift := uint(0); ; shift += 7 {
  922. if shift >= 64 {
  923. return 0, ErrIntOverflowAnchor
  924. }
  925. if iNdEx >= l {
  926. return 0, io.ErrUnexpectedEOF
  927. }
  928. iNdEx++
  929. if dAtA[iNdEx-1] < 0x80 {
  930. break
  931. }
  932. }
  933. return iNdEx, nil
  934. case 1:
  935. iNdEx += 8
  936. return iNdEx, nil
  937. case 2:
  938. var length int
  939. for shift := uint(0); ; shift += 7 {
  940. if shift >= 64 {
  941. return 0, ErrIntOverflowAnchor
  942. }
  943. if iNdEx >= l {
  944. return 0, io.ErrUnexpectedEOF
  945. }
  946. b := dAtA[iNdEx]
  947. iNdEx++
  948. length |= (int(b) & 0x7F) << shift
  949. if b < 0x80 {
  950. break
  951. }
  952. }
  953. iNdEx += length
  954. if length < 0 {
  955. return 0, ErrInvalidLengthAnchor
  956. }
  957. return iNdEx, nil
  958. case 3:
  959. for {
  960. var innerWire uint64
  961. var start int = iNdEx
  962. for shift := uint(0); ; shift += 7 {
  963. if shift >= 64 {
  964. return 0, ErrIntOverflowAnchor
  965. }
  966. if iNdEx >= l {
  967. return 0, io.ErrUnexpectedEOF
  968. }
  969. b := dAtA[iNdEx]
  970. iNdEx++
  971. innerWire |= (uint64(b) & 0x7F) << shift
  972. if b < 0x80 {
  973. break
  974. }
  975. }
  976. innerWireType := int(innerWire & 0x7)
  977. if innerWireType == 4 {
  978. break
  979. }
  980. next, err := skipAnchor(dAtA[start:])
  981. if err != nil {
  982. return 0, err
  983. }
  984. iNdEx = start + next
  985. }
  986. return iNdEx, nil
  987. case 4:
  988. return iNdEx, nil
  989. case 5:
  990. iNdEx += 4
  991. return iNdEx, nil
  992. default:
  993. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  994. }
  995. }
  996. panic("unreachable")
  997. }
  998. var (
  999. ErrInvalidLengthAnchor = fmt.Errorf("proto: negative length found during unmarshaling")
  1000. ErrIntOverflowAnchor = fmt.Errorf("proto: integer overflow")
  1001. )
  1002. func init() { proto.RegisterFile("v2/Anchor.proto", fileDescriptor_Anchor_9efdd09a9d362c87) }
  1003. var fileDescriptor_Anchor_9efdd09a9d362c87 = []byte{
  1004. // 452 bytes of a gzipped FileDescriptorProto
  1005. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40,
  1006. 0x10, 0x8d, 0xb3, 0x49, 0x13, 0x6f, 0x29, 0xa0, 0x3d, 0xb9, 0x56, 0x65, 0x47, 0xbd, 0x60, 0x90,
  1007. 0xea, 0x48, 0xee, 0x05, 0x71, 0xc3, 0x6a, 0x0f, 0x95, 0x0a, 0x52, 0xf7, 0x82, 0xc4, 0xc5, 0xda,
  1008. 0x64, 0xb7, 0xce, 0x0a, 0x7f, 0x34, 0xf6, 0xda, 0x28, 0xff, 0x82, 0x7f, 0x05, 0xc7, 0x1e, 0x39,
  1009. 0x20, 0x0b, 0x25, 0x37, 0xff, 0x0a, 0xb4, 0xb3, 0x50, 0xe0, 0x50, 0x29, 0x97, 0xf1, 0x9b, 0xe7,
  1010. 0xd9, 0x79, 0xf3, 0x66, 0x17, 0x3f, 0x6b, 0xa3, 0xf9, 0xdb, 0x62, 0xb9, 0x2a, 0xab, 0xf0, 0xae,
  1011. 0x2a, 0x55, 0x49, 0x8e, 0x6e, 0x59, 0x51, 0x27, 0xb9, 0xe0, 0x2c, 0x0b, 0xdb, 0xc8, 0x3d, 0x4b,
  1012. 0xa5, 0x5a, 0x35, 0x8b, 0x70, 0x59, 0xe6, 0xf3, 0xb4, 0x4c, 0xcb, 0x39, 0x54, 0x2d, 0x9a, 0x5b,
  1013. 0xc8, 0x20, 0x01, 0x64, 0x4e, 0x9f, 0x5e, 0xe0, 0x63, 0xd3, 0xed, 0xa6, 0x11, 0xd5, 0xe6, 0x5a,
  1014. 0xb6, 0xe2, 0x83, 0x60, 0x95, 0x2c, 0x52, 0x2a, 0xd6, 0xe4, 0x05, 0x9e, 0x36, 0x92, 0x27, 0x99,
  1015. 0xac, 0x95, 0x63, 0xcd, 0x50, 0x80, 0xe2, 0x27, 0x7d, 0xe7, 0x3f, 0x70, 0x74, 0xd2, 0x48, 0x7e,
  1016. 0x2d, 0x6b, 0x75, 0xfa, 0x03, 0x61, 0xf7, 0xb1, 0x36, 0xf5, 0x1d, 0x39, 0xc1, 0xa3, 0x65, 0xc9,
  1017. 0x85, 0x63, 0xcd, 0xac, 0x00, 0xc5, 0xd3, 0xbe, 0xf3, 0x21, 0xa7, 0x10, 0xc9, 0x31, 0x46, 0x79,
  1018. 0x9d, 0x3a, 0xc3, 0x99, 0x15, 0xd8, 0xf1, 0xa4, 0xef, 0x7c, 0x9d, 0x52, 0x1d, 0xc8, 0x0d, 0x1e,
  1019. 0x71, 0xa6, 0x98, 0x83, 0x66, 0x28, 0x38, 0x8c, 0xce, 0xc3, 0xff, 0xac, 0x86, 0x8f, 0x2b, 0x86,
  1020. 0x17, 0x4c, 0xb1, 0xcb, 0x42, 0x55, 0x1b, 0xa3, 0xa6, 0x9b, 0x50, 0x88, 0xee, 0x0a, 0xdb, 0x0f,
  1021. 0x3f, 0xc9, 0x73, 0x8c, 0x3e, 0x89, 0x8d, 0x99, 0x8b, 0x6a, 0x48, 0x2e, 0xf1, 0xb8, 0x65, 0x59,
  1022. 0x23, 0x60, 0x9c, 0xc3, 0x68, 0xbe, 0xbf, 0xe4, 0x3b, 0x5d, 0x43, 0xcd, 0xe9, 0x37, 0xc3, 0xd7,
  1023. 0x96, 0xfb, 0xd5, 0xc2, 0x63, 0x20, 0xb5, 0xc3, 0x46, 0xf2, 0xdf, 0xf6, 0xc1, 0x61, 0x23, 0x39,
  1024. 0xd5, 0x81, 0xbc, 0xc2, 0xb6, 0x62, 0x55, 0x2a, 0x54, 0x22, 0x39, 0x68, 0xa2, 0xf8, 0xa8, 0xef,
  1025. 0xfc, 0xbf, 0x24, 0x9d, 0x1a, 0x78, 0xc5, 0xf5, 0x75, 0xc0, 0x20, 0xba, 0x14, 0x41, 0x29, 0x5c,
  1026. 0xc7, 0x1f, 0x8e, 0x4e, 0x00, 0x5d, 0x71, 0x72, 0x86, 0xb1, 0x21, 0x0b, 0x96, 0x0b, 0x67, 0x04,
  1027. 0x8b, 0x7d, 0xda, 0x77, 0xfe, 0x3f, 0x2c, 0xb5, 0x01, 0xbf, 0x67, 0xb9, 0x20, 0x3e, 0x1e, 0x67,
  1028. 0xa2, 0x15, 0x99, 0x33, 0x86, 0xa6, 0x76, 0xdf, 0xf9, 0x86, 0xa0, 0xe6, 0x13, 0xd5, 0xf8, 0xc0,
  1029. 0x18, 0x27, 0x12, 0x93, 0xb5, 0x36, 0x9f, 0x64, 0xb2, 0x15, 0xc9, 0x67, 0x63, 0x9f, 0x04, 0x7b,
  1030. 0x6e, 0x69, 0xed, 0xbe, 0xdc, 0x7b, 0x9f, 0xf1, 0xc9, 0xb7, 0xad, 0x67, 0xdd, 0x6f, 0x3d, 0xeb,
  1031. 0xe7, 0xd6, 0xb3, 0xbe, 0xec, 0xbc, 0xc1, 0xfd, 0xce, 0x1b, 0x7c, 0xdf, 0x79, 0x83, 0x8f, 0xc3,
  1032. 0x36, 0x5a, 0x1c, 0xc0, 0xf3, 0x3d, 0xff, 0x15, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x39, 0x27, 0x2a,
  1033. 0x0f, 0x03, 0x00, 0x00,
  1034. }