generated.pb.go 40 KB

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