generated.pb.go 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  14. // source: k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1alpha1/generated.proto
  15. package v1alpha1
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. proto "github.com/gogo/protobuf/proto"
  20. math "math"
  21. math_bits "math/bits"
  22. reflect "reflect"
  23. strings "strings"
  24. )
  25. // Reference imports to suppress errors if they are not otherwise used.
  26. var _ = proto.Marshal
  27. var _ = fmt.Errorf
  28. var _ = math.Inf
  29. // This is a compile-time assertion to ensure that this generated file
  30. // is compatible with the proto package it is being compiled against.
  31. // A compilation error at this line likely means your copy of the
  32. // proto package needs to be updated.
  33. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  34. func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} }
  35. func (*FlowDistinguisherMethod) ProtoMessage() {}
  36. func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_45ba024d525b289b, []int{0}
  38. }
  39. func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error {
  40. return m.Unmarshal(b)
  41. }
  42. func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. b = b[:cap(b)]
  44. n, err := m.MarshalToSizedBuffer(b)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return b[:n], nil
  49. }
  50. func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src)
  52. }
  53. func (m *FlowDistinguisherMethod) XXX_Size() int {
  54. return m.Size()
  55. }
  56. func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() {
  57. xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo
  60. func (m *FlowSchema) Reset() { *m = FlowSchema{} }
  61. func (*FlowSchema) ProtoMessage() {}
  62. func (*FlowSchema) Descriptor() ([]byte, []int) {
  63. return fileDescriptor_45ba024d525b289b, []int{1}
  64. }
  65. func (m *FlowSchema) XXX_Unmarshal(b []byte) error {
  66. return m.Unmarshal(b)
  67. }
  68. func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  69. b = b[:cap(b)]
  70. n, err := m.MarshalToSizedBuffer(b)
  71. if err != nil {
  72. return nil, err
  73. }
  74. return b[:n], nil
  75. }
  76. func (m *FlowSchema) XXX_Merge(src proto.Message) {
  77. xxx_messageInfo_FlowSchema.Merge(m, src)
  78. }
  79. func (m *FlowSchema) XXX_Size() int {
  80. return m.Size()
  81. }
  82. func (m *FlowSchema) XXX_DiscardUnknown() {
  83. xxx_messageInfo_FlowSchema.DiscardUnknown(m)
  84. }
  85. var xxx_messageInfo_FlowSchema proto.InternalMessageInfo
  86. func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} }
  87. func (*FlowSchemaCondition) ProtoMessage() {}
  88. func (*FlowSchemaCondition) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_45ba024d525b289b, []int{2}
  90. }
  91. func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error {
  92. return m.Unmarshal(b)
  93. }
  94. func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. b = b[:cap(b)]
  96. n, err := m.MarshalToSizedBuffer(b)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return b[:n], nil
  101. }
  102. func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) {
  103. xxx_messageInfo_FlowSchemaCondition.Merge(m, src)
  104. }
  105. func (m *FlowSchemaCondition) XXX_Size() int {
  106. return m.Size()
  107. }
  108. func (m *FlowSchemaCondition) XXX_DiscardUnknown() {
  109. xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m)
  110. }
  111. var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo
  112. func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} }
  113. func (*FlowSchemaList) ProtoMessage() {}
  114. func (*FlowSchemaList) Descriptor() ([]byte, []int) {
  115. return fileDescriptor_45ba024d525b289b, []int{3}
  116. }
  117. func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error {
  118. return m.Unmarshal(b)
  119. }
  120. func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  121. b = b[:cap(b)]
  122. n, err := m.MarshalToSizedBuffer(b)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return b[:n], nil
  127. }
  128. func (m *FlowSchemaList) XXX_Merge(src proto.Message) {
  129. xxx_messageInfo_FlowSchemaList.Merge(m, src)
  130. }
  131. func (m *FlowSchemaList) XXX_Size() int {
  132. return m.Size()
  133. }
  134. func (m *FlowSchemaList) XXX_DiscardUnknown() {
  135. xxx_messageInfo_FlowSchemaList.DiscardUnknown(m)
  136. }
  137. var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo
  138. func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} }
  139. func (*FlowSchemaSpec) ProtoMessage() {}
  140. func (*FlowSchemaSpec) Descriptor() ([]byte, []int) {
  141. return fileDescriptor_45ba024d525b289b, []int{4}
  142. }
  143. func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error {
  144. return m.Unmarshal(b)
  145. }
  146. func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  147. b = b[:cap(b)]
  148. n, err := m.MarshalToSizedBuffer(b)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return b[:n], nil
  153. }
  154. func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) {
  155. xxx_messageInfo_FlowSchemaSpec.Merge(m, src)
  156. }
  157. func (m *FlowSchemaSpec) XXX_Size() int {
  158. return m.Size()
  159. }
  160. func (m *FlowSchemaSpec) XXX_DiscardUnknown() {
  161. xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m)
  162. }
  163. var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo
  164. func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} }
  165. func (*FlowSchemaStatus) ProtoMessage() {}
  166. func (*FlowSchemaStatus) Descriptor() ([]byte, []int) {
  167. return fileDescriptor_45ba024d525b289b, []int{5}
  168. }
  169. func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error {
  170. return m.Unmarshal(b)
  171. }
  172. func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  173. b = b[:cap(b)]
  174. n, err := m.MarshalToSizedBuffer(b)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return b[:n], nil
  179. }
  180. func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) {
  181. xxx_messageInfo_FlowSchemaStatus.Merge(m, src)
  182. }
  183. func (m *FlowSchemaStatus) XXX_Size() int {
  184. return m.Size()
  185. }
  186. func (m *FlowSchemaStatus) XXX_DiscardUnknown() {
  187. xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m)
  188. }
  189. var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo
  190. func (m *GroupSubject) Reset() { *m = GroupSubject{} }
  191. func (*GroupSubject) ProtoMessage() {}
  192. func (*GroupSubject) Descriptor() ([]byte, []int) {
  193. return fileDescriptor_45ba024d525b289b, []int{6}
  194. }
  195. func (m *GroupSubject) XXX_Unmarshal(b []byte) error {
  196. return m.Unmarshal(b)
  197. }
  198. func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  199. b = b[:cap(b)]
  200. n, err := m.MarshalToSizedBuffer(b)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return b[:n], nil
  205. }
  206. func (m *GroupSubject) XXX_Merge(src proto.Message) {
  207. xxx_messageInfo_GroupSubject.Merge(m, src)
  208. }
  209. func (m *GroupSubject) XXX_Size() int {
  210. return m.Size()
  211. }
  212. func (m *GroupSubject) XXX_DiscardUnknown() {
  213. xxx_messageInfo_GroupSubject.DiscardUnknown(m)
  214. }
  215. var xxx_messageInfo_GroupSubject proto.InternalMessageInfo
  216. func (m *LimitResponse) Reset() { *m = LimitResponse{} }
  217. func (*LimitResponse) ProtoMessage() {}
  218. func (*LimitResponse) Descriptor() ([]byte, []int) {
  219. return fileDescriptor_45ba024d525b289b, []int{7}
  220. }
  221. func (m *LimitResponse) XXX_Unmarshal(b []byte) error {
  222. return m.Unmarshal(b)
  223. }
  224. func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  225. b = b[:cap(b)]
  226. n, err := m.MarshalToSizedBuffer(b)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return b[:n], nil
  231. }
  232. func (m *LimitResponse) XXX_Merge(src proto.Message) {
  233. xxx_messageInfo_LimitResponse.Merge(m, src)
  234. }
  235. func (m *LimitResponse) XXX_Size() int {
  236. return m.Size()
  237. }
  238. func (m *LimitResponse) XXX_DiscardUnknown() {
  239. xxx_messageInfo_LimitResponse.DiscardUnknown(m)
  240. }
  241. var xxx_messageInfo_LimitResponse proto.InternalMessageInfo
  242. func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} }
  243. func (*LimitedPriorityLevelConfiguration) ProtoMessage() {}
  244. func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) {
  245. return fileDescriptor_45ba024d525b289b, []int{8}
  246. }
  247. func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error {
  248. return m.Unmarshal(b)
  249. }
  250. func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  251. b = b[:cap(b)]
  252. n, err := m.MarshalToSizedBuffer(b)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return b[:n], nil
  257. }
  258. func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) {
  259. xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src)
  260. }
  261. func (m *LimitedPriorityLevelConfiguration) XXX_Size() int {
  262. return m.Size()
  263. }
  264. func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() {
  265. xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m)
  266. }
  267. var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo
  268. func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} }
  269. func (*NonResourcePolicyRule) ProtoMessage() {}
  270. func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) {
  271. return fileDescriptor_45ba024d525b289b, []int{9}
  272. }
  273. func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error {
  274. return m.Unmarshal(b)
  275. }
  276. func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  277. b = b[:cap(b)]
  278. n, err := m.MarshalToSizedBuffer(b)
  279. if err != nil {
  280. return nil, err
  281. }
  282. return b[:n], nil
  283. }
  284. func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) {
  285. xxx_messageInfo_NonResourcePolicyRule.Merge(m, src)
  286. }
  287. func (m *NonResourcePolicyRule) XXX_Size() int {
  288. return m.Size()
  289. }
  290. func (m *NonResourcePolicyRule) XXX_DiscardUnknown() {
  291. xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m)
  292. }
  293. var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo
  294. func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} }
  295. func (*PolicyRulesWithSubjects) ProtoMessage() {}
  296. func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) {
  297. return fileDescriptor_45ba024d525b289b, []int{10}
  298. }
  299. func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error {
  300. return m.Unmarshal(b)
  301. }
  302. func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  303. b = b[:cap(b)]
  304. n, err := m.MarshalToSizedBuffer(b)
  305. if err != nil {
  306. return nil, err
  307. }
  308. return b[:n], nil
  309. }
  310. func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) {
  311. xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src)
  312. }
  313. func (m *PolicyRulesWithSubjects) XXX_Size() int {
  314. return m.Size()
  315. }
  316. func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() {
  317. xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m)
  318. }
  319. var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo
  320. func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} }
  321. func (*PriorityLevelConfiguration) ProtoMessage() {}
  322. func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) {
  323. return fileDescriptor_45ba024d525b289b, []int{11}
  324. }
  325. func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error {
  326. return m.Unmarshal(b)
  327. }
  328. func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  329. b = b[:cap(b)]
  330. n, err := m.MarshalToSizedBuffer(b)
  331. if err != nil {
  332. return nil, err
  333. }
  334. return b[:n], nil
  335. }
  336. func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) {
  337. xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src)
  338. }
  339. func (m *PriorityLevelConfiguration) XXX_Size() int {
  340. return m.Size()
  341. }
  342. func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() {
  343. xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m)
  344. }
  345. var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo
  346. func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} }
  347. func (*PriorityLevelConfigurationCondition) ProtoMessage() {}
  348. func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) {
  349. return fileDescriptor_45ba024d525b289b, []int{12}
  350. }
  351. func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error {
  352. return m.Unmarshal(b)
  353. }
  354. func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  355. b = b[:cap(b)]
  356. n, err := m.MarshalToSizedBuffer(b)
  357. if err != nil {
  358. return nil, err
  359. }
  360. return b[:n], nil
  361. }
  362. func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src)
  364. }
  365. func (m *PriorityLevelConfigurationCondition) XXX_Size() int {
  366. return m.Size()
  367. }
  368. func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() {
  369. xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo
  372. func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} }
  373. func (*PriorityLevelConfigurationList) ProtoMessage() {}
  374. func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) {
  375. return fileDescriptor_45ba024d525b289b, []int{13}
  376. }
  377. func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error {
  378. return m.Unmarshal(b)
  379. }
  380. func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  381. b = b[:cap(b)]
  382. n, err := m.MarshalToSizedBuffer(b)
  383. if err != nil {
  384. return nil, err
  385. }
  386. return b[:n], nil
  387. }
  388. func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) {
  389. xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src)
  390. }
  391. func (m *PriorityLevelConfigurationList) XXX_Size() int {
  392. return m.Size()
  393. }
  394. func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() {
  395. xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m)
  396. }
  397. var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo
  398. func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} }
  399. func (*PriorityLevelConfigurationReference) ProtoMessage() {}
  400. func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) {
  401. return fileDescriptor_45ba024d525b289b, []int{14}
  402. }
  403. func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error {
  404. return m.Unmarshal(b)
  405. }
  406. func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  407. b = b[:cap(b)]
  408. n, err := m.MarshalToSizedBuffer(b)
  409. if err != nil {
  410. return nil, err
  411. }
  412. return b[:n], nil
  413. }
  414. func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) {
  415. xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src)
  416. }
  417. func (m *PriorityLevelConfigurationReference) XXX_Size() int {
  418. return m.Size()
  419. }
  420. func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() {
  421. xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m)
  422. }
  423. var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo
  424. func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} }
  425. func (*PriorityLevelConfigurationSpec) ProtoMessage() {}
  426. func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) {
  427. return fileDescriptor_45ba024d525b289b, []int{15}
  428. }
  429. func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error {
  430. return m.Unmarshal(b)
  431. }
  432. func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  433. b = b[:cap(b)]
  434. n, err := m.MarshalToSizedBuffer(b)
  435. if err != nil {
  436. return nil, err
  437. }
  438. return b[:n], nil
  439. }
  440. func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) {
  441. xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src)
  442. }
  443. func (m *PriorityLevelConfigurationSpec) XXX_Size() int {
  444. return m.Size()
  445. }
  446. func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() {
  447. xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m)
  448. }
  449. var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo
  450. func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} }
  451. func (*PriorityLevelConfigurationStatus) ProtoMessage() {}
  452. func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) {
  453. return fileDescriptor_45ba024d525b289b, []int{16}
  454. }
  455. func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error {
  456. return m.Unmarshal(b)
  457. }
  458. func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  459. b = b[:cap(b)]
  460. n, err := m.MarshalToSizedBuffer(b)
  461. if err != nil {
  462. return nil, err
  463. }
  464. return b[:n], nil
  465. }
  466. func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) {
  467. xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src)
  468. }
  469. func (m *PriorityLevelConfigurationStatus) XXX_Size() int {
  470. return m.Size()
  471. }
  472. func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() {
  473. xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m)
  474. }
  475. var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo
  476. func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} }
  477. func (*QueuingConfiguration) ProtoMessage() {}
  478. func (*QueuingConfiguration) Descriptor() ([]byte, []int) {
  479. return fileDescriptor_45ba024d525b289b, []int{17}
  480. }
  481. func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error {
  482. return m.Unmarshal(b)
  483. }
  484. func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  485. b = b[:cap(b)]
  486. n, err := m.MarshalToSizedBuffer(b)
  487. if err != nil {
  488. return nil, err
  489. }
  490. return b[:n], nil
  491. }
  492. func (m *QueuingConfiguration) XXX_Merge(src proto.Message) {
  493. xxx_messageInfo_QueuingConfiguration.Merge(m, src)
  494. }
  495. func (m *QueuingConfiguration) XXX_Size() int {
  496. return m.Size()
  497. }
  498. func (m *QueuingConfiguration) XXX_DiscardUnknown() {
  499. xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m)
  500. }
  501. var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo
  502. func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} }
  503. func (*ResourcePolicyRule) ProtoMessage() {}
  504. func (*ResourcePolicyRule) Descriptor() ([]byte, []int) {
  505. return fileDescriptor_45ba024d525b289b, []int{18}
  506. }
  507. func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error {
  508. return m.Unmarshal(b)
  509. }
  510. func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  511. b = b[:cap(b)]
  512. n, err := m.MarshalToSizedBuffer(b)
  513. if err != nil {
  514. return nil, err
  515. }
  516. return b[:n], nil
  517. }
  518. func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) {
  519. xxx_messageInfo_ResourcePolicyRule.Merge(m, src)
  520. }
  521. func (m *ResourcePolicyRule) XXX_Size() int {
  522. return m.Size()
  523. }
  524. func (m *ResourcePolicyRule) XXX_DiscardUnknown() {
  525. xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m)
  526. }
  527. var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo
  528. func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} }
  529. func (*ServiceAccountSubject) ProtoMessage() {}
  530. func (*ServiceAccountSubject) Descriptor() ([]byte, []int) {
  531. return fileDescriptor_45ba024d525b289b, []int{19}
  532. }
  533. func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error {
  534. return m.Unmarshal(b)
  535. }
  536. func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  537. b = b[:cap(b)]
  538. n, err := m.MarshalToSizedBuffer(b)
  539. if err != nil {
  540. return nil, err
  541. }
  542. return b[:n], nil
  543. }
  544. func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) {
  545. xxx_messageInfo_ServiceAccountSubject.Merge(m, src)
  546. }
  547. func (m *ServiceAccountSubject) XXX_Size() int {
  548. return m.Size()
  549. }
  550. func (m *ServiceAccountSubject) XXX_DiscardUnknown() {
  551. xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m)
  552. }
  553. var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo
  554. func (m *Subject) Reset() { *m = Subject{} }
  555. func (*Subject) ProtoMessage() {}
  556. func (*Subject) Descriptor() ([]byte, []int) {
  557. return fileDescriptor_45ba024d525b289b, []int{20}
  558. }
  559. func (m *Subject) XXX_Unmarshal(b []byte) error {
  560. return m.Unmarshal(b)
  561. }
  562. func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  563. b = b[:cap(b)]
  564. n, err := m.MarshalToSizedBuffer(b)
  565. if err != nil {
  566. return nil, err
  567. }
  568. return b[:n], nil
  569. }
  570. func (m *Subject) XXX_Merge(src proto.Message) {
  571. xxx_messageInfo_Subject.Merge(m, src)
  572. }
  573. func (m *Subject) XXX_Size() int {
  574. return m.Size()
  575. }
  576. func (m *Subject) XXX_DiscardUnknown() {
  577. xxx_messageInfo_Subject.DiscardUnknown(m)
  578. }
  579. var xxx_messageInfo_Subject proto.InternalMessageInfo
  580. func (m *UserSubject) Reset() { *m = UserSubject{} }
  581. func (*UserSubject) ProtoMessage() {}
  582. func (*UserSubject) Descriptor() ([]byte, []int) {
  583. return fileDescriptor_45ba024d525b289b, []int{21}
  584. }
  585. func (m *UserSubject) XXX_Unmarshal(b []byte) error {
  586. return m.Unmarshal(b)
  587. }
  588. func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  589. b = b[:cap(b)]
  590. n, err := m.MarshalToSizedBuffer(b)
  591. if err != nil {
  592. return nil, err
  593. }
  594. return b[:n], nil
  595. }
  596. func (m *UserSubject) XXX_Merge(src proto.Message) {
  597. xxx_messageInfo_UserSubject.Merge(m, src)
  598. }
  599. func (m *UserSubject) XXX_Size() int {
  600. return m.Size()
  601. }
  602. func (m *UserSubject) XXX_DiscardUnknown() {
  603. xxx_messageInfo_UserSubject.DiscardUnknown(m)
  604. }
  605. var xxx_messageInfo_UserSubject proto.InternalMessageInfo
  606. func init() {
  607. proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowDistinguisherMethod")
  608. proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchema")
  609. proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaCondition")
  610. proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaList")
  611. proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaSpec")
  612. proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaStatus")
  613. proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.GroupSubject")
  614. proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1alpha1.LimitResponse")
  615. proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.LimitedPriorityLevelConfiguration")
  616. proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1alpha1.NonResourcePolicyRule")
  617. proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1alpha1.PolicyRulesWithSubjects")
  618. proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfiguration")
  619. proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationCondition")
  620. proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationList")
  621. proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationReference")
  622. proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationSpec")
  623. proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationStatus")
  624. proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.QueuingConfiguration")
  625. proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1alpha1.ResourcePolicyRule")
  626. proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.ServiceAccountSubject")
  627. proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1alpha1.Subject")
  628. proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.UserSubject")
  629. }
  630. func init() {
  631. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1alpha1/generated.proto", fileDescriptor_45ba024d525b289b)
  632. }
  633. var fileDescriptor_45ba024d525b289b = []byte{
  634. // 1502 bytes of a gzipped FileDescriptorProto
  635. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4d, 0x6f, 0xdb, 0x46,
  636. 0x13, 0x36, 0x65, 0xc9, 0xb6, 0xc6, 0x9f, 0x59, 0x27, 0xb0, 0xe0, 0x00, 0x92, 0xc3, 0x17, 0x78,
  637. 0x93, 0xf7, 0x4d, 0x42, 0xc6, 0x69, 0x92, 0xa6, 0x08, 0x8a, 0xc0, 0x74, 0xda, 0x7c, 0xd9, 0xae,
  638. 0xbd, 0x4e, 0x52, 0x34, 0x48, 0x81, 0xd0, 0xd4, 0x5a, 0xda, 0x58, 0x22, 0x59, 0x2e, 0xa9, 0xd4,
  639. 0x45, 0x0e, 0x05, 0xfa, 0x07, 0xfa, 0x03, 0x72, 0xec, 0xa1, 0xe7, 0xfe, 0x82, 0x1e, 0x8d, 0xa2,
  640. 0x87, 0x1c, 0x73, 0x12, 0x62, 0xf5, 0x5a, 0xf4, 0xdc, 0xe6, 0x54, 0xec, 0x72, 0x49, 0x8a, 0xfa,
  641. 0xb0, 0x94, 0x1a, 0xc8, 0xa9, 0x37, 0x71, 0x3e, 0x9e, 0xd9, 0x99, 0x9d, 0x99, 0x7d, 0x04, 0x77,
  642. 0xf6, 0xae, 0x33, 0x8d, 0x3a, 0xfa, 0x5e, 0xb0, 0x43, 0x3c, 0x9b, 0xf8, 0x84, 0xe9, 0x0d, 0x62,
  643. 0x97, 0x1d, 0x4f, 0x97, 0x0a, 0xd3, 0xa5, 0xfa, 0x6e, 0xcd, 0x79, 0x6e, 0x39, 0xb6, 0xef, 0x39,
  644. 0x35, 0xbd, 0xb1, 0x6c, 0xd6, 0xdc, 0xaa, 0xb9, 0xac, 0x57, 0x88, 0x4d, 0x3c, 0xd3, 0x27, 0x65,
  645. 0xcd, 0xf5, 0x1c, 0xdf, 0x41, 0xa5, 0xd0, 0x41, 0x33, 0x5d, 0xaa, 0xb5, 0x39, 0x68, 0x91, 0xc3,
  646. 0xe2, 0xc5, 0x0a, 0xf5, 0xab, 0xc1, 0x8e, 0x66, 0x39, 0x75, 0xbd, 0xe2, 0x54, 0x1c, 0x5d, 0xf8,
  647. 0xed, 0x04, 0xbb, 0xe2, 0x4b, 0x7c, 0x88, 0x5f, 0x21, 0xde, 0xe2, 0x95, 0xe4, 0x00, 0x75, 0xd3,
  648. 0xaa, 0x52, 0x9b, 0x78, 0xfb, 0xba, 0xbb, 0x57, 0xe1, 0x02, 0xa6, 0xd7, 0x89, 0x6f, 0xea, 0x8d,
  649. 0xae, 0x53, 0x2c, 0xea, 0xfd, 0xbc, 0xbc, 0xc0, 0xf6, 0x69, 0x9d, 0x74, 0x39, 0x5c, 0x1b, 0xe4,
  650. 0xc0, 0xac, 0x2a, 0xa9, 0x9b, 0x9d, 0x7e, 0xea, 0x63, 0x58, 0xf8, 0xb4, 0xe6, 0x3c, 0xbf, 0x45,
  651. 0x99, 0x4f, 0xed, 0x4a, 0x40, 0x59, 0x95, 0x78, 0xeb, 0xc4, 0xaf, 0x3a, 0x65, 0x74, 0x13, 0xb2,
  652. 0xfe, 0xbe, 0x4b, 0x0a, 0xca, 0x92, 0x72, 0x2e, 0x6f, 0x9c, 0x3f, 0x68, 0x96, 0x46, 0x5a, 0xcd,
  653. 0x52, 0xf6, 0xc1, 0xbe, 0x4b, 0xde, 0x36, 0x4b, 0xa7, 0xfb, 0xb8, 0x71, 0x35, 0x16, 0x8e, 0xea,
  654. 0xcb, 0x0c, 0x00, 0xb7, 0xda, 0x16, 0xa1, 0xd1, 0x53, 0x98, 0xe0, 0xe9, 0x96, 0x4d, 0xdf, 0x14,
  655. 0x98, 0x93, 0x97, 0x2f, 0x69, 0x49, 0xb1, 0xe3, 0x53, 0x6b, 0xee, 0x5e, 0x85, 0x0b, 0x98, 0xc6,
  656. 0xad, 0xb5, 0xc6, 0xb2, 0xf6, 0xd9, 0xce, 0x33, 0x62, 0xf9, 0xeb, 0xc4, 0x37, 0x0d, 0x24, 0x4f,
  657. 0x01, 0x89, 0x0c, 0xc7, 0xa8, 0x68, 0x0b, 0xb2, 0xcc, 0x25, 0x56, 0x21, 0x23, 0xd0, 0x75, 0x6d,
  658. 0xc0, 0x55, 0x6a, 0xc9, 0xe1, 0xb6, 0x5d, 0x62, 0x19, 0x53, 0x51, 0x8a, 0xfc, 0x0b, 0x0b, 0x28,
  659. 0xf4, 0x05, 0x8c, 0x31, 0xdf, 0xf4, 0x03, 0x56, 0x18, 0x15, 0xa0, 0xcb, 0xef, 0x02, 0x2a, 0x1c,
  660. 0x8d, 0x19, 0x09, 0x3b, 0x16, 0x7e, 0x63, 0x09, 0xa8, 0xbe, 0xce, 0xc0, 0x7c, 0x62, 0xbc, 0xea,
  661. 0xd8, 0x65, 0xea, 0x53, 0xc7, 0x46, 0x37, 0x52, 0x75, 0x3f, 0xdb, 0x51, 0xf7, 0x85, 0x1e, 0x2e,
  662. 0x49, 0xcd, 0xd1, 0x47, 0xf1, 0x79, 0x33, 0xc2, 0xfd, 0x4c, 0x3a, 0xf8, 0xdb, 0x66, 0x69, 0x36,
  663. 0x76, 0x4b, 0x9f, 0x07, 0x35, 0x00, 0xd5, 0x4c, 0xe6, 0x3f, 0xf0, 0x4c, 0x9b, 0x85, 0xb0, 0xb4,
  664. 0x4e, 0x64, 0xda, 0xff, 0x1f, 0xee, 0xa6, 0xb8, 0x87, 0xb1, 0x28, 0x43, 0xa2, 0xb5, 0x2e, 0x34,
  665. 0xdc, 0x23, 0x02, 0xfa, 0x2f, 0x8c, 0x79, 0xc4, 0x64, 0x8e, 0x5d, 0xc8, 0x8a, 0x23, 0xc7, 0xf5,
  666. 0xc2, 0x42, 0x8a, 0xa5, 0x16, 0xfd, 0x0f, 0xc6, 0xeb, 0x84, 0x31, 0xb3, 0x42, 0x0a, 0x39, 0x61,
  667. 0x38, 0x2b, 0x0d, 0xc7, 0xd7, 0x43, 0x31, 0x8e, 0xf4, 0xea, 0xcf, 0x0a, 0xcc, 0x24, 0x75, 0x5a,
  668. 0xa3, 0xcc, 0x47, 0x4f, 0xba, 0xba, 0x4f, 0x1b, 0x2e, 0x27, 0xee, 0x2d, 0x7a, 0x6f, 0x4e, 0x86,
  669. 0x9b, 0x88, 0x24, 0x6d, 0x9d, 0xb7, 0x09, 0x39, 0xea, 0x93, 0x3a, 0xaf, 0xfa, 0xe8, 0xb9, 0xc9,
  670. 0xcb, 0xe7, 0xdf, 0xa1, 0x4b, 0x8c, 0x69, 0x89, 0x9b, 0xbb, 0xcb, 0x11, 0x70, 0x08, 0xa4, 0xfe,
  671. 0x3e, 0xda, 0x9e, 0x02, 0xef, 0x48, 0xf4, 0xa3, 0x02, 0x8b, 0xae, 0x47, 0x1d, 0x8f, 0xfa, 0xfb,
  672. 0x6b, 0xa4, 0x41, 0x6a, 0xab, 0x8e, 0xbd, 0x4b, 0x2b, 0x81, 0x67, 0xf2, 0x5a, 0xca, 0xac, 0x6e,
  673. 0x0d, 0x0c, 0xbd, 0xd9, 0x17, 0x02, 0x93, 0x5d, 0xe2, 0x11, 0xdb, 0x22, 0x86, 0x2a, 0xcf, 0xb4,
  674. 0x78, 0x84, 0xf1, 0x11, 0x67, 0x41, 0xf7, 0x00, 0xd5, 0x4d, 0x9f, 0xd7, 0xb4, 0xb2, 0xe9, 0x11,
  675. 0x8b, 0x94, 0x39, 0xaa, 0x68, 0xc9, 0x5c, 0xd2, 0x1f, 0xeb, 0x5d, 0x16, 0xb8, 0x87, 0x17, 0xfa,
  676. 0x4e, 0x81, 0xf9, 0x72, 0xf7, 0xa2, 0x91, 0x9d, 0x79, 0x7d, 0xa8, 0x52, 0xf7, 0x58, 0x54, 0xc6,
  677. 0x42, 0xab, 0x59, 0x9a, 0xef, 0xa1, 0xc0, 0xbd, 0xa2, 0xa1, 0x2f, 0x21, 0xe7, 0x05, 0x35, 0xc2,
  678. 0x0a, 0x59, 0x71, 0xc3, 0x83, 0xc3, 0x6e, 0x3a, 0x35, 0x6a, 0xed, 0x63, 0xee, 0xf3, 0x39, 0xf5,
  679. 0xab, 0xdb, 0x81, 0xd8, 0x58, 0x2c, 0xb9, 0x6e, 0xa1, 0xc2, 0x21, 0xaa, 0xfa, 0x02, 0xe6, 0x3a,
  680. 0x17, 0x07, 0xaa, 0x02, 0x58, 0xd1, 0xac, 0xb2, 0x82, 0x22, 0xe2, 0x5e, 0x79, 0x87, 0xce, 0x8a,
  681. 0x07, 0x3d, 0x59, 0x9b, 0xb1, 0x88, 0xe1, 0x36, 0x6c, 0xf5, 0x12, 0x4c, 0xdd, 0xf6, 0x9c, 0xc0,
  682. 0x95, 0x87, 0x44, 0x4b, 0x90, 0xb5, 0xcd, 0x7a, 0xb4, 0x82, 0xe2, 0xbd, 0xb8, 0x61, 0xd6, 0x09,
  683. 0x16, 0x1a, 0xf5, 0x07, 0x05, 0xa6, 0xd7, 0x68, 0x9d, 0xfa, 0x98, 0x30, 0xd7, 0xb1, 0x19, 0x41,
  684. 0x57, 0x53, 0x6b, 0xeb, 0x4c, 0xc7, 0xda, 0x3a, 0x91, 0x32, 0x6e, 0x5b, 0x58, 0x4f, 0x60, 0xfc,
  685. 0xab, 0x80, 0x04, 0xd4, 0xae, 0xc8, 0xb5, 0x7d, 0x75, 0x60, 0x86, 0x5b, 0xa1, 0x7d, 0xaa, 0xe3,
  686. 0x8c, 0x49, 0xbe, 0x08, 0xa4, 0x06, 0x47, 0x90, 0xea, 0x1f, 0x0a, 0x9c, 0x11, 0x91, 0x49, 0xb9,
  687. 0x7f, 0x27, 0xa3, 0x27, 0x50, 0x30, 0x19, 0x0b, 0x3c, 0x52, 0x5e, 0x75, 0x6c, 0x2b, 0xf0, 0xf8,
  688. 0x0c, 0xec, 0x6f, 0x57, 0x4d, 0x8f, 0x30, 0x91, 0x4e, 0xce, 0x58, 0x92, 0xe9, 0x14, 0x56, 0xfa,
  689. 0xd8, 0xe1, 0xbe, 0x08, 0x68, 0x0f, 0xa6, 0x6b, 0xed, 0xc9, 0xcb, 0x3c, 0xb5, 0x81, 0x79, 0xa6,
  690. 0x4a, 0x66, 0x9c, 0x92, 0x47, 0x48, 0x97, 0x1d, 0xa7, 0xb1, 0xd5, 0xe7, 0x70, 0x6a, 0x83, 0x0f,
  691. 0x32, 0x73, 0x02, 0xcf, 0x22, 0x49, 0x0f, 0xa2, 0x12, 0xe4, 0x1a, 0xc4, 0xdb, 0x09, 0xfb, 0x28,
  692. 0x6f, 0xe4, 0x79, 0x07, 0x3e, 0xe2, 0x02, 0x1c, 0xca, 0xd1, 0xc7, 0x30, 0x6b, 0x27, 0x9e, 0x0f,
  693. 0xf1, 0x1a, 0x2b, 0x8c, 0x09, 0xd3, 0xf9, 0x56, 0xb3, 0x34, 0xbb, 0x91, 0x56, 0xe1, 0x4e, 0x5b,
  694. 0xf5, 0x30, 0x03, 0x0b, 0x7d, 0x5a, 0x1e, 0x3d, 0x82, 0x09, 0x26, 0x7f, 0xcb, 0x36, 0x3e, 0x37,
  695. 0x30, 0x79, 0xe9, 0x9c, 0x6c, 0xdd, 0x08, 0x0d, 0xc7, 0x58, 0xc8, 0x85, 0x69, 0x4f, 0x9e, 0x41,
  696. 0x04, 0x95, 0xdb, 0xf7, 0x83, 0x81, 0xe0, 0xdd, 0xf5, 0x49, 0xca, 0x8b, 0xdb, 0x11, 0x71, 0x3a,
  697. 0x00, 0x7a, 0x01, 0x73, 0x6d, 0x89, 0x87, 0x41, 0x47, 0x45, 0xd0, 0x6b, 0x03, 0x83, 0xf6, 0xbc,
  698. 0x17, 0xa3, 0x20, 0xe3, 0xce, 0x6d, 0x74, 0xe0, 0xe2, 0xae, 0x48, 0xea, 0xaf, 0x19, 0x38, 0x62,
  699. 0x21, 0xbf, 0x07, 0x82, 0x65, 0xa6, 0x08, 0xd6, 0xcd, 0x63, 0x3c, 0x35, 0x7d, 0x09, 0x17, 0xed,
  700. 0x20, 0x5c, 0x2b, 0xc7, 0x09, 0x72, 0x34, 0x01, 0xfb, 0x33, 0x03, 0xff, 0xe9, 0xef, 0x9c, 0x10,
  701. 0xb2, 0xfb, 0xa9, 0xcd, 0xf6, 0x61, 0xc7, 0x66, 0x3b, 0x3b, 0x04, 0xc4, 0xbf, 0x04, 0xad, 0x83,
  702. 0xa0, 0xbd, 0x51, 0xa0, 0xd8, 0xbf, 0x6e, 0xef, 0x81, 0xb0, 0x3d, 0x4d, 0x13, 0xb6, 0x1b, 0xc7,
  703. 0xe8, 0xb2, 0x3e, 0x04, 0xee, 0xf6, 0x51, 0xcd, 0x15, 0x33, 0xad, 0x21, 0x9e, 0xda, 0x83, 0x23,
  704. 0x6b, 0x25, 0x98, 0xe1, 0x80, 0xbf, 0x0c, 0x29, 0xef, 0x4f, 0x6c, 0x73, 0xa7, 0x46, 0xea, 0xc4,
  705. 0xf6, 0x65, 0x47, 0x52, 0x18, 0xaf, 0x85, 0x4f, 0xa4, 0x9c, 0x6b, 0x63, 0xb8, 0x97, 0xe9, 0xa8,
  706. 0x27, 0x35, 0x7c, 0x8e, 0xa5, 0x19, 0x8e, 0xf0, 0xd5, 0x97, 0x0a, 0x2c, 0x0d, 0x1a, 0x57, 0xf4,
  707. 0x75, 0x0f, 0xda, 0x73, 0x1c, 0x56, 0x3b, 0x3c, 0x0d, 0xfa, 0x49, 0x81, 0x93, 0xbd, 0xc8, 0x05,
  708. 0x9f, 0x00, 0xce, 0x28, 0x62, 0x3a, 0x10, 0x4f, 0xc0, 0x96, 0x90, 0x62, 0xa9, 0x45, 0x17, 0x60,
  709. 0xa2, 0x6a, 0xda, 0xe5, 0x6d, 0xfa, 0x4d, 0x44, 0x76, 0xe3, 0x1e, 0xbc, 0x23, 0xe5, 0x38, 0xb6,
  710. 0x40, 0xb7, 0x60, 0x4e, 0xf8, 0xad, 0x11, 0xbb, 0xe2, 0x57, 0x45, 0xb1, 0xc4, 0x34, 0xe7, 0x92,
  711. 0x47, 0x61, 0xab, 0x43, 0x8f, 0xbb, 0x3c, 0xd4, 0xbf, 0x14, 0x40, 0xff, 0xe4, 0xbd, 0x3f, 0x0f,
  712. 0x79, 0xd3, 0xa5, 0x82, 0xf6, 0x85, 0x53, 0x90, 0x37, 0xa6, 0x5b, 0xcd, 0x52, 0x7e, 0x65, 0xf3,
  713. 0x6e, 0x28, 0xc4, 0x89, 0x9e, 0x1b, 0x47, 0x0f, 0x61, 0xf8, 0xe0, 0x49, 0xe3, 0x28, 0x30, 0xc3,
  714. 0x89, 0x1e, 0x5d, 0x87, 0x29, 0xab, 0x16, 0x30, 0x9f, 0x78, 0xdb, 0x96, 0xe3, 0x12, 0xb1, 0x35,
  715. 0x26, 0x8c, 0x93, 0x32, 0xa7, 0xa9, 0xd5, 0x36, 0x1d, 0x4e, 0x59, 0x22, 0x0d, 0x80, 0xb7, 0x3c,
  716. 0x73, 0x4d, 0x1e, 0x27, 0x27, 0xe2, 0xcc, 0xf0, 0x0b, 0xdb, 0x88, 0xa5, 0xb8, 0xcd, 0x42, 0x7d,
  717. 0x06, 0xa7, 0xb6, 0x89, 0xd7, 0xa0, 0x16, 0x59, 0xb1, 0x2c, 0x27, 0xb0, 0xfd, 0x88, 0xc0, 0xea,
  718. 0x90, 0x8f, 0xcd, 0xe4, 0x54, 0x9c, 0x90, 0xf1, 0xf3, 0x31, 0x16, 0x4e, 0x6c, 0xe2, 0x31, 0xcc,
  719. 0xf4, 0x1d, 0xc3, 0x5f, 0x32, 0x30, 0x9e, 0xc0, 0x67, 0xf7, 0xa8, 0x5d, 0x96, 0xc8, 0xa7, 0x23,
  720. 0xeb, 0xfb, 0xd4, 0x2e, 0xbf, 0x6d, 0x96, 0x26, 0xa5, 0x19, 0xff, 0xc4, 0xc2, 0x10, 0xdd, 0x83,
  721. 0x6c, 0xc0, 0x88, 0x27, 0x07, 0xec, 0xc2, 0xc0, 0x6e, 0x7e, 0xc8, 0x88, 0x17, 0x31, 0xa0, 0x09,
  722. 0x0e, 0xcd, 0x05, 0x58, 0x60, 0xa0, 0x0d, 0xc8, 0x55, 0xf8, 0xad, 0xc8, 0xcd, 0x7f, 0x71, 0x20,
  723. 0x58, 0x3b, 0xb5, 0x0f, 0x1b, 0x41, 0x48, 0x70, 0x08, 0x83, 0x3c, 0x98, 0x61, 0xa9, 0x22, 0x8a,
  724. 0x0b, 0x1b, 0x86, 0xd1, 0xf4, 0xac, 0xbd, 0x81, 0x5a, 0xcd, 0xd2, 0x4c, 0x5a, 0x85, 0x3b, 0x22,
  725. 0xa8, 0x3a, 0x4c, 0xb6, 0xa5, 0x38, 0x78, 0x09, 0x1a, 0xda, 0xc1, 0x61, 0x71, 0xe4, 0xd5, 0x61,
  726. 0x71, 0xe4, 0xf5, 0x61, 0x71, 0xe4, 0xdb, 0x56, 0x51, 0x39, 0x68, 0x15, 0x95, 0x57, 0xad, 0xa2,
  727. 0xf2, 0xba, 0x55, 0x54, 0xde, 0xb4, 0x8a, 0xca, 0xf7, 0xbf, 0x15, 0x47, 0x1e, 0x4f, 0x44, 0x47,
  728. 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xb3, 0x17, 0x48, 0x11, 0x14, 0x00, 0x00,
  729. }
  730. func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) {
  731. size := m.Size()
  732. dAtA = make([]byte, size)
  733. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  734. if err != nil {
  735. return nil, err
  736. }
  737. return dAtA[:n], nil
  738. }
  739. func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) {
  740. size := m.Size()
  741. return m.MarshalToSizedBuffer(dAtA[:size])
  742. }
  743. func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  744. i := len(dAtA)
  745. _ = i
  746. var l int
  747. _ = l
  748. i -= len(m.Type)
  749. copy(dAtA[i:], m.Type)
  750. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  751. i--
  752. dAtA[i] = 0xa
  753. return len(dAtA) - i, nil
  754. }
  755. func (m *FlowSchema) Marshal() (dAtA []byte, err error) {
  756. size := m.Size()
  757. dAtA = make([]byte, size)
  758. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  759. if err != nil {
  760. return nil, err
  761. }
  762. return dAtA[:n], nil
  763. }
  764. func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) {
  765. size := m.Size()
  766. return m.MarshalToSizedBuffer(dAtA[:size])
  767. }
  768. func (m *FlowSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  769. i := len(dAtA)
  770. _ = i
  771. var l int
  772. _ = l
  773. {
  774. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  775. if err != nil {
  776. return 0, err
  777. }
  778. i -= size
  779. i = encodeVarintGenerated(dAtA, i, uint64(size))
  780. }
  781. i--
  782. dAtA[i] = 0x1a
  783. {
  784. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  785. if err != nil {
  786. return 0, err
  787. }
  788. i -= size
  789. i = encodeVarintGenerated(dAtA, i, uint64(size))
  790. }
  791. i--
  792. dAtA[i] = 0x12
  793. {
  794. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  795. if err != nil {
  796. return 0, err
  797. }
  798. i -= size
  799. i = encodeVarintGenerated(dAtA, i, uint64(size))
  800. }
  801. i--
  802. dAtA[i] = 0xa
  803. return len(dAtA) - i, nil
  804. }
  805. func (m *FlowSchemaCondition) Marshal() (dAtA []byte, err error) {
  806. size := m.Size()
  807. dAtA = make([]byte, size)
  808. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  809. if err != nil {
  810. return nil, err
  811. }
  812. return dAtA[:n], nil
  813. }
  814. func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) {
  815. size := m.Size()
  816. return m.MarshalToSizedBuffer(dAtA[:size])
  817. }
  818. func (m *FlowSchemaCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  819. i := len(dAtA)
  820. _ = i
  821. var l int
  822. _ = l
  823. i -= len(m.Message)
  824. copy(dAtA[i:], m.Message)
  825. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  826. i--
  827. dAtA[i] = 0x2a
  828. i -= len(m.Reason)
  829. copy(dAtA[i:], m.Reason)
  830. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  831. i--
  832. dAtA[i] = 0x22
  833. {
  834. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  835. if err != nil {
  836. return 0, err
  837. }
  838. i -= size
  839. i = encodeVarintGenerated(dAtA, i, uint64(size))
  840. }
  841. i--
  842. dAtA[i] = 0x1a
  843. i -= len(m.Status)
  844. copy(dAtA[i:], m.Status)
  845. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  846. i--
  847. dAtA[i] = 0x12
  848. i -= len(m.Type)
  849. copy(dAtA[i:], m.Type)
  850. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  851. i--
  852. dAtA[i] = 0xa
  853. return len(dAtA) - i, nil
  854. }
  855. func (m *FlowSchemaList) Marshal() (dAtA []byte, err error) {
  856. size := m.Size()
  857. dAtA = make([]byte, size)
  858. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  859. if err != nil {
  860. return nil, err
  861. }
  862. return dAtA[:n], nil
  863. }
  864. func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) {
  865. size := m.Size()
  866. return m.MarshalToSizedBuffer(dAtA[:size])
  867. }
  868. func (m *FlowSchemaList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  869. i := len(dAtA)
  870. _ = i
  871. var l int
  872. _ = l
  873. if len(m.Items) > 0 {
  874. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  875. {
  876. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  877. if err != nil {
  878. return 0, err
  879. }
  880. i -= size
  881. i = encodeVarintGenerated(dAtA, i, uint64(size))
  882. }
  883. i--
  884. dAtA[i] = 0x12
  885. }
  886. }
  887. {
  888. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  889. if err != nil {
  890. return 0, err
  891. }
  892. i -= size
  893. i = encodeVarintGenerated(dAtA, i, uint64(size))
  894. }
  895. i--
  896. dAtA[i] = 0xa
  897. return len(dAtA) - i, nil
  898. }
  899. func (m *FlowSchemaSpec) Marshal() (dAtA []byte, err error) {
  900. size := m.Size()
  901. dAtA = make([]byte, size)
  902. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  903. if err != nil {
  904. return nil, err
  905. }
  906. return dAtA[:n], nil
  907. }
  908. func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) {
  909. size := m.Size()
  910. return m.MarshalToSizedBuffer(dAtA[:size])
  911. }
  912. func (m *FlowSchemaSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  913. i := len(dAtA)
  914. _ = i
  915. var l int
  916. _ = l
  917. if len(m.Rules) > 0 {
  918. for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
  919. {
  920. size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  921. if err != nil {
  922. return 0, err
  923. }
  924. i -= size
  925. i = encodeVarintGenerated(dAtA, i, uint64(size))
  926. }
  927. i--
  928. dAtA[i] = 0x22
  929. }
  930. }
  931. if m.DistinguisherMethod != nil {
  932. {
  933. size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i])
  934. if err != nil {
  935. return 0, err
  936. }
  937. i -= size
  938. i = encodeVarintGenerated(dAtA, i, uint64(size))
  939. }
  940. i--
  941. dAtA[i] = 0x1a
  942. }
  943. i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence))
  944. i--
  945. dAtA[i] = 0x10
  946. {
  947. size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i])
  948. if err != nil {
  949. return 0, err
  950. }
  951. i -= size
  952. i = encodeVarintGenerated(dAtA, i, uint64(size))
  953. }
  954. i--
  955. dAtA[i] = 0xa
  956. return len(dAtA) - i, nil
  957. }
  958. func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) {
  959. size := m.Size()
  960. dAtA = make([]byte, size)
  961. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  962. if err != nil {
  963. return nil, err
  964. }
  965. return dAtA[:n], nil
  966. }
  967. func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) {
  968. size := m.Size()
  969. return m.MarshalToSizedBuffer(dAtA[:size])
  970. }
  971. func (m *FlowSchemaStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  972. i := len(dAtA)
  973. _ = i
  974. var l int
  975. _ = l
  976. if len(m.Conditions) > 0 {
  977. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  978. {
  979. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  980. if err != nil {
  981. return 0, err
  982. }
  983. i -= size
  984. i = encodeVarintGenerated(dAtA, i, uint64(size))
  985. }
  986. i--
  987. dAtA[i] = 0xa
  988. }
  989. }
  990. return len(dAtA) - i, nil
  991. }
  992. func (m *GroupSubject) Marshal() (dAtA []byte, err error) {
  993. size := m.Size()
  994. dAtA = make([]byte, size)
  995. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  996. if err != nil {
  997. return nil, err
  998. }
  999. return dAtA[:n], nil
  1000. }
  1001. func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) {
  1002. size := m.Size()
  1003. return m.MarshalToSizedBuffer(dAtA[:size])
  1004. }
  1005. func (m *GroupSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1006. i := len(dAtA)
  1007. _ = i
  1008. var l int
  1009. _ = l
  1010. i -= len(m.Name)
  1011. copy(dAtA[i:], m.Name)
  1012. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1013. i--
  1014. dAtA[i] = 0xa
  1015. return len(dAtA) - i, nil
  1016. }
  1017. func (m *LimitResponse) Marshal() (dAtA []byte, err error) {
  1018. size := m.Size()
  1019. dAtA = make([]byte, size)
  1020. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1021. if err != nil {
  1022. return nil, err
  1023. }
  1024. return dAtA[:n], nil
  1025. }
  1026. func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) {
  1027. size := m.Size()
  1028. return m.MarshalToSizedBuffer(dAtA[:size])
  1029. }
  1030. func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1031. i := len(dAtA)
  1032. _ = i
  1033. var l int
  1034. _ = l
  1035. if m.Queuing != nil {
  1036. {
  1037. size, err := m.Queuing.MarshalToSizedBuffer(dAtA[:i])
  1038. if err != nil {
  1039. return 0, err
  1040. }
  1041. i -= size
  1042. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1043. }
  1044. i--
  1045. dAtA[i] = 0x12
  1046. }
  1047. i -= len(m.Type)
  1048. copy(dAtA[i:], m.Type)
  1049. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1050. i--
  1051. dAtA[i] = 0xa
  1052. return len(dAtA) - i, nil
  1053. }
  1054. func (m *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) {
  1055. size := m.Size()
  1056. dAtA = make([]byte, size)
  1057. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1058. if err != nil {
  1059. return nil, err
  1060. }
  1061. return dAtA[:n], nil
  1062. }
  1063. func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) {
  1064. size := m.Size()
  1065. return m.MarshalToSizedBuffer(dAtA[:size])
  1066. }
  1067. func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1068. i := len(dAtA)
  1069. _ = i
  1070. var l int
  1071. _ = l
  1072. {
  1073. size, err := m.LimitResponse.MarshalToSizedBuffer(dAtA[:i])
  1074. if err != nil {
  1075. return 0, err
  1076. }
  1077. i -= size
  1078. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1079. }
  1080. i--
  1081. dAtA[i] = 0x12
  1082. i = encodeVarintGenerated(dAtA, i, uint64(m.AssuredConcurrencyShares))
  1083. i--
  1084. dAtA[i] = 0x8
  1085. return len(dAtA) - i, nil
  1086. }
  1087. func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) {
  1088. size := m.Size()
  1089. dAtA = make([]byte, size)
  1090. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1091. if err != nil {
  1092. return nil, err
  1093. }
  1094. return dAtA[:n], nil
  1095. }
  1096. func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) {
  1097. size := m.Size()
  1098. return m.MarshalToSizedBuffer(dAtA[:size])
  1099. }
  1100. func (m *NonResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1101. i := len(dAtA)
  1102. _ = i
  1103. var l int
  1104. _ = l
  1105. if len(m.NonResourceURLs) > 0 {
  1106. for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- {
  1107. i -= len(m.NonResourceURLs[iNdEx])
  1108. copy(dAtA[i:], m.NonResourceURLs[iNdEx])
  1109. i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx])))
  1110. i--
  1111. dAtA[i] = 0x32
  1112. }
  1113. }
  1114. if len(m.Verbs) > 0 {
  1115. for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- {
  1116. i -= len(m.Verbs[iNdEx])
  1117. copy(dAtA[i:], m.Verbs[iNdEx])
  1118. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx])))
  1119. i--
  1120. dAtA[i] = 0xa
  1121. }
  1122. }
  1123. return len(dAtA) - i, nil
  1124. }
  1125. func (m *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) {
  1126. size := m.Size()
  1127. dAtA = make([]byte, size)
  1128. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1129. if err != nil {
  1130. return nil, err
  1131. }
  1132. return dAtA[:n], nil
  1133. }
  1134. func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) {
  1135. size := m.Size()
  1136. return m.MarshalToSizedBuffer(dAtA[:size])
  1137. }
  1138. func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1139. i := len(dAtA)
  1140. _ = i
  1141. var l int
  1142. _ = l
  1143. if len(m.NonResourceRules) > 0 {
  1144. for iNdEx := len(m.NonResourceRules) - 1; iNdEx >= 0; iNdEx-- {
  1145. {
  1146. size, err := m.NonResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1147. if err != nil {
  1148. return 0, err
  1149. }
  1150. i -= size
  1151. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1152. }
  1153. i--
  1154. dAtA[i] = 0x1a
  1155. }
  1156. }
  1157. if len(m.ResourceRules) > 0 {
  1158. for iNdEx := len(m.ResourceRules) - 1; iNdEx >= 0; iNdEx-- {
  1159. {
  1160. size, err := m.ResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1161. if err != nil {
  1162. return 0, err
  1163. }
  1164. i -= size
  1165. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1166. }
  1167. i--
  1168. dAtA[i] = 0x12
  1169. }
  1170. }
  1171. if len(m.Subjects) > 0 {
  1172. for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- {
  1173. {
  1174. size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1175. if err != nil {
  1176. return 0, err
  1177. }
  1178. i -= size
  1179. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1180. }
  1181. i--
  1182. dAtA[i] = 0xa
  1183. }
  1184. }
  1185. return len(dAtA) - i, nil
  1186. }
  1187. func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) {
  1188. size := m.Size()
  1189. dAtA = make([]byte, size)
  1190. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1191. if err != nil {
  1192. return nil, err
  1193. }
  1194. return dAtA[:n], nil
  1195. }
  1196. func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) {
  1197. size := m.Size()
  1198. return m.MarshalToSizedBuffer(dAtA[:size])
  1199. }
  1200. func (m *PriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1201. i := len(dAtA)
  1202. _ = i
  1203. var l int
  1204. _ = l
  1205. {
  1206. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1207. if err != nil {
  1208. return 0, err
  1209. }
  1210. i -= size
  1211. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1212. }
  1213. i--
  1214. dAtA[i] = 0x1a
  1215. {
  1216. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  1217. if err != nil {
  1218. return 0, err
  1219. }
  1220. i -= size
  1221. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1222. }
  1223. i--
  1224. dAtA[i] = 0x12
  1225. {
  1226. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1227. if err != nil {
  1228. return 0, err
  1229. }
  1230. i -= size
  1231. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1232. }
  1233. i--
  1234. dAtA[i] = 0xa
  1235. return len(dAtA) - i, nil
  1236. }
  1237. func (m *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) {
  1238. size := m.Size()
  1239. dAtA = make([]byte, size)
  1240. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1241. if err != nil {
  1242. return nil, err
  1243. }
  1244. return dAtA[:n], nil
  1245. }
  1246. func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) {
  1247. size := m.Size()
  1248. return m.MarshalToSizedBuffer(dAtA[:size])
  1249. }
  1250. func (m *PriorityLevelConfigurationCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1251. i := len(dAtA)
  1252. _ = i
  1253. var l int
  1254. _ = l
  1255. i -= len(m.Message)
  1256. copy(dAtA[i:], m.Message)
  1257. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
  1258. i--
  1259. dAtA[i] = 0x2a
  1260. i -= len(m.Reason)
  1261. copy(dAtA[i:], m.Reason)
  1262. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
  1263. i--
  1264. dAtA[i] = 0x22
  1265. {
  1266. size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
  1267. if err != nil {
  1268. return 0, err
  1269. }
  1270. i -= size
  1271. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1272. }
  1273. i--
  1274. dAtA[i] = 0x1a
  1275. i -= len(m.Status)
  1276. copy(dAtA[i:], m.Status)
  1277. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
  1278. i--
  1279. dAtA[i] = 0x12
  1280. i -= len(m.Type)
  1281. copy(dAtA[i:], m.Type)
  1282. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1283. i--
  1284. dAtA[i] = 0xa
  1285. return len(dAtA) - i, nil
  1286. }
  1287. func (m *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) {
  1288. size := m.Size()
  1289. dAtA = make([]byte, size)
  1290. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1291. if err != nil {
  1292. return nil, err
  1293. }
  1294. return dAtA[:n], nil
  1295. }
  1296. func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) {
  1297. size := m.Size()
  1298. return m.MarshalToSizedBuffer(dAtA[:size])
  1299. }
  1300. func (m *PriorityLevelConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1301. i := len(dAtA)
  1302. _ = i
  1303. var l int
  1304. _ = l
  1305. if len(m.Items) > 0 {
  1306. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1307. {
  1308. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1309. if err != nil {
  1310. return 0, err
  1311. }
  1312. i -= size
  1313. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1314. }
  1315. i--
  1316. dAtA[i] = 0x12
  1317. }
  1318. }
  1319. {
  1320. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  1321. if err != nil {
  1322. return 0, err
  1323. }
  1324. i -= size
  1325. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1326. }
  1327. i--
  1328. dAtA[i] = 0xa
  1329. return len(dAtA) - i, nil
  1330. }
  1331. func (m *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) {
  1332. size := m.Size()
  1333. dAtA = make([]byte, size)
  1334. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1335. if err != nil {
  1336. return nil, err
  1337. }
  1338. return dAtA[:n], nil
  1339. }
  1340. func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) {
  1341. size := m.Size()
  1342. return m.MarshalToSizedBuffer(dAtA[:size])
  1343. }
  1344. func (m *PriorityLevelConfigurationReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1345. i := len(dAtA)
  1346. _ = i
  1347. var l int
  1348. _ = l
  1349. i -= len(m.Name)
  1350. copy(dAtA[i:], m.Name)
  1351. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1352. i--
  1353. dAtA[i] = 0xa
  1354. return len(dAtA) - i, nil
  1355. }
  1356. func (m *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) {
  1357. size := m.Size()
  1358. dAtA = make([]byte, size)
  1359. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1360. if err != nil {
  1361. return nil, err
  1362. }
  1363. return dAtA[:n], nil
  1364. }
  1365. func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) {
  1366. size := m.Size()
  1367. return m.MarshalToSizedBuffer(dAtA[:size])
  1368. }
  1369. func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1370. i := len(dAtA)
  1371. _ = i
  1372. var l int
  1373. _ = l
  1374. if m.Limited != nil {
  1375. {
  1376. size, err := m.Limited.MarshalToSizedBuffer(dAtA[:i])
  1377. if err != nil {
  1378. return 0, err
  1379. }
  1380. i -= size
  1381. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1382. }
  1383. i--
  1384. dAtA[i] = 0x12
  1385. }
  1386. i -= len(m.Type)
  1387. copy(dAtA[i:], m.Type)
  1388. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
  1389. i--
  1390. dAtA[i] = 0xa
  1391. return len(dAtA) - i, nil
  1392. }
  1393. func (m *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) {
  1394. size := m.Size()
  1395. dAtA = make([]byte, size)
  1396. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1397. if err != nil {
  1398. return nil, err
  1399. }
  1400. return dAtA[:n], nil
  1401. }
  1402. func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) {
  1403. size := m.Size()
  1404. return m.MarshalToSizedBuffer(dAtA[:size])
  1405. }
  1406. func (m *PriorityLevelConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1407. i := len(dAtA)
  1408. _ = i
  1409. var l int
  1410. _ = l
  1411. if len(m.Conditions) > 0 {
  1412. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  1413. {
  1414. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1415. if err != nil {
  1416. return 0, err
  1417. }
  1418. i -= size
  1419. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1420. }
  1421. i--
  1422. dAtA[i] = 0xa
  1423. }
  1424. }
  1425. return len(dAtA) - i, nil
  1426. }
  1427. func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) {
  1428. size := m.Size()
  1429. dAtA = make([]byte, size)
  1430. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1431. if err != nil {
  1432. return nil, err
  1433. }
  1434. return dAtA[:n], nil
  1435. }
  1436. func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) {
  1437. size := m.Size()
  1438. return m.MarshalToSizedBuffer(dAtA[:size])
  1439. }
  1440. func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1441. i := len(dAtA)
  1442. _ = i
  1443. var l int
  1444. _ = l
  1445. i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit))
  1446. i--
  1447. dAtA[i] = 0x18
  1448. i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize))
  1449. i--
  1450. dAtA[i] = 0x10
  1451. i = encodeVarintGenerated(dAtA, i, uint64(m.Queues))
  1452. i--
  1453. dAtA[i] = 0x8
  1454. return len(dAtA) - i, nil
  1455. }
  1456. func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) {
  1457. size := m.Size()
  1458. dAtA = make([]byte, size)
  1459. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1460. if err != nil {
  1461. return nil, err
  1462. }
  1463. return dAtA[:n], nil
  1464. }
  1465. func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) {
  1466. size := m.Size()
  1467. return m.MarshalToSizedBuffer(dAtA[:size])
  1468. }
  1469. func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1470. i := len(dAtA)
  1471. _ = i
  1472. var l int
  1473. _ = l
  1474. if len(m.Namespaces) > 0 {
  1475. for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- {
  1476. i -= len(m.Namespaces[iNdEx])
  1477. copy(dAtA[i:], m.Namespaces[iNdEx])
  1478. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx])))
  1479. i--
  1480. dAtA[i] = 0x2a
  1481. }
  1482. }
  1483. i--
  1484. if m.ClusterScope {
  1485. dAtA[i] = 1
  1486. } else {
  1487. dAtA[i] = 0
  1488. }
  1489. i--
  1490. dAtA[i] = 0x20
  1491. if len(m.Resources) > 0 {
  1492. for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- {
  1493. i -= len(m.Resources[iNdEx])
  1494. copy(dAtA[i:], m.Resources[iNdEx])
  1495. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx])))
  1496. i--
  1497. dAtA[i] = 0x1a
  1498. }
  1499. }
  1500. if len(m.APIGroups) > 0 {
  1501. for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- {
  1502. i -= len(m.APIGroups[iNdEx])
  1503. copy(dAtA[i:], m.APIGroups[iNdEx])
  1504. i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx])))
  1505. i--
  1506. dAtA[i] = 0x12
  1507. }
  1508. }
  1509. if len(m.Verbs) > 0 {
  1510. for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- {
  1511. i -= len(m.Verbs[iNdEx])
  1512. copy(dAtA[i:], m.Verbs[iNdEx])
  1513. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx])))
  1514. i--
  1515. dAtA[i] = 0xa
  1516. }
  1517. }
  1518. return len(dAtA) - i, nil
  1519. }
  1520. func (m *ServiceAccountSubject) Marshal() (dAtA []byte, err error) {
  1521. size := m.Size()
  1522. dAtA = make([]byte, size)
  1523. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1524. if err != nil {
  1525. return nil, err
  1526. }
  1527. return dAtA[:n], nil
  1528. }
  1529. func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) {
  1530. size := m.Size()
  1531. return m.MarshalToSizedBuffer(dAtA[:size])
  1532. }
  1533. func (m *ServiceAccountSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1534. i := len(dAtA)
  1535. _ = i
  1536. var l int
  1537. _ = l
  1538. i -= len(m.Name)
  1539. copy(dAtA[i:], m.Name)
  1540. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1541. i--
  1542. dAtA[i] = 0x12
  1543. i -= len(m.Namespace)
  1544. copy(dAtA[i:], m.Namespace)
  1545. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  1546. i--
  1547. dAtA[i] = 0xa
  1548. return len(dAtA) - i, nil
  1549. }
  1550. func (m *Subject) Marshal() (dAtA []byte, err error) {
  1551. size := m.Size()
  1552. dAtA = make([]byte, size)
  1553. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1554. if err != nil {
  1555. return nil, err
  1556. }
  1557. return dAtA[:n], nil
  1558. }
  1559. func (m *Subject) MarshalTo(dAtA []byte) (int, error) {
  1560. size := m.Size()
  1561. return m.MarshalToSizedBuffer(dAtA[:size])
  1562. }
  1563. func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1564. i := len(dAtA)
  1565. _ = i
  1566. var l int
  1567. _ = l
  1568. if m.ServiceAccount != nil {
  1569. {
  1570. size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i])
  1571. if err != nil {
  1572. return 0, err
  1573. }
  1574. i -= size
  1575. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1576. }
  1577. i--
  1578. dAtA[i] = 0x22
  1579. }
  1580. if m.Group != nil {
  1581. {
  1582. size, err := m.Group.MarshalToSizedBuffer(dAtA[:i])
  1583. if err != nil {
  1584. return 0, err
  1585. }
  1586. i -= size
  1587. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1588. }
  1589. i--
  1590. dAtA[i] = 0x1a
  1591. }
  1592. if m.User != nil {
  1593. {
  1594. size, err := m.User.MarshalToSizedBuffer(dAtA[:i])
  1595. if err != nil {
  1596. return 0, err
  1597. }
  1598. i -= size
  1599. i = encodeVarintGenerated(dAtA, i, uint64(size))
  1600. }
  1601. i--
  1602. dAtA[i] = 0x12
  1603. }
  1604. i -= len(m.Kind)
  1605. copy(dAtA[i:], m.Kind)
  1606. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
  1607. i--
  1608. dAtA[i] = 0xa
  1609. return len(dAtA) - i, nil
  1610. }
  1611. func (m *UserSubject) Marshal() (dAtA []byte, err error) {
  1612. size := m.Size()
  1613. dAtA = make([]byte, size)
  1614. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1615. if err != nil {
  1616. return nil, err
  1617. }
  1618. return dAtA[:n], nil
  1619. }
  1620. func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) {
  1621. size := m.Size()
  1622. return m.MarshalToSizedBuffer(dAtA[:size])
  1623. }
  1624. func (m *UserSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1625. i := len(dAtA)
  1626. _ = i
  1627. var l int
  1628. _ = l
  1629. i -= len(m.Name)
  1630. copy(dAtA[i:], m.Name)
  1631. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  1632. i--
  1633. dAtA[i] = 0xa
  1634. return len(dAtA) - i, nil
  1635. }
  1636. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  1637. offset -= sovGenerated(v)
  1638. base := offset
  1639. for v >= 1<<7 {
  1640. dAtA[offset] = uint8(v&0x7f | 0x80)
  1641. v >>= 7
  1642. offset++
  1643. }
  1644. dAtA[offset] = uint8(v)
  1645. return base
  1646. }
  1647. func (m *FlowDistinguisherMethod) Size() (n int) {
  1648. if m == nil {
  1649. return 0
  1650. }
  1651. var l int
  1652. _ = l
  1653. l = len(m.Type)
  1654. n += 1 + l + sovGenerated(uint64(l))
  1655. return n
  1656. }
  1657. func (m *FlowSchema) Size() (n int) {
  1658. if m == nil {
  1659. return 0
  1660. }
  1661. var l int
  1662. _ = l
  1663. l = m.ObjectMeta.Size()
  1664. n += 1 + l + sovGenerated(uint64(l))
  1665. l = m.Spec.Size()
  1666. n += 1 + l + sovGenerated(uint64(l))
  1667. l = m.Status.Size()
  1668. n += 1 + l + sovGenerated(uint64(l))
  1669. return n
  1670. }
  1671. func (m *FlowSchemaCondition) Size() (n int) {
  1672. if m == nil {
  1673. return 0
  1674. }
  1675. var l int
  1676. _ = l
  1677. l = len(m.Type)
  1678. n += 1 + l + sovGenerated(uint64(l))
  1679. l = len(m.Status)
  1680. n += 1 + l + sovGenerated(uint64(l))
  1681. l = m.LastTransitionTime.Size()
  1682. n += 1 + l + sovGenerated(uint64(l))
  1683. l = len(m.Reason)
  1684. n += 1 + l + sovGenerated(uint64(l))
  1685. l = len(m.Message)
  1686. n += 1 + l + sovGenerated(uint64(l))
  1687. return n
  1688. }
  1689. func (m *FlowSchemaList) Size() (n int) {
  1690. if m == nil {
  1691. return 0
  1692. }
  1693. var l int
  1694. _ = l
  1695. l = m.ListMeta.Size()
  1696. n += 1 + l + sovGenerated(uint64(l))
  1697. if len(m.Items) > 0 {
  1698. for _, e := range m.Items {
  1699. l = e.Size()
  1700. n += 1 + l + sovGenerated(uint64(l))
  1701. }
  1702. }
  1703. return n
  1704. }
  1705. func (m *FlowSchemaSpec) Size() (n int) {
  1706. if m == nil {
  1707. return 0
  1708. }
  1709. var l int
  1710. _ = l
  1711. l = m.PriorityLevelConfiguration.Size()
  1712. n += 1 + l + sovGenerated(uint64(l))
  1713. n += 1 + sovGenerated(uint64(m.MatchingPrecedence))
  1714. if m.DistinguisherMethod != nil {
  1715. l = m.DistinguisherMethod.Size()
  1716. n += 1 + l + sovGenerated(uint64(l))
  1717. }
  1718. if len(m.Rules) > 0 {
  1719. for _, e := range m.Rules {
  1720. l = e.Size()
  1721. n += 1 + l + sovGenerated(uint64(l))
  1722. }
  1723. }
  1724. return n
  1725. }
  1726. func (m *FlowSchemaStatus) Size() (n int) {
  1727. if m == nil {
  1728. return 0
  1729. }
  1730. var l int
  1731. _ = l
  1732. if len(m.Conditions) > 0 {
  1733. for _, e := range m.Conditions {
  1734. l = e.Size()
  1735. n += 1 + l + sovGenerated(uint64(l))
  1736. }
  1737. }
  1738. return n
  1739. }
  1740. func (m *GroupSubject) Size() (n int) {
  1741. if m == nil {
  1742. return 0
  1743. }
  1744. var l int
  1745. _ = l
  1746. l = len(m.Name)
  1747. n += 1 + l + sovGenerated(uint64(l))
  1748. return n
  1749. }
  1750. func (m *LimitResponse) Size() (n int) {
  1751. if m == nil {
  1752. return 0
  1753. }
  1754. var l int
  1755. _ = l
  1756. l = len(m.Type)
  1757. n += 1 + l + sovGenerated(uint64(l))
  1758. if m.Queuing != nil {
  1759. l = m.Queuing.Size()
  1760. n += 1 + l + sovGenerated(uint64(l))
  1761. }
  1762. return n
  1763. }
  1764. func (m *LimitedPriorityLevelConfiguration) Size() (n int) {
  1765. if m == nil {
  1766. return 0
  1767. }
  1768. var l int
  1769. _ = l
  1770. n += 1 + sovGenerated(uint64(m.AssuredConcurrencyShares))
  1771. l = m.LimitResponse.Size()
  1772. n += 1 + l + sovGenerated(uint64(l))
  1773. return n
  1774. }
  1775. func (m *NonResourcePolicyRule) Size() (n int) {
  1776. if m == nil {
  1777. return 0
  1778. }
  1779. var l int
  1780. _ = l
  1781. if len(m.Verbs) > 0 {
  1782. for _, s := range m.Verbs {
  1783. l = len(s)
  1784. n += 1 + l + sovGenerated(uint64(l))
  1785. }
  1786. }
  1787. if len(m.NonResourceURLs) > 0 {
  1788. for _, s := range m.NonResourceURLs {
  1789. l = len(s)
  1790. n += 1 + l + sovGenerated(uint64(l))
  1791. }
  1792. }
  1793. return n
  1794. }
  1795. func (m *PolicyRulesWithSubjects) Size() (n int) {
  1796. if m == nil {
  1797. return 0
  1798. }
  1799. var l int
  1800. _ = l
  1801. if len(m.Subjects) > 0 {
  1802. for _, e := range m.Subjects {
  1803. l = e.Size()
  1804. n += 1 + l + sovGenerated(uint64(l))
  1805. }
  1806. }
  1807. if len(m.ResourceRules) > 0 {
  1808. for _, e := range m.ResourceRules {
  1809. l = e.Size()
  1810. n += 1 + l + sovGenerated(uint64(l))
  1811. }
  1812. }
  1813. if len(m.NonResourceRules) > 0 {
  1814. for _, e := range m.NonResourceRules {
  1815. l = e.Size()
  1816. n += 1 + l + sovGenerated(uint64(l))
  1817. }
  1818. }
  1819. return n
  1820. }
  1821. func (m *PriorityLevelConfiguration) Size() (n int) {
  1822. if m == nil {
  1823. return 0
  1824. }
  1825. var l int
  1826. _ = l
  1827. l = m.ObjectMeta.Size()
  1828. n += 1 + l + sovGenerated(uint64(l))
  1829. l = m.Spec.Size()
  1830. n += 1 + l + sovGenerated(uint64(l))
  1831. l = m.Status.Size()
  1832. n += 1 + l + sovGenerated(uint64(l))
  1833. return n
  1834. }
  1835. func (m *PriorityLevelConfigurationCondition) Size() (n int) {
  1836. if m == nil {
  1837. return 0
  1838. }
  1839. var l int
  1840. _ = l
  1841. l = len(m.Type)
  1842. n += 1 + l + sovGenerated(uint64(l))
  1843. l = len(m.Status)
  1844. n += 1 + l + sovGenerated(uint64(l))
  1845. l = m.LastTransitionTime.Size()
  1846. n += 1 + l + sovGenerated(uint64(l))
  1847. l = len(m.Reason)
  1848. n += 1 + l + sovGenerated(uint64(l))
  1849. l = len(m.Message)
  1850. n += 1 + l + sovGenerated(uint64(l))
  1851. return n
  1852. }
  1853. func (m *PriorityLevelConfigurationList) Size() (n int) {
  1854. if m == nil {
  1855. return 0
  1856. }
  1857. var l int
  1858. _ = l
  1859. l = m.ListMeta.Size()
  1860. n += 1 + l + sovGenerated(uint64(l))
  1861. if len(m.Items) > 0 {
  1862. for _, e := range m.Items {
  1863. l = e.Size()
  1864. n += 1 + l + sovGenerated(uint64(l))
  1865. }
  1866. }
  1867. return n
  1868. }
  1869. func (m *PriorityLevelConfigurationReference) Size() (n int) {
  1870. if m == nil {
  1871. return 0
  1872. }
  1873. var l int
  1874. _ = l
  1875. l = len(m.Name)
  1876. n += 1 + l + sovGenerated(uint64(l))
  1877. return n
  1878. }
  1879. func (m *PriorityLevelConfigurationSpec) Size() (n int) {
  1880. if m == nil {
  1881. return 0
  1882. }
  1883. var l int
  1884. _ = l
  1885. l = len(m.Type)
  1886. n += 1 + l + sovGenerated(uint64(l))
  1887. if m.Limited != nil {
  1888. l = m.Limited.Size()
  1889. n += 1 + l + sovGenerated(uint64(l))
  1890. }
  1891. return n
  1892. }
  1893. func (m *PriorityLevelConfigurationStatus) Size() (n int) {
  1894. if m == nil {
  1895. return 0
  1896. }
  1897. var l int
  1898. _ = l
  1899. if len(m.Conditions) > 0 {
  1900. for _, e := range m.Conditions {
  1901. l = e.Size()
  1902. n += 1 + l + sovGenerated(uint64(l))
  1903. }
  1904. }
  1905. return n
  1906. }
  1907. func (m *QueuingConfiguration) Size() (n int) {
  1908. if m == nil {
  1909. return 0
  1910. }
  1911. var l int
  1912. _ = l
  1913. n += 1 + sovGenerated(uint64(m.Queues))
  1914. n += 1 + sovGenerated(uint64(m.HandSize))
  1915. n += 1 + sovGenerated(uint64(m.QueueLengthLimit))
  1916. return n
  1917. }
  1918. func (m *ResourcePolicyRule) Size() (n int) {
  1919. if m == nil {
  1920. return 0
  1921. }
  1922. var l int
  1923. _ = l
  1924. if len(m.Verbs) > 0 {
  1925. for _, s := range m.Verbs {
  1926. l = len(s)
  1927. n += 1 + l + sovGenerated(uint64(l))
  1928. }
  1929. }
  1930. if len(m.APIGroups) > 0 {
  1931. for _, s := range m.APIGroups {
  1932. l = len(s)
  1933. n += 1 + l + sovGenerated(uint64(l))
  1934. }
  1935. }
  1936. if len(m.Resources) > 0 {
  1937. for _, s := range m.Resources {
  1938. l = len(s)
  1939. n += 1 + l + sovGenerated(uint64(l))
  1940. }
  1941. }
  1942. n += 2
  1943. if len(m.Namespaces) > 0 {
  1944. for _, s := range m.Namespaces {
  1945. l = len(s)
  1946. n += 1 + l + sovGenerated(uint64(l))
  1947. }
  1948. }
  1949. return n
  1950. }
  1951. func (m *ServiceAccountSubject) Size() (n int) {
  1952. if m == nil {
  1953. return 0
  1954. }
  1955. var l int
  1956. _ = l
  1957. l = len(m.Namespace)
  1958. n += 1 + l + sovGenerated(uint64(l))
  1959. l = len(m.Name)
  1960. n += 1 + l + sovGenerated(uint64(l))
  1961. return n
  1962. }
  1963. func (m *Subject) Size() (n int) {
  1964. if m == nil {
  1965. return 0
  1966. }
  1967. var l int
  1968. _ = l
  1969. l = len(m.Kind)
  1970. n += 1 + l + sovGenerated(uint64(l))
  1971. if m.User != nil {
  1972. l = m.User.Size()
  1973. n += 1 + l + sovGenerated(uint64(l))
  1974. }
  1975. if m.Group != nil {
  1976. l = m.Group.Size()
  1977. n += 1 + l + sovGenerated(uint64(l))
  1978. }
  1979. if m.ServiceAccount != nil {
  1980. l = m.ServiceAccount.Size()
  1981. n += 1 + l + sovGenerated(uint64(l))
  1982. }
  1983. return n
  1984. }
  1985. func (m *UserSubject) Size() (n int) {
  1986. if m == nil {
  1987. return 0
  1988. }
  1989. var l int
  1990. _ = l
  1991. l = len(m.Name)
  1992. n += 1 + l + sovGenerated(uint64(l))
  1993. return n
  1994. }
  1995. func sovGenerated(x uint64) (n int) {
  1996. return (math_bits.Len64(x|1) + 6) / 7
  1997. }
  1998. func sozGenerated(x uint64) (n int) {
  1999. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2000. }
  2001. func (this *FlowDistinguisherMethod) String() string {
  2002. if this == nil {
  2003. return "nil"
  2004. }
  2005. s := strings.Join([]string{`&FlowDistinguisherMethod{`,
  2006. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  2007. `}`,
  2008. }, "")
  2009. return s
  2010. }
  2011. func (this *FlowSchema) String() string {
  2012. if this == nil {
  2013. return "nil"
  2014. }
  2015. s := strings.Join([]string{`&FlowSchema{`,
  2016. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  2017. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`,
  2018. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`,
  2019. `}`,
  2020. }, "")
  2021. return s
  2022. }
  2023. func (this *FlowSchemaCondition) String() string {
  2024. if this == nil {
  2025. return "nil"
  2026. }
  2027. s := strings.Join([]string{`&FlowSchemaCondition{`,
  2028. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  2029. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  2030. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  2031. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  2032. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  2033. `}`,
  2034. }, "")
  2035. return s
  2036. }
  2037. func (this *FlowSchemaList) String() string {
  2038. if this == nil {
  2039. return "nil"
  2040. }
  2041. repeatedStringForItems := "[]FlowSchema{"
  2042. for _, f := range this.Items {
  2043. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + ","
  2044. }
  2045. repeatedStringForItems += "}"
  2046. s := strings.Join([]string{`&FlowSchemaList{`,
  2047. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  2048. `Items:` + repeatedStringForItems + `,`,
  2049. `}`,
  2050. }, "")
  2051. return s
  2052. }
  2053. func (this *FlowSchemaSpec) String() string {
  2054. if this == nil {
  2055. return "nil"
  2056. }
  2057. repeatedStringForRules := "[]PolicyRulesWithSubjects{"
  2058. for _, f := range this.Rules {
  2059. repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + ","
  2060. }
  2061. repeatedStringForRules += "}"
  2062. s := strings.Join([]string{`&FlowSchemaSpec{`,
  2063. `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`,
  2064. `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`,
  2065. `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`,
  2066. `Rules:` + repeatedStringForRules + `,`,
  2067. `}`,
  2068. }, "")
  2069. return s
  2070. }
  2071. func (this *FlowSchemaStatus) String() string {
  2072. if this == nil {
  2073. return "nil"
  2074. }
  2075. repeatedStringForConditions := "[]FlowSchemaCondition{"
  2076. for _, f := range this.Conditions {
  2077. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + ","
  2078. }
  2079. repeatedStringForConditions += "}"
  2080. s := strings.Join([]string{`&FlowSchemaStatus{`,
  2081. `Conditions:` + repeatedStringForConditions + `,`,
  2082. `}`,
  2083. }, "")
  2084. return s
  2085. }
  2086. func (this *GroupSubject) String() string {
  2087. if this == nil {
  2088. return "nil"
  2089. }
  2090. s := strings.Join([]string{`&GroupSubject{`,
  2091. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2092. `}`,
  2093. }, "")
  2094. return s
  2095. }
  2096. func (this *LimitResponse) String() string {
  2097. if this == nil {
  2098. return "nil"
  2099. }
  2100. s := strings.Join([]string{`&LimitResponse{`,
  2101. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  2102. `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`,
  2103. `}`,
  2104. }, "")
  2105. return s
  2106. }
  2107. func (this *LimitedPriorityLevelConfiguration) String() string {
  2108. if this == nil {
  2109. return "nil"
  2110. }
  2111. s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`,
  2112. `AssuredConcurrencyShares:` + fmt.Sprintf("%v", this.AssuredConcurrencyShares) + `,`,
  2113. `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`,
  2114. `}`,
  2115. }, "")
  2116. return s
  2117. }
  2118. func (this *NonResourcePolicyRule) String() string {
  2119. if this == nil {
  2120. return "nil"
  2121. }
  2122. s := strings.Join([]string{`&NonResourcePolicyRule{`,
  2123. `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
  2124. `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`,
  2125. `}`,
  2126. }, "")
  2127. return s
  2128. }
  2129. func (this *PolicyRulesWithSubjects) String() string {
  2130. if this == nil {
  2131. return "nil"
  2132. }
  2133. repeatedStringForSubjects := "[]Subject{"
  2134. for _, f := range this.Subjects {
  2135. repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + ","
  2136. }
  2137. repeatedStringForSubjects += "}"
  2138. repeatedStringForResourceRules := "[]ResourcePolicyRule{"
  2139. for _, f := range this.ResourceRules {
  2140. repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + ","
  2141. }
  2142. repeatedStringForResourceRules += "}"
  2143. repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{"
  2144. for _, f := range this.NonResourceRules {
  2145. repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + ","
  2146. }
  2147. repeatedStringForNonResourceRules += "}"
  2148. s := strings.Join([]string{`&PolicyRulesWithSubjects{`,
  2149. `Subjects:` + repeatedStringForSubjects + `,`,
  2150. `ResourceRules:` + repeatedStringForResourceRules + `,`,
  2151. `NonResourceRules:` + repeatedStringForNonResourceRules + `,`,
  2152. `}`,
  2153. }, "")
  2154. return s
  2155. }
  2156. func (this *PriorityLevelConfiguration) String() string {
  2157. if this == nil {
  2158. return "nil"
  2159. }
  2160. s := strings.Join([]string{`&PriorityLevelConfiguration{`,
  2161. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  2162. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`,
  2163. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`,
  2164. `}`,
  2165. }, "")
  2166. return s
  2167. }
  2168. func (this *PriorityLevelConfigurationCondition) String() string {
  2169. if this == nil {
  2170. return "nil"
  2171. }
  2172. s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`,
  2173. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  2174. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  2175. `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
  2176. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  2177. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  2178. `}`,
  2179. }, "")
  2180. return s
  2181. }
  2182. func (this *PriorityLevelConfigurationList) String() string {
  2183. if this == nil {
  2184. return "nil"
  2185. }
  2186. repeatedStringForItems := "[]PriorityLevelConfiguration{"
  2187. for _, f := range this.Items {
  2188. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + ","
  2189. }
  2190. repeatedStringForItems += "}"
  2191. s := strings.Join([]string{`&PriorityLevelConfigurationList{`,
  2192. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  2193. `Items:` + repeatedStringForItems + `,`,
  2194. `}`,
  2195. }, "")
  2196. return s
  2197. }
  2198. func (this *PriorityLevelConfigurationReference) String() string {
  2199. if this == nil {
  2200. return "nil"
  2201. }
  2202. s := strings.Join([]string{`&PriorityLevelConfigurationReference{`,
  2203. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2204. `}`,
  2205. }, "")
  2206. return s
  2207. }
  2208. func (this *PriorityLevelConfigurationSpec) String() string {
  2209. if this == nil {
  2210. return "nil"
  2211. }
  2212. s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`,
  2213. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  2214. `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`,
  2215. `}`,
  2216. }, "")
  2217. return s
  2218. }
  2219. func (this *PriorityLevelConfigurationStatus) String() string {
  2220. if this == nil {
  2221. return "nil"
  2222. }
  2223. repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{"
  2224. for _, f := range this.Conditions {
  2225. repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + ","
  2226. }
  2227. repeatedStringForConditions += "}"
  2228. s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`,
  2229. `Conditions:` + repeatedStringForConditions + `,`,
  2230. `}`,
  2231. }, "")
  2232. return s
  2233. }
  2234. func (this *QueuingConfiguration) String() string {
  2235. if this == nil {
  2236. return "nil"
  2237. }
  2238. s := strings.Join([]string{`&QueuingConfiguration{`,
  2239. `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`,
  2240. `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`,
  2241. `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`,
  2242. `}`,
  2243. }, "")
  2244. return s
  2245. }
  2246. func (this *ResourcePolicyRule) String() string {
  2247. if this == nil {
  2248. return "nil"
  2249. }
  2250. s := strings.Join([]string{`&ResourcePolicyRule{`,
  2251. `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
  2252. `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
  2253. `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
  2254. `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`,
  2255. `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`,
  2256. `}`,
  2257. }, "")
  2258. return s
  2259. }
  2260. func (this *ServiceAccountSubject) String() string {
  2261. if this == nil {
  2262. return "nil"
  2263. }
  2264. s := strings.Join([]string{`&ServiceAccountSubject{`,
  2265. `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  2266. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2267. `}`,
  2268. }, "")
  2269. return s
  2270. }
  2271. func (this *Subject) String() string {
  2272. if this == nil {
  2273. return "nil"
  2274. }
  2275. s := strings.Join([]string{`&Subject{`,
  2276. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  2277. `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`,
  2278. `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`,
  2279. `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`,
  2280. `}`,
  2281. }, "")
  2282. return s
  2283. }
  2284. func (this *UserSubject) String() string {
  2285. if this == nil {
  2286. return "nil"
  2287. }
  2288. s := strings.Join([]string{`&UserSubject{`,
  2289. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2290. `}`,
  2291. }, "")
  2292. return s
  2293. }
  2294. func valueToStringGenerated(v interface{}) string {
  2295. rv := reflect.ValueOf(v)
  2296. if rv.IsNil() {
  2297. return "nil"
  2298. }
  2299. pv := reflect.Indirect(rv).Interface()
  2300. return fmt.Sprintf("*%v", pv)
  2301. }
  2302. func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error {
  2303. l := len(dAtA)
  2304. iNdEx := 0
  2305. for iNdEx < l {
  2306. preIndex := iNdEx
  2307. var wire uint64
  2308. for shift := uint(0); ; shift += 7 {
  2309. if shift >= 64 {
  2310. return ErrIntOverflowGenerated
  2311. }
  2312. if iNdEx >= l {
  2313. return io.ErrUnexpectedEOF
  2314. }
  2315. b := dAtA[iNdEx]
  2316. iNdEx++
  2317. wire |= uint64(b&0x7F) << shift
  2318. if b < 0x80 {
  2319. break
  2320. }
  2321. }
  2322. fieldNum := int32(wire >> 3)
  2323. wireType := int(wire & 0x7)
  2324. if wireType == 4 {
  2325. return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group")
  2326. }
  2327. if fieldNum <= 0 {
  2328. return fmt.Errorf("proto: FlowDistinguisherMethod: illegal tag %d (wire type %d)", fieldNum, wire)
  2329. }
  2330. switch fieldNum {
  2331. case 1:
  2332. if wireType != 2 {
  2333. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2334. }
  2335. var stringLen uint64
  2336. for shift := uint(0); ; shift += 7 {
  2337. if shift >= 64 {
  2338. return ErrIntOverflowGenerated
  2339. }
  2340. if iNdEx >= l {
  2341. return io.ErrUnexpectedEOF
  2342. }
  2343. b := dAtA[iNdEx]
  2344. iNdEx++
  2345. stringLen |= uint64(b&0x7F) << shift
  2346. if b < 0x80 {
  2347. break
  2348. }
  2349. }
  2350. intStringLen := int(stringLen)
  2351. if intStringLen < 0 {
  2352. return ErrInvalidLengthGenerated
  2353. }
  2354. postIndex := iNdEx + intStringLen
  2355. if postIndex < 0 {
  2356. return ErrInvalidLengthGenerated
  2357. }
  2358. if postIndex > l {
  2359. return io.ErrUnexpectedEOF
  2360. }
  2361. m.Type = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex])
  2362. iNdEx = postIndex
  2363. default:
  2364. iNdEx = preIndex
  2365. skippy, err := skipGenerated(dAtA[iNdEx:])
  2366. if err != nil {
  2367. return err
  2368. }
  2369. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2370. return ErrInvalidLengthGenerated
  2371. }
  2372. if (iNdEx + skippy) > l {
  2373. return io.ErrUnexpectedEOF
  2374. }
  2375. iNdEx += skippy
  2376. }
  2377. }
  2378. if iNdEx > l {
  2379. return io.ErrUnexpectedEOF
  2380. }
  2381. return nil
  2382. }
  2383. func (m *FlowSchema) Unmarshal(dAtA []byte) error {
  2384. l := len(dAtA)
  2385. iNdEx := 0
  2386. for iNdEx < l {
  2387. preIndex := iNdEx
  2388. var wire uint64
  2389. for shift := uint(0); ; shift += 7 {
  2390. if shift >= 64 {
  2391. return ErrIntOverflowGenerated
  2392. }
  2393. if iNdEx >= l {
  2394. return io.ErrUnexpectedEOF
  2395. }
  2396. b := dAtA[iNdEx]
  2397. iNdEx++
  2398. wire |= uint64(b&0x7F) << shift
  2399. if b < 0x80 {
  2400. break
  2401. }
  2402. }
  2403. fieldNum := int32(wire >> 3)
  2404. wireType := int(wire & 0x7)
  2405. if wireType == 4 {
  2406. return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group")
  2407. }
  2408. if fieldNum <= 0 {
  2409. return fmt.Errorf("proto: FlowSchema: illegal tag %d (wire type %d)", fieldNum, wire)
  2410. }
  2411. switch fieldNum {
  2412. case 1:
  2413. if wireType != 2 {
  2414. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  2415. }
  2416. var msglen int
  2417. for shift := uint(0); ; shift += 7 {
  2418. if shift >= 64 {
  2419. return ErrIntOverflowGenerated
  2420. }
  2421. if iNdEx >= l {
  2422. return io.ErrUnexpectedEOF
  2423. }
  2424. b := dAtA[iNdEx]
  2425. iNdEx++
  2426. msglen |= int(b&0x7F) << shift
  2427. if b < 0x80 {
  2428. break
  2429. }
  2430. }
  2431. if msglen < 0 {
  2432. return ErrInvalidLengthGenerated
  2433. }
  2434. postIndex := iNdEx + msglen
  2435. if postIndex < 0 {
  2436. return ErrInvalidLengthGenerated
  2437. }
  2438. if postIndex > l {
  2439. return io.ErrUnexpectedEOF
  2440. }
  2441. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2442. return err
  2443. }
  2444. iNdEx = postIndex
  2445. case 2:
  2446. if wireType != 2 {
  2447. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2448. }
  2449. var msglen int
  2450. for shift := uint(0); ; shift += 7 {
  2451. if shift >= 64 {
  2452. return ErrIntOverflowGenerated
  2453. }
  2454. if iNdEx >= l {
  2455. return io.ErrUnexpectedEOF
  2456. }
  2457. b := dAtA[iNdEx]
  2458. iNdEx++
  2459. msglen |= int(b&0x7F) << shift
  2460. if b < 0x80 {
  2461. break
  2462. }
  2463. }
  2464. if msglen < 0 {
  2465. return ErrInvalidLengthGenerated
  2466. }
  2467. postIndex := iNdEx + msglen
  2468. if postIndex < 0 {
  2469. return ErrInvalidLengthGenerated
  2470. }
  2471. if postIndex > l {
  2472. return io.ErrUnexpectedEOF
  2473. }
  2474. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2475. return err
  2476. }
  2477. iNdEx = postIndex
  2478. case 3:
  2479. if wireType != 2 {
  2480. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2481. }
  2482. var msglen int
  2483. for shift := uint(0); ; shift += 7 {
  2484. if shift >= 64 {
  2485. return ErrIntOverflowGenerated
  2486. }
  2487. if iNdEx >= l {
  2488. return io.ErrUnexpectedEOF
  2489. }
  2490. b := dAtA[iNdEx]
  2491. iNdEx++
  2492. msglen |= int(b&0x7F) << shift
  2493. if b < 0x80 {
  2494. break
  2495. }
  2496. }
  2497. if msglen < 0 {
  2498. return ErrInvalidLengthGenerated
  2499. }
  2500. postIndex := iNdEx + msglen
  2501. if postIndex < 0 {
  2502. return ErrInvalidLengthGenerated
  2503. }
  2504. if postIndex > l {
  2505. return io.ErrUnexpectedEOF
  2506. }
  2507. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2508. return err
  2509. }
  2510. iNdEx = postIndex
  2511. default:
  2512. iNdEx = preIndex
  2513. skippy, err := skipGenerated(dAtA[iNdEx:])
  2514. if err != nil {
  2515. return err
  2516. }
  2517. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2518. return ErrInvalidLengthGenerated
  2519. }
  2520. if (iNdEx + skippy) > l {
  2521. return io.ErrUnexpectedEOF
  2522. }
  2523. iNdEx += skippy
  2524. }
  2525. }
  2526. if iNdEx > l {
  2527. return io.ErrUnexpectedEOF
  2528. }
  2529. return nil
  2530. }
  2531. func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error {
  2532. l := len(dAtA)
  2533. iNdEx := 0
  2534. for iNdEx < l {
  2535. preIndex := iNdEx
  2536. var wire uint64
  2537. for shift := uint(0); ; shift += 7 {
  2538. if shift >= 64 {
  2539. return ErrIntOverflowGenerated
  2540. }
  2541. if iNdEx >= l {
  2542. return io.ErrUnexpectedEOF
  2543. }
  2544. b := dAtA[iNdEx]
  2545. iNdEx++
  2546. wire |= uint64(b&0x7F) << shift
  2547. if b < 0x80 {
  2548. break
  2549. }
  2550. }
  2551. fieldNum := int32(wire >> 3)
  2552. wireType := int(wire & 0x7)
  2553. if wireType == 4 {
  2554. return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group")
  2555. }
  2556. if fieldNum <= 0 {
  2557. return fmt.Errorf("proto: FlowSchemaCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  2558. }
  2559. switch fieldNum {
  2560. case 1:
  2561. if wireType != 2 {
  2562. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2563. }
  2564. var stringLen uint64
  2565. for shift := uint(0); ; shift += 7 {
  2566. if shift >= 64 {
  2567. return ErrIntOverflowGenerated
  2568. }
  2569. if iNdEx >= l {
  2570. return io.ErrUnexpectedEOF
  2571. }
  2572. b := dAtA[iNdEx]
  2573. iNdEx++
  2574. stringLen |= uint64(b&0x7F) << shift
  2575. if b < 0x80 {
  2576. break
  2577. }
  2578. }
  2579. intStringLen := int(stringLen)
  2580. if intStringLen < 0 {
  2581. return ErrInvalidLengthGenerated
  2582. }
  2583. postIndex := iNdEx + intStringLen
  2584. if postIndex < 0 {
  2585. return ErrInvalidLengthGenerated
  2586. }
  2587. if postIndex > l {
  2588. return io.ErrUnexpectedEOF
  2589. }
  2590. m.Type = FlowSchemaConditionType(dAtA[iNdEx:postIndex])
  2591. iNdEx = postIndex
  2592. case 2:
  2593. if wireType != 2 {
  2594. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2595. }
  2596. var stringLen uint64
  2597. for shift := uint(0); ; shift += 7 {
  2598. if shift >= 64 {
  2599. return ErrIntOverflowGenerated
  2600. }
  2601. if iNdEx >= l {
  2602. return io.ErrUnexpectedEOF
  2603. }
  2604. b := dAtA[iNdEx]
  2605. iNdEx++
  2606. stringLen |= uint64(b&0x7F) << shift
  2607. if b < 0x80 {
  2608. break
  2609. }
  2610. }
  2611. intStringLen := int(stringLen)
  2612. if intStringLen < 0 {
  2613. return ErrInvalidLengthGenerated
  2614. }
  2615. postIndex := iNdEx + intStringLen
  2616. if postIndex < 0 {
  2617. return ErrInvalidLengthGenerated
  2618. }
  2619. if postIndex > l {
  2620. return io.ErrUnexpectedEOF
  2621. }
  2622. m.Status = ConditionStatus(dAtA[iNdEx:postIndex])
  2623. iNdEx = postIndex
  2624. case 3:
  2625. if wireType != 2 {
  2626. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  2627. }
  2628. var msglen int
  2629. for shift := uint(0); ; shift += 7 {
  2630. if shift >= 64 {
  2631. return ErrIntOverflowGenerated
  2632. }
  2633. if iNdEx >= l {
  2634. return io.ErrUnexpectedEOF
  2635. }
  2636. b := dAtA[iNdEx]
  2637. iNdEx++
  2638. msglen |= int(b&0x7F) << shift
  2639. if b < 0x80 {
  2640. break
  2641. }
  2642. }
  2643. if msglen < 0 {
  2644. return ErrInvalidLengthGenerated
  2645. }
  2646. postIndex := iNdEx + msglen
  2647. if postIndex < 0 {
  2648. return ErrInvalidLengthGenerated
  2649. }
  2650. if postIndex > l {
  2651. return io.ErrUnexpectedEOF
  2652. }
  2653. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2654. return err
  2655. }
  2656. iNdEx = postIndex
  2657. case 4:
  2658. if wireType != 2 {
  2659. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  2660. }
  2661. var stringLen uint64
  2662. for shift := uint(0); ; shift += 7 {
  2663. if shift >= 64 {
  2664. return ErrIntOverflowGenerated
  2665. }
  2666. if iNdEx >= l {
  2667. return io.ErrUnexpectedEOF
  2668. }
  2669. b := dAtA[iNdEx]
  2670. iNdEx++
  2671. stringLen |= uint64(b&0x7F) << shift
  2672. if b < 0x80 {
  2673. break
  2674. }
  2675. }
  2676. intStringLen := int(stringLen)
  2677. if intStringLen < 0 {
  2678. return ErrInvalidLengthGenerated
  2679. }
  2680. postIndex := iNdEx + intStringLen
  2681. if postIndex < 0 {
  2682. return ErrInvalidLengthGenerated
  2683. }
  2684. if postIndex > l {
  2685. return io.ErrUnexpectedEOF
  2686. }
  2687. m.Reason = string(dAtA[iNdEx:postIndex])
  2688. iNdEx = postIndex
  2689. case 5:
  2690. if wireType != 2 {
  2691. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2692. }
  2693. var stringLen uint64
  2694. for shift := uint(0); ; shift += 7 {
  2695. if shift >= 64 {
  2696. return ErrIntOverflowGenerated
  2697. }
  2698. if iNdEx >= l {
  2699. return io.ErrUnexpectedEOF
  2700. }
  2701. b := dAtA[iNdEx]
  2702. iNdEx++
  2703. stringLen |= uint64(b&0x7F) << shift
  2704. if b < 0x80 {
  2705. break
  2706. }
  2707. }
  2708. intStringLen := int(stringLen)
  2709. if intStringLen < 0 {
  2710. return ErrInvalidLengthGenerated
  2711. }
  2712. postIndex := iNdEx + intStringLen
  2713. if postIndex < 0 {
  2714. return ErrInvalidLengthGenerated
  2715. }
  2716. if postIndex > l {
  2717. return io.ErrUnexpectedEOF
  2718. }
  2719. m.Message = string(dAtA[iNdEx:postIndex])
  2720. iNdEx = postIndex
  2721. default:
  2722. iNdEx = preIndex
  2723. skippy, err := skipGenerated(dAtA[iNdEx:])
  2724. if err != nil {
  2725. return err
  2726. }
  2727. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2728. return ErrInvalidLengthGenerated
  2729. }
  2730. if (iNdEx + skippy) > l {
  2731. return io.ErrUnexpectedEOF
  2732. }
  2733. iNdEx += skippy
  2734. }
  2735. }
  2736. if iNdEx > l {
  2737. return io.ErrUnexpectedEOF
  2738. }
  2739. return nil
  2740. }
  2741. func (m *FlowSchemaList) Unmarshal(dAtA []byte) error {
  2742. l := len(dAtA)
  2743. iNdEx := 0
  2744. for iNdEx < l {
  2745. preIndex := iNdEx
  2746. var wire uint64
  2747. for shift := uint(0); ; shift += 7 {
  2748. if shift >= 64 {
  2749. return ErrIntOverflowGenerated
  2750. }
  2751. if iNdEx >= l {
  2752. return io.ErrUnexpectedEOF
  2753. }
  2754. b := dAtA[iNdEx]
  2755. iNdEx++
  2756. wire |= uint64(b&0x7F) << shift
  2757. if b < 0x80 {
  2758. break
  2759. }
  2760. }
  2761. fieldNum := int32(wire >> 3)
  2762. wireType := int(wire & 0x7)
  2763. if wireType == 4 {
  2764. return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group")
  2765. }
  2766. if fieldNum <= 0 {
  2767. return fmt.Errorf("proto: FlowSchemaList: illegal tag %d (wire type %d)", fieldNum, wire)
  2768. }
  2769. switch fieldNum {
  2770. case 1:
  2771. if wireType != 2 {
  2772. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2773. }
  2774. var msglen int
  2775. for shift := uint(0); ; shift += 7 {
  2776. if shift >= 64 {
  2777. return ErrIntOverflowGenerated
  2778. }
  2779. if iNdEx >= l {
  2780. return io.ErrUnexpectedEOF
  2781. }
  2782. b := dAtA[iNdEx]
  2783. iNdEx++
  2784. msglen |= int(b&0x7F) << shift
  2785. if b < 0x80 {
  2786. break
  2787. }
  2788. }
  2789. if msglen < 0 {
  2790. return ErrInvalidLengthGenerated
  2791. }
  2792. postIndex := iNdEx + msglen
  2793. if postIndex < 0 {
  2794. return ErrInvalidLengthGenerated
  2795. }
  2796. if postIndex > l {
  2797. return io.ErrUnexpectedEOF
  2798. }
  2799. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2800. return err
  2801. }
  2802. iNdEx = postIndex
  2803. case 2:
  2804. if wireType != 2 {
  2805. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2806. }
  2807. var msglen int
  2808. for shift := uint(0); ; shift += 7 {
  2809. if shift >= 64 {
  2810. return ErrIntOverflowGenerated
  2811. }
  2812. if iNdEx >= l {
  2813. return io.ErrUnexpectedEOF
  2814. }
  2815. b := dAtA[iNdEx]
  2816. iNdEx++
  2817. msglen |= int(b&0x7F) << shift
  2818. if b < 0x80 {
  2819. break
  2820. }
  2821. }
  2822. if msglen < 0 {
  2823. return ErrInvalidLengthGenerated
  2824. }
  2825. postIndex := iNdEx + msglen
  2826. if postIndex < 0 {
  2827. return ErrInvalidLengthGenerated
  2828. }
  2829. if postIndex > l {
  2830. return io.ErrUnexpectedEOF
  2831. }
  2832. m.Items = append(m.Items, FlowSchema{})
  2833. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2834. return err
  2835. }
  2836. iNdEx = postIndex
  2837. default:
  2838. iNdEx = preIndex
  2839. skippy, err := skipGenerated(dAtA[iNdEx:])
  2840. if err != nil {
  2841. return err
  2842. }
  2843. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2844. return ErrInvalidLengthGenerated
  2845. }
  2846. if (iNdEx + skippy) > l {
  2847. return io.ErrUnexpectedEOF
  2848. }
  2849. iNdEx += skippy
  2850. }
  2851. }
  2852. if iNdEx > l {
  2853. return io.ErrUnexpectedEOF
  2854. }
  2855. return nil
  2856. }
  2857. func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error {
  2858. l := len(dAtA)
  2859. iNdEx := 0
  2860. for iNdEx < l {
  2861. preIndex := iNdEx
  2862. var wire uint64
  2863. for shift := uint(0); ; shift += 7 {
  2864. if shift >= 64 {
  2865. return ErrIntOverflowGenerated
  2866. }
  2867. if iNdEx >= l {
  2868. return io.ErrUnexpectedEOF
  2869. }
  2870. b := dAtA[iNdEx]
  2871. iNdEx++
  2872. wire |= uint64(b&0x7F) << shift
  2873. if b < 0x80 {
  2874. break
  2875. }
  2876. }
  2877. fieldNum := int32(wire >> 3)
  2878. wireType := int(wire & 0x7)
  2879. if wireType == 4 {
  2880. return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group")
  2881. }
  2882. if fieldNum <= 0 {
  2883. return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2884. }
  2885. switch fieldNum {
  2886. case 1:
  2887. if wireType != 2 {
  2888. return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType)
  2889. }
  2890. var msglen int
  2891. for shift := uint(0); ; shift += 7 {
  2892. if shift >= 64 {
  2893. return ErrIntOverflowGenerated
  2894. }
  2895. if iNdEx >= l {
  2896. return io.ErrUnexpectedEOF
  2897. }
  2898. b := dAtA[iNdEx]
  2899. iNdEx++
  2900. msglen |= int(b&0x7F) << shift
  2901. if b < 0x80 {
  2902. break
  2903. }
  2904. }
  2905. if msglen < 0 {
  2906. return ErrInvalidLengthGenerated
  2907. }
  2908. postIndex := iNdEx + msglen
  2909. if postIndex < 0 {
  2910. return ErrInvalidLengthGenerated
  2911. }
  2912. if postIndex > l {
  2913. return io.ErrUnexpectedEOF
  2914. }
  2915. if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2916. return err
  2917. }
  2918. iNdEx = postIndex
  2919. case 2:
  2920. if wireType != 0 {
  2921. return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType)
  2922. }
  2923. m.MatchingPrecedence = 0
  2924. for shift := uint(0); ; shift += 7 {
  2925. if shift >= 64 {
  2926. return ErrIntOverflowGenerated
  2927. }
  2928. if iNdEx >= l {
  2929. return io.ErrUnexpectedEOF
  2930. }
  2931. b := dAtA[iNdEx]
  2932. iNdEx++
  2933. m.MatchingPrecedence |= int32(b&0x7F) << shift
  2934. if b < 0x80 {
  2935. break
  2936. }
  2937. }
  2938. case 3:
  2939. if wireType != 2 {
  2940. return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType)
  2941. }
  2942. var msglen int
  2943. for shift := uint(0); ; shift += 7 {
  2944. if shift >= 64 {
  2945. return ErrIntOverflowGenerated
  2946. }
  2947. if iNdEx >= l {
  2948. return io.ErrUnexpectedEOF
  2949. }
  2950. b := dAtA[iNdEx]
  2951. iNdEx++
  2952. msglen |= int(b&0x7F) << shift
  2953. if b < 0x80 {
  2954. break
  2955. }
  2956. }
  2957. if msglen < 0 {
  2958. return ErrInvalidLengthGenerated
  2959. }
  2960. postIndex := iNdEx + msglen
  2961. if postIndex < 0 {
  2962. return ErrInvalidLengthGenerated
  2963. }
  2964. if postIndex > l {
  2965. return io.ErrUnexpectedEOF
  2966. }
  2967. if m.DistinguisherMethod == nil {
  2968. m.DistinguisherMethod = &FlowDistinguisherMethod{}
  2969. }
  2970. if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2971. return err
  2972. }
  2973. iNdEx = postIndex
  2974. case 4:
  2975. if wireType != 2 {
  2976. return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  2977. }
  2978. var msglen int
  2979. for shift := uint(0); ; shift += 7 {
  2980. if shift >= 64 {
  2981. return ErrIntOverflowGenerated
  2982. }
  2983. if iNdEx >= l {
  2984. return io.ErrUnexpectedEOF
  2985. }
  2986. b := dAtA[iNdEx]
  2987. iNdEx++
  2988. msglen |= int(b&0x7F) << shift
  2989. if b < 0x80 {
  2990. break
  2991. }
  2992. }
  2993. if msglen < 0 {
  2994. return ErrInvalidLengthGenerated
  2995. }
  2996. postIndex := iNdEx + msglen
  2997. if postIndex < 0 {
  2998. return ErrInvalidLengthGenerated
  2999. }
  3000. if postIndex > l {
  3001. return io.ErrUnexpectedEOF
  3002. }
  3003. m.Rules = append(m.Rules, PolicyRulesWithSubjects{})
  3004. if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3005. return err
  3006. }
  3007. iNdEx = postIndex
  3008. default:
  3009. iNdEx = preIndex
  3010. skippy, err := skipGenerated(dAtA[iNdEx:])
  3011. if err != nil {
  3012. return err
  3013. }
  3014. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3015. return ErrInvalidLengthGenerated
  3016. }
  3017. if (iNdEx + skippy) > l {
  3018. return io.ErrUnexpectedEOF
  3019. }
  3020. iNdEx += skippy
  3021. }
  3022. }
  3023. if iNdEx > l {
  3024. return io.ErrUnexpectedEOF
  3025. }
  3026. return nil
  3027. }
  3028. func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error {
  3029. l := len(dAtA)
  3030. iNdEx := 0
  3031. for iNdEx < l {
  3032. preIndex := iNdEx
  3033. var wire uint64
  3034. for shift := uint(0); ; shift += 7 {
  3035. if shift >= 64 {
  3036. return ErrIntOverflowGenerated
  3037. }
  3038. if iNdEx >= l {
  3039. return io.ErrUnexpectedEOF
  3040. }
  3041. b := dAtA[iNdEx]
  3042. iNdEx++
  3043. wire |= uint64(b&0x7F) << shift
  3044. if b < 0x80 {
  3045. break
  3046. }
  3047. }
  3048. fieldNum := int32(wire >> 3)
  3049. wireType := int(wire & 0x7)
  3050. if wireType == 4 {
  3051. return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group")
  3052. }
  3053. if fieldNum <= 0 {
  3054. return fmt.Errorf("proto: FlowSchemaStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3055. }
  3056. switch fieldNum {
  3057. case 1:
  3058. if wireType != 2 {
  3059. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  3060. }
  3061. var msglen int
  3062. for shift := uint(0); ; shift += 7 {
  3063. if shift >= 64 {
  3064. return ErrIntOverflowGenerated
  3065. }
  3066. if iNdEx >= l {
  3067. return io.ErrUnexpectedEOF
  3068. }
  3069. b := dAtA[iNdEx]
  3070. iNdEx++
  3071. msglen |= int(b&0x7F) << shift
  3072. if b < 0x80 {
  3073. break
  3074. }
  3075. }
  3076. if msglen < 0 {
  3077. return ErrInvalidLengthGenerated
  3078. }
  3079. postIndex := iNdEx + msglen
  3080. if postIndex < 0 {
  3081. return ErrInvalidLengthGenerated
  3082. }
  3083. if postIndex > l {
  3084. return io.ErrUnexpectedEOF
  3085. }
  3086. m.Conditions = append(m.Conditions, FlowSchemaCondition{})
  3087. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3088. return err
  3089. }
  3090. iNdEx = postIndex
  3091. default:
  3092. iNdEx = preIndex
  3093. skippy, err := skipGenerated(dAtA[iNdEx:])
  3094. if err != nil {
  3095. return err
  3096. }
  3097. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3098. return ErrInvalidLengthGenerated
  3099. }
  3100. if (iNdEx + skippy) > l {
  3101. return io.ErrUnexpectedEOF
  3102. }
  3103. iNdEx += skippy
  3104. }
  3105. }
  3106. if iNdEx > l {
  3107. return io.ErrUnexpectedEOF
  3108. }
  3109. return nil
  3110. }
  3111. func (m *GroupSubject) Unmarshal(dAtA []byte) error {
  3112. l := len(dAtA)
  3113. iNdEx := 0
  3114. for iNdEx < l {
  3115. preIndex := iNdEx
  3116. var wire uint64
  3117. for shift := uint(0); ; shift += 7 {
  3118. if shift >= 64 {
  3119. return ErrIntOverflowGenerated
  3120. }
  3121. if iNdEx >= l {
  3122. return io.ErrUnexpectedEOF
  3123. }
  3124. b := dAtA[iNdEx]
  3125. iNdEx++
  3126. wire |= uint64(b&0x7F) << shift
  3127. if b < 0x80 {
  3128. break
  3129. }
  3130. }
  3131. fieldNum := int32(wire >> 3)
  3132. wireType := int(wire & 0x7)
  3133. if wireType == 4 {
  3134. return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group")
  3135. }
  3136. if fieldNum <= 0 {
  3137. return fmt.Errorf("proto: GroupSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  3138. }
  3139. switch fieldNum {
  3140. case 1:
  3141. if wireType != 2 {
  3142. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3143. }
  3144. var stringLen uint64
  3145. for shift := uint(0); ; shift += 7 {
  3146. if shift >= 64 {
  3147. return ErrIntOverflowGenerated
  3148. }
  3149. if iNdEx >= l {
  3150. return io.ErrUnexpectedEOF
  3151. }
  3152. b := dAtA[iNdEx]
  3153. iNdEx++
  3154. stringLen |= uint64(b&0x7F) << shift
  3155. if b < 0x80 {
  3156. break
  3157. }
  3158. }
  3159. intStringLen := int(stringLen)
  3160. if intStringLen < 0 {
  3161. return ErrInvalidLengthGenerated
  3162. }
  3163. postIndex := iNdEx + intStringLen
  3164. if postIndex < 0 {
  3165. return ErrInvalidLengthGenerated
  3166. }
  3167. if postIndex > l {
  3168. return io.ErrUnexpectedEOF
  3169. }
  3170. m.Name = string(dAtA[iNdEx:postIndex])
  3171. iNdEx = postIndex
  3172. default:
  3173. iNdEx = preIndex
  3174. skippy, err := skipGenerated(dAtA[iNdEx:])
  3175. if err != nil {
  3176. return err
  3177. }
  3178. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3179. return ErrInvalidLengthGenerated
  3180. }
  3181. if (iNdEx + skippy) > l {
  3182. return io.ErrUnexpectedEOF
  3183. }
  3184. iNdEx += skippy
  3185. }
  3186. }
  3187. if iNdEx > l {
  3188. return io.ErrUnexpectedEOF
  3189. }
  3190. return nil
  3191. }
  3192. func (m *LimitResponse) Unmarshal(dAtA []byte) error {
  3193. l := len(dAtA)
  3194. iNdEx := 0
  3195. for iNdEx < l {
  3196. preIndex := iNdEx
  3197. var wire uint64
  3198. for shift := uint(0); ; shift += 7 {
  3199. if shift >= 64 {
  3200. return ErrIntOverflowGenerated
  3201. }
  3202. if iNdEx >= l {
  3203. return io.ErrUnexpectedEOF
  3204. }
  3205. b := dAtA[iNdEx]
  3206. iNdEx++
  3207. wire |= uint64(b&0x7F) << shift
  3208. if b < 0x80 {
  3209. break
  3210. }
  3211. }
  3212. fieldNum := int32(wire >> 3)
  3213. wireType := int(wire & 0x7)
  3214. if wireType == 4 {
  3215. return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group")
  3216. }
  3217. if fieldNum <= 0 {
  3218. return fmt.Errorf("proto: LimitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3219. }
  3220. switch fieldNum {
  3221. case 1:
  3222. if wireType != 2 {
  3223. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3224. }
  3225. var stringLen uint64
  3226. for shift := uint(0); ; shift += 7 {
  3227. if shift >= 64 {
  3228. return ErrIntOverflowGenerated
  3229. }
  3230. if iNdEx >= l {
  3231. return io.ErrUnexpectedEOF
  3232. }
  3233. b := dAtA[iNdEx]
  3234. iNdEx++
  3235. stringLen |= uint64(b&0x7F) << shift
  3236. if b < 0x80 {
  3237. break
  3238. }
  3239. }
  3240. intStringLen := int(stringLen)
  3241. if intStringLen < 0 {
  3242. return ErrInvalidLengthGenerated
  3243. }
  3244. postIndex := iNdEx + intStringLen
  3245. if postIndex < 0 {
  3246. return ErrInvalidLengthGenerated
  3247. }
  3248. if postIndex > l {
  3249. return io.ErrUnexpectedEOF
  3250. }
  3251. m.Type = LimitResponseType(dAtA[iNdEx:postIndex])
  3252. iNdEx = postIndex
  3253. case 2:
  3254. if wireType != 2 {
  3255. return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType)
  3256. }
  3257. var msglen int
  3258. for shift := uint(0); ; shift += 7 {
  3259. if shift >= 64 {
  3260. return ErrIntOverflowGenerated
  3261. }
  3262. if iNdEx >= l {
  3263. return io.ErrUnexpectedEOF
  3264. }
  3265. b := dAtA[iNdEx]
  3266. iNdEx++
  3267. msglen |= int(b&0x7F) << shift
  3268. if b < 0x80 {
  3269. break
  3270. }
  3271. }
  3272. if msglen < 0 {
  3273. return ErrInvalidLengthGenerated
  3274. }
  3275. postIndex := iNdEx + msglen
  3276. if postIndex < 0 {
  3277. return ErrInvalidLengthGenerated
  3278. }
  3279. if postIndex > l {
  3280. return io.ErrUnexpectedEOF
  3281. }
  3282. if m.Queuing == nil {
  3283. m.Queuing = &QueuingConfiguration{}
  3284. }
  3285. if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3286. return err
  3287. }
  3288. iNdEx = postIndex
  3289. default:
  3290. iNdEx = preIndex
  3291. skippy, err := skipGenerated(dAtA[iNdEx:])
  3292. if err != nil {
  3293. return err
  3294. }
  3295. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3296. return ErrInvalidLengthGenerated
  3297. }
  3298. if (iNdEx + skippy) > l {
  3299. return io.ErrUnexpectedEOF
  3300. }
  3301. iNdEx += skippy
  3302. }
  3303. }
  3304. if iNdEx > l {
  3305. return io.ErrUnexpectedEOF
  3306. }
  3307. return nil
  3308. }
  3309. func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error {
  3310. l := len(dAtA)
  3311. iNdEx := 0
  3312. for iNdEx < l {
  3313. preIndex := iNdEx
  3314. var wire uint64
  3315. for shift := uint(0); ; shift += 7 {
  3316. if shift >= 64 {
  3317. return ErrIntOverflowGenerated
  3318. }
  3319. if iNdEx >= l {
  3320. return io.ErrUnexpectedEOF
  3321. }
  3322. b := dAtA[iNdEx]
  3323. iNdEx++
  3324. wire |= uint64(b&0x7F) << shift
  3325. if b < 0x80 {
  3326. break
  3327. }
  3328. }
  3329. fieldNum := int32(wire >> 3)
  3330. wireType := int(wire & 0x7)
  3331. if wireType == 4 {
  3332. return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group")
  3333. }
  3334. if fieldNum <= 0 {
  3335. return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  3336. }
  3337. switch fieldNum {
  3338. case 1:
  3339. if wireType != 0 {
  3340. return fmt.Errorf("proto: wrong wireType = %d for field AssuredConcurrencyShares", wireType)
  3341. }
  3342. m.AssuredConcurrencyShares = 0
  3343. for shift := uint(0); ; shift += 7 {
  3344. if shift >= 64 {
  3345. return ErrIntOverflowGenerated
  3346. }
  3347. if iNdEx >= l {
  3348. return io.ErrUnexpectedEOF
  3349. }
  3350. b := dAtA[iNdEx]
  3351. iNdEx++
  3352. m.AssuredConcurrencyShares |= int32(b&0x7F) << shift
  3353. if b < 0x80 {
  3354. break
  3355. }
  3356. }
  3357. case 2:
  3358. if wireType != 2 {
  3359. return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType)
  3360. }
  3361. var msglen int
  3362. for shift := uint(0); ; shift += 7 {
  3363. if shift >= 64 {
  3364. return ErrIntOverflowGenerated
  3365. }
  3366. if iNdEx >= l {
  3367. return io.ErrUnexpectedEOF
  3368. }
  3369. b := dAtA[iNdEx]
  3370. iNdEx++
  3371. msglen |= int(b&0x7F) << shift
  3372. if b < 0x80 {
  3373. break
  3374. }
  3375. }
  3376. if msglen < 0 {
  3377. return ErrInvalidLengthGenerated
  3378. }
  3379. postIndex := iNdEx + msglen
  3380. if postIndex < 0 {
  3381. return ErrInvalidLengthGenerated
  3382. }
  3383. if postIndex > l {
  3384. return io.ErrUnexpectedEOF
  3385. }
  3386. if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3387. return err
  3388. }
  3389. iNdEx = postIndex
  3390. default:
  3391. iNdEx = preIndex
  3392. skippy, err := skipGenerated(dAtA[iNdEx:])
  3393. if err != nil {
  3394. return err
  3395. }
  3396. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3397. return ErrInvalidLengthGenerated
  3398. }
  3399. if (iNdEx + skippy) > l {
  3400. return io.ErrUnexpectedEOF
  3401. }
  3402. iNdEx += skippy
  3403. }
  3404. }
  3405. if iNdEx > l {
  3406. return io.ErrUnexpectedEOF
  3407. }
  3408. return nil
  3409. }
  3410. func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error {
  3411. l := len(dAtA)
  3412. iNdEx := 0
  3413. for iNdEx < l {
  3414. preIndex := iNdEx
  3415. var wire uint64
  3416. for shift := uint(0); ; shift += 7 {
  3417. if shift >= 64 {
  3418. return ErrIntOverflowGenerated
  3419. }
  3420. if iNdEx >= l {
  3421. return io.ErrUnexpectedEOF
  3422. }
  3423. b := dAtA[iNdEx]
  3424. iNdEx++
  3425. wire |= uint64(b&0x7F) << shift
  3426. if b < 0x80 {
  3427. break
  3428. }
  3429. }
  3430. fieldNum := int32(wire >> 3)
  3431. wireType := int(wire & 0x7)
  3432. if wireType == 4 {
  3433. return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group")
  3434. }
  3435. if fieldNum <= 0 {
  3436. return fmt.Errorf("proto: NonResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  3437. }
  3438. switch fieldNum {
  3439. case 1:
  3440. if wireType != 2 {
  3441. return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  3442. }
  3443. var stringLen uint64
  3444. for shift := uint(0); ; shift += 7 {
  3445. if shift >= 64 {
  3446. return ErrIntOverflowGenerated
  3447. }
  3448. if iNdEx >= l {
  3449. return io.ErrUnexpectedEOF
  3450. }
  3451. b := dAtA[iNdEx]
  3452. iNdEx++
  3453. stringLen |= uint64(b&0x7F) << shift
  3454. if b < 0x80 {
  3455. break
  3456. }
  3457. }
  3458. intStringLen := int(stringLen)
  3459. if intStringLen < 0 {
  3460. return ErrInvalidLengthGenerated
  3461. }
  3462. postIndex := iNdEx + intStringLen
  3463. if postIndex < 0 {
  3464. return ErrInvalidLengthGenerated
  3465. }
  3466. if postIndex > l {
  3467. return io.ErrUnexpectedEOF
  3468. }
  3469. m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  3470. iNdEx = postIndex
  3471. case 6:
  3472. if wireType != 2 {
  3473. return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType)
  3474. }
  3475. var stringLen uint64
  3476. for shift := uint(0); ; shift += 7 {
  3477. if shift >= 64 {
  3478. return ErrIntOverflowGenerated
  3479. }
  3480. if iNdEx >= l {
  3481. return io.ErrUnexpectedEOF
  3482. }
  3483. b := dAtA[iNdEx]
  3484. iNdEx++
  3485. stringLen |= uint64(b&0x7F) << shift
  3486. if b < 0x80 {
  3487. break
  3488. }
  3489. }
  3490. intStringLen := int(stringLen)
  3491. if intStringLen < 0 {
  3492. return ErrInvalidLengthGenerated
  3493. }
  3494. postIndex := iNdEx + intStringLen
  3495. if postIndex < 0 {
  3496. return ErrInvalidLengthGenerated
  3497. }
  3498. if postIndex > l {
  3499. return io.ErrUnexpectedEOF
  3500. }
  3501. m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex]))
  3502. iNdEx = postIndex
  3503. default:
  3504. iNdEx = preIndex
  3505. skippy, err := skipGenerated(dAtA[iNdEx:])
  3506. if err != nil {
  3507. return err
  3508. }
  3509. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3510. return ErrInvalidLengthGenerated
  3511. }
  3512. if (iNdEx + skippy) > l {
  3513. return io.ErrUnexpectedEOF
  3514. }
  3515. iNdEx += skippy
  3516. }
  3517. }
  3518. if iNdEx > l {
  3519. return io.ErrUnexpectedEOF
  3520. }
  3521. return nil
  3522. }
  3523. func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error {
  3524. l := len(dAtA)
  3525. iNdEx := 0
  3526. for iNdEx < l {
  3527. preIndex := iNdEx
  3528. var wire uint64
  3529. for shift := uint(0); ; shift += 7 {
  3530. if shift >= 64 {
  3531. return ErrIntOverflowGenerated
  3532. }
  3533. if iNdEx >= l {
  3534. return io.ErrUnexpectedEOF
  3535. }
  3536. b := dAtA[iNdEx]
  3537. iNdEx++
  3538. wire |= uint64(b&0x7F) << shift
  3539. if b < 0x80 {
  3540. break
  3541. }
  3542. }
  3543. fieldNum := int32(wire >> 3)
  3544. wireType := int(wire & 0x7)
  3545. if wireType == 4 {
  3546. return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group")
  3547. }
  3548. if fieldNum <= 0 {
  3549. return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire)
  3550. }
  3551. switch fieldNum {
  3552. case 1:
  3553. if wireType != 2 {
  3554. return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  3555. }
  3556. var msglen int
  3557. for shift := uint(0); ; shift += 7 {
  3558. if shift >= 64 {
  3559. return ErrIntOverflowGenerated
  3560. }
  3561. if iNdEx >= l {
  3562. return io.ErrUnexpectedEOF
  3563. }
  3564. b := dAtA[iNdEx]
  3565. iNdEx++
  3566. msglen |= int(b&0x7F) << shift
  3567. if b < 0x80 {
  3568. break
  3569. }
  3570. }
  3571. if msglen < 0 {
  3572. return ErrInvalidLengthGenerated
  3573. }
  3574. postIndex := iNdEx + msglen
  3575. if postIndex < 0 {
  3576. return ErrInvalidLengthGenerated
  3577. }
  3578. if postIndex > l {
  3579. return io.ErrUnexpectedEOF
  3580. }
  3581. m.Subjects = append(m.Subjects, Subject{})
  3582. if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3583. return err
  3584. }
  3585. iNdEx = postIndex
  3586. case 2:
  3587. if wireType != 2 {
  3588. return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType)
  3589. }
  3590. var msglen int
  3591. for shift := uint(0); ; shift += 7 {
  3592. if shift >= 64 {
  3593. return ErrIntOverflowGenerated
  3594. }
  3595. if iNdEx >= l {
  3596. return io.ErrUnexpectedEOF
  3597. }
  3598. b := dAtA[iNdEx]
  3599. iNdEx++
  3600. msglen |= int(b&0x7F) << shift
  3601. if b < 0x80 {
  3602. break
  3603. }
  3604. }
  3605. if msglen < 0 {
  3606. return ErrInvalidLengthGenerated
  3607. }
  3608. postIndex := iNdEx + msglen
  3609. if postIndex < 0 {
  3610. return ErrInvalidLengthGenerated
  3611. }
  3612. if postIndex > l {
  3613. return io.ErrUnexpectedEOF
  3614. }
  3615. m.ResourceRules = append(m.ResourceRules, ResourcePolicyRule{})
  3616. if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3617. return err
  3618. }
  3619. iNdEx = postIndex
  3620. case 3:
  3621. if wireType != 2 {
  3622. return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType)
  3623. }
  3624. var msglen int
  3625. for shift := uint(0); ; shift += 7 {
  3626. if shift >= 64 {
  3627. return ErrIntOverflowGenerated
  3628. }
  3629. if iNdEx >= l {
  3630. return io.ErrUnexpectedEOF
  3631. }
  3632. b := dAtA[iNdEx]
  3633. iNdEx++
  3634. msglen |= int(b&0x7F) << shift
  3635. if b < 0x80 {
  3636. break
  3637. }
  3638. }
  3639. if msglen < 0 {
  3640. return ErrInvalidLengthGenerated
  3641. }
  3642. postIndex := iNdEx + msglen
  3643. if postIndex < 0 {
  3644. return ErrInvalidLengthGenerated
  3645. }
  3646. if postIndex > l {
  3647. return io.ErrUnexpectedEOF
  3648. }
  3649. m.NonResourceRules = append(m.NonResourceRules, NonResourcePolicyRule{})
  3650. if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3651. return err
  3652. }
  3653. iNdEx = postIndex
  3654. default:
  3655. iNdEx = preIndex
  3656. skippy, err := skipGenerated(dAtA[iNdEx:])
  3657. if err != nil {
  3658. return err
  3659. }
  3660. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3661. return ErrInvalidLengthGenerated
  3662. }
  3663. if (iNdEx + skippy) > l {
  3664. return io.ErrUnexpectedEOF
  3665. }
  3666. iNdEx += skippy
  3667. }
  3668. }
  3669. if iNdEx > l {
  3670. return io.ErrUnexpectedEOF
  3671. }
  3672. return nil
  3673. }
  3674. func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error {
  3675. l := len(dAtA)
  3676. iNdEx := 0
  3677. for iNdEx < l {
  3678. preIndex := iNdEx
  3679. var wire uint64
  3680. for shift := uint(0); ; shift += 7 {
  3681. if shift >= 64 {
  3682. return ErrIntOverflowGenerated
  3683. }
  3684. if iNdEx >= l {
  3685. return io.ErrUnexpectedEOF
  3686. }
  3687. b := dAtA[iNdEx]
  3688. iNdEx++
  3689. wire |= uint64(b&0x7F) << shift
  3690. if b < 0x80 {
  3691. break
  3692. }
  3693. }
  3694. fieldNum := int32(wire >> 3)
  3695. wireType := int(wire & 0x7)
  3696. if wireType == 4 {
  3697. return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group")
  3698. }
  3699. if fieldNum <= 0 {
  3700. return fmt.Errorf("proto: PriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  3701. }
  3702. switch fieldNum {
  3703. case 1:
  3704. if wireType != 2 {
  3705. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  3706. }
  3707. var msglen int
  3708. for shift := uint(0); ; shift += 7 {
  3709. if shift >= 64 {
  3710. return ErrIntOverflowGenerated
  3711. }
  3712. if iNdEx >= l {
  3713. return io.ErrUnexpectedEOF
  3714. }
  3715. b := dAtA[iNdEx]
  3716. iNdEx++
  3717. msglen |= int(b&0x7F) << shift
  3718. if b < 0x80 {
  3719. break
  3720. }
  3721. }
  3722. if msglen < 0 {
  3723. return ErrInvalidLengthGenerated
  3724. }
  3725. postIndex := iNdEx + msglen
  3726. if postIndex < 0 {
  3727. return ErrInvalidLengthGenerated
  3728. }
  3729. if postIndex > l {
  3730. return io.ErrUnexpectedEOF
  3731. }
  3732. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3733. return err
  3734. }
  3735. iNdEx = postIndex
  3736. case 2:
  3737. if wireType != 2 {
  3738. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  3739. }
  3740. var msglen int
  3741. for shift := uint(0); ; shift += 7 {
  3742. if shift >= 64 {
  3743. return ErrIntOverflowGenerated
  3744. }
  3745. if iNdEx >= l {
  3746. return io.ErrUnexpectedEOF
  3747. }
  3748. b := dAtA[iNdEx]
  3749. iNdEx++
  3750. msglen |= int(b&0x7F) << shift
  3751. if b < 0x80 {
  3752. break
  3753. }
  3754. }
  3755. if msglen < 0 {
  3756. return ErrInvalidLengthGenerated
  3757. }
  3758. postIndex := iNdEx + msglen
  3759. if postIndex < 0 {
  3760. return ErrInvalidLengthGenerated
  3761. }
  3762. if postIndex > l {
  3763. return io.ErrUnexpectedEOF
  3764. }
  3765. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3766. return err
  3767. }
  3768. iNdEx = postIndex
  3769. case 3:
  3770. if wireType != 2 {
  3771. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3772. }
  3773. var msglen int
  3774. for shift := uint(0); ; shift += 7 {
  3775. if shift >= 64 {
  3776. return ErrIntOverflowGenerated
  3777. }
  3778. if iNdEx >= l {
  3779. return io.ErrUnexpectedEOF
  3780. }
  3781. b := dAtA[iNdEx]
  3782. iNdEx++
  3783. msglen |= int(b&0x7F) << shift
  3784. if b < 0x80 {
  3785. break
  3786. }
  3787. }
  3788. if msglen < 0 {
  3789. return ErrInvalidLengthGenerated
  3790. }
  3791. postIndex := iNdEx + msglen
  3792. if postIndex < 0 {
  3793. return ErrInvalidLengthGenerated
  3794. }
  3795. if postIndex > l {
  3796. return io.ErrUnexpectedEOF
  3797. }
  3798. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3799. return err
  3800. }
  3801. iNdEx = postIndex
  3802. default:
  3803. iNdEx = preIndex
  3804. skippy, err := skipGenerated(dAtA[iNdEx:])
  3805. if err != nil {
  3806. return err
  3807. }
  3808. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3809. return ErrInvalidLengthGenerated
  3810. }
  3811. if (iNdEx + skippy) > l {
  3812. return io.ErrUnexpectedEOF
  3813. }
  3814. iNdEx += skippy
  3815. }
  3816. }
  3817. if iNdEx > l {
  3818. return io.ErrUnexpectedEOF
  3819. }
  3820. return nil
  3821. }
  3822. func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error {
  3823. l := len(dAtA)
  3824. iNdEx := 0
  3825. for iNdEx < l {
  3826. preIndex := iNdEx
  3827. var wire uint64
  3828. for shift := uint(0); ; shift += 7 {
  3829. if shift >= 64 {
  3830. return ErrIntOverflowGenerated
  3831. }
  3832. if iNdEx >= l {
  3833. return io.ErrUnexpectedEOF
  3834. }
  3835. b := dAtA[iNdEx]
  3836. iNdEx++
  3837. wire |= uint64(b&0x7F) << shift
  3838. if b < 0x80 {
  3839. break
  3840. }
  3841. }
  3842. fieldNum := int32(wire >> 3)
  3843. wireType := int(wire & 0x7)
  3844. if wireType == 4 {
  3845. return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group")
  3846. }
  3847. if fieldNum <= 0 {
  3848. return fmt.Errorf("proto: PriorityLevelConfigurationCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  3849. }
  3850. switch fieldNum {
  3851. case 1:
  3852. if wireType != 2 {
  3853. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3854. }
  3855. var stringLen uint64
  3856. for shift := uint(0); ; shift += 7 {
  3857. if shift >= 64 {
  3858. return ErrIntOverflowGenerated
  3859. }
  3860. if iNdEx >= l {
  3861. return io.ErrUnexpectedEOF
  3862. }
  3863. b := dAtA[iNdEx]
  3864. iNdEx++
  3865. stringLen |= uint64(b&0x7F) << shift
  3866. if b < 0x80 {
  3867. break
  3868. }
  3869. }
  3870. intStringLen := int(stringLen)
  3871. if intStringLen < 0 {
  3872. return ErrInvalidLengthGenerated
  3873. }
  3874. postIndex := iNdEx + intStringLen
  3875. if postIndex < 0 {
  3876. return ErrInvalidLengthGenerated
  3877. }
  3878. if postIndex > l {
  3879. return io.ErrUnexpectedEOF
  3880. }
  3881. m.Type = PriorityLevelConfigurationConditionType(dAtA[iNdEx:postIndex])
  3882. iNdEx = postIndex
  3883. case 2:
  3884. if wireType != 2 {
  3885. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3886. }
  3887. var stringLen uint64
  3888. for shift := uint(0); ; shift += 7 {
  3889. if shift >= 64 {
  3890. return ErrIntOverflowGenerated
  3891. }
  3892. if iNdEx >= l {
  3893. return io.ErrUnexpectedEOF
  3894. }
  3895. b := dAtA[iNdEx]
  3896. iNdEx++
  3897. stringLen |= uint64(b&0x7F) << shift
  3898. if b < 0x80 {
  3899. break
  3900. }
  3901. }
  3902. intStringLen := int(stringLen)
  3903. if intStringLen < 0 {
  3904. return ErrInvalidLengthGenerated
  3905. }
  3906. postIndex := iNdEx + intStringLen
  3907. if postIndex < 0 {
  3908. return ErrInvalidLengthGenerated
  3909. }
  3910. if postIndex > l {
  3911. return io.ErrUnexpectedEOF
  3912. }
  3913. m.Status = ConditionStatus(dAtA[iNdEx:postIndex])
  3914. iNdEx = postIndex
  3915. case 3:
  3916. if wireType != 2 {
  3917. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  3918. }
  3919. var msglen int
  3920. for shift := uint(0); ; shift += 7 {
  3921. if shift >= 64 {
  3922. return ErrIntOverflowGenerated
  3923. }
  3924. if iNdEx >= l {
  3925. return io.ErrUnexpectedEOF
  3926. }
  3927. b := dAtA[iNdEx]
  3928. iNdEx++
  3929. msglen |= int(b&0x7F) << shift
  3930. if b < 0x80 {
  3931. break
  3932. }
  3933. }
  3934. if msglen < 0 {
  3935. return ErrInvalidLengthGenerated
  3936. }
  3937. postIndex := iNdEx + msglen
  3938. if postIndex < 0 {
  3939. return ErrInvalidLengthGenerated
  3940. }
  3941. if postIndex > l {
  3942. return io.ErrUnexpectedEOF
  3943. }
  3944. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3945. return err
  3946. }
  3947. iNdEx = postIndex
  3948. case 4:
  3949. if wireType != 2 {
  3950. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  3951. }
  3952. var stringLen uint64
  3953. for shift := uint(0); ; shift += 7 {
  3954. if shift >= 64 {
  3955. return ErrIntOverflowGenerated
  3956. }
  3957. if iNdEx >= l {
  3958. return io.ErrUnexpectedEOF
  3959. }
  3960. b := dAtA[iNdEx]
  3961. iNdEx++
  3962. stringLen |= uint64(b&0x7F) << shift
  3963. if b < 0x80 {
  3964. break
  3965. }
  3966. }
  3967. intStringLen := int(stringLen)
  3968. if intStringLen < 0 {
  3969. return ErrInvalidLengthGenerated
  3970. }
  3971. postIndex := iNdEx + intStringLen
  3972. if postIndex < 0 {
  3973. return ErrInvalidLengthGenerated
  3974. }
  3975. if postIndex > l {
  3976. return io.ErrUnexpectedEOF
  3977. }
  3978. m.Reason = string(dAtA[iNdEx:postIndex])
  3979. iNdEx = postIndex
  3980. case 5:
  3981. if wireType != 2 {
  3982. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  3983. }
  3984. var stringLen uint64
  3985. for shift := uint(0); ; shift += 7 {
  3986. if shift >= 64 {
  3987. return ErrIntOverflowGenerated
  3988. }
  3989. if iNdEx >= l {
  3990. return io.ErrUnexpectedEOF
  3991. }
  3992. b := dAtA[iNdEx]
  3993. iNdEx++
  3994. stringLen |= uint64(b&0x7F) << shift
  3995. if b < 0x80 {
  3996. break
  3997. }
  3998. }
  3999. intStringLen := int(stringLen)
  4000. if intStringLen < 0 {
  4001. return ErrInvalidLengthGenerated
  4002. }
  4003. postIndex := iNdEx + intStringLen
  4004. if postIndex < 0 {
  4005. return ErrInvalidLengthGenerated
  4006. }
  4007. if postIndex > l {
  4008. return io.ErrUnexpectedEOF
  4009. }
  4010. m.Message = string(dAtA[iNdEx:postIndex])
  4011. iNdEx = postIndex
  4012. default:
  4013. iNdEx = preIndex
  4014. skippy, err := skipGenerated(dAtA[iNdEx:])
  4015. if err != nil {
  4016. return err
  4017. }
  4018. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4019. return ErrInvalidLengthGenerated
  4020. }
  4021. if (iNdEx + skippy) > l {
  4022. return io.ErrUnexpectedEOF
  4023. }
  4024. iNdEx += skippy
  4025. }
  4026. }
  4027. if iNdEx > l {
  4028. return io.ErrUnexpectedEOF
  4029. }
  4030. return nil
  4031. }
  4032. func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error {
  4033. l := len(dAtA)
  4034. iNdEx := 0
  4035. for iNdEx < l {
  4036. preIndex := iNdEx
  4037. var wire uint64
  4038. for shift := uint(0); ; shift += 7 {
  4039. if shift >= 64 {
  4040. return ErrIntOverflowGenerated
  4041. }
  4042. if iNdEx >= l {
  4043. return io.ErrUnexpectedEOF
  4044. }
  4045. b := dAtA[iNdEx]
  4046. iNdEx++
  4047. wire |= uint64(b&0x7F) << shift
  4048. if b < 0x80 {
  4049. break
  4050. }
  4051. }
  4052. fieldNum := int32(wire >> 3)
  4053. wireType := int(wire & 0x7)
  4054. if wireType == 4 {
  4055. return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group")
  4056. }
  4057. if fieldNum <= 0 {
  4058. return fmt.Errorf("proto: PriorityLevelConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
  4059. }
  4060. switch fieldNum {
  4061. case 1:
  4062. if wireType != 2 {
  4063. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  4064. }
  4065. var msglen int
  4066. for shift := uint(0); ; shift += 7 {
  4067. if shift >= 64 {
  4068. return ErrIntOverflowGenerated
  4069. }
  4070. if iNdEx >= l {
  4071. return io.ErrUnexpectedEOF
  4072. }
  4073. b := dAtA[iNdEx]
  4074. iNdEx++
  4075. msglen |= int(b&0x7F) << shift
  4076. if b < 0x80 {
  4077. break
  4078. }
  4079. }
  4080. if msglen < 0 {
  4081. return ErrInvalidLengthGenerated
  4082. }
  4083. postIndex := iNdEx + msglen
  4084. if postIndex < 0 {
  4085. return ErrInvalidLengthGenerated
  4086. }
  4087. if postIndex > l {
  4088. return io.ErrUnexpectedEOF
  4089. }
  4090. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4091. return err
  4092. }
  4093. iNdEx = postIndex
  4094. case 2:
  4095. if wireType != 2 {
  4096. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  4097. }
  4098. var msglen int
  4099. for shift := uint(0); ; shift += 7 {
  4100. if shift >= 64 {
  4101. return ErrIntOverflowGenerated
  4102. }
  4103. if iNdEx >= l {
  4104. return io.ErrUnexpectedEOF
  4105. }
  4106. b := dAtA[iNdEx]
  4107. iNdEx++
  4108. msglen |= int(b&0x7F) << shift
  4109. if b < 0x80 {
  4110. break
  4111. }
  4112. }
  4113. if msglen < 0 {
  4114. return ErrInvalidLengthGenerated
  4115. }
  4116. postIndex := iNdEx + msglen
  4117. if postIndex < 0 {
  4118. return ErrInvalidLengthGenerated
  4119. }
  4120. if postIndex > l {
  4121. return io.ErrUnexpectedEOF
  4122. }
  4123. m.Items = append(m.Items, PriorityLevelConfiguration{})
  4124. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4125. return err
  4126. }
  4127. iNdEx = postIndex
  4128. default:
  4129. iNdEx = preIndex
  4130. skippy, err := skipGenerated(dAtA[iNdEx:])
  4131. if err != nil {
  4132. return err
  4133. }
  4134. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4135. return ErrInvalidLengthGenerated
  4136. }
  4137. if (iNdEx + skippy) > l {
  4138. return io.ErrUnexpectedEOF
  4139. }
  4140. iNdEx += skippy
  4141. }
  4142. }
  4143. if iNdEx > l {
  4144. return io.ErrUnexpectedEOF
  4145. }
  4146. return nil
  4147. }
  4148. func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error {
  4149. l := len(dAtA)
  4150. iNdEx := 0
  4151. for iNdEx < l {
  4152. preIndex := iNdEx
  4153. var wire uint64
  4154. for shift := uint(0); ; shift += 7 {
  4155. if shift >= 64 {
  4156. return ErrIntOverflowGenerated
  4157. }
  4158. if iNdEx >= l {
  4159. return io.ErrUnexpectedEOF
  4160. }
  4161. b := dAtA[iNdEx]
  4162. iNdEx++
  4163. wire |= uint64(b&0x7F) << shift
  4164. if b < 0x80 {
  4165. break
  4166. }
  4167. }
  4168. fieldNum := int32(wire >> 3)
  4169. wireType := int(wire & 0x7)
  4170. if wireType == 4 {
  4171. return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group")
  4172. }
  4173. if fieldNum <= 0 {
  4174. return fmt.Errorf("proto: PriorityLevelConfigurationReference: illegal tag %d (wire type %d)", fieldNum, wire)
  4175. }
  4176. switch fieldNum {
  4177. case 1:
  4178. if wireType != 2 {
  4179. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4180. }
  4181. var stringLen uint64
  4182. for shift := uint(0); ; shift += 7 {
  4183. if shift >= 64 {
  4184. return ErrIntOverflowGenerated
  4185. }
  4186. if iNdEx >= l {
  4187. return io.ErrUnexpectedEOF
  4188. }
  4189. b := dAtA[iNdEx]
  4190. iNdEx++
  4191. stringLen |= uint64(b&0x7F) << shift
  4192. if b < 0x80 {
  4193. break
  4194. }
  4195. }
  4196. intStringLen := int(stringLen)
  4197. if intStringLen < 0 {
  4198. return ErrInvalidLengthGenerated
  4199. }
  4200. postIndex := iNdEx + intStringLen
  4201. if postIndex < 0 {
  4202. return ErrInvalidLengthGenerated
  4203. }
  4204. if postIndex > l {
  4205. return io.ErrUnexpectedEOF
  4206. }
  4207. m.Name = string(dAtA[iNdEx:postIndex])
  4208. iNdEx = postIndex
  4209. default:
  4210. iNdEx = preIndex
  4211. skippy, err := skipGenerated(dAtA[iNdEx:])
  4212. if err != nil {
  4213. return err
  4214. }
  4215. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4216. return ErrInvalidLengthGenerated
  4217. }
  4218. if (iNdEx + skippy) > l {
  4219. return io.ErrUnexpectedEOF
  4220. }
  4221. iNdEx += skippy
  4222. }
  4223. }
  4224. if iNdEx > l {
  4225. return io.ErrUnexpectedEOF
  4226. }
  4227. return nil
  4228. }
  4229. func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error {
  4230. l := len(dAtA)
  4231. iNdEx := 0
  4232. for iNdEx < l {
  4233. preIndex := iNdEx
  4234. var wire uint64
  4235. for shift := uint(0); ; shift += 7 {
  4236. if shift >= 64 {
  4237. return ErrIntOverflowGenerated
  4238. }
  4239. if iNdEx >= l {
  4240. return io.ErrUnexpectedEOF
  4241. }
  4242. b := dAtA[iNdEx]
  4243. iNdEx++
  4244. wire |= uint64(b&0x7F) << shift
  4245. if b < 0x80 {
  4246. break
  4247. }
  4248. }
  4249. fieldNum := int32(wire >> 3)
  4250. wireType := int(wire & 0x7)
  4251. if wireType == 4 {
  4252. return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group")
  4253. }
  4254. if fieldNum <= 0 {
  4255. return fmt.Errorf("proto: PriorityLevelConfigurationSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4256. }
  4257. switch fieldNum {
  4258. case 1:
  4259. if wireType != 2 {
  4260. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4261. }
  4262. var stringLen uint64
  4263. for shift := uint(0); ; shift += 7 {
  4264. if shift >= 64 {
  4265. return ErrIntOverflowGenerated
  4266. }
  4267. if iNdEx >= l {
  4268. return io.ErrUnexpectedEOF
  4269. }
  4270. b := dAtA[iNdEx]
  4271. iNdEx++
  4272. stringLen |= uint64(b&0x7F) << shift
  4273. if b < 0x80 {
  4274. break
  4275. }
  4276. }
  4277. intStringLen := int(stringLen)
  4278. if intStringLen < 0 {
  4279. return ErrInvalidLengthGenerated
  4280. }
  4281. postIndex := iNdEx + intStringLen
  4282. if postIndex < 0 {
  4283. return ErrInvalidLengthGenerated
  4284. }
  4285. if postIndex > l {
  4286. return io.ErrUnexpectedEOF
  4287. }
  4288. m.Type = PriorityLevelEnablement(dAtA[iNdEx:postIndex])
  4289. iNdEx = postIndex
  4290. case 2:
  4291. if wireType != 2 {
  4292. return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType)
  4293. }
  4294. var msglen int
  4295. for shift := uint(0); ; shift += 7 {
  4296. if shift >= 64 {
  4297. return ErrIntOverflowGenerated
  4298. }
  4299. if iNdEx >= l {
  4300. return io.ErrUnexpectedEOF
  4301. }
  4302. b := dAtA[iNdEx]
  4303. iNdEx++
  4304. msglen |= int(b&0x7F) << shift
  4305. if b < 0x80 {
  4306. break
  4307. }
  4308. }
  4309. if msglen < 0 {
  4310. return ErrInvalidLengthGenerated
  4311. }
  4312. postIndex := iNdEx + msglen
  4313. if postIndex < 0 {
  4314. return ErrInvalidLengthGenerated
  4315. }
  4316. if postIndex > l {
  4317. return io.ErrUnexpectedEOF
  4318. }
  4319. if m.Limited == nil {
  4320. m.Limited = &LimitedPriorityLevelConfiguration{}
  4321. }
  4322. if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4323. return err
  4324. }
  4325. iNdEx = postIndex
  4326. default:
  4327. iNdEx = preIndex
  4328. skippy, err := skipGenerated(dAtA[iNdEx:])
  4329. if err != nil {
  4330. return err
  4331. }
  4332. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4333. return ErrInvalidLengthGenerated
  4334. }
  4335. if (iNdEx + skippy) > l {
  4336. return io.ErrUnexpectedEOF
  4337. }
  4338. iNdEx += skippy
  4339. }
  4340. }
  4341. if iNdEx > l {
  4342. return io.ErrUnexpectedEOF
  4343. }
  4344. return nil
  4345. }
  4346. func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error {
  4347. l := len(dAtA)
  4348. iNdEx := 0
  4349. for iNdEx < l {
  4350. preIndex := iNdEx
  4351. var wire uint64
  4352. for shift := uint(0); ; shift += 7 {
  4353. if shift >= 64 {
  4354. return ErrIntOverflowGenerated
  4355. }
  4356. if iNdEx >= l {
  4357. return io.ErrUnexpectedEOF
  4358. }
  4359. b := dAtA[iNdEx]
  4360. iNdEx++
  4361. wire |= uint64(b&0x7F) << shift
  4362. if b < 0x80 {
  4363. break
  4364. }
  4365. }
  4366. fieldNum := int32(wire >> 3)
  4367. wireType := int(wire & 0x7)
  4368. if wireType == 4 {
  4369. return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group")
  4370. }
  4371. if fieldNum <= 0 {
  4372. return fmt.Errorf("proto: PriorityLevelConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  4373. }
  4374. switch fieldNum {
  4375. case 1:
  4376. if wireType != 2 {
  4377. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  4378. }
  4379. var msglen int
  4380. for shift := uint(0); ; shift += 7 {
  4381. if shift >= 64 {
  4382. return ErrIntOverflowGenerated
  4383. }
  4384. if iNdEx >= l {
  4385. return io.ErrUnexpectedEOF
  4386. }
  4387. b := dAtA[iNdEx]
  4388. iNdEx++
  4389. msglen |= int(b&0x7F) << shift
  4390. if b < 0x80 {
  4391. break
  4392. }
  4393. }
  4394. if msglen < 0 {
  4395. return ErrInvalidLengthGenerated
  4396. }
  4397. postIndex := iNdEx + msglen
  4398. if postIndex < 0 {
  4399. return ErrInvalidLengthGenerated
  4400. }
  4401. if postIndex > l {
  4402. return io.ErrUnexpectedEOF
  4403. }
  4404. m.Conditions = append(m.Conditions, PriorityLevelConfigurationCondition{})
  4405. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4406. return err
  4407. }
  4408. iNdEx = postIndex
  4409. default:
  4410. iNdEx = preIndex
  4411. skippy, err := skipGenerated(dAtA[iNdEx:])
  4412. if err != nil {
  4413. return err
  4414. }
  4415. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4416. return ErrInvalidLengthGenerated
  4417. }
  4418. if (iNdEx + skippy) > l {
  4419. return io.ErrUnexpectedEOF
  4420. }
  4421. iNdEx += skippy
  4422. }
  4423. }
  4424. if iNdEx > l {
  4425. return io.ErrUnexpectedEOF
  4426. }
  4427. return nil
  4428. }
  4429. func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error {
  4430. l := len(dAtA)
  4431. iNdEx := 0
  4432. for iNdEx < l {
  4433. preIndex := iNdEx
  4434. var wire uint64
  4435. for shift := uint(0); ; shift += 7 {
  4436. if shift >= 64 {
  4437. return ErrIntOverflowGenerated
  4438. }
  4439. if iNdEx >= l {
  4440. return io.ErrUnexpectedEOF
  4441. }
  4442. b := dAtA[iNdEx]
  4443. iNdEx++
  4444. wire |= uint64(b&0x7F) << shift
  4445. if b < 0x80 {
  4446. break
  4447. }
  4448. }
  4449. fieldNum := int32(wire >> 3)
  4450. wireType := int(wire & 0x7)
  4451. if wireType == 4 {
  4452. return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group")
  4453. }
  4454. if fieldNum <= 0 {
  4455. return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  4456. }
  4457. switch fieldNum {
  4458. case 1:
  4459. if wireType != 0 {
  4460. return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType)
  4461. }
  4462. m.Queues = 0
  4463. for shift := uint(0); ; shift += 7 {
  4464. if shift >= 64 {
  4465. return ErrIntOverflowGenerated
  4466. }
  4467. if iNdEx >= l {
  4468. return io.ErrUnexpectedEOF
  4469. }
  4470. b := dAtA[iNdEx]
  4471. iNdEx++
  4472. m.Queues |= int32(b&0x7F) << shift
  4473. if b < 0x80 {
  4474. break
  4475. }
  4476. }
  4477. case 2:
  4478. if wireType != 0 {
  4479. return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType)
  4480. }
  4481. m.HandSize = 0
  4482. for shift := uint(0); ; shift += 7 {
  4483. if shift >= 64 {
  4484. return ErrIntOverflowGenerated
  4485. }
  4486. if iNdEx >= l {
  4487. return io.ErrUnexpectedEOF
  4488. }
  4489. b := dAtA[iNdEx]
  4490. iNdEx++
  4491. m.HandSize |= int32(b&0x7F) << shift
  4492. if b < 0x80 {
  4493. break
  4494. }
  4495. }
  4496. case 3:
  4497. if wireType != 0 {
  4498. return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType)
  4499. }
  4500. m.QueueLengthLimit = 0
  4501. for shift := uint(0); ; shift += 7 {
  4502. if shift >= 64 {
  4503. return ErrIntOverflowGenerated
  4504. }
  4505. if iNdEx >= l {
  4506. return io.ErrUnexpectedEOF
  4507. }
  4508. b := dAtA[iNdEx]
  4509. iNdEx++
  4510. m.QueueLengthLimit |= int32(b&0x7F) << shift
  4511. if b < 0x80 {
  4512. break
  4513. }
  4514. }
  4515. default:
  4516. iNdEx = preIndex
  4517. skippy, err := skipGenerated(dAtA[iNdEx:])
  4518. if err != nil {
  4519. return err
  4520. }
  4521. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4522. return ErrInvalidLengthGenerated
  4523. }
  4524. if (iNdEx + skippy) > l {
  4525. return io.ErrUnexpectedEOF
  4526. }
  4527. iNdEx += skippy
  4528. }
  4529. }
  4530. if iNdEx > l {
  4531. return io.ErrUnexpectedEOF
  4532. }
  4533. return nil
  4534. }
  4535. func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error {
  4536. l := len(dAtA)
  4537. iNdEx := 0
  4538. for iNdEx < l {
  4539. preIndex := iNdEx
  4540. var wire uint64
  4541. for shift := uint(0); ; shift += 7 {
  4542. if shift >= 64 {
  4543. return ErrIntOverflowGenerated
  4544. }
  4545. if iNdEx >= l {
  4546. return io.ErrUnexpectedEOF
  4547. }
  4548. b := dAtA[iNdEx]
  4549. iNdEx++
  4550. wire |= uint64(b&0x7F) << shift
  4551. if b < 0x80 {
  4552. break
  4553. }
  4554. }
  4555. fieldNum := int32(wire >> 3)
  4556. wireType := int(wire & 0x7)
  4557. if wireType == 4 {
  4558. return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group")
  4559. }
  4560. if fieldNum <= 0 {
  4561. return fmt.Errorf("proto: ResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  4562. }
  4563. switch fieldNum {
  4564. case 1:
  4565. if wireType != 2 {
  4566. return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  4567. }
  4568. var stringLen uint64
  4569. for shift := uint(0); ; shift += 7 {
  4570. if shift >= 64 {
  4571. return ErrIntOverflowGenerated
  4572. }
  4573. if iNdEx >= l {
  4574. return io.ErrUnexpectedEOF
  4575. }
  4576. b := dAtA[iNdEx]
  4577. iNdEx++
  4578. stringLen |= uint64(b&0x7F) << shift
  4579. if b < 0x80 {
  4580. break
  4581. }
  4582. }
  4583. intStringLen := int(stringLen)
  4584. if intStringLen < 0 {
  4585. return ErrInvalidLengthGenerated
  4586. }
  4587. postIndex := iNdEx + intStringLen
  4588. if postIndex < 0 {
  4589. return ErrInvalidLengthGenerated
  4590. }
  4591. if postIndex > l {
  4592. return io.ErrUnexpectedEOF
  4593. }
  4594. m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  4595. iNdEx = postIndex
  4596. case 2:
  4597. if wireType != 2 {
  4598. return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
  4599. }
  4600. var stringLen uint64
  4601. for shift := uint(0); ; shift += 7 {
  4602. if shift >= 64 {
  4603. return ErrIntOverflowGenerated
  4604. }
  4605. if iNdEx >= l {
  4606. return io.ErrUnexpectedEOF
  4607. }
  4608. b := dAtA[iNdEx]
  4609. iNdEx++
  4610. stringLen |= uint64(b&0x7F) << shift
  4611. if b < 0x80 {
  4612. break
  4613. }
  4614. }
  4615. intStringLen := int(stringLen)
  4616. if intStringLen < 0 {
  4617. return ErrInvalidLengthGenerated
  4618. }
  4619. postIndex := iNdEx + intStringLen
  4620. if postIndex < 0 {
  4621. return ErrInvalidLengthGenerated
  4622. }
  4623. if postIndex > l {
  4624. return io.ErrUnexpectedEOF
  4625. }
  4626. m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
  4627. iNdEx = postIndex
  4628. case 3:
  4629. if wireType != 2 {
  4630. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  4631. }
  4632. var stringLen uint64
  4633. for shift := uint(0); ; shift += 7 {
  4634. if shift >= 64 {
  4635. return ErrIntOverflowGenerated
  4636. }
  4637. if iNdEx >= l {
  4638. return io.ErrUnexpectedEOF
  4639. }
  4640. b := dAtA[iNdEx]
  4641. iNdEx++
  4642. stringLen |= uint64(b&0x7F) << shift
  4643. if b < 0x80 {
  4644. break
  4645. }
  4646. }
  4647. intStringLen := int(stringLen)
  4648. if intStringLen < 0 {
  4649. return ErrInvalidLengthGenerated
  4650. }
  4651. postIndex := iNdEx + intStringLen
  4652. if postIndex < 0 {
  4653. return ErrInvalidLengthGenerated
  4654. }
  4655. if postIndex > l {
  4656. return io.ErrUnexpectedEOF
  4657. }
  4658. m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
  4659. iNdEx = postIndex
  4660. case 4:
  4661. if wireType != 0 {
  4662. return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", wireType)
  4663. }
  4664. var v int
  4665. for shift := uint(0); ; shift += 7 {
  4666. if shift >= 64 {
  4667. return ErrIntOverflowGenerated
  4668. }
  4669. if iNdEx >= l {
  4670. return io.ErrUnexpectedEOF
  4671. }
  4672. b := dAtA[iNdEx]
  4673. iNdEx++
  4674. v |= int(b&0x7F) << shift
  4675. if b < 0x80 {
  4676. break
  4677. }
  4678. }
  4679. m.ClusterScope = bool(v != 0)
  4680. case 5:
  4681. if wireType != 2 {
  4682. return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
  4683. }
  4684. var stringLen uint64
  4685. for shift := uint(0); ; shift += 7 {
  4686. if shift >= 64 {
  4687. return ErrIntOverflowGenerated
  4688. }
  4689. if iNdEx >= l {
  4690. return io.ErrUnexpectedEOF
  4691. }
  4692. b := dAtA[iNdEx]
  4693. iNdEx++
  4694. stringLen |= uint64(b&0x7F) << shift
  4695. if b < 0x80 {
  4696. break
  4697. }
  4698. }
  4699. intStringLen := int(stringLen)
  4700. if intStringLen < 0 {
  4701. return ErrInvalidLengthGenerated
  4702. }
  4703. postIndex := iNdEx + intStringLen
  4704. if postIndex < 0 {
  4705. return ErrInvalidLengthGenerated
  4706. }
  4707. if postIndex > l {
  4708. return io.ErrUnexpectedEOF
  4709. }
  4710. m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex]))
  4711. iNdEx = postIndex
  4712. default:
  4713. iNdEx = preIndex
  4714. skippy, err := skipGenerated(dAtA[iNdEx:])
  4715. if err != nil {
  4716. return err
  4717. }
  4718. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4719. return ErrInvalidLengthGenerated
  4720. }
  4721. if (iNdEx + skippy) > l {
  4722. return io.ErrUnexpectedEOF
  4723. }
  4724. iNdEx += skippy
  4725. }
  4726. }
  4727. if iNdEx > l {
  4728. return io.ErrUnexpectedEOF
  4729. }
  4730. return nil
  4731. }
  4732. func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error {
  4733. l := len(dAtA)
  4734. iNdEx := 0
  4735. for iNdEx < l {
  4736. preIndex := iNdEx
  4737. var wire uint64
  4738. for shift := uint(0); ; shift += 7 {
  4739. if shift >= 64 {
  4740. return ErrIntOverflowGenerated
  4741. }
  4742. if iNdEx >= l {
  4743. return io.ErrUnexpectedEOF
  4744. }
  4745. b := dAtA[iNdEx]
  4746. iNdEx++
  4747. wire |= uint64(b&0x7F) << shift
  4748. if b < 0x80 {
  4749. break
  4750. }
  4751. }
  4752. fieldNum := int32(wire >> 3)
  4753. wireType := int(wire & 0x7)
  4754. if wireType == 4 {
  4755. return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group")
  4756. }
  4757. if fieldNum <= 0 {
  4758. return fmt.Errorf("proto: ServiceAccountSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  4759. }
  4760. switch fieldNum {
  4761. case 1:
  4762. if wireType != 2 {
  4763. return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  4764. }
  4765. var stringLen uint64
  4766. for shift := uint(0); ; shift += 7 {
  4767. if shift >= 64 {
  4768. return ErrIntOverflowGenerated
  4769. }
  4770. if iNdEx >= l {
  4771. return io.ErrUnexpectedEOF
  4772. }
  4773. b := dAtA[iNdEx]
  4774. iNdEx++
  4775. stringLen |= uint64(b&0x7F) << shift
  4776. if b < 0x80 {
  4777. break
  4778. }
  4779. }
  4780. intStringLen := int(stringLen)
  4781. if intStringLen < 0 {
  4782. return ErrInvalidLengthGenerated
  4783. }
  4784. postIndex := iNdEx + intStringLen
  4785. if postIndex < 0 {
  4786. return ErrInvalidLengthGenerated
  4787. }
  4788. if postIndex > l {
  4789. return io.ErrUnexpectedEOF
  4790. }
  4791. m.Namespace = string(dAtA[iNdEx:postIndex])
  4792. iNdEx = postIndex
  4793. case 2:
  4794. if wireType != 2 {
  4795. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4796. }
  4797. var stringLen uint64
  4798. for shift := uint(0); ; shift += 7 {
  4799. if shift >= 64 {
  4800. return ErrIntOverflowGenerated
  4801. }
  4802. if iNdEx >= l {
  4803. return io.ErrUnexpectedEOF
  4804. }
  4805. b := dAtA[iNdEx]
  4806. iNdEx++
  4807. stringLen |= uint64(b&0x7F) << shift
  4808. if b < 0x80 {
  4809. break
  4810. }
  4811. }
  4812. intStringLen := int(stringLen)
  4813. if intStringLen < 0 {
  4814. return ErrInvalidLengthGenerated
  4815. }
  4816. postIndex := iNdEx + intStringLen
  4817. if postIndex < 0 {
  4818. return ErrInvalidLengthGenerated
  4819. }
  4820. if postIndex > l {
  4821. return io.ErrUnexpectedEOF
  4822. }
  4823. m.Name = string(dAtA[iNdEx:postIndex])
  4824. iNdEx = postIndex
  4825. default:
  4826. iNdEx = preIndex
  4827. skippy, err := skipGenerated(dAtA[iNdEx:])
  4828. if err != nil {
  4829. return err
  4830. }
  4831. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4832. return ErrInvalidLengthGenerated
  4833. }
  4834. if (iNdEx + skippy) > l {
  4835. return io.ErrUnexpectedEOF
  4836. }
  4837. iNdEx += skippy
  4838. }
  4839. }
  4840. if iNdEx > l {
  4841. return io.ErrUnexpectedEOF
  4842. }
  4843. return nil
  4844. }
  4845. func (m *Subject) Unmarshal(dAtA []byte) error {
  4846. l := len(dAtA)
  4847. iNdEx := 0
  4848. for iNdEx < l {
  4849. preIndex := iNdEx
  4850. var wire uint64
  4851. for shift := uint(0); ; shift += 7 {
  4852. if shift >= 64 {
  4853. return ErrIntOverflowGenerated
  4854. }
  4855. if iNdEx >= l {
  4856. return io.ErrUnexpectedEOF
  4857. }
  4858. b := dAtA[iNdEx]
  4859. iNdEx++
  4860. wire |= uint64(b&0x7F) << shift
  4861. if b < 0x80 {
  4862. break
  4863. }
  4864. }
  4865. fieldNum := int32(wire >> 3)
  4866. wireType := int(wire & 0x7)
  4867. if wireType == 4 {
  4868. return fmt.Errorf("proto: Subject: wiretype end group for non-group")
  4869. }
  4870. if fieldNum <= 0 {
  4871. return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire)
  4872. }
  4873. switch fieldNum {
  4874. case 1:
  4875. if wireType != 2 {
  4876. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  4877. }
  4878. var stringLen uint64
  4879. for shift := uint(0); ; shift += 7 {
  4880. if shift >= 64 {
  4881. return ErrIntOverflowGenerated
  4882. }
  4883. if iNdEx >= l {
  4884. return io.ErrUnexpectedEOF
  4885. }
  4886. b := dAtA[iNdEx]
  4887. iNdEx++
  4888. stringLen |= uint64(b&0x7F) << shift
  4889. if b < 0x80 {
  4890. break
  4891. }
  4892. }
  4893. intStringLen := int(stringLen)
  4894. if intStringLen < 0 {
  4895. return ErrInvalidLengthGenerated
  4896. }
  4897. postIndex := iNdEx + intStringLen
  4898. if postIndex < 0 {
  4899. return ErrInvalidLengthGenerated
  4900. }
  4901. if postIndex > l {
  4902. return io.ErrUnexpectedEOF
  4903. }
  4904. m.Kind = SubjectKind(dAtA[iNdEx:postIndex])
  4905. iNdEx = postIndex
  4906. case 2:
  4907. if wireType != 2 {
  4908. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  4909. }
  4910. var msglen int
  4911. for shift := uint(0); ; shift += 7 {
  4912. if shift >= 64 {
  4913. return ErrIntOverflowGenerated
  4914. }
  4915. if iNdEx >= l {
  4916. return io.ErrUnexpectedEOF
  4917. }
  4918. b := dAtA[iNdEx]
  4919. iNdEx++
  4920. msglen |= int(b&0x7F) << shift
  4921. if b < 0x80 {
  4922. break
  4923. }
  4924. }
  4925. if msglen < 0 {
  4926. return ErrInvalidLengthGenerated
  4927. }
  4928. postIndex := iNdEx + msglen
  4929. if postIndex < 0 {
  4930. return ErrInvalidLengthGenerated
  4931. }
  4932. if postIndex > l {
  4933. return io.ErrUnexpectedEOF
  4934. }
  4935. if m.User == nil {
  4936. m.User = &UserSubject{}
  4937. }
  4938. if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4939. return err
  4940. }
  4941. iNdEx = postIndex
  4942. case 3:
  4943. if wireType != 2 {
  4944. return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
  4945. }
  4946. var msglen int
  4947. for shift := uint(0); ; shift += 7 {
  4948. if shift >= 64 {
  4949. return ErrIntOverflowGenerated
  4950. }
  4951. if iNdEx >= l {
  4952. return io.ErrUnexpectedEOF
  4953. }
  4954. b := dAtA[iNdEx]
  4955. iNdEx++
  4956. msglen |= int(b&0x7F) << shift
  4957. if b < 0x80 {
  4958. break
  4959. }
  4960. }
  4961. if msglen < 0 {
  4962. return ErrInvalidLengthGenerated
  4963. }
  4964. postIndex := iNdEx + msglen
  4965. if postIndex < 0 {
  4966. return ErrInvalidLengthGenerated
  4967. }
  4968. if postIndex > l {
  4969. return io.ErrUnexpectedEOF
  4970. }
  4971. if m.Group == nil {
  4972. m.Group = &GroupSubject{}
  4973. }
  4974. if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4975. return err
  4976. }
  4977. iNdEx = postIndex
  4978. case 4:
  4979. if wireType != 2 {
  4980. return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType)
  4981. }
  4982. var msglen int
  4983. for shift := uint(0); ; shift += 7 {
  4984. if shift >= 64 {
  4985. return ErrIntOverflowGenerated
  4986. }
  4987. if iNdEx >= l {
  4988. return io.ErrUnexpectedEOF
  4989. }
  4990. b := dAtA[iNdEx]
  4991. iNdEx++
  4992. msglen |= int(b&0x7F) << shift
  4993. if b < 0x80 {
  4994. break
  4995. }
  4996. }
  4997. if msglen < 0 {
  4998. return ErrInvalidLengthGenerated
  4999. }
  5000. postIndex := iNdEx + msglen
  5001. if postIndex < 0 {
  5002. return ErrInvalidLengthGenerated
  5003. }
  5004. if postIndex > l {
  5005. return io.ErrUnexpectedEOF
  5006. }
  5007. if m.ServiceAccount == nil {
  5008. m.ServiceAccount = &ServiceAccountSubject{}
  5009. }
  5010. if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5011. return err
  5012. }
  5013. iNdEx = postIndex
  5014. default:
  5015. iNdEx = preIndex
  5016. skippy, err := skipGenerated(dAtA[iNdEx:])
  5017. if err != nil {
  5018. return err
  5019. }
  5020. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5021. return ErrInvalidLengthGenerated
  5022. }
  5023. if (iNdEx + skippy) > l {
  5024. return io.ErrUnexpectedEOF
  5025. }
  5026. iNdEx += skippy
  5027. }
  5028. }
  5029. if iNdEx > l {
  5030. return io.ErrUnexpectedEOF
  5031. }
  5032. return nil
  5033. }
  5034. func (m *UserSubject) Unmarshal(dAtA []byte) error {
  5035. l := len(dAtA)
  5036. iNdEx := 0
  5037. for iNdEx < l {
  5038. preIndex := iNdEx
  5039. var wire uint64
  5040. for shift := uint(0); ; shift += 7 {
  5041. if shift >= 64 {
  5042. return ErrIntOverflowGenerated
  5043. }
  5044. if iNdEx >= l {
  5045. return io.ErrUnexpectedEOF
  5046. }
  5047. b := dAtA[iNdEx]
  5048. iNdEx++
  5049. wire |= uint64(b&0x7F) << shift
  5050. if b < 0x80 {
  5051. break
  5052. }
  5053. }
  5054. fieldNum := int32(wire >> 3)
  5055. wireType := int(wire & 0x7)
  5056. if wireType == 4 {
  5057. return fmt.Errorf("proto: UserSubject: wiretype end group for non-group")
  5058. }
  5059. if fieldNum <= 0 {
  5060. return fmt.Errorf("proto: UserSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  5061. }
  5062. switch fieldNum {
  5063. case 1:
  5064. if wireType != 2 {
  5065. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5066. }
  5067. var stringLen uint64
  5068. for shift := uint(0); ; shift += 7 {
  5069. if shift >= 64 {
  5070. return ErrIntOverflowGenerated
  5071. }
  5072. if iNdEx >= l {
  5073. return io.ErrUnexpectedEOF
  5074. }
  5075. b := dAtA[iNdEx]
  5076. iNdEx++
  5077. stringLen |= uint64(b&0x7F) << shift
  5078. if b < 0x80 {
  5079. break
  5080. }
  5081. }
  5082. intStringLen := int(stringLen)
  5083. if intStringLen < 0 {
  5084. return ErrInvalidLengthGenerated
  5085. }
  5086. postIndex := iNdEx + intStringLen
  5087. if postIndex < 0 {
  5088. return ErrInvalidLengthGenerated
  5089. }
  5090. if postIndex > l {
  5091. return io.ErrUnexpectedEOF
  5092. }
  5093. m.Name = string(dAtA[iNdEx:postIndex])
  5094. iNdEx = postIndex
  5095. default:
  5096. iNdEx = preIndex
  5097. skippy, err := skipGenerated(dAtA[iNdEx:])
  5098. if err != nil {
  5099. return err
  5100. }
  5101. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5102. return ErrInvalidLengthGenerated
  5103. }
  5104. if (iNdEx + skippy) > l {
  5105. return io.ErrUnexpectedEOF
  5106. }
  5107. iNdEx += skippy
  5108. }
  5109. }
  5110. if iNdEx > l {
  5111. return io.ErrUnexpectedEOF
  5112. }
  5113. return nil
  5114. }
  5115. func skipGenerated(dAtA []byte) (n int, err error) {
  5116. l := len(dAtA)
  5117. iNdEx := 0
  5118. depth := 0
  5119. for iNdEx < l {
  5120. var wire uint64
  5121. for shift := uint(0); ; shift += 7 {
  5122. if shift >= 64 {
  5123. return 0, ErrIntOverflowGenerated
  5124. }
  5125. if iNdEx >= l {
  5126. return 0, io.ErrUnexpectedEOF
  5127. }
  5128. b := dAtA[iNdEx]
  5129. iNdEx++
  5130. wire |= (uint64(b) & 0x7F) << shift
  5131. if b < 0x80 {
  5132. break
  5133. }
  5134. }
  5135. wireType := int(wire & 0x7)
  5136. switch wireType {
  5137. case 0:
  5138. for shift := uint(0); ; shift += 7 {
  5139. if shift >= 64 {
  5140. return 0, ErrIntOverflowGenerated
  5141. }
  5142. if iNdEx >= l {
  5143. return 0, io.ErrUnexpectedEOF
  5144. }
  5145. iNdEx++
  5146. if dAtA[iNdEx-1] < 0x80 {
  5147. break
  5148. }
  5149. }
  5150. case 1:
  5151. iNdEx += 8
  5152. case 2:
  5153. var length int
  5154. for shift := uint(0); ; shift += 7 {
  5155. if shift >= 64 {
  5156. return 0, ErrIntOverflowGenerated
  5157. }
  5158. if iNdEx >= l {
  5159. return 0, io.ErrUnexpectedEOF
  5160. }
  5161. b := dAtA[iNdEx]
  5162. iNdEx++
  5163. length |= (int(b) & 0x7F) << shift
  5164. if b < 0x80 {
  5165. break
  5166. }
  5167. }
  5168. if length < 0 {
  5169. return 0, ErrInvalidLengthGenerated
  5170. }
  5171. iNdEx += length
  5172. case 3:
  5173. depth++
  5174. case 4:
  5175. if depth == 0 {
  5176. return 0, ErrUnexpectedEndOfGroupGenerated
  5177. }
  5178. depth--
  5179. case 5:
  5180. iNdEx += 4
  5181. default:
  5182. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5183. }
  5184. if iNdEx < 0 {
  5185. return 0, ErrInvalidLengthGenerated
  5186. }
  5187. if depth == 0 {
  5188. return iNdEx, nil
  5189. }
  5190. }
  5191. return 0, io.ErrUnexpectedEOF
  5192. }
  5193. var (
  5194. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  5195. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  5196. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  5197. )