generated.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  14. // source: k8s.io/api/certificates/v1alpha1/generated.proto
  15. package v1alpha1
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. math_bits "math/bits"
  20. reflect "reflect"
  21. strings "strings"
  22. )
  23. func (m *ClusterTrustBundle) Reset() { *m = ClusterTrustBundle{} }
  24. func (m *ClusterTrustBundleList) Reset() { *m = ClusterTrustBundleList{} }
  25. func (m *ClusterTrustBundleSpec) Reset() { *m = ClusterTrustBundleSpec{} }
  26. func (m *ClusterTrustBundle) Marshal() (dAtA []byte, err error) {
  27. size := m.Size()
  28. dAtA = make([]byte, size)
  29. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  30. if err != nil {
  31. return nil, err
  32. }
  33. return dAtA[:n], nil
  34. }
  35. func (m *ClusterTrustBundle) MarshalTo(dAtA []byte) (int, error) {
  36. size := m.Size()
  37. return m.MarshalToSizedBuffer(dAtA[:size])
  38. }
  39. func (m *ClusterTrustBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  40. i := len(dAtA)
  41. _ = i
  42. var l int
  43. _ = l
  44. {
  45. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  46. if err != nil {
  47. return 0, err
  48. }
  49. i -= size
  50. i = encodeVarintGenerated(dAtA, i, uint64(size))
  51. }
  52. i--
  53. dAtA[i] = 0x12
  54. {
  55. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  56. if err != nil {
  57. return 0, err
  58. }
  59. i -= size
  60. i = encodeVarintGenerated(dAtA, i, uint64(size))
  61. }
  62. i--
  63. dAtA[i] = 0xa
  64. return len(dAtA) - i, nil
  65. }
  66. func (m *ClusterTrustBundleList) Marshal() (dAtA []byte, err error) {
  67. size := m.Size()
  68. dAtA = make([]byte, size)
  69. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  70. if err != nil {
  71. return nil, err
  72. }
  73. return dAtA[:n], nil
  74. }
  75. func (m *ClusterTrustBundleList) MarshalTo(dAtA []byte) (int, error) {
  76. size := m.Size()
  77. return m.MarshalToSizedBuffer(dAtA[:size])
  78. }
  79. func (m *ClusterTrustBundleList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  80. i := len(dAtA)
  81. _ = i
  82. var l int
  83. _ = l
  84. if len(m.Items) > 0 {
  85. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  86. {
  87. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  88. if err != nil {
  89. return 0, err
  90. }
  91. i -= size
  92. i = encodeVarintGenerated(dAtA, i, uint64(size))
  93. }
  94. i--
  95. dAtA[i] = 0x12
  96. }
  97. }
  98. {
  99. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  100. if err != nil {
  101. return 0, err
  102. }
  103. i -= size
  104. i = encodeVarintGenerated(dAtA, i, uint64(size))
  105. }
  106. i--
  107. dAtA[i] = 0xa
  108. return len(dAtA) - i, nil
  109. }
  110. func (m *ClusterTrustBundleSpec) Marshal() (dAtA []byte, err error) {
  111. size := m.Size()
  112. dAtA = make([]byte, size)
  113. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  114. if err != nil {
  115. return nil, err
  116. }
  117. return dAtA[:n], nil
  118. }
  119. func (m *ClusterTrustBundleSpec) MarshalTo(dAtA []byte) (int, error) {
  120. size := m.Size()
  121. return m.MarshalToSizedBuffer(dAtA[:size])
  122. }
  123. func (m *ClusterTrustBundleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  124. i := len(dAtA)
  125. _ = i
  126. var l int
  127. _ = l
  128. i -= len(m.TrustBundle)
  129. copy(dAtA[i:], m.TrustBundle)
  130. i = encodeVarintGenerated(dAtA, i, uint64(len(m.TrustBundle)))
  131. i--
  132. dAtA[i] = 0x12
  133. i -= len(m.SignerName)
  134. copy(dAtA[i:], m.SignerName)
  135. i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName)))
  136. i--
  137. dAtA[i] = 0xa
  138. return len(dAtA) - i, nil
  139. }
  140. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  141. offset -= sovGenerated(v)
  142. base := offset
  143. for v >= 1<<7 {
  144. dAtA[offset] = uint8(v&0x7f | 0x80)
  145. v >>= 7
  146. offset++
  147. }
  148. dAtA[offset] = uint8(v)
  149. return base
  150. }
  151. func (m *ClusterTrustBundle) Size() (n int) {
  152. if m == nil {
  153. return 0
  154. }
  155. var l int
  156. _ = l
  157. l = m.ObjectMeta.Size()
  158. n += 1 + l + sovGenerated(uint64(l))
  159. l = m.Spec.Size()
  160. n += 1 + l + sovGenerated(uint64(l))
  161. return n
  162. }
  163. func (m *ClusterTrustBundleList) Size() (n int) {
  164. if m == nil {
  165. return 0
  166. }
  167. var l int
  168. _ = l
  169. l = m.ListMeta.Size()
  170. n += 1 + l + sovGenerated(uint64(l))
  171. if len(m.Items) > 0 {
  172. for _, e := range m.Items {
  173. l = e.Size()
  174. n += 1 + l + sovGenerated(uint64(l))
  175. }
  176. }
  177. return n
  178. }
  179. func (m *ClusterTrustBundleSpec) Size() (n int) {
  180. if m == nil {
  181. return 0
  182. }
  183. var l int
  184. _ = l
  185. l = len(m.SignerName)
  186. n += 1 + l + sovGenerated(uint64(l))
  187. l = len(m.TrustBundle)
  188. n += 1 + l + sovGenerated(uint64(l))
  189. return n
  190. }
  191. func sovGenerated(x uint64) (n int) {
  192. return (math_bits.Len64(x|1) + 6) / 7
  193. }
  194. func sozGenerated(x uint64) (n int) {
  195. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  196. }
  197. func (this *ClusterTrustBundle) String() string {
  198. if this == nil {
  199. return "nil"
  200. }
  201. s := strings.Join([]string{`&ClusterTrustBundle{`,
  202. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  203. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterTrustBundleSpec", "ClusterTrustBundleSpec", 1), `&`, ``, 1) + `,`,
  204. `}`,
  205. }, "")
  206. return s
  207. }
  208. func (this *ClusterTrustBundleList) String() string {
  209. if this == nil {
  210. return "nil"
  211. }
  212. repeatedStringForItems := "[]ClusterTrustBundle{"
  213. for _, f := range this.Items {
  214. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterTrustBundle", "ClusterTrustBundle", 1), `&`, ``, 1) + ","
  215. }
  216. repeatedStringForItems += "}"
  217. s := strings.Join([]string{`&ClusterTrustBundleList{`,
  218. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  219. `Items:` + repeatedStringForItems + `,`,
  220. `}`,
  221. }, "")
  222. return s
  223. }
  224. func (this *ClusterTrustBundleSpec) String() string {
  225. if this == nil {
  226. return "nil"
  227. }
  228. s := strings.Join([]string{`&ClusterTrustBundleSpec{`,
  229. `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`,
  230. `TrustBundle:` + fmt.Sprintf("%v", this.TrustBundle) + `,`,
  231. `}`,
  232. }, "")
  233. return s
  234. }
  235. func valueToStringGenerated(v interface{}) string {
  236. rv := reflect.ValueOf(v)
  237. if rv.IsNil() {
  238. return "nil"
  239. }
  240. pv := reflect.Indirect(rv).Interface()
  241. return fmt.Sprintf("*%v", pv)
  242. }
  243. func (m *ClusterTrustBundle) Unmarshal(dAtA []byte) error {
  244. l := len(dAtA)
  245. iNdEx := 0
  246. for iNdEx < l {
  247. preIndex := iNdEx
  248. var wire uint64
  249. for shift := uint(0); ; shift += 7 {
  250. if shift >= 64 {
  251. return ErrIntOverflowGenerated
  252. }
  253. if iNdEx >= l {
  254. return io.ErrUnexpectedEOF
  255. }
  256. b := dAtA[iNdEx]
  257. iNdEx++
  258. wire |= uint64(b&0x7F) << shift
  259. if b < 0x80 {
  260. break
  261. }
  262. }
  263. fieldNum := int32(wire >> 3)
  264. wireType := int(wire & 0x7)
  265. if wireType == 4 {
  266. return fmt.Errorf("proto: ClusterTrustBundle: wiretype end group for non-group")
  267. }
  268. if fieldNum <= 0 {
  269. return fmt.Errorf("proto: ClusterTrustBundle: illegal tag %d (wire type %d)", fieldNum, wire)
  270. }
  271. switch fieldNum {
  272. case 1:
  273. if wireType != 2 {
  274. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  275. }
  276. var msglen int
  277. for shift := uint(0); ; shift += 7 {
  278. if shift >= 64 {
  279. return ErrIntOverflowGenerated
  280. }
  281. if iNdEx >= l {
  282. return io.ErrUnexpectedEOF
  283. }
  284. b := dAtA[iNdEx]
  285. iNdEx++
  286. msglen |= int(b&0x7F) << shift
  287. if b < 0x80 {
  288. break
  289. }
  290. }
  291. if msglen < 0 {
  292. return ErrInvalidLengthGenerated
  293. }
  294. postIndex := iNdEx + msglen
  295. if postIndex < 0 {
  296. return ErrInvalidLengthGenerated
  297. }
  298. if postIndex > l {
  299. return io.ErrUnexpectedEOF
  300. }
  301. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  302. return err
  303. }
  304. iNdEx = postIndex
  305. case 2:
  306. if wireType != 2 {
  307. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  308. }
  309. var msglen int
  310. for shift := uint(0); ; shift += 7 {
  311. if shift >= 64 {
  312. return ErrIntOverflowGenerated
  313. }
  314. if iNdEx >= l {
  315. return io.ErrUnexpectedEOF
  316. }
  317. b := dAtA[iNdEx]
  318. iNdEx++
  319. msglen |= int(b&0x7F) << shift
  320. if b < 0x80 {
  321. break
  322. }
  323. }
  324. if msglen < 0 {
  325. return ErrInvalidLengthGenerated
  326. }
  327. postIndex := iNdEx + msglen
  328. if postIndex < 0 {
  329. return ErrInvalidLengthGenerated
  330. }
  331. if postIndex > l {
  332. return io.ErrUnexpectedEOF
  333. }
  334. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  335. return err
  336. }
  337. iNdEx = postIndex
  338. default:
  339. iNdEx = preIndex
  340. skippy, err := skipGenerated(dAtA[iNdEx:])
  341. if err != nil {
  342. return err
  343. }
  344. if (skippy < 0) || (iNdEx+skippy) < 0 {
  345. return ErrInvalidLengthGenerated
  346. }
  347. if (iNdEx + skippy) > l {
  348. return io.ErrUnexpectedEOF
  349. }
  350. iNdEx += skippy
  351. }
  352. }
  353. if iNdEx > l {
  354. return io.ErrUnexpectedEOF
  355. }
  356. return nil
  357. }
  358. func (m *ClusterTrustBundleList) Unmarshal(dAtA []byte) error {
  359. l := len(dAtA)
  360. iNdEx := 0
  361. for iNdEx < l {
  362. preIndex := iNdEx
  363. var wire uint64
  364. for shift := uint(0); ; shift += 7 {
  365. if shift >= 64 {
  366. return ErrIntOverflowGenerated
  367. }
  368. if iNdEx >= l {
  369. return io.ErrUnexpectedEOF
  370. }
  371. b := dAtA[iNdEx]
  372. iNdEx++
  373. wire |= uint64(b&0x7F) << shift
  374. if b < 0x80 {
  375. break
  376. }
  377. }
  378. fieldNum := int32(wire >> 3)
  379. wireType := int(wire & 0x7)
  380. if wireType == 4 {
  381. return fmt.Errorf("proto: ClusterTrustBundleList: wiretype end group for non-group")
  382. }
  383. if fieldNum <= 0 {
  384. return fmt.Errorf("proto: ClusterTrustBundleList: illegal tag %d (wire type %d)", fieldNum, wire)
  385. }
  386. switch fieldNum {
  387. case 1:
  388. if wireType != 2 {
  389. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  390. }
  391. var msglen int
  392. for shift := uint(0); ; shift += 7 {
  393. if shift >= 64 {
  394. return ErrIntOverflowGenerated
  395. }
  396. if iNdEx >= l {
  397. return io.ErrUnexpectedEOF
  398. }
  399. b := dAtA[iNdEx]
  400. iNdEx++
  401. msglen |= int(b&0x7F) << shift
  402. if b < 0x80 {
  403. break
  404. }
  405. }
  406. if msglen < 0 {
  407. return ErrInvalidLengthGenerated
  408. }
  409. postIndex := iNdEx + msglen
  410. if postIndex < 0 {
  411. return ErrInvalidLengthGenerated
  412. }
  413. if postIndex > l {
  414. return io.ErrUnexpectedEOF
  415. }
  416. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  417. return err
  418. }
  419. iNdEx = postIndex
  420. case 2:
  421. if wireType != 2 {
  422. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  423. }
  424. var msglen int
  425. for shift := uint(0); ; shift += 7 {
  426. if shift >= 64 {
  427. return ErrIntOverflowGenerated
  428. }
  429. if iNdEx >= l {
  430. return io.ErrUnexpectedEOF
  431. }
  432. b := dAtA[iNdEx]
  433. iNdEx++
  434. msglen |= int(b&0x7F) << shift
  435. if b < 0x80 {
  436. break
  437. }
  438. }
  439. if msglen < 0 {
  440. return ErrInvalidLengthGenerated
  441. }
  442. postIndex := iNdEx + msglen
  443. if postIndex < 0 {
  444. return ErrInvalidLengthGenerated
  445. }
  446. if postIndex > l {
  447. return io.ErrUnexpectedEOF
  448. }
  449. m.Items = append(m.Items, ClusterTrustBundle{})
  450. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  451. return err
  452. }
  453. iNdEx = postIndex
  454. default:
  455. iNdEx = preIndex
  456. skippy, err := skipGenerated(dAtA[iNdEx:])
  457. if err != nil {
  458. return err
  459. }
  460. if (skippy < 0) || (iNdEx+skippy) < 0 {
  461. return ErrInvalidLengthGenerated
  462. }
  463. if (iNdEx + skippy) > l {
  464. return io.ErrUnexpectedEOF
  465. }
  466. iNdEx += skippy
  467. }
  468. }
  469. if iNdEx > l {
  470. return io.ErrUnexpectedEOF
  471. }
  472. return nil
  473. }
  474. func (m *ClusterTrustBundleSpec) Unmarshal(dAtA []byte) error {
  475. l := len(dAtA)
  476. iNdEx := 0
  477. for iNdEx < l {
  478. preIndex := iNdEx
  479. var wire uint64
  480. for shift := uint(0); ; shift += 7 {
  481. if shift >= 64 {
  482. return ErrIntOverflowGenerated
  483. }
  484. if iNdEx >= l {
  485. return io.ErrUnexpectedEOF
  486. }
  487. b := dAtA[iNdEx]
  488. iNdEx++
  489. wire |= uint64(b&0x7F) << shift
  490. if b < 0x80 {
  491. break
  492. }
  493. }
  494. fieldNum := int32(wire >> 3)
  495. wireType := int(wire & 0x7)
  496. if wireType == 4 {
  497. return fmt.Errorf("proto: ClusterTrustBundleSpec: wiretype end group for non-group")
  498. }
  499. if fieldNum <= 0 {
  500. return fmt.Errorf("proto: ClusterTrustBundleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  501. }
  502. switch fieldNum {
  503. case 1:
  504. if wireType != 2 {
  505. return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType)
  506. }
  507. var stringLen uint64
  508. for shift := uint(0); ; shift += 7 {
  509. if shift >= 64 {
  510. return ErrIntOverflowGenerated
  511. }
  512. if iNdEx >= l {
  513. return io.ErrUnexpectedEOF
  514. }
  515. b := dAtA[iNdEx]
  516. iNdEx++
  517. stringLen |= uint64(b&0x7F) << shift
  518. if b < 0x80 {
  519. break
  520. }
  521. }
  522. intStringLen := int(stringLen)
  523. if intStringLen < 0 {
  524. return ErrInvalidLengthGenerated
  525. }
  526. postIndex := iNdEx + intStringLen
  527. if postIndex < 0 {
  528. return ErrInvalidLengthGenerated
  529. }
  530. if postIndex > l {
  531. return io.ErrUnexpectedEOF
  532. }
  533. m.SignerName = string(dAtA[iNdEx:postIndex])
  534. iNdEx = postIndex
  535. case 2:
  536. if wireType != 2 {
  537. return fmt.Errorf("proto: wrong wireType = %d for field TrustBundle", wireType)
  538. }
  539. var stringLen uint64
  540. for shift := uint(0); ; shift += 7 {
  541. if shift >= 64 {
  542. return ErrIntOverflowGenerated
  543. }
  544. if iNdEx >= l {
  545. return io.ErrUnexpectedEOF
  546. }
  547. b := dAtA[iNdEx]
  548. iNdEx++
  549. stringLen |= uint64(b&0x7F) << shift
  550. if b < 0x80 {
  551. break
  552. }
  553. }
  554. intStringLen := int(stringLen)
  555. if intStringLen < 0 {
  556. return ErrInvalidLengthGenerated
  557. }
  558. postIndex := iNdEx + intStringLen
  559. if postIndex < 0 {
  560. return ErrInvalidLengthGenerated
  561. }
  562. if postIndex > l {
  563. return io.ErrUnexpectedEOF
  564. }
  565. m.TrustBundle = string(dAtA[iNdEx:postIndex])
  566. iNdEx = postIndex
  567. default:
  568. iNdEx = preIndex
  569. skippy, err := skipGenerated(dAtA[iNdEx:])
  570. if err != nil {
  571. return err
  572. }
  573. if (skippy < 0) || (iNdEx+skippy) < 0 {
  574. return ErrInvalidLengthGenerated
  575. }
  576. if (iNdEx + skippy) > l {
  577. return io.ErrUnexpectedEOF
  578. }
  579. iNdEx += skippy
  580. }
  581. }
  582. if iNdEx > l {
  583. return io.ErrUnexpectedEOF
  584. }
  585. return nil
  586. }
  587. func skipGenerated(dAtA []byte) (n int, err error) {
  588. l := len(dAtA)
  589. iNdEx := 0
  590. depth := 0
  591. for iNdEx < l {
  592. var wire uint64
  593. for shift := uint(0); ; shift += 7 {
  594. if shift >= 64 {
  595. return 0, ErrIntOverflowGenerated
  596. }
  597. if iNdEx >= l {
  598. return 0, io.ErrUnexpectedEOF
  599. }
  600. b := dAtA[iNdEx]
  601. iNdEx++
  602. wire |= (uint64(b) & 0x7F) << shift
  603. if b < 0x80 {
  604. break
  605. }
  606. }
  607. wireType := int(wire & 0x7)
  608. switch wireType {
  609. case 0:
  610. for shift := uint(0); ; shift += 7 {
  611. if shift >= 64 {
  612. return 0, ErrIntOverflowGenerated
  613. }
  614. if iNdEx >= l {
  615. return 0, io.ErrUnexpectedEOF
  616. }
  617. iNdEx++
  618. if dAtA[iNdEx-1] < 0x80 {
  619. break
  620. }
  621. }
  622. case 1:
  623. iNdEx += 8
  624. case 2:
  625. var length int
  626. for shift := uint(0); ; shift += 7 {
  627. if shift >= 64 {
  628. return 0, ErrIntOverflowGenerated
  629. }
  630. if iNdEx >= l {
  631. return 0, io.ErrUnexpectedEOF
  632. }
  633. b := dAtA[iNdEx]
  634. iNdEx++
  635. length |= (int(b) & 0x7F) << shift
  636. if b < 0x80 {
  637. break
  638. }
  639. }
  640. if length < 0 {
  641. return 0, ErrInvalidLengthGenerated
  642. }
  643. iNdEx += length
  644. case 3:
  645. depth++
  646. case 4:
  647. if depth == 0 {
  648. return 0, ErrUnexpectedEndOfGroupGenerated
  649. }
  650. depth--
  651. case 5:
  652. iNdEx += 4
  653. default:
  654. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  655. }
  656. if iNdEx < 0 {
  657. return 0, ErrInvalidLengthGenerated
  658. }
  659. if depth == 0 {
  660. return iNdEx, nil
  661. }
  662. }
  663. return 0, io.ErrUnexpectedEOF
  664. }
  665. var (
  666. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  667. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  668. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  669. )