generated.pb.go 38 KB

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