api.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. It is generated from these files:
  6. api.proto
  7. It has these top-level messages:
  8. BaseInfoReply
  9. NamesReply
  10. MidsReply
  11. */
  12. package v1
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import _ "github.com/gogo/protobuf/gogoproto"
  17. import go_common_library_time "go-common/library/time"
  18. import io "io"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.MemberBase
  29. type BaseInfoReply struct {
  30. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid"`
  31. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  32. Sex int64 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex"`
  33. Face string `protobuf:"bytes,4,opt,name=face,proto3" json:"face"`
  34. Sign string `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign"`
  35. Rank int64 `protobuf:"varint,6,opt,name=rank,proto3" json:"rank"`
  36. Birthday go_common_library_time.Time `protobuf:"varint,7,opt,name=birthday,proto3,casttype=go-common/library/time.Time" json:"birthday"`
  37. }
  38. func (m *BaseInfoReply) Reset() { *m = BaseInfoReply{} }
  39. func (m *BaseInfoReply) String() string { return proto.CompactTextString(m) }
  40. func (*BaseInfoReply) ProtoMessage() {}
  41. func (*BaseInfoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  42. func (m *BaseInfoReply) GetMid() int64 {
  43. if m != nil {
  44. return m.Mid
  45. }
  46. return 0
  47. }
  48. func (m *BaseInfoReply) GetName() string {
  49. if m != nil {
  50. return m.Name
  51. }
  52. return ""
  53. }
  54. func (m *BaseInfoReply) GetSex() int64 {
  55. if m != nil {
  56. return m.Sex
  57. }
  58. return 0
  59. }
  60. func (m *BaseInfoReply) GetFace() string {
  61. if m != nil {
  62. return m.Face
  63. }
  64. return ""
  65. }
  66. func (m *BaseInfoReply) GetSign() string {
  67. if m != nil {
  68. return m.Sign
  69. }
  70. return ""
  71. }
  72. func (m *BaseInfoReply) GetRank() int64 {
  73. if m != nil {
  74. return m.Rank
  75. }
  76. return 0
  77. }
  78. func (m *BaseInfoReply) GetBirthday() go_common_library_time.Time {
  79. if m != nil {
  80. return m.Birthday
  81. }
  82. return 0
  83. }
  84. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.Names
  85. type NamesReply struct {
  86. Names map[int64]string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  87. }
  88. func (m *NamesReply) Reset() { *m = NamesReply{} }
  89. func (m *NamesReply) String() string { return proto.CompactTextString(m) }
  90. func (*NamesReply) ProtoMessage() {}
  91. func (*NamesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  92. func (m *NamesReply) GetNames() map[int64]string {
  93. if m != nil {
  94. return m.Names
  95. }
  96. return nil
  97. }
  98. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.Mids
  99. type MidsReply struct {
  100. Mids []int64 `protobuf:"varint,1,rep,packed,name=mids" json:"mids,omitempty"`
  101. }
  102. func (m *MidsReply) Reset() { *m = MidsReply{} }
  103. func (m *MidsReply) String() string { return proto.CompactTextString(m) }
  104. func (*MidsReply) ProtoMessage() {}
  105. func (*MidsReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  106. func (m *MidsReply) GetMids() []int64 {
  107. if m != nil {
  108. return m.Mids
  109. }
  110. return nil
  111. }
  112. func init() {
  113. proto.RegisterType((*BaseInfoReply)(nil), "account.service.member.v1.BaseInfoReply")
  114. proto.RegisterType((*NamesReply)(nil), "account.service.member.v1.NamesReply")
  115. proto.RegisterType((*MidsReply)(nil), "account.service.member.v1.MidsReply")
  116. }
  117. func (m *BaseInfoReply) Marshal() (dAtA []byte, err error) {
  118. size := m.Size()
  119. dAtA = make([]byte, size)
  120. n, err := m.MarshalTo(dAtA)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return dAtA[:n], nil
  125. }
  126. func (m *BaseInfoReply) MarshalTo(dAtA []byte) (int, error) {
  127. var i int
  128. _ = i
  129. var l int
  130. _ = l
  131. if m.Mid != 0 {
  132. dAtA[i] = 0x8
  133. i++
  134. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  135. }
  136. if len(m.Name) > 0 {
  137. dAtA[i] = 0x12
  138. i++
  139. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  140. i += copy(dAtA[i:], m.Name)
  141. }
  142. if m.Sex != 0 {
  143. dAtA[i] = 0x18
  144. i++
  145. i = encodeVarintApi(dAtA, i, uint64(m.Sex))
  146. }
  147. if len(m.Face) > 0 {
  148. dAtA[i] = 0x22
  149. i++
  150. i = encodeVarintApi(dAtA, i, uint64(len(m.Face)))
  151. i += copy(dAtA[i:], m.Face)
  152. }
  153. if len(m.Sign) > 0 {
  154. dAtA[i] = 0x2a
  155. i++
  156. i = encodeVarintApi(dAtA, i, uint64(len(m.Sign)))
  157. i += copy(dAtA[i:], m.Sign)
  158. }
  159. if m.Rank != 0 {
  160. dAtA[i] = 0x30
  161. i++
  162. i = encodeVarintApi(dAtA, i, uint64(m.Rank))
  163. }
  164. if m.Birthday != 0 {
  165. dAtA[i] = 0x38
  166. i++
  167. i = encodeVarintApi(dAtA, i, uint64(m.Birthday))
  168. }
  169. return i, nil
  170. }
  171. func (m *NamesReply) Marshal() (dAtA []byte, err error) {
  172. size := m.Size()
  173. dAtA = make([]byte, size)
  174. n, err := m.MarshalTo(dAtA)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return dAtA[:n], nil
  179. }
  180. func (m *NamesReply) MarshalTo(dAtA []byte) (int, error) {
  181. var i int
  182. _ = i
  183. var l int
  184. _ = l
  185. if len(m.Names) > 0 {
  186. for k, _ := range m.Names {
  187. dAtA[i] = 0xa
  188. i++
  189. v := m.Names[k]
  190. mapSize := 1 + sovApi(uint64(k)) + 1 + len(v) + sovApi(uint64(len(v)))
  191. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  192. dAtA[i] = 0x8
  193. i++
  194. i = encodeVarintApi(dAtA, i, uint64(k))
  195. dAtA[i] = 0x12
  196. i++
  197. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  198. i += copy(dAtA[i:], v)
  199. }
  200. }
  201. return i, nil
  202. }
  203. func (m *MidsReply) Marshal() (dAtA []byte, err error) {
  204. size := m.Size()
  205. dAtA = make([]byte, size)
  206. n, err := m.MarshalTo(dAtA)
  207. if err != nil {
  208. return nil, err
  209. }
  210. return dAtA[:n], nil
  211. }
  212. func (m *MidsReply) MarshalTo(dAtA []byte) (int, error) {
  213. var i int
  214. _ = i
  215. var l int
  216. _ = l
  217. if len(m.Mids) > 0 {
  218. dAtA2 := make([]byte, len(m.Mids)*10)
  219. var j1 int
  220. for _, num1 := range m.Mids {
  221. num := uint64(num1)
  222. for num >= 1<<7 {
  223. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  224. num >>= 7
  225. j1++
  226. }
  227. dAtA2[j1] = uint8(num)
  228. j1++
  229. }
  230. dAtA[i] = 0xa
  231. i++
  232. i = encodeVarintApi(dAtA, i, uint64(j1))
  233. i += copy(dAtA[i:], dAtA2[:j1])
  234. }
  235. return i, nil
  236. }
  237. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  238. for v >= 1<<7 {
  239. dAtA[offset] = uint8(v&0x7f | 0x80)
  240. v >>= 7
  241. offset++
  242. }
  243. dAtA[offset] = uint8(v)
  244. return offset + 1
  245. }
  246. func (m *BaseInfoReply) Size() (n int) {
  247. var l int
  248. _ = l
  249. if m.Mid != 0 {
  250. n += 1 + sovApi(uint64(m.Mid))
  251. }
  252. l = len(m.Name)
  253. if l > 0 {
  254. n += 1 + l + sovApi(uint64(l))
  255. }
  256. if m.Sex != 0 {
  257. n += 1 + sovApi(uint64(m.Sex))
  258. }
  259. l = len(m.Face)
  260. if l > 0 {
  261. n += 1 + l + sovApi(uint64(l))
  262. }
  263. l = len(m.Sign)
  264. if l > 0 {
  265. n += 1 + l + sovApi(uint64(l))
  266. }
  267. if m.Rank != 0 {
  268. n += 1 + sovApi(uint64(m.Rank))
  269. }
  270. if m.Birthday != 0 {
  271. n += 1 + sovApi(uint64(m.Birthday))
  272. }
  273. return n
  274. }
  275. func (m *NamesReply) Size() (n int) {
  276. var l int
  277. _ = l
  278. if len(m.Names) > 0 {
  279. for k, v := range m.Names {
  280. _ = k
  281. _ = v
  282. mapEntrySize := 1 + sovApi(uint64(k)) + 1 + len(v) + sovApi(uint64(len(v)))
  283. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  284. }
  285. }
  286. return n
  287. }
  288. func (m *MidsReply) Size() (n int) {
  289. var l int
  290. _ = l
  291. if len(m.Mids) > 0 {
  292. l = 0
  293. for _, e := range m.Mids {
  294. l += sovApi(uint64(e))
  295. }
  296. n += 1 + sovApi(uint64(l)) + l
  297. }
  298. return n
  299. }
  300. func sovApi(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 sozApi(x uint64) (n int) {
  311. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  312. }
  313. func (m *BaseInfoReply) 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 ErrIntOverflowApi
  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: BaseInfoReply: wiretype end group for non-group")
  337. }
  338. if fieldNum <= 0 {
  339. return fmt.Errorf("proto: BaseInfoReply: 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 ErrIntOverflowApi
  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 != 2 {
  363. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  364. }
  365. var stringLen uint64
  366. for shift := uint(0); ; shift += 7 {
  367. if shift >= 64 {
  368. return ErrIntOverflowApi
  369. }
  370. if iNdEx >= l {
  371. return io.ErrUnexpectedEOF
  372. }
  373. b := dAtA[iNdEx]
  374. iNdEx++
  375. stringLen |= (uint64(b) & 0x7F) << shift
  376. if b < 0x80 {
  377. break
  378. }
  379. }
  380. intStringLen := int(stringLen)
  381. if intStringLen < 0 {
  382. return ErrInvalidLengthApi
  383. }
  384. postIndex := iNdEx + intStringLen
  385. if postIndex > l {
  386. return io.ErrUnexpectedEOF
  387. }
  388. m.Name = string(dAtA[iNdEx:postIndex])
  389. iNdEx = postIndex
  390. case 3:
  391. if wireType != 0 {
  392. return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
  393. }
  394. m.Sex = 0
  395. for shift := uint(0); ; shift += 7 {
  396. if shift >= 64 {
  397. return ErrIntOverflowApi
  398. }
  399. if iNdEx >= l {
  400. return io.ErrUnexpectedEOF
  401. }
  402. b := dAtA[iNdEx]
  403. iNdEx++
  404. m.Sex |= (int64(b) & 0x7F) << shift
  405. if b < 0x80 {
  406. break
  407. }
  408. }
  409. case 4:
  410. if wireType != 2 {
  411. return fmt.Errorf("proto: wrong wireType = %d for field Face", wireType)
  412. }
  413. var stringLen uint64
  414. for shift := uint(0); ; shift += 7 {
  415. if shift >= 64 {
  416. return ErrIntOverflowApi
  417. }
  418. if iNdEx >= l {
  419. return io.ErrUnexpectedEOF
  420. }
  421. b := dAtA[iNdEx]
  422. iNdEx++
  423. stringLen |= (uint64(b) & 0x7F) << shift
  424. if b < 0x80 {
  425. break
  426. }
  427. }
  428. intStringLen := int(stringLen)
  429. if intStringLen < 0 {
  430. return ErrInvalidLengthApi
  431. }
  432. postIndex := iNdEx + intStringLen
  433. if postIndex > l {
  434. return io.ErrUnexpectedEOF
  435. }
  436. m.Face = string(dAtA[iNdEx:postIndex])
  437. iNdEx = postIndex
  438. case 5:
  439. if wireType != 2 {
  440. return fmt.Errorf("proto: wrong wireType = %d for field Sign", wireType)
  441. }
  442. var stringLen uint64
  443. for shift := uint(0); ; shift += 7 {
  444. if shift >= 64 {
  445. return ErrIntOverflowApi
  446. }
  447. if iNdEx >= l {
  448. return io.ErrUnexpectedEOF
  449. }
  450. b := dAtA[iNdEx]
  451. iNdEx++
  452. stringLen |= (uint64(b) & 0x7F) << shift
  453. if b < 0x80 {
  454. break
  455. }
  456. }
  457. intStringLen := int(stringLen)
  458. if intStringLen < 0 {
  459. return ErrInvalidLengthApi
  460. }
  461. postIndex := iNdEx + intStringLen
  462. if postIndex > l {
  463. return io.ErrUnexpectedEOF
  464. }
  465. m.Sign = string(dAtA[iNdEx:postIndex])
  466. iNdEx = postIndex
  467. case 6:
  468. if wireType != 0 {
  469. return fmt.Errorf("proto: wrong wireType = %d for field Rank", wireType)
  470. }
  471. m.Rank = 0
  472. for shift := uint(0); ; shift += 7 {
  473. if shift >= 64 {
  474. return ErrIntOverflowApi
  475. }
  476. if iNdEx >= l {
  477. return io.ErrUnexpectedEOF
  478. }
  479. b := dAtA[iNdEx]
  480. iNdEx++
  481. m.Rank |= (int64(b) & 0x7F) << shift
  482. if b < 0x80 {
  483. break
  484. }
  485. }
  486. case 7:
  487. if wireType != 0 {
  488. return fmt.Errorf("proto: wrong wireType = %d for field Birthday", wireType)
  489. }
  490. m.Birthday = 0
  491. for shift := uint(0); ; shift += 7 {
  492. if shift >= 64 {
  493. return ErrIntOverflowApi
  494. }
  495. if iNdEx >= l {
  496. return io.ErrUnexpectedEOF
  497. }
  498. b := dAtA[iNdEx]
  499. iNdEx++
  500. m.Birthday |= (go_common_library_time.Time(b) & 0x7F) << shift
  501. if b < 0x80 {
  502. break
  503. }
  504. }
  505. default:
  506. iNdEx = preIndex
  507. skippy, err := skipApi(dAtA[iNdEx:])
  508. if err != nil {
  509. return err
  510. }
  511. if skippy < 0 {
  512. return ErrInvalidLengthApi
  513. }
  514. if (iNdEx + skippy) > l {
  515. return io.ErrUnexpectedEOF
  516. }
  517. iNdEx += skippy
  518. }
  519. }
  520. if iNdEx > l {
  521. return io.ErrUnexpectedEOF
  522. }
  523. return nil
  524. }
  525. func (m *NamesReply) Unmarshal(dAtA []byte) error {
  526. l := len(dAtA)
  527. iNdEx := 0
  528. for iNdEx < l {
  529. preIndex := iNdEx
  530. var wire uint64
  531. for shift := uint(0); ; shift += 7 {
  532. if shift >= 64 {
  533. return ErrIntOverflowApi
  534. }
  535. if iNdEx >= l {
  536. return io.ErrUnexpectedEOF
  537. }
  538. b := dAtA[iNdEx]
  539. iNdEx++
  540. wire |= (uint64(b) & 0x7F) << shift
  541. if b < 0x80 {
  542. break
  543. }
  544. }
  545. fieldNum := int32(wire >> 3)
  546. wireType := int(wire & 0x7)
  547. if wireType == 4 {
  548. return fmt.Errorf("proto: NamesReply: wiretype end group for non-group")
  549. }
  550. if fieldNum <= 0 {
  551. return fmt.Errorf("proto: NamesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  552. }
  553. switch fieldNum {
  554. case 1:
  555. if wireType != 2 {
  556. return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType)
  557. }
  558. var msglen int
  559. for shift := uint(0); ; shift += 7 {
  560. if shift >= 64 {
  561. return ErrIntOverflowApi
  562. }
  563. if iNdEx >= l {
  564. return io.ErrUnexpectedEOF
  565. }
  566. b := dAtA[iNdEx]
  567. iNdEx++
  568. msglen |= (int(b) & 0x7F) << shift
  569. if b < 0x80 {
  570. break
  571. }
  572. }
  573. if msglen < 0 {
  574. return ErrInvalidLengthApi
  575. }
  576. postIndex := iNdEx + msglen
  577. if postIndex > l {
  578. return io.ErrUnexpectedEOF
  579. }
  580. if m.Names == nil {
  581. m.Names = make(map[int64]string)
  582. }
  583. var mapkey int64
  584. var mapvalue string
  585. for iNdEx < postIndex {
  586. entryPreIndex := iNdEx
  587. var wire uint64
  588. for shift := uint(0); ; shift += 7 {
  589. if shift >= 64 {
  590. return ErrIntOverflowApi
  591. }
  592. if iNdEx >= l {
  593. return io.ErrUnexpectedEOF
  594. }
  595. b := dAtA[iNdEx]
  596. iNdEx++
  597. wire |= (uint64(b) & 0x7F) << shift
  598. if b < 0x80 {
  599. break
  600. }
  601. }
  602. fieldNum := int32(wire >> 3)
  603. if fieldNum == 1 {
  604. for shift := uint(0); ; shift += 7 {
  605. if shift >= 64 {
  606. return ErrIntOverflowApi
  607. }
  608. if iNdEx >= l {
  609. return io.ErrUnexpectedEOF
  610. }
  611. b := dAtA[iNdEx]
  612. iNdEx++
  613. mapkey |= (int64(b) & 0x7F) << shift
  614. if b < 0x80 {
  615. break
  616. }
  617. }
  618. } else if fieldNum == 2 {
  619. var stringLenmapvalue uint64
  620. for shift := uint(0); ; shift += 7 {
  621. if shift >= 64 {
  622. return ErrIntOverflowApi
  623. }
  624. if iNdEx >= l {
  625. return io.ErrUnexpectedEOF
  626. }
  627. b := dAtA[iNdEx]
  628. iNdEx++
  629. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  630. if b < 0x80 {
  631. break
  632. }
  633. }
  634. intStringLenmapvalue := int(stringLenmapvalue)
  635. if intStringLenmapvalue < 0 {
  636. return ErrInvalidLengthApi
  637. }
  638. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  639. if postStringIndexmapvalue > l {
  640. return io.ErrUnexpectedEOF
  641. }
  642. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  643. iNdEx = postStringIndexmapvalue
  644. } else {
  645. iNdEx = entryPreIndex
  646. skippy, err := skipApi(dAtA[iNdEx:])
  647. if err != nil {
  648. return err
  649. }
  650. if skippy < 0 {
  651. return ErrInvalidLengthApi
  652. }
  653. if (iNdEx + skippy) > postIndex {
  654. return io.ErrUnexpectedEOF
  655. }
  656. iNdEx += skippy
  657. }
  658. }
  659. m.Names[mapkey] = mapvalue
  660. iNdEx = postIndex
  661. default:
  662. iNdEx = preIndex
  663. skippy, err := skipApi(dAtA[iNdEx:])
  664. if err != nil {
  665. return err
  666. }
  667. if skippy < 0 {
  668. return ErrInvalidLengthApi
  669. }
  670. if (iNdEx + skippy) > l {
  671. return io.ErrUnexpectedEOF
  672. }
  673. iNdEx += skippy
  674. }
  675. }
  676. if iNdEx > l {
  677. return io.ErrUnexpectedEOF
  678. }
  679. return nil
  680. }
  681. func (m *MidsReply) Unmarshal(dAtA []byte) error {
  682. l := len(dAtA)
  683. iNdEx := 0
  684. for iNdEx < l {
  685. preIndex := iNdEx
  686. var wire uint64
  687. for shift := uint(0); ; shift += 7 {
  688. if shift >= 64 {
  689. return ErrIntOverflowApi
  690. }
  691. if iNdEx >= l {
  692. return io.ErrUnexpectedEOF
  693. }
  694. b := dAtA[iNdEx]
  695. iNdEx++
  696. wire |= (uint64(b) & 0x7F) << shift
  697. if b < 0x80 {
  698. break
  699. }
  700. }
  701. fieldNum := int32(wire >> 3)
  702. wireType := int(wire & 0x7)
  703. if wireType == 4 {
  704. return fmt.Errorf("proto: MidsReply: wiretype end group for non-group")
  705. }
  706. if fieldNum <= 0 {
  707. return fmt.Errorf("proto: MidsReply: illegal tag %d (wire type %d)", fieldNum, wire)
  708. }
  709. switch fieldNum {
  710. case 1:
  711. if wireType == 0 {
  712. var v int64
  713. for shift := uint(0); ; shift += 7 {
  714. if shift >= 64 {
  715. return ErrIntOverflowApi
  716. }
  717. if iNdEx >= l {
  718. return io.ErrUnexpectedEOF
  719. }
  720. b := dAtA[iNdEx]
  721. iNdEx++
  722. v |= (int64(b) & 0x7F) << shift
  723. if b < 0x80 {
  724. break
  725. }
  726. }
  727. m.Mids = append(m.Mids, v)
  728. } else if wireType == 2 {
  729. var packedLen int
  730. for shift := uint(0); ; shift += 7 {
  731. if shift >= 64 {
  732. return ErrIntOverflowApi
  733. }
  734. if iNdEx >= l {
  735. return io.ErrUnexpectedEOF
  736. }
  737. b := dAtA[iNdEx]
  738. iNdEx++
  739. packedLen |= (int(b) & 0x7F) << shift
  740. if b < 0x80 {
  741. break
  742. }
  743. }
  744. if packedLen < 0 {
  745. return ErrInvalidLengthApi
  746. }
  747. postIndex := iNdEx + packedLen
  748. if postIndex > l {
  749. return io.ErrUnexpectedEOF
  750. }
  751. for iNdEx < postIndex {
  752. var v int64
  753. for shift := uint(0); ; shift += 7 {
  754. if shift >= 64 {
  755. return ErrIntOverflowApi
  756. }
  757. if iNdEx >= l {
  758. return io.ErrUnexpectedEOF
  759. }
  760. b := dAtA[iNdEx]
  761. iNdEx++
  762. v |= (int64(b) & 0x7F) << shift
  763. if b < 0x80 {
  764. break
  765. }
  766. }
  767. m.Mids = append(m.Mids, v)
  768. }
  769. } else {
  770. return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
  771. }
  772. default:
  773. iNdEx = preIndex
  774. skippy, err := skipApi(dAtA[iNdEx:])
  775. if err != nil {
  776. return err
  777. }
  778. if skippy < 0 {
  779. return ErrInvalidLengthApi
  780. }
  781. if (iNdEx + skippy) > l {
  782. return io.ErrUnexpectedEOF
  783. }
  784. iNdEx += skippy
  785. }
  786. }
  787. if iNdEx > l {
  788. return io.ErrUnexpectedEOF
  789. }
  790. return nil
  791. }
  792. func skipApi(dAtA []byte) (n int, err error) {
  793. l := len(dAtA)
  794. iNdEx := 0
  795. for iNdEx < l {
  796. var wire uint64
  797. for shift := uint(0); ; shift += 7 {
  798. if shift >= 64 {
  799. return 0, ErrIntOverflowApi
  800. }
  801. if iNdEx >= l {
  802. return 0, io.ErrUnexpectedEOF
  803. }
  804. b := dAtA[iNdEx]
  805. iNdEx++
  806. wire |= (uint64(b) & 0x7F) << shift
  807. if b < 0x80 {
  808. break
  809. }
  810. }
  811. wireType := int(wire & 0x7)
  812. switch wireType {
  813. case 0:
  814. for shift := uint(0); ; shift += 7 {
  815. if shift >= 64 {
  816. return 0, ErrIntOverflowApi
  817. }
  818. if iNdEx >= l {
  819. return 0, io.ErrUnexpectedEOF
  820. }
  821. iNdEx++
  822. if dAtA[iNdEx-1] < 0x80 {
  823. break
  824. }
  825. }
  826. return iNdEx, nil
  827. case 1:
  828. iNdEx += 8
  829. return iNdEx, nil
  830. case 2:
  831. var length int
  832. for shift := uint(0); ; shift += 7 {
  833. if shift >= 64 {
  834. return 0, ErrIntOverflowApi
  835. }
  836. if iNdEx >= l {
  837. return 0, io.ErrUnexpectedEOF
  838. }
  839. b := dAtA[iNdEx]
  840. iNdEx++
  841. length |= (int(b) & 0x7F) << shift
  842. if b < 0x80 {
  843. break
  844. }
  845. }
  846. iNdEx += length
  847. if length < 0 {
  848. return 0, ErrInvalidLengthApi
  849. }
  850. return iNdEx, nil
  851. case 3:
  852. for {
  853. var innerWire uint64
  854. var start int = iNdEx
  855. for shift := uint(0); ; shift += 7 {
  856. if shift >= 64 {
  857. return 0, ErrIntOverflowApi
  858. }
  859. if iNdEx >= l {
  860. return 0, io.ErrUnexpectedEOF
  861. }
  862. b := dAtA[iNdEx]
  863. iNdEx++
  864. innerWire |= (uint64(b) & 0x7F) << shift
  865. if b < 0x80 {
  866. break
  867. }
  868. }
  869. innerWireType := int(innerWire & 0x7)
  870. if innerWireType == 4 {
  871. break
  872. }
  873. next, err := skipApi(dAtA[start:])
  874. if err != nil {
  875. return 0, err
  876. }
  877. iNdEx = start + next
  878. }
  879. return iNdEx, nil
  880. case 4:
  881. return iNdEx, nil
  882. case 5:
  883. iNdEx += 4
  884. return iNdEx, nil
  885. default:
  886. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  887. }
  888. }
  889. panic("unreachable")
  890. }
  891. var (
  892. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  893. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  894. )
  895. func init() { proto.RegisterFile("api.proto", fileDescriptorApi) }
  896. var fileDescriptorApi = []byte{
  897. // 383 bytes of a gzipped FileDescriptorProto
  898. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xbb, 0x6e, 0xdb, 0x30,
  899. 0x18, 0x85, 0x4b, 0xc9, 0x57, 0x16, 0x05, 0x0a, 0xc1, 0x03, 0xed, 0x16, 0x92, 0xe1, 0xc9, 0x40,
  900. 0x61, 0xaa, 0x6e, 0x17, 0xa3, 0xa3, 0x80, 0xb6, 0xc8, 0x90, 0x0c, 0x44, 0xa6, 0x6c, 0x94, 0x44,
  901. 0xcb, 0x84, 0x4d, 0xd1, 0xa0, 0x2e, 0xb0, 0x5e, 0x20, 0x63, 0xe6, 0x3c, 0x52, 0xc6, 0x3c, 0x81,
  902. 0x10, 0x38, 0x9b, 0x1f, 0x21, 0x53, 0x40, 0xca, 0xb0, 0xa6, 0x2c, 0x07, 0xff, 0xc7, 0xc3, 0xf3,
  903. 0x83, 0x3a, 0x82, 0x43, 0xba, 0xe7, 0x78, 0xaf, 0x64, 0x2e, 0x9d, 0x31, 0x8d, 0x22, 0x59, 0xa4,
  904. 0x39, 0xce, 0x98, 0x2a, 0x79, 0xc4, 0xb0, 0x60, 0x22, 0x64, 0x0a, 0x97, 0xcb, 0xc9, 0x22, 0xe1,
  905. 0xf9, 0xa6, 0x08, 0x71, 0x24, 0x85, 0x9f, 0xc8, 0x44, 0xfa, 0x26, 0x11, 0x16, 0x6b, 0x43, 0x06,
  906. 0xcc, 0xd4, 0x6c, 0x9a, 0xdd, 0x5b, 0xf0, 0x4b, 0x40, 0x33, 0x76, 0x95, 0xae, 0x25, 0x61, 0xfb,
  907. 0x5d, 0xe5, 0x8c, 0xa1, 0x2d, 0x78, 0x8c, 0xc0, 0x14, 0xcc, 0xed, 0xa0, 0x7f, 0xaa, 0x3d, 0x8d,
  908. 0x44, 0x8b, 0xf3, 0x1d, 0x76, 0x52, 0x2a, 0x18, 0xb2, 0xa6, 0x60, 0x3e, 0x0c, 0x06, 0xa7, 0xda,
  909. 0x33, 0x4c, 0x8c, 0xea, 0x60, 0xc6, 0x0e, 0xc8, 0x6e, 0x83, 0x19, 0x3b, 0x10, 0x2d, 0x3a, 0xb8,
  910. 0xa6, 0x11, 0x43, 0x9d, 0x36, 0xa8, 0x99, 0x18, 0xd5, 0x6e, 0xc6, 0x93, 0x14, 0x75, 0x5b, 0x57,
  911. 0x33, 0x31, 0xaa, 0x5d, 0x45, 0xd3, 0x2d, 0xea, 0x99, 0xbd, 0xc6, 0xd5, 0x4c, 0x8c, 0x3a, 0xff,
  912. 0xe1, 0x20, 0xe4, 0x2a, 0xdf, 0xc4, 0xb4, 0x42, 0x7d, 0x73, 0xe3, 0xc7, 0xa9, 0xf6, 0x2e, 0x67,
  913. 0x6f, 0xb5, 0xf7, 0x2d, 0x91, 0x8b, 0x48, 0x0a, 0x21, 0x53, 0x7f, 0xc7, 0x43, 0x45, 0x55, 0xe5,
  914. 0xe7, 0x5c, 0x30, 0x7c, 0xcb, 0x05, 0x23, 0x97, 0x8b, 0xb3, 0x07, 0x00, 0xe1, 0x0d, 0x15, 0x2c,
  915. 0x6b, 0x5a, 0xf8, 0x07, 0xbb, 0xfa, 0xa3, 0x32, 0x04, 0xa6, 0xf6, 0xfc, 0xf3, 0xaf, 0x9f, 0xf8,
  916. 0xc3, 0xc6, 0x71, 0x9b, 0x6a, 0xc6, 0xbf, 0x69, 0xae, 0x2a, 0xd2, 0xc4, 0x27, 0xab, 0xf3, 0x56,
  917. 0x73, 0xe8, 0x7c, 0x85, 0xf6, 0x96, 0x55, 0x4d, 0xb7, 0x44, 0x8f, 0xce, 0x08, 0x76, 0x4b, 0xba,
  918. 0x2b, 0xce, 0x9d, 0x92, 0x06, 0xfe, 0x58, 0x2b, 0x30, 0xf3, 0xe0, 0xf0, 0x9a, 0xc7, 0xe7, 0xe7,
  919. 0x38, 0xb0, 0x23, 0x78, 0xdc, 0xbc, 0xc6, 0x26, 0x66, 0x0e, 0x46, 0x4f, 0x47, 0x17, 0x3c, 0x1f,
  920. 0x5d, 0xf0, 0x72, 0x74, 0xc1, 0xe3, 0xab, 0xfb, 0xe9, 0xce, 0x2a, 0x97, 0x61, 0xcf, 0xfc, 0xd7,
  921. 0xdf, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0x29, 0x80, 0x4b, 0x2e, 0x02, 0x00, 0x00,
  922. }