issue260.pb.go 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: issue260.proto
  3. /*
  4. Package issue260 is a generated protocol buffer package.
  5. It is generated from these files:
  6. issue260.proto
  7. It has these top-level messages:
  8. Dropped
  9. DroppedWithoutGetters
  10. Kept
  11. */
  12. package issue260
  13. import proto "github.com/gogo/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import _ "github.com/gogo/protobuf/gogoproto"
  17. import _ "github.com/gogo/protobuf/types"
  18. import time "time"
  19. import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  20. import io "io"
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. var _ = time.Kitchen
  26. // This is a compile-time assertion to ensure that this generated file
  27. // is compatible with the proto package it is being compiled against.
  28. // A compilation error at this line likely means your copy of the
  29. // proto package needs to be updated.
  30. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  31. func (m *Dropped) Reset() { *m = Dropped{} }
  32. func (m *Dropped) String() string { return proto.CompactTextString(m) }
  33. func (*Dropped) ProtoMessage() {}
  34. func (*Dropped) Descriptor() ([]byte, []int) { return fileDescriptorIssue260, []int{0} }
  35. func (m *Dropped) GetName() string {
  36. if m != nil {
  37. return m.Name
  38. }
  39. return ""
  40. }
  41. func (m *Dropped) GetAge() int32 {
  42. if m != nil {
  43. return m.Age
  44. }
  45. return 0
  46. }
  47. func (m *DroppedWithoutGetters) Reset() { *m = DroppedWithoutGetters{} }
  48. func (m *DroppedWithoutGetters) String() string { return proto.CompactTextString(m) }
  49. func (*DroppedWithoutGetters) ProtoMessage() {}
  50. func (*DroppedWithoutGetters) Descriptor() ([]byte, []int) { return fileDescriptorIssue260, []int{1} }
  51. type Kept struct {
  52. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  53. Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
  54. }
  55. func (m *Kept) Reset() { *m = Kept{} }
  56. func (m *Kept) String() string { return proto.CompactTextString(m) }
  57. func (*Kept) ProtoMessage() {}
  58. func (*Kept) Descriptor() ([]byte, []int) { return fileDescriptorIssue260, []int{2} }
  59. func (m *Kept) GetName() string {
  60. if m != nil {
  61. return m.Name
  62. }
  63. return ""
  64. }
  65. func (m *Kept) GetAge() int32 {
  66. if m != nil {
  67. return m.Age
  68. }
  69. return 0
  70. }
  71. func init() {
  72. proto.RegisterType((*Dropped)(nil), "issue260.Dropped")
  73. proto.RegisterType((*DroppedWithoutGetters)(nil), "issue260.DroppedWithoutGetters")
  74. proto.RegisterType((*Kept)(nil), "issue260.Kept")
  75. }
  76. func (this *Dropped) VerboseEqual(that interface{}) error {
  77. if that == nil {
  78. if this == nil {
  79. return nil
  80. }
  81. return fmt.Errorf("that == nil && this != nil")
  82. }
  83. that1, ok := that.(*Dropped)
  84. if !ok {
  85. that2, ok := that.(Dropped)
  86. if ok {
  87. that1 = &that2
  88. } else {
  89. return fmt.Errorf("that is not of type *Dropped")
  90. }
  91. }
  92. if that1 == nil {
  93. if this == nil {
  94. return nil
  95. }
  96. return fmt.Errorf("that is type *Dropped but is nil && this != nil")
  97. } else if this == nil {
  98. return fmt.Errorf("that is type *Dropped but is not nil && this == nil")
  99. }
  100. if this.Name != that1.Name {
  101. return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name)
  102. }
  103. if this.Age != that1.Age {
  104. return fmt.Errorf("Age this(%v) Not Equal that(%v)", this.Age, that1.Age)
  105. }
  106. return nil
  107. }
  108. func (this *Dropped) Equal(that interface{}) bool {
  109. if that == nil {
  110. if this == nil {
  111. return true
  112. }
  113. return false
  114. }
  115. that1, ok := that.(*Dropped)
  116. if !ok {
  117. that2, ok := that.(Dropped)
  118. if ok {
  119. that1 = &that2
  120. } else {
  121. return false
  122. }
  123. }
  124. if that1 == nil {
  125. if this == nil {
  126. return true
  127. }
  128. return false
  129. } else if this == nil {
  130. return false
  131. }
  132. if this.Name != that1.Name {
  133. return false
  134. }
  135. if this.Age != that1.Age {
  136. return false
  137. }
  138. return true
  139. }
  140. func (this *DroppedWithoutGetters) VerboseEqual(that interface{}) error {
  141. if that == nil {
  142. if this == nil {
  143. return nil
  144. }
  145. return fmt.Errorf("that == nil && this != nil")
  146. }
  147. that1, ok := that.(*DroppedWithoutGetters)
  148. if !ok {
  149. that2, ok := that.(DroppedWithoutGetters)
  150. if ok {
  151. that1 = &that2
  152. } else {
  153. return fmt.Errorf("that is not of type *DroppedWithoutGetters")
  154. }
  155. }
  156. if that1 == nil {
  157. if this == nil {
  158. return nil
  159. }
  160. return fmt.Errorf("that is type *DroppedWithoutGetters but is nil && this != nil")
  161. } else if this == nil {
  162. return fmt.Errorf("that is type *DroppedWithoutGetters but is not nil && this == nil")
  163. }
  164. if this.Height != that1.Height {
  165. return fmt.Errorf("Height this(%v) Not Equal that(%v)", this.Height, that1.Height)
  166. }
  167. if this.Width != that1.Width {
  168. return fmt.Errorf("Width this(%v) Not Equal that(%v)", this.Width, that1.Width)
  169. }
  170. if !this.Timestamp.Equal(that1.Timestamp) {
  171. return fmt.Errorf("Timestamp this(%v) Not Equal that(%v)", this.Timestamp, that1.Timestamp)
  172. }
  173. return nil
  174. }
  175. func (this *DroppedWithoutGetters) Equal(that interface{}) bool {
  176. if that == nil {
  177. if this == nil {
  178. return true
  179. }
  180. return false
  181. }
  182. that1, ok := that.(*DroppedWithoutGetters)
  183. if !ok {
  184. that2, ok := that.(DroppedWithoutGetters)
  185. if ok {
  186. that1 = &that2
  187. } else {
  188. return false
  189. }
  190. }
  191. if that1 == nil {
  192. if this == nil {
  193. return true
  194. }
  195. return false
  196. } else if this == nil {
  197. return false
  198. }
  199. if this.Height != that1.Height {
  200. return false
  201. }
  202. if this.Width != that1.Width {
  203. return false
  204. }
  205. if !this.Timestamp.Equal(that1.Timestamp) {
  206. return false
  207. }
  208. return true
  209. }
  210. func (this *Kept) VerboseEqual(that interface{}) error {
  211. if that == nil {
  212. if this == nil {
  213. return nil
  214. }
  215. return fmt.Errorf("that == nil && this != nil")
  216. }
  217. that1, ok := that.(*Kept)
  218. if !ok {
  219. that2, ok := that.(Kept)
  220. if ok {
  221. that1 = &that2
  222. } else {
  223. return fmt.Errorf("that is not of type *Kept")
  224. }
  225. }
  226. if that1 == nil {
  227. if this == nil {
  228. return nil
  229. }
  230. return fmt.Errorf("that is type *Kept but is nil && this != nil")
  231. } else if this == nil {
  232. return fmt.Errorf("that is type *Kept but is not nil && this == nil")
  233. }
  234. if this.Name != that1.Name {
  235. return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name)
  236. }
  237. if this.Age != that1.Age {
  238. return fmt.Errorf("Age this(%v) Not Equal that(%v)", this.Age, that1.Age)
  239. }
  240. return nil
  241. }
  242. func (this *Kept) Equal(that interface{}) bool {
  243. if that == nil {
  244. if this == nil {
  245. return true
  246. }
  247. return false
  248. }
  249. that1, ok := that.(*Kept)
  250. if !ok {
  251. that2, ok := that.(Kept)
  252. if ok {
  253. that1 = &that2
  254. } else {
  255. return false
  256. }
  257. }
  258. if that1 == nil {
  259. if this == nil {
  260. return true
  261. }
  262. return false
  263. } else if this == nil {
  264. return false
  265. }
  266. if this.Name != that1.Name {
  267. return false
  268. }
  269. if this.Age != that1.Age {
  270. return false
  271. }
  272. return true
  273. }
  274. func (m *Dropped) Marshal() (dAtA []byte, err error) {
  275. size := m.Size()
  276. dAtA = make([]byte, size)
  277. n, err := m.MarshalTo(dAtA)
  278. if err != nil {
  279. return nil, err
  280. }
  281. return dAtA[:n], nil
  282. }
  283. func (m *Dropped) MarshalTo(dAtA []byte) (int, error) {
  284. var i int
  285. _ = i
  286. var l int
  287. _ = l
  288. if len(m.Name) > 0 {
  289. dAtA[i] = 0xa
  290. i++
  291. i = encodeVarintIssue260(dAtA, i, uint64(len(m.Name)))
  292. i += copy(dAtA[i:], m.Name)
  293. }
  294. if m.Age != 0 {
  295. dAtA[i] = 0x10
  296. i++
  297. i = encodeVarintIssue260(dAtA, i, uint64(m.Age))
  298. }
  299. return i, nil
  300. }
  301. func (m *DroppedWithoutGetters) Marshal() (dAtA []byte, err error) {
  302. size := m.Size()
  303. dAtA = make([]byte, size)
  304. n, err := m.MarshalTo(dAtA)
  305. if err != nil {
  306. return nil, err
  307. }
  308. return dAtA[:n], nil
  309. }
  310. func (m *DroppedWithoutGetters) MarshalTo(dAtA []byte) (int, error) {
  311. var i int
  312. _ = i
  313. var l int
  314. _ = l
  315. if m.Height != 0 {
  316. dAtA[i] = 0x8
  317. i++
  318. i = encodeVarintIssue260(dAtA, i, uint64(m.Height))
  319. }
  320. if m.Width != 0 {
  321. dAtA[i] = 0x10
  322. i++
  323. i = encodeVarintIssue260(dAtA, i, uint64(m.Width))
  324. }
  325. dAtA[i] = 0x1a
  326. i++
  327. i = encodeVarintIssue260(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)))
  328. n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i:])
  329. if err != nil {
  330. return 0, err
  331. }
  332. i += n1
  333. return i, nil
  334. }
  335. func (m *Kept) Marshal() (dAtA []byte, err error) {
  336. size := m.Size()
  337. dAtA = make([]byte, size)
  338. n, err := m.MarshalTo(dAtA)
  339. if err != nil {
  340. return nil, err
  341. }
  342. return dAtA[:n], nil
  343. }
  344. func (m *Kept) MarshalTo(dAtA []byte) (int, error) {
  345. var i int
  346. _ = i
  347. var l int
  348. _ = l
  349. if len(m.Name) > 0 {
  350. dAtA[i] = 0xa
  351. i++
  352. i = encodeVarintIssue260(dAtA, i, uint64(len(m.Name)))
  353. i += copy(dAtA[i:], m.Name)
  354. }
  355. if m.Age != 0 {
  356. dAtA[i] = 0x10
  357. i++
  358. i = encodeVarintIssue260(dAtA, i, uint64(m.Age))
  359. }
  360. return i, nil
  361. }
  362. func encodeVarintIssue260(dAtA []byte, offset int, v uint64) int {
  363. for v >= 1<<7 {
  364. dAtA[offset] = uint8(v&0x7f | 0x80)
  365. v >>= 7
  366. offset++
  367. }
  368. dAtA[offset] = uint8(v)
  369. return offset + 1
  370. }
  371. func NewPopulatedDropped(r randyIssue260, easy bool) *Dropped {
  372. this := &Dropped{}
  373. this.Name = string(randStringIssue260(r))
  374. this.Age = int32(r.Int31())
  375. if r.Intn(2) == 0 {
  376. this.Age *= -1
  377. }
  378. if !easy && r.Intn(10) != 0 {
  379. }
  380. return this
  381. }
  382. func NewPopulatedDroppedWithoutGetters(r randyIssue260, easy bool) *DroppedWithoutGetters {
  383. this := &DroppedWithoutGetters{}
  384. this.Height = int64(r.Int63())
  385. if r.Intn(2) == 0 {
  386. this.Height *= -1
  387. }
  388. this.Width = int64(r.Int63())
  389. if r.Intn(2) == 0 {
  390. this.Width *= -1
  391. }
  392. v1 := github_com_gogo_protobuf_types.NewPopulatedStdTime(r, easy)
  393. this.Timestamp = *v1
  394. if !easy && r.Intn(10) != 0 {
  395. }
  396. return this
  397. }
  398. func NewPopulatedKept(r randyIssue260, easy bool) *Kept {
  399. this := &Kept{}
  400. this.Name = string(randStringIssue260(r))
  401. this.Age = int32(r.Int31())
  402. if r.Intn(2) == 0 {
  403. this.Age *= -1
  404. }
  405. if !easy && r.Intn(10) != 0 {
  406. }
  407. return this
  408. }
  409. type randyIssue260 interface {
  410. Float32() float32
  411. Float64() float64
  412. Int63() int64
  413. Int31() int32
  414. Uint32() uint32
  415. Intn(n int) int
  416. }
  417. func randUTF8RuneIssue260(r randyIssue260) rune {
  418. ru := r.Intn(62)
  419. if ru < 10 {
  420. return rune(ru + 48)
  421. } else if ru < 36 {
  422. return rune(ru + 55)
  423. }
  424. return rune(ru + 61)
  425. }
  426. func randStringIssue260(r randyIssue260) string {
  427. v2 := r.Intn(100)
  428. tmps := make([]rune, v2)
  429. for i := 0; i < v2; i++ {
  430. tmps[i] = randUTF8RuneIssue260(r)
  431. }
  432. return string(tmps)
  433. }
  434. func randUnrecognizedIssue260(r randyIssue260, maxFieldNumber int) (dAtA []byte) {
  435. l := r.Intn(5)
  436. for i := 0; i < l; i++ {
  437. wire := r.Intn(4)
  438. if wire == 3 {
  439. wire = 5
  440. }
  441. fieldNumber := maxFieldNumber + r.Intn(100)
  442. dAtA = randFieldIssue260(dAtA, r, fieldNumber, wire)
  443. }
  444. return dAtA
  445. }
  446. func randFieldIssue260(dAtA []byte, r randyIssue260, fieldNumber int, wire int) []byte {
  447. key := uint32(fieldNumber)<<3 | uint32(wire)
  448. switch wire {
  449. case 0:
  450. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(key))
  451. v3 := r.Int63()
  452. if r.Intn(2) == 0 {
  453. v3 *= -1
  454. }
  455. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(v3))
  456. case 1:
  457. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(key))
  458. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  459. case 2:
  460. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(key))
  461. ll := r.Intn(100)
  462. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(ll))
  463. for j := 0; j < ll; j++ {
  464. dAtA = append(dAtA, byte(r.Intn(256)))
  465. }
  466. default:
  467. dAtA = encodeVarintPopulateIssue260(dAtA, uint64(key))
  468. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  469. }
  470. return dAtA
  471. }
  472. func encodeVarintPopulateIssue260(dAtA []byte, v uint64) []byte {
  473. for v >= 1<<7 {
  474. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  475. v >>= 7
  476. }
  477. dAtA = append(dAtA, uint8(v))
  478. return dAtA
  479. }
  480. func (m *Dropped) Size() (n int) {
  481. var l int
  482. _ = l
  483. l = len(m.Name)
  484. if l > 0 {
  485. n += 1 + l + sovIssue260(uint64(l))
  486. }
  487. if m.Age != 0 {
  488. n += 1 + sovIssue260(uint64(m.Age))
  489. }
  490. return n
  491. }
  492. func (m *DroppedWithoutGetters) Size() (n int) {
  493. var l int
  494. _ = l
  495. if m.Height != 0 {
  496. n += 1 + sovIssue260(uint64(m.Height))
  497. }
  498. if m.Width != 0 {
  499. n += 1 + sovIssue260(uint64(m.Width))
  500. }
  501. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)
  502. n += 1 + l + sovIssue260(uint64(l))
  503. return n
  504. }
  505. func (m *Kept) Size() (n int) {
  506. var l int
  507. _ = l
  508. l = len(m.Name)
  509. if l > 0 {
  510. n += 1 + l + sovIssue260(uint64(l))
  511. }
  512. if m.Age != 0 {
  513. n += 1 + sovIssue260(uint64(m.Age))
  514. }
  515. return n
  516. }
  517. func sovIssue260(x uint64) (n int) {
  518. for {
  519. n++
  520. x >>= 7
  521. if x == 0 {
  522. break
  523. }
  524. }
  525. return n
  526. }
  527. func sozIssue260(x uint64) (n int) {
  528. return sovIssue260(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  529. }
  530. func (m *Dropped) Unmarshal(dAtA []byte) error {
  531. l := len(dAtA)
  532. iNdEx := 0
  533. for iNdEx < l {
  534. preIndex := iNdEx
  535. var wire uint64
  536. for shift := uint(0); ; shift += 7 {
  537. if shift >= 64 {
  538. return ErrIntOverflowIssue260
  539. }
  540. if iNdEx >= l {
  541. return io.ErrUnexpectedEOF
  542. }
  543. b := dAtA[iNdEx]
  544. iNdEx++
  545. wire |= (uint64(b) & 0x7F) << shift
  546. if b < 0x80 {
  547. break
  548. }
  549. }
  550. fieldNum := int32(wire >> 3)
  551. wireType := int(wire & 0x7)
  552. if wireType == 4 {
  553. return fmt.Errorf("proto: Dropped: wiretype end group for non-group")
  554. }
  555. if fieldNum <= 0 {
  556. return fmt.Errorf("proto: Dropped: illegal tag %d (wire type %d)", fieldNum, wire)
  557. }
  558. switch fieldNum {
  559. case 1:
  560. if wireType != 2 {
  561. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  562. }
  563. var stringLen uint64
  564. for shift := uint(0); ; shift += 7 {
  565. if shift >= 64 {
  566. return ErrIntOverflowIssue260
  567. }
  568. if iNdEx >= l {
  569. return io.ErrUnexpectedEOF
  570. }
  571. b := dAtA[iNdEx]
  572. iNdEx++
  573. stringLen |= (uint64(b) & 0x7F) << shift
  574. if b < 0x80 {
  575. break
  576. }
  577. }
  578. intStringLen := int(stringLen)
  579. if intStringLen < 0 {
  580. return ErrInvalidLengthIssue260
  581. }
  582. postIndex := iNdEx + intStringLen
  583. if postIndex > l {
  584. return io.ErrUnexpectedEOF
  585. }
  586. m.Name = string(dAtA[iNdEx:postIndex])
  587. iNdEx = postIndex
  588. case 2:
  589. if wireType != 0 {
  590. return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
  591. }
  592. m.Age = 0
  593. for shift := uint(0); ; shift += 7 {
  594. if shift >= 64 {
  595. return ErrIntOverflowIssue260
  596. }
  597. if iNdEx >= l {
  598. return io.ErrUnexpectedEOF
  599. }
  600. b := dAtA[iNdEx]
  601. iNdEx++
  602. m.Age |= (int32(b) & 0x7F) << shift
  603. if b < 0x80 {
  604. break
  605. }
  606. }
  607. default:
  608. iNdEx = preIndex
  609. skippy, err := skipIssue260(dAtA[iNdEx:])
  610. if err != nil {
  611. return err
  612. }
  613. if skippy < 0 {
  614. return ErrInvalidLengthIssue260
  615. }
  616. if (iNdEx + skippy) > l {
  617. return io.ErrUnexpectedEOF
  618. }
  619. iNdEx += skippy
  620. }
  621. }
  622. if iNdEx > l {
  623. return io.ErrUnexpectedEOF
  624. }
  625. return nil
  626. }
  627. func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error {
  628. l := len(dAtA)
  629. iNdEx := 0
  630. for iNdEx < l {
  631. preIndex := iNdEx
  632. var wire uint64
  633. for shift := uint(0); ; shift += 7 {
  634. if shift >= 64 {
  635. return ErrIntOverflowIssue260
  636. }
  637. if iNdEx >= l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. b := dAtA[iNdEx]
  641. iNdEx++
  642. wire |= (uint64(b) & 0x7F) << shift
  643. if b < 0x80 {
  644. break
  645. }
  646. }
  647. fieldNum := int32(wire >> 3)
  648. wireType := int(wire & 0x7)
  649. if wireType == 4 {
  650. return fmt.Errorf("proto: DroppedWithoutGetters: wiretype end group for non-group")
  651. }
  652. if fieldNum <= 0 {
  653. return fmt.Errorf("proto: DroppedWithoutGetters: illegal tag %d (wire type %d)", fieldNum, wire)
  654. }
  655. switch fieldNum {
  656. case 1:
  657. if wireType != 0 {
  658. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  659. }
  660. m.Height = 0
  661. for shift := uint(0); ; shift += 7 {
  662. if shift >= 64 {
  663. return ErrIntOverflowIssue260
  664. }
  665. if iNdEx >= l {
  666. return io.ErrUnexpectedEOF
  667. }
  668. b := dAtA[iNdEx]
  669. iNdEx++
  670. m.Height |= (int64(b) & 0x7F) << shift
  671. if b < 0x80 {
  672. break
  673. }
  674. }
  675. case 2:
  676. if wireType != 0 {
  677. return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
  678. }
  679. m.Width = 0
  680. for shift := uint(0); ; shift += 7 {
  681. if shift >= 64 {
  682. return ErrIntOverflowIssue260
  683. }
  684. if iNdEx >= l {
  685. return io.ErrUnexpectedEOF
  686. }
  687. b := dAtA[iNdEx]
  688. iNdEx++
  689. m.Width |= (int64(b) & 0x7F) << shift
  690. if b < 0x80 {
  691. break
  692. }
  693. }
  694. case 3:
  695. if wireType != 2 {
  696. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  697. }
  698. var msglen int
  699. for shift := uint(0); ; shift += 7 {
  700. if shift >= 64 {
  701. return ErrIntOverflowIssue260
  702. }
  703. if iNdEx >= l {
  704. return io.ErrUnexpectedEOF
  705. }
  706. b := dAtA[iNdEx]
  707. iNdEx++
  708. msglen |= (int(b) & 0x7F) << shift
  709. if b < 0x80 {
  710. break
  711. }
  712. }
  713. if msglen < 0 {
  714. return ErrInvalidLengthIssue260
  715. }
  716. postIndex := iNdEx + msglen
  717. if postIndex > l {
  718. return io.ErrUnexpectedEOF
  719. }
  720. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
  721. return err
  722. }
  723. iNdEx = postIndex
  724. default:
  725. iNdEx = preIndex
  726. skippy, err := skipIssue260(dAtA[iNdEx:])
  727. if err != nil {
  728. return err
  729. }
  730. if skippy < 0 {
  731. return ErrInvalidLengthIssue260
  732. }
  733. if (iNdEx + skippy) > l {
  734. return io.ErrUnexpectedEOF
  735. }
  736. iNdEx += skippy
  737. }
  738. }
  739. if iNdEx > l {
  740. return io.ErrUnexpectedEOF
  741. }
  742. return nil
  743. }
  744. func (m *Kept) Unmarshal(dAtA []byte) error {
  745. l := len(dAtA)
  746. iNdEx := 0
  747. for iNdEx < l {
  748. preIndex := iNdEx
  749. var wire uint64
  750. for shift := uint(0); ; shift += 7 {
  751. if shift >= 64 {
  752. return ErrIntOverflowIssue260
  753. }
  754. if iNdEx >= l {
  755. return io.ErrUnexpectedEOF
  756. }
  757. b := dAtA[iNdEx]
  758. iNdEx++
  759. wire |= (uint64(b) & 0x7F) << shift
  760. if b < 0x80 {
  761. break
  762. }
  763. }
  764. fieldNum := int32(wire >> 3)
  765. wireType := int(wire & 0x7)
  766. if wireType == 4 {
  767. return fmt.Errorf("proto: Kept: wiretype end group for non-group")
  768. }
  769. if fieldNum <= 0 {
  770. return fmt.Errorf("proto: Kept: illegal tag %d (wire type %d)", fieldNum, wire)
  771. }
  772. switch fieldNum {
  773. case 1:
  774. if wireType != 2 {
  775. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  776. }
  777. var stringLen uint64
  778. for shift := uint(0); ; shift += 7 {
  779. if shift >= 64 {
  780. return ErrIntOverflowIssue260
  781. }
  782. if iNdEx >= l {
  783. return io.ErrUnexpectedEOF
  784. }
  785. b := dAtA[iNdEx]
  786. iNdEx++
  787. stringLen |= (uint64(b) & 0x7F) << shift
  788. if b < 0x80 {
  789. break
  790. }
  791. }
  792. intStringLen := int(stringLen)
  793. if intStringLen < 0 {
  794. return ErrInvalidLengthIssue260
  795. }
  796. postIndex := iNdEx + intStringLen
  797. if postIndex > l {
  798. return io.ErrUnexpectedEOF
  799. }
  800. m.Name = string(dAtA[iNdEx:postIndex])
  801. iNdEx = postIndex
  802. case 2:
  803. if wireType != 0 {
  804. return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType)
  805. }
  806. m.Age = 0
  807. for shift := uint(0); ; shift += 7 {
  808. if shift >= 64 {
  809. return ErrIntOverflowIssue260
  810. }
  811. if iNdEx >= l {
  812. return io.ErrUnexpectedEOF
  813. }
  814. b := dAtA[iNdEx]
  815. iNdEx++
  816. m.Age |= (int32(b) & 0x7F) << shift
  817. if b < 0x80 {
  818. break
  819. }
  820. }
  821. default:
  822. iNdEx = preIndex
  823. skippy, err := skipIssue260(dAtA[iNdEx:])
  824. if err != nil {
  825. return err
  826. }
  827. if skippy < 0 {
  828. return ErrInvalidLengthIssue260
  829. }
  830. if (iNdEx + skippy) > l {
  831. return io.ErrUnexpectedEOF
  832. }
  833. iNdEx += skippy
  834. }
  835. }
  836. if iNdEx > l {
  837. return io.ErrUnexpectedEOF
  838. }
  839. return nil
  840. }
  841. func skipIssue260(dAtA []byte) (n int, err error) {
  842. l := len(dAtA)
  843. iNdEx := 0
  844. for iNdEx < l {
  845. var wire uint64
  846. for shift := uint(0); ; shift += 7 {
  847. if shift >= 64 {
  848. return 0, ErrIntOverflowIssue260
  849. }
  850. if iNdEx >= l {
  851. return 0, io.ErrUnexpectedEOF
  852. }
  853. b := dAtA[iNdEx]
  854. iNdEx++
  855. wire |= (uint64(b) & 0x7F) << shift
  856. if b < 0x80 {
  857. break
  858. }
  859. }
  860. wireType := int(wire & 0x7)
  861. switch wireType {
  862. case 0:
  863. for shift := uint(0); ; shift += 7 {
  864. if shift >= 64 {
  865. return 0, ErrIntOverflowIssue260
  866. }
  867. if iNdEx >= l {
  868. return 0, io.ErrUnexpectedEOF
  869. }
  870. iNdEx++
  871. if dAtA[iNdEx-1] < 0x80 {
  872. break
  873. }
  874. }
  875. return iNdEx, nil
  876. case 1:
  877. iNdEx += 8
  878. return iNdEx, nil
  879. case 2:
  880. var length int
  881. for shift := uint(0); ; shift += 7 {
  882. if shift >= 64 {
  883. return 0, ErrIntOverflowIssue260
  884. }
  885. if iNdEx >= l {
  886. return 0, io.ErrUnexpectedEOF
  887. }
  888. b := dAtA[iNdEx]
  889. iNdEx++
  890. length |= (int(b) & 0x7F) << shift
  891. if b < 0x80 {
  892. break
  893. }
  894. }
  895. iNdEx += length
  896. if length < 0 {
  897. return 0, ErrInvalidLengthIssue260
  898. }
  899. return iNdEx, nil
  900. case 3:
  901. for {
  902. var innerWire uint64
  903. var start int = iNdEx
  904. for shift := uint(0); ; shift += 7 {
  905. if shift >= 64 {
  906. return 0, ErrIntOverflowIssue260
  907. }
  908. if iNdEx >= l {
  909. return 0, io.ErrUnexpectedEOF
  910. }
  911. b := dAtA[iNdEx]
  912. iNdEx++
  913. innerWire |= (uint64(b) & 0x7F) << shift
  914. if b < 0x80 {
  915. break
  916. }
  917. }
  918. innerWireType := int(innerWire & 0x7)
  919. if innerWireType == 4 {
  920. break
  921. }
  922. next, err := skipIssue260(dAtA[start:])
  923. if err != nil {
  924. return 0, err
  925. }
  926. iNdEx = start + next
  927. }
  928. return iNdEx, nil
  929. case 4:
  930. return iNdEx, nil
  931. case 5:
  932. iNdEx += 4
  933. return iNdEx, nil
  934. default:
  935. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  936. }
  937. }
  938. panic("unreachable")
  939. }
  940. var (
  941. ErrInvalidLengthIssue260 = fmt.Errorf("proto: negative length found during unmarshaling")
  942. ErrIntOverflowIssue260 = fmt.Errorf("proto: integer overflow")
  943. )
  944. func init() { proto.RegisterFile("issue260.proto", fileDescriptorIssue260) }
  945. var fileDescriptorIssue260 = []byte{
  946. // 302 bytes of a gzipped FileDescriptorProto
  947. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x8f, 0x31, 0x4b, 0xc3, 0x40,
  948. 0x18, 0x86, 0xf3, 0x99, 0xb6, 0xb6, 0x27, 0x88, 0x1c, 0x2a, 0x25, 0xc3, 0x25, 0x74, 0xca, 0xa0,
  949. 0xa9, 0x54, 0x74, 0xe8, 0x18, 0x04, 0x07, 0xb7, 0x20, 0x38, 0x27, 0xf6, 0xbc, 0x1c, 0x18, 0x2f,
  950. 0x24, 0x5f, 0x70, 0x75, 0x74, 0x14, 0xfc, 0x03, 0xba, 0xf9, 0x13, 0x1c, 0x1d, 0x3b, 0xfa, 0x0b,
  951. 0xb4, 0x3d, 0xff, 0x80, 0x63, 0x47, 0xf1, 0xd2, 0xd8, 0xd5, 0xed, 0x7d, 0xe0, 0x7d, 0x3f, 0x9e,
  952. 0x8f, 0x6c, 0xca, 0xb2, 0xac, 0xf8, 0xe8, 0xf8, 0x20, 0xc8, 0x0b, 0x85, 0x8a, 0x76, 0x1b, 0x76,
  953. 0xf6, 0x85, 0xc4, 0xb4, 0x4a, 0x82, 0x4b, 0x95, 0x0d, 0x85, 0x12, 0x6a, 0x68, 0x0a, 0x49, 0x75,
  954. 0x65, 0xc8, 0x80, 0x49, 0xf5, 0xd0, 0x71, 0x85, 0x52, 0xe2, 0x9a, 0xaf, 0x5a, 0x28, 0x33, 0x5e,
  955. 0x62, 0x9c, 0xe5, 0x75, 0x61, 0x70, 0x44, 0xd6, 0x4f, 0x0a, 0x95, 0xe7, 0x7c, 0x42, 0x29, 0x69,
  956. 0xdd, 0xc4, 0x19, 0xef, 0x83, 0x07, 0x7e, 0x2f, 0x32, 0x99, 0x6e, 0x11, 0x3b, 0x16, 0xbc, 0xbf,
  957. 0xe6, 0x81, 0xdf, 0x8e, 0x7e, 0xe3, 0xb8, 0xf5, 0xfd, 0xec, 0x5a, 0x83, 0x47, 0x20, 0x3b, 0xcb,
  958. 0xdd, 0x85, 0xc4, 0x54, 0x55, 0x78, 0xca, 0x11, 0x79, 0x51, 0xd2, 0x5d, 0xd2, 0x49, 0xb9, 0x14,
  959. 0x29, 0x9a, 0x3b, 0x76, 0xb4, 0x24, 0xba, 0x4d, 0xda, 0xb7, 0x72, 0x82, 0xa9, 0xb9, 0x65, 0x47,
  960. 0x35, 0xd0, 0x90, 0xf4, 0xfe, 0x8c, 0xfa, 0xb6, 0x07, 0xfe, 0xc6, 0xc8, 0x09, 0x6a, 0xe7, 0xa0,
  961. 0x71, 0x0e, 0xce, 0x9b, 0x46, 0xd8, 0x9d, 0x7e, 0xb8, 0xd6, 0xc3, 0xa7, 0x0b, 0xd1, 0x6a, 0x36,
  962. 0xee, 0xde, 0x3f, 0xb9, 0x96, 0xb1, 0xda, 0x23, 0xad, 0x33, 0x9e, 0xe3, 0xff, 0x3e, 0x09, 0xfd,
  963. 0xd9, 0x9c, 0xc1, 0x62, 0xce, 0xe0, 0x45, 0x33, 0x78, 0xd5, 0x0c, 0xde, 0x34, 0x83, 0xa9, 0x66,
  964. 0xf0, 0xae, 0x19, 0xcc, 0x34, 0x83, 0x85, 0x66, 0xd6, 0xdd, 0x17, 0xb3, 0x92, 0x8e, 0x51, 0x39,
  965. 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x67, 0x75, 0x8b, 0x97, 0x01, 0x00, 0x00,
  966. }