generated.pb.go 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089
  1. /*
  2. Copyright 2016 The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-gogo.
  14. // source: k8s.io/kubernetes/pkg/apis/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. LabelSelector
  27. LabelSelectorRequirement
  28. */
  29. package v1
  30. import proto "github.com/gogo/protobuf/proto"
  31. import fmt "fmt"
  32. import math "math"
  33. import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
  34. import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1"
  35. import strings "strings"
  36. import reflect "reflect"
  37. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  38. import io "io"
  39. // Reference imports to suppress errors if they are not otherwise used.
  40. var _ = proto.Marshal
  41. var _ = fmt.Errorf
  42. var _ = math.Inf
  43. // This is a compile-time assertion to ensure that this generated file
  44. // is compatible with the proto package it is being compiled against.
  45. const _ = proto.GoGoProtoPackageIsVersion1
  46. func (m *Job) Reset() { *m = Job{} }
  47. func (*Job) ProtoMessage() {}
  48. func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  49. func (m *JobCondition) Reset() { *m = JobCondition{} }
  50. func (*JobCondition) ProtoMessage() {}
  51. func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  52. func (m *JobList) Reset() { *m = JobList{} }
  53. func (*JobList) ProtoMessage() {}
  54. func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  55. func (m *JobSpec) Reset() { *m = JobSpec{} }
  56. func (*JobSpec) ProtoMessage() {}
  57. func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  58. func (m *JobStatus) Reset() { *m = JobStatus{} }
  59. func (*JobStatus) ProtoMessage() {}
  60. func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
  61. func (m *LabelSelector) Reset() { *m = LabelSelector{} }
  62. func (*LabelSelector) ProtoMessage() {}
  63. func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  64. func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} }
  65. func (*LabelSelectorRequirement) ProtoMessage() {}
  66. func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {
  67. return fileDescriptorGenerated, []int{6}
  68. }
  69. func init() {
  70. proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.Job")
  71. proto.RegisterType((*JobCondition)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobCondition")
  72. proto.RegisterType((*JobList)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobList")
  73. proto.RegisterType((*JobSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobSpec")
  74. proto.RegisterType((*JobStatus)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobStatus")
  75. proto.RegisterType((*LabelSelector)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.LabelSelector")
  76. proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.LabelSelectorRequirement")
  77. }
  78. func (m *Job) Marshal() (data []byte, err error) {
  79. size := m.Size()
  80. data = make([]byte, size)
  81. n, err := m.MarshalTo(data)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return data[:n], nil
  86. }
  87. func (m *Job) MarshalTo(data []byte) (int, error) {
  88. var i int
  89. _ = i
  90. var l int
  91. _ = l
  92. data[i] = 0xa
  93. i++
  94. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  95. n1, err := m.ObjectMeta.MarshalTo(data[i:])
  96. if err != nil {
  97. return 0, err
  98. }
  99. i += n1
  100. data[i] = 0x12
  101. i++
  102. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  103. n2, err := m.Spec.MarshalTo(data[i:])
  104. if err != nil {
  105. return 0, err
  106. }
  107. i += n2
  108. data[i] = 0x1a
  109. i++
  110. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  111. n3, err := m.Status.MarshalTo(data[i:])
  112. if err != nil {
  113. return 0, err
  114. }
  115. i += n3
  116. return i, nil
  117. }
  118. func (m *JobCondition) Marshal() (data []byte, err error) {
  119. size := m.Size()
  120. data = make([]byte, size)
  121. n, err := m.MarshalTo(data)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return data[:n], nil
  126. }
  127. func (m *JobCondition) MarshalTo(data []byte) (int, error) {
  128. var i int
  129. _ = i
  130. var l int
  131. _ = l
  132. data[i] = 0xa
  133. i++
  134. i = encodeVarintGenerated(data, i, uint64(len(m.Type)))
  135. i += copy(data[i:], m.Type)
  136. data[i] = 0x12
  137. i++
  138. i = encodeVarintGenerated(data, i, uint64(len(m.Status)))
  139. i += copy(data[i:], m.Status)
  140. data[i] = 0x1a
  141. i++
  142. i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size()))
  143. n4, err := m.LastProbeTime.MarshalTo(data[i:])
  144. if err != nil {
  145. return 0, err
  146. }
  147. i += n4
  148. data[i] = 0x22
  149. i++
  150. i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size()))
  151. n5, err := m.LastTransitionTime.MarshalTo(data[i:])
  152. if err != nil {
  153. return 0, err
  154. }
  155. i += n5
  156. data[i] = 0x2a
  157. i++
  158. i = encodeVarintGenerated(data, i, uint64(len(m.Reason)))
  159. i += copy(data[i:], m.Reason)
  160. data[i] = 0x32
  161. i++
  162. i = encodeVarintGenerated(data, i, uint64(len(m.Message)))
  163. i += copy(data[i:], m.Message)
  164. return i, nil
  165. }
  166. func (m *JobList) Marshal() (data []byte, err error) {
  167. size := m.Size()
  168. data = make([]byte, size)
  169. n, err := m.MarshalTo(data)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return data[:n], nil
  174. }
  175. func (m *JobList) MarshalTo(data []byte) (int, error) {
  176. var i int
  177. _ = i
  178. var l int
  179. _ = l
  180. data[i] = 0xa
  181. i++
  182. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  183. n6, err := m.ListMeta.MarshalTo(data[i:])
  184. if err != nil {
  185. return 0, err
  186. }
  187. i += n6
  188. if len(m.Items) > 0 {
  189. for _, msg := range m.Items {
  190. data[i] = 0x12
  191. i++
  192. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  193. n, err := msg.MarshalTo(data[i:])
  194. if err != nil {
  195. return 0, err
  196. }
  197. i += n
  198. }
  199. }
  200. return i, nil
  201. }
  202. func (m *JobSpec) Marshal() (data []byte, err error) {
  203. size := m.Size()
  204. data = make([]byte, size)
  205. n, err := m.MarshalTo(data)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return data[:n], nil
  210. }
  211. func (m *JobSpec) MarshalTo(data []byte) (int, error) {
  212. var i int
  213. _ = i
  214. var l int
  215. _ = l
  216. if m.Parallelism != nil {
  217. data[i] = 0x8
  218. i++
  219. i = encodeVarintGenerated(data, i, uint64(*m.Parallelism))
  220. }
  221. if m.Completions != nil {
  222. data[i] = 0x10
  223. i++
  224. i = encodeVarintGenerated(data, i, uint64(*m.Completions))
  225. }
  226. if m.ActiveDeadlineSeconds != nil {
  227. data[i] = 0x18
  228. i++
  229. i = encodeVarintGenerated(data, i, uint64(*m.ActiveDeadlineSeconds))
  230. }
  231. if m.Selector != nil {
  232. data[i] = 0x22
  233. i++
  234. i = encodeVarintGenerated(data, i, uint64(m.Selector.Size()))
  235. n7, err := m.Selector.MarshalTo(data[i:])
  236. if err != nil {
  237. return 0, err
  238. }
  239. i += n7
  240. }
  241. if m.ManualSelector != nil {
  242. data[i] = 0x28
  243. i++
  244. if *m.ManualSelector {
  245. data[i] = 1
  246. } else {
  247. data[i] = 0
  248. }
  249. i++
  250. }
  251. data[i] = 0x32
  252. i++
  253. i = encodeVarintGenerated(data, i, uint64(m.Template.Size()))
  254. n8, err := m.Template.MarshalTo(data[i:])
  255. if err != nil {
  256. return 0, err
  257. }
  258. i += n8
  259. return i, nil
  260. }
  261. func (m *JobStatus) Marshal() (data []byte, err error) {
  262. size := m.Size()
  263. data = make([]byte, size)
  264. n, err := m.MarshalTo(data)
  265. if err != nil {
  266. return nil, err
  267. }
  268. return data[:n], nil
  269. }
  270. func (m *JobStatus) MarshalTo(data []byte) (int, error) {
  271. var i int
  272. _ = i
  273. var l int
  274. _ = l
  275. if len(m.Conditions) > 0 {
  276. for _, msg := range m.Conditions {
  277. data[i] = 0xa
  278. i++
  279. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  280. n, err := msg.MarshalTo(data[i:])
  281. if err != nil {
  282. return 0, err
  283. }
  284. i += n
  285. }
  286. }
  287. if m.StartTime != nil {
  288. data[i] = 0x12
  289. i++
  290. i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size()))
  291. n9, err := m.StartTime.MarshalTo(data[i:])
  292. if err != nil {
  293. return 0, err
  294. }
  295. i += n9
  296. }
  297. if m.CompletionTime != nil {
  298. data[i] = 0x1a
  299. i++
  300. i = encodeVarintGenerated(data, i, uint64(m.CompletionTime.Size()))
  301. n10, err := m.CompletionTime.MarshalTo(data[i:])
  302. if err != nil {
  303. return 0, err
  304. }
  305. i += n10
  306. }
  307. data[i] = 0x20
  308. i++
  309. i = encodeVarintGenerated(data, i, uint64(m.Active))
  310. data[i] = 0x28
  311. i++
  312. i = encodeVarintGenerated(data, i, uint64(m.Succeeded))
  313. data[i] = 0x30
  314. i++
  315. i = encodeVarintGenerated(data, i, uint64(m.Failed))
  316. return i, nil
  317. }
  318. func (m *LabelSelector) Marshal() (data []byte, err error) {
  319. size := m.Size()
  320. data = make([]byte, size)
  321. n, err := m.MarshalTo(data)
  322. if err != nil {
  323. return nil, err
  324. }
  325. return data[:n], nil
  326. }
  327. func (m *LabelSelector) MarshalTo(data []byte) (int, error) {
  328. var i int
  329. _ = i
  330. var l int
  331. _ = l
  332. if len(m.MatchLabels) > 0 {
  333. for k := range m.MatchLabels {
  334. data[i] = 0xa
  335. i++
  336. v := m.MatchLabels[k]
  337. mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
  338. i = encodeVarintGenerated(data, i, uint64(mapSize))
  339. data[i] = 0xa
  340. i++
  341. i = encodeVarintGenerated(data, i, uint64(len(k)))
  342. i += copy(data[i:], k)
  343. data[i] = 0x12
  344. i++
  345. i = encodeVarintGenerated(data, i, uint64(len(v)))
  346. i += copy(data[i:], v)
  347. }
  348. }
  349. if len(m.MatchExpressions) > 0 {
  350. for _, msg := range m.MatchExpressions {
  351. data[i] = 0x12
  352. i++
  353. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  354. n, err := msg.MarshalTo(data[i:])
  355. if err != nil {
  356. return 0, err
  357. }
  358. i += n
  359. }
  360. }
  361. return i, nil
  362. }
  363. func (m *LabelSelectorRequirement) Marshal() (data []byte, err error) {
  364. size := m.Size()
  365. data = make([]byte, size)
  366. n, err := m.MarshalTo(data)
  367. if err != nil {
  368. return nil, err
  369. }
  370. return data[:n], nil
  371. }
  372. func (m *LabelSelectorRequirement) MarshalTo(data []byte) (int, error) {
  373. var i int
  374. _ = i
  375. var l int
  376. _ = l
  377. data[i] = 0xa
  378. i++
  379. i = encodeVarintGenerated(data, i, uint64(len(m.Key)))
  380. i += copy(data[i:], m.Key)
  381. data[i] = 0x12
  382. i++
  383. i = encodeVarintGenerated(data, i, uint64(len(m.Operator)))
  384. i += copy(data[i:], m.Operator)
  385. if len(m.Values) > 0 {
  386. for _, s := range m.Values {
  387. data[i] = 0x1a
  388. i++
  389. l = len(s)
  390. for l >= 1<<7 {
  391. data[i] = uint8(uint64(l)&0x7f | 0x80)
  392. l >>= 7
  393. i++
  394. }
  395. data[i] = uint8(l)
  396. i++
  397. i += copy(data[i:], s)
  398. }
  399. }
  400. return i, nil
  401. }
  402. func encodeFixed64Generated(data []byte, offset int, v uint64) int {
  403. data[offset] = uint8(v)
  404. data[offset+1] = uint8(v >> 8)
  405. data[offset+2] = uint8(v >> 16)
  406. data[offset+3] = uint8(v >> 24)
  407. data[offset+4] = uint8(v >> 32)
  408. data[offset+5] = uint8(v >> 40)
  409. data[offset+6] = uint8(v >> 48)
  410. data[offset+7] = uint8(v >> 56)
  411. return offset + 8
  412. }
  413. func encodeFixed32Generated(data []byte, offset int, v uint32) int {
  414. data[offset] = uint8(v)
  415. data[offset+1] = uint8(v >> 8)
  416. data[offset+2] = uint8(v >> 16)
  417. data[offset+3] = uint8(v >> 24)
  418. return offset + 4
  419. }
  420. func encodeVarintGenerated(data []byte, offset int, v uint64) int {
  421. for v >= 1<<7 {
  422. data[offset] = uint8(v&0x7f | 0x80)
  423. v >>= 7
  424. offset++
  425. }
  426. data[offset] = uint8(v)
  427. return offset + 1
  428. }
  429. func (m *Job) Size() (n int) {
  430. var l int
  431. _ = l
  432. l = m.ObjectMeta.Size()
  433. n += 1 + l + sovGenerated(uint64(l))
  434. l = m.Spec.Size()
  435. n += 1 + l + sovGenerated(uint64(l))
  436. l = m.Status.Size()
  437. n += 1 + l + sovGenerated(uint64(l))
  438. return n
  439. }
  440. func (m *JobCondition) Size() (n int) {
  441. var l int
  442. _ = l
  443. l = len(m.Type)
  444. n += 1 + l + sovGenerated(uint64(l))
  445. l = len(m.Status)
  446. n += 1 + l + sovGenerated(uint64(l))
  447. l = m.LastProbeTime.Size()
  448. n += 1 + l + sovGenerated(uint64(l))
  449. l = m.LastTransitionTime.Size()
  450. n += 1 + l + sovGenerated(uint64(l))
  451. l = len(m.Reason)
  452. n += 1 + l + sovGenerated(uint64(l))
  453. l = len(m.Message)
  454. n += 1 + l + sovGenerated(uint64(l))
  455. return n
  456. }
  457. func (m *JobList) Size() (n int) {
  458. var l int
  459. _ = l
  460. l = m.ListMeta.Size()
  461. n += 1 + l + sovGenerated(uint64(l))
  462. if len(m.Items) > 0 {
  463. for _, e := range m.Items {
  464. l = e.Size()
  465. n += 1 + l + sovGenerated(uint64(l))
  466. }
  467. }
  468. return n
  469. }
  470. func (m *JobSpec) Size() (n int) {
  471. var l int
  472. _ = l
  473. if m.Parallelism != nil {
  474. n += 1 + sovGenerated(uint64(*m.Parallelism))
  475. }
  476. if m.Completions != nil {
  477. n += 1 + sovGenerated(uint64(*m.Completions))
  478. }
  479. if m.ActiveDeadlineSeconds != nil {
  480. n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds))
  481. }
  482. if m.Selector != nil {
  483. l = m.Selector.Size()
  484. n += 1 + l + sovGenerated(uint64(l))
  485. }
  486. if m.ManualSelector != nil {
  487. n += 2
  488. }
  489. l = m.Template.Size()
  490. n += 1 + l + sovGenerated(uint64(l))
  491. return n
  492. }
  493. func (m *JobStatus) Size() (n int) {
  494. var l int
  495. _ = l
  496. if len(m.Conditions) > 0 {
  497. for _, e := range m.Conditions {
  498. l = e.Size()
  499. n += 1 + l + sovGenerated(uint64(l))
  500. }
  501. }
  502. if m.StartTime != nil {
  503. l = m.StartTime.Size()
  504. n += 1 + l + sovGenerated(uint64(l))
  505. }
  506. if m.CompletionTime != nil {
  507. l = m.CompletionTime.Size()
  508. n += 1 + l + sovGenerated(uint64(l))
  509. }
  510. n += 1 + sovGenerated(uint64(m.Active))
  511. n += 1 + sovGenerated(uint64(m.Succeeded))
  512. n += 1 + sovGenerated(uint64(m.Failed))
  513. return n
  514. }
  515. func (m *LabelSelector) Size() (n int) {
  516. var l int
  517. _ = l
  518. if len(m.MatchLabels) > 0 {
  519. for k, v := range m.MatchLabels {
  520. _ = k
  521. _ = v
  522. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
  523. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  524. }
  525. }
  526. if len(m.MatchExpressions) > 0 {
  527. for _, e := range m.MatchExpressions {
  528. l = e.Size()
  529. n += 1 + l + sovGenerated(uint64(l))
  530. }
  531. }
  532. return n
  533. }
  534. func (m *LabelSelectorRequirement) Size() (n int) {
  535. var l int
  536. _ = l
  537. l = len(m.Key)
  538. n += 1 + l + sovGenerated(uint64(l))
  539. l = len(m.Operator)
  540. n += 1 + l + sovGenerated(uint64(l))
  541. if len(m.Values) > 0 {
  542. for _, s := range m.Values {
  543. l = len(s)
  544. n += 1 + l + sovGenerated(uint64(l))
  545. }
  546. }
  547. return n
  548. }
  549. func sovGenerated(x uint64) (n int) {
  550. for {
  551. n++
  552. x >>= 7
  553. if x == 0 {
  554. break
  555. }
  556. }
  557. return n
  558. }
  559. func sozGenerated(x uint64) (n int) {
  560. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  561. }
  562. func (this *Job) String() string {
  563. if this == nil {
  564. return "nil"
  565. }
  566. s := strings.Join([]string{`&Job{`,
  567. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  568. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
  569. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`,
  570. `}`,
  571. }, "")
  572. return s
  573. }
  574. func (this *JobCondition) String() string {
  575. if this == nil {
  576. return "nil"
  577. }
  578. s := strings.Join([]string{`&JobCondition{`,
  579. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  580. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  581. `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`,
  582. `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`,
  583. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  584. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  585. `}`,
  586. }, "")
  587. return s
  588. }
  589. func (this *JobList) String() string {
  590. if this == nil {
  591. return "nil"
  592. }
  593. s := strings.Join([]string{`&JobList{`,
  594. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
  595. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`,
  596. `}`,
  597. }, "")
  598. return s
  599. }
  600. func (this *JobSpec) String() string {
  601. if this == nil {
  602. return "nil"
  603. }
  604. s := strings.Join([]string{`&JobSpec{`,
  605. `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`,
  606. `Completions:` + valueToStringGenerated(this.Completions) + `,`,
  607. `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`,
  608. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`,
  609. `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`,
  610. `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  611. `}`,
  612. }, "")
  613. return s
  614. }
  615. func (this *JobStatus) String() string {
  616. if this == nil {
  617. return "nil"
  618. }
  619. s := strings.Join([]string{`&JobStatus{`,
  620. `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`,
  621. `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`,
  622. `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`,
  623. `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
  624. `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`,
  625. `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`,
  626. `}`,
  627. }, "")
  628. return s
  629. }
  630. func (this *LabelSelector) String() string {
  631. if this == nil {
  632. return "nil"
  633. }
  634. keysForMatchLabels := make([]string, 0, len(this.MatchLabels))
  635. for k := range this.MatchLabels {
  636. keysForMatchLabels = append(keysForMatchLabels, k)
  637. }
  638. github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels)
  639. mapStringForMatchLabels := "map[string]string{"
  640. for _, k := range keysForMatchLabels {
  641. mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k])
  642. }
  643. mapStringForMatchLabels += "}"
  644. s := strings.Join([]string{`&LabelSelector{`,
  645. `MatchLabels:` + mapStringForMatchLabels + `,`,
  646. `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`,
  647. `}`,
  648. }, "")
  649. return s
  650. }
  651. func (this *LabelSelectorRequirement) String() string {
  652. if this == nil {
  653. return "nil"
  654. }
  655. s := strings.Join([]string{`&LabelSelectorRequirement{`,
  656. `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  657. `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`,
  658. `Values:` + fmt.Sprintf("%v", this.Values) + `,`,
  659. `}`,
  660. }, "")
  661. return s
  662. }
  663. func valueToStringGenerated(v interface{}) string {
  664. rv := reflect.ValueOf(v)
  665. if rv.IsNil() {
  666. return "nil"
  667. }
  668. pv := reflect.Indirect(rv).Interface()
  669. return fmt.Sprintf("*%v", pv)
  670. }
  671. func (m *Job) Unmarshal(data []byte) error {
  672. l := len(data)
  673. iNdEx := 0
  674. for iNdEx < l {
  675. preIndex := iNdEx
  676. var wire uint64
  677. for shift := uint(0); ; shift += 7 {
  678. if shift >= 64 {
  679. return ErrIntOverflowGenerated
  680. }
  681. if iNdEx >= l {
  682. return io.ErrUnexpectedEOF
  683. }
  684. b := data[iNdEx]
  685. iNdEx++
  686. wire |= (uint64(b) & 0x7F) << shift
  687. if b < 0x80 {
  688. break
  689. }
  690. }
  691. fieldNum := int32(wire >> 3)
  692. wireType := int(wire & 0x7)
  693. if wireType == 4 {
  694. return fmt.Errorf("proto: Job: wiretype end group for non-group")
  695. }
  696. if fieldNum <= 0 {
  697. return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire)
  698. }
  699. switch fieldNum {
  700. case 1:
  701. if wireType != 2 {
  702. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  703. }
  704. var msglen int
  705. for shift := uint(0); ; shift += 7 {
  706. if shift >= 64 {
  707. return ErrIntOverflowGenerated
  708. }
  709. if iNdEx >= l {
  710. return io.ErrUnexpectedEOF
  711. }
  712. b := data[iNdEx]
  713. iNdEx++
  714. msglen |= (int(b) & 0x7F) << shift
  715. if b < 0x80 {
  716. break
  717. }
  718. }
  719. if msglen < 0 {
  720. return ErrInvalidLengthGenerated
  721. }
  722. postIndex := iNdEx + msglen
  723. if postIndex > l {
  724. return io.ErrUnexpectedEOF
  725. }
  726. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  727. return err
  728. }
  729. iNdEx = postIndex
  730. case 2:
  731. if wireType != 2 {
  732. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  733. }
  734. var msglen int
  735. for shift := uint(0); ; shift += 7 {
  736. if shift >= 64 {
  737. return ErrIntOverflowGenerated
  738. }
  739. if iNdEx >= l {
  740. return io.ErrUnexpectedEOF
  741. }
  742. b := data[iNdEx]
  743. iNdEx++
  744. msglen |= (int(b) & 0x7F) << shift
  745. if b < 0x80 {
  746. break
  747. }
  748. }
  749. if msglen < 0 {
  750. return ErrInvalidLengthGenerated
  751. }
  752. postIndex := iNdEx + msglen
  753. if postIndex > l {
  754. return io.ErrUnexpectedEOF
  755. }
  756. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  757. return err
  758. }
  759. iNdEx = postIndex
  760. case 3:
  761. if wireType != 2 {
  762. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  763. }
  764. var msglen int
  765. for shift := uint(0); ; shift += 7 {
  766. if shift >= 64 {
  767. return ErrIntOverflowGenerated
  768. }
  769. if iNdEx >= l {
  770. return io.ErrUnexpectedEOF
  771. }
  772. b := data[iNdEx]
  773. iNdEx++
  774. msglen |= (int(b) & 0x7F) << shift
  775. if b < 0x80 {
  776. break
  777. }
  778. }
  779. if msglen < 0 {
  780. return ErrInvalidLengthGenerated
  781. }
  782. postIndex := iNdEx + msglen
  783. if postIndex > l {
  784. return io.ErrUnexpectedEOF
  785. }
  786. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  787. return err
  788. }
  789. iNdEx = postIndex
  790. default:
  791. iNdEx = preIndex
  792. skippy, err := skipGenerated(data[iNdEx:])
  793. if err != nil {
  794. return err
  795. }
  796. if skippy < 0 {
  797. return ErrInvalidLengthGenerated
  798. }
  799. if (iNdEx + skippy) > l {
  800. return io.ErrUnexpectedEOF
  801. }
  802. iNdEx += skippy
  803. }
  804. }
  805. if iNdEx > l {
  806. return io.ErrUnexpectedEOF
  807. }
  808. return nil
  809. }
  810. func (m *JobCondition) Unmarshal(data []byte) error {
  811. l := len(data)
  812. iNdEx := 0
  813. for iNdEx < l {
  814. preIndex := iNdEx
  815. var wire uint64
  816. for shift := uint(0); ; shift += 7 {
  817. if shift >= 64 {
  818. return ErrIntOverflowGenerated
  819. }
  820. if iNdEx >= l {
  821. return io.ErrUnexpectedEOF
  822. }
  823. b := data[iNdEx]
  824. iNdEx++
  825. wire |= (uint64(b) & 0x7F) << shift
  826. if b < 0x80 {
  827. break
  828. }
  829. }
  830. fieldNum := int32(wire >> 3)
  831. wireType := int(wire & 0x7)
  832. if wireType == 4 {
  833. return fmt.Errorf("proto: JobCondition: wiretype end group for non-group")
  834. }
  835. if fieldNum <= 0 {
  836. return fmt.Errorf("proto: JobCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  837. }
  838. switch fieldNum {
  839. case 1:
  840. if wireType != 2 {
  841. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  842. }
  843. var stringLen uint64
  844. for shift := uint(0); ; shift += 7 {
  845. if shift >= 64 {
  846. return ErrIntOverflowGenerated
  847. }
  848. if iNdEx >= l {
  849. return io.ErrUnexpectedEOF
  850. }
  851. b := data[iNdEx]
  852. iNdEx++
  853. stringLen |= (uint64(b) & 0x7F) << shift
  854. if b < 0x80 {
  855. break
  856. }
  857. }
  858. intStringLen := int(stringLen)
  859. if intStringLen < 0 {
  860. return ErrInvalidLengthGenerated
  861. }
  862. postIndex := iNdEx + intStringLen
  863. if postIndex > l {
  864. return io.ErrUnexpectedEOF
  865. }
  866. m.Type = JobConditionType(data[iNdEx:postIndex])
  867. iNdEx = postIndex
  868. case 2:
  869. if wireType != 2 {
  870. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  871. }
  872. var stringLen uint64
  873. for shift := uint(0); ; shift += 7 {
  874. if shift >= 64 {
  875. return ErrIntOverflowGenerated
  876. }
  877. if iNdEx >= l {
  878. return io.ErrUnexpectedEOF
  879. }
  880. b := data[iNdEx]
  881. iNdEx++
  882. stringLen |= (uint64(b) & 0x7F) << shift
  883. if b < 0x80 {
  884. break
  885. }
  886. }
  887. intStringLen := int(stringLen)
  888. if intStringLen < 0 {
  889. return ErrInvalidLengthGenerated
  890. }
  891. postIndex := iNdEx + intStringLen
  892. if postIndex > l {
  893. return io.ErrUnexpectedEOF
  894. }
  895. m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(data[iNdEx:postIndex])
  896. iNdEx = postIndex
  897. case 3:
  898. if wireType != 2 {
  899. return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType)
  900. }
  901. var msglen int
  902. for shift := uint(0); ; shift += 7 {
  903. if shift >= 64 {
  904. return ErrIntOverflowGenerated
  905. }
  906. if iNdEx >= l {
  907. return io.ErrUnexpectedEOF
  908. }
  909. b := data[iNdEx]
  910. iNdEx++
  911. msglen |= (int(b) & 0x7F) << shift
  912. if b < 0x80 {
  913. break
  914. }
  915. }
  916. if msglen < 0 {
  917. return ErrInvalidLengthGenerated
  918. }
  919. postIndex := iNdEx + msglen
  920. if postIndex > l {
  921. return io.ErrUnexpectedEOF
  922. }
  923. if err := m.LastProbeTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  924. return err
  925. }
  926. iNdEx = postIndex
  927. case 4:
  928. if wireType != 2 {
  929. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  930. }
  931. var msglen int
  932. for shift := uint(0); ; shift += 7 {
  933. if shift >= 64 {
  934. return ErrIntOverflowGenerated
  935. }
  936. if iNdEx >= l {
  937. return io.ErrUnexpectedEOF
  938. }
  939. b := data[iNdEx]
  940. iNdEx++
  941. msglen |= (int(b) & 0x7F) << shift
  942. if b < 0x80 {
  943. break
  944. }
  945. }
  946. if msglen < 0 {
  947. return ErrInvalidLengthGenerated
  948. }
  949. postIndex := iNdEx + msglen
  950. if postIndex > l {
  951. return io.ErrUnexpectedEOF
  952. }
  953. if err := m.LastTransitionTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  954. return err
  955. }
  956. iNdEx = postIndex
  957. case 5:
  958. if wireType != 2 {
  959. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  960. }
  961. var stringLen uint64
  962. for shift := uint(0); ; shift += 7 {
  963. if shift >= 64 {
  964. return ErrIntOverflowGenerated
  965. }
  966. if iNdEx >= l {
  967. return io.ErrUnexpectedEOF
  968. }
  969. b := data[iNdEx]
  970. iNdEx++
  971. stringLen |= (uint64(b) & 0x7F) << shift
  972. if b < 0x80 {
  973. break
  974. }
  975. }
  976. intStringLen := int(stringLen)
  977. if intStringLen < 0 {
  978. return ErrInvalidLengthGenerated
  979. }
  980. postIndex := iNdEx + intStringLen
  981. if postIndex > l {
  982. return io.ErrUnexpectedEOF
  983. }
  984. m.Reason = string(data[iNdEx:postIndex])
  985. iNdEx = postIndex
  986. case 6:
  987. if wireType != 2 {
  988. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  989. }
  990. var stringLen uint64
  991. for shift := uint(0); ; shift += 7 {
  992. if shift >= 64 {
  993. return ErrIntOverflowGenerated
  994. }
  995. if iNdEx >= l {
  996. return io.ErrUnexpectedEOF
  997. }
  998. b := data[iNdEx]
  999. iNdEx++
  1000. stringLen |= (uint64(b) & 0x7F) << shift
  1001. if b < 0x80 {
  1002. break
  1003. }
  1004. }
  1005. intStringLen := int(stringLen)
  1006. if intStringLen < 0 {
  1007. return ErrInvalidLengthGenerated
  1008. }
  1009. postIndex := iNdEx + intStringLen
  1010. if postIndex > l {
  1011. return io.ErrUnexpectedEOF
  1012. }
  1013. m.Message = string(data[iNdEx:postIndex])
  1014. iNdEx = postIndex
  1015. default:
  1016. iNdEx = preIndex
  1017. skippy, err := skipGenerated(data[iNdEx:])
  1018. if err != nil {
  1019. return err
  1020. }
  1021. if skippy < 0 {
  1022. return ErrInvalidLengthGenerated
  1023. }
  1024. if (iNdEx + skippy) > l {
  1025. return io.ErrUnexpectedEOF
  1026. }
  1027. iNdEx += skippy
  1028. }
  1029. }
  1030. if iNdEx > l {
  1031. return io.ErrUnexpectedEOF
  1032. }
  1033. return nil
  1034. }
  1035. func (m *JobList) Unmarshal(data []byte) error {
  1036. l := len(data)
  1037. iNdEx := 0
  1038. for iNdEx < l {
  1039. preIndex := iNdEx
  1040. var wire uint64
  1041. for shift := uint(0); ; shift += 7 {
  1042. if shift >= 64 {
  1043. return ErrIntOverflowGenerated
  1044. }
  1045. if iNdEx >= l {
  1046. return io.ErrUnexpectedEOF
  1047. }
  1048. b := data[iNdEx]
  1049. iNdEx++
  1050. wire |= (uint64(b) & 0x7F) << shift
  1051. if b < 0x80 {
  1052. break
  1053. }
  1054. }
  1055. fieldNum := int32(wire >> 3)
  1056. wireType := int(wire & 0x7)
  1057. if wireType == 4 {
  1058. return fmt.Errorf("proto: JobList: wiretype end group for non-group")
  1059. }
  1060. if fieldNum <= 0 {
  1061. return fmt.Errorf("proto: JobList: illegal tag %d (wire type %d)", fieldNum, wire)
  1062. }
  1063. switch fieldNum {
  1064. case 1:
  1065. if wireType != 2 {
  1066. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  1067. }
  1068. var msglen int
  1069. for shift := uint(0); ; shift += 7 {
  1070. if shift >= 64 {
  1071. return ErrIntOverflowGenerated
  1072. }
  1073. if iNdEx >= l {
  1074. return io.ErrUnexpectedEOF
  1075. }
  1076. b := data[iNdEx]
  1077. iNdEx++
  1078. msglen |= (int(b) & 0x7F) << shift
  1079. if b < 0x80 {
  1080. break
  1081. }
  1082. }
  1083. if msglen < 0 {
  1084. return ErrInvalidLengthGenerated
  1085. }
  1086. postIndex := iNdEx + msglen
  1087. if postIndex > l {
  1088. return io.ErrUnexpectedEOF
  1089. }
  1090. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1091. return err
  1092. }
  1093. iNdEx = postIndex
  1094. case 2:
  1095. if wireType != 2 {
  1096. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1097. }
  1098. var msglen int
  1099. for shift := uint(0); ; shift += 7 {
  1100. if shift >= 64 {
  1101. return ErrIntOverflowGenerated
  1102. }
  1103. if iNdEx >= l {
  1104. return io.ErrUnexpectedEOF
  1105. }
  1106. b := data[iNdEx]
  1107. iNdEx++
  1108. msglen |= (int(b) & 0x7F) << shift
  1109. if b < 0x80 {
  1110. break
  1111. }
  1112. }
  1113. if msglen < 0 {
  1114. return ErrInvalidLengthGenerated
  1115. }
  1116. postIndex := iNdEx + msglen
  1117. if postIndex > l {
  1118. return io.ErrUnexpectedEOF
  1119. }
  1120. m.Items = append(m.Items, Job{})
  1121. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1122. return err
  1123. }
  1124. iNdEx = postIndex
  1125. default:
  1126. iNdEx = preIndex
  1127. skippy, err := skipGenerated(data[iNdEx:])
  1128. if err != nil {
  1129. return err
  1130. }
  1131. if skippy < 0 {
  1132. return ErrInvalidLengthGenerated
  1133. }
  1134. if (iNdEx + skippy) > l {
  1135. return io.ErrUnexpectedEOF
  1136. }
  1137. iNdEx += skippy
  1138. }
  1139. }
  1140. if iNdEx > l {
  1141. return io.ErrUnexpectedEOF
  1142. }
  1143. return nil
  1144. }
  1145. func (m *JobSpec) Unmarshal(data []byte) error {
  1146. l := len(data)
  1147. iNdEx := 0
  1148. for iNdEx < l {
  1149. preIndex := iNdEx
  1150. var wire uint64
  1151. for shift := uint(0); ; shift += 7 {
  1152. if shift >= 64 {
  1153. return ErrIntOverflowGenerated
  1154. }
  1155. if iNdEx >= l {
  1156. return io.ErrUnexpectedEOF
  1157. }
  1158. b := data[iNdEx]
  1159. iNdEx++
  1160. wire |= (uint64(b) & 0x7F) << shift
  1161. if b < 0x80 {
  1162. break
  1163. }
  1164. }
  1165. fieldNum := int32(wire >> 3)
  1166. wireType := int(wire & 0x7)
  1167. if wireType == 4 {
  1168. return fmt.Errorf("proto: JobSpec: wiretype end group for non-group")
  1169. }
  1170. if fieldNum <= 0 {
  1171. return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1172. }
  1173. switch fieldNum {
  1174. case 1:
  1175. if wireType != 0 {
  1176. return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType)
  1177. }
  1178. var v int32
  1179. for shift := uint(0); ; shift += 7 {
  1180. if shift >= 64 {
  1181. return ErrIntOverflowGenerated
  1182. }
  1183. if iNdEx >= l {
  1184. return io.ErrUnexpectedEOF
  1185. }
  1186. b := data[iNdEx]
  1187. iNdEx++
  1188. v |= (int32(b) & 0x7F) << shift
  1189. if b < 0x80 {
  1190. break
  1191. }
  1192. }
  1193. m.Parallelism = &v
  1194. case 2:
  1195. if wireType != 0 {
  1196. return fmt.Errorf("proto: wrong wireType = %d for field Completions", wireType)
  1197. }
  1198. var v int32
  1199. for shift := uint(0); ; shift += 7 {
  1200. if shift >= 64 {
  1201. return ErrIntOverflowGenerated
  1202. }
  1203. if iNdEx >= l {
  1204. return io.ErrUnexpectedEOF
  1205. }
  1206. b := data[iNdEx]
  1207. iNdEx++
  1208. v |= (int32(b) & 0x7F) << shift
  1209. if b < 0x80 {
  1210. break
  1211. }
  1212. }
  1213. m.Completions = &v
  1214. case 3:
  1215. if wireType != 0 {
  1216. return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType)
  1217. }
  1218. var v int64
  1219. for shift := uint(0); ; shift += 7 {
  1220. if shift >= 64 {
  1221. return ErrIntOverflowGenerated
  1222. }
  1223. if iNdEx >= l {
  1224. return io.ErrUnexpectedEOF
  1225. }
  1226. b := data[iNdEx]
  1227. iNdEx++
  1228. v |= (int64(b) & 0x7F) << shift
  1229. if b < 0x80 {
  1230. break
  1231. }
  1232. }
  1233. m.ActiveDeadlineSeconds = &v
  1234. case 4:
  1235. if wireType != 2 {
  1236. return fmt.Errorf("proto: wrong wireType = %d for field Selector", 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.Selector == nil {
  1261. m.Selector = &LabelSelector{}
  1262. }
  1263. if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1264. return err
  1265. }
  1266. iNdEx = postIndex
  1267. case 5:
  1268. if wireType != 0 {
  1269. return fmt.Errorf("proto: wrong wireType = %d for field ManualSelector", wireType)
  1270. }
  1271. var v 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. v |= (int(b) & 0x7F) << shift
  1282. if b < 0x80 {
  1283. break
  1284. }
  1285. }
  1286. b := bool(v != 0)
  1287. m.ManualSelector = &b
  1288. case 6:
  1289. if wireType != 2 {
  1290. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  1291. }
  1292. var msglen int
  1293. for shift := uint(0); ; shift += 7 {
  1294. if shift >= 64 {
  1295. return ErrIntOverflowGenerated
  1296. }
  1297. if iNdEx >= l {
  1298. return io.ErrUnexpectedEOF
  1299. }
  1300. b := data[iNdEx]
  1301. iNdEx++
  1302. msglen |= (int(b) & 0x7F) << shift
  1303. if b < 0x80 {
  1304. break
  1305. }
  1306. }
  1307. if msglen < 0 {
  1308. return ErrInvalidLengthGenerated
  1309. }
  1310. postIndex := iNdEx + msglen
  1311. if postIndex > l {
  1312. return io.ErrUnexpectedEOF
  1313. }
  1314. if err := m.Template.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1315. return err
  1316. }
  1317. iNdEx = postIndex
  1318. default:
  1319. iNdEx = preIndex
  1320. skippy, err := skipGenerated(data[iNdEx:])
  1321. if err != nil {
  1322. return err
  1323. }
  1324. if skippy < 0 {
  1325. return ErrInvalidLengthGenerated
  1326. }
  1327. if (iNdEx + skippy) > l {
  1328. return io.ErrUnexpectedEOF
  1329. }
  1330. iNdEx += skippy
  1331. }
  1332. }
  1333. if iNdEx > l {
  1334. return io.ErrUnexpectedEOF
  1335. }
  1336. return nil
  1337. }
  1338. func (m *JobStatus) Unmarshal(data []byte) error {
  1339. l := len(data)
  1340. iNdEx := 0
  1341. for iNdEx < l {
  1342. preIndex := iNdEx
  1343. var wire uint64
  1344. for shift := uint(0); ; shift += 7 {
  1345. if shift >= 64 {
  1346. return ErrIntOverflowGenerated
  1347. }
  1348. if iNdEx >= l {
  1349. return io.ErrUnexpectedEOF
  1350. }
  1351. b := data[iNdEx]
  1352. iNdEx++
  1353. wire |= (uint64(b) & 0x7F) << shift
  1354. if b < 0x80 {
  1355. break
  1356. }
  1357. }
  1358. fieldNum := int32(wire >> 3)
  1359. wireType := int(wire & 0x7)
  1360. if wireType == 4 {
  1361. return fmt.Errorf("proto: JobStatus: wiretype end group for non-group")
  1362. }
  1363. if fieldNum <= 0 {
  1364. return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1365. }
  1366. switch fieldNum {
  1367. case 1:
  1368. if wireType != 2 {
  1369. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  1370. }
  1371. var msglen int
  1372. for shift := uint(0); ; shift += 7 {
  1373. if shift >= 64 {
  1374. return ErrIntOverflowGenerated
  1375. }
  1376. if iNdEx >= l {
  1377. return io.ErrUnexpectedEOF
  1378. }
  1379. b := data[iNdEx]
  1380. iNdEx++
  1381. msglen |= (int(b) & 0x7F) << shift
  1382. if b < 0x80 {
  1383. break
  1384. }
  1385. }
  1386. if msglen < 0 {
  1387. return ErrInvalidLengthGenerated
  1388. }
  1389. postIndex := iNdEx + msglen
  1390. if postIndex > l {
  1391. return io.ErrUnexpectedEOF
  1392. }
  1393. m.Conditions = append(m.Conditions, JobCondition{})
  1394. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1395. return err
  1396. }
  1397. iNdEx = postIndex
  1398. case 2:
  1399. if wireType != 2 {
  1400. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  1401. }
  1402. var msglen int
  1403. for shift := uint(0); ; shift += 7 {
  1404. if shift >= 64 {
  1405. return ErrIntOverflowGenerated
  1406. }
  1407. if iNdEx >= l {
  1408. return io.ErrUnexpectedEOF
  1409. }
  1410. b := data[iNdEx]
  1411. iNdEx++
  1412. msglen |= (int(b) & 0x7F) << shift
  1413. if b < 0x80 {
  1414. break
  1415. }
  1416. }
  1417. if msglen < 0 {
  1418. return ErrInvalidLengthGenerated
  1419. }
  1420. postIndex := iNdEx + msglen
  1421. if postIndex > l {
  1422. return io.ErrUnexpectedEOF
  1423. }
  1424. if m.StartTime == nil {
  1425. m.StartTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
  1426. }
  1427. if err := m.StartTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1428. return err
  1429. }
  1430. iNdEx = postIndex
  1431. case 3:
  1432. if wireType != 2 {
  1433. return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType)
  1434. }
  1435. var msglen int
  1436. for shift := uint(0); ; shift += 7 {
  1437. if shift >= 64 {
  1438. return ErrIntOverflowGenerated
  1439. }
  1440. if iNdEx >= l {
  1441. return io.ErrUnexpectedEOF
  1442. }
  1443. b := data[iNdEx]
  1444. iNdEx++
  1445. msglen |= (int(b) & 0x7F) << shift
  1446. if b < 0x80 {
  1447. break
  1448. }
  1449. }
  1450. if msglen < 0 {
  1451. return ErrInvalidLengthGenerated
  1452. }
  1453. postIndex := iNdEx + msglen
  1454. if postIndex > l {
  1455. return io.ErrUnexpectedEOF
  1456. }
  1457. if m.CompletionTime == nil {
  1458. m.CompletionTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
  1459. }
  1460. if err := m.CompletionTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1461. return err
  1462. }
  1463. iNdEx = postIndex
  1464. case 4:
  1465. if wireType != 0 {
  1466. return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
  1467. }
  1468. m.Active = 0
  1469. for shift := uint(0); ; shift += 7 {
  1470. if shift >= 64 {
  1471. return ErrIntOverflowGenerated
  1472. }
  1473. if iNdEx >= l {
  1474. return io.ErrUnexpectedEOF
  1475. }
  1476. b := data[iNdEx]
  1477. iNdEx++
  1478. m.Active |= (int32(b) & 0x7F) << shift
  1479. if b < 0x80 {
  1480. break
  1481. }
  1482. }
  1483. case 5:
  1484. if wireType != 0 {
  1485. return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType)
  1486. }
  1487. m.Succeeded = 0
  1488. for shift := uint(0); ; shift += 7 {
  1489. if shift >= 64 {
  1490. return ErrIntOverflowGenerated
  1491. }
  1492. if iNdEx >= l {
  1493. return io.ErrUnexpectedEOF
  1494. }
  1495. b := data[iNdEx]
  1496. iNdEx++
  1497. m.Succeeded |= (int32(b) & 0x7F) << shift
  1498. if b < 0x80 {
  1499. break
  1500. }
  1501. }
  1502. case 6:
  1503. if wireType != 0 {
  1504. return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType)
  1505. }
  1506. m.Failed = 0
  1507. for shift := uint(0); ; shift += 7 {
  1508. if shift >= 64 {
  1509. return ErrIntOverflowGenerated
  1510. }
  1511. if iNdEx >= l {
  1512. return io.ErrUnexpectedEOF
  1513. }
  1514. b := data[iNdEx]
  1515. iNdEx++
  1516. m.Failed |= (int32(b) & 0x7F) << shift
  1517. if b < 0x80 {
  1518. break
  1519. }
  1520. }
  1521. default:
  1522. iNdEx = preIndex
  1523. skippy, err := skipGenerated(data[iNdEx:])
  1524. if err != nil {
  1525. return err
  1526. }
  1527. if skippy < 0 {
  1528. return ErrInvalidLengthGenerated
  1529. }
  1530. if (iNdEx + skippy) > l {
  1531. return io.ErrUnexpectedEOF
  1532. }
  1533. iNdEx += skippy
  1534. }
  1535. }
  1536. if iNdEx > l {
  1537. return io.ErrUnexpectedEOF
  1538. }
  1539. return nil
  1540. }
  1541. func (m *LabelSelector) Unmarshal(data []byte) error {
  1542. l := len(data)
  1543. iNdEx := 0
  1544. for iNdEx < l {
  1545. preIndex := iNdEx
  1546. var wire uint64
  1547. for shift := uint(0); ; shift += 7 {
  1548. if shift >= 64 {
  1549. return ErrIntOverflowGenerated
  1550. }
  1551. if iNdEx >= l {
  1552. return io.ErrUnexpectedEOF
  1553. }
  1554. b := data[iNdEx]
  1555. iNdEx++
  1556. wire |= (uint64(b) & 0x7F) << shift
  1557. if b < 0x80 {
  1558. break
  1559. }
  1560. }
  1561. fieldNum := int32(wire >> 3)
  1562. wireType := int(wire & 0x7)
  1563. if wireType == 4 {
  1564. return fmt.Errorf("proto: LabelSelector: wiretype end group for non-group")
  1565. }
  1566. if fieldNum <= 0 {
  1567. return fmt.Errorf("proto: LabelSelector: illegal tag %d (wire type %d)", fieldNum, wire)
  1568. }
  1569. switch fieldNum {
  1570. case 1:
  1571. if wireType != 2 {
  1572. return fmt.Errorf("proto: wrong wireType = %d for field MatchLabels", wireType)
  1573. }
  1574. var msglen int
  1575. for shift := uint(0); ; shift += 7 {
  1576. if shift >= 64 {
  1577. return ErrIntOverflowGenerated
  1578. }
  1579. if iNdEx >= l {
  1580. return io.ErrUnexpectedEOF
  1581. }
  1582. b := data[iNdEx]
  1583. iNdEx++
  1584. msglen |= (int(b) & 0x7F) << shift
  1585. if b < 0x80 {
  1586. break
  1587. }
  1588. }
  1589. if msglen < 0 {
  1590. return ErrInvalidLengthGenerated
  1591. }
  1592. postIndex := iNdEx + msglen
  1593. if postIndex > l {
  1594. return io.ErrUnexpectedEOF
  1595. }
  1596. var keykey uint64
  1597. for shift := uint(0); ; shift += 7 {
  1598. if shift >= 64 {
  1599. return ErrIntOverflowGenerated
  1600. }
  1601. if iNdEx >= l {
  1602. return io.ErrUnexpectedEOF
  1603. }
  1604. b := data[iNdEx]
  1605. iNdEx++
  1606. keykey |= (uint64(b) & 0x7F) << shift
  1607. if b < 0x80 {
  1608. break
  1609. }
  1610. }
  1611. var stringLenmapkey uint64
  1612. for shift := uint(0); ; shift += 7 {
  1613. if shift >= 64 {
  1614. return ErrIntOverflowGenerated
  1615. }
  1616. if iNdEx >= l {
  1617. return io.ErrUnexpectedEOF
  1618. }
  1619. b := data[iNdEx]
  1620. iNdEx++
  1621. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  1622. if b < 0x80 {
  1623. break
  1624. }
  1625. }
  1626. intStringLenmapkey := int(stringLenmapkey)
  1627. if intStringLenmapkey < 0 {
  1628. return ErrInvalidLengthGenerated
  1629. }
  1630. postStringIndexmapkey := iNdEx + intStringLenmapkey
  1631. if postStringIndexmapkey > l {
  1632. return io.ErrUnexpectedEOF
  1633. }
  1634. mapkey := string(data[iNdEx:postStringIndexmapkey])
  1635. iNdEx = postStringIndexmapkey
  1636. var valuekey uint64
  1637. for shift := uint(0); ; shift += 7 {
  1638. if shift >= 64 {
  1639. return ErrIntOverflowGenerated
  1640. }
  1641. if iNdEx >= l {
  1642. return io.ErrUnexpectedEOF
  1643. }
  1644. b := data[iNdEx]
  1645. iNdEx++
  1646. valuekey |= (uint64(b) & 0x7F) << shift
  1647. if b < 0x80 {
  1648. break
  1649. }
  1650. }
  1651. var stringLenmapvalue uint64
  1652. for shift := uint(0); ; shift += 7 {
  1653. if shift >= 64 {
  1654. return ErrIntOverflowGenerated
  1655. }
  1656. if iNdEx >= l {
  1657. return io.ErrUnexpectedEOF
  1658. }
  1659. b := data[iNdEx]
  1660. iNdEx++
  1661. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  1662. if b < 0x80 {
  1663. break
  1664. }
  1665. }
  1666. intStringLenmapvalue := int(stringLenmapvalue)
  1667. if intStringLenmapvalue < 0 {
  1668. return ErrInvalidLengthGenerated
  1669. }
  1670. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  1671. if postStringIndexmapvalue > l {
  1672. return io.ErrUnexpectedEOF
  1673. }
  1674. mapvalue := string(data[iNdEx:postStringIndexmapvalue])
  1675. iNdEx = postStringIndexmapvalue
  1676. if m.MatchLabels == nil {
  1677. m.MatchLabels = make(map[string]string)
  1678. }
  1679. m.MatchLabels[mapkey] = mapvalue
  1680. iNdEx = postIndex
  1681. case 2:
  1682. if wireType != 2 {
  1683. return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType)
  1684. }
  1685. var msglen int
  1686. for shift := uint(0); ; shift += 7 {
  1687. if shift >= 64 {
  1688. return ErrIntOverflowGenerated
  1689. }
  1690. if iNdEx >= l {
  1691. return io.ErrUnexpectedEOF
  1692. }
  1693. b := data[iNdEx]
  1694. iNdEx++
  1695. msglen |= (int(b) & 0x7F) << shift
  1696. if b < 0x80 {
  1697. break
  1698. }
  1699. }
  1700. if msglen < 0 {
  1701. return ErrInvalidLengthGenerated
  1702. }
  1703. postIndex := iNdEx + msglen
  1704. if postIndex > l {
  1705. return io.ErrUnexpectedEOF
  1706. }
  1707. m.MatchExpressions = append(m.MatchExpressions, LabelSelectorRequirement{})
  1708. if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1709. return err
  1710. }
  1711. iNdEx = postIndex
  1712. default:
  1713. iNdEx = preIndex
  1714. skippy, err := skipGenerated(data[iNdEx:])
  1715. if err != nil {
  1716. return err
  1717. }
  1718. if skippy < 0 {
  1719. return ErrInvalidLengthGenerated
  1720. }
  1721. if (iNdEx + skippy) > l {
  1722. return io.ErrUnexpectedEOF
  1723. }
  1724. iNdEx += skippy
  1725. }
  1726. }
  1727. if iNdEx > l {
  1728. return io.ErrUnexpectedEOF
  1729. }
  1730. return nil
  1731. }
  1732. func (m *LabelSelectorRequirement) Unmarshal(data []byte) error {
  1733. l := len(data)
  1734. iNdEx := 0
  1735. for iNdEx < l {
  1736. preIndex := iNdEx
  1737. var wire uint64
  1738. for shift := uint(0); ; shift += 7 {
  1739. if shift >= 64 {
  1740. return ErrIntOverflowGenerated
  1741. }
  1742. if iNdEx >= l {
  1743. return io.ErrUnexpectedEOF
  1744. }
  1745. b := data[iNdEx]
  1746. iNdEx++
  1747. wire |= (uint64(b) & 0x7F) << shift
  1748. if b < 0x80 {
  1749. break
  1750. }
  1751. }
  1752. fieldNum := int32(wire >> 3)
  1753. wireType := int(wire & 0x7)
  1754. if wireType == 4 {
  1755. return fmt.Errorf("proto: LabelSelectorRequirement: wiretype end group for non-group")
  1756. }
  1757. if fieldNum <= 0 {
  1758. return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire)
  1759. }
  1760. switch fieldNum {
  1761. case 1:
  1762. if wireType != 2 {
  1763. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  1764. }
  1765. var stringLen uint64
  1766. for shift := uint(0); ; shift += 7 {
  1767. if shift >= 64 {
  1768. return ErrIntOverflowGenerated
  1769. }
  1770. if iNdEx >= l {
  1771. return io.ErrUnexpectedEOF
  1772. }
  1773. b := data[iNdEx]
  1774. iNdEx++
  1775. stringLen |= (uint64(b) & 0x7F) << shift
  1776. if b < 0x80 {
  1777. break
  1778. }
  1779. }
  1780. intStringLen := int(stringLen)
  1781. if intStringLen < 0 {
  1782. return ErrInvalidLengthGenerated
  1783. }
  1784. postIndex := iNdEx + intStringLen
  1785. if postIndex > l {
  1786. return io.ErrUnexpectedEOF
  1787. }
  1788. m.Key = string(data[iNdEx:postIndex])
  1789. iNdEx = postIndex
  1790. case 2:
  1791. if wireType != 2 {
  1792. return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  1793. }
  1794. var stringLen uint64
  1795. for shift := uint(0); ; shift += 7 {
  1796. if shift >= 64 {
  1797. return ErrIntOverflowGenerated
  1798. }
  1799. if iNdEx >= l {
  1800. return io.ErrUnexpectedEOF
  1801. }
  1802. b := data[iNdEx]
  1803. iNdEx++
  1804. stringLen |= (uint64(b) & 0x7F) << shift
  1805. if b < 0x80 {
  1806. break
  1807. }
  1808. }
  1809. intStringLen := int(stringLen)
  1810. if intStringLen < 0 {
  1811. return ErrInvalidLengthGenerated
  1812. }
  1813. postIndex := iNdEx + intStringLen
  1814. if postIndex > l {
  1815. return io.ErrUnexpectedEOF
  1816. }
  1817. m.Operator = LabelSelectorOperator(data[iNdEx:postIndex])
  1818. iNdEx = postIndex
  1819. case 3:
  1820. if wireType != 2 {
  1821. return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  1822. }
  1823. var stringLen uint64
  1824. for shift := uint(0); ; shift += 7 {
  1825. if shift >= 64 {
  1826. return ErrIntOverflowGenerated
  1827. }
  1828. if iNdEx >= l {
  1829. return io.ErrUnexpectedEOF
  1830. }
  1831. b := data[iNdEx]
  1832. iNdEx++
  1833. stringLen |= (uint64(b) & 0x7F) << shift
  1834. if b < 0x80 {
  1835. break
  1836. }
  1837. }
  1838. intStringLen := int(stringLen)
  1839. if intStringLen < 0 {
  1840. return ErrInvalidLengthGenerated
  1841. }
  1842. postIndex := iNdEx + intStringLen
  1843. if postIndex > l {
  1844. return io.ErrUnexpectedEOF
  1845. }
  1846. m.Values = append(m.Values, string(data[iNdEx:postIndex]))
  1847. iNdEx = postIndex
  1848. default:
  1849. iNdEx = preIndex
  1850. skippy, err := skipGenerated(data[iNdEx:])
  1851. if err != nil {
  1852. return err
  1853. }
  1854. if skippy < 0 {
  1855. return ErrInvalidLengthGenerated
  1856. }
  1857. if (iNdEx + skippy) > l {
  1858. return io.ErrUnexpectedEOF
  1859. }
  1860. iNdEx += skippy
  1861. }
  1862. }
  1863. if iNdEx > l {
  1864. return io.ErrUnexpectedEOF
  1865. }
  1866. return nil
  1867. }
  1868. func skipGenerated(data []byte) (n int, err error) {
  1869. l := len(data)
  1870. iNdEx := 0
  1871. for iNdEx < l {
  1872. var wire uint64
  1873. for shift := uint(0); ; shift += 7 {
  1874. if shift >= 64 {
  1875. return 0, ErrIntOverflowGenerated
  1876. }
  1877. if iNdEx >= l {
  1878. return 0, io.ErrUnexpectedEOF
  1879. }
  1880. b := data[iNdEx]
  1881. iNdEx++
  1882. wire |= (uint64(b) & 0x7F) << shift
  1883. if b < 0x80 {
  1884. break
  1885. }
  1886. }
  1887. wireType := int(wire & 0x7)
  1888. switch wireType {
  1889. case 0:
  1890. for shift := uint(0); ; shift += 7 {
  1891. if shift >= 64 {
  1892. return 0, ErrIntOverflowGenerated
  1893. }
  1894. if iNdEx >= l {
  1895. return 0, io.ErrUnexpectedEOF
  1896. }
  1897. iNdEx++
  1898. if data[iNdEx-1] < 0x80 {
  1899. break
  1900. }
  1901. }
  1902. return iNdEx, nil
  1903. case 1:
  1904. iNdEx += 8
  1905. return iNdEx, nil
  1906. case 2:
  1907. var length int
  1908. for shift := uint(0); ; shift += 7 {
  1909. if shift >= 64 {
  1910. return 0, ErrIntOverflowGenerated
  1911. }
  1912. if iNdEx >= l {
  1913. return 0, io.ErrUnexpectedEOF
  1914. }
  1915. b := data[iNdEx]
  1916. iNdEx++
  1917. length |= (int(b) & 0x7F) << shift
  1918. if b < 0x80 {
  1919. break
  1920. }
  1921. }
  1922. iNdEx += length
  1923. if length < 0 {
  1924. return 0, ErrInvalidLengthGenerated
  1925. }
  1926. return iNdEx, nil
  1927. case 3:
  1928. for {
  1929. var innerWire uint64
  1930. var start int = iNdEx
  1931. for shift := uint(0); ; shift += 7 {
  1932. if shift >= 64 {
  1933. return 0, ErrIntOverflowGenerated
  1934. }
  1935. if iNdEx >= l {
  1936. return 0, io.ErrUnexpectedEOF
  1937. }
  1938. b := data[iNdEx]
  1939. iNdEx++
  1940. innerWire |= (uint64(b) & 0x7F) << shift
  1941. if b < 0x80 {
  1942. break
  1943. }
  1944. }
  1945. innerWireType := int(innerWire & 0x7)
  1946. if innerWireType == 4 {
  1947. break
  1948. }
  1949. next, err := skipGenerated(data[start:])
  1950. if err != nil {
  1951. return 0, err
  1952. }
  1953. iNdEx = start + next
  1954. }
  1955. return iNdEx, nil
  1956. case 4:
  1957. return iNdEx, nil
  1958. case 5:
  1959. iNdEx += 4
  1960. return iNdEx, nil
  1961. default:
  1962. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1963. }
  1964. }
  1965. panic("unreachable")
  1966. }
  1967. var (
  1968. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  1969. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  1970. )
  1971. var fileDescriptorGenerated = []byte{
  1972. // 1027 bytes of a gzipped FileDescriptorProto
  1973. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0x23, 0x45,
  1974. 0x10, 0x8e, 0x3d, 0xb1, 0x63, 0xb7, 0x93, 0xac, 0x69, 0x88, 0x64, 0x2c, 0x91, 0xac, 0x0c, 0x42,
  1975. 0xbb, 0x62, 0x33, 0x23, 0x07, 0x90, 0x56, 0x2b, 0xb1, 0x12, 0x13, 0x82, 0x04, 0xc4, 0x24, 0x6a,
  1976. 0x47, 0x2b, 0xc4, 0xcf, 0xa1, 0x3d, 0xae, 0x75, 0x86, 0x8c, 0x67, 0x86, 0xe9, 0x1e, 0x43, 0x38,
  1977. 0x21, 0x71, 0xe0, 0xca, 0x43, 0xf0, 0x0c, 0xec, 0x2b, 0xe4, 0xb8, 0x70, 0xe2, 0x14, 0xc1, 0xf2,
  1978. 0x16, 0x9c, 0xe8, 0xee, 0xe9, 0xf9, 0xf1, 0x5f, 0xe4, 0xec, 0xa1, 0x25, 0x77, 0x75, 0x7d, 0x5f,
  1979. 0x55, 0x77, 0x7d, 0x55, 0x63, 0xf4, 0xee, 0xc5, 0x43, 0x66, 0xba, 0x81, 0x75, 0x11, 0x0f, 0x20,
  1980. 0xf2, 0x81, 0x03, 0xb3, 0xc2, 0x8b, 0x91, 0x45, 0x43, 0x97, 0x59, 0x03, 0xca, 0x9d, 0x73, 0x6b,
  1981. 0xd2, 0xb5, 0x46, 0xe0, 0x43, 0x44, 0x39, 0x0c, 0xcd, 0x30, 0x0a, 0x78, 0x80, 0xdf, 0x4c, 0x40,
  1982. 0x66, 0x0e, 0x32, 0x05, 0xc8, 0x94, 0x20, 0x53, 0x81, 0xcc, 0x49, 0xb7, 0xbd, 0x3f, 0x72, 0xf9,
  1983. 0x79, 0x3c, 0x30, 0x9d, 0x60, 0x6c, 0x8d, 0x82, 0x51, 0x60, 0x29, 0xec, 0x20, 0x7e, 0xaa, 0x76,
  1984. 0x6a, 0xa3, 0x7e, 0x25, 0x9c, 0xed, 0x83, 0xa5, 0x89, 0x58, 0x11, 0xb0, 0x20, 0x8e, 0x1c, 0x98,
  1985. 0xcd, 0xa3, 0xfd, 0xfe, 0x72, 0x4c, 0xec, 0x4f, 0x20, 0x62, 0x6e, 0xe0, 0xc3, 0x70, 0x0e, 0xf6,
  1986. 0x60, 0x39, 0x6c, 0xfe, 0xb2, 0xed, 0xfd, 0xc5, 0xde, 0x51, 0xec, 0x73, 0x77, 0x3c, 0x9f, 0x53,
  1987. 0x77, 0xb1, 0x7b, 0xcc, 0x5d, 0xcf, 0x72, 0x7d, 0xce, 0x78, 0x34, 0x0b, 0xe9, 0xfc, 0x52, 0x46,
  1988. 0xc6, 0xa7, 0xc1, 0x00, 0x7f, 0x81, 0x6a, 0x63, 0xe0, 0x74, 0x48, 0x39, 0x6d, 0x95, 0xee, 0x96,
  1989. 0xee, 0x35, 0x0e, 0xee, 0x99, 0x4b, 0x5f, 0x5a, 0x3c, 0xb1, 0x79, 0x32, 0xf8, 0x16, 0x1c, 0xde,
  1990. 0x13, 0x18, 0x1b, 0x5f, 0x5d, 0xef, 0xad, 0xbd, 0xb8, 0xde, 0x43, 0xb9, 0x8d, 0x64, 0x6c, 0xf8,
  1991. 0x73, 0xb4, 0xce, 0x42, 0x70, 0x5a, 0x65, 0xc5, 0xfa, 0xc0, 0x5c, 0xa1, 0x7e, 0xa6, 0xc8, 0xa8,
  1992. 0x2f, 0x30, 0xf6, 0xa6, 0x66, 0x5e, 0x97, 0x3b, 0xa2, 0x78, 0xf0, 0x13, 0x54, 0x65, 0x9c, 0xf2,
  1993. 0x98, 0xb5, 0x0c, 0xc5, 0x68, 0xae, 0xcc, 0xa8, 0x50, 0xf6, 0xb6, 0xe6, 0xac, 0x26, 0x7b, 0xa2,
  1994. 0xd9, 0x3a, 0x7f, 0x1a, 0x68, 0x53, 0x78, 0x1d, 0x06, 0xfe, 0xd0, 0xe5, 0xa2, 0x78, 0xf8, 0x3d,
  1995. 0xb4, 0xce, 0x2f, 0x43, 0x50, 0xcf, 0x51, 0xb7, 0xef, 0xa6, 0xa9, 0x9c, 0x09, 0xdb, 0x7f, 0xd7,
  1996. 0x7b, 0xcd, 0xa2, 0xaf, 0xb4, 0x11, 0xe5, 0x5d, 0x48, 0xaf, 0xac, 0x70, 0x8f, 0xa7, 0xc3, 0x09,
  1997. 0xe4, 0x8d, 0x12, 0x30, 0x33, 0xce, 0xe9, 0xf4, 0xf0, 0x39, 0xda, 0xf2, 0x28, 0xe3, 0xa7, 0x51,
  1998. 0x30, 0x80, 0x33, 0x51, 0x7c, 0x7d, 0xfb, 0x77, 0x6e, 0xa8, 0x52, 0x41, 0x87, 0xa6, 0x84, 0xd8,
  1999. 0x3b, 0x3a, 0x97, 0xad, 0xe3, 0x22, 0x13, 0x99, 0x26, 0xc6, 0xdf, 0x23, 0x2c, 0x0d, 0x67, 0x11,
  2000. 0xf5, 0x59, 0x72, 0x3b, 0x19, 0x6e, 0xfd, 0xf6, 0xe1, 0xda, 0x3a, 0x1c, 0x3e, 0x9e, 0xa3, 0x23,
  2001. 0x0b, 0x42, 0xe0, 0xb7, 0x51, 0x35, 0x02, 0xca, 0x02, 0xbf, 0x55, 0x51, 0x4f, 0x97, 0x55, 0x8a,
  2002. 0x28, 0x2b, 0xd1, 0xa7, 0xf8, 0x3e, 0xda, 0x18, 0x03, 0x63, 0x74, 0x04, 0xad, 0xaa, 0x72, 0xbc,
  2003. 0xa3, 0x1d, 0x37, 0x7a, 0x89, 0x99, 0xa4, 0xe7, 0x9d, 0x67, 0x25, 0xb4, 0x21, 0x0a, 0x75, 0xec,
  2004. 0x32, 0x8e, 0xbf, 0x99, 0x93, 0xb8, 0xb5, 0xe2, 0x6d, 0x24, 0x5c, 0x29, 0xbd, 0xa9, 0x03, 0xd5,
  2005. 0x52, 0x4b, 0x41, 0xe7, 0x3d, 0x54, 0x71, 0x39, 0x8c, 0x65, 0xdd, 0x8d, 0x9b, 0xdb, 0x67, 0x5a,
  2006. 0x96, 0xf6, 0x96, 0x26, 0xad, 0x7c, 0x22, 0xe1, 0x24, 0x61, 0xe9, 0x3c, 0x33, 0x54, 0xe6, 0x52,
  2007. 0xf8, 0xb8, 0x8b, 0x1a, 0x21, 0x8d, 0xa8, 0xe7, 0x81, 0xe7, 0xb2, 0xb1, 0x4a, 0xbe, 0x62, 0xdf,
  2008. 0x11, 0x90, 0xc6, 0x69, 0x6e, 0x26, 0x45, 0x1f, 0x09, 0x11, 0xc3, 0x2f, 0xf4, 0x40, 0xbe, 0x6e,
  2009. 0xa2, 0x45, 0x0d, 0x39, 0xcc, 0xcd, 0xa4, 0xe8, 0x83, 0x4f, 0xd0, 0x0e, 0x75, 0xb8, 0x3b, 0x81,
  2010. 0x8f, 0x80, 0x0e, 0x3d, 0xd7, 0x87, 0x3e, 0x38, 0x42, 0x8c, 0x49, 0x9f, 0x19, 0xf6, 0xeb, 0x02,
  2011. 0xbc, 0xf3, 0xe1, 0x22, 0x07, 0xb2, 0x18, 0x87, 0xbf, 0x46, 0x35, 0x06, 0x9e, 0x98, 0x08, 0x41,
  2012. 0xa4, 0xe5, 0x73, 0xb0, 0xd2, 0xa3, 0x1c, 0xd3, 0x01, 0x78, 0x7d, 0x8d, 0xb4, 0x37, 0xe5, 0x7b,
  2013. 0xa7, 0x3b, 0x92, 0x31, 0xe2, 0x47, 0x68, 0x7b, 0x4c, 0xfd, 0x98, 0x66, 0x9e, 0x4a, 0x35, 0x35,
  2014. 0x1b, 0x0b, 0xff, 0xed, 0xde, 0xd4, 0x09, 0x99, 0xf1, 0xc4, 0x5f, 0xa1, 0x9a, 0x78, 0xe4, 0xd0,
  2015. 0x13, 0x83, 0x50, 0x49, 0xa8, 0x71, 0xb0, 0x7f, 0xf3, 0xb4, 0x3b, 0x0d, 0x86, 0x67, 0x1a, 0xa0,
  2016. 0x06, 0x53, 0x26, 0x84, 0xd4, 0x4a, 0x32, 0xc2, 0xce, 0xef, 0x06, 0xaa, 0x67, 0xe3, 0x06, 0x03,
  2017. 0x42, 0x4e, 0xda, 0xd2, 0x4c, 0x94, 0x4e, 0x6a, 0xa3, 0xbb, 0xaa, 0x36, 0xb2, 0x61, 0x90, 0xcf,
  2018. 0xd8, 0xcc, 0xc4, 0x48, 0x81, 0x58, 0xcc, 0xef, 0xba, 0x18, 0x14, 0x11, 0x57, 0xbd, 0x5a, 0xbe,
  2019. 0x7d, 0xaf, 0x6e, 0x09, 0xee, 0x7a, 0x3f, 0x65, 0x20, 0x39, 0x19, 0x1e, 0xa1, 0xed, 0x5c, 0x25,
  2020. 0x2f, 0x3b, 0x79, 0x54, 0x51, 0x0e, 0xa7, 0x68, 0xc8, 0x0c, 0xad, 0x6c, 0xff, 0x44, 0x47, 0x4a,
  2021. 0x2c, 0x95, 0xbc, 0xfd, 0x13, 0xd1, 0x11, 0x7d, 0x8a, 0x2d, 0x71, 0xd5, 0xd8, 0x71, 0x00, 0x86,
  2022. 0x30, 0x54, 0x35, 0xaf, 0xd8, 0xaf, 0x68, 0xd7, 0x7a, 0x3f, 0x3d, 0x20, 0xb9, 0x8f, 0x24, 0x7e,
  2023. 0x4a, 0x5d, 0x4f, 0x78, 0x57, 0xa7, 0x89, 0x3f, 0x56, 0x56, 0xa2, 0x4f, 0x3b, 0x7f, 0x94, 0xd1,
  2024. 0xd6, 0x94, 0xf6, 0xf0, 0x8f, 0xa8, 0x31, 0x96, 0xe5, 0x50, 0xd6, 0xb4, 0x7a, 0x87, 0xb7, 0x17,
  2025. 0xb1, 0xd9, 0xcb, 0x59, 0x8e, 0x7c, 0x1e, 0x5d, 0xda, 0xaf, 0xea, 0x1c, 0x1a, 0x85, 0x13, 0x52,
  2026. 0x0c, 0x86, 0x7f, 0x2e, 0xa1, 0xa6, 0xda, 0x1f, 0xfd, 0x10, 0x8a, 0x7f, 0x21, 0x4c, 0xf7, 0xb1,
  2027. 0xcc, 0xe0, 0x83, 0xdb, 0x67, 0x40, 0xe0, 0xbb, 0xd8, 0x8d, 0x60, 0x0c, 0x3e, 0xb7, 0x5b, 0x3a,
  2028. 0x76, 0xb3, 0x37, 0x43, 0x4f, 0xe6, 0x02, 0xb6, 0x1f, 0xa3, 0xe6, 0x6c, 0xee, 0xb8, 0x89, 0x8c,
  2029. 0x0b, 0xb8, 0x4c, 0xbe, 0x8b, 0x44, 0xfe, 0xc4, 0xaf, 0xa1, 0xca, 0x84, 0x7a, 0x71, 0xa2, 0xbc,
  2030. 0x3a, 0x49, 0x36, 0x8f, 0xca, 0x0f, 0x4b, 0x9d, 0xdf, 0x4a, 0xa8, 0xb5, 0x2c, 0x11, 0xfc, 0x46,
  2031. 0x81, 0xc8, 0x6e, 0xe8, 0xac, 0x8c, 0xcf, 0xe0, 0x32, 0x61, 0x3d, 0x42, 0xb5, 0x20, 0x94, 0xff,
  2032. 0x56, 0x44, 0x6f, 0x27, 0x1f, 0xd3, 0xfb, 0x69, 0xdb, 0x9d, 0x68, 0xbb, 0xf8, 0x9c, 0xee, 0x4c,
  2033. 0xd1, 0xa7, 0x07, 0x24, 0x83, 0xe2, 0x0e, 0xaa, 0xaa, 0x7c, 0xe4, 0x20, 0x33, 0x04, 0x09, 0x92,
  2034. 0xa5, 0x7f, 0xa2, 0x2c, 0x44, 0x9f, 0xd8, 0x6f, 0x5d, 0xfd, 0xb3, 0xbb, 0xf6, 0x5c, 0xac, 0xbf,
  2035. 0xc4, 0xfa, 0xe9, 0xc5, 0x6e, 0xe9, 0x4a, 0xac, 0xe7, 0x62, 0xfd, 0x2d, 0xd6, 0xaf, 0xff, 0xee,
  2036. 0xae, 0x7d, 0x59, 0x9e, 0x74, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x8b, 0x10, 0xf1, 0xb1,
  2037. 0x0a, 0x00, 0x00,
  2038. }