dynamic.pb.go 19 KB

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