generated.pb.go 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293
  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/v2alpha1/generated.proto
  15. // DO NOT EDIT!
  16. /*
  17. Package v2alpha1 is a generated protocol buffer package.
  18. It is generated from these files:
  19. k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto
  20. It has these top-level messages:
  21. Job
  22. JobCondition
  23. JobList
  24. JobSpec
  25. JobStatus
  26. JobTemplate
  27. JobTemplateSpec
  28. LabelSelector
  29. LabelSelectorRequirement
  30. ScheduledJob
  31. ScheduledJobList
  32. ScheduledJobSpec
  33. ScheduledJobStatus
  34. */
  35. package v2alpha1
  36. import proto "github.com/gogo/protobuf/proto"
  37. import fmt "fmt"
  38. import math "math"
  39. import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
  40. import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1"
  41. import strings "strings"
  42. import reflect "reflect"
  43. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  44. import io "io"
  45. // Reference imports to suppress errors if they are not otherwise used.
  46. var _ = proto.Marshal
  47. var _ = fmt.Errorf
  48. var _ = math.Inf
  49. // This is a compile-time assertion to ensure that this generated file
  50. // is compatible with the proto package it is being compiled against.
  51. const _ = proto.GoGoProtoPackageIsVersion1
  52. func (m *Job) Reset() { *m = Job{} }
  53. func (*Job) ProtoMessage() {}
  54. func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  55. func (m *JobCondition) Reset() { *m = JobCondition{} }
  56. func (*JobCondition) ProtoMessage() {}
  57. func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  58. func (m *JobList) Reset() { *m = JobList{} }
  59. func (*JobList) ProtoMessage() {}
  60. func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  61. func (m *JobSpec) Reset() { *m = JobSpec{} }
  62. func (*JobSpec) ProtoMessage() {}
  63. func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  64. func (m *JobStatus) Reset() { *m = JobStatus{} }
  65. func (*JobStatus) ProtoMessage() {}
  66. func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
  67. func (m *JobTemplate) Reset() { *m = JobTemplate{} }
  68. func (*JobTemplate) ProtoMessage() {}
  69. func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  70. func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} }
  71. func (*JobTemplateSpec) ProtoMessage() {}
  72. func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
  73. func (m *LabelSelector) Reset() { *m = LabelSelector{} }
  74. func (*LabelSelector) ProtoMessage() {}
  75. func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
  76. func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} }
  77. func (*LabelSelectorRequirement) ProtoMessage() {}
  78. func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {
  79. return fileDescriptorGenerated, []int{8}
  80. }
  81. func (m *ScheduledJob) Reset() { *m = ScheduledJob{} }
  82. func (*ScheduledJob) ProtoMessage() {}
  83. func (*ScheduledJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
  84. func (m *ScheduledJobList) Reset() { *m = ScheduledJobList{} }
  85. func (*ScheduledJobList) ProtoMessage() {}
  86. func (*ScheduledJobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
  87. func (m *ScheduledJobSpec) Reset() { *m = ScheduledJobSpec{} }
  88. func (*ScheduledJobSpec) ProtoMessage() {}
  89. func (*ScheduledJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
  90. func (m *ScheduledJobStatus) Reset() { *m = ScheduledJobStatus{} }
  91. func (*ScheduledJobStatus) ProtoMessage() {}
  92. func (*ScheduledJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
  93. func init() {
  94. proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.Job")
  95. proto.RegisterType((*JobCondition)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobCondition")
  96. proto.RegisterType((*JobList)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobList")
  97. proto.RegisterType((*JobSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobSpec")
  98. proto.RegisterType((*JobStatus)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobStatus")
  99. proto.RegisterType((*JobTemplate)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobTemplate")
  100. proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobTemplateSpec")
  101. proto.RegisterType((*LabelSelector)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelector")
  102. proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelectorRequirement")
  103. proto.RegisterType((*ScheduledJob)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJob")
  104. proto.RegisterType((*ScheduledJobList)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobList")
  105. proto.RegisterType((*ScheduledJobSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobSpec")
  106. proto.RegisterType((*ScheduledJobStatus)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobStatus")
  107. }
  108. func (m *Job) Marshal() (data []byte, err error) {
  109. size := m.Size()
  110. data = make([]byte, size)
  111. n, err := m.MarshalTo(data)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return data[:n], nil
  116. }
  117. func (m *Job) MarshalTo(data []byte) (int, error) {
  118. var i int
  119. _ = i
  120. var l int
  121. _ = l
  122. data[i] = 0xa
  123. i++
  124. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  125. n1, err := m.ObjectMeta.MarshalTo(data[i:])
  126. if err != nil {
  127. return 0, err
  128. }
  129. i += n1
  130. data[i] = 0x12
  131. i++
  132. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  133. n2, err := m.Spec.MarshalTo(data[i:])
  134. if err != nil {
  135. return 0, err
  136. }
  137. i += n2
  138. data[i] = 0x1a
  139. i++
  140. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  141. n3, err := m.Status.MarshalTo(data[i:])
  142. if err != nil {
  143. return 0, err
  144. }
  145. i += n3
  146. return i, nil
  147. }
  148. func (m *JobCondition) Marshal() (data []byte, err error) {
  149. size := m.Size()
  150. data = make([]byte, size)
  151. n, err := m.MarshalTo(data)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return data[:n], nil
  156. }
  157. func (m *JobCondition) MarshalTo(data []byte) (int, error) {
  158. var i int
  159. _ = i
  160. var l int
  161. _ = l
  162. data[i] = 0xa
  163. i++
  164. i = encodeVarintGenerated(data, i, uint64(len(m.Type)))
  165. i += copy(data[i:], m.Type)
  166. data[i] = 0x12
  167. i++
  168. i = encodeVarintGenerated(data, i, uint64(len(m.Status)))
  169. i += copy(data[i:], m.Status)
  170. data[i] = 0x1a
  171. i++
  172. i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size()))
  173. n4, err := m.LastProbeTime.MarshalTo(data[i:])
  174. if err != nil {
  175. return 0, err
  176. }
  177. i += n4
  178. data[i] = 0x22
  179. i++
  180. i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size()))
  181. n5, err := m.LastTransitionTime.MarshalTo(data[i:])
  182. if err != nil {
  183. return 0, err
  184. }
  185. i += n5
  186. data[i] = 0x2a
  187. i++
  188. i = encodeVarintGenerated(data, i, uint64(len(m.Reason)))
  189. i += copy(data[i:], m.Reason)
  190. data[i] = 0x32
  191. i++
  192. i = encodeVarintGenerated(data, i, uint64(len(m.Message)))
  193. i += copy(data[i:], m.Message)
  194. return i, nil
  195. }
  196. func (m *JobList) Marshal() (data []byte, err error) {
  197. size := m.Size()
  198. data = make([]byte, size)
  199. n, err := m.MarshalTo(data)
  200. if err != nil {
  201. return nil, err
  202. }
  203. return data[:n], nil
  204. }
  205. func (m *JobList) MarshalTo(data []byte) (int, error) {
  206. var i int
  207. _ = i
  208. var l int
  209. _ = l
  210. data[i] = 0xa
  211. i++
  212. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  213. n6, err := m.ListMeta.MarshalTo(data[i:])
  214. if err != nil {
  215. return 0, err
  216. }
  217. i += n6
  218. if len(m.Items) > 0 {
  219. for _, msg := range m.Items {
  220. data[i] = 0x12
  221. i++
  222. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  223. n, err := msg.MarshalTo(data[i:])
  224. if err != nil {
  225. return 0, err
  226. }
  227. i += n
  228. }
  229. }
  230. return i, nil
  231. }
  232. func (m *JobSpec) Marshal() (data []byte, err error) {
  233. size := m.Size()
  234. data = make([]byte, size)
  235. n, err := m.MarshalTo(data)
  236. if err != nil {
  237. return nil, err
  238. }
  239. return data[:n], nil
  240. }
  241. func (m *JobSpec) MarshalTo(data []byte) (int, error) {
  242. var i int
  243. _ = i
  244. var l int
  245. _ = l
  246. if m.Parallelism != nil {
  247. data[i] = 0x8
  248. i++
  249. i = encodeVarintGenerated(data, i, uint64(*m.Parallelism))
  250. }
  251. if m.Completions != nil {
  252. data[i] = 0x10
  253. i++
  254. i = encodeVarintGenerated(data, i, uint64(*m.Completions))
  255. }
  256. if m.ActiveDeadlineSeconds != nil {
  257. data[i] = 0x18
  258. i++
  259. i = encodeVarintGenerated(data, i, uint64(*m.ActiveDeadlineSeconds))
  260. }
  261. if m.Selector != nil {
  262. data[i] = 0x22
  263. i++
  264. i = encodeVarintGenerated(data, i, uint64(m.Selector.Size()))
  265. n7, err := m.Selector.MarshalTo(data[i:])
  266. if err != nil {
  267. return 0, err
  268. }
  269. i += n7
  270. }
  271. if m.ManualSelector != nil {
  272. data[i] = 0x28
  273. i++
  274. if *m.ManualSelector {
  275. data[i] = 1
  276. } else {
  277. data[i] = 0
  278. }
  279. i++
  280. }
  281. data[i] = 0x32
  282. i++
  283. i = encodeVarintGenerated(data, i, uint64(m.Template.Size()))
  284. n8, err := m.Template.MarshalTo(data[i:])
  285. if err != nil {
  286. return 0, err
  287. }
  288. i += n8
  289. return i, nil
  290. }
  291. func (m *JobStatus) Marshal() (data []byte, err error) {
  292. size := m.Size()
  293. data = make([]byte, size)
  294. n, err := m.MarshalTo(data)
  295. if err != nil {
  296. return nil, err
  297. }
  298. return data[:n], nil
  299. }
  300. func (m *JobStatus) MarshalTo(data []byte) (int, error) {
  301. var i int
  302. _ = i
  303. var l int
  304. _ = l
  305. if len(m.Conditions) > 0 {
  306. for _, msg := range m.Conditions {
  307. data[i] = 0xa
  308. i++
  309. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  310. n, err := msg.MarshalTo(data[i:])
  311. if err != nil {
  312. return 0, err
  313. }
  314. i += n
  315. }
  316. }
  317. if m.StartTime != nil {
  318. data[i] = 0x12
  319. i++
  320. i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size()))
  321. n9, err := m.StartTime.MarshalTo(data[i:])
  322. if err != nil {
  323. return 0, err
  324. }
  325. i += n9
  326. }
  327. if m.CompletionTime != nil {
  328. data[i] = 0x1a
  329. i++
  330. i = encodeVarintGenerated(data, i, uint64(m.CompletionTime.Size()))
  331. n10, err := m.CompletionTime.MarshalTo(data[i:])
  332. if err != nil {
  333. return 0, err
  334. }
  335. i += n10
  336. }
  337. data[i] = 0x20
  338. i++
  339. i = encodeVarintGenerated(data, i, uint64(m.Active))
  340. data[i] = 0x28
  341. i++
  342. i = encodeVarintGenerated(data, i, uint64(m.Succeeded))
  343. data[i] = 0x30
  344. i++
  345. i = encodeVarintGenerated(data, i, uint64(m.Failed))
  346. return i, nil
  347. }
  348. func (m *JobTemplate) Marshal() (data []byte, err error) {
  349. size := m.Size()
  350. data = make([]byte, size)
  351. n, err := m.MarshalTo(data)
  352. if err != nil {
  353. return nil, err
  354. }
  355. return data[:n], nil
  356. }
  357. func (m *JobTemplate) MarshalTo(data []byte) (int, error) {
  358. var i int
  359. _ = i
  360. var l int
  361. _ = l
  362. data[i] = 0xa
  363. i++
  364. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  365. n11, err := m.ObjectMeta.MarshalTo(data[i:])
  366. if err != nil {
  367. return 0, err
  368. }
  369. i += n11
  370. data[i] = 0x12
  371. i++
  372. i = encodeVarintGenerated(data, i, uint64(m.Template.Size()))
  373. n12, err := m.Template.MarshalTo(data[i:])
  374. if err != nil {
  375. return 0, err
  376. }
  377. i += n12
  378. return i, nil
  379. }
  380. func (m *JobTemplateSpec) Marshal() (data []byte, err error) {
  381. size := m.Size()
  382. data = make([]byte, size)
  383. n, err := m.MarshalTo(data)
  384. if err != nil {
  385. return nil, err
  386. }
  387. return data[:n], nil
  388. }
  389. func (m *JobTemplateSpec) MarshalTo(data []byte) (int, error) {
  390. var i int
  391. _ = i
  392. var l int
  393. _ = l
  394. data[i] = 0xa
  395. i++
  396. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  397. n13, err := m.ObjectMeta.MarshalTo(data[i:])
  398. if err != nil {
  399. return 0, err
  400. }
  401. i += n13
  402. data[i] = 0x12
  403. i++
  404. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  405. n14, err := m.Spec.MarshalTo(data[i:])
  406. if err != nil {
  407. return 0, err
  408. }
  409. i += n14
  410. return i, nil
  411. }
  412. func (m *LabelSelector) Marshal() (data []byte, err error) {
  413. size := m.Size()
  414. data = make([]byte, size)
  415. n, err := m.MarshalTo(data)
  416. if err != nil {
  417. return nil, err
  418. }
  419. return data[:n], nil
  420. }
  421. func (m *LabelSelector) MarshalTo(data []byte) (int, error) {
  422. var i int
  423. _ = i
  424. var l int
  425. _ = l
  426. if len(m.MatchLabels) > 0 {
  427. for k := range m.MatchLabels {
  428. data[i] = 0xa
  429. i++
  430. v := m.MatchLabels[k]
  431. mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
  432. i = encodeVarintGenerated(data, i, uint64(mapSize))
  433. data[i] = 0xa
  434. i++
  435. i = encodeVarintGenerated(data, i, uint64(len(k)))
  436. i += copy(data[i:], k)
  437. data[i] = 0x12
  438. i++
  439. i = encodeVarintGenerated(data, i, uint64(len(v)))
  440. i += copy(data[i:], v)
  441. }
  442. }
  443. if len(m.MatchExpressions) > 0 {
  444. for _, msg := range m.MatchExpressions {
  445. data[i] = 0x12
  446. i++
  447. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  448. n, err := msg.MarshalTo(data[i:])
  449. if err != nil {
  450. return 0, err
  451. }
  452. i += n
  453. }
  454. }
  455. return i, nil
  456. }
  457. func (m *LabelSelectorRequirement) Marshal() (data []byte, err error) {
  458. size := m.Size()
  459. data = make([]byte, size)
  460. n, err := m.MarshalTo(data)
  461. if err != nil {
  462. return nil, err
  463. }
  464. return data[:n], nil
  465. }
  466. func (m *LabelSelectorRequirement) MarshalTo(data []byte) (int, error) {
  467. var i int
  468. _ = i
  469. var l int
  470. _ = l
  471. data[i] = 0xa
  472. i++
  473. i = encodeVarintGenerated(data, i, uint64(len(m.Key)))
  474. i += copy(data[i:], m.Key)
  475. data[i] = 0x12
  476. i++
  477. i = encodeVarintGenerated(data, i, uint64(len(m.Operator)))
  478. i += copy(data[i:], m.Operator)
  479. if len(m.Values) > 0 {
  480. for _, s := range m.Values {
  481. data[i] = 0x1a
  482. i++
  483. l = len(s)
  484. for l >= 1<<7 {
  485. data[i] = uint8(uint64(l)&0x7f | 0x80)
  486. l >>= 7
  487. i++
  488. }
  489. data[i] = uint8(l)
  490. i++
  491. i += copy(data[i:], s)
  492. }
  493. }
  494. return i, nil
  495. }
  496. func (m *ScheduledJob) Marshal() (data []byte, err error) {
  497. size := m.Size()
  498. data = make([]byte, size)
  499. n, err := m.MarshalTo(data)
  500. if err != nil {
  501. return nil, err
  502. }
  503. return data[:n], nil
  504. }
  505. func (m *ScheduledJob) MarshalTo(data []byte) (int, error) {
  506. var i int
  507. _ = i
  508. var l int
  509. _ = l
  510. data[i] = 0xa
  511. i++
  512. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  513. n15, err := m.ObjectMeta.MarshalTo(data[i:])
  514. if err != nil {
  515. return 0, err
  516. }
  517. i += n15
  518. data[i] = 0x12
  519. i++
  520. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  521. n16, err := m.Spec.MarshalTo(data[i:])
  522. if err != nil {
  523. return 0, err
  524. }
  525. i += n16
  526. data[i] = 0x1a
  527. i++
  528. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  529. n17, err := m.Status.MarshalTo(data[i:])
  530. if err != nil {
  531. return 0, err
  532. }
  533. i += n17
  534. return i, nil
  535. }
  536. func (m *ScheduledJobList) Marshal() (data []byte, err error) {
  537. size := m.Size()
  538. data = make([]byte, size)
  539. n, err := m.MarshalTo(data)
  540. if err != nil {
  541. return nil, err
  542. }
  543. return data[:n], nil
  544. }
  545. func (m *ScheduledJobList) MarshalTo(data []byte) (int, error) {
  546. var i int
  547. _ = i
  548. var l int
  549. _ = l
  550. data[i] = 0xa
  551. i++
  552. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  553. n18, err := m.ListMeta.MarshalTo(data[i:])
  554. if err != nil {
  555. return 0, err
  556. }
  557. i += n18
  558. if len(m.Items) > 0 {
  559. for _, msg := range m.Items {
  560. data[i] = 0x12
  561. i++
  562. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  563. n, err := msg.MarshalTo(data[i:])
  564. if err != nil {
  565. return 0, err
  566. }
  567. i += n
  568. }
  569. }
  570. return i, nil
  571. }
  572. func (m *ScheduledJobSpec) Marshal() (data []byte, err error) {
  573. size := m.Size()
  574. data = make([]byte, size)
  575. n, err := m.MarshalTo(data)
  576. if err != nil {
  577. return nil, err
  578. }
  579. return data[:n], nil
  580. }
  581. func (m *ScheduledJobSpec) MarshalTo(data []byte) (int, error) {
  582. var i int
  583. _ = i
  584. var l int
  585. _ = l
  586. data[i] = 0xa
  587. i++
  588. i = encodeVarintGenerated(data, i, uint64(len(m.Schedule)))
  589. i += copy(data[i:], m.Schedule)
  590. if m.StartingDeadlineSeconds != nil {
  591. data[i] = 0x10
  592. i++
  593. i = encodeVarintGenerated(data, i, uint64(*m.StartingDeadlineSeconds))
  594. }
  595. data[i] = 0x1a
  596. i++
  597. i = encodeVarintGenerated(data, i, uint64(len(m.ConcurrencyPolicy)))
  598. i += copy(data[i:], m.ConcurrencyPolicy)
  599. if m.Suspend != nil {
  600. data[i] = 0x20
  601. i++
  602. if *m.Suspend {
  603. data[i] = 1
  604. } else {
  605. data[i] = 0
  606. }
  607. i++
  608. }
  609. data[i] = 0x2a
  610. i++
  611. i = encodeVarintGenerated(data, i, uint64(m.JobTemplate.Size()))
  612. n19, err := m.JobTemplate.MarshalTo(data[i:])
  613. if err != nil {
  614. return 0, err
  615. }
  616. i += n19
  617. return i, nil
  618. }
  619. func (m *ScheduledJobStatus) Marshal() (data []byte, err error) {
  620. size := m.Size()
  621. data = make([]byte, size)
  622. n, err := m.MarshalTo(data)
  623. if err != nil {
  624. return nil, err
  625. }
  626. return data[:n], nil
  627. }
  628. func (m *ScheduledJobStatus) MarshalTo(data []byte) (int, error) {
  629. var i int
  630. _ = i
  631. var l int
  632. _ = l
  633. if len(m.Active) > 0 {
  634. for _, msg := range m.Active {
  635. data[i] = 0xa
  636. i++
  637. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  638. n, err := msg.MarshalTo(data[i:])
  639. if err != nil {
  640. return 0, err
  641. }
  642. i += n
  643. }
  644. }
  645. if m.LastScheduleTime != nil {
  646. data[i] = 0x22
  647. i++
  648. i = encodeVarintGenerated(data, i, uint64(m.LastScheduleTime.Size()))
  649. n20, err := m.LastScheduleTime.MarshalTo(data[i:])
  650. if err != nil {
  651. return 0, err
  652. }
  653. i += n20
  654. }
  655. return i, nil
  656. }
  657. func encodeFixed64Generated(data []byte, offset int, v uint64) int {
  658. data[offset] = uint8(v)
  659. data[offset+1] = uint8(v >> 8)
  660. data[offset+2] = uint8(v >> 16)
  661. data[offset+3] = uint8(v >> 24)
  662. data[offset+4] = uint8(v >> 32)
  663. data[offset+5] = uint8(v >> 40)
  664. data[offset+6] = uint8(v >> 48)
  665. data[offset+7] = uint8(v >> 56)
  666. return offset + 8
  667. }
  668. func encodeFixed32Generated(data []byte, offset int, v uint32) int {
  669. data[offset] = uint8(v)
  670. data[offset+1] = uint8(v >> 8)
  671. data[offset+2] = uint8(v >> 16)
  672. data[offset+3] = uint8(v >> 24)
  673. return offset + 4
  674. }
  675. func encodeVarintGenerated(data []byte, offset int, v uint64) int {
  676. for v >= 1<<7 {
  677. data[offset] = uint8(v&0x7f | 0x80)
  678. v >>= 7
  679. offset++
  680. }
  681. data[offset] = uint8(v)
  682. return offset + 1
  683. }
  684. func (m *Job) Size() (n int) {
  685. var l int
  686. _ = l
  687. l = m.ObjectMeta.Size()
  688. n += 1 + l + sovGenerated(uint64(l))
  689. l = m.Spec.Size()
  690. n += 1 + l + sovGenerated(uint64(l))
  691. l = m.Status.Size()
  692. n += 1 + l + sovGenerated(uint64(l))
  693. return n
  694. }
  695. func (m *JobCondition) Size() (n int) {
  696. var l int
  697. _ = l
  698. l = len(m.Type)
  699. n += 1 + l + sovGenerated(uint64(l))
  700. l = len(m.Status)
  701. n += 1 + l + sovGenerated(uint64(l))
  702. l = m.LastProbeTime.Size()
  703. n += 1 + l + sovGenerated(uint64(l))
  704. l = m.LastTransitionTime.Size()
  705. n += 1 + l + sovGenerated(uint64(l))
  706. l = len(m.Reason)
  707. n += 1 + l + sovGenerated(uint64(l))
  708. l = len(m.Message)
  709. n += 1 + l + sovGenerated(uint64(l))
  710. return n
  711. }
  712. func (m *JobList) Size() (n int) {
  713. var l int
  714. _ = l
  715. l = m.ListMeta.Size()
  716. n += 1 + l + sovGenerated(uint64(l))
  717. if len(m.Items) > 0 {
  718. for _, e := range m.Items {
  719. l = e.Size()
  720. n += 1 + l + sovGenerated(uint64(l))
  721. }
  722. }
  723. return n
  724. }
  725. func (m *JobSpec) Size() (n int) {
  726. var l int
  727. _ = l
  728. if m.Parallelism != nil {
  729. n += 1 + sovGenerated(uint64(*m.Parallelism))
  730. }
  731. if m.Completions != nil {
  732. n += 1 + sovGenerated(uint64(*m.Completions))
  733. }
  734. if m.ActiveDeadlineSeconds != nil {
  735. n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds))
  736. }
  737. if m.Selector != nil {
  738. l = m.Selector.Size()
  739. n += 1 + l + sovGenerated(uint64(l))
  740. }
  741. if m.ManualSelector != nil {
  742. n += 2
  743. }
  744. l = m.Template.Size()
  745. n += 1 + l + sovGenerated(uint64(l))
  746. return n
  747. }
  748. func (m *JobStatus) Size() (n int) {
  749. var l int
  750. _ = l
  751. if len(m.Conditions) > 0 {
  752. for _, e := range m.Conditions {
  753. l = e.Size()
  754. n += 1 + l + sovGenerated(uint64(l))
  755. }
  756. }
  757. if m.StartTime != nil {
  758. l = m.StartTime.Size()
  759. n += 1 + l + sovGenerated(uint64(l))
  760. }
  761. if m.CompletionTime != nil {
  762. l = m.CompletionTime.Size()
  763. n += 1 + l + sovGenerated(uint64(l))
  764. }
  765. n += 1 + sovGenerated(uint64(m.Active))
  766. n += 1 + sovGenerated(uint64(m.Succeeded))
  767. n += 1 + sovGenerated(uint64(m.Failed))
  768. return n
  769. }
  770. func (m *JobTemplate) Size() (n int) {
  771. var l int
  772. _ = l
  773. l = m.ObjectMeta.Size()
  774. n += 1 + l + sovGenerated(uint64(l))
  775. l = m.Template.Size()
  776. n += 1 + l + sovGenerated(uint64(l))
  777. return n
  778. }
  779. func (m *JobTemplateSpec) Size() (n int) {
  780. var l int
  781. _ = l
  782. l = m.ObjectMeta.Size()
  783. n += 1 + l + sovGenerated(uint64(l))
  784. l = m.Spec.Size()
  785. n += 1 + l + sovGenerated(uint64(l))
  786. return n
  787. }
  788. func (m *LabelSelector) Size() (n int) {
  789. var l int
  790. _ = l
  791. if len(m.MatchLabels) > 0 {
  792. for k, v := range m.MatchLabels {
  793. _ = k
  794. _ = v
  795. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
  796. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  797. }
  798. }
  799. if len(m.MatchExpressions) > 0 {
  800. for _, e := range m.MatchExpressions {
  801. l = e.Size()
  802. n += 1 + l + sovGenerated(uint64(l))
  803. }
  804. }
  805. return n
  806. }
  807. func (m *LabelSelectorRequirement) Size() (n int) {
  808. var l int
  809. _ = l
  810. l = len(m.Key)
  811. n += 1 + l + sovGenerated(uint64(l))
  812. l = len(m.Operator)
  813. n += 1 + l + sovGenerated(uint64(l))
  814. if len(m.Values) > 0 {
  815. for _, s := range m.Values {
  816. l = len(s)
  817. n += 1 + l + sovGenerated(uint64(l))
  818. }
  819. }
  820. return n
  821. }
  822. func (m *ScheduledJob) Size() (n int) {
  823. var l int
  824. _ = l
  825. l = m.ObjectMeta.Size()
  826. n += 1 + l + sovGenerated(uint64(l))
  827. l = m.Spec.Size()
  828. n += 1 + l + sovGenerated(uint64(l))
  829. l = m.Status.Size()
  830. n += 1 + l + sovGenerated(uint64(l))
  831. return n
  832. }
  833. func (m *ScheduledJobList) Size() (n int) {
  834. var l int
  835. _ = l
  836. l = m.ListMeta.Size()
  837. n += 1 + l + sovGenerated(uint64(l))
  838. if len(m.Items) > 0 {
  839. for _, e := range m.Items {
  840. l = e.Size()
  841. n += 1 + l + sovGenerated(uint64(l))
  842. }
  843. }
  844. return n
  845. }
  846. func (m *ScheduledJobSpec) Size() (n int) {
  847. var l int
  848. _ = l
  849. l = len(m.Schedule)
  850. n += 1 + l + sovGenerated(uint64(l))
  851. if m.StartingDeadlineSeconds != nil {
  852. n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds))
  853. }
  854. l = len(m.ConcurrencyPolicy)
  855. n += 1 + l + sovGenerated(uint64(l))
  856. if m.Suspend != nil {
  857. n += 2
  858. }
  859. l = m.JobTemplate.Size()
  860. n += 1 + l + sovGenerated(uint64(l))
  861. return n
  862. }
  863. func (m *ScheduledJobStatus) Size() (n int) {
  864. var l int
  865. _ = l
  866. if len(m.Active) > 0 {
  867. for _, e := range m.Active {
  868. l = e.Size()
  869. n += 1 + l + sovGenerated(uint64(l))
  870. }
  871. }
  872. if m.LastScheduleTime != nil {
  873. l = m.LastScheduleTime.Size()
  874. n += 1 + l + sovGenerated(uint64(l))
  875. }
  876. return n
  877. }
  878. func sovGenerated(x uint64) (n int) {
  879. for {
  880. n++
  881. x >>= 7
  882. if x == 0 {
  883. break
  884. }
  885. }
  886. return n
  887. }
  888. func sozGenerated(x uint64) (n int) {
  889. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  890. }
  891. func (this *Job) String() string {
  892. if this == nil {
  893. return "nil"
  894. }
  895. s := strings.Join([]string{`&Job{`,
  896. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  897. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
  898. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`,
  899. `}`,
  900. }, "")
  901. return s
  902. }
  903. func (this *JobCondition) String() string {
  904. if this == nil {
  905. return "nil"
  906. }
  907. s := strings.Join([]string{`&JobCondition{`,
  908. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  909. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  910. `LastProbeTime:` + strings.Replace(strings.Replace(this.LastProbeTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`,
  911. `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1), `&`, ``, 1) + `,`,
  912. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  913. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  914. `}`,
  915. }, "")
  916. return s
  917. }
  918. func (this *JobList) String() string {
  919. if this == nil {
  920. return "nil"
  921. }
  922. s := strings.Join([]string{`&JobList{`,
  923. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
  924. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Job", "Job", 1), `&`, ``, 1) + `,`,
  925. `}`,
  926. }, "")
  927. return s
  928. }
  929. func (this *JobSpec) String() string {
  930. if this == nil {
  931. return "nil"
  932. }
  933. s := strings.Join([]string{`&JobSpec{`,
  934. `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`,
  935. `Completions:` + valueToStringGenerated(this.Completions) + `,`,
  936. `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`,
  937. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`,
  938. `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`,
  939. `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
  940. `}`,
  941. }, "")
  942. return s
  943. }
  944. func (this *JobStatus) String() string {
  945. if this == nil {
  946. return "nil"
  947. }
  948. s := strings.Join([]string{`&JobStatus{`,
  949. `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "JobCondition", "JobCondition", 1), `&`, ``, 1) + `,`,
  950. `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`,
  951. `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`,
  952. `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
  953. `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`,
  954. `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`,
  955. `}`,
  956. }, "")
  957. return s
  958. }
  959. func (this *JobTemplate) String() string {
  960. if this == nil {
  961. return "nil"
  962. }
  963. s := strings.Join([]string{`&JobTemplate{`,
  964. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  965. `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
  966. `}`,
  967. }, "")
  968. return s
  969. }
  970. func (this *JobTemplateSpec) String() string {
  971. if this == nil {
  972. return "nil"
  973. }
  974. s := strings.Join([]string{`&JobTemplateSpec{`,
  975. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  976. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`,
  977. `}`,
  978. }, "")
  979. return s
  980. }
  981. func (this *LabelSelector) String() string {
  982. if this == nil {
  983. return "nil"
  984. }
  985. keysForMatchLabels := make([]string, 0, len(this.MatchLabels))
  986. for k := range this.MatchLabels {
  987. keysForMatchLabels = append(keysForMatchLabels, k)
  988. }
  989. github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels)
  990. mapStringForMatchLabels := "map[string]string{"
  991. for _, k := range keysForMatchLabels {
  992. mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k])
  993. }
  994. mapStringForMatchLabels += "}"
  995. s := strings.Join([]string{`&LabelSelector{`,
  996. `MatchLabels:` + mapStringForMatchLabels + `,`,
  997. `MatchExpressions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.MatchExpressions), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + `,`,
  998. `}`,
  999. }, "")
  1000. return s
  1001. }
  1002. func (this *LabelSelectorRequirement) String() string {
  1003. if this == nil {
  1004. return "nil"
  1005. }
  1006. s := strings.Join([]string{`&LabelSelectorRequirement{`,
  1007. `Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  1008. `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`,
  1009. `Values:` + fmt.Sprintf("%v", this.Values) + `,`,
  1010. `}`,
  1011. }, "")
  1012. return s
  1013. }
  1014. func (this *ScheduledJob) String() string {
  1015. if this == nil {
  1016. return "nil"
  1017. }
  1018. s := strings.Join([]string{`&ScheduledJob{`,
  1019. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  1020. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScheduledJobSpec", "ScheduledJobSpec", 1), `&`, ``, 1) + `,`,
  1021. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScheduledJobStatus", "ScheduledJobStatus", 1), `&`, ``, 1) + `,`,
  1022. `}`,
  1023. }, "")
  1024. return s
  1025. }
  1026. func (this *ScheduledJobList) String() string {
  1027. if this == nil {
  1028. return "nil"
  1029. }
  1030. s := strings.Join([]string{`&ScheduledJobList{`,
  1031. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_kubernetes_pkg_api_unversioned.ListMeta", 1), `&`, ``, 1) + `,`,
  1032. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ScheduledJob", "ScheduledJob", 1), `&`, ``, 1) + `,`,
  1033. `}`,
  1034. }, "")
  1035. return s
  1036. }
  1037. func (this *ScheduledJobSpec) String() string {
  1038. if this == nil {
  1039. return "nil"
  1040. }
  1041. s := strings.Join([]string{`&ScheduledJobSpec{`,
  1042. `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`,
  1043. `StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`,
  1044. `ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`,
  1045. `Suspend:` + valueToStringGenerated(this.Suspend) + `,`,
  1046. `JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
  1047. `}`,
  1048. }, "")
  1049. return s
  1050. }
  1051. func (this *ScheduledJobStatus) String() string {
  1052. if this == nil {
  1053. return "nil"
  1054. }
  1055. s := strings.Join([]string{`&ScheduledJobStatus{`,
  1056. `Active:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Active), "ObjectReference", "k8s_io_kubernetes_pkg_api_v1.ObjectReference", 1), `&`, ``, 1) + `,`,
  1057. `LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "k8s_io_kubernetes_pkg_api_unversioned.Time", 1) + `,`,
  1058. `}`,
  1059. }, "")
  1060. return s
  1061. }
  1062. func valueToStringGenerated(v interface{}) string {
  1063. rv := reflect.ValueOf(v)
  1064. if rv.IsNil() {
  1065. return "nil"
  1066. }
  1067. pv := reflect.Indirect(rv).Interface()
  1068. return fmt.Sprintf("*%v", pv)
  1069. }
  1070. func (m *Job) Unmarshal(data []byte) error {
  1071. l := len(data)
  1072. iNdEx := 0
  1073. for iNdEx < l {
  1074. preIndex := iNdEx
  1075. var wire uint64
  1076. for shift := uint(0); ; shift += 7 {
  1077. if shift >= 64 {
  1078. return ErrIntOverflowGenerated
  1079. }
  1080. if iNdEx >= l {
  1081. return io.ErrUnexpectedEOF
  1082. }
  1083. b := data[iNdEx]
  1084. iNdEx++
  1085. wire |= (uint64(b) & 0x7F) << shift
  1086. if b < 0x80 {
  1087. break
  1088. }
  1089. }
  1090. fieldNum := int32(wire >> 3)
  1091. wireType := int(wire & 0x7)
  1092. if wireType == 4 {
  1093. return fmt.Errorf("proto: Job: wiretype end group for non-group")
  1094. }
  1095. if fieldNum <= 0 {
  1096. return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire)
  1097. }
  1098. switch fieldNum {
  1099. case 1:
  1100. if wireType != 2 {
  1101. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1102. }
  1103. var msglen int
  1104. for shift := uint(0); ; shift += 7 {
  1105. if shift >= 64 {
  1106. return ErrIntOverflowGenerated
  1107. }
  1108. if iNdEx >= l {
  1109. return io.ErrUnexpectedEOF
  1110. }
  1111. b := data[iNdEx]
  1112. iNdEx++
  1113. msglen |= (int(b) & 0x7F) << shift
  1114. if b < 0x80 {
  1115. break
  1116. }
  1117. }
  1118. if msglen < 0 {
  1119. return ErrInvalidLengthGenerated
  1120. }
  1121. postIndex := iNdEx + msglen
  1122. if postIndex > l {
  1123. return io.ErrUnexpectedEOF
  1124. }
  1125. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1126. return err
  1127. }
  1128. iNdEx = postIndex
  1129. case 2:
  1130. if wireType != 2 {
  1131. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  1132. }
  1133. var msglen int
  1134. for shift := uint(0); ; shift += 7 {
  1135. if shift >= 64 {
  1136. return ErrIntOverflowGenerated
  1137. }
  1138. if iNdEx >= l {
  1139. return io.ErrUnexpectedEOF
  1140. }
  1141. b := data[iNdEx]
  1142. iNdEx++
  1143. msglen |= (int(b) & 0x7F) << shift
  1144. if b < 0x80 {
  1145. break
  1146. }
  1147. }
  1148. if msglen < 0 {
  1149. return ErrInvalidLengthGenerated
  1150. }
  1151. postIndex := iNdEx + msglen
  1152. if postIndex > l {
  1153. return io.ErrUnexpectedEOF
  1154. }
  1155. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1156. return err
  1157. }
  1158. iNdEx = postIndex
  1159. case 3:
  1160. if wireType != 2 {
  1161. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1162. }
  1163. var msglen int
  1164. for shift := uint(0); ; shift += 7 {
  1165. if shift >= 64 {
  1166. return ErrIntOverflowGenerated
  1167. }
  1168. if iNdEx >= l {
  1169. return io.ErrUnexpectedEOF
  1170. }
  1171. b := data[iNdEx]
  1172. iNdEx++
  1173. msglen |= (int(b) & 0x7F) << shift
  1174. if b < 0x80 {
  1175. break
  1176. }
  1177. }
  1178. if msglen < 0 {
  1179. return ErrInvalidLengthGenerated
  1180. }
  1181. postIndex := iNdEx + msglen
  1182. if postIndex > l {
  1183. return io.ErrUnexpectedEOF
  1184. }
  1185. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1186. return err
  1187. }
  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 {
  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 *JobCondition) 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: JobCondition: wiretype end group for non-group")
  1233. }
  1234. if fieldNum <= 0 {
  1235. return fmt.Errorf("proto: JobCondition: 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 Type", wireType)
  1241. }
  1242. var stringLen uint64
  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. stringLen |= (uint64(b) & 0x7F) << shift
  1253. if b < 0x80 {
  1254. break
  1255. }
  1256. }
  1257. intStringLen := int(stringLen)
  1258. if intStringLen < 0 {
  1259. return ErrInvalidLengthGenerated
  1260. }
  1261. postIndex := iNdEx + intStringLen
  1262. if postIndex > l {
  1263. return io.ErrUnexpectedEOF
  1264. }
  1265. m.Type = JobConditionType(data[iNdEx:postIndex])
  1266. iNdEx = postIndex
  1267. case 2:
  1268. if wireType != 2 {
  1269. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1270. }
  1271. var stringLen uint64
  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. stringLen |= (uint64(b) & 0x7F) << shift
  1282. if b < 0x80 {
  1283. break
  1284. }
  1285. }
  1286. intStringLen := int(stringLen)
  1287. if intStringLen < 0 {
  1288. return ErrInvalidLengthGenerated
  1289. }
  1290. postIndex := iNdEx + intStringLen
  1291. if postIndex > l {
  1292. return io.ErrUnexpectedEOF
  1293. }
  1294. m.Status = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(data[iNdEx:postIndex])
  1295. iNdEx = postIndex
  1296. case 3:
  1297. if wireType != 2 {
  1298. return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType)
  1299. }
  1300. var msglen int
  1301. for shift := uint(0); ; shift += 7 {
  1302. if shift >= 64 {
  1303. return ErrIntOverflowGenerated
  1304. }
  1305. if iNdEx >= l {
  1306. return io.ErrUnexpectedEOF
  1307. }
  1308. b := data[iNdEx]
  1309. iNdEx++
  1310. msglen |= (int(b) & 0x7F) << shift
  1311. if b < 0x80 {
  1312. break
  1313. }
  1314. }
  1315. if msglen < 0 {
  1316. return ErrInvalidLengthGenerated
  1317. }
  1318. postIndex := iNdEx + msglen
  1319. if postIndex > l {
  1320. return io.ErrUnexpectedEOF
  1321. }
  1322. if err := m.LastProbeTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1323. return err
  1324. }
  1325. iNdEx = postIndex
  1326. case 4:
  1327. if wireType != 2 {
  1328. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  1329. }
  1330. var msglen int
  1331. for shift := uint(0); ; shift += 7 {
  1332. if shift >= 64 {
  1333. return ErrIntOverflowGenerated
  1334. }
  1335. if iNdEx >= l {
  1336. return io.ErrUnexpectedEOF
  1337. }
  1338. b := data[iNdEx]
  1339. iNdEx++
  1340. msglen |= (int(b) & 0x7F) << shift
  1341. if b < 0x80 {
  1342. break
  1343. }
  1344. }
  1345. if msglen < 0 {
  1346. return ErrInvalidLengthGenerated
  1347. }
  1348. postIndex := iNdEx + msglen
  1349. if postIndex > l {
  1350. return io.ErrUnexpectedEOF
  1351. }
  1352. if err := m.LastTransitionTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1353. return err
  1354. }
  1355. iNdEx = postIndex
  1356. case 5:
  1357. if wireType != 2 {
  1358. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  1359. }
  1360. var stringLen uint64
  1361. for shift := uint(0); ; shift += 7 {
  1362. if shift >= 64 {
  1363. return ErrIntOverflowGenerated
  1364. }
  1365. if iNdEx >= l {
  1366. return io.ErrUnexpectedEOF
  1367. }
  1368. b := data[iNdEx]
  1369. iNdEx++
  1370. stringLen |= (uint64(b) & 0x7F) << shift
  1371. if b < 0x80 {
  1372. break
  1373. }
  1374. }
  1375. intStringLen := int(stringLen)
  1376. if intStringLen < 0 {
  1377. return ErrInvalidLengthGenerated
  1378. }
  1379. postIndex := iNdEx + intStringLen
  1380. if postIndex > l {
  1381. return io.ErrUnexpectedEOF
  1382. }
  1383. m.Reason = string(data[iNdEx:postIndex])
  1384. iNdEx = postIndex
  1385. case 6:
  1386. if wireType != 2 {
  1387. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1388. }
  1389. var stringLen uint64
  1390. for shift := uint(0); ; shift += 7 {
  1391. if shift >= 64 {
  1392. return ErrIntOverflowGenerated
  1393. }
  1394. if iNdEx >= l {
  1395. return io.ErrUnexpectedEOF
  1396. }
  1397. b := data[iNdEx]
  1398. iNdEx++
  1399. stringLen |= (uint64(b) & 0x7F) << shift
  1400. if b < 0x80 {
  1401. break
  1402. }
  1403. }
  1404. intStringLen := int(stringLen)
  1405. if intStringLen < 0 {
  1406. return ErrInvalidLengthGenerated
  1407. }
  1408. postIndex := iNdEx + intStringLen
  1409. if postIndex > l {
  1410. return io.ErrUnexpectedEOF
  1411. }
  1412. m.Message = string(data[iNdEx:postIndex])
  1413. iNdEx = postIndex
  1414. default:
  1415. iNdEx = preIndex
  1416. skippy, err := skipGenerated(data[iNdEx:])
  1417. if err != nil {
  1418. return err
  1419. }
  1420. if skippy < 0 {
  1421. return ErrInvalidLengthGenerated
  1422. }
  1423. if (iNdEx + skippy) > l {
  1424. return io.ErrUnexpectedEOF
  1425. }
  1426. iNdEx += skippy
  1427. }
  1428. }
  1429. if iNdEx > l {
  1430. return io.ErrUnexpectedEOF
  1431. }
  1432. return nil
  1433. }
  1434. func (m *JobList) Unmarshal(data []byte) error {
  1435. l := len(data)
  1436. iNdEx := 0
  1437. for iNdEx < l {
  1438. preIndex := iNdEx
  1439. var wire uint64
  1440. for shift := uint(0); ; shift += 7 {
  1441. if shift >= 64 {
  1442. return ErrIntOverflowGenerated
  1443. }
  1444. if iNdEx >= l {
  1445. return io.ErrUnexpectedEOF
  1446. }
  1447. b := data[iNdEx]
  1448. iNdEx++
  1449. wire |= (uint64(b) & 0x7F) << shift
  1450. if b < 0x80 {
  1451. break
  1452. }
  1453. }
  1454. fieldNum := int32(wire >> 3)
  1455. wireType := int(wire & 0x7)
  1456. if wireType == 4 {
  1457. return fmt.Errorf("proto: JobList: wiretype end group for non-group")
  1458. }
  1459. if fieldNum <= 0 {
  1460. return fmt.Errorf("proto: JobList: illegal tag %d (wire type %d)", fieldNum, wire)
  1461. }
  1462. switch fieldNum {
  1463. case 1:
  1464. if wireType != 2 {
  1465. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  1466. }
  1467. var msglen int
  1468. for shift := uint(0); ; shift += 7 {
  1469. if shift >= 64 {
  1470. return ErrIntOverflowGenerated
  1471. }
  1472. if iNdEx >= l {
  1473. return io.ErrUnexpectedEOF
  1474. }
  1475. b := data[iNdEx]
  1476. iNdEx++
  1477. msglen |= (int(b) & 0x7F) << shift
  1478. if b < 0x80 {
  1479. break
  1480. }
  1481. }
  1482. if msglen < 0 {
  1483. return ErrInvalidLengthGenerated
  1484. }
  1485. postIndex := iNdEx + msglen
  1486. if postIndex > l {
  1487. return io.ErrUnexpectedEOF
  1488. }
  1489. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1490. return err
  1491. }
  1492. iNdEx = postIndex
  1493. case 2:
  1494. if wireType != 2 {
  1495. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1496. }
  1497. var msglen int
  1498. for shift := uint(0); ; shift += 7 {
  1499. if shift >= 64 {
  1500. return ErrIntOverflowGenerated
  1501. }
  1502. if iNdEx >= l {
  1503. return io.ErrUnexpectedEOF
  1504. }
  1505. b := data[iNdEx]
  1506. iNdEx++
  1507. msglen |= (int(b) & 0x7F) << shift
  1508. if b < 0x80 {
  1509. break
  1510. }
  1511. }
  1512. if msglen < 0 {
  1513. return ErrInvalidLengthGenerated
  1514. }
  1515. postIndex := iNdEx + msglen
  1516. if postIndex > l {
  1517. return io.ErrUnexpectedEOF
  1518. }
  1519. m.Items = append(m.Items, Job{})
  1520. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1521. return err
  1522. }
  1523. iNdEx = postIndex
  1524. default:
  1525. iNdEx = preIndex
  1526. skippy, err := skipGenerated(data[iNdEx:])
  1527. if err != nil {
  1528. return err
  1529. }
  1530. if skippy < 0 {
  1531. return ErrInvalidLengthGenerated
  1532. }
  1533. if (iNdEx + skippy) > l {
  1534. return io.ErrUnexpectedEOF
  1535. }
  1536. iNdEx += skippy
  1537. }
  1538. }
  1539. if iNdEx > l {
  1540. return io.ErrUnexpectedEOF
  1541. }
  1542. return nil
  1543. }
  1544. func (m *JobSpec) Unmarshal(data []byte) error {
  1545. l := len(data)
  1546. iNdEx := 0
  1547. for iNdEx < l {
  1548. preIndex := iNdEx
  1549. var wire uint64
  1550. for shift := uint(0); ; shift += 7 {
  1551. if shift >= 64 {
  1552. return ErrIntOverflowGenerated
  1553. }
  1554. if iNdEx >= l {
  1555. return io.ErrUnexpectedEOF
  1556. }
  1557. b := data[iNdEx]
  1558. iNdEx++
  1559. wire |= (uint64(b) & 0x7F) << shift
  1560. if b < 0x80 {
  1561. break
  1562. }
  1563. }
  1564. fieldNum := int32(wire >> 3)
  1565. wireType := int(wire & 0x7)
  1566. if wireType == 4 {
  1567. return fmt.Errorf("proto: JobSpec: wiretype end group for non-group")
  1568. }
  1569. if fieldNum <= 0 {
  1570. return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1571. }
  1572. switch fieldNum {
  1573. case 1:
  1574. if wireType != 0 {
  1575. return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType)
  1576. }
  1577. var v int32
  1578. for shift := uint(0); ; shift += 7 {
  1579. if shift >= 64 {
  1580. return ErrIntOverflowGenerated
  1581. }
  1582. if iNdEx >= l {
  1583. return io.ErrUnexpectedEOF
  1584. }
  1585. b := data[iNdEx]
  1586. iNdEx++
  1587. v |= (int32(b) & 0x7F) << shift
  1588. if b < 0x80 {
  1589. break
  1590. }
  1591. }
  1592. m.Parallelism = &v
  1593. case 2:
  1594. if wireType != 0 {
  1595. return fmt.Errorf("proto: wrong wireType = %d for field Completions", wireType)
  1596. }
  1597. var v int32
  1598. for shift := uint(0); ; shift += 7 {
  1599. if shift >= 64 {
  1600. return ErrIntOverflowGenerated
  1601. }
  1602. if iNdEx >= l {
  1603. return io.ErrUnexpectedEOF
  1604. }
  1605. b := data[iNdEx]
  1606. iNdEx++
  1607. v |= (int32(b) & 0x7F) << shift
  1608. if b < 0x80 {
  1609. break
  1610. }
  1611. }
  1612. m.Completions = &v
  1613. case 3:
  1614. if wireType != 0 {
  1615. return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType)
  1616. }
  1617. var v int64
  1618. for shift := uint(0); ; shift += 7 {
  1619. if shift >= 64 {
  1620. return ErrIntOverflowGenerated
  1621. }
  1622. if iNdEx >= l {
  1623. return io.ErrUnexpectedEOF
  1624. }
  1625. b := data[iNdEx]
  1626. iNdEx++
  1627. v |= (int64(b) & 0x7F) << shift
  1628. if b < 0x80 {
  1629. break
  1630. }
  1631. }
  1632. m.ActiveDeadlineSeconds = &v
  1633. case 4:
  1634. if wireType != 2 {
  1635. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  1636. }
  1637. var msglen int
  1638. for shift := uint(0); ; shift += 7 {
  1639. if shift >= 64 {
  1640. return ErrIntOverflowGenerated
  1641. }
  1642. if iNdEx >= l {
  1643. return io.ErrUnexpectedEOF
  1644. }
  1645. b := data[iNdEx]
  1646. iNdEx++
  1647. msglen |= (int(b) & 0x7F) << shift
  1648. if b < 0x80 {
  1649. break
  1650. }
  1651. }
  1652. if msglen < 0 {
  1653. return ErrInvalidLengthGenerated
  1654. }
  1655. postIndex := iNdEx + msglen
  1656. if postIndex > l {
  1657. return io.ErrUnexpectedEOF
  1658. }
  1659. if m.Selector == nil {
  1660. m.Selector = &LabelSelector{}
  1661. }
  1662. if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1663. return err
  1664. }
  1665. iNdEx = postIndex
  1666. case 5:
  1667. if wireType != 0 {
  1668. return fmt.Errorf("proto: wrong wireType = %d for field ManualSelector", wireType)
  1669. }
  1670. var v int
  1671. for shift := uint(0); ; shift += 7 {
  1672. if shift >= 64 {
  1673. return ErrIntOverflowGenerated
  1674. }
  1675. if iNdEx >= l {
  1676. return io.ErrUnexpectedEOF
  1677. }
  1678. b := data[iNdEx]
  1679. iNdEx++
  1680. v |= (int(b) & 0x7F) << shift
  1681. if b < 0x80 {
  1682. break
  1683. }
  1684. }
  1685. b := bool(v != 0)
  1686. m.ManualSelector = &b
  1687. case 6:
  1688. if wireType != 2 {
  1689. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  1690. }
  1691. var msglen int
  1692. for shift := uint(0); ; shift += 7 {
  1693. if shift >= 64 {
  1694. return ErrIntOverflowGenerated
  1695. }
  1696. if iNdEx >= l {
  1697. return io.ErrUnexpectedEOF
  1698. }
  1699. b := data[iNdEx]
  1700. iNdEx++
  1701. msglen |= (int(b) & 0x7F) << shift
  1702. if b < 0x80 {
  1703. break
  1704. }
  1705. }
  1706. if msglen < 0 {
  1707. return ErrInvalidLengthGenerated
  1708. }
  1709. postIndex := iNdEx + msglen
  1710. if postIndex > l {
  1711. return io.ErrUnexpectedEOF
  1712. }
  1713. if err := m.Template.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1714. return err
  1715. }
  1716. iNdEx = postIndex
  1717. default:
  1718. iNdEx = preIndex
  1719. skippy, err := skipGenerated(data[iNdEx:])
  1720. if err != nil {
  1721. return err
  1722. }
  1723. if skippy < 0 {
  1724. return ErrInvalidLengthGenerated
  1725. }
  1726. if (iNdEx + skippy) > l {
  1727. return io.ErrUnexpectedEOF
  1728. }
  1729. iNdEx += skippy
  1730. }
  1731. }
  1732. if iNdEx > l {
  1733. return io.ErrUnexpectedEOF
  1734. }
  1735. return nil
  1736. }
  1737. func (m *JobStatus) Unmarshal(data []byte) error {
  1738. l := len(data)
  1739. iNdEx := 0
  1740. for iNdEx < l {
  1741. preIndex := iNdEx
  1742. var wire uint64
  1743. for shift := uint(0); ; shift += 7 {
  1744. if shift >= 64 {
  1745. return ErrIntOverflowGenerated
  1746. }
  1747. if iNdEx >= l {
  1748. return io.ErrUnexpectedEOF
  1749. }
  1750. b := data[iNdEx]
  1751. iNdEx++
  1752. wire |= (uint64(b) & 0x7F) << shift
  1753. if b < 0x80 {
  1754. break
  1755. }
  1756. }
  1757. fieldNum := int32(wire >> 3)
  1758. wireType := int(wire & 0x7)
  1759. if wireType == 4 {
  1760. return fmt.Errorf("proto: JobStatus: wiretype end group for non-group")
  1761. }
  1762. if fieldNum <= 0 {
  1763. return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1764. }
  1765. switch fieldNum {
  1766. case 1:
  1767. if wireType != 2 {
  1768. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  1769. }
  1770. var msglen int
  1771. for shift := uint(0); ; shift += 7 {
  1772. if shift >= 64 {
  1773. return ErrIntOverflowGenerated
  1774. }
  1775. if iNdEx >= l {
  1776. return io.ErrUnexpectedEOF
  1777. }
  1778. b := data[iNdEx]
  1779. iNdEx++
  1780. msglen |= (int(b) & 0x7F) << shift
  1781. if b < 0x80 {
  1782. break
  1783. }
  1784. }
  1785. if msglen < 0 {
  1786. return ErrInvalidLengthGenerated
  1787. }
  1788. postIndex := iNdEx + msglen
  1789. if postIndex > l {
  1790. return io.ErrUnexpectedEOF
  1791. }
  1792. m.Conditions = append(m.Conditions, JobCondition{})
  1793. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1794. return err
  1795. }
  1796. iNdEx = postIndex
  1797. case 2:
  1798. if wireType != 2 {
  1799. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  1800. }
  1801. var msglen int
  1802. for shift := uint(0); ; shift += 7 {
  1803. if shift >= 64 {
  1804. return ErrIntOverflowGenerated
  1805. }
  1806. if iNdEx >= l {
  1807. return io.ErrUnexpectedEOF
  1808. }
  1809. b := data[iNdEx]
  1810. iNdEx++
  1811. msglen |= (int(b) & 0x7F) << shift
  1812. if b < 0x80 {
  1813. break
  1814. }
  1815. }
  1816. if msglen < 0 {
  1817. return ErrInvalidLengthGenerated
  1818. }
  1819. postIndex := iNdEx + msglen
  1820. if postIndex > l {
  1821. return io.ErrUnexpectedEOF
  1822. }
  1823. if m.StartTime == nil {
  1824. m.StartTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
  1825. }
  1826. if err := m.StartTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1827. return err
  1828. }
  1829. iNdEx = postIndex
  1830. case 3:
  1831. if wireType != 2 {
  1832. return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType)
  1833. }
  1834. var msglen int
  1835. for shift := uint(0); ; shift += 7 {
  1836. if shift >= 64 {
  1837. return ErrIntOverflowGenerated
  1838. }
  1839. if iNdEx >= l {
  1840. return io.ErrUnexpectedEOF
  1841. }
  1842. b := data[iNdEx]
  1843. iNdEx++
  1844. msglen |= (int(b) & 0x7F) << shift
  1845. if b < 0x80 {
  1846. break
  1847. }
  1848. }
  1849. if msglen < 0 {
  1850. return ErrInvalidLengthGenerated
  1851. }
  1852. postIndex := iNdEx + msglen
  1853. if postIndex > l {
  1854. return io.ErrUnexpectedEOF
  1855. }
  1856. if m.CompletionTime == nil {
  1857. m.CompletionTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
  1858. }
  1859. if err := m.CompletionTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1860. return err
  1861. }
  1862. iNdEx = postIndex
  1863. case 4:
  1864. if wireType != 0 {
  1865. return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
  1866. }
  1867. m.Active = 0
  1868. for shift := uint(0); ; shift += 7 {
  1869. if shift >= 64 {
  1870. return ErrIntOverflowGenerated
  1871. }
  1872. if iNdEx >= l {
  1873. return io.ErrUnexpectedEOF
  1874. }
  1875. b := data[iNdEx]
  1876. iNdEx++
  1877. m.Active |= (int32(b) & 0x7F) << shift
  1878. if b < 0x80 {
  1879. break
  1880. }
  1881. }
  1882. case 5:
  1883. if wireType != 0 {
  1884. return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType)
  1885. }
  1886. m.Succeeded = 0
  1887. for shift := uint(0); ; shift += 7 {
  1888. if shift >= 64 {
  1889. return ErrIntOverflowGenerated
  1890. }
  1891. if iNdEx >= l {
  1892. return io.ErrUnexpectedEOF
  1893. }
  1894. b := data[iNdEx]
  1895. iNdEx++
  1896. m.Succeeded |= (int32(b) & 0x7F) << shift
  1897. if b < 0x80 {
  1898. break
  1899. }
  1900. }
  1901. case 6:
  1902. if wireType != 0 {
  1903. return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType)
  1904. }
  1905. m.Failed = 0
  1906. for shift := uint(0); ; shift += 7 {
  1907. if shift >= 64 {
  1908. return ErrIntOverflowGenerated
  1909. }
  1910. if iNdEx >= l {
  1911. return io.ErrUnexpectedEOF
  1912. }
  1913. b := data[iNdEx]
  1914. iNdEx++
  1915. m.Failed |= (int32(b) & 0x7F) << shift
  1916. if b < 0x80 {
  1917. break
  1918. }
  1919. }
  1920. default:
  1921. iNdEx = preIndex
  1922. skippy, err := skipGenerated(data[iNdEx:])
  1923. if err != nil {
  1924. return err
  1925. }
  1926. if skippy < 0 {
  1927. return ErrInvalidLengthGenerated
  1928. }
  1929. if (iNdEx + skippy) > l {
  1930. return io.ErrUnexpectedEOF
  1931. }
  1932. iNdEx += skippy
  1933. }
  1934. }
  1935. if iNdEx > l {
  1936. return io.ErrUnexpectedEOF
  1937. }
  1938. return nil
  1939. }
  1940. func (m *JobTemplate) Unmarshal(data []byte) error {
  1941. l := len(data)
  1942. iNdEx := 0
  1943. for iNdEx < l {
  1944. preIndex := iNdEx
  1945. var wire uint64
  1946. for shift := uint(0); ; shift += 7 {
  1947. if shift >= 64 {
  1948. return ErrIntOverflowGenerated
  1949. }
  1950. if iNdEx >= l {
  1951. return io.ErrUnexpectedEOF
  1952. }
  1953. b := data[iNdEx]
  1954. iNdEx++
  1955. wire |= (uint64(b) & 0x7F) << shift
  1956. if b < 0x80 {
  1957. break
  1958. }
  1959. }
  1960. fieldNum := int32(wire >> 3)
  1961. wireType := int(wire & 0x7)
  1962. if wireType == 4 {
  1963. return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group")
  1964. }
  1965. if fieldNum <= 0 {
  1966. return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
  1967. }
  1968. switch fieldNum {
  1969. case 1:
  1970. if wireType != 2 {
  1971. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1972. }
  1973. var msglen int
  1974. for shift := uint(0); ; shift += 7 {
  1975. if shift >= 64 {
  1976. return ErrIntOverflowGenerated
  1977. }
  1978. if iNdEx >= l {
  1979. return io.ErrUnexpectedEOF
  1980. }
  1981. b := data[iNdEx]
  1982. iNdEx++
  1983. msglen |= (int(b) & 0x7F) << shift
  1984. if b < 0x80 {
  1985. break
  1986. }
  1987. }
  1988. if msglen < 0 {
  1989. return ErrInvalidLengthGenerated
  1990. }
  1991. postIndex := iNdEx + msglen
  1992. if postIndex > l {
  1993. return io.ErrUnexpectedEOF
  1994. }
  1995. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1996. return err
  1997. }
  1998. iNdEx = postIndex
  1999. case 2:
  2000. if wireType != 2 {
  2001. return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType)
  2002. }
  2003. var msglen int
  2004. for shift := uint(0); ; shift += 7 {
  2005. if shift >= 64 {
  2006. return ErrIntOverflowGenerated
  2007. }
  2008. if iNdEx >= l {
  2009. return io.ErrUnexpectedEOF
  2010. }
  2011. b := data[iNdEx]
  2012. iNdEx++
  2013. msglen |= (int(b) & 0x7F) << shift
  2014. if b < 0x80 {
  2015. break
  2016. }
  2017. }
  2018. if msglen < 0 {
  2019. return ErrInvalidLengthGenerated
  2020. }
  2021. postIndex := iNdEx + msglen
  2022. if postIndex > l {
  2023. return io.ErrUnexpectedEOF
  2024. }
  2025. if err := m.Template.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2026. return err
  2027. }
  2028. iNdEx = postIndex
  2029. default:
  2030. iNdEx = preIndex
  2031. skippy, err := skipGenerated(data[iNdEx:])
  2032. if err != nil {
  2033. return err
  2034. }
  2035. if skippy < 0 {
  2036. return ErrInvalidLengthGenerated
  2037. }
  2038. if (iNdEx + skippy) > l {
  2039. return io.ErrUnexpectedEOF
  2040. }
  2041. iNdEx += skippy
  2042. }
  2043. }
  2044. if iNdEx > l {
  2045. return io.ErrUnexpectedEOF
  2046. }
  2047. return nil
  2048. }
  2049. func (m *JobTemplateSpec) Unmarshal(data []byte) error {
  2050. l := len(data)
  2051. iNdEx := 0
  2052. for iNdEx < l {
  2053. preIndex := iNdEx
  2054. var wire uint64
  2055. for shift := uint(0); ; shift += 7 {
  2056. if shift >= 64 {
  2057. return ErrIntOverflowGenerated
  2058. }
  2059. if iNdEx >= l {
  2060. return io.ErrUnexpectedEOF
  2061. }
  2062. b := data[iNdEx]
  2063. iNdEx++
  2064. wire |= (uint64(b) & 0x7F) << shift
  2065. if b < 0x80 {
  2066. break
  2067. }
  2068. }
  2069. fieldNum := int32(wire >> 3)
  2070. wireType := int(wire & 0x7)
  2071. if wireType == 4 {
  2072. return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group")
  2073. }
  2074. if fieldNum <= 0 {
  2075. return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2076. }
  2077. switch fieldNum {
  2078. case 1:
  2079. if wireType != 2 {
  2080. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  2081. }
  2082. var msglen int
  2083. for shift := uint(0); ; shift += 7 {
  2084. if shift >= 64 {
  2085. return ErrIntOverflowGenerated
  2086. }
  2087. if iNdEx >= l {
  2088. return io.ErrUnexpectedEOF
  2089. }
  2090. b := data[iNdEx]
  2091. iNdEx++
  2092. msglen |= (int(b) & 0x7F) << shift
  2093. if b < 0x80 {
  2094. break
  2095. }
  2096. }
  2097. if msglen < 0 {
  2098. return ErrInvalidLengthGenerated
  2099. }
  2100. postIndex := iNdEx + msglen
  2101. if postIndex > l {
  2102. return io.ErrUnexpectedEOF
  2103. }
  2104. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2105. return err
  2106. }
  2107. iNdEx = postIndex
  2108. case 2:
  2109. if wireType != 2 {
  2110. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2111. }
  2112. var msglen int
  2113. for shift := uint(0); ; shift += 7 {
  2114. if shift >= 64 {
  2115. return ErrIntOverflowGenerated
  2116. }
  2117. if iNdEx >= l {
  2118. return io.ErrUnexpectedEOF
  2119. }
  2120. b := data[iNdEx]
  2121. iNdEx++
  2122. msglen |= (int(b) & 0x7F) << shift
  2123. if b < 0x80 {
  2124. break
  2125. }
  2126. }
  2127. if msglen < 0 {
  2128. return ErrInvalidLengthGenerated
  2129. }
  2130. postIndex := iNdEx + msglen
  2131. if postIndex > l {
  2132. return io.ErrUnexpectedEOF
  2133. }
  2134. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2135. return err
  2136. }
  2137. iNdEx = postIndex
  2138. default:
  2139. iNdEx = preIndex
  2140. skippy, err := skipGenerated(data[iNdEx:])
  2141. if err != nil {
  2142. return err
  2143. }
  2144. if skippy < 0 {
  2145. return ErrInvalidLengthGenerated
  2146. }
  2147. if (iNdEx + skippy) > l {
  2148. return io.ErrUnexpectedEOF
  2149. }
  2150. iNdEx += skippy
  2151. }
  2152. }
  2153. if iNdEx > l {
  2154. return io.ErrUnexpectedEOF
  2155. }
  2156. return nil
  2157. }
  2158. func (m *LabelSelector) Unmarshal(data []byte) error {
  2159. l := len(data)
  2160. iNdEx := 0
  2161. for iNdEx < l {
  2162. preIndex := iNdEx
  2163. var wire uint64
  2164. for shift := uint(0); ; shift += 7 {
  2165. if shift >= 64 {
  2166. return ErrIntOverflowGenerated
  2167. }
  2168. if iNdEx >= l {
  2169. return io.ErrUnexpectedEOF
  2170. }
  2171. b := data[iNdEx]
  2172. iNdEx++
  2173. wire |= (uint64(b) & 0x7F) << shift
  2174. if b < 0x80 {
  2175. break
  2176. }
  2177. }
  2178. fieldNum := int32(wire >> 3)
  2179. wireType := int(wire & 0x7)
  2180. if wireType == 4 {
  2181. return fmt.Errorf("proto: LabelSelector: wiretype end group for non-group")
  2182. }
  2183. if fieldNum <= 0 {
  2184. return fmt.Errorf("proto: LabelSelector: illegal tag %d (wire type %d)", fieldNum, wire)
  2185. }
  2186. switch fieldNum {
  2187. case 1:
  2188. if wireType != 2 {
  2189. return fmt.Errorf("proto: wrong wireType = %d for field MatchLabels", wireType)
  2190. }
  2191. var msglen int
  2192. for shift := uint(0); ; shift += 7 {
  2193. if shift >= 64 {
  2194. return ErrIntOverflowGenerated
  2195. }
  2196. if iNdEx >= l {
  2197. return io.ErrUnexpectedEOF
  2198. }
  2199. b := data[iNdEx]
  2200. iNdEx++
  2201. msglen |= (int(b) & 0x7F) << shift
  2202. if b < 0x80 {
  2203. break
  2204. }
  2205. }
  2206. if msglen < 0 {
  2207. return ErrInvalidLengthGenerated
  2208. }
  2209. postIndex := iNdEx + msglen
  2210. if postIndex > l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. var keykey uint64
  2214. for shift := uint(0); ; shift += 7 {
  2215. if shift >= 64 {
  2216. return ErrIntOverflowGenerated
  2217. }
  2218. if iNdEx >= l {
  2219. return io.ErrUnexpectedEOF
  2220. }
  2221. b := data[iNdEx]
  2222. iNdEx++
  2223. keykey |= (uint64(b) & 0x7F) << shift
  2224. if b < 0x80 {
  2225. break
  2226. }
  2227. }
  2228. var stringLenmapkey uint64
  2229. for shift := uint(0); ; shift += 7 {
  2230. if shift >= 64 {
  2231. return ErrIntOverflowGenerated
  2232. }
  2233. if iNdEx >= l {
  2234. return io.ErrUnexpectedEOF
  2235. }
  2236. b := data[iNdEx]
  2237. iNdEx++
  2238. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2239. if b < 0x80 {
  2240. break
  2241. }
  2242. }
  2243. intStringLenmapkey := int(stringLenmapkey)
  2244. if intStringLenmapkey < 0 {
  2245. return ErrInvalidLengthGenerated
  2246. }
  2247. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2248. if postStringIndexmapkey > l {
  2249. return io.ErrUnexpectedEOF
  2250. }
  2251. mapkey := string(data[iNdEx:postStringIndexmapkey])
  2252. iNdEx = postStringIndexmapkey
  2253. var valuekey uint64
  2254. for shift := uint(0); ; shift += 7 {
  2255. if shift >= 64 {
  2256. return ErrIntOverflowGenerated
  2257. }
  2258. if iNdEx >= l {
  2259. return io.ErrUnexpectedEOF
  2260. }
  2261. b := data[iNdEx]
  2262. iNdEx++
  2263. valuekey |= (uint64(b) & 0x7F) << shift
  2264. if b < 0x80 {
  2265. break
  2266. }
  2267. }
  2268. var stringLenmapvalue uint64
  2269. for shift := uint(0); ; shift += 7 {
  2270. if shift >= 64 {
  2271. return ErrIntOverflowGenerated
  2272. }
  2273. if iNdEx >= l {
  2274. return io.ErrUnexpectedEOF
  2275. }
  2276. b := data[iNdEx]
  2277. iNdEx++
  2278. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  2279. if b < 0x80 {
  2280. break
  2281. }
  2282. }
  2283. intStringLenmapvalue := int(stringLenmapvalue)
  2284. if intStringLenmapvalue < 0 {
  2285. return ErrInvalidLengthGenerated
  2286. }
  2287. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2288. if postStringIndexmapvalue > l {
  2289. return io.ErrUnexpectedEOF
  2290. }
  2291. mapvalue := string(data[iNdEx:postStringIndexmapvalue])
  2292. iNdEx = postStringIndexmapvalue
  2293. if m.MatchLabels == nil {
  2294. m.MatchLabels = make(map[string]string)
  2295. }
  2296. m.MatchLabels[mapkey] = mapvalue
  2297. iNdEx = postIndex
  2298. case 2:
  2299. if wireType != 2 {
  2300. return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType)
  2301. }
  2302. var msglen int
  2303. for shift := uint(0); ; shift += 7 {
  2304. if shift >= 64 {
  2305. return ErrIntOverflowGenerated
  2306. }
  2307. if iNdEx >= l {
  2308. return io.ErrUnexpectedEOF
  2309. }
  2310. b := data[iNdEx]
  2311. iNdEx++
  2312. msglen |= (int(b) & 0x7F) << shift
  2313. if b < 0x80 {
  2314. break
  2315. }
  2316. }
  2317. if msglen < 0 {
  2318. return ErrInvalidLengthGenerated
  2319. }
  2320. postIndex := iNdEx + msglen
  2321. if postIndex > l {
  2322. return io.ErrUnexpectedEOF
  2323. }
  2324. m.MatchExpressions = append(m.MatchExpressions, LabelSelectorRequirement{})
  2325. if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  2326. return err
  2327. }
  2328. iNdEx = postIndex
  2329. default:
  2330. iNdEx = preIndex
  2331. skippy, err := skipGenerated(data[iNdEx:])
  2332. if err != nil {
  2333. return err
  2334. }
  2335. if skippy < 0 {
  2336. return ErrInvalidLengthGenerated
  2337. }
  2338. if (iNdEx + skippy) > l {
  2339. return io.ErrUnexpectedEOF
  2340. }
  2341. iNdEx += skippy
  2342. }
  2343. }
  2344. if iNdEx > l {
  2345. return io.ErrUnexpectedEOF
  2346. }
  2347. return nil
  2348. }
  2349. func (m *LabelSelectorRequirement) Unmarshal(data []byte) error {
  2350. l := len(data)
  2351. iNdEx := 0
  2352. for iNdEx < l {
  2353. preIndex := iNdEx
  2354. var wire uint64
  2355. for shift := uint(0); ; shift += 7 {
  2356. if shift >= 64 {
  2357. return ErrIntOverflowGenerated
  2358. }
  2359. if iNdEx >= l {
  2360. return io.ErrUnexpectedEOF
  2361. }
  2362. b := data[iNdEx]
  2363. iNdEx++
  2364. wire |= (uint64(b) & 0x7F) << shift
  2365. if b < 0x80 {
  2366. break
  2367. }
  2368. }
  2369. fieldNum := int32(wire >> 3)
  2370. wireType := int(wire & 0x7)
  2371. if wireType == 4 {
  2372. return fmt.Errorf("proto: LabelSelectorRequirement: wiretype end group for non-group")
  2373. }
  2374. if fieldNum <= 0 {
  2375. return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire)
  2376. }
  2377. switch fieldNum {
  2378. case 1:
  2379. if wireType != 2 {
  2380. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  2381. }
  2382. var stringLen uint64
  2383. for shift := uint(0); ; shift += 7 {
  2384. if shift >= 64 {
  2385. return ErrIntOverflowGenerated
  2386. }
  2387. if iNdEx >= l {
  2388. return io.ErrUnexpectedEOF
  2389. }
  2390. b := data[iNdEx]
  2391. iNdEx++
  2392. stringLen |= (uint64(b) & 0x7F) << shift
  2393. if b < 0x80 {
  2394. break
  2395. }
  2396. }
  2397. intStringLen := int(stringLen)
  2398. if intStringLen < 0 {
  2399. return ErrInvalidLengthGenerated
  2400. }
  2401. postIndex := iNdEx + intStringLen
  2402. if postIndex > l {
  2403. return io.ErrUnexpectedEOF
  2404. }
  2405. m.Key = string(data[iNdEx:postIndex])
  2406. iNdEx = postIndex
  2407. case 2:
  2408. if wireType != 2 {
  2409. return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType)
  2410. }
  2411. var stringLen uint64
  2412. for shift := uint(0); ; shift += 7 {
  2413. if shift >= 64 {
  2414. return ErrIntOverflowGenerated
  2415. }
  2416. if iNdEx >= l {
  2417. return io.ErrUnexpectedEOF
  2418. }
  2419. b := data[iNdEx]
  2420. iNdEx++
  2421. stringLen |= (uint64(b) & 0x7F) << shift
  2422. if b < 0x80 {
  2423. break
  2424. }
  2425. }
  2426. intStringLen := int(stringLen)
  2427. if intStringLen < 0 {
  2428. return ErrInvalidLengthGenerated
  2429. }
  2430. postIndex := iNdEx + intStringLen
  2431. if postIndex > l {
  2432. return io.ErrUnexpectedEOF
  2433. }
  2434. m.Operator = LabelSelectorOperator(data[iNdEx:postIndex])
  2435. iNdEx = postIndex
  2436. case 3:
  2437. if wireType != 2 {
  2438. return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  2439. }
  2440. var stringLen uint64
  2441. for shift := uint(0); ; shift += 7 {
  2442. if shift >= 64 {
  2443. return ErrIntOverflowGenerated
  2444. }
  2445. if iNdEx >= l {
  2446. return io.ErrUnexpectedEOF
  2447. }
  2448. b := data[iNdEx]
  2449. iNdEx++
  2450. stringLen |= (uint64(b) & 0x7F) << shift
  2451. if b < 0x80 {
  2452. break
  2453. }
  2454. }
  2455. intStringLen := int(stringLen)
  2456. if intStringLen < 0 {
  2457. return ErrInvalidLengthGenerated
  2458. }
  2459. postIndex := iNdEx + intStringLen
  2460. if postIndex > l {
  2461. return io.ErrUnexpectedEOF
  2462. }
  2463. m.Values = append(m.Values, string(data[iNdEx:postIndex]))
  2464. iNdEx = postIndex
  2465. default:
  2466. iNdEx = preIndex
  2467. skippy, err := skipGenerated(data[iNdEx:])
  2468. if err != nil {
  2469. return err
  2470. }
  2471. if skippy < 0 {
  2472. return ErrInvalidLengthGenerated
  2473. }
  2474. if (iNdEx + skippy) > l {
  2475. return io.ErrUnexpectedEOF
  2476. }
  2477. iNdEx += skippy
  2478. }
  2479. }
  2480. if iNdEx > l {
  2481. return io.ErrUnexpectedEOF
  2482. }
  2483. return nil
  2484. }
  2485. func (m *ScheduledJob) Unmarshal(data []byte) error {
  2486. l := len(data)
  2487. iNdEx := 0
  2488. for iNdEx < l {
  2489. preIndex := iNdEx
  2490. var wire uint64
  2491. for shift := uint(0); ; shift += 7 {
  2492. if shift >= 64 {
  2493. return ErrIntOverflowGenerated
  2494. }
  2495. if iNdEx >= l {
  2496. return io.ErrUnexpectedEOF
  2497. }
  2498. b := data[iNdEx]
  2499. iNdEx++
  2500. wire |= (uint64(b) & 0x7F) << shift
  2501. if b < 0x80 {
  2502. break
  2503. }
  2504. }
  2505. fieldNum := int32(wire >> 3)
  2506. wireType := int(wire & 0x7)
  2507. if wireType == 4 {
  2508. return fmt.Errorf("proto: ScheduledJob: wiretype end group for non-group")
  2509. }
  2510. if fieldNum <= 0 {
  2511. return fmt.Errorf("proto: ScheduledJob: illegal tag %d (wire type %d)", fieldNum, wire)
  2512. }
  2513. switch fieldNum {
  2514. case 1:
  2515. if wireType != 2 {
  2516. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  2517. }
  2518. var msglen int
  2519. for shift := uint(0); ; shift += 7 {
  2520. if shift >= 64 {
  2521. return ErrIntOverflowGenerated
  2522. }
  2523. if iNdEx >= l {
  2524. return io.ErrUnexpectedEOF
  2525. }
  2526. b := data[iNdEx]
  2527. iNdEx++
  2528. msglen |= (int(b) & 0x7F) << shift
  2529. if b < 0x80 {
  2530. break
  2531. }
  2532. }
  2533. if msglen < 0 {
  2534. return ErrInvalidLengthGenerated
  2535. }
  2536. postIndex := iNdEx + msglen
  2537. if postIndex > l {
  2538. return io.ErrUnexpectedEOF
  2539. }
  2540. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2541. return err
  2542. }
  2543. iNdEx = postIndex
  2544. case 2:
  2545. if wireType != 2 {
  2546. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2547. }
  2548. var msglen int
  2549. for shift := uint(0); ; shift += 7 {
  2550. if shift >= 64 {
  2551. return ErrIntOverflowGenerated
  2552. }
  2553. if iNdEx >= l {
  2554. return io.ErrUnexpectedEOF
  2555. }
  2556. b := data[iNdEx]
  2557. iNdEx++
  2558. msglen |= (int(b) & 0x7F) << shift
  2559. if b < 0x80 {
  2560. break
  2561. }
  2562. }
  2563. if msglen < 0 {
  2564. return ErrInvalidLengthGenerated
  2565. }
  2566. postIndex := iNdEx + msglen
  2567. if postIndex > l {
  2568. return io.ErrUnexpectedEOF
  2569. }
  2570. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2571. return err
  2572. }
  2573. iNdEx = postIndex
  2574. case 3:
  2575. if wireType != 2 {
  2576. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2577. }
  2578. var msglen int
  2579. for shift := uint(0); ; shift += 7 {
  2580. if shift >= 64 {
  2581. return ErrIntOverflowGenerated
  2582. }
  2583. if iNdEx >= l {
  2584. return io.ErrUnexpectedEOF
  2585. }
  2586. b := data[iNdEx]
  2587. iNdEx++
  2588. msglen |= (int(b) & 0x7F) << shift
  2589. if b < 0x80 {
  2590. break
  2591. }
  2592. }
  2593. if msglen < 0 {
  2594. return ErrInvalidLengthGenerated
  2595. }
  2596. postIndex := iNdEx + msglen
  2597. if postIndex > l {
  2598. return io.ErrUnexpectedEOF
  2599. }
  2600. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2601. return err
  2602. }
  2603. iNdEx = postIndex
  2604. default:
  2605. iNdEx = preIndex
  2606. skippy, err := skipGenerated(data[iNdEx:])
  2607. if err != nil {
  2608. return err
  2609. }
  2610. if skippy < 0 {
  2611. return ErrInvalidLengthGenerated
  2612. }
  2613. if (iNdEx + skippy) > l {
  2614. return io.ErrUnexpectedEOF
  2615. }
  2616. iNdEx += skippy
  2617. }
  2618. }
  2619. if iNdEx > l {
  2620. return io.ErrUnexpectedEOF
  2621. }
  2622. return nil
  2623. }
  2624. func (m *ScheduledJobList) Unmarshal(data []byte) error {
  2625. l := len(data)
  2626. iNdEx := 0
  2627. for iNdEx < l {
  2628. preIndex := iNdEx
  2629. var wire uint64
  2630. for shift := uint(0); ; shift += 7 {
  2631. if shift >= 64 {
  2632. return ErrIntOverflowGenerated
  2633. }
  2634. if iNdEx >= l {
  2635. return io.ErrUnexpectedEOF
  2636. }
  2637. b := data[iNdEx]
  2638. iNdEx++
  2639. wire |= (uint64(b) & 0x7F) << shift
  2640. if b < 0x80 {
  2641. break
  2642. }
  2643. }
  2644. fieldNum := int32(wire >> 3)
  2645. wireType := int(wire & 0x7)
  2646. if wireType == 4 {
  2647. return fmt.Errorf("proto: ScheduledJobList: wiretype end group for non-group")
  2648. }
  2649. if fieldNum <= 0 {
  2650. return fmt.Errorf("proto: ScheduledJobList: illegal tag %d (wire type %d)", fieldNum, wire)
  2651. }
  2652. switch fieldNum {
  2653. case 1:
  2654. if wireType != 2 {
  2655. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2656. }
  2657. var msglen int
  2658. for shift := uint(0); ; shift += 7 {
  2659. if shift >= 64 {
  2660. return ErrIntOverflowGenerated
  2661. }
  2662. if iNdEx >= l {
  2663. return io.ErrUnexpectedEOF
  2664. }
  2665. b := data[iNdEx]
  2666. iNdEx++
  2667. msglen |= (int(b) & 0x7F) << shift
  2668. if b < 0x80 {
  2669. break
  2670. }
  2671. }
  2672. if msglen < 0 {
  2673. return ErrInvalidLengthGenerated
  2674. }
  2675. postIndex := iNdEx + msglen
  2676. if postIndex > l {
  2677. return io.ErrUnexpectedEOF
  2678. }
  2679. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2680. return err
  2681. }
  2682. iNdEx = postIndex
  2683. case 2:
  2684. if wireType != 2 {
  2685. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2686. }
  2687. var msglen int
  2688. for shift := uint(0); ; shift += 7 {
  2689. if shift >= 64 {
  2690. return ErrIntOverflowGenerated
  2691. }
  2692. if iNdEx >= l {
  2693. return io.ErrUnexpectedEOF
  2694. }
  2695. b := data[iNdEx]
  2696. iNdEx++
  2697. msglen |= (int(b) & 0x7F) << shift
  2698. if b < 0x80 {
  2699. break
  2700. }
  2701. }
  2702. if msglen < 0 {
  2703. return ErrInvalidLengthGenerated
  2704. }
  2705. postIndex := iNdEx + msglen
  2706. if postIndex > l {
  2707. return io.ErrUnexpectedEOF
  2708. }
  2709. m.Items = append(m.Items, ScheduledJob{})
  2710. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  2711. return err
  2712. }
  2713. iNdEx = postIndex
  2714. default:
  2715. iNdEx = preIndex
  2716. skippy, err := skipGenerated(data[iNdEx:])
  2717. if err != nil {
  2718. return err
  2719. }
  2720. if skippy < 0 {
  2721. return ErrInvalidLengthGenerated
  2722. }
  2723. if (iNdEx + skippy) > l {
  2724. return io.ErrUnexpectedEOF
  2725. }
  2726. iNdEx += skippy
  2727. }
  2728. }
  2729. if iNdEx > l {
  2730. return io.ErrUnexpectedEOF
  2731. }
  2732. return nil
  2733. }
  2734. func (m *ScheduledJobSpec) Unmarshal(data []byte) error {
  2735. l := len(data)
  2736. iNdEx := 0
  2737. for iNdEx < l {
  2738. preIndex := iNdEx
  2739. var wire uint64
  2740. for shift := uint(0); ; shift += 7 {
  2741. if shift >= 64 {
  2742. return ErrIntOverflowGenerated
  2743. }
  2744. if iNdEx >= l {
  2745. return io.ErrUnexpectedEOF
  2746. }
  2747. b := data[iNdEx]
  2748. iNdEx++
  2749. wire |= (uint64(b) & 0x7F) << shift
  2750. if b < 0x80 {
  2751. break
  2752. }
  2753. }
  2754. fieldNum := int32(wire >> 3)
  2755. wireType := int(wire & 0x7)
  2756. if wireType == 4 {
  2757. return fmt.Errorf("proto: ScheduledJobSpec: wiretype end group for non-group")
  2758. }
  2759. if fieldNum <= 0 {
  2760. return fmt.Errorf("proto: ScheduledJobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2761. }
  2762. switch fieldNum {
  2763. case 1:
  2764. if wireType != 2 {
  2765. return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType)
  2766. }
  2767. var stringLen uint64
  2768. for shift := uint(0); ; shift += 7 {
  2769. if shift >= 64 {
  2770. return ErrIntOverflowGenerated
  2771. }
  2772. if iNdEx >= l {
  2773. return io.ErrUnexpectedEOF
  2774. }
  2775. b := data[iNdEx]
  2776. iNdEx++
  2777. stringLen |= (uint64(b) & 0x7F) << shift
  2778. if b < 0x80 {
  2779. break
  2780. }
  2781. }
  2782. intStringLen := int(stringLen)
  2783. if intStringLen < 0 {
  2784. return ErrInvalidLengthGenerated
  2785. }
  2786. postIndex := iNdEx + intStringLen
  2787. if postIndex > l {
  2788. return io.ErrUnexpectedEOF
  2789. }
  2790. m.Schedule = string(data[iNdEx:postIndex])
  2791. iNdEx = postIndex
  2792. case 2:
  2793. if wireType != 0 {
  2794. return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType)
  2795. }
  2796. var v int64
  2797. for shift := uint(0); ; shift += 7 {
  2798. if shift >= 64 {
  2799. return ErrIntOverflowGenerated
  2800. }
  2801. if iNdEx >= l {
  2802. return io.ErrUnexpectedEOF
  2803. }
  2804. b := data[iNdEx]
  2805. iNdEx++
  2806. v |= (int64(b) & 0x7F) << shift
  2807. if b < 0x80 {
  2808. break
  2809. }
  2810. }
  2811. m.StartingDeadlineSeconds = &v
  2812. case 3:
  2813. if wireType != 2 {
  2814. return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType)
  2815. }
  2816. var stringLen uint64
  2817. for shift := uint(0); ; shift += 7 {
  2818. if shift >= 64 {
  2819. return ErrIntOverflowGenerated
  2820. }
  2821. if iNdEx >= l {
  2822. return io.ErrUnexpectedEOF
  2823. }
  2824. b := data[iNdEx]
  2825. iNdEx++
  2826. stringLen |= (uint64(b) & 0x7F) << shift
  2827. if b < 0x80 {
  2828. break
  2829. }
  2830. }
  2831. intStringLen := int(stringLen)
  2832. if intStringLen < 0 {
  2833. return ErrInvalidLengthGenerated
  2834. }
  2835. postIndex := iNdEx + intStringLen
  2836. if postIndex > l {
  2837. return io.ErrUnexpectedEOF
  2838. }
  2839. m.ConcurrencyPolicy = ConcurrencyPolicy(data[iNdEx:postIndex])
  2840. iNdEx = postIndex
  2841. case 4:
  2842. if wireType != 0 {
  2843. return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType)
  2844. }
  2845. var v int
  2846. for shift := uint(0); ; shift += 7 {
  2847. if shift >= 64 {
  2848. return ErrIntOverflowGenerated
  2849. }
  2850. if iNdEx >= l {
  2851. return io.ErrUnexpectedEOF
  2852. }
  2853. b := data[iNdEx]
  2854. iNdEx++
  2855. v |= (int(b) & 0x7F) << shift
  2856. if b < 0x80 {
  2857. break
  2858. }
  2859. }
  2860. b := bool(v != 0)
  2861. m.Suspend = &b
  2862. case 5:
  2863. if wireType != 2 {
  2864. return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType)
  2865. }
  2866. var msglen int
  2867. for shift := uint(0); ; shift += 7 {
  2868. if shift >= 64 {
  2869. return ErrIntOverflowGenerated
  2870. }
  2871. if iNdEx >= l {
  2872. return io.ErrUnexpectedEOF
  2873. }
  2874. b := data[iNdEx]
  2875. iNdEx++
  2876. msglen |= (int(b) & 0x7F) << shift
  2877. if b < 0x80 {
  2878. break
  2879. }
  2880. }
  2881. if msglen < 0 {
  2882. return ErrInvalidLengthGenerated
  2883. }
  2884. postIndex := iNdEx + msglen
  2885. if postIndex > l {
  2886. return io.ErrUnexpectedEOF
  2887. }
  2888. if err := m.JobTemplate.Unmarshal(data[iNdEx:postIndex]); err != nil {
  2889. return err
  2890. }
  2891. iNdEx = postIndex
  2892. default:
  2893. iNdEx = preIndex
  2894. skippy, err := skipGenerated(data[iNdEx:])
  2895. if err != nil {
  2896. return err
  2897. }
  2898. if skippy < 0 {
  2899. return ErrInvalidLengthGenerated
  2900. }
  2901. if (iNdEx + skippy) > l {
  2902. return io.ErrUnexpectedEOF
  2903. }
  2904. iNdEx += skippy
  2905. }
  2906. }
  2907. if iNdEx > l {
  2908. return io.ErrUnexpectedEOF
  2909. }
  2910. return nil
  2911. }
  2912. func (m *ScheduledJobStatus) Unmarshal(data []byte) error {
  2913. l := len(data)
  2914. iNdEx := 0
  2915. for iNdEx < l {
  2916. preIndex := iNdEx
  2917. var wire uint64
  2918. for shift := uint(0); ; shift += 7 {
  2919. if shift >= 64 {
  2920. return ErrIntOverflowGenerated
  2921. }
  2922. if iNdEx >= l {
  2923. return io.ErrUnexpectedEOF
  2924. }
  2925. b := data[iNdEx]
  2926. iNdEx++
  2927. wire |= (uint64(b) & 0x7F) << shift
  2928. if b < 0x80 {
  2929. break
  2930. }
  2931. }
  2932. fieldNum := int32(wire >> 3)
  2933. wireType := int(wire & 0x7)
  2934. if wireType == 4 {
  2935. return fmt.Errorf("proto: ScheduledJobStatus: wiretype end group for non-group")
  2936. }
  2937. if fieldNum <= 0 {
  2938. return fmt.Errorf("proto: ScheduledJobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2939. }
  2940. switch fieldNum {
  2941. case 1:
  2942. if wireType != 2 {
  2943. return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
  2944. }
  2945. var msglen int
  2946. for shift := uint(0); ; shift += 7 {
  2947. if shift >= 64 {
  2948. return ErrIntOverflowGenerated
  2949. }
  2950. if iNdEx >= l {
  2951. return io.ErrUnexpectedEOF
  2952. }
  2953. b := data[iNdEx]
  2954. iNdEx++
  2955. msglen |= (int(b) & 0x7F) << shift
  2956. if b < 0x80 {
  2957. break
  2958. }
  2959. }
  2960. if msglen < 0 {
  2961. return ErrInvalidLengthGenerated
  2962. }
  2963. postIndex := iNdEx + msglen
  2964. if postIndex > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. m.Active = append(m.Active, k8s_io_kubernetes_pkg_api_v1.ObjectReference{})
  2968. if err := m.Active[len(m.Active)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  2969. return err
  2970. }
  2971. iNdEx = postIndex
  2972. case 4:
  2973. if wireType != 2 {
  2974. return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType)
  2975. }
  2976. var msglen int
  2977. for shift := uint(0); ; shift += 7 {
  2978. if shift >= 64 {
  2979. return ErrIntOverflowGenerated
  2980. }
  2981. if iNdEx >= l {
  2982. return io.ErrUnexpectedEOF
  2983. }
  2984. b := data[iNdEx]
  2985. iNdEx++
  2986. msglen |= (int(b) & 0x7F) << shift
  2987. if b < 0x80 {
  2988. break
  2989. }
  2990. }
  2991. if msglen < 0 {
  2992. return ErrInvalidLengthGenerated
  2993. }
  2994. postIndex := iNdEx + msglen
  2995. if postIndex > l {
  2996. return io.ErrUnexpectedEOF
  2997. }
  2998. if m.LastScheduleTime == nil {
  2999. m.LastScheduleTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
  3000. }
  3001. if err := m.LastScheduleTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  3002. return err
  3003. }
  3004. iNdEx = postIndex
  3005. default:
  3006. iNdEx = preIndex
  3007. skippy, err := skipGenerated(data[iNdEx:])
  3008. if err != nil {
  3009. return err
  3010. }
  3011. if skippy < 0 {
  3012. return ErrInvalidLengthGenerated
  3013. }
  3014. if (iNdEx + skippy) > l {
  3015. return io.ErrUnexpectedEOF
  3016. }
  3017. iNdEx += skippy
  3018. }
  3019. }
  3020. if iNdEx > l {
  3021. return io.ErrUnexpectedEOF
  3022. }
  3023. return nil
  3024. }
  3025. func skipGenerated(data []byte) (n int, err error) {
  3026. l := len(data)
  3027. iNdEx := 0
  3028. for iNdEx < l {
  3029. var wire uint64
  3030. for shift := uint(0); ; shift += 7 {
  3031. if shift >= 64 {
  3032. return 0, ErrIntOverflowGenerated
  3033. }
  3034. if iNdEx >= l {
  3035. return 0, io.ErrUnexpectedEOF
  3036. }
  3037. b := data[iNdEx]
  3038. iNdEx++
  3039. wire |= (uint64(b) & 0x7F) << shift
  3040. if b < 0x80 {
  3041. break
  3042. }
  3043. }
  3044. wireType := int(wire & 0x7)
  3045. switch wireType {
  3046. case 0:
  3047. for shift := uint(0); ; shift += 7 {
  3048. if shift >= 64 {
  3049. return 0, ErrIntOverflowGenerated
  3050. }
  3051. if iNdEx >= l {
  3052. return 0, io.ErrUnexpectedEOF
  3053. }
  3054. iNdEx++
  3055. if data[iNdEx-1] < 0x80 {
  3056. break
  3057. }
  3058. }
  3059. return iNdEx, nil
  3060. case 1:
  3061. iNdEx += 8
  3062. return iNdEx, nil
  3063. case 2:
  3064. var length int
  3065. for shift := uint(0); ; shift += 7 {
  3066. if shift >= 64 {
  3067. return 0, ErrIntOverflowGenerated
  3068. }
  3069. if iNdEx >= l {
  3070. return 0, io.ErrUnexpectedEOF
  3071. }
  3072. b := data[iNdEx]
  3073. iNdEx++
  3074. length |= (int(b) & 0x7F) << shift
  3075. if b < 0x80 {
  3076. break
  3077. }
  3078. }
  3079. iNdEx += length
  3080. if length < 0 {
  3081. return 0, ErrInvalidLengthGenerated
  3082. }
  3083. return iNdEx, nil
  3084. case 3:
  3085. for {
  3086. var innerWire uint64
  3087. var start int = iNdEx
  3088. for shift := uint(0); ; shift += 7 {
  3089. if shift >= 64 {
  3090. return 0, ErrIntOverflowGenerated
  3091. }
  3092. if iNdEx >= l {
  3093. return 0, io.ErrUnexpectedEOF
  3094. }
  3095. b := data[iNdEx]
  3096. iNdEx++
  3097. innerWire |= (uint64(b) & 0x7F) << shift
  3098. if b < 0x80 {
  3099. break
  3100. }
  3101. }
  3102. innerWireType := int(innerWire & 0x7)
  3103. if innerWireType == 4 {
  3104. break
  3105. }
  3106. next, err := skipGenerated(data[start:])
  3107. if err != nil {
  3108. return 0, err
  3109. }
  3110. iNdEx = start + next
  3111. }
  3112. return iNdEx, nil
  3113. case 4:
  3114. return iNdEx, nil
  3115. case 5:
  3116. iNdEx += 4
  3117. return iNdEx, nil
  3118. default:
  3119. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3120. }
  3121. }
  3122. panic("unreachable")
  3123. }
  3124. var (
  3125. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  3126. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  3127. )
  3128. var fileDescriptorGenerated = []byte{
  3129. // 1300 bytes of a gzipped FileDescriptorProto
  3130. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xcf, 0x6f, 0x1b, 0xc5,
  3131. 0x17, 0xaf, 0xed, 0xd8, 0xb1, 0xc7, 0xf9, 0xe1, 0xcc, 0xb7, 0x51, 0xfd, 0x35, 0x22, 0xa9, 0x2c,
  3132. 0x81, 0x1a, 0x68, 0x76, 0x95, 0xa8, 0xa8, 0x21, 0x88, 0x4a, 0x6c, 0x08, 0x52, 0x21, 0x51, 0xa2,
  3133. 0x71, 0xa8, 0x10, 0xb4, 0x87, 0xf1, 0x7a, 0x62, 0x6f, 0xb3, 0xde, 0x75, 0x77, 0x67, 0x0d, 0xbe,
  3134. 0xf5, 0xca, 0x09, 0x24, 0xfe, 0x05, 0xce, 0xfc, 0x05, 0xf4, 0xc0, 0x2d, 0x37, 0x0a, 0x27, 0xc4,
  3135. 0x21, 0x82, 0xf2, 0x5f, 0xf4, 0xc4, 0x9b, 0xd9, 0xd9, 0xf5, 0xfa, 0x57, 0x14, 0x1b, 0x15, 0x89,
  3136. 0xc3, 0x4a, 0x9e, 0x37, 0xef, 0xf3, 0x99, 0x37, 0xf3, 0x3e, 0xf3, 0xe6, 0x19, 0xbd, 0x7b, 0xb6,
  3137. 0xe3, 0x6b, 0x96, 0xab, 0x9f, 0x05, 0x75, 0xe6, 0x39, 0x8c, 0x33, 0x5f, 0xef, 0x9c, 0x35, 0x75,
  3138. 0xda, 0xb1, 0x7c, 0xbd, 0x4e, 0xb9, 0xd9, 0xd2, 0xbb, 0xdb, 0xd4, 0xee, 0xb4, 0xe8, 0x96, 0xde,
  3139. 0x64, 0x0e, 0xf3, 0x28, 0x67, 0x0d, 0xad, 0xe3, 0xb9, 0xdc, 0xc5, 0x1b, 0x21, 0x54, 0xeb, 0x43,
  3140. 0x35, 0x80, 0x6a, 0x02, 0xaa, 0x49, 0xa8, 0x16, 0x41, 0x2b, 0x9b, 0x4d, 0x8b, 0xb7, 0x82, 0xba,
  3141. 0x66, 0xba, 0x6d, 0xbd, 0xe9, 0x36, 0x5d, 0x5d, 0x32, 0xd4, 0x83, 0x53, 0x39, 0x92, 0x03, 0xf9,
  3142. 0x2b, 0x64, 0xae, 0x6c, 0x4f, 0x0c, 0x4a, 0xf7, 0x98, 0xef, 0x06, 0x9e, 0xc9, 0x86, 0xa3, 0xa9,
  3143. 0xbc, 0x33, 0x19, 0x13, 0x38, 0x5d, 0xe6, 0xf9, 0x96, 0xeb, 0xb0, 0xc6, 0x08, 0xec, 0xf6, 0x64,
  3144. 0x58, 0x77, 0x64, 0xcb, 0x95, 0xcd, 0xf1, 0xde, 0x5e, 0xe0, 0x70, 0xab, 0x3d, 0x1a, 0xd3, 0xd6,
  3145. 0x78, 0xf7, 0x80, 0x5b, 0xb6, 0x6e, 0x39, 0xdc, 0xe7, 0xde, 0x30, 0xa4, 0xfa, 0x5d, 0x1a, 0x65,
  3146. 0x3e, 0x76, 0xeb, 0xf8, 0x33, 0x94, 0x6f, 0x33, 0x4e, 0x1b, 0x94, 0xd3, 0x72, 0xea, 0x66, 0xea,
  3147. 0x56, 0x71, 0xfb, 0x96, 0x36, 0xf1, 0xbc, 0xb5, 0xee, 0x96, 0x76, 0x54, 0x7f, 0xcc, 0x4c, 0x7e,
  3148. 0x08, 0x18, 0x03, 0x9f, 0x5f, 0xac, 0x5f, 0x7b, 0x71, 0xb1, 0x8e, 0xfa, 0x36, 0x12, 0xb3, 0xe1,
  3149. 0x13, 0x34, 0xe7, 0x77, 0x98, 0x59, 0x4e, 0x4b, 0xd6, 0x6d, 0xed, 0xca, 0x59, 0xd4, 0x20, 0xae,
  3150. 0x1a, 0x20, 0x8d, 0x05, 0xc5, 0x3f, 0x27, 0x46, 0x44, 0xb2, 0xe1, 0x87, 0x28, 0xe7, 0x73, 0xca,
  3151. 0x03, 0xbf, 0x9c, 0x91, 0xbc, 0x77, 0xa6, 0xe4, 0x95, 0x58, 0x63, 0x49, 0x31, 0xe7, 0xc2, 0x31,
  3152. 0x51, 0x9c, 0xd5, 0x5f, 0x33, 0x68, 0x01, 0xbc, 0xf6, 0x5c, 0xa7, 0x61, 0x71, 0x48, 0x24, 0xbe,
  3153. 0x83, 0xe6, 0x78, 0xaf, 0xc3, 0xe4, 0xd1, 0x14, 0x8c, 0x9b, 0x51, 0x40, 0x27, 0x60, 0x7b, 0x79,
  3154. 0xb1, 0x5e, 0x4a, 0xfa, 0x0a, 0x1b, 0x91, 0xde, 0xf8, 0x41, 0x1c, 0x64, 0x5a, 0xe2, 0xee, 0x0d,
  3155. 0x2e, 0x07, 0xc8, 0x4b, 0xe5, 0xa0, 0xc5, 0x9c, 0x83, 0xe1, 0xe1, 0x16, 0x5a, 0xb4, 0xa9, 0xcf,
  3156. 0x8f, 0x3d, 0xb7, 0xce, 0x4e, 0x40, 0x08, 0xea, 0x0c, 0xde, 0xbe, 0x24, 0x63, 0x09, 0x4d, 0x6a,
  3157. 0x02, 0x62, 0xac, 0xaa, 0x58, 0x16, 0x0f, 0x92, 0x4c, 0x64, 0x90, 0x18, 0x7f, 0x89, 0xb0, 0x30,
  3158. 0x9c, 0x78, 0xd4, 0xf1, 0xc3, 0xdd, 0x89, 0xe5, 0xe6, 0xa6, 0x5f, 0xae, 0xa2, 0x96, 0xc3, 0x07,
  3159. 0x23, 0x74, 0x64, 0xcc, 0x12, 0xf8, 0x4d, 0x94, 0xf3, 0x18, 0xf5, 0x5d, 0xa7, 0x9c, 0x95, 0x47,
  3160. 0x17, 0x67, 0x8a, 0x48, 0x2b, 0x51, 0xb3, 0x78, 0x03, 0xcd, 0xb7, 0x99, 0xef, 0xd3, 0x26, 0x2b,
  3161. 0xe7, 0xa4, 0xe3, 0xb2, 0x72, 0x9c, 0x3f, 0x0c, 0xcd, 0x24, 0x9a, 0xaf, 0x3e, 0x4b, 0xa1, 0x79,
  3162. 0x48, 0xd4, 0x81, 0xe5, 0x73, 0xfc, 0x68, 0x44, 0xee, 0xfa, 0x15, 0x77, 0x23, 0xe0, 0x52, 0xf5,
  3163. 0x25, 0xb5, 0x50, 0x3e, 0xb2, 0x24, 0x34, 0x5f, 0x43, 0x59, 0x8b, 0xb3, 0xb6, 0xc8, 0x7b, 0x06,
  3164. 0xb8, 0xb5, 0xe9, 0xc4, 0x69, 0x2c, 0x2a, 0xea, 0xec, 0x7d, 0x41, 0x42, 0x42, 0xae, 0xea, 0xb3,
  3165. 0x8c, 0x8c, 0x5f, 0x5c, 0x02, 0xbc, 0x85, 0x8a, 0x1d, 0xea, 0x51, 0xdb, 0x66, 0xb6, 0xe5, 0xb7,
  3166. 0xe5, 0x16, 0xb2, 0xc6, 0x32, 0x40, 0x8a, 0xc7, 0x7d, 0x33, 0x49, 0xfa, 0x08, 0x08, 0x94, 0xc3,
  3167. 0x8e, 0xcd, 0xc4, 0x19, 0x87, 0x8a, 0x54, 0x90, 0xbd, 0xbe, 0x99, 0x24, 0x7d, 0xf0, 0x11, 0x5a,
  3168. 0xa5, 0x26, 0xb7, 0xba, 0xec, 0x43, 0x46, 0x1b, 0xb6, 0xe5, 0xb0, 0x1a, 0x33, 0x41, 0x92, 0xe1,
  3169. 0x9d, 0xcb, 0x18, 0xff, 0x07, 0xf0, 0xea, 0x07, 0xe3, 0x1c, 0xc8, 0x78, 0x1c, 0xae, 0xa3, 0xbc,
  3170. 0xcf, 0x6c, 0xa8, 0x11, 0xae, 0xa7, 0x44, 0xb4, 0x33, 0xc5, 0xd1, 0x1c, 0xd0, 0x3a, 0xb3, 0x6b,
  3171. 0x0a, 0x6f, 0x2c, 0x88, 0xb3, 0x8f, 0x46, 0x24, 0xe6, 0xc5, 0xbb, 0x68, 0xa9, 0x4d, 0x9d, 0x80,
  3172. 0xc6, 0x9e, 0x52, 0x41, 0x79, 0x03, 0x83, 0xff, 0xd2, 0xe1, 0xc0, 0x0c, 0x19, 0xf2, 0xc4, 0x5f,
  3173. 0xa0, 0x3c, 0x1c, 0x75, 0xc7, 0x86, 0x02, 0x29, 0xe5, 0x54, 0xdc, 0xde, 0xbc, 0xbc, 0x0a, 0x1e,
  3174. 0xbb, 0x8d, 0x13, 0x05, 0x90, 0xa5, 0x2a, 0x16, 0x45, 0x64, 0x25, 0x31, 0x61, 0xf5, 0xc7, 0x0c,
  3175. 0x2a, 0xc4, 0xa5, 0x07, 0x9f, 0x21, 0x64, 0x46, 0xd7, 0xdb, 0x87, 0x04, 0x0a, 0x9d, 0xdc, 0x9d,
  3176. 0x4e, 0x27, 0x71, 0x79, 0xe8, 0x57, 0xe0, 0xd8, 0xe4, 0x93, 0x04, 0x3d, 0x54, 0xf7, 0x02, 0x94,
  3177. 0x0e, 0x8f, 0xcb, 0xdb, 0x9b, 0x9e, 0xfe, 0xf6, 0x2e, 0x02, 0x77, 0xa1, 0x16, 0x31, 0x90, 0x3e,
  3178. 0x19, 0x6e, 0xa2, 0xa5, 0xbe, 0x62, 0x66, 0xad, 0x45, 0x32, 0x35, 0x7b, 0x03, 0x34, 0x64, 0x88,
  3179. 0x56, 0x14, 0x84, 0x50, 0x53, 0x52, 0x38, 0xd9, 0x7e, 0x41, 0x08, 0x05, 0x48, 0xd4, 0x2c, 0xd6,
  3180. 0x61, 0xab, 0x81, 0x69, 0x32, 0xd6, 0x60, 0x0d, 0x99, 0xf9, 0xac, 0xb1, 0xa2, 0x5c, 0x0b, 0xb5,
  3181. 0x68, 0x82, 0xf4, 0x7d, 0x04, 0xf1, 0x29, 0xb5, 0x6c, 0xf0, 0xce, 0x0d, 0x12, 0x7f, 0x24, 0xad,
  3182. 0x44, 0xcd, 0x56, 0x7f, 0x49, 0xa1, 0x22, 0x1c, 0x7a, 0x94, 0xd8, 0x57, 0xf8, 0x62, 0xb6, 0x12,
  3183. 0x2a, 0x0c, 0x93, 0xb5, 0x3b, 0x9d, 0x30, 0xae, 0x2c, 0xc9, 0x9f, 0x52, 0x68, 0x79, 0xc8, 0xff,
  3184. 0xbf, 0xd6, 0x09, 0x54, 0x2f, 0xd2, 0x68, 0x71, 0xa0, 0x32, 0xe0, 0xa7, 0x90, 0xa9, 0xb6, 0x20,
  3185. 0x90, 0xe6, 0xe8, 0x72, 0xdd, 0x9f, 0xb5, 0xd2, 0x68, 0x87, 0x7d, 0xae, 0x7d, 0x87, 0x7b, 0x3d,
  3186. 0xe3, 0x7f, 0x2a, 0x8c, 0x62, 0x62, 0x86, 0x24, 0x97, 0xc4, 0x5f, 0xa7, 0x50, 0x49, 0x8e, 0xf7,
  3187. 0xbf, 0xea, 0x40, 0x0b, 0xe9, 0xab, 0x92, 0x2b, 0xe2, 0xd8, 0x9b, 0x35, 0x0e, 0xc2, 0x9e, 0x04,
  3188. 0x96, 0xc7, 0xda, 0xcc, 0xe1, 0x46, 0x59, 0x45, 0x50, 0x3a, 0x1c, 0x5a, 0x84, 0x8c, 0x2c, 0x5b,
  3189. 0xb9, 0x87, 0x4a, 0xc3, 0x3b, 0xc0, 0x25, 0x94, 0x39, 0x63, 0xbd, 0xb0, 0x9d, 0x21, 0xe2, 0x27,
  3190. 0xbe, 0x8e, 0xb2, 0x5d, 0x6a, 0x07, 0xa1, 0xe2, 0x0a, 0x24, 0x1c, 0xec, 0xa6, 0x77, 0x52, 0xd5,
  3191. 0xef, 0x53, 0xa8, 0x3c, 0x29, 0x10, 0xfc, 0x7a, 0x82, 0xc8, 0x28, 0xaa, 0xa8, 0x32, 0x9f, 0xb0,
  3192. 0x5e, 0xc8, 0xba, 0x8f, 0xf2, 0x6e, 0x47, 0x34, 0x9c, 0x50, 0x86, 0xc3, 0x1e, 0x68, 0x23, 0x92,
  3193. 0xe3, 0x91, 0xb2, 0x43, 0x17, 0xb4, 0x3a, 0x40, 0x1f, 0x4d, 0x90, 0x18, 0x8a, 0xab, 0x28, 0x27,
  3194. 0xe3, 0x11, 0x2f, 0x4f, 0x06, 0x48, 0x90, 0xb8, 0x9f, 0x0f, 0xa4, 0x85, 0xa8, 0x99, 0xea, 0x0f,
  3195. 0x69, 0xb4, 0x50, 0x33, 0x5b, 0xac, 0x11, 0xc0, 0x6d, 0x7d, 0xb5, 0x2d, 0xed, 0xa3, 0x01, 0x21,
  3196. 0xbf, 0x37, 0x45, 0x42, 0x93, 0x01, 0x4e, 0xec, 0x6d, 0xd9, 0x50, 0x6f, 0xfb, 0xfe, 0xac, 0x0b,
  3197. 0x5c, 0xde, 0xe4, 0xfe, 0x0c, 0x1a, 0x4d, 0xba, 0xff, 0x1b, 0x8d, 0xd1, 0xc3, 0xc1, 0xc6, 0xe8,
  3198. 0xee, 0x8c, 0x3b, 0x9b, 0xd0, 0x21, 0x7d, 0x93, 0x19, 0xdc, 0x91, 0xac, 0x67, 0xb7, 0xa1, 0xe7,
  3199. 0x50, 0x36, 0x25, 0xd3, 0x38, 0xc0, 0xc8, 0x97, 0xc4, 0x1e, 0xf8, 0x53, 0x74, 0x43, 0x3e, 0x6e,
  3200. 0x96, 0xd3, 0x1c, 0x6e, 0x7a, 0xd2, 0xb2, 0xe9, 0x79, 0x0d, 0x80, 0x37, 0x6a, 0xe3, 0x5d, 0xc8,
  3201. 0x24, 0x2c, 0xec, 0x7b, 0x05, 0x7e, 0x98, 0x81, 0xe7, 0x31, 0xc7, 0xec, 0x1d, 0xbb, 0xb6, 0x65,
  3202. 0xf6, 0x64, 0x76, 0x0b, 0x86, 0xa6, 0xa2, 0x59, 0xd9, 0x1b, 0x76, 0x78, 0x39, 0xce, 0x48, 0x46,
  3203. 0x89, 0xf0, 0x1b, 0x68, 0xde, 0x0f, 0x40, 0x3a, 0x4e, 0x43, 0x3e, 0x8e, 0x79, 0xa3, 0x28, 0x1a,
  3204. 0xe0, 0x5a, 0x68, 0x22, 0xd1, 0x1c, 0x7e, 0x82, 0x8a, 0x8f, 0xfb, 0xc5, 0x5e, 0x3e, 0x8e, 0xff,
  3205. 0xec, 0x69, 0x89, 0xeb, 0x60, 0x62, 0x82, 0x24, 0xd7, 0xa8, 0xfe, 0x9e, 0x42, 0x78, 0x54, 0x92,
  3206. 0x70, 0xca, 0xd1, 0x63, 0x1e, 0xd6, 0xe6, 0xcd, 0xab, 0x5c, 0x4c, 0xc2, 0x4e, 0x99, 0xd8, 0x35,
  3207. 0x9b, 0xf8, 0xf6, 0xb7, 0x51, 0x49, 0xfc, 0x95, 0x88, 0x16, 0x9c, 0xf5, 0xbf, 0xca, 0x75, 0x51,
  3208. 0x58, 0x0f, 0x86, 0x88, 0xc8, 0x08, 0xb5, 0xf1, 0xd6, 0xf9, 0x9f, 0x6b, 0xd7, 0x9e, 0xc3, 0xf7,
  3209. 0x1b, 0x7c, 0x4f, 0x5f, 0xac, 0xa5, 0xce, 0xe1, 0x7b, 0x0e, 0xdf, 0x1f, 0xf0, 0x7d, 0xfb, 0xd7,
  3210. 0xda, 0xb5, 0xcf, 0xf3, 0xd1, 0xd1, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x67, 0x5d, 0xb9, 0x32,
  3211. 0xf8, 0x10, 0x00, 0x00,
  3212. }