generated.pb.go 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490
  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/batch/v2alpha1/generated.proto
  15. /*
  16. Package v2alpha1 is a generated protocol buffer package.
  17. It is generated from these files:
  18. k8s.io/kubernetes/vendor/k8s.io/api/batch/v2alpha1/generated.proto
  19. It has these top-level messages:
  20. CronJob
  21. CronJobList
  22. CronJobSpec
  23. CronJobStatus
  24. JobTemplate
  25. JobTemplateSpec
  26. */
  27. package v2alpha1
  28. import proto "github.com/gogo/protobuf/proto"
  29. import fmt "fmt"
  30. import math "math"
  31. import k8s_io_api_core_v1 "k8s.io/api/core/v1"
  32. import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  33. import strings "strings"
  34. import reflect "reflect"
  35. import io "io"
  36. // Reference imports to suppress errors if they are not otherwise used.
  37. var _ = proto.Marshal
  38. var _ = fmt.Errorf
  39. var _ = math.Inf
  40. // This is a compile-time assertion to ensure that this generated file
  41. // is compatible with the proto package it is being compiled against.
  42. // A compilation error at this line likely means your copy of the
  43. // proto package needs to be updated.
  44. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  45. func (m *CronJob) Reset() { *m = CronJob{} }
  46. func (*CronJob) ProtoMessage() {}
  47. func (*CronJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  48. func (m *CronJobList) Reset() { *m = CronJobList{} }
  49. func (*CronJobList) ProtoMessage() {}
  50. func (*CronJobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  51. func (m *CronJobSpec) Reset() { *m = CronJobSpec{} }
  52. func (*CronJobSpec) ProtoMessage() {}
  53. func (*CronJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  54. func (m *CronJobStatus) Reset() { *m = CronJobStatus{} }
  55. func (*CronJobStatus) ProtoMessage() {}
  56. func (*CronJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  57. func (m *JobTemplate) Reset() { *m = JobTemplate{} }
  58. func (*JobTemplate) ProtoMessage() {}
  59. func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
  60. func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} }
  61. func (*JobTemplateSpec) ProtoMessage() {}
  62. func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  63. func init() {
  64. proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v2alpha1.CronJob")
  65. proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v2alpha1.CronJobList")
  66. proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v2alpha1.CronJobSpec")
  67. proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v2alpha1.CronJobStatus")
  68. proto.RegisterType((*JobTemplate)(nil), "k8s.io.api.batch.v2alpha1.JobTemplate")
  69. proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v2alpha1.JobTemplateSpec")
  70. }
  71. func (m *CronJob) Marshal() (dAtA []byte, err error) {
  72. size := m.Size()
  73. dAtA = make([]byte, size)
  74. n, err := m.MarshalTo(dAtA)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return dAtA[:n], nil
  79. }
  80. func (m *CronJob) MarshalTo(dAtA []byte) (int, error) {
  81. var i int
  82. _ = i
  83. var l int
  84. _ = l
  85. dAtA[i] = 0xa
  86. i++
  87. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  88. n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  89. if err != nil {
  90. return 0, err
  91. }
  92. i += n1
  93. dAtA[i] = 0x12
  94. i++
  95. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  96. n2, err := m.Spec.MarshalTo(dAtA[i:])
  97. if err != nil {
  98. return 0, err
  99. }
  100. i += n2
  101. dAtA[i] = 0x1a
  102. i++
  103. i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
  104. n3, err := m.Status.MarshalTo(dAtA[i:])
  105. if err != nil {
  106. return 0, err
  107. }
  108. i += n3
  109. return i, nil
  110. }
  111. func (m *CronJobList) Marshal() (dAtA []byte, err error) {
  112. size := m.Size()
  113. dAtA = make([]byte, size)
  114. n, err := m.MarshalTo(dAtA)
  115. if err != nil {
  116. return nil, err
  117. }
  118. return dAtA[:n], nil
  119. }
  120. func (m *CronJobList) MarshalTo(dAtA []byte) (int, error) {
  121. var i int
  122. _ = i
  123. var l int
  124. _ = l
  125. dAtA[i] = 0xa
  126. i++
  127. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  128. n4, err := m.ListMeta.MarshalTo(dAtA[i:])
  129. if err != nil {
  130. return 0, err
  131. }
  132. i += n4
  133. if len(m.Items) > 0 {
  134. for _, msg := range m.Items {
  135. dAtA[i] = 0x12
  136. i++
  137. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  138. n, err := msg.MarshalTo(dAtA[i:])
  139. if err != nil {
  140. return 0, err
  141. }
  142. i += n
  143. }
  144. }
  145. return i, nil
  146. }
  147. func (m *CronJobSpec) Marshal() (dAtA []byte, err error) {
  148. size := m.Size()
  149. dAtA = make([]byte, size)
  150. n, err := m.MarshalTo(dAtA)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return dAtA[:n], nil
  155. }
  156. func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error) {
  157. var i int
  158. _ = i
  159. var l int
  160. _ = l
  161. dAtA[i] = 0xa
  162. i++
  163. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule)))
  164. i += copy(dAtA[i:], m.Schedule)
  165. if m.StartingDeadlineSeconds != nil {
  166. dAtA[i] = 0x10
  167. i++
  168. i = encodeVarintGenerated(dAtA, i, uint64(*m.StartingDeadlineSeconds))
  169. }
  170. dAtA[i] = 0x1a
  171. i++
  172. i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConcurrencyPolicy)))
  173. i += copy(dAtA[i:], m.ConcurrencyPolicy)
  174. if m.Suspend != nil {
  175. dAtA[i] = 0x20
  176. i++
  177. if *m.Suspend {
  178. dAtA[i] = 1
  179. } else {
  180. dAtA[i] = 0
  181. }
  182. i++
  183. }
  184. dAtA[i] = 0x2a
  185. i++
  186. i = encodeVarintGenerated(dAtA, i, uint64(m.JobTemplate.Size()))
  187. n5, err := m.JobTemplate.MarshalTo(dAtA[i:])
  188. if err != nil {
  189. return 0, err
  190. }
  191. i += n5
  192. if m.SuccessfulJobsHistoryLimit != nil {
  193. dAtA[i] = 0x30
  194. i++
  195. i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulJobsHistoryLimit))
  196. }
  197. if m.FailedJobsHistoryLimit != nil {
  198. dAtA[i] = 0x38
  199. i++
  200. i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedJobsHistoryLimit))
  201. }
  202. return i, nil
  203. }
  204. func (m *CronJobStatus) Marshal() (dAtA []byte, err error) {
  205. size := m.Size()
  206. dAtA = make([]byte, size)
  207. n, err := m.MarshalTo(dAtA)
  208. if err != nil {
  209. return nil, err
  210. }
  211. return dAtA[:n], nil
  212. }
  213. func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error) {
  214. var i int
  215. _ = i
  216. var l int
  217. _ = l
  218. if len(m.Active) > 0 {
  219. for _, msg := range m.Active {
  220. dAtA[i] = 0xa
  221. i++
  222. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  223. n, err := msg.MarshalTo(dAtA[i:])
  224. if err != nil {
  225. return 0, err
  226. }
  227. i += n
  228. }
  229. }
  230. if m.LastScheduleTime != nil {
  231. dAtA[i] = 0x22
  232. i++
  233. i = encodeVarintGenerated(dAtA, i, uint64(m.LastScheduleTime.Size()))
  234. n6, err := m.LastScheduleTime.MarshalTo(dAtA[i:])
  235. if err != nil {
  236. return 0, err
  237. }
  238. i += n6
  239. }
  240. return i, nil
  241. }
  242. func (m *JobTemplate) Marshal() (dAtA []byte, err error) {
  243. size := m.Size()
  244. dAtA = make([]byte, size)
  245. n, err := m.MarshalTo(dAtA)
  246. if err != nil {
  247. return nil, err
  248. }
  249. return dAtA[:n], nil
  250. }
  251. func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) {
  252. var i int
  253. _ = i
  254. var l int
  255. _ = l
  256. dAtA[i] = 0xa
  257. i++
  258. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  259. n7, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  260. if err != nil {
  261. return 0, err
  262. }
  263. i += n7
  264. dAtA[i] = 0x12
  265. i++
  266. i = encodeVarintGenerated(dAtA, i, uint64(m.Template.Size()))
  267. n8, err := m.Template.MarshalTo(dAtA[i:])
  268. if err != nil {
  269. return 0, err
  270. }
  271. i += n8
  272. return i, nil
  273. }
  274. func (m *JobTemplateSpec) 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 *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error) {
  284. var i int
  285. _ = i
  286. var l int
  287. _ = l
  288. dAtA[i] = 0xa
  289. i++
  290. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  291. n9, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  292. if err != nil {
  293. return 0, err
  294. }
  295. i += n9
  296. dAtA[i] = 0x12
  297. i++
  298. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  299. n10, err := m.Spec.MarshalTo(dAtA[i:])
  300. if err != nil {
  301. return 0, err
  302. }
  303. i += n10
  304. return i, nil
  305. }
  306. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  307. for v >= 1<<7 {
  308. dAtA[offset] = uint8(v&0x7f | 0x80)
  309. v >>= 7
  310. offset++
  311. }
  312. dAtA[offset] = uint8(v)
  313. return offset + 1
  314. }
  315. func (m *CronJob) Size() (n int) {
  316. var l int
  317. _ = l
  318. l = m.ObjectMeta.Size()
  319. n += 1 + l + sovGenerated(uint64(l))
  320. l = m.Spec.Size()
  321. n += 1 + l + sovGenerated(uint64(l))
  322. l = m.Status.Size()
  323. n += 1 + l + sovGenerated(uint64(l))
  324. return n
  325. }
  326. func (m *CronJobList) Size() (n int) {
  327. var l int
  328. _ = l
  329. l = m.ListMeta.Size()
  330. n += 1 + l + sovGenerated(uint64(l))
  331. if len(m.Items) > 0 {
  332. for _, e := range m.Items {
  333. l = e.Size()
  334. n += 1 + l + sovGenerated(uint64(l))
  335. }
  336. }
  337. return n
  338. }
  339. func (m *CronJobSpec) Size() (n int) {
  340. var l int
  341. _ = l
  342. l = len(m.Schedule)
  343. n += 1 + l + sovGenerated(uint64(l))
  344. if m.StartingDeadlineSeconds != nil {
  345. n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds))
  346. }
  347. l = len(m.ConcurrencyPolicy)
  348. n += 1 + l + sovGenerated(uint64(l))
  349. if m.Suspend != nil {
  350. n += 2
  351. }
  352. l = m.JobTemplate.Size()
  353. n += 1 + l + sovGenerated(uint64(l))
  354. if m.SuccessfulJobsHistoryLimit != nil {
  355. n += 1 + sovGenerated(uint64(*m.SuccessfulJobsHistoryLimit))
  356. }
  357. if m.FailedJobsHistoryLimit != nil {
  358. n += 1 + sovGenerated(uint64(*m.FailedJobsHistoryLimit))
  359. }
  360. return n
  361. }
  362. func (m *CronJobStatus) Size() (n int) {
  363. var l int
  364. _ = l
  365. if len(m.Active) > 0 {
  366. for _, e := range m.Active {
  367. l = e.Size()
  368. n += 1 + l + sovGenerated(uint64(l))
  369. }
  370. }
  371. if m.LastScheduleTime != nil {
  372. l = m.LastScheduleTime.Size()
  373. n += 1 + l + sovGenerated(uint64(l))
  374. }
  375. return n
  376. }
  377. func (m *JobTemplate) Size() (n int) {
  378. var l int
  379. _ = l
  380. l = m.ObjectMeta.Size()
  381. n += 1 + l + sovGenerated(uint64(l))
  382. l = m.Template.Size()
  383. n += 1 + l + sovGenerated(uint64(l))
  384. return n
  385. }
  386. func (m *JobTemplateSpec) Size() (n int) {
  387. var l int
  388. _ = l
  389. l = m.ObjectMeta.Size()
  390. n += 1 + l + sovGenerated(uint64(l))
  391. l = m.Spec.Size()
  392. n += 1 + l + sovGenerated(uint64(l))
  393. return n
  394. }
  395. func sovGenerated(x uint64) (n int) {
  396. for {
  397. n++
  398. x >>= 7
  399. if x == 0 {
  400. break
  401. }
  402. }
  403. return n
  404. }
  405. func sozGenerated(x uint64) (n int) {
  406. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  407. }
  408. func (this *CronJob) String() string {
  409. if this == nil {
  410. return "nil"
  411. }
  412. s := strings.Join([]string{`&CronJob{`,
  413. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  414. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`,
  415. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`,
  416. `}`,
  417. }, "")
  418. return s
  419. }
  420. func (this *CronJobList) String() string {
  421. if this == nil {
  422. return "nil"
  423. }
  424. s := strings.Join([]string{`&CronJobList{`,
  425. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  426. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CronJob", "CronJob", 1), `&`, ``, 1) + `,`,
  427. `}`,
  428. }, "")
  429. return s
  430. }
  431. func (this *CronJobSpec) String() string {
  432. if this == nil {
  433. return "nil"
  434. }
  435. s := strings.Join([]string{`&CronJobSpec{`,
  436. `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`,
  437. `StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`,
  438. `ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`,
  439. `Suspend:` + valueToStringGenerated(this.Suspend) + `,`,
  440. `JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
  441. `SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`,
  442. `FailedJobsHistoryLimit:` + valueToStringGenerated(this.FailedJobsHistoryLimit) + `,`,
  443. `}`,
  444. }, "")
  445. return s
  446. }
  447. func (this *CronJobStatus) String() string {
  448. if this == nil {
  449. return "nil"
  450. }
  451. s := strings.Join([]string{`&CronJobStatus{`,
  452. `Active:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Active), "ObjectReference", "k8s_io_api_core_v1.ObjectReference", 1), `&`, ``, 1) + `,`,
  453. `LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`,
  454. `}`,
  455. }, "")
  456. return s
  457. }
  458. func (this *JobTemplate) String() string {
  459. if this == nil {
  460. return "nil"
  461. }
  462. s := strings.Join([]string{`&JobTemplate{`,
  463. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  464. `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
  465. `}`,
  466. }, "")
  467. return s
  468. }
  469. func (this *JobTemplateSpec) String() string {
  470. if this == nil {
  471. return "nil"
  472. }
  473. s := strings.Join([]string{`&JobTemplateSpec{`,
  474. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  475. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "k8s_io_api_batch_v1.JobSpec", 1), `&`, ``, 1) + `,`,
  476. `}`,
  477. }, "")
  478. return s
  479. }
  480. func valueToStringGenerated(v interface{}) string {
  481. rv := reflect.ValueOf(v)
  482. if rv.IsNil() {
  483. return "nil"
  484. }
  485. pv := reflect.Indirect(rv).Interface()
  486. return fmt.Sprintf("*%v", pv)
  487. }
  488. func (m *CronJob) Unmarshal(dAtA []byte) error {
  489. l := len(dAtA)
  490. iNdEx := 0
  491. for iNdEx < l {
  492. preIndex := iNdEx
  493. var wire uint64
  494. for shift := uint(0); ; shift += 7 {
  495. if shift >= 64 {
  496. return ErrIntOverflowGenerated
  497. }
  498. if iNdEx >= l {
  499. return io.ErrUnexpectedEOF
  500. }
  501. b := dAtA[iNdEx]
  502. iNdEx++
  503. wire |= (uint64(b) & 0x7F) << shift
  504. if b < 0x80 {
  505. break
  506. }
  507. }
  508. fieldNum := int32(wire >> 3)
  509. wireType := int(wire & 0x7)
  510. if wireType == 4 {
  511. return fmt.Errorf("proto: CronJob: wiretype end group for non-group")
  512. }
  513. if fieldNum <= 0 {
  514. return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire)
  515. }
  516. switch fieldNum {
  517. case 1:
  518. if wireType != 2 {
  519. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  520. }
  521. var msglen int
  522. for shift := uint(0); ; shift += 7 {
  523. if shift >= 64 {
  524. return ErrIntOverflowGenerated
  525. }
  526. if iNdEx >= l {
  527. return io.ErrUnexpectedEOF
  528. }
  529. b := dAtA[iNdEx]
  530. iNdEx++
  531. msglen |= (int(b) & 0x7F) << shift
  532. if b < 0x80 {
  533. break
  534. }
  535. }
  536. if msglen < 0 {
  537. return ErrInvalidLengthGenerated
  538. }
  539. postIndex := iNdEx + msglen
  540. if postIndex > l {
  541. return io.ErrUnexpectedEOF
  542. }
  543. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  544. return err
  545. }
  546. iNdEx = postIndex
  547. case 2:
  548. if wireType != 2 {
  549. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  550. }
  551. var msglen int
  552. for shift := uint(0); ; shift += 7 {
  553. if shift >= 64 {
  554. return ErrIntOverflowGenerated
  555. }
  556. if iNdEx >= l {
  557. return io.ErrUnexpectedEOF
  558. }
  559. b := dAtA[iNdEx]
  560. iNdEx++
  561. msglen |= (int(b) & 0x7F) << shift
  562. if b < 0x80 {
  563. break
  564. }
  565. }
  566. if msglen < 0 {
  567. return ErrInvalidLengthGenerated
  568. }
  569. postIndex := iNdEx + msglen
  570. if postIndex > l {
  571. return io.ErrUnexpectedEOF
  572. }
  573. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  574. return err
  575. }
  576. iNdEx = postIndex
  577. case 3:
  578. if wireType != 2 {
  579. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  580. }
  581. var msglen int
  582. for shift := uint(0); ; shift += 7 {
  583. if shift >= 64 {
  584. return ErrIntOverflowGenerated
  585. }
  586. if iNdEx >= l {
  587. return io.ErrUnexpectedEOF
  588. }
  589. b := dAtA[iNdEx]
  590. iNdEx++
  591. msglen |= (int(b) & 0x7F) << shift
  592. if b < 0x80 {
  593. break
  594. }
  595. }
  596. if msglen < 0 {
  597. return ErrInvalidLengthGenerated
  598. }
  599. postIndex := iNdEx + msglen
  600. if postIndex > l {
  601. return io.ErrUnexpectedEOF
  602. }
  603. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  604. return err
  605. }
  606. iNdEx = postIndex
  607. default:
  608. iNdEx = preIndex
  609. skippy, err := skipGenerated(dAtA[iNdEx:])
  610. if err != nil {
  611. return err
  612. }
  613. if skippy < 0 {
  614. return ErrInvalidLengthGenerated
  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 *CronJobList) 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 ErrIntOverflowGenerated
  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: CronJobList: wiretype end group for non-group")
  651. }
  652. if fieldNum <= 0 {
  653. return fmt.Errorf("proto: CronJobList: illegal tag %d (wire type %d)", fieldNum, wire)
  654. }
  655. switch fieldNum {
  656. case 1:
  657. if wireType != 2 {
  658. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  659. }
  660. var msglen int
  661. for shift := uint(0); ; shift += 7 {
  662. if shift >= 64 {
  663. return ErrIntOverflowGenerated
  664. }
  665. if iNdEx >= l {
  666. return io.ErrUnexpectedEOF
  667. }
  668. b := dAtA[iNdEx]
  669. iNdEx++
  670. msglen |= (int(b) & 0x7F) << shift
  671. if b < 0x80 {
  672. break
  673. }
  674. }
  675. if msglen < 0 {
  676. return ErrInvalidLengthGenerated
  677. }
  678. postIndex := iNdEx + msglen
  679. if postIndex > l {
  680. return io.ErrUnexpectedEOF
  681. }
  682. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  683. return err
  684. }
  685. iNdEx = postIndex
  686. case 2:
  687. if wireType != 2 {
  688. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  689. }
  690. var msglen int
  691. for shift := uint(0); ; shift += 7 {
  692. if shift >= 64 {
  693. return ErrIntOverflowGenerated
  694. }
  695. if iNdEx >= l {
  696. return io.ErrUnexpectedEOF
  697. }
  698. b := dAtA[iNdEx]
  699. iNdEx++
  700. msglen |= (int(b) & 0x7F) << shift
  701. if b < 0x80 {
  702. break
  703. }
  704. }
  705. if msglen < 0 {
  706. return ErrInvalidLengthGenerated
  707. }
  708. postIndex := iNdEx + msglen
  709. if postIndex > l {
  710. return io.ErrUnexpectedEOF
  711. }
  712. m.Items = append(m.Items, CronJob{})
  713. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  714. return err
  715. }
  716. iNdEx = postIndex
  717. default:
  718. iNdEx = preIndex
  719. skippy, err := skipGenerated(dAtA[iNdEx:])
  720. if err != nil {
  721. return err
  722. }
  723. if skippy < 0 {
  724. return ErrInvalidLengthGenerated
  725. }
  726. if (iNdEx + skippy) > l {
  727. return io.ErrUnexpectedEOF
  728. }
  729. iNdEx += skippy
  730. }
  731. }
  732. if iNdEx > l {
  733. return io.ErrUnexpectedEOF
  734. }
  735. return nil
  736. }
  737. func (m *CronJobSpec) Unmarshal(dAtA []byte) error {
  738. l := len(dAtA)
  739. iNdEx := 0
  740. for iNdEx < l {
  741. preIndex := iNdEx
  742. var wire uint64
  743. for shift := uint(0); ; shift += 7 {
  744. if shift >= 64 {
  745. return ErrIntOverflowGenerated
  746. }
  747. if iNdEx >= l {
  748. return io.ErrUnexpectedEOF
  749. }
  750. b := dAtA[iNdEx]
  751. iNdEx++
  752. wire |= (uint64(b) & 0x7F) << shift
  753. if b < 0x80 {
  754. break
  755. }
  756. }
  757. fieldNum := int32(wire >> 3)
  758. wireType := int(wire & 0x7)
  759. if wireType == 4 {
  760. return fmt.Errorf("proto: CronJobSpec: wiretype end group for non-group")
  761. }
  762. if fieldNum <= 0 {
  763. return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  764. }
  765. switch fieldNum {
  766. case 1:
  767. if wireType != 2 {
  768. return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType)
  769. }
  770. var stringLen uint64
  771. for shift := uint(0); ; shift += 7 {
  772. if shift >= 64 {
  773. return ErrIntOverflowGenerated
  774. }
  775. if iNdEx >= l {
  776. return io.ErrUnexpectedEOF
  777. }
  778. b := dAtA[iNdEx]
  779. iNdEx++
  780. stringLen |= (uint64(b) & 0x7F) << shift
  781. if b < 0x80 {
  782. break
  783. }
  784. }
  785. intStringLen := int(stringLen)
  786. if intStringLen < 0 {
  787. return ErrInvalidLengthGenerated
  788. }
  789. postIndex := iNdEx + intStringLen
  790. if postIndex > l {
  791. return io.ErrUnexpectedEOF
  792. }
  793. m.Schedule = string(dAtA[iNdEx:postIndex])
  794. iNdEx = postIndex
  795. case 2:
  796. if wireType != 0 {
  797. return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType)
  798. }
  799. var v int64
  800. for shift := uint(0); ; shift += 7 {
  801. if shift >= 64 {
  802. return ErrIntOverflowGenerated
  803. }
  804. if iNdEx >= l {
  805. return io.ErrUnexpectedEOF
  806. }
  807. b := dAtA[iNdEx]
  808. iNdEx++
  809. v |= (int64(b) & 0x7F) << shift
  810. if b < 0x80 {
  811. break
  812. }
  813. }
  814. m.StartingDeadlineSeconds = &v
  815. case 3:
  816. if wireType != 2 {
  817. return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType)
  818. }
  819. var stringLen uint64
  820. for shift := uint(0); ; shift += 7 {
  821. if shift >= 64 {
  822. return ErrIntOverflowGenerated
  823. }
  824. if iNdEx >= l {
  825. return io.ErrUnexpectedEOF
  826. }
  827. b := dAtA[iNdEx]
  828. iNdEx++
  829. stringLen |= (uint64(b) & 0x7F) << shift
  830. if b < 0x80 {
  831. break
  832. }
  833. }
  834. intStringLen := int(stringLen)
  835. if intStringLen < 0 {
  836. return ErrInvalidLengthGenerated
  837. }
  838. postIndex := iNdEx + intStringLen
  839. if postIndex > l {
  840. return io.ErrUnexpectedEOF
  841. }
  842. m.ConcurrencyPolicy = ConcurrencyPolicy(dAtA[iNdEx:postIndex])
  843. iNdEx = postIndex
  844. case 4:
  845. if wireType != 0 {
  846. return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType)
  847. }
  848. var v int
  849. for shift := uint(0); ; shift += 7 {
  850. if shift >= 64 {
  851. return ErrIntOverflowGenerated
  852. }
  853. if iNdEx >= l {
  854. return io.ErrUnexpectedEOF
  855. }
  856. b := dAtA[iNdEx]
  857. iNdEx++
  858. v |= (int(b) & 0x7F) << shift
  859. if b < 0x80 {
  860. break
  861. }
  862. }
  863. b := bool(v != 0)
  864. m.Suspend = &b
  865. case 5:
  866. if wireType != 2 {
  867. return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType)
  868. }
  869. var msglen int
  870. for shift := uint(0); ; shift += 7 {
  871. if shift >= 64 {
  872. return ErrIntOverflowGenerated
  873. }
  874. if iNdEx >= l {
  875. return io.ErrUnexpectedEOF
  876. }
  877. b := dAtA[iNdEx]
  878. iNdEx++
  879. msglen |= (int(b) & 0x7F) << shift
  880. if b < 0x80 {
  881. break
  882. }
  883. }
  884. if msglen < 0 {
  885. return ErrInvalidLengthGenerated
  886. }
  887. postIndex := iNdEx + msglen
  888. if postIndex > l {
  889. return io.ErrUnexpectedEOF
  890. }
  891. if err := m.JobTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  892. return err
  893. }
  894. iNdEx = postIndex
  895. case 6:
  896. if wireType != 0 {
  897. return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType)
  898. }
  899. var v int32
  900. for shift := uint(0); ; shift += 7 {
  901. if shift >= 64 {
  902. return ErrIntOverflowGenerated
  903. }
  904. if iNdEx >= l {
  905. return io.ErrUnexpectedEOF
  906. }
  907. b := dAtA[iNdEx]
  908. iNdEx++
  909. v |= (int32(b) & 0x7F) << shift
  910. if b < 0x80 {
  911. break
  912. }
  913. }
  914. m.SuccessfulJobsHistoryLimit = &v
  915. case 7:
  916. if wireType != 0 {
  917. return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType)
  918. }
  919. var v int32
  920. for shift := uint(0); ; shift += 7 {
  921. if shift >= 64 {
  922. return ErrIntOverflowGenerated
  923. }
  924. if iNdEx >= l {
  925. return io.ErrUnexpectedEOF
  926. }
  927. b := dAtA[iNdEx]
  928. iNdEx++
  929. v |= (int32(b) & 0x7F) << shift
  930. if b < 0x80 {
  931. break
  932. }
  933. }
  934. m.FailedJobsHistoryLimit = &v
  935. default:
  936. iNdEx = preIndex
  937. skippy, err := skipGenerated(dAtA[iNdEx:])
  938. if err != nil {
  939. return err
  940. }
  941. if skippy < 0 {
  942. return ErrInvalidLengthGenerated
  943. }
  944. if (iNdEx + skippy) > l {
  945. return io.ErrUnexpectedEOF
  946. }
  947. iNdEx += skippy
  948. }
  949. }
  950. if iNdEx > l {
  951. return io.ErrUnexpectedEOF
  952. }
  953. return nil
  954. }
  955. func (m *CronJobStatus) Unmarshal(dAtA []byte) error {
  956. l := len(dAtA)
  957. iNdEx := 0
  958. for iNdEx < l {
  959. preIndex := iNdEx
  960. var wire uint64
  961. for shift := uint(0); ; shift += 7 {
  962. if shift >= 64 {
  963. return ErrIntOverflowGenerated
  964. }
  965. if iNdEx >= l {
  966. return io.ErrUnexpectedEOF
  967. }
  968. b := dAtA[iNdEx]
  969. iNdEx++
  970. wire |= (uint64(b) & 0x7F) << shift
  971. if b < 0x80 {
  972. break
  973. }
  974. }
  975. fieldNum := int32(wire >> 3)
  976. wireType := int(wire & 0x7)
  977. if wireType == 4 {
  978. return fmt.Errorf("proto: CronJobStatus: wiretype end group for non-group")
  979. }
  980. if fieldNum <= 0 {
  981. return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  982. }
  983. switch fieldNum {
  984. case 1:
  985. if wireType != 2 {
  986. return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
  987. }
  988. var msglen int
  989. for shift := uint(0); ; shift += 7 {
  990. if shift >= 64 {
  991. return ErrIntOverflowGenerated
  992. }
  993. if iNdEx >= l {
  994. return io.ErrUnexpectedEOF
  995. }
  996. b := dAtA[iNdEx]
  997. iNdEx++
  998. msglen |= (int(b) & 0x7F) << shift
  999. if b < 0x80 {
  1000. break
  1001. }
  1002. }
  1003. if msglen < 0 {
  1004. return ErrInvalidLengthGenerated
  1005. }
  1006. postIndex := iNdEx + msglen
  1007. if postIndex > l {
  1008. return io.ErrUnexpectedEOF
  1009. }
  1010. m.Active = append(m.Active, k8s_io_api_core_v1.ObjectReference{})
  1011. if err := m.Active[len(m.Active)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1012. return err
  1013. }
  1014. iNdEx = postIndex
  1015. case 4:
  1016. if wireType != 2 {
  1017. return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType)
  1018. }
  1019. var msglen int
  1020. for shift := uint(0); ; shift += 7 {
  1021. if shift >= 64 {
  1022. return ErrIntOverflowGenerated
  1023. }
  1024. if iNdEx >= l {
  1025. return io.ErrUnexpectedEOF
  1026. }
  1027. b := dAtA[iNdEx]
  1028. iNdEx++
  1029. msglen |= (int(b) & 0x7F) << shift
  1030. if b < 0x80 {
  1031. break
  1032. }
  1033. }
  1034. if msglen < 0 {
  1035. return ErrInvalidLengthGenerated
  1036. }
  1037. postIndex := iNdEx + msglen
  1038. if postIndex > l {
  1039. return io.ErrUnexpectedEOF
  1040. }
  1041. if m.LastScheduleTime == nil {
  1042. m.LastScheduleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
  1043. }
  1044. if err := m.LastScheduleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1045. return err
  1046. }
  1047. iNdEx = postIndex
  1048. default:
  1049. iNdEx = preIndex
  1050. skippy, err := skipGenerated(dAtA[iNdEx:])
  1051. if err != nil {
  1052. return err
  1053. }
  1054. if skippy < 0 {
  1055. return ErrInvalidLengthGenerated
  1056. }
  1057. if (iNdEx + skippy) > l {
  1058. return io.ErrUnexpectedEOF
  1059. }
  1060. iNdEx += skippy
  1061. }
  1062. }
  1063. if iNdEx > l {
  1064. return io.ErrUnexpectedEOF
  1065. }
  1066. return nil
  1067. }
  1068. func (m *JobTemplate) Unmarshal(dAtA []byte) error {
  1069. l := len(dAtA)
  1070. iNdEx := 0
  1071. for iNdEx < l {
  1072. preIndex := iNdEx
  1073. var wire uint64
  1074. for shift := uint(0); ; shift += 7 {
  1075. if shift >= 64 {
  1076. return ErrIntOverflowGenerated
  1077. }
  1078. if iNdEx >= l {
  1079. return io.ErrUnexpectedEOF
  1080. }
  1081. b := dAtA[iNdEx]
  1082. iNdEx++
  1083. wire |= (uint64(b) & 0x7F) << shift
  1084. if b < 0x80 {
  1085. break
  1086. }
  1087. }
  1088. fieldNum := int32(wire >> 3)
  1089. wireType := int(wire & 0x7)
  1090. if wireType == 4 {
  1091. return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group")
  1092. }
  1093. if fieldNum <= 0 {
  1094. return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
  1095. }
  1096. switch fieldNum {
  1097. case 1:
  1098. if wireType != 2 {
  1099. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1100. }
  1101. var msglen int
  1102. for shift := uint(0); ; shift += 7 {
  1103. if shift >= 64 {
  1104. return ErrIntOverflowGenerated
  1105. }
  1106. if iNdEx >= l {
  1107. return io.ErrUnexpectedEOF
  1108. }
  1109. b := dAtA[iNdEx]
  1110. iNdEx++
  1111. msglen |= (int(b) & 0x7F) << shift
  1112. if b < 0x80 {
  1113. break
  1114. }
  1115. }
  1116. if msglen < 0 {
  1117. return ErrInvalidLengthGenerated
  1118. }
  1119. postIndex := iNdEx + msglen
  1120. if postIndex > l {
  1121. return io.ErrUnexpectedEOF
  1122. }
  1123. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1124. return err
  1125. }
  1126. iNdEx = postIndex
  1127. case 2:
  1128. if wireType != 2 {
  1129. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  1130. }
  1131. var msglen int
  1132. for shift := uint(0); ; shift += 7 {
  1133. if shift >= 64 {
  1134. return ErrIntOverflowGenerated
  1135. }
  1136. if iNdEx >= l {
  1137. return io.ErrUnexpectedEOF
  1138. }
  1139. b := dAtA[iNdEx]
  1140. iNdEx++
  1141. msglen |= (int(b) & 0x7F) << shift
  1142. if b < 0x80 {
  1143. break
  1144. }
  1145. }
  1146. if msglen < 0 {
  1147. return ErrInvalidLengthGenerated
  1148. }
  1149. postIndex := iNdEx + msglen
  1150. if postIndex > l {
  1151. return io.ErrUnexpectedEOF
  1152. }
  1153. if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1154. return err
  1155. }
  1156. iNdEx = postIndex
  1157. default:
  1158. iNdEx = preIndex
  1159. skippy, err := skipGenerated(dAtA[iNdEx:])
  1160. if err != nil {
  1161. return err
  1162. }
  1163. if skippy < 0 {
  1164. return ErrInvalidLengthGenerated
  1165. }
  1166. if (iNdEx + skippy) > l {
  1167. return io.ErrUnexpectedEOF
  1168. }
  1169. iNdEx += skippy
  1170. }
  1171. }
  1172. if iNdEx > l {
  1173. return io.ErrUnexpectedEOF
  1174. }
  1175. return nil
  1176. }
  1177. func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error {
  1178. l := len(dAtA)
  1179. iNdEx := 0
  1180. for iNdEx < l {
  1181. preIndex := iNdEx
  1182. var wire uint64
  1183. for shift := uint(0); ; shift += 7 {
  1184. if shift >= 64 {
  1185. return ErrIntOverflowGenerated
  1186. }
  1187. if iNdEx >= l {
  1188. return io.ErrUnexpectedEOF
  1189. }
  1190. b := dAtA[iNdEx]
  1191. iNdEx++
  1192. wire |= (uint64(b) & 0x7F) << shift
  1193. if b < 0x80 {
  1194. break
  1195. }
  1196. }
  1197. fieldNum := int32(wire >> 3)
  1198. wireType := int(wire & 0x7)
  1199. if wireType == 4 {
  1200. return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group")
  1201. }
  1202. if fieldNum <= 0 {
  1203. return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1204. }
  1205. switch fieldNum {
  1206. case 1:
  1207. if wireType != 2 {
  1208. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1209. }
  1210. var msglen int
  1211. for shift := uint(0); ; shift += 7 {
  1212. if shift >= 64 {
  1213. return ErrIntOverflowGenerated
  1214. }
  1215. if iNdEx >= l {
  1216. return io.ErrUnexpectedEOF
  1217. }
  1218. b := dAtA[iNdEx]
  1219. iNdEx++
  1220. msglen |= (int(b) & 0x7F) << shift
  1221. if b < 0x80 {
  1222. break
  1223. }
  1224. }
  1225. if msglen < 0 {
  1226. return ErrInvalidLengthGenerated
  1227. }
  1228. postIndex := iNdEx + msglen
  1229. if postIndex > l {
  1230. return io.ErrUnexpectedEOF
  1231. }
  1232. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1233. return err
  1234. }
  1235. iNdEx = postIndex
  1236. case 2:
  1237. if wireType != 2 {
  1238. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  1239. }
  1240. var msglen int
  1241. for shift := uint(0); ; shift += 7 {
  1242. if shift >= 64 {
  1243. return ErrIntOverflowGenerated
  1244. }
  1245. if iNdEx >= l {
  1246. return io.ErrUnexpectedEOF
  1247. }
  1248. b := dAtA[iNdEx]
  1249. iNdEx++
  1250. msglen |= (int(b) & 0x7F) << shift
  1251. if b < 0x80 {
  1252. break
  1253. }
  1254. }
  1255. if msglen < 0 {
  1256. return ErrInvalidLengthGenerated
  1257. }
  1258. postIndex := iNdEx + msglen
  1259. if postIndex > l {
  1260. return io.ErrUnexpectedEOF
  1261. }
  1262. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1263. return err
  1264. }
  1265. iNdEx = postIndex
  1266. default:
  1267. iNdEx = preIndex
  1268. skippy, err := skipGenerated(dAtA[iNdEx:])
  1269. if err != nil {
  1270. return err
  1271. }
  1272. if skippy < 0 {
  1273. return ErrInvalidLengthGenerated
  1274. }
  1275. if (iNdEx + skippy) > l {
  1276. return io.ErrUnexpectedEOF
  1277. }
  1278. iNdEx += skippy
  1279. }
  1280. }
  1281. if iNdEx > l {
  1282. return io.ErrUnexpectedEOF
  1283. }
  1284. return nil
  1285. }
  1286. func skipGenerated(dAtA []byte) (n int, err error) {
  1287. l := len(dAtA)
  1288. iNdEx := 0
  1289. for iNdEx < l {
  1290. var wire uint64
  1291. for shift := uint(0); ; shift += 7 {
  1292. if shift >= 64 {
  1293. return 0, ErrIntOverflowGenerated
  1294. }
  1295. if iNdEx >= l {
  1296. return 0, io.ErrUnexpectedEOF
  1297. }
  1298. b := dAtA[iNdEx]
  1299. iNdEx++
  1300. wire |= (uint64(b) & 0x7F) << shift
  1301. if b < 0x80 {
  1302. break
  1303. }
  1304. }
  1305. wireType := int(wire & 0x7)
  1306. switch wireType {
  1307. case 0:
  1308. for shift := uint(0); ; shift += 7 {
  1309. if shift >= 64 {
  1310. return 0, ErrIntOverflowGenerated
  1311. }
  1312. if iNdEx >= l {
  1313. return 0, io.ErrUnexpectedEOF
  1314. }
  1315. iNdEx++
  1316. if dAtA[iNdEx-1] < 0x80 {
  1317. break
  1318. }
  1319. }
  1320. return iNdEx, nil
  1321. case 1:
  1322. iNdEx += 8
  1323. return iNdEx, nil
  1324. case 2:
  1325. var length int
  1326. for shift := uint(0); ; shift += 7 {
  1327. if shift >= 64 {
  1328. return 0, ErrIntOverflowGenerated
  1329. }
  1330. if iNdEx >= l {
  1331. return 0, io.ErrUnexpectedEOF
  1332. }
  1333. b := dAtA[iNdEx]
  1334. iNdEx++
  1335. length |= (int(b) & 0x7F) << shift
  1336. if b < 0x80 {
  1337. break
  1338. }
  1339. }
  1340. iNdEx += length
  1341. if length < 0 {
  1342. return 0, ErrInvalidLengthGenerated
  1343. }
  1344. return iNdEx, nil
  1345. case 3:
  1346. for {
  1347. var innerWire uint64
  1348. var start int = iNdEx
  1349. for shift := uint(0); ; shift += 7 {
  1350. if shift >= 64 {
  1351. return 0, ErrIntOverflowGenerated
  1352. }
  1353. if iNdEx >= l {
  1354. return 0, io.ErrUnexpectedEOF
  1355. }
  1356. b := dAtA[iNdEx]
  1357. iNdEx++
  1358. innerWire |= (uint64(b) & 0x7F) << shift
  1359. if b < 0x80 {
  1360. break
  1361. }
  1362. }
  1363. innerWireType := int(innerWire & 0x7)
  1364. if innerWireType == 4 {
  1365. break
  1366. }
  1367. next, err := skipGenerated(dAtA[start:])
  1368. if err != nil {
  1369. return 0, err
  1370. }
  1371. iNdEx = start + next
  1372. }
  1373. return iNdEx, nil
  1374. case 4:
  1375. return iNdEx, nil
  1376. case 5:
  1377. iNdEx += 4
  1378. return iNdEx, nil
  1379. default:
  1380. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1381. }
  1382. }
  1383. panic("unreachable")
  1384. }
  1385. var (
  1386. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  1387. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  1388. )
  1389. func init() {
  1390. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/batch/v2alpha1/generated.proto", fileDescriptorGenerated)
  1391. }
  1392. var fileDescriptorGenerated = []byte{
  1393. // 774 bytes of a gzipped FileDescriptorProto
  1394. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4d, 0x6f, 0xdb, 0x36,
  1395. 0x18, 0xc7, 0x2d, 0xc7, 0x6f, 0xa1, 0x97, 0x2d, 0xd1, 0x86, 0xc4, 0xf3, 0x06, 0xd9, 0x50, 0xb0,
  1396. 0xc1, 0x18, 0x36, 0x6a, 0x09, 0x86, 0x61, 0xa7, 0x01, 0x53, 0x86, 0x36, 0x4d, 0x53, 0x34, 0x90,
  1397. 0x53, 0xa0, 0x28, 0x82, 0xa2, 0x14, 0x45, 0xdb, 0x8c, 0x25, 0x51, 0x10, 0x29, 0x03, 0xbe, 0xf5,
  1398. 0xd6, 0x6b, 0x3f, 0x49, 0x2f, 0xed, 0x87, 0x48, 0x7b, 0xca, 0x31, 0x27, 0xa3, 0x51, 0xbf, 0x45,
  1399. 0x4f, 0x85, 0x68, 0xf9, 0x25, 0x7e, 0x49, 0xd2, 0x4b, 0x6e, 0xe2, 0xa3, 0xff, 0xff, 0xc7, 0x87,
  1400. 0xcf, 0xf3, 0x90, 0xc0, 0xec, 0xfe, 0xc3, 0x21, 0x65, 0x46, 0x37, 0xb2, 0x49, 0xe8, 0x13, 0x41,
  1401. 0xb8, 0xd1, 0x23, 0xbe, 0xc3, 0x42, 0x23, 0xfd, 0x81, 0x02, 0x6a, 0xd8, 0x48, 0xe0, 0x8e, 0xd1,
  1402. 0xdb, 0x45, 0x6e, 0xd0, 0x41, 0x3b, 0x46, 0x9b, 0xf8, 0x24, 0x44, 0x82, 0x38, 0x30, 0x08, 0x99,
  1403. 0x60, 0xea, 0x8f, 0x43, 0x29, 0x44, 0x01, 0x85, 0x52, 0x0a, 0x47, 0xd2, 0xea, 0x1f, 0x6d, 0x2a,
  1404. 0x3a, 0x91, 0x0d, 0x31, 0xf3, 0x8c, 0x36, 0x6b, 0x33, 0x43, 0x3a, 0xec, 0xa8, 0x25, 0x57, 0x72,
  1405. 0x21, 0xbf, 0x86, 0xa4, 0xea, 0xf6, 0xfc, 0xa6, 0x73, 0xdb, 0x55, 0xf5, 0x29, 0x11, 0x66, 0x21,
  1406. 0x59, 0xa4, 0xf9, 0x6b, 0xa2, 0xf1, 0x10, 0xee, 0x50, 0x9f, 0x84, 0x7d, 0x23, 0xe8, 0xb6, 0x93,
  1407. 0x00, 0x37, 0x3c, 0x22, 0xd0, 0x22, 0x97, 0xb1, 0xcc, 0x15, 0x46, 0xbe, 0xa0, 0x1e, 0x99, 0x33,
  1408. 0xfc, 0x7d, 0x93, 0x81, 0xe3, 0x0e, 0xf1, 0xd0, 0xac, 0x4f, 0x7f, 0x95, 0x05, 0xc5, 0xbd, 0x90,
  1409. 0xf9, 0x07, 0xcc, 0x56, 0x5f, 0x80, 0x52, 0x92, 0x8f, 0x83, 0x04, 0xaa, 0x28, 0x75, 0xa5, 0x51,
  1410. 0xde, 0xfd, 0x13, 0x4e, 0x0a, 0x3a, 0xc6, 0xc2, 0xa0, 0xdb, 0x4e, 0x02, 0x1c, 0x26, 0x6a, 0xd8,
  1411. 0xdb, 0x81, 0x8f, 0xed, 0x53, 0x82, 0xc5, 0x23, 0x22, 0x90, 0xa9, 0x9e, 0x0d, 0x6a, 0x99, 0x78,
  1412. 0x50, 0x03, 0x93, 0x98, 0x35, 0xa6, 0xaa, 0xfb, 0x20, 0xc7, 0x03, 0x82, 0x2b, 0x59, 0x49, 0xff,
  1413. 0x15, 0x2e, 0x6d, 0x17, 0x4c, 0x73, 0x6a, 0x06, 0x04, 0x9b, 0xdf, 0xa4, 0xcc, 0x5c, 0xb2, 0xb2,
  1414. 0x24, 0x41, 0x3d, 0x02, 0x05, 0x2e, 0x90, 0x88, 0x78, 0x65, 0x45, 0xb2, 0x1a, 0xb7, 0x60, 0x49,
  1415. 0xbd, 0xf9, 0x6d, 0x4a, 0x2b, 0x0c, 0xd7, 0x56, 0xca, 0xd1, 0xdf, 0x29, 0xa0, 0x9c, 0x2a, 0x0f,
  1416. 0x29, 0x17, 0xea, 0xc9, 0x5c, 0x35, 0xe0, 0xed, 0xaa, 0x91, 0xb8, 0x65, 0x2d, 0xd6, 0xd3, 0x9d,
  1417. 0x4a, 0xa3, 0xc8, 0x54, 0x25, 0xee, 0x83, 0x3c, 0x15, 0xc4, 0xe3, 0x95, 0x6c, 0x7d, 0xa5, 0x51,
  1418. 0xde, 0xd5, 0x6f, 0x4e, 0xdf, 0x5c, 0x4b, 0x71, 0xf9, 0x07, 0x89, 0xd1, 0x1a, 0xfa, 0xf5, 0x37,
  1419. 0xb9, 0x71, 0xda, 0x49, 0x79, 0xd4, 0xdf, 0x41, 0x29, 0x69, 0xb5, 0x13, 0xb9, 0x44, 0xa6, 0xbd,
  1420. 0x3a, 0x49, 0xa3, 0x99, 0xc6, 0xad, 0xb1, 0x42, 0x7d, 0x02, 0xb6, 0xb8, 0x40, 0xa1, 0xa0, 0x7e,
  1421. 0xfb, 0x7f, 0x82, 0x1c, 0x97, 0xfa, 0xa4, 0x49, 0x30, 0xf3, 0x1d, 0x2e, 0x7b, 0xb4, 0x62, 0xfe,
  1422. 0x14, 0x0f, 0x6a, 0x5b, 0xcd, 0xc5, 0x12, 0x6b, 0x99, 0x57, 0x3d, 0x01, 0x1b, 0x98, 0xf9, 0x38,
  1423. 0x0a, 0x43, 0xe2, 0xe3, 0xfe, 0x11, 0x73, 0x29, 0xee, 0xcb, 0x46, 0xad, 0x9a, 0x30, 0xcd, 0x66,
  1424. 0x63, 0x6f, 0x56, 0xf0, 0x79, 0x51, 0xd0, 0x9a, 0x07, 0xa9, 0xbf, 0x80, 0x22, 0x8f, 0x78, 0x40,
  1425. 0x7c, 0xa7, 0x92, 0xab, 0x2b, 0x8d, 0x92, 0x59, 0x8e, 0x07, 0xb5, 0x62, 0x73, 0x18, 0xb2, 0x46,
  1426. 0xff, 0x54, 0x04, 0xca, 0xa7, 0xcc, 0x3e, 0x26, 0x5e, 0xe0, 0x22, 0x41, 0x2a, 0x79, 0xd9, 0xc3,
  1427. 0xdf, 0xae, 0x29, 0xf4, 0xc1, 0x44, 0x2d, 0xe7, 0xee, 0xfb, 0x34, 0xd5, 0xf2, 0xd4, 0x0f, 0x6b,
  1428. 0x9a, 0xa9, 0x3e, 0x07, 0x55, 0x1e, 0x61, 0x4c, 0x38, 0x6f, 0x45, 0xee, 0x01, 0xb3, 0xf9, 0x3e,
  1429. 0xe5, 0x82, 0x85, 0xfd, 0x43, 0xea, 0x51, 0x51, 0x29, 0xd4, 0x95, 0x46, 0xde, 0xd4, 0xe2, 0x41,
  1430. 0xad, 0xda, 0x5c, 0xaa, 0xb2, 0xae, 0x21, 0xa8, 0x16, 0xd8, 0x6c, 0x21, 0xea, 0x12, 0x67, 0x8e,
  1431. 0x5d, 0x94, 0xec, 0x6a, 0x3c, 0xa8, 0x6d, 0xde, 0x5b, 0xa8, 0xb0, 0x96, 0x38, 0xf5, 0x0f, 0x0a,
  1432. 0x58, 0xbb, 0x72, 0x23, 0xd4, 0x87, 0xa0, 0x80, 0xb0, 0xa0, 0xbd, 0x64, 0x60, 0x92, 0x61, 0xdc,
  1433. 0x9e, 0xae, 0x51, 0xf2, 0xae, 0x4d, 0xee, 0xb8, 0x45, 0x5a, 0x24, 0x69, 0x05, 0x99, 0x5c, 0xa3,
  1434. 0xff, 0xa4, 0xd5, 0x4a, 0x11, 0xaa, 0x0b, 0xd6, 0x5d, 0xc4, 0xc5, 0x68, 0xd6, 0x8e, 0xa9, 0x47,
  1435. 0x64, 0x97, 0xae, 0x96, 0xfe, 0x9a, 0xeb, 0x93, 0x38, 0xcc, 0x1f, 0xe2, 0x41, 0x6d, 0xfd, 0x70,
  1436. 0x86, 0x63, 0xcd, 0x91, 0xf5, 0xf7, 0x0a, 0x98, 0xee, 0xce, 0x1d, 0x3c, 0x61, 0x4f, 0x41, 0x49,
  1437. 0x8c, 0x46, 0x2a, 0xfb, 0xd5, 0x23, 0x35, 0xbe, 0x8b, 0xe3, 0x79, 0x1a, 0xd3, 0xf4, 0xb7, 0x0a,
  1438. 0xf8, 0x6e, 0x46, 0x7f, 0x07, 0xe7, 0xf9, 0xf7, 0xca, 0x93, 0xfc, 0xf3, 0x82, 0xb3, 0xc8, 0x53,
  1439. 0x2c, 0x7b, 0x88, 0x4d, 0x78, 0x76, 0xa9, 0x65, 0xce, 0x2f, 0xb5, 0xcc, 0xc5, 0xa5, 0x96, 0x79,
  1440. 0x19, 0x6b, 0xca, 0x59, 0xac, 0x29, 0xe7, 0xb1, 0xa6, 0x5c, 0xc4, 0x9a, 0xf2, 0x31, 0xd6, 0x94,
  1441. 0xd7, 0x9f, 0xb4, 0xcc, 0xb3, 0xd2, 0xa8, 0x22, 0x5f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x20, 0x1c,
  1442. 0xcf, 0x94, 0xe7, 0x07, 0x00, 0x00,
  1443. }