generated.pb.go 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  1. /*
  2. Copyright 2016 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.
  14. // source: k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto
  15. // DO NOT EDIT!
  16. /*
  17. Package v1alpha1 is a generated protocol buffer package.
  18. It is generated from these files:
  19. k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto
  20. It has these top-level messages:
  21. PetSet
  22. PetSetList
  23. PetSetSpec
  24. PetSetStatus
  25. */
  26. package v1alpha1
  27. import proto "github.com/gogo/protobuf/proto"
  28. import fmt "fmt"
  29. import math "math"
  30. import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
  31. import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1"
  32. import strings "strings"
  33. import reflect "reflect"
  34. import io "io"
  35. // Reference imports to suppress errors if they are not otherwise used.
  36. var _ = proto.Marshal
  37. var _ = fmt.Errorf
  38. var _ = math.Inf
  39. // This is a compile-time assertion to ensure that this generated file
  40. // is compatible with the proto package it is being compiled against.
  41. const _ = proto.GoGoProtoPackageIsVersion1
  42. func (m *PetSet) Reset() { *m = PetSet{} }
  43. func (*PetSet) ProtoMessage() {}
  44. func (*PetSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  45. func (m *PetSetList) Reset() { *m = PetSetList{} }
  46. func (*PetSetList) ProtoMessage() {}
  47. func (*PetSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  48. func (m *PetSetSpec) Reset() { *m = PetSetSpec{} }
  49. func (*PetSetSpec) ProtoMessage() {}
  50. func (*PetSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  51. func (m *PetSetStatus) Reset() { *m = PetSetStatus{} }
  52. func (*PetSetStatus) ProtoMessage() {}
  53. func (*PetSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  54. func init() {
  55. proto.RegisterType((*PetSet)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSet")
  56. proto.RegisterType((*PetSetList)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetList")
  57. proto.RegisterType((*PetSetSpec)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetSpec")
  58. proto.RegisterType((*PetSetStatus)(nil), "k8s.io.kubernetes.pkg.apis.apps.v1alpha1.PetSetStatus")
  59. }
  60. func (m *PetSet) Marshal() (data []byte, err error) {
  61. size := m.Size()
  62. data = make([]byte, size)
  63. n, err := m.MarshalTo(data)
  64. if err != nil {
  65. return nil, err
  66. }
  67. return data[:n], nil
  68. }
  69. func (m *PetSet) MarshalTo(data []byte) (int, error) {
  70. var i int
  71. _ = i
  72. var l int
  73. _ = l
  74. data[i] = 0xa
  75. i++
  76. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  77. n1, err := m.ObjectMeta.MarshalTo(data[i:])
  78. if err != nil {
  79. return 0, err
  80. }
  81. i += n1
  82. data[i] = 0x12
  83. i++
  84. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  85. n2, err := m.Spec.MarshalTo(data[i:])
  86. if err != nil {
  87. return 0, err
  88. }
  89. i += n2
  90. data[i] = 0x1a
  91. i++
  92. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  93. n3, err := m.Status.MarshalTo(data[i:])
  94. if err != nil {
  95. return 0, err
  96. }
  97. i += n3
  98. return i, nil
  99. }
  100. func (m *PetSetList) Marshal() (data []byte, err error) {
  101. size := m.Size()
  102. data = make([]byte, size)
  103. n, err := m.MarshalTo(data)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return data[:n], nil
  108. }
  109. func (m *PetSetList) MarshalTo(data []byte) (int, error) {
  110. var i int
  111. _ = i
  112. var l int
  113. _ = l
  114. data[i] = 0xa
  115. i++
  116. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  117. n4, err := m.ListMeta.MarshalTo(data[i:])
  118. if err != nil {
  119. return 0, err
  120. }
  121. i += n4
  122. if len(m.Items) > 0 {
  123. for _, msg := range m.Items {
  124. data[i] = 0x12
  125. i++
  126. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  127. n, err := msg.MarshalTo(data[i:])
  128. if err != nil {
  129. return 0, err
  130. }
  131. i += n
  132. }
  133. }
  134. return i, nil
  135. }
  136. func (m *PetSetSpec) Marshal() (data []byte, err error) {
  137. size := m.Size()
  138. data = make([]byte, size)
  139. n, err := m.MarshalTo(data)
  140. if err != nil {
  141. return nil, err
  142. }
  143. return data[:n], nil
  144. }
  145. func (m *PetSetSpec) MarshalTo(data []byte) (int, error) {
  146. var i int
  147. _ = i
  148. var l int
  149. _ = l
  150. if m.Replicas != nil {
  151. data[i] = 0x8
  152. i++
  153. i = encodeVarintGenerated(data, i, uint64(*m.Replicas))
  154. }
  155. if m.Selector != nil {
  156. data[i] = 0x12
  157. i++
  158. i = encodeVarintGenerated(data, i, uint64(m.Selector.Size()))
  159. n5, err := m.Selector.MarshalTo(data[i:])
  160. if err != nil {
  161. return 0, err
  162. }
  163. i += n5
  164. }
  165. data[i] = 0x1a
  166. i++
  167. i = encodeVarintGenerated(data, i, uint64(m.Template.Size()))
  168. n6, err := m.Template.MarshalTo(data[i:])
  169. if err != nil {
  170. return 0, err
  171. }
  172. i += n6
  173. if len(m.VolumeClaimTemplates) > 0 {
  174. for _, msg := range m.VolumeClaimTemplates {
  175. data[i] = 0x22
  176. i++
  177. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  178. n, err := msg.MarshalTo(data[i:])
  179. if err != nil {
  180. return 0, err
  181. }
  182. i += n
  183. }
  184. }
  185. data[i] = 0x2a
  186. i++
  187. i = encodeVarintGenerated(data, i, uint64(len(m.ServiceName)))
  188. i += copy(data[i:], m.ServiceName)
  189. return i, nil
  190. }
  191. func (m *PetSetStatus) Marshal() (data []byte, err error) {
  192. size := m.Size()
  193. data = make([]byte, size)
  194. n, err := m.MarshalTo(data)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return data[:n], nil
  199. }
  200. func (m *PetSetStatus) MarshalTo(data []byte) (int, error) {
  201. var i int
  202. _ = i
  203. var l int
  204. _ = l
  205. if m.ObservedGeneration != nil {
  206. data[i] = 0x8
  207. i++
  208. i = encodeVarintGenerated(data, i, uint64(*m.ObservedGeneration))
  209. }
  210. data[i] = 0x10
  211. i++
  212. i = encodeVarintGenerated(data, i, uint64(m.Replicas))
  213. return i, nil
  214. }
  215. func encodeFixed64Generated(data []byte, offset int, v uint64) int {
  216. data[offset] = uint8(v)
  217. data[offset+1] = uint8(v >> 8)
  218. data[offset+2] = uint8(v >> 16)
  219. data[offset+3] = uint8(v >> 24)
  220. data[offset+4] = uint8(v >> 32)
  221. data[offset+5] = uint8(v >> 40)
  222. data[offset+6] = uint8(v >> 48)
  223. data[offset+7] = uint8(v >> 56)
  224. return offset + 8
  225. }
  226. func encodeFixed32Generated(data []byte, offset int, v uint32) int {
  227. data[offset] = uint8(v)
  228. data[offset+1] = uint8(v >> 8)
  229. data[offset+2] = uint8(v >> 16)
  230. data[offset+3] = uint8(v >> 24)
  231. return offset + 4
  232. }
  233. func encodeVarintGenerated(data []byte, offset int, v uint64) int {
  234. for v >= 1<<7 {
  235. data[offset] = uint8(v&0x7f | 0x80)
  236. v >>= 7
  237. offset++
  238. }
  239. data[offset] = uint8(v)
  240. return offset + 1
  241. }
  242. func (m *PetSet) Size() (n int) {
  243. var l int
  244. _ = l
  245. l = m.ObjectMeta.Size()
  246. n += 1 + l + sovGenerated(uint64(l))
  247. l = m.Spec.Size()
  248. n += 1 + l + sovGenerated(uint64(l))
  249. l = m.Status.Size()
  250. n += 1 + l + sovGenerated(uint64(l))
  251. return n
  252. }
  253. func (m *PetSetList) Size() (n int) {
  254. var l int
  255. _ = l
  256. l = m.ListMeta.Size()
  257. n += 1 + l + sovGenerated(uint64(l))
  258. if len(m.Items) > 0 {
  259. for _, e := range m.Items {
  260. l = e.Size()
  261. n += 1 + l + sovGenerated(uint64(l))
  262. }
  263. }
  264. return n
  265. }
  266. func (m *PetSetSpec) Size() (n int) {
  267. var l int
  268. _ = l
  269. if m.Replicas != nil {
  270. n += 1 + sovGenerated(uint64(*m.Replicas))
  271. }
  272. if m.Selector != nil {
  273. l = m.Selector.Size()
  274. n += 1 + l + sovGenerated(uint64(l))
  275. }
  276. l = m.Template.Size()
  277. n += 1 + l + sovGenerated(uint64(l))
  278. if len(m.VolumeClaimTemplates) > 0 {
  279. for _, e := range m.VolumeClaimTemplates {
  280. l = e.Size()
  281. n += 1 + l + sovGenerated(uint64(l))
  282. }
  283. }
  284. l = len(m.ServiceName)
  285. n += 1 + l + sovGenerated(uint64(l))
  286. return n
  287. }
  288. func (m *PetSetStatus) Size() (n int) {
  289. var l int
  290. _ = l
  291. if m.ObservedGeneration != nil {
  292. n += 1 + sovGenerated(uint64(*m.ObservedGeneration))
  293. }
  294. n += 1 + sovGenerated(uint64(m.Replicas))
  295. return n
  296. }
  297. func sovGenerated(x uint64) (n int) {
  298. for {
  299. n++
  300. x >>= 7
  301. if x == 0 {
  302. break
  303. }
  304. }
  305. return n
  306. }
  307. func sozGenerated(x uint64) (n int) {
  308. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  309. }
  310. func (this *PetSet) String() string {
  311. if this == nil {
  312. return "nil"
  313. }
  314. s := strings.Join([]string{`&PetSet{`,
  315. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  316. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PetSetSpec", "PetSetSpec", 1), `&`, ``, 1) + `,`,
  317. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PetSetStatus", "PetSetStatus", 1), `&`, ``, 1) + `,`,
  318. `}`,
  319. }, "")
  320. return s
  321. }
  322. func (this *PetSetList) String() string {
  323. if this == nil {
  324. return "nil"
  325. }
  326. s := strings.Join([]string{`&PetSetList{`,
  327. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
  328. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PetSet", "PetSet", 1), `&`, ``, 1) + `,`,
  329. `}`,
  330. }, "")
  331. return s
  332. }
  333. func (this *PetSetSpec) String() string {
  334. if this == nil {
  335. return "nil"
  336. }
  337. s := strings.Join([]string{`&PetSetSpec{`,
  338. `Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
  339. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`,
  340. `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  341. `VolumeClaimTemplates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeClaimTemplates), "PersistentVolumeClaim", "k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim", 1), `&`, ``, 1) + `,`,
  342. `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`,
  343. `}`,
  344. }, "")
  345. return s
  346. }
  347. func (this *PetSetStatus) String() string {
  348. if this == nil {
  349. return "nil"
  350. }
  351. s := strings.Join([]string{`&PetSetStatus{`,
  352. `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
  353. `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
  354. `}`,
  355. }, "")
  356. return s
  357. }
  358. func valueToStringGenerated(v interface{}) string {
  359. rv := reflect.ValueOf(v)
  360. if rv.IsNil() {
  361. return "nil"
  362. }
  363. pv := reflect.Indirect(rv).Interface()
  364. return fmt.Sprintf("*%v", pv)
  365. }
  366. func (m *PetSet) Unmarshal(data []byte) error {
  367. l := len(data)
  368. iNdEx := 0
  369. for iNdEx < l {
  370. preIndex := iNdEx
  371. var wire uint64
  372. for shift := uint(0); ; shift += 7 {
  373. if shift >= 64 {
  374. return ErrIntOverflowGenerated
  375. }
  376. if iNdEx >= l {
  377. return io.ErrUnexpectedEOF
  378. }
  379. b := data[iNdEx]
  380. iNdEx++
  381. wire |= (uint64(b) & 0x7F) << shift
  382. if b < 0x80 {
  383. break
  384. }
  385. }
  386. fieldNum := int32(wire >> 3)
  387. wireType := int(wire & 0x7)
  388. if wireType == 4 {
  389. return fmt.Errorf("proto: PetSet: wiretype end group for non-group")
  390. }
  391. if fieldNum <= 0 {
  392. return fmt.Errorf("proto: PetSet: illegal tag %d (wire type %d)", fieldNum, wire)
  393. }
  394. switch fieldNum {
  395. case 1:
  396. if wireType != 2 {
  397. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  398. }
  399. var msglen int
  400. for shift := uint(0); ; shift += 7 {
  401. if shift >= 64 {
  402. return ErrIntOverflowGenerated
  403. }
  404. if iNdEx >= l {
  405. return io.ErrUnexpectedEOF
  406. }
  407. b := data[iNdEx]
  408. iNdEx++
  409. msglen |= (int(b) & 0x7F) << shift
  410. if b < 0x80 {
  411. break
  412. }
  413. }
  414. if msglen < 0 {
  415. return ErrInvalidLengthGenerated
  416. }
  417. postIndex := iNdEx + msglen
  418. if postIndex > l {
  419. return io.ErrUnexpectedEOF
  420. }
  421. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  422. return err
  423. }
  424. iNdEx = postIndex
  425. case 2:
  426. if wireType != 2 {
  427. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  428. }
  429. var msglen int
  430. for shift := uint(0); ; shift += 7 {
  431. if shift >= 64 {
  432. return ErrIntOverflowGenerated
  433. }
  434. if iNdEx >= l {
  435. return io.ErrUnexpectedEOF
  436. }
  437. b := data[iNdEx]
  438. iNdEx++
  439. msglen |= (int(b) & 0x7F) << shift
  440. if b < 0x80 {
  441. break
  442. }
  443. }
  444. if msglen < 0 {
  445. return ErrInvalidLengthGenerated
  446. }
  447. postIndex := iNdEx + msglen
  448. if postIndex > l {
  449. return io.ErrUnexpectedEOF
  450. }
  451. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  452. return err
  453. }
  454. iNdEx = postIndex
  455. case 3:
  456. if wireType != 2 {
  457. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  458. }
  459. var msglen int
  460. for shift := uint(0); ; shift += 7 {
  461. if shift >= 64 {
  462. return ErrIntOverflowGenerated
  463. }
  464. if iNdEx >= l {
  465. return io.ErrUnexpectedEOF
  466. }
  467. b := data[iNdEx]
  468. iNdEx++
  469. msglen |= (int(b) & 0x7F) << shift
  470. if b < 0x80 {
  471. break
  472. }
  473. }
  474. if msglen < 0 {
  475. return ErrInvalidLengthGenerated
  476. }
  477. postIndex := iNdEx + msglen
  478. if postIndex > l {
  479. return io.ErrUnexpectedEOF
  480. }
  481. if err := m.Status.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 *PetSetList) 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: PetSetList: wiretype end group for non-group")
  529. }
  530. if fieldNum <= 0 {
  531. return fmt.Errorf("proto: PetSetList: 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 ListMeta", wireType)
  537. }
  538. var msglen int
  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. msglen |= (int(b) & 0x7F) << shift
  549. if b < 0x80 {
  550. break
  551. }
  552. }
  553. if msglen < 0 {
  554. return ErrInvalidLengthGenerated
  555. }
  556. postIndex := iNdEx + msglen
  557. if postIndex > l {
  558. return io.ErrUnexpectedEOF
  559. }
  560. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  561. return err
  562. }
  563. iNdEx = postIndex
  564. case 2:
  565. if wireType != 2 {
  566. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  567. }
  568. var msglen int
  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. msglen |= (int(b) & 0x7F) << shift
  579. if b < 0x80 {
  580. break
  581. }
  582. }
  583. if msglen < 0 {
  584. return ErrInvalidLengthGenerated
  585. }
  586. postIndex := iNdEx + msglen
  587. if postIndex > l {
  588. return io.ErrUnexpectedEOF
  589. }
  590. m.Items = append(m.Items, PetSet{})
  591. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  592. return err
  593. }
  594. iNdEx = postIndex
  595. default:
  596. iNdEx = preIndex
  597. skippy, err := skipGenerated(data[iNdEx:])
  598. if err != nil {
  599. return err
  600. }
  601. if skippy < 0 {
  602. return ErrInvalidLengthGenerated
  603. }
  604. if (iNdEx + skippy) > l {
  605. return io.ErrUnexpectedEOF
  606. }
  607. iNdEx += skippy
  608. }
  609. }
  610. if iNdEx > l {
  611. return io.ErrUnexpectedEOF
  612. }
  613. return nil
  614. }
  615. func (m *PetSetSpec) Unmarshal(data []byte) error {
  616. l := len(data)
  617. iNdEx := 0
  618. for iNdEx < l {
  619. preIndex := iNdEx
  620. var wire uint64
  621. for shift := uint(0); ; shift += 7 {
  622. if shift >= 64 {
  623. return ErrIntOverflowGenerated
  624. }
  625. if iNdEx >= l {
  626. return io.ErrUnexpectedEOF
  627. }
  628. b := data[iNdEx]
  629. iNdEx++
  630. wire |= (uint64(b) & 0x7F) << shift
  631. if b < 0x80 {
  632. break
  633. }
  634. }
  635. fieldNum := int32(wire >> 3)
  636. wireType := int(wire & 0x7)
  637. if wireType == 4 {
  638. return fmt.Errorf("proto: PetSetSpec: wiretype end group for non-group")
  639. }
  640. if fieldNum <= 0 {
  641. return fmt.Errorf("proto: PetSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  642. }
  643. switch fieldNum {
  644. case 1:
  645. if wireType != 0 {
  646. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  647. }
  648. var v int32
  649. for shift := uint(0); ; shift += 7 {
  650. if shift >= 64 {
  651. return ErrIntOverflowGenerated
  652. }
  653. if iNdEx >= l {
  654. return io.ErrUnexpectedEOF
  655. }
  656. b := data[iNdEx]
  657. iNdEx++
  658. v |= (int32(b) & 0x7F) << shift
  659. if b < 0x80 {
  660. break
  661. }
  662. }
  663. m.Replicas = &v
  664. case 2:
  665. if wireType != 2 {
  666. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  667. }
  668. var msglen int
  669. for shift := uint(0); ; shift += 7 {
  670. if shift >= 64 {
  671. return ErrIntOverflowGenerated
  672. }
  673. if iNdEx >= l {
  674. return io.ErrUnexpectedEOF
  675. }
  676. b := data[iNdEx]
  677. iNdEx++
  678. msglen |= (int(b) & 0x7F) << shift
  679. if b < 0x80 {
  680. break
  681. }
  682. }
  683. if msglen < 0 {
  684. return ErrInvalidLengthGenerated
  685. }
  686. postIndex := iNdEx + msglen
  687. if postIndex > l {
  688. return io.ErrUnexpectedEOF
  689. }
  690. if m.Selector == nil {
  691. m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{}
  692. }
  693. if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil {
  694. return err
  695. }
  696. iNdEx = postIndex
  697. case 3:
  698. if wireType != 2 {
  699. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  700. }
  701. var msglen int
  702. for shift := uint(0); ; shift += 7 {
  703. if shift >= 64 {
  704. return ErrIntOverflowGenerated
  705. }
  706. if iNdEx >= l {
  707. return io.ErrUnexpectedEOF
  708. }
  709. b := data[iNdEx]
  710. iNdEx++
  711. msglen |= (int(b) & 0x7F) << shift
  712. if b < 0x80 {
  713. break
  714. }
  715. }
  716. if msglen < 0 {
  717. return ErrInvalidLengthGenerated
  718. }
  719. postIndex := iNdEx + msglen
  720. if postIndex > l {
  721. return io.ErrUnexpectedEOF
  722. }
  723. if err := m.Template.Unmarshal(data[iNdEx:postIndex]); err != nil {
  724. return err
  725. }
  726. iNdEx = postIndex
  727. case 4:
  728. if wireType != 2 {
  729. return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType)
  730. }
  731. var msglen int
  732. for shift := uint(0); ; shift += 7 {
  733. if shift >= 64 {
  734. return ErrIntOverflowGenerated
  735. }
  736. if iNdEx >= l {
  737. return io.ErrUnexpectedEOF
  738. }
  739. b := data[iNdEx]
  740. iNdEx++
  741. msglen |= (int(b) & 0x7F) << shift
  742. if b < 0x80 {
  743. break
  744. }
  745. }
  746. if msglen < 0 {
  747. return ErrInvalidLengthGenerated
  748. }
  749. postIndex := iNdEx + msglen
  750. if postIndex > l {
  751. return io.ErrUnexpectedEOF
  752. }
  753. m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim{})
  754. if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  755. return err
  756. }
  757. iNdEx = postIndex
  758. case 5:
  759. if wireType != 2 {
  760. return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
  761. }
  762. var stringLen uint64
  763. for shift := uint(0); ; shift += 7 {
  764. if shift >= 64 {
  765. return ErrIntOverflowGenerated
  766. }
  767. if iNdEx >= l {
  768. return io.ErrUnexpectedEOF
  769. }
  770. b := data[iNdEx]
  771. iNdEx++
  772. stringLen |= (uint64(b) & 0x7F) << shift
  773. if b < 0x80 {
  774. break
  775. }
  776. }
  777. intStringLen := int(stringLen)
  778. if intStringLen < 0 {
  779. return ErrInvalidLengthGenerated
  780. }
  781. postIndex := iNdEx + intStringLen
  782. if postIndex > l {
  783. return io.ErrUnexpectedEOF
  784. }
  785. m.ServiceName = string(data[iNdEx:postIndex])
  786. iNdEx = postIndex
  787. default:
  788. iNdEx = preIndex
  789. skippy, err := skipGenerated(data[iNdEx:])
  790. if err != nil {
  791. return err
  792. }
  793. if skippy < 0 {
  794. return ErrInvalidLengthGenerated
  795. }
  796. if (iNdEx + skippy) > l {
  797. return io.ErrUnexpectedEOF
  798. }
  799. iNdEx += skippy
  800. }
  801. }
  802. if iNdEx > l {
  803. return io.ErrUnexpectedEOF
  804. }
  805. return nil
  806. }
  807. func (m *PetSetStatus) Unmarshal(data []byte) error {
  808. l := len(data)
  809. iNdEx := 0
  810. for iNdEx < l {
  811. preIndex := iNdEx
  812. var wire uint64
  813. for shift := uint(0); ; shift += 7 {
  814. if shift >= 64 {
  815. return ErrIntOverflowGenerated
  816. }
  817. if iNdEx >= l {
  818. return io.ErrUnexpectedEOF
  819. }
  820. b := data[iNdEx]
  821. iNdEx++
  822. wire |= (uint64(b) & 0x7F) << shift
  823. if b < 0x80 {
  824. break
  825. }
  826. }
  827. fieldNum := int32(wire >> 3)
  828. wireType := int(wire & 0x7)
  829. if wireType == 4 {
  830. return fmt.Errorf("proto: PetSetStatus: wiretype end group for non-group")
  831. }
  832. if fieldNum <= 0 {
  833. return fmt.Errorf("proto: PetSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  834. }
  835. switch fieldNum {
  836. case 1:
  837. if wireType != 0 {
  838. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  839. }
  840. var v int64
  841. for shift := uint(0); ; shift += 7 {
  842. if shift >= 64 {
  843. return ErrIntOverflowGenerated
  844. }
  845. if iNdEx >= l {
  846. return io.ErrUnexpectedEOF
  847. }
  848. b := data[iNdEx]
  849. iNdEx++
  850. v |= (int64(b) & 0x7F) << shift
  851. if b < 0x80 {
  852. break
  853. }
  854. }
  855. m.ObservedGeneration = &v
  856. case 2:
  857. if wireType != 0 {
  858. return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
  859. }
  860. m.Replicas = 0
  861. for shift := uint(0); ; shift += 7 {
  862. if shift >= 64 {
  863. return ErrIntOverflowGenerated
  864. }
  865. if iNdEx >= l {
  866. return io.ErrUnexpectedEOF
  867. }
  868. b := data[iNdEx]
  869. iNdEx++
  870. m.Replicas |= (int32(b) & 0x7F) << shift
  871. if b < 0x80 {
  872. break
  873. }
  874. }
  875. default:
  876. iNdEx = preIndex
  877. skippy, err := skipGenerated(data[iNdEx:])
  878. if err != nil {
  879. return err
  880. }
  881. if skippy < 0 {
  882. return ErrInvalidLengthGenerated
  883. }
  884. if (iNdEx + skippy) > l {
  885. return io.ErrUnexpectedEOF
  886. }
  887. iNdEx += skippy
  888. }
  889. }
  890. if iNdEx > l {
  891. return io.ErrUnexpectedEOF
  892. }
  893. return nil
  894. }
  895. func skipGenerated(data []byte) (n int, err error) {
  896. l := len(data)
  897. iNdEx := 0
  898. for iNdEx < l {
  899. var wire uint64
  900. for shift := uint(0); ; shift += 7 {
  901. if shift >= 64 {
  902. return 0, ErrIntOverflowGenerated
  903. }
  904. if iNdEx >= l {
  905. return 0, io.ErrUnexpectedEOF
  906. }
  907. b := data[iNdEx]
  908. iNdEx++
  909. wire |= (uint64(b) & 0x7F) << shift
  910. if b < 0x80 {
  911. break
  912. }
  913. }
  914. wireType := int(wire & 0x7)
  915. switch wireType {
  916. case 0:
  917. for shift := uint(0); ; shift += 7 {
  918. if shift >= 64 {
  919. return 0, ErrIntOverflowGenerated
  920. }
  921. if iNdEx >= l {
  922. return 0, io.ErrUnexpectedEOF
  923. }
  924. iNdEx++
  925. if data[iNdEx-1] < 0x80 {
  926. break
  927. }
  928. }
  929. return iNdEx, nil
  930. case 1:
  931. iNdEx += 8
  932. return iNdEx, nil
  933. case 2:
  934. var length int
  935. for shift := uint(0); ; shift += 7 {
  936. if shift >= 64 {
  937. return 0, ErrIntOverflowGenerated
  938. }
  939. if iNdEx >= l {
  940. return 0, io.ErrUnexpectedEOF
  941. }
  942. b := data[iNdEx]
  943. iNdEx++
  944. length |= (int(b) & 0x7F) << shift
  945. if b < 0x80 {
  946. break
  947. }
  948. }
  949. iNdEx += length
  950. if length < 0 {
  951. return 0, ErrInvalidLengthGenerated
  952. }
  953. return iNdEx, nil
  954. case 3:
  955. for {
  956. var innerWire uint64
  957. var start int = iNdEx
  958. for shift := uint(0); ; shift += 7 {
  959. if shift >= 64 {
  960. return 0, ErrIntOverflowGenerated
  961. }
  962. if iNdEx >= l {
  963. return 0, io.ErrUnexpectedEOF
  964. }
  965. b := data[iNdEx]
  966. iNdEx++
  967. innerWire |= (uint64(b) & 0x7F) << shift
  968. if b < 0x80 {
  969. break
  970. }
  971. }
  972. innerWireType := int(innerWire & 0x7)
  973. if innerWireType == 4 {
  974. break
  975. }
  976. next, err := skipGenerated(data[start:])
  977. if err != nil {
  978. return 0, err
  979. }
  980. iNdEx = start + next
  981. }
  982. return iNdEx, nil
  983. case 4:
  984. return iNdEx, nil
  985. case 5:
  986. iNdEx += 4
  987. return iNdEx, nil
  988. default:
  989. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  990. }
  991. }
  992. panic("unreachable")
  993. }
  994. var (
  995. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  996. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  997. )
  998. var fileDescriptorGenerated = []byte{
  999. // 611 bytes of a gzipped FileDescriptorProto
  1000. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x93, 0x4f, 0x6f, 0xd3, 0x4c,
  1001. 0x10, 0xc6, 0xeb, 0xa6, 0xa9, 0xfc, 0x6e, 0xf3, 0x22, 0xb4, 0x54, 0x28, 0x8a, 0x50, 0x8a, 0x72,
  1002. 0x8a, 0x50, 0xb3, 0x26, 0x85, 0xa2, 0x9e, 0x8d, 0x04, 0x42, 0x02, 0x5a, 0x39, 0x10, 0x21, 0x10,
  1003. 0x48, 0x6b, 0x67, 0x48, 0x97, 0xd8, 0x5e, 0xcb, 0xbb, 0xce, 0x99, 0x03, 0xdc, 0x39, 0xf3, 0x31,
  1004. 0xf8, 0x08, 0x9c, 0x72, 0xec, 0x91, 0x53, 0x05, 0xe5, 0x8b, 0xb0, 0x5e, 0xff, 0x49, 0xa8, 0x93,
  1005. 0x96, 0x1e, 0x36, 0xca, 0xee, 0xce, 0xf3, 0xdb, 0x99, 0x67, 0xc6, 0xe8, 0x60, 0x72, 0x20, 0x08,
  1006. 0xe3, 0xd6, 0x24, 0x71, 0x21, 0x0e, 0x41, 0x82, 0xb0, 0xa2, 0xc9, 0xd8, 0xa2, 0x11, 0x13, 0xea,
  1007. 0x27, 0x12, 0xd6, 0xb4, 0x4f, 0xfd, 0xe8, 0x98, 0xf6, 0xad, 0x31, 0x84, 0x10, 0x53, 0x09, 0x23,
  1008. 0x12, 0xc5, 0x5c, 0x72, 0xdc, 0xcd, 0x94, 0x64, 0xae, 0x24, 0x4a, 0x49, 0x52, 0x25, 0x49, 0x95,
  1009. 0xa4, 0x50, 0xb6, 0x7a, 0x63, 0x26, 0x8f, 0x13, 0x97, 0x78, 0x3c, 0xb0, 0xc6, 0x7c, 0xcc, 0x2d,
  1010. 0x0d, 0x70, 0x93, 0xf7, 0x7a, 0xa7, 0x37, 0xfa, 0x5f, 0x06, 0x6e, 0xed, 0xad, 0x4c, 0xc9, 0x8a,
  1011. 0x41, 0xf0, 0x24, 0xf6, 0xe0, 0x7c, 0x32, 0xad, 0xfd, 0xd5, 0x9a, 0x24, 0x9c, 0x42, 0x2c, 0x18,
  1012. 0x0f, 0x61, 0x54, 0x91, 0xed, 0xae, 0x96, 0x4d, 0x2b, 0x15, 0xb7, 0x7a, 0xcb, 0xa3, 0xe3, 0x24,
  1013. 0x94, 0x2c, 0xa8, 0xe6, 0xd4, 0x5f, 0x1e, 0x9e, 0x48, 0xe6, 0x5b, 0x2c, 0x94, 0x42, 0xc6, 0xe7,
  1014. 0x25, 0x9d, 0xaf, 0xeb, 0x68, 0xf3, 0x08, 0xe4, 0x00, 0x24, 0x7e, 0x85, 0xcc, 0x00, 0x24, 0x1d,
  1015. 0x51, 0x49, 0x9b, 0xc6, 0x6d, 0xa3, 0xbb, 0xb5, 0xd7, 0x25, 0x2b, 0x1d, 0x57, 0x5e, 0x93, 0x43,
  1016. 0xf7, 0x03, 0x78, 0xf2, 0x99, 0xd2, 0xd8, 0x78, 0x76, 0xba, 0xb3, 0x76, 0x76, 0xba, 0x83, 0xe6,
  1017. 0x67, 0x4e, 0x49, 0xc3, 0x43, 0xb4, 0x21, 0x22, 0xf0, 0x9a, 0xeb, 0x9a, 0x7a, 0x9f, 0xfc, 0x6b,
  1018. 0x1f, 0x49, 0x96, 0xd9, 0x40, 0x69, 0xed, 0x46, 0xfe, 0xc2, 0x46, 0xba, 0x73, 0x34, 0x0f, 0xbf,
  1019. 0x43, 0x9b, 0x42, 0x52, 0x99, 0x88, 0x66, 0x4d, 0x93, 0x1f, 0x5c, 0x99, 0xac, 0xd5, 0xf6, 0xb5,
  1020. 0x9c, 0xbd, 0x99, 0xed, 0x9d, 0x9c, 0xda, 0xf9, 0x6e, 0x20, 0x94, 0x05, 0x3e, 0x65, 0x42, 0xe2,
  1021. 0xb7, 0x15, 0x83, 0xac, 0x0b, 0x0c, 0x5a, 0x98, 0x02, 0x92, 0xca, 0xb5, 0x4f, 0xd7, 0xf3, 0x97,
  1022. 0xcc, 0xe2, 0x64, 0xc1, 0xa5, 0x97, 0xa8, 0xce, 0x24, 0x04, 0x42, 0xd9, 0x54, 0x53, 0xec, 0xbb,
  1023. 0x57, 0x2d, 0xc6, 0xfe, 0x3f, 0x87, 0xd7, 0x9f, 0xa4, 0x18, 0x27, 0xa3, 0x75, 0xbe, 0xd5, 0x8a,
  1024. 0x22, 0x52, 0xe7, 0x70, 0x17, 0x99, 0x31, 0x44, 0x3e, 0xf3, 0xa8, 0xd0, 0x45, 0xd4, 0xed, 0x46,
  1025. 0x9a, 0x8f, 0x93, 0x9f, 0x39, 0xe5, 0xad, 0x72, 0xd7, 0x14, 0xe0, 0xab, 0x6e, 0xf2, 0xf8, 0xf2,
  1026. 0xce, 0xfd, 0x5d, 0x2e, 0x75, 0xc1, 0x1f, 0xe4, 0xda, 0x8c, 0x5f, 0xec, 0x9c, 0x92, 0x89, 0xdf,
  1027. 0x20, 0x53, 0x25, 0x18, 0xf9, 0x6a, 0x1a, 0xf3, 0xfe, 0xf5, 0x2e, 0x9e, 0xb7, 0x23, 0x3e, 0x7a,
  1028. 0x91, 0x0b, 0xf4, 0x48, 0x94, 0x66, 0x16, 0xa7, 0x4e, 0x09, 0xc4, 0x9f, 0x0d, 0xb4, 0x3d, 0xe5,
  1029. 0x7e, 0x12, 0xc0, 0x43, 0x9f, 0xb2, 0xa0, 0x88, 0x10, 0xcd, 0x0d, 0x6d, 0xee, 0xbd, 0x4b, 0x5e,
  1030. 0x4a, 0x4b, 0x11, 0x12, 0x42, 0x39, 0x9c, 0x33, 0xec, 0x5b, 0xf9, 0x7b, 0xdb, 0xc3, 0x25, 0x60,
  1031. 0x67, 0xe9, 0x73, 0x78, 0x1f, 0x6d, 0x09, 0x88, 0xa7, 0xcc, 0x83, 0xe7, 0x34, 0x80, 0x66, 0x5d,
  1032. 0xd5, 0xf9, 0x9f, 0x7d, 0x23, 0x07, 0x6d, 0x0d, 0xe6, 0x57, 0xce, 0x62, 0x5c, 0xe7, 0x93, 0x81,
  1033. 0x1a, 0x8b, 0x23, 0x8a, 0x1f, 0x21, 0xcc, 0xdd, 0x34, 0x02, 0x46, 0x8f, 0xb3, 0x4f, 0x58, 0x59,
  1034. 0xad, 0x1b, 0x58, 0xb3, 0x6f, 0x2a, 0x14, 0x3e, 0xac, 0xdc, 0x3a, 0x4b, 0x14, 0x78, 0x77, 0xa1,
  1035. 0xfd, 0xeb, 0xba, 0xfd, 0xa5, 0x8b, 0xd5, 0x11, 0xb0, 0xef, 0xcc, 0x7e, 0xb5, 0xd7, 0x4e, 0xd4,
  1036. 0xfa, 0xa1, 0xd6, 0xc7, 0xb3, 0xb6, 0x31, 0x53, 0xeb, 0x44, 0xad, 0x9f, 0x6a, 0x7d, 0xf9, 0xdd,
  1037. 0x5e, 0x7b, 0x6d, 0x16, 0x43, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0x14, 0xcf, 0x45, 0x01, 0xd8,
  1038. 0x05, 0x00, 0x00,
  1039. }