generated.pb.go 40 KB

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