generated.pb.go 22 KB

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