generated.pb.go 135 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433
  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 {
  2370. return ErrInvalidLengthGenerated
  2371. }
  2372. if (iNdEx + skippy) < 0 {
  2373. return ErrInvalidLengthGenerated
  2374. }
  2375. if (iNdEx + skippy) > l {
  2376. return io.ErrUnexpectedEOF
  2377. }
  2378. iNdEx += skippy
  2379. }
  2380. }
  2381. if iNdEx > l {
  2382. return io.ErrUnexpectedEOF
  2383. }
  2384. return nil
  2385. }
  2386. func (m *FlowSchema) Unmarshal(dAtA []byte) error {
  2387. l := len(dAtA)
  2388. iNdEx := 0
  2389. for iNdEx < l {
  2390. preIndex := iNdEx
  2391. var wire uint64
  2392. for shift := uint(0); ; shift += 7 {
  2393. if shift >= 64 {
  2394. return ErrIntOverflowGenerated
  2395. }
  2396. if iNdEx >= l {
  2397. return io.ErrUnexpectedEOF
  2398. }
  2399. b := dAtA[iNdEx]
  2400. iNdEx++
  2401. wire |= uint64(b&0x7F) << shift
  2402. if b < 0x80 {
  2403. break
  2404. }
  2405. }
  2406. fieldNum := int32(wire >> 3)
  2407. wireType := int(wire & 0x7)
  2408. if wireType == 4 {
  2409. return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group")
  2410. }
  2411. if fieldNum <= 0 {
  2412. return fmt.Errorf("proto: FlowSchema: illegal tag %d (wire type %d)", fieldNum, wire)
  2413. }
  2414. switch fieldNum {
  2415. case 1:
  2416. if wireType != 2 {
  2417. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  2418. }
  2419. var msglen int
  2420. for shift := uint(0); ; shift += 7 {
  2421. if shift >= 64 {
  2422. return ErrIntOverflowGenerated
  2423. }
  2424. if iNdEx >= l {
  2425. return io.ErrUnexpectedEOF
  2426. }
  2427. b := dAtA[iNdEx]
  2428. iNdEx++
  2429. msglen |= int(b&0x7F) << shift
  2430. if b < 0x80 {
  2431. break
  2432. }
  2433. }
  2434. if msglen < 0 {
  2435. return ErrInvalidLengthGenerated
  2436. }
  2437. postIndex := iNdEx + msglen
  2438. if postIndex < 0 {
  2439. return ErrInvalidLengthGenerated
  2440. }
  2441. if postIndex > l {
  2442. return io.ErrUnexpectedEOF
  2443. }
  2444. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2445. return err
  2446. }
  2447. iNdEx = postIndex
  2448. case 2:
  2449. if wireType != 2 {
  2450. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  2451. }
  2452. var msglen int
  2453. for shift := uint(0); ; shift += 7 {
  2454. if shift >= 64 {
  2455. return ErrIntOverflowGenerated
  2456. }
  2457. if iNdEx >= l {
  2458. return io.ErrUnexpectedEOF
  2459. }
  2460. b := dAtA[iNdEx]
  2461. iNdEx++
  2462. msglen |= int(b&0x7F) << shift
  2463. if b < 0x80 {
  2464. break
  2465. }
  2466. }
  2467. if msglen < 0 {
  2468. return ErrInvalidLengthGenerated
  2469. }
  2470. postIndex := iNdEx + msglen
  2471. if postIndex < 0 {
  2472. return ErrInvalidLengthGenerated
  2473. }
  2474. if postIndex > l {
  2475. return io.ErrUnexpectedEOF
  2476. }
  2477. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2478. return err
  2479. }
  2480. iNdEx = postIndex
  2481. case 3:
  2482. if wireType != 2 {
  2483. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2484. }
  2485. var msglen int
  2486. for shift := uint(0); ; shift += 7 {
  2487. if shift >= 64 {
  2488. return ErrIntOverflowGenerated
  2489. }
  2490. if iNdEx >= l {
  2491. return io.ErrUnexpectedEOF
  2492. }
  2493. b := dAtA[iNdEx]
  2494. iNdEx++
  2495. msglen |= int(b&0x7F) << shift
  2496. if b < 0x80 {
  2497. break
  2498. }
  2499. }
  2500. if msglen < 0 {
  2501. return ErrInvalidLengthGenerated
  2502. }
  2503. postIndex := iNdEx + msglen
  2504. if postIndex < 0 {
  2505. return ErrInvalidLengthGenerated
  2506. }
  2507. if postIndex > l {
  2508. return io.ErrUnexpectedEOF
  2509. }
  2510. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2511. return err
  2512. }
  2513. iNdEx = postIndex
  2514. default:
  2515. iNdEx = preIndex
  2516. skippy, err := skipGenerated(dAtA[iNdEx:])
  2517. if err != nil {
  2518. return err
  2519. }
  2520. if skippy < 0 {
  2521. return ErrInvalidLengthGenerated
  2522. }
  2523. if (iNdEx + skippy) < 0 {
  2524. return ErrInvalidLengthGenerated
  2525. }
  2526. if (iNdEx + skippy) > l {
  2527. return io.ErrUnexpectedEOF
  2528. }
  2529. iNdEx += skippy
  2530. }
  2531. }
  2532. if iNdEx > l {
  2533. return io.ErrUnexpectedEOF
  2534. }
  2535. return nil
  2536. }
  2537. func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error {
  2538. l := len(dAtA)
  2539. iNdEx := 0
  2540. for iNdEx < l {
  2541. preIndex := iNdEx
  2542. var wire uint64
  2543. for shift := uint(0); ; shift += 7 {
  2544. if shift >= 64 {
  2545. return ErrIntOverflowGenerated
  2546. }
  2547. if iNdEx >= l {
  2548. return io.ErrUnexpectedEOF
  2549. }
  2550. b := dAtA[iNdEx]
  2551. iNdEx++
  2552. wire |= uint64(b&0x7F) << shift
  2553. if b < 0x80 {
  2554. break
  2555. }
  2556. }
  2557. fieldNum := int32(wire >> 3)
  2558. wireType := int(wire & 0x7)
  2559. if wireType == 4 {
  2560. return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group")
  2561. }
  2562. if fieldNum <= 0 {
  2563. return fmt.Errorf("proto: FlowSchemaCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  2564. }
  2565. switch fieldNum {
  2566. case 1:
  2567. if wireType != 2 {
  2568. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2569. }
  2570. var stringLen uint64
  2571. for shift := uint(0); ; shift += 7 {
  2572. if shift >= 64 {
  2573. return ErrIntOverflowGenerated
  2574. }
  2575. if iNdEx >= l {
  2576. return io.ErrUnexpectedEOF
  2577. }
  2578. b := dAtA[iNdEx]
  2579. iNdEx++
  2580. stringLen |= uint64(b&0x7F) << shift
  2581. if b < 0x80 {
  2582. break
  2583. }
  2584. }
  2585. intStringLen := int(stringLen)
  2586. if intStringLen < 0 {
  2587. return ErrInvalidLengthGenerated
  2588. }
  2589. postIndex := iNdEx + intStringLen
  2590. if postIndex < 0 {
  2591. return ErrInvalidLengthGenerated
  2592. }
  2593. if postIndex > l {
  2594. return io.ErrUnexpectedEOF
  2595. }
  2596. m.Type = FlowSchemaConditionType(dAtA[iNdEx:postIndex])
  2597. iNdEx = postIndex
  2598. case 2:
  2599. if wireType != 2 {
  2600. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2601. }
  2602. var stringLen uint64
  2603. for shift := uint(0); ; shift += 7 {
  2604. if shift >= 64 {
  2605. return ErrIntOverflowGenerated
  2606. }
  2607. if iNdEx >= l {
  2608. return io.ErrUnexpectedEOF
  2609. }
  2610. b := dAtA[iNdEx]
  2611. iNdEx++
  2612. stringLen |= uint64(b&0x7F) << shift
  2613. if b < 0x80 {
  2614. break
  2615. }
  2616. }
  2617. intStringLen := int(stringLen)
  2618. if intStringLen < 0 {
  2619. return ErrInvalidLengthGenerated
  2620. }
  2621. postIndex := iNdEx + intStringLen
  2622. if postIndex < 0 {
  2623. return ErrInvalidLengthGenerated
  2624. }
  2625. if postIndex > l {
  2626. return io.ErrUnexpectedEOF
  2627. }
  2628. m.Status = ConditionStatus(dAtA[iNdEx:postIndex])
  2629. iNdEx = postIndex
  2630. case 3:
  2631. if wireType != 2 {
  2632. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  2633. }
  2634. var msglen int
  2635. for shift := uint(0); ; shift += 7 {
  2636. if shift >= 64 {
  2637. return ErrIntOverflowGenerated
  2638. }
  2639. if iNdEx >= l {
  2640. return io.ErrUnexpectedEOF
  2641. }
  2642. b := dAtA[iNdEx]
  2643. iNdEx++
  2644. msglen |= int(b&0x7F) << shift
  2645. if b < 0x80 {
  2646. break
  2647. }
  2648. }
  2649. if msglen < 0 {
  2650. return ErrInvalidLengthGenerated
  2651. }
  2652. postIndex := iNdEx + msglen
  2653. if postIndex < 0 {
  2654. return ErrInvalidLengthGenerated
  2655. }
  2656. if postIndex > l {
  2657. return io.ErrUnexpectedEOF
  2658. }
  2659. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2660. return err
  2661. }
  2662. iNdEx = postIndex
  2663. case 4:
  2664. if wireType != 2 {
  2665. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  2666. }
  2667. var stringLen uint64
  2668. for shift := uint(0); ; shift += 7 {
  2669. if shift >= 64 {
  2670. return ErrIntOverflowGenerated
  2671. }
  2672. if iNdEx >= l {
  2673. return io.ErrUnexpectedEOF
  2674. }
  2675. b := dAtA[iNdEx]
  2676. iNdEx++
  2677. stringLen |= uint64(b&0x7F) << shift
  2678. if b < 0x80 {
  2679. break
  2680. }
  2681. }
  2682. intStringLen := int(stringLen)
  2683. if intStringLen < 0 {
  2684. return ErrInvalidLengthGenerated
  2685. }
  2686. postIndex := iNdEx + intStringLen
  2687. if postIndex < 0 {
  2688. return ErrInvalidLengthGenerated
  2689. }
  2690. if postIndex > l {
  2691. return io.ErrUnexpectedEOF
  2692. }
  2693. m.Reason = string(dAtA[iNdEx:postIndex])
  2694. iNdEx = postIndex
  2695. case 5:
  2696. if wireType != 2 {
  2697. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  2698. }
  2699. var stringLen uint64
  2700. for shift := uint(0); ; shift += 7 {
  2701. if shift >= 64 {
  2702. return ErrIntOverflowGenerated
  2703. }
  2704. if iNdEx >= l {
  2705. return io.ErrUnexpectedEOF
  2706. }
  2707. b := dAtA[iNdEx]
  2708. iNdEx++
  2709. stringLen |= uint64(b&0x7F) << shift
  2710. if b < 0x80 {
  2711. break
  2712. }
  2713. }
  2714. intStringLen := int(stringLen)
  2715. if intStringLen < 0 {
  2716. return ErrInvalidLengthGenerated
  2717. }
  2718. postIndex := iNdEx + intStringLen
  2719. if postIndex < 0 {
  2720. return ErrInvalidLengthGenerated
  2721. }
  2722. if postIndex > l {
  2723. return io.ErrUnexpectedEOF
  2724. }
  2725. m.Message = string(dAtA[iNdEx:postIndex])
  2726. iNdEx = postIndex
  2727. default:
  2728. iNdEx = preIndex
  2729. skippy, err := skipGenerated(dAtA[iNdEx:])
  2730. if err != nil {
  2731. return err
  2732. }
  2733. if skippy < 0 {
  2734. return ErrInvalidLengthGenerated
  2735. }
  2736. if (iNdEx + skippy) < 0 {
  2737. return ErrInvalidLengthGenerated
  2738. }
  2739. if (iNdEx + skippy) > l {
  2740. return io.ErrUnexpectedEOF
  2741. }
  2742. iNdEx += skippy
  2743. }
  2744. }
  2745. if iNdEx > l {
  2746. return io.ErrUnexpectedEOF
  2747. }
  2748. return nil
  2749. }
  2750. func (m *FlowSchemaList) Unmarshal(dAtA []byte) error {
  2751. l := len(dAtA)
  2752. iNdEx := 0
  2753. for iNdEx < l {
  2754. preIndex := iNdEx
  2755. var wire uint64
  2756. for shift := uint(0); ; shift += 7 {
  2757. if shift >= 64 {
  2758. return ErrIntOverflowGenerated
  2759. }
  2760. if iNdEx >= l {
  2761. return io.ErrUnexpectedEOF
  2762. }
  2763. b := dAtA[iNdEx]
  2764. iNdEx++
  2765. wire |= uint64(b&0x7F) << shift
  2766. if b < 0x80 {
  2767. break
  2768. }
  2769. }
  2770. fieldNum := int32(wire >> 3)
  2771. wireType := int(wire & 0x7)
  2772. if wireType == 4 {
  2773. return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group")
  2774. }
  2775. if fieldNum <= 0 {
  2776. return fmt.Errorf("proto: FlowSchemaList: illegal tag %d (wire type %d)", fieldNum, wire)
  2777. }
  2778. switch fieldNum {
  2779. case 1:
  2780. if wireType != 2 {
  2781. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2782. }
  2783. var msglen int
  2784. for shift := uint(0); ; shift += 7 {
  2785. if shift >= 64 {
  2786. return ErrIntOverflowGenerated
  2787. }
  2788. if iNdEx >= l {
  2789. return io.ErrUnexpectedEOF
  2790. }
  2791. b := dAtA[iNdEx]
  2792. iNdEx++
  2793. msglen |= int(b&0x7F) << shift
  2794. if b < 0x80 {
  2795. break
  2796. }
  2797. }
  2798. if msglen < 0 {
  2799. return ErrInvalidLengthGenerated
  2800. }
  2801. postIndex := iNdEx + msglen
  2802. if postIndex < 0 {
  2803. return ErrInvalidLengthGenerated
  2804. }
  2805. if postIndex > l {
  2806. return io.ErrUnexpectedEOF
  2807. }
  2808. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2809. return err
  2810. }
  2811. iNdEx = postIndex
  2812. case 2:
  2813. if wireType != 2 {
  2814. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2815. }
  2816. var msglen int
  2817. for shift := uint(0); ; shift += 7 {
  2818. if shift >= 64 {
  2819. return ErrIntOverflowGenerated
  2820. }
  2821. if iNdEx >= l {
  2822. return io.ErrUnexpectedEOF
  2823. }
  2824. b := dAtA[iNdEx]
  2825. iNdEx++
  2826. msglen |= int(b&0x7F) << shift
  2827. if b < 0x80 {
  2828. break
  2829. }
  2830. }
  2831. if msglen < 0 {
  2832. return ErrInvalidLengthGenerated
  2833. }
  2834. postIndex := iNdEx + msglen
  2835. if postIndex < 0 {
  2836. return ErrInvalidLengthGenerated
  2837. }
  2838. if postIndex > l {
  2839. return io.ErrUnexpectedEOF
  2840. }
  2841. m.Items = append(m.Items, FlowSchema{})
  2842. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2843. return err
  2844. }
  2845. iNdEx = postIndex
  2846. default:
  2847. iNdEx = preIndex
  2848. skippy, err := skipGenerated(dAtA[iNdEx:])
  2849. if err != nil {
  2850. return err
  2851. }
  2852. if skippy < 0 {
  2853. return ErrInvalidLengthGenerated
  2854. }
  2855. if (iNdEx + skippy) < 0 {
  2856. return ErrInvalidLengthGenerated
  2857. }
  2858. if (iNdEx + skippy) > l {
  2859. return io.ErrUnexpectedEOF
  2860. }
  2861. iNdEx += skippy
  2862. }
  2863. }
  2864. if iNdEx > l {
  2865. return io.ErrUnexpectedEOF
  2866. }
  2867. return nil
  2868. }
  2869. func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error {
  2870. l := len(dAtA)
  2871. iNdEx := 0
  2872. for iNdEx < l {
  2873. preIndex := iNdEx
  2874. var wire uint64
  2875. for shift := uint(0); ; shift += 7 {
  2876. if shift >= 64 {
  2877. return ErrIntOverflowGenerated
  2878. }
  2879. if iNdEx >= l {
  2880. return io.ErrUnexpectedEOF
  2881. }
  2882. b := dAtA[iNdEx]
  2883. iNdEx++
  2884. wire |= uint64(b&0x7F) << shift
  2885. if b < 0x80 {
  2886. break
  2887. }
  2888. }
  2889. fieldNum := int32(wire >> 3)
  2890. wireType := int(wire & 0x7)
  2891. if wireType == 4 {
  2892. return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group")
  2893. }
  2894. if fieldNum <= 0 {
  2895. return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2896. }
  2897. switch fieldNum {
  2898. case 1:
  2899. if wireType != 2 {
  2900. return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType)
  2901. }
  2902. var msglen int
  2903. for shift := uint(0); ; shift += 7 {
  2904. if shift >= 64 {
  2905. return ErrIntOverflowGenerated
  2906. }
  2907. if iNdEx >= l {
  2908. return io.ErrUnexpectedEOF
  2909. }
  2910. b := dAtA[iNdEx]
  2911. iNdEx++
  2912. msglen |= int(b&0x7F) << shift
  2913. if b < 0x80 {
  2914. break
  2915. }
  2916. }
  2917. if msglen < 0 {
  2918. return ErrInvalidLengthGenerated
  2919. }
  2920. postIndex := iNdEx + msglen
  2921. if postIndex < 0 {
  2922. return ErrInvalidLengthGenerated
  2923. }
  2924. if postIndex > l {
  2925. return io.ErrUnexpectedEOF
  2926. }
  2927. if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2928. return err
  2929. }
  2930. iNdEx = postIndex
  2931. case 2:
  2932. if wireType != 0 {
  2933. return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType)
  2934. }
  2935. m.MatchingPrecedence = 0
  2936. for shift := uint(0); ; shift += 7 {
  2937. if shift >= 64 {
  2938. return ErrIntOverflowGenerated
  2939. }
  2940. if iNdEx >= l {
  2941. return io.ErrUnexpectedEOF
  2942. }
  2943. b := dAtA[iNdEx]
  2944. iNdEx++
  2945. m.MatchingPrecedence |= int32(b&0x7F) << shift
  2946. if b < 0x80 {
  2947. break
  2948. }
  2949. }
  2950. case 3:
  2951. if wireType != 2 {
  2952. return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType)
  2953. }
  2954. var msglen int
  2955. for shift := uint(0); ; shift += 7 {
  2956. if shift >= 64 {
  2957. return ErrIntOverflowGenerated
  2958. }
  2959. if iNdEx >= l {
  2960. return io.ErrUnexpectedEOF
  2961. }
  2962. b := dAtA[iNdEx]
  2963. iNdEx++
  2964. msglen |= int(b&0x7F) << shift
  2965. if b < 0x80 {
  2966. break
  2967. }
  2968. }
  2969. if msglen < 0 {
  2970. return ErrInvalidLengthGenerated
  2971. }
  2972. postIndex := iNdEx + msglen
  2973. if postIndex < 0 {
  2974. return ErrInvalidLengthGenerated
  2975. }
  2976. if postIndex > l {
  2977. return io.ErrUnexpectedEOF
  2978. }
  2979. if m.DistinguisherMethod == nil {
  2980. m.DistinguisherMethod = &FlowDistinguisherMethod{}
  2981. }
  2982. if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2983. return err
  2984. }
  2985. iNdEx = postIndex
  2986. case 4:
  2987. if wireType != 2 {
  2988. return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  2989. }
  2990. var msglen int
  2991. for shift := uint(0); ; shift += 7 {
  2992. if shift >= 64 {
  2993. return ErrIntOverflowGenerated
  2994. }
  2995. if iNdEx >= l {
  2996. return io.ErrUnexpectedEOF
  2997. }
  2998. b := dAtA[iNdEx]
  2999. iNdEx++
  3000. msglen |= int(b&0x7F) << shift
  3001. if b < 0x80 {
  3002. break
  3003. }
  3004. }
  3005. if msglen < 0 {
  3006. return ErrInvalidLengthGenerated
  3007. }
  3008. postIndex := iNdEx + msglen
  3009. if postIndex < 0 {
  3010. return ErrInvalidLengthGenerated
  3011. }
  3012. if postIndex > l {
  3013. return io.ErrUnexpectedEOF
  3014. }
  3015. m.Rules = append(m.Rules, PolicyRulesWithSubjects{})
  3016. if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3017. return err
  3018. }
  3019. iNdEx = postIndex
  3020. default:
  3021. iNdEx = preIndex
  3022. skippy, err := skipGenerated(dAtA[iNdEx:])
  3023. if err != nil {
  3024. return err
  3025. }
  3026. if skippy < 0 {
  3027. return ErrInvalidLengthGenerated
  3028. }
  3029. if (iNdEx + skippy) < 0 {
  3030. return ErrInvalidLengthGenerated
  3031. }
  3032. if (iNdEx + skippy) > l {
  3033. return io.ErrUnexpectedEOF
  3034. }
  3035. iNdEx += skippy
  3036. }
  3037. }
  3038. if iNdEx > l {
  3039. return io.ErrUnexpectedEOF
  3040. }
  3041. return nil
  3042. }
  3043. func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error {
  3044. l := len(dAtA)
  3045. iNdEx := 0
  3046. for iNdEx < l {
  3047. preIndex := iNdEx
  3048. var wire uint64
  3049. for shift := uint(0); ; shift += 7 {
  3050. if shift >= 64 {
  3051. return ErrIntOverflowGenerated
  3052. }
  3053. if iNdEx >= l {
  3054. return io.ErrUnexpectedEOF
  3055. }
  3056. b := dAtA[iNdEx]
  3057. iNdEx++
  3058. wire |= uint64(b&0x7F) << shift
  3059. if b < 0x80 {
  3060. break
  3061. }
  3062. }
  3063. fieldNum := int32(wire >> 3)
  3064. wireType := int(wire & 0x7)
  3065. if wireType == 4 {
  3066. return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group")
  3067. }
  3068. if fieldNum <= 0 {
  3069. return fmt.Errorf("proto: FlowSchemaStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3070. }
  3071. switch fieldNum {
  3072. case 1:
  3073. if wireType != 2 {
  3074. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  3075. }
  3076. var msglen int
  3077. for shift := uint(0); ; shift += 7 {
  3078. if shift >= 64 {
  3079. return ErrIntOverflowGenerated
  3080. }
  3081. if iNdEx >= l {
  3082. return io.ErrUnexpectedEOF
  3083. }
  3084. b := dAtA[iNdEx]
  3085. iNdEx++
  3086. msglen |= int(b&0x7F) << shift
  3087. if b < 0x80 {
  3088. break
  3089. }
  3090. }
  3091. if msglen < 0 {
  3092. return ErrInvalidLengthGenerated
  3093. }
  3094. postIndex := iNdEx + msglen
  3095. if postIndex < 0 {
  3096. return ErrInvalidLengthGenerated
  3097. }
  3098. if postIndex > l {
  3099. return io.ErrUnexpectedEOF
  3100. }
  3101. m.Conditions = append(m.Conditions, FlowSchemaCondition{})
  3102. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3103. return err
  3104. }
  3105. iNdEx = postIndex
  3106. default:
  3107. iNdEx = preIndex
  3108. skippy, err := skipGenerated(dAtA[iNdEx:])
  3109. if err != nil {
  3110. return err
  3111. }
  3112. if skippy < 0 {
  3113. return ErrInvalidLengthGenerated
  3114. }
  3115. if (iNdEx + skippy) < 0 {
  3116. return ErrInvalidLengthGenerated
  3117. }
  3118. if (iNdEx + skippy) > l {
  3119. return io.ErrUnexpectedEOF
  3120. }
  3121. iNdEx += skippy
  3122. }
  3123. }
  3124. if iNdEx > l {
  3125. return io.ErrUnexpectedEOF
  3126. }
  3127. return nil
  3128. }
  3129. func (m *GroupSubject) Unmarshal(dAtA []byte) error {
  3130. l := len(dAtA)
  3131. iNdEx := 0
  3132. for iNdEx < l {
  3133. preIndex := iNdEx
  3134. var wire uint64
  3135. for shift := uint(0); ; shift += 7 {
  3136. if shift >= 64 {
  3137. return ErrIntOverflowGenerated
  3138. }
  3139. if iNdEx >= l {
  3140. return io.ErrUnexpectedEOF
  3141. }
  3142. b := dAtA[iNdEx]
  3143. iNdEx++
  3144. wire |= uint64(b&0x7F) << shift
  3145. if b < 0x80 {
  3146. break
  3147. }
  3148. }
  3149. fieldNum := int32(wire >> 3)
  3150. wireType := int(wire & 0x7)
  3151. if wireType == 4 {
  3152. return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group")
  3153. }
  3154. if fieldNum <= 0 {
  3155. return fmt.Errorf("proto: GroupSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  3156. }
  3157. switch fieldNum {
  3158. case 1:
  3159. if wireType != 2 {
  3160. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3161. }
  3162. var stringLen uint64
  3163. for shift := uint(0); ; shift += 7 {
  3164. if shift >= 64 {
  3165. return ErrIntOverflowGenerated
  3166. }
  3167. if iNdEx >= l {
  3168. return io.ErrUnexpectedEOF
  3169. }
  3170. b := dAtA[iNdEx]
  3171. iNdEx++
  3172. stringLen |= uint64(b&0x7F) << shift
  3173. if b < 0x80 {
  3174. break
  3175. }
  3176. }
  3177. intStringLen := int(stringLen)
  3178. if intStringLen < 0 {
  3179. return ErrInvalidLengthGenerated
  3180. }
  3181. postIndex := iNdEx + intStringLen
  3182. if postIndex < 0 {
  3183. return ErrInvalidLengthGenerated
  3184. }
  3185. if postIndex > l {
  3186. return io.ErrUnexpectedEOF
  3187. }
  3188. m.Name = string(dAtA[iNdEx:postIndex])
  3189. iNdEx = postIndex
  3190. default:
  3191. iNdEx = preIndex
  3192. skippy, err := skipGenerated(dAtA[iNdEx:])
  3193. if err != nil {
  3194. return err
  3195. }
  3196. if skippy < 0 {
  3197. return ErrInvalidLengthGenerated
  3198. }
  3199. if (iNdEx + skippy) < 0 {
  3200. return ErrInvalidLengthGenerated
  3201. }
  3202. if (iNdEx + skippy) > l {
  3203. return io.ErrUnexpectedEOF
  3204. }
  3205. iNdEx += skippy
  3206. }
  3207. }
  3208. if iNdEx > l {
  3209. return io.ErrUnexpectedEOF
  3210. }
  3211. return nil
  3212. }
  3213. func (m *LimitResponse) Unmarshal(dAtA []byte) error {
  3214. l := len(dAtA)
  3215. iNdEx := 0
  3216. for iNdEx < l {
  3217. preIndex := iNdEx
  3218. var wire uint64
  3219. for shift := uint(0); ; shift += 7 {
  3220. if shift >= 64 {
  3221. return ErrIntOverflowGenerated
  3222. }
  3223. if iNdEx >= l {
  3224. return io.ErrUnexpectedEOF
  3225. }
  3226. b := dAtA[iNdEx]
  3227. iNdEx++
  3228. wire |= uint64(b&0x7F) << shift
  3229. if b < 0x80 {
  3230. break
  3231. }
  3232. }
  3233. fieldNum := int32(wire >> 3)
  3234. wireType := int(wire & 0x7)
  3235. if wireType == 4 {
  3236. return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group")
  3237. }
  3238. if fieldNum <= 0 {
  3239. return fmt.Errorf("proto: LimitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3240. }
  3241. switch fieldNum {
  3242. case 1:
  3243. if wireType != 2 {
  3244. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3245. }
  3246. var stringLen uint64
  3247. for shift := uint(0); ; shift += 7 {
  3248. if shift >= 64 {
  3249. return ErrIntOverflowGenerated
  3250. }
  3251. if iNdEx >= l {
  3252. return io.ErrUnexpectedEOF
  3253. }
  3254. b := dAtA[iNdEx]
  3255. iNdEx++
  3256. stringLen |= uint64(b&0x7F) << shift
  3257. if b < 0x80 {
  3258. break
  3259. }
  3260. }
  3261. intStringLen := int(stringLen)
  3262. if intStringLen < 0 {
  3263. return ErrInvalidLengthGenerated
  3264. }
  3265. postIndex := iNdEx + intStringLen
  3266. if postIndex < 0 {
  3267. return ErrInvalidLengthGenerated
  3268. }
  3269. if postIndex > l {
  3270. return io.ErrUnexpectedEOF
  3271. }
  3272. m.Type = LimitResponseType(dAtA[iNdEx:postIndex])
  3273. iNdEx = postIndex
  3274. case 2:
  3275. if wireType != 2 {
  3276. return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType)
  3277. }
  3278. var msglen int
  3279. for shift := uint(0); ; shift += 7 {
  3280. if shift >= 64 {
  3281. return ErrIntOverflowGenerated
  3282. }
  3283. if iNdEx >= l {
  3284. return io.ErrUnexpectedEOF
  3285. }
  3286. b := dAtA[iNdEx]
  3287. iNdEx++
  3288. msglen |= int(b&0x7F) << shift
  3289. if b < 0x80 {
  3290. break
  3291. }
  3292. }
  3293. if msglen < 0 {
  3294. return ErrInvalidLengthGenerated
  3295. }
  3296. postIndex := iNdEx + msglen
  3297. if postIndex < 0 {
  3298. return ErrInvalidLengthGenerated
  3299. }
  3300. if postIndex > l {
  3301. return io.ErrUnexpectedEOF
  3302. }
  3303. if m.Queuing == nil {
  3304. m.Queuing = &QueuingConfiguration{}
  3305. }
  3306. if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3307. return err
  3308. }
  3309. iNdEx = postIndex
  3310. default:
  3311. iNdEx = preIndex
  3312. skippy, err := skipGenerated(dAtA[iNdEx:])
  3313. if err != nil {
  3314. return err
  3315. }
  3316. if skippy < 0 {
  3317. return ErrInvalidLengthGenerated
  3318. }
  3319. if (iNdEx + skippy) < 0 {
  3320. return ErrInvalidLengthGenerated
  3321. }
  3322. if (iNdEx + skippy) > l {
  3323. return io.ErrUnexpectedEOF
  3324. }
  3325. iNdEx += skippy
  3326. }
  3327. }
  3328. if iNdEx > l {
  3329. return io.ErrUnexpectedEOF
  3330. }
  3331. return nil
  3332. }
  3333. func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error {
  3334. l := len(dAtA)
  3335. iNdEx := 0
  3336. for iNdEx < l {
  3337. preIndex := iNdEx
  3338. var wire uint64
  3339. for shift := uint(0); ; shift += 7 {
  3340. if shift >= 64 {
  3341. return ErrIntOverflowGenerated
  3342. }
  3343. if iNdEx >= l {
  3344. return io.ErrUnexpectedEOF
  3345. }
  3346. b := dAtA[iNdEx]
  3347. iNdEx++
  3348. wire |= uint64(b&0x7F) << shift
  3349. if b < 0x80 {
  3350. break
  3351. }
  3352. }
  3353. fieldNum := int32(wire >> 3)
  3354. wireType := int(wire & 0x7)
  3355. if wireType == 4 {
  3356. return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group")
  3357. }
  3358. if fieldNum <= 0 {
  3359. return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  3360. }
  3361. switch fieldNum {
  3362. case 1:
  3363. if wireType != 0 {
  3364. return fmt.Errorf("proto: wrong wireType = %d for field AssuredConcurrencyShares", wireType)
  3365. }
  3366. m.AssuredConcurrencyShares = 0
  3367. for shift := uint(0); ; shift += 7 {
  3368. if shift >= 64 {
  3369. return ErrIntOverflowGenerated
  3370. }
  3371. if iNdEx >= l {
  3372. return io.ErrUnexpectedEOF
  3373. }
  3374. b := dAtA[iNdEx]
  3375. iNdEx++
  3376. m.AssuredConcurrencyShares |= int32(b&0x7F) << shift
  3377. if b < 0x80 {
  3378. break
  3379. }
  3380. }
  3381. case 2:
  3382. if wireType != 2 {
  3383. return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType)
  3384. }
  3385. var msglen int
  3386. for shift := uint(0); ; shift += 7 {
  3387. if shift >= 64 {
  3388. return ErrIntOverflowGenerated
  3389. }
  3390. if iNdEx >= l {
  3391. return io.ErrUnexpectedEOF
  3392. }
  3393. b := dAtA[iNdEx]
  3394. iNdEx++
  3395. msglen |= int(b&0x7F) << shift
  3396. if b < 0x80 {
  3397. break
  3398. }
  3399. }
  3400. if msglen < 0 {
  3401. return ErrInvalidLengthGenerated
  3402. }
  3403. postIndex := iNdEx + msglen
  3404. if postIndex < 0 {
  3405. return ErrInvalidLengthGenerated
  3406. }
  3407. if postIndex > l {
  3408. return io.ErrUnexpectedEOF
  3409. }
  3410. if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3411. return err
  3412. }
  3413. iNdEx = postIndex
  3414. default:
  3415. iNdEx = preIndex
  3416. skippy, err := skipGenerated(dAtA[iNdEx:])
  3417. if err != nil {
  3418. return err
  3419. }
  3420. if skippy < 0 {
  3421. return ErrInvalidLengthGenerated
  3422. }
  3423. if (iNdEx + skippy) < 0 {
  3424. return ErrInvalidLengthGenerated
  3425. }
  3426. if (iNdEx + skippy) > l {
  3427. return io.ErrUnexpectedEOF
  3428. }
  3429. iNdEx += skippy
  3430. }
  3431. }
  3432. if iNdEx > l {
  3433. return io.ErrUnexpectedEOF
  3434. }
  3435. return nil
  3436. }
  3437. func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error {
  3438. l := len(dAtA)
  3439. iNdEx := 0
  3440. for iNdEx < l {
  3441. preIndex := iNdEx
  3442. var wire uint64
  3443. for shift := uint(0); ; shift += 7 {
  3444. if shift >= 64 {
  3445. return ErrIntOverflowGenerated
  3446. }
  3447. if iNdEx >= l {
  3448. return io.ErrUnexpectedEOF
  3449. }
  3450. b := dAtA[iNdEx]
  3451. iNdEx++
  3452. wire |= uint64(b&0x7F) << shift
  3453. if b < 0x80 {
  3454. break
  3455. }
  3456. }
  3457. fieldNum := int32(wire >> 3)
  3458. wireType := int(wire & 0x7)
  3459. if wireType == 4 {
  3460. return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group")
  3461. }
  3462. if fieldNum <= 0 {
  3463. return fmt.Errorf("proto: NonResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  3464. }
  3465. switch fieldNum {
  3466. case 1:
  3467. if wireType != 2 {
  3468. return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  3469. }
  3470. var stringLen uint64
  3471. for shift := uint(0); ; shift += 7 {
  3472. if shift >= 64 {
  3473. return ErrIntOverflowGenerated
  3474. }
  3475. if iNdEx >= l {
  3476. return io.ErrUnexpectedEOF
  3477. }
  3478. b := dAtA[iNdEx]
  3479. iNdEx++
  3480. stringLen |= uint64(b&0x7F) << shift
  3481. if b < 0x80 {
  3482. break
  3483. }
  3484. }
  3485. intStringLen := int(stringLen)
  3486. if intStringLen < 0 {
  3487. return ErrInvalidLengthGenerated
  3488. }
  3489. postIndex := iNdEx + intStringLen
  3490. if postIndex < 0 {
  3491. return ErrInvalidLengthGenerated
  3492. }
  3493. if postIndex > l {
  3494. return io.ErrUnexpectedEOF
  3495. }
  3496. m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  3497. iNdEx = postIndex
  3498. case 6:
  3499. if wireType != 2 {
  3500. return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType)
  3501. }
  3502. var stringLen uint64
  3503. for shift := uint(0); ; shift += 7 {
  3504. if shift >= 64 {
  3505. return ErrIntOverflowGenerated
  3506. }
  3507. if iNdEx >= l {
  3508. return io.ErrUnexpectedEOF
  3509. }
  3510. b := dAtA[iNdEx]
  3511. iNdEx++
  3512. stringLen |= uint64(b&0x7F) << shift
  3513. if b < 0x80 {
  3514. break
  3515. }
  3516. }
  3517. intStringLen := int(stringLen)
  3518. if intStringLen < 0 {
  3519. return ErrInvalidLengthGenerated
  3520. }
  3521. postIndex := iNdEx + intStringLen
  3522. if postIndex < 0 {
  3523. return ErrInvalidLengthGenerated
  3524. }
  3525. if postIndex > l {
  3526. return io.ErrUnexpectedEOF
  3527. }
  3528. m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex]))
  3529. iNdEx = postIndex
  3530. default:
  3531. iNdEx = preIndex
  3532. skippy, err := skipGenerated(dAtA[iNdEx:])
  3533. if err != nil {
  3534. return err
  3535. }
  3536. if skippy < 0 {
  3537. return ErrInvalidLengthGenerated
  3538. }
  3539. if (iNdEx + skippy) < 0 {
  3540. return ErrInvalidLengthGenerated
  3541. }
  3542. if (iNdEx + skippy) > l {
  3543. return io.ErrUnexpectedEOF
  3544. }
  3545. iNdEx += skippy
  3546. }
  3547. }
  3548. if iNdEx > l {
  3549. return io.ErrUnexpectedEOF
  3550. }
  3551. return nil
  3552. }
  3553. func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error {
  3554. l := len(dAtA)
  3555. iNdEx := 0
  3556. for iNdEx < l {
  3557. preIndex := iNdEx
  3558. var wire uint64
  3559. for shift := uint(0); ; shift += 7 {
  3560. if shift >= 64 {
  3561. return ErrIntOverflowGenerated
  3562. }
  3563. if iNdEx >= l {
  3564. return io.ErrUnexpectedEOF
  3565. }
  3566. b := dAtA[iNdEx]
  3567. iNdEx++
  3568. wire |= uint64(b&0x7F) << shift
  3569. if b < 0x80 {
  3570. break
  3571. }
  3572. }
  3573. fieldNum := int32(wire >> 3)
  3574. wireType := int(wire & 0x7)
  3575. if wireType == 4 {
  3576. return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group")
  3577. }
  3578. if fieldNum <= 0 {
  3579. return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire)
  3580. }
  3581. switch fieldNum {
  3582. case 1:
  3583. if wireType != 2 {
  3584. return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  3585. }
  3586. var msglen int
  3587. for shift := uint(0); ; shift += 7 {
  3588. if shift >= 64 {
  3589. return ErrIntOverflowGenerated
  3590. }
  3591. if iNdEx >= l {
  3592. return io.ErrUnexpectedEOF
  3593. }
  3594. b := dAtA[iNdEx]
  3595. iNdEx++
  3596. msglen |= int(b&0x7F) << shift
  3597. if b < 0x80 {
  3598. break
  3599. }
  3600. }
  3601. if msglen < 0 {
  3602. return ErrInvalidLengthGenerated
  3603. }
  3604. postIndex := iNdEx + msglen
  3605. if postIndex < 0 {
  3606. return ErrInvalidLengthGenerated
  3607. }
  3608. if postIndex > l {
  3609. return io.ErrUnexpectedEOF
  3610. }
  3611. m.Subjects = append(m.Subjects, Subject{})
  3612. if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3613. return err
  3614. }
  3615. iNdEx = postIndex
  3616. case 2:
  3617. if wireType != 2 {
  3618. return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType)
  3619. }
  3620. var msglen int
  3621. for shift := uint(0); ; shift += 7 {
  3622. if shift >= 64 {
  3623. return ErrIntOverflowGenerated
  3624. }
  3625. if iNdEx >= l {
  3626. return io.ErrUnexpectedEOF
  3627. }
  3628. b := dAtA[iNdEx]
  3629. iNdEx++
  3630. msglen |= int(b&0x7F) << shift
  3631. if b < 0x80 {
  3632. break
  3633. }
  3634. }
  3635. if msglen < 0 {
  3636. return ErrInvalidLengthGenerated
  3637. }
  3638. postIndex := iNdEx + msglen
  3639. if postIndex < 0 {
  3640. return ErrInvalidLengthGenerated
  3641. }
  3642. if postIndex > l {
  3643. return io.ErrUnexpectedEOF
  3644. }
  3645. m.ResourceRules = append(m.ResourceRules, ResourcePolicyRule{})
  3646. if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3647. return err
  3648. }
  3649. iNdEx = postIndex
  3650. case 3:
  3651. if wireType != 2 {
  3652. return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType)
  3653. }
  3654. var msglen int
  3655. for shift := uint(0); ; shift += 7 {
  3656. if shift >= 64 {
  3657. return ErrIntOverflowGenerated
  3658. }
  3659. if iNdEx >= l {
  3660. return io.ErrUnexpectedEOF
  3661. }
  3662. b := dAtA[iNdEx]
  3663. iNdEx++
  3664. msglen |= int(b&0x7F) << shift
  3665. if b < 0x80 {
  3666. break
  3667. }
  3668. }
  3669. if msglen < 0 {
  3670. return ErrInvalidLengthGenerated
  3671. }
  3672. postIndex := iNdEx + msglen
  3673. if postIndex < 0 {
  3674. return ErrInvalidLengthGenerated
  3675. }
  3676. if postIndex > l {
  3677. return io.ErrUnexpectedEOF
  3678. }
  3679. m.NonResourceRules = append(m.NonResourceRules, NonResourcePolicyRule{})
  3680. if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3681. return err
  3682. }
  3683. iNdEx = postIndex
  3684. default:
  3685. iNdEx = preIndex
  3686. skippy, err := skipGenerated(dAtA[iNdEx:])
  3687. if err != nil {
  3688. return err
  3689. }
  3690. if skippy < 0 {
  3691. return ErrInvalidLengthGenerated
  3692. }
  3693. if (iNdEx + skippy) < 0 {
  3694. return ErrInvalidLengthGenerated
  3695. }
  3696. if (iNdEx + skippy) > l {
  3697. return io.ErrUnexpectedEOF
  3698. }
  3699. iNdEx += skippy
  3700. }
  3701. }
  3702. if iNdEx > l {
  3703. return io.ErrUnexpectedEOF
  3704. }
  3705. return nil
  3706. }
  3707. func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error {
  3708. l := len(dAtA)
  3709. iNdEx := 0
  3710. for iNdEx < l {
  3711. preIndex := iNdEx
  3712. var wire uint64
  3713. for shift := uint(0); ; shift += 7 {
  3714. if shift >= 64 {
  3715. return ErrIntOverflowGenerated
  3716. }
  3717. if iNdEx >= l {
  3718. return io.ErrUnexpectedEOF
  3719. }
  3720. b := dAtA[iNdEx]
  3721. iNdEx++
  3722. wire |= uint64(b&0x7F) << shift
  3723. if b < 0x80 {
  3724. break
  3725. }
  3726. }
  3727. fieldNum := int32(wire >> 3)
  3728. wireType := int(wire & 0x7)
  3729. if wireType == 4 {
  3730. return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group")
  3731. }
  3732. if fieldNum <= 0 {
  3733. return fmt.Errorf("proto: PriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  3734. }
  3735. switch fieldNum {
  3736. case 1:
  3737. if wireType != 2 {
  3738. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3766. return err
  3767. }
  3768. iNdEx = postIndex
  3769. case 2:
  3770. if wireType != 2 {
  3771. return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3799. return err
  3800. }
  3801. iNdEx = postIndex
  3802. case 3:
  3803. if wireType != 2 {
  3804. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3805. }
  3806. var msglen int
  3807. for shift := uint(0); ; shift += 7 {
  3808. if shift >= 64 {
  3809. return ErrIntOverflowGenerated
  3810. }
  3811. if iNdEx >= l {
  3812. return io.ErrUnexpectedEOF
  3813. }
  3814. b := dAtA[iNdEx]
  3815. iNdEx++
  3816. msglen |= int(b&0x7F) << shift
  3817. if b < 0x80 {
  3818. break
  3819. }
  3820. }
  3821. if msglen < 0 {
  3822. return ErrInvalidLengthGenerated
  3823. }
  3824. postIndex := iNdEx + msglen
  3825. if postIndex < 0 {
  3826. return ErrInvalidLengthGenerated
  3827. }
  3828. if postIndex > l {
  3829. return io.ErrUnexpectedEOF
  3830. }
  3831. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3832. return err
  3833. }
  3834. iNdEx = postIndex
  3835. default:
  3836. iNdEx = preIndex
  3837. skippy, err := skipGenerated(dAtA[iNdEx:])
  3838. if err != nil {
  3839. return err
  3840. }
  3841. if skippy < 0 {
  3842. return ErrInvalidLengthGenerated
  3843. }
  3844. if (iNdEx + skippy) < 0 {
  3845. return ErrInvalidLengthGenerated
  3846. }
  3847. if (iNdEx + skippy) > l {
  3848. return io.ErrUnexpectedEOF
  3849. }
  3850. iNdEx += skippy
  3851. }
  3852. }
  3853. if iNdEx > l {
  3854. return io.ErrUnexpectedEOF
  3855. }
  3856. return nil
  3857. }
  3858. func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error {
  3859. l := len(dAtA)
  3860. iNdEx := 0
  3861. for iNdEx < l {
  3862. preIndex := iNdEx
  3863. var wire uint64
  3864. for shift := uint(0); ; shift += 7 {
  3865. if shift >= 64 {
  3866. return ErrIntOverflowGenerated
  3867. }
  3868. if iNdEx >= l {
  3869. return io.ErrUnexpectedEOF
  3870. }
  3871. b := dAtA[iNdEx]
  3872. iNdEx++
  3873. wire |= uint64(b&0x7F) << shift
  3874. if b < 0x80 {
  3875. break
  3876. }
  3877. }
  3878. fieldNum := int32(wire >> 3)
  3879. wireType := int(wire & 0x7)
  3880. if wireType == 4 {
  3881. return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group")
  3882. }
  3883. if fieldNum <= 0 {
  3884. return fmt.Errorf("proto: PriorityLevelConfigurationCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  3885. }
  3886. switch fieldNum {
  3887. case 1:
  3888. if wireType != 2 {
  3889. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3890. }
  3891. var stringLen uint64
  3892. for shift := uint(0); ; shift += 7 {
  3893. if shift >= 64 {
  3894. return ErrIntOverflowGenerated
  3895. }
  3896. if iNdEx >= l {
  3897. return io.ErrUnexpectedEOF
  3898. }
  3899. b := dAtA[iNdEx]
  3900. iNdEx++
  3901. stringLen |= uint64(b&0x7F) << shift
  3902. if b < 0x80 {
  3903. break
  3904. }
  3905. }
  3906. intStringLen := int(stringLen)
  3907. if intStringLen < 0 {
  3908. return ErrInvalidLengthGenerated
  3909. }
  3910. postIndex := iNdEx + intStringLen
  3911. if postIndex < 0 {
  3912. return ErrInvalidLengthGenerated
  3913. }
  3914. if postIndex > l {
  3915. return io.ErrUnexpectedEOF
  3916. }
  3917. m.Type = PriorityLevelConfigurationConditionType(dAtA[iNdEx:postIndex])
  3918. iNdEx = postIndex
  3919. case 2:
  3920. if wireType != 2 {
  3921. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3922. }
  3923. var stringLen uint64
  3924. for shift := uint(0); ; shift += 7 {
  3925. if shift >= 64 {
  3926. return ErrIntOverflowGenerated
  3927. }
  3928. if iNdEx >= l {
  3929. return io.ErrUnexpectedEOF
  3930. }
  3931. b := dAtA[iNdEx]
  3932. iNdEx++
  3933. stringLen |= uint64(b&0x7F) << shift
  3934. if b < 0x80 {
  3935. break
  3936. }
  3937. }
  3938. intStringLen := int(stringLen)
  3939. if intStringLen < 0 {
  3940. return ErrInvalidLengthGenerated
  3941. }
  3942. postIndex := iNdEx + intStringLen
  3943. if postIndex < 0 {
  3944. return ErrInvalidLengthGenerated
  3945. }
  3946. if postIndex > l {
  3947. return io.ErrUnexpectedEOF
  3948. }
  3949. m.Status = ConditionStatus(dAtA[iNdEx:postIndex])
  3950. iNdEx = postIndex
  3951. case 3:
  3952. if wireType != 2 {
  3953. return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
  3954. }
  3955. var msglen int
  3956. for shift := uint(0); ; shift += 7 {
  3957. if shift >= 64 {
  3958. return ErrIntOverflowGenerated
  3959. }
  3960. if iNdEx >= l {
  3961. return io.ErrUnexpectedEOF
  3962. }
  3963. b := dAtA[iNdEx]
  3964. iNdEx++
  3965. msglen |= int(b&0x7F) << shift
  3966. if b < 0x80 {
  3967. break
  3968. }
  3969. }
  3970. if msglen < 0 {
  3971. return ErrInvalidLengthGenerated
  3972. }
  3973. postIndex := iNdEx + msglen
  3974. if postIndex < 0 {
  3975. return ErrInvalidLengthGenerated
  3976. }
  3977. if postIndex > l {
  3978. return io.ErrUnexpectedEOF
  3979. }
  3980. if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3981. return err
  3982. }
  3983. iNdEx = postIndex
  3984. case 4:
  3985. if wireType != 2 {
  3986. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  3987. }
  3988. var stringLen uint64
  3989. for shift := uint(0); ; shift += 7 {
  3990. if shift >= 64 {
  3991. return ErrIntOverflowGenerated
  3992. }
  3993. if iNdEx >= l {
  3994. return io.ErrUnexpectedEOF
  3995. }
  3996. b := dAtA[iNdEx]
  3997. iNdEx++
  3998. stringLen |= uint64(b&0x7F) << shift
  3999. if b < 0x80 {
  4000. break
  4001. }
  4002. }
  4003. intStringLen := int(stringLen)
  4004. if intStringLen < 0 {
  4005. return ErrInvalidLengthGenerated
  4006. }
  4007. postIndex := iNdEx + intStringLen
  4008. if postIndex < 0 {
  4009. return ErrInvalidLengthGenerated
  4010. }
  4011. if postIndex > l {
  4012. return io.ErrUnexpectedEOF
  4013. }
  4014. m.Reason = string(dAtA[iNdEx:postIndex])
  4015. iNdEx = postIndex
  4016. case 5:
  4017. if wireType != 2 {
  4018. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  4019. }
  4020. var stringLen uint64
  4021. for shift := uint(0); ; shift += 7 {
  4022. if shift >= 64 {
  4023. return ErrIntOverflowGenerated
  4024. }
  4025. if iNdEx >= l {
  4026. return io.ErrUnexpectedEOF
  4027. }
  4028. b := dAtA[iNdEx]
  4029. iNdEx++
  4030. stringLen |= uint64(b&0x7F) << shift
  4031. if b < 0x80 {
  4032. break
  4033. }
  4034. }
  4035. intStringLen := int(stringLen)
  4036. if intStringLen < 0 {
  4037. return ErrInvalidLengthGenerated
  4038. }
  4039. postIndex := iNdEx + intStringLen
  4040. if postIndex < 0 {
  4041. return ErrInvalidLengthGenerated
  4042. }
  4043. if postIndex > l {
  4044. return io.ErrUnexpectedEOF
  4045. }
  4046. m.Message = string(dAtA[iNdEx:postIndex])
  4047. iNdEx = postIndex
  4048. default:
  4049. iNdEx = preIndex
  4050. skippy, err := skipGenerated(dAtA[iNdEx:])
  4051. if err != nil {
  4052. return err
  4053. }
  4054. if skippy < 0 {
  4055. return ErrInvalidLengthGenerated
  4056. }
  4057. if (iNdEx + skippy) < 0 {
  4058. return ErrInvalidLengthGenerated
  4059. }
  4060. if (iNdEx + skippy) > l {
  4061. return io.ErrUnexpectedEOF
  4062. }
  4063. iNdEx += skippy
  4064. }
  4065. }
  4066. if iNdEx > l {
  4067. return io.ErrUnexpectedEOF
  4068. }
  4069. return nil
  4070. }
  4071. func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error {
  4072. l := len(dAtA)
  4073. iNdEx := 0
  4074. for iNdEx < l {
  4075. preIndex := iNdEx
  4076. var wire uint64
  4077. for shift := uint(0); ; shift += 7 {
  4078. if shift >= 64 {
  4079. return ErrIntOverflowGenerated
  4080. }
  4081. if iNdEx >= l {
  4082. return io.ErrUnexpectedEOF
  4083. }
  4084. b := dAtA[iNdEx]
  4085. iNdEx++
  4086. wire |= uint64(b&0x7F) << shift
  4087. if b < 0x80 {
  4088. break
  4089. }
  4090. }
  4091. fieldNum := int32(wire >> 3)
  4092. wireType := int(wire & 0x7)
  4093. if wireType == 4 {
  4094. return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group")
  4095. }
  4096. if fieldNum <= 0 {
  4097. return fmt.Errorf("proto: PriorityLevelConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
  4098. }
  4099. switch fieldNum {
  4100. case 1:
  4101. if wireType != 2 {
  4102. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  4103. }
  4104. var msglen int
  4105. for shift := uint(0); ; shift += 7 {
  4106. if shift >= 64 {
  4107. return ErrIntOverflowGenerated
  4108. }
  4109. if iNdEx >= l {
  4110. return io.ErrUnexpectedEOF
  4111. }
  4112. b := dAtA[iNdEx]
  4113. iNdEx++
  4114. msglen |= int(b&0x7F) << shift
  4115. if b < 0x80 {
  4116. break
  4117. }
  4118. }
  4119. if msglen < 0 {
  4120. return ErrInvalidLengthGenerated
  4121. }
  4122. postIndex := iNdEx + msglen
  4123. if postIndex < 0 {
  4124. return ErrInvalidLengthGenerated
  4125. }
  4126. if postIndex > l {
  4127. return io.ErrUnexpectedEOF
  4128. }
  4129. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4130. return err
  4131. }
  4132. iNdEx = postIndex
  4133. case 2:
  4134. if wireType != 2 {
  4135. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  4136. }
  4137. var msglen int
  4138. for shift := uint(0); ; shift += 7 {
  4139. if shift >= 64 {
  4140. return ErrIntOverflowGenerated
  4141. }
  4142. if iNdEx >= l {
  4143. return io.ErrUnexpectedEOF
  4144. }
  4145. b := dAtA[iNdEx]
  4146. iNdEx++
  4147. msglen |= int(b&0x7F) << shift
  4148. if b < 0x80 {
  4149. break
  4150. }
  4151. }
  4152. if msglen < 0 {
  4153. return ErrInvalidLengthGenerated
  4154. }
  4155. postIndex := iNdEx + msglen
  4156. if postIndex < 0 {
  4157. return ErrInvalidLengthGenerated
  4158. }
  4159. if postIndex > l {
  4160. return io.ErrUnexpectedEOF
  4161. }
  4162. m.Items = append(m.Items, PriorityLevelConfiguration{})
  4163. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4164. return err
  4165. }
  4166. iNdEx = postIndex
  4167. default:
  4168. iNdEx = preIndex
  4169. skippy, err := skipGenerated(dAtA[iNdEx:])
  4170. if err != nil {
  4171. return err
  4172. }
  4173. if skippy < 0 {
  4174. return ErrInvalidLengthGenerated
  4175. }
  4176. if (iNdEx + skippy) < 0 {
  4177. return ErrInvalidLengthGenerated
  4178. }
  4179. if (iNdEx + skippy) > l {
  4180. return io.ErrUnexpectedEOF
  4181. }
  4182. iNdEx += skippy
  4183. }
  4184. }
  4185. if iNdEx > l {
  4186. return io.ErrUnexpectedEOF
  4187. }
  4188. return nil
  4189. }
  4190. func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error {
  4191. l := len(dAtA)
  4192. iNdEx := 0
  4193. for iNdEx < l {
  4194. preIndex := iNdEx
  4195. var wire uint64
  4196. for shift := uint(0); ; shift += 7 {
  4197. if shift >= 64 {
  4198. return ErrIntOverflowGenerated
  4199. }
  4200. if iNdEx >= l {
  4201. return io.ErrUnexpectedEOF
  4202. }
  4203. b := dAtA[iNdEx]
  4204. iNdEx++
  4205. wire |= uint64(b&0x7F) << shift
  4206. if b < 0x80 {
  4207. break
  4208. }
  4209. }
  4210. fieldNum := int32(wire >> 3)
  4211. wireType := int(wire & 0x7)
  4212. if wireType == 4 {
  4213. return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group")
  4214. }
  4215. if fieldNum <= 0 {
  4216. return fmt.Errorf("proto: PriorityLevelConfigurationReference: illegal tag %d (wire type %d)", fieldNum, wire)
  4217. }
  4218. switch fieldNum {
  4219. case 1:
  4220. if wireType != 2 {
  4221. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4222. }
  4223. var stringLen uint64
  4224. for shift := uint(0); ; shift += 7 {
  4225. if shift >= 64 {
  4226. return ErrIntOverflowGenerated
  4227. }
  4228. if iNdEx >= l {
  4229. return io.ErrUnexpectedEOF
  4230. }
  4231. b := dAtA[iNdEx]
  4232. iNdEx++
  4233. stringLen |= uint64(b&0x7F) << shift
  4234. if b < 0x80 {
  4235. break
  4236. }
  4237. }
  4238. intStringLen := int(stringLen)
  4239. if intStringLen < 0 {
  4240. return ErrInvalidLengthGenerated
  4241. }
  4242. postIndex := iNdEx + intStringLen
  4243. if postIndex < 0 {
  4244. return ErrInvalidLengthGenerated
  4245. }
  4246. if postIndex > l {
  4247. return io.ErrUnexpectedEOF
  4248. }
  4249. m.Name = string(dAtA[iNdEx:postIndex])
  4250. iNdEx = postIndex
  4251. default:
  4252. iNdEx = preIndex
  4253. skippy, err := skipGenerated(dAtA[iNdEx:])
  4254. if err != nil {
  4255. return err
  4256. }
  4257. if skippy < 0 {
  4258. return ErrInvalidLengthGenerated
  4259. }
  4260. if (iNdEx + skippy) < 0 {
  4261. return ErrInvalidLengthGenerated
  4262. }
  4263. if (iNdEx + skippy) > l {
  4264. return io.ErrUnexpectedEOF
  4265. }
  4266. iNdEx += skippy
  4267. }
  4268. }
  4269. if iNdEx > l {
  4270. return io.ErrUnexpectedEOF
  4271. }
  4272. return nil
  4273. }
  4274. func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error {
  4275. l := len(dAtA)
  4276. iNdEx := 0
  4277. for iNdEx < l {
  4278. preIndex := iNdEx
  4279. var wire uint64
  4280. for shift := uint(0); ; shift += 7 {
  4281. if shift >= 64 {
  4282. return ErrIntOverflowGenerated
  4283. }
  4284. if iNdEx >= l {
  4285. return io.ErrUnexpectedEOF
  4286. }
  4287. b := dAtA[iNdEx]
  4288. iNdEx++
  4289. wire |= uint64(b&0x7F) << shift
  4290. if b < 0x80 {
  4291. break
  4292. }
  4293. }
  4294. fieldNum := int32(wire >> 3)
  4295. wireType := int(wire & 0x7)
  4296. if wireType == 4 {
  4297. return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group")
  4298. }
  4299. if fieldNum <= 0 {
  4300. return fmt.Errorf("proto: PriorityLevelConfigurationSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  4301. }
  4302. switch fieldNum {
  4303. case 1:
  4304. if wireType != 2 {
  4305. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4306. }
  4307. var stringLen uint64
  4308. for shift := uint(0); ; shift += 7 {
  4309. if shift >= 64 {
  4310. return ErrIntOverflowGenerated
  4311. }
  4312. if iNdEx >= l {
  4313. return io.ErrUnexpectedEOF
  4314. }
  4315. b := dAtA[iNdEx]
  4316. iNdEx++
  4317. stringLen |= uint64(b&0x7F) << shift
  4318. if b < 0x80 {
  4319. break
  4320. }
  4321. }
  4322. intStringLen := int(stringLen)
  4323. if intStringLen < 0 {
  4324. return ErrInvalidLengthGenerated
  4325. }
  4326. postIndex := iNdEx + intStringLen
  4327. if postIndex < 0 {
  4328. return ErrInvalidLengthGenerated
  4329. }
  4330. if postIndex > l {
  4331. return io.ErrUnexpectedEOF
  4332. }
  4333. m.Type = PriorityLevelEnablement(dAtA[iNdEx:postIndex])
  4334. iNdEx = postIndex
  4335. case 2:
  4336. if wireType != 2 {
  4337. return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType)
  4338. }
  4339. var msglen int
  4340. for shift := uint(0); ; shift += 7 {
  4341. if shift >= 64 {
  4342. return ErrIntOverflowGenerated
  4343. }
  4344. if iNdEx >= l {
  4345. return io.ErrUnexpectedEOF
  4346. }
  4347. b := dAtA[iNdEx]
  4348. iNdEx++
  4349. msglen |= int(b&0x7F) << shift
  4350. if b < 0x80 {
  4351. break
  4352. }
  4353. }
  4354. if msglen < 0 {
  4355. return ErrInvalidLengthGenerated
  4356. }
  4357. postIndex := iNdEx + msglen
  4358. if postIndex < 0 {
  4359. return ErrInvalidLengthGenerated
  4360. }
  4361. if postIndex > l {
  4362. return io.ErrUnexpectedEOF
  4363. }
  4364. if m.Limited == nil {
  4365. m.Limited = &LimitedPriorityLevelConfiguration{}
  4366. }
  4367. if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4368. return err
  4369. }
  4370. iNdEx = postIndex
  4371. default:
  4372. iNdEx = preIndex
  4373. skippy, err := skipGenerated(dAtA[iNdEx:])
  4374. if err != nil {
  4375. return err
  4376. }
  4377. if skippy < 0 {
  4378. return ErrInvalidLengthGenerated
  4379. }
  4380. if (iNdEx + skippy) < 0 {
  4381. return ErrInvalidLengthGenerated
  4382. }
  4383. if (iNdEx + skippy) > l {
  4384. return io.ErrUnexpectedEOF
  4385. }
  4386. iNdEx += skippy
  4387. }
  4388. }
  4389. if iNdEx > l {
  4390. return io.ErrUnexpectedEOF
  4391. }
  4392. return nil
  4393. }
  4394. func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error {
  4395. l := len(dAtA)
  4396. iNdEx := 0
  4397. for iNdEx < l {
  4398. preIndex := iNdEx
  4399. var wire uint64
  4400. for shift := uint(0); ; shift += 7 {
  4401. if shift >= 64 {
  4402. return ErrIntOverflowGenerated
  4403. }
  4404. if iNdEx >= l {
  4405. return io.ErrUnexpectedEOF
  4406. }
  4407. b := dAtA[iNdEx]
  4408. iNdEx++
  4409. wire |= uint64(b&0x7F) << shift
  4410. if b < 0x80 {
  4411. break
  4412. }
  4413. }
  4414. fieldNum := int32(wire >> 3)
  4415. wireType := int(wire & 0x7)
  4416. if wireType == 4 {
  4417. return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group")
  4418. }
  4419. if fieldNum <= 0 {
  4420. return fmt.Errorf("proto: PriorityLevelConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  4421. }
  4422. switch fieldNum {
  4423. case 1:
  4424. if wireType != 2 {
  4425. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  4426. }
  4427. var msglen int
  4428. for shift := uint(0); ; shift += 7 {
  4429. if shift >= 64 {
  4430. return ErrIntOverflowGenerated
  4431. }
  4432. if iNdEx >= l {
  4433. return io.ErrUnexpectedEOF
  4434. }
  4435. b := dAtA[iNdEx]
  4436. iNdEx++
  4437. msglen |= int(b&0x7F) << shift
  4438. if b < 0x80 {
  4439. break
  4440. }
  4441. }
  4442. if msglen < 0 {
  4443. return ErrInvalidLengthGenerated
  4444. }
  4445. postIndex := iNdEx + msglen
  4446. if postIndex < 0 {
  4447. return ErrInvalidLengthGenerated
  4448. }
  4449. if postIndex > l {
  4450. return io.ErrUnexpectedEOF
  4451. }
  4452. m.Conditions = append(m.Conditions, PriorityLevelConfigurationCondition{})
  4453. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4454. return err
  4455. }
  4456. iNdEx = postIndex
  4457. default:
  4458. iNdEx = preIndex
  4459. skippy, err := skipGenerated(dAtA[iNdEx:])
  4460. if err != nil {
  4461. return err
  4462. }
  4463. if skippy < 0 {
  4464. return ErrInvalidLengthGenerated
  4465. }
  4466. if (iNdEx + skippy) < 0 {
  4467. return ErrInvalidLengthGenerated
  4468. }
  4469. if (iNdEx + skippy) > l {
  4470. return io.ErrUnexpectedEOF
  4471. }
  4472. iNdEx += skippy
  4473. }
  4474. }
  4475. if iNdEx > l {
  4476. return io.ErrUnexpectedEOF
  4477. }
  4478. return nil
  4479. }
  4480. func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error {
  4481. l := len(dAtA)
  4482. iNdEx := 0
  4483. for iNdEx < l {
  4484. preIndex := iNdEx
  4485. var wire uint64
  4486. for shift := uint(0); ; shift += 7 {
  4487. if shift >= 64 {
  4488. return ErrIntOverflowGenerated
  4489. }
  4490. if iNdEx >= l {
  4491. return io.ErrUnexpectedEOF
  4492. }
  4493. b := dAtA[iNdEx]
  4494. iNdEx++
  4495. wire |= uint64(b&0x7F) << shift
  4496. if b < 0x80 {
  4497. break
  4498. }
  4499. }
  4500. fieldNum := int32(wire >> 3)
  4501. wireType := int(wire & 0x7)
  4502. if wireType == 4 {
  4503. return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group")
  4504. }
  4505. if fieldNum <= 0 {
  4506. return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  4507. }
  4508. switch fieldNum {
  4509. case 1:
  4510. if wireType != 0 {
  4511. return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType)
  4512. }
  4513. m.Queues = 0
  4514. for shift := uint(0); ; shift += 7 {
  4515. if shift >= 64 {
  4516. return ErrIntOverflowGenerated
  4517. }
  4518. if iNdEx >= l {
  4519. return io.ErrUnexpectedEOF
  4520. }
  4521. b := dAtA[iNdEx]
  4522. iNdEx++
  4523. m.Queues |= int32(b&0x7F) << shift
  4524. if b < 0x80 {
  4525. break
  4526. }
  4527. }
  4528. case 2:
  4529. if wireType != 0 {
  4530. return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType)
  4531. }
  4532. m.HandSize = 0
  4533. for shift := uint(0); ; shift += 7 {
  4534. if shift >= 64 {
  4535. return ErrIntOverflowGenerated
  4536. }
  4537. if iNdEx >= l {
  4538. return io.ErrUnexpectedEOF
  4539. }
  4540. b := dAtA[iNdEx]
  4541. iNdEx++
  4542. m.HandSize |= int32(b&0x7F) << shift
  4543. if b < 0x80 {
  4544. break
  4545. }
  4546. }
  4547. case 3:
  4548. if wireType != 0 {
  4549. return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType)
  4550. }
  4551. m.QueueLengthLimit = 0
  4552. for shift := uint(0); ; shift += 7 {
  4553. if shift >= 64 {
  4554. return ErrIntOverflowGenerated
  4555. }
  4556. if iNdEx >= l {
  4557. return io.ErrUnexpectedEOF
  4558. }
  4559. b := dAtA[iNdEx]
  4560. iNdEx++
  4561. m.QueueLengthLimit |= int32(b&0x7F) << shift
  4562. if b < 0x80 {
  4563. break
  4564. }
  4565. }
  4566. default:
  4567. iNdEx = preIndex
  4568. skippy, err := skipGenerated(dAtA[iNdEx:])
  4569. if err != nil {
  4570. return err
  4571. }
  4572. if skippy < 0 {
  4573. return ErrInvalidLengthGenerated
  4574. }
  4575. if (iNdEx + skippy) < 0 {
  4576. return ErrInvalidLengthGenerated
  4577. }
  4578. if (iNdEx + skippy) > l {
  4579. return io.ErrUnexpectedEOF
  4580. }
  4581. iNdEx += skippy
  4582. }
  4583. }
  4584. if iNdEx > l {
  4585. return io.ErrUnexpectedEOF
  4586. }
  4587. return nil
  4588. }
  4589. func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error {
  4590. l := len(dAtA)
  4591. iNdEx := 0
  4592. for iNdEx < l {
  4593. preIndex := iNdEx
  4594. var wire uint64
  4595. for shift := uint(0); ; shift += 7 {
  4596. if shift >= 64 {
  4597. return ErrIntOverflowGenerated
  4598. }
  4599. if iNdEx >= l {
  4600. return io.ErrUnexpectedEOF
  4601. }
  4602. b := dAtA[iNdEx]
  4603. iNdEx++
  4604. wire |= uint64(b&0x7F) << shift
  4605. if b < 0x80 {
  4606. break
  4607. }
  4608. }
  4609. fieldNum := int32(wire >> 3)
  4610. wireType := int(wire & 0x7)
  4611. if wireType == 4 {
  4612. return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group")
  4613. }
  4614. if fieldNum <= 0 {
  4615. return fmt.Errorf("proto: ResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  4616. }
  4617. switch fieldNum {
  4618. case 1:
  4619. if wireType != 2 {
  4620. return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  4621. }
  4622. var stringLen uint64
  4623. for shift := uint(0); ; shift += 7 {
  4624. if shift >= 64 {
  4625. return ErrIntOverflowGenerated
  4626. }
  4627. if iNdEx >= l {
  4628. return io.ErrUnexpectedEOF
  4629. }
  4630. b := dAtA[iNdEx]
  4631. iNdEx++
  4632. stringLen |= uint64(b&0x7F) << shift
  4633. if b < 0x80 {
  4634. break
  4635. }
  4636. }
  4637. intStringLen := int(stringLen)
  4638. if intStringLen < 0 {
  4639. return ErrInvalidLengthGenerated
  4640. }
  4641. postIndex := iNdEx + intStringLen
  4642. if postIndex < 0 {
  4643. return ErrInvalidLengthGenerated
  4644. }
  4645. if postIndex > l {
  4646. return io.ErrUnexpectedEOF
  4647. }
  4648. m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  4649. iNdEx = postIndex
  4650. case 2:
  4651. if wireType != 2 {
  4652. return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
  4653. }
  4654. var stringLen uint64
  4655. for shift := uint(0); ; shift += 7 {
  4656. if shift >= 64 {
  4657. return ErrIntOverflowGenerated
  4658. }
  4659. if iNdEx >= l {
  4660. return io.ErrUnexpectedEOF
  4661. }
  4662. b := dAtA[iNdEx]
  4663. iNdEx++
  4664. stringLen |= uint64(b&0x7F) << shift
  4665. if b < 0x80 {
  4666. break
  4667. }
  4668. }
  4669. intStringLen := int(stringLen)
  4670. if intStringLen < 0 {
  4671. return ErrInvalidLengthGenerated
  4672. }
  4673. postIndex := iNdEx + intStringLen
  4674. if postIndex < 0 {
  4675. return ErrInvalidLengthGenerated
  4676. }
  4677. if postIndex > l {
  4678. return io.ErrUnexpectedEOF
  4679. }
  4680. m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
  4681. iNdEx = postIndex
  4682. case 3:
  4683. if wireType != 2 {
  4684. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  4685. }
  4686. var stringLen uint64
  4687. for shift := uint(0); ; shift += 7 {
  4688. if shift >= 64 {
  4689. return ErrIntOverflowGenerated
  4690. }
  4691. if iNdEx >= l {
  4692. return io.ErrUnexpectedEOF
  4693. }
  4694. b := dAtA[iNdEx]
  4695. iNdEx++
  4696. stringLen |= uint64(b&0x7F) << shift
  4697. if b < 0x80 {
  4698. break
  4699. }
  4700. }
  4701. intStringLen := int(stringLen)
  4702. if intStringLen < 0 {
  4703. return ErrInvalidLengthGenerated
  4704. }
  4705. postIndex := iNdEx + intStringLen
  4706. if postIndex < 0 {
  4707. return ErrInvalidLengthGenerated
  4708. }
  4709. if postIndex > l {
  4710. return io.ErrUnexpectedEOF
  4711. }
  4712. m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
  4713. iNdEx = postIndex
  4714. case 4:
  4715. if wireType != 0 {
  4716. return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", wireType)
  4717. }
  4718. var v int
  4719. for shift := uint(0); ; shift += 7 {
  4720. if shift >= 64 {
  4721. return ErrIntOverflowGenerated
  4722. }
  4723. if iNdEx >= l {
  4724. return io.ErrUnexpectedEOF
  4725. }
  4726. b := dAtA[iNdEx]
  4727. iNdEx++
  4728. v |= int(b&0x7F) << shift
  4729. if b < 0x80 {
  4730. break
  4731. }
  4732. }
  4733. m.ClusterScope = bool(v != 0)
  4734. case 5:
  4735. if wireType != 2 {
  4736. return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
  4737. }
  4738. var stringLen uint64
  4739. for shift := uint(0); ; shift += 7 {
  4740. if shift >= 64 {
  4741. return ErrIntOverflowGenerated
  4742. }
  4743. if iNdEx >= l {
  4744. return io.ErrUnexpectedEOF
  4745. }
  4746. b := dAtA[iNdEx]
  4747. iNdEx++
  4748. stringLen |= uint64(b&0x7F) << shift
  4749. if b < 0x80 {
  4750. break
  4751. }
  4752. }
  4753. intStringLen := int(stringLen)
  4754. if intStringLen < 0 {
  4755. return ErrInvalidLengthGenerated
  4756. }
  4757. postIndex := iNdEx + intStringLen
  4758. if postIndex < 0 {
  4759. return ErrInvalidLengthGenerated
  4760. }
  4761. if postIndex > l {
  4762. return io.ErrUnexpectedEOF
  4763. }
  4764. m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex]))
  4765. iNdEx = postIndex
  4766. default:
  4767. iNdEx = preIndex
  4768. skippy, err := skipGenerated(dAtA[iNdEx:])
  4769. if err != nil {
  4770. return err
  4771. }
  4772. if skippy < 0 {
  4773. return ErrInvalidLengthGenerated
  4774. }
  4775. if (iNdEx + skippy) < 0 {
  4776. return ErrInvalidLengthGenerated
  4777. }
  4778. if (iNdEx + skippy) > l {
  4779. return io.ErrUnexpectedEOF
  4780. }
  4781. iNdEx += skippy
  4782. }
  4783. }
  4784. if iNdEx > l {
  4785. return io.ErrUnexpectedEOF
  4786. }
  4787. return nil
  4788. }
  4789. func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error {
  4790. l := len(dAtA)
  4791. iNdEx := 0
  4792. for iNdEx < l {
  4793. preIndex := iNdEx
  4794. var wire uint64
  4795. for shift := uint(0); ; shift += 7 {
  4796. if shift >= 64 {
  4797. return ErrIntOverflowGenerated
  4798. }
  4799. if iNdEx >= l {
  4800. return io.ErrUnexpectedEOF
  4801. }
  4802. b := dAtA[iNdEx]
  4803. iNdEx++
  4804. wire |= uint64(b&0x7F) << shift
  4805. if b < 0x80 {
  4806. break
  4807. }
  4808. }
  4809. fieldNum := int32(wire >> 3)
  4810. wireType := int(wire & 0x7)
  4811. if wireType == 4 {
  4812. return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group")
  4813. }
  4814. if fieldNum <= 0 {
  4815. return fmt.Errorf("proto: ServiceAccountSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  4816. }
  4817. switch fieldNum {
  4818. case 1:
  4819. if wireType != 2 {
  4820. return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  4821. }
  4822. var stringLen uint64
  4823. for shift := uint(0); ; shift += 7 {
  4824. if shift >= 64 {
  4825. return ErrIntOverflowGenerated
  4826. }
  4827. if iNdEx >= l {
  4828. return io.ErrUnexpectedEOF
  4829. }
  4830. b := dAtA[iNdEx]
  4831. iNdEx++
  4832. stringLen |= uint64(b&0x7F) << shift
  4833. if b < 0x80 {
  4834. break
  4835. }
  4836. }
  4837. intStringLen := int(stringLen)
  4838. if intStringLen < 0 {
  4839. return ErrInvalidLengthGenerated
  4840. }
  4841. postIndex := iNdEx + intStringLen
  4842. if postIndex < 0 {
  4843. return ErrInvalidLengthGenerated
  4844. }
  4845. if postIndex > l {
  4846. return io.ErrUnexpectedEOF
  4847. }
  4848. m.Namespace = string(dAtA[iNdEx:postIndex])
  4849. iNdEx = postIndex
  4850. case 2:
  4851. if wireType != 2 {
  4852. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4853. }
  4854. var stringLen uint64
  4855. for shift := uint(0); ; shift += 7 {
  4856. if shift >= 64 {
  4857. return ErrIntOverflowGenerated
  4858. }
  4859. if iNdEx >= l {
  4860. return io.ErrUnexpectedEOF
  4861. }
  4862. b := dAtA[iNdEx]
  4863. iNdEx++
  4864. stringLen |= uint64(b&0x7F) << shift
  4865. if b < 0x80 {
  4866. break
  4867. }
  4868. }
  4869. intStringLen := int(stringLen)
  4870. if intStringLen < 0 {
  4871. return ErrInvalidLengthGenerated
  4872. }
  4873. postIndex := iNdEx + intStringLen
  4874. if postIndex < 0 {
  4875. return ErrInvalidLengthGenerated
  4876. }
  4877. if postIndex > l {
  4878. return io.ErrUnexpectedEOF
  4879. }
  4880. m.Name = string(dAtA[iNdEx:postIndex])
  4881. iNdEx = postIndex
  4882. default:
  4883. iNdEx = preIndex
  4884. skippy, err := skipGenerated(dAtA[iNdEx:])
  4885. if err != nil {
  4886. return err
  4887. }
  4888. if skippy < 0 {
  4889. return ErrInvalidLengthGenerated
  4890. }
  4891. if (iNdEx + skippy) < 0 {
  4892. return ErrInvalidLengthGenerated
  4893. }
  4894. if (iNdEx + skippy) > l {
  4895. return io.ErrUnexpectedEOF
  4896. }
  4897. iNdEx += skippy
  4898. }
  4899. }
  4900. if iNdEx > l {
  4901. return io.ErrUnexpectedEOF
  4902. }
  4903. return nil
  4904. }
  4905. func (m *Subject) Unmarshal(dAtA []byte) error {
  4906. l := len(dAtA)
  4907. iNdEx := 0
  4908. for iNdEx < l {
  4909. preIndex := iNdEx
  4910. var wire uint64
  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. wire |= uint64(b&0x7F) << shift
  4921. if b < 0x80 {
  4922. break
  4923. }
  4924. }
  4925. fieldNum := int32(wire >> 3)
  4926. wireType := int(wire & 0x7)
  4927. if wireType == 4 {
  4928. return fmt.Errorf("proto: Subject: wiretype end group for non-group")
  4929. }
  4930. if fieldNum <= 0 {
  4931. return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire)
  4932. }
  4933. switch fieldNum {
  4934. case 1:
  4935. if wireType != 2 {
  4936. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  4937. }
  4938. var stringLen uint64
  4939. for shift := uint(0); ; shift += 7 {
  4940. if shift >= 64 {
  4941. return ErrIntOverflowGenerated
  4942. }
  4943. if iNdEx >= l {
  4944. return io.ErrUnexpectedEOF
  4945. }
  4946. b := dAtA[iNdEx]
  4947. iNdEx++
  4948. stringLen |= uint64(b&0x7F) << shift
  4949. if b < 0x80 {
  4950. break
  4951. }
  4952. }
  4953. intStringLen := int(stringLen)
  4954. if intStringLen < 0 {
  4955. return ErrInvalidLengthGenerated
  4956. }
  4957. postIndex := iNdEx + intStringLen
  4958. if postIndex < 0 {
  4959. return ErrInvalidLengthGenerated
  4960. }
  4961. if postIndex > l {
  4962. return io.ErrUnexpectedEOF
  4963. }
  4964. m.Kind = SubjectKind(dAtA[iNdEx:postIndex])
  4965. iNdEx = postIndex
  4966. case 2:
  4967. if wireType != 2 {
  4968. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  4969. }
  4970. var msglen int
  4971. for shift := uint(0); ; shift += 7 {
  4972. if shift >= 64 {
  4973. return ErrIntOverflowGenerated
  4974. }
  4975. if iNdEx >= l {
  4976. return io.ErrUnexpectedEOF
  4977. }
  4978. b := dAtA[iNdEx]
  4979. iNdEx++
  4980. msglen |= int(b&0x7F) << shift
  4981. if b < 0x80 {
  4982. break
  4983. }
  4984. }
  4985. if msglen < 0 {
  4986. return ErrInvalidLengthGenerated
  4987. }
  4988. postIndex := iNdEx + msglen
  4989. if postIndex < 0 {
  4990. return ErrInvalidLengthGenerated
  4991. }
  4992. if postIndex > l {
  4993. return io.ErrUnexpectedEOF
  4994. }
  4995. if m.User == nil {
  4996. m.User = &UserSubject{}
  4997. }
  4998. if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4999. return err
  5000. }
  5001. iNdEx = postIndex
  5002. case 3:
  5003. if wireType != 2 {
  5004. return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
  5005. }
  5006. var msglen int
  5007. for shift := uint(0); ; shift += 7 {
  5008. if shift >= 64 {
  5009. return ErrIntOverflowGenerated
  5010. }
  5011. if iNdEx >= l {
  5012. return io.ErrUnexpectedEOF
  5013. }
  5014. b := dAtA[iNdEx]
  5015. iNdEx++
  5016. msglen |= int(b&0x7F) << shift
  5017. if b < 0x80 {
  5018. break
  5019. }
  5020. }
  5021. if msglen < 0 {
  5022. return ErrInvalidLengthGenerated
  5023. }
  5024. postIndex := iNdEx + msglen
  5025. if postIndex < 0 {
  5026. return ErrInvalidLengthGenerated
  5027. }
  5028. if postIndex > l {
  5029. return io.ErrUnexpectedEOF
  5030. }
  5031. if m.Group == nil {
  5032. m.Group = &GroupSubject{}
  5033. }
  5034. if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5035. return err
  5036. }
  5037. iNdEx = postIndex
  5038. case 4:
  5039. if wireType != 2 {
  5040. return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType)
  5041. }
  5042. var msglen int
  5043. for shift := uint(0); ; shift += 7 {
  5044. if shift >= 64 {
  5045. return ErrIntOverflowGenerated
  5046. }
  5047. if iNdEx >= l {
  5048. return io.ErrUnexpectedEOF
  5049. }
  5050. b := dAtA[iNdEx]
  5051. iNdEx++
  5052. msglen |= int(b&0x7F) << shift
  5053. if b < 0x80 {
  5054. break
  5055. }
  5056. }
  5057. if msglen < 0 {
  5058. return ErrInvalidLengthGenerated
  5059. }
  5060. postIndex := iNdEx + msglen
  5061. if postIndex < 0 {
  5062. return ErrInvalidLengthGenerated
  5063. }
  5064. if postIndex > l {
  5065. return io.ErrUnexpectedEOF
  5066. }
  5067. if m.ServiceAccount == nil {
  5068. m.ServiceAccount = &ServiceAccountSubject{}
  5069. }
  5070. if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5071. return err
  5072. }
  5073. iNdEx = postIndex
  5074. default:
  5075. iNdEx = preIndex
  5076. skippy, err := skipGenerated(dAtA[iNdEx:])
  5077. if err != nil {
  5078. return err
  5079. }
  5080. if skippy < 0 {
  5081. return ErrInvalidLengthGenerated
  5082. }
  5083. if (iNdEx + skippy) < 0 {
  5084. return ErrInvalidLengthGenerated
  5085. }
  5086. if (iNdEx + skippy) > l {
  5087. return io.ErrUnexpectedEOF
  5088. }
  5089. iNdEx += skippy
  5090. }
  5091. }
  5092. if iNdEx > l {
  5093. return io.ErrUnexpectedEOF
  5094. }
  5095. return nil
  5096. }
  5097. func (m *UserSubject) Unmarshal(dAtA []byte) error {
  5098. l := len(dAtA)
  5099. iNdEx := 0
  5100. for iNdEx < l {
  5101. preIndex := iNdEx
  5102. var wire uint64
  5103. for shift := uint(0); ; shift += 7 {
  5104. if shift >= 64 {
  5105. return ErrIntOverflowGenerated
  5106. }
  5107. if iNdEx >= l {
  5108. return io.ErrUnexpectedEOF
  5109. }
  5110. b := dAtA[iNdEx]
  5111. iNdEx++
  5112. wire |= uint64(b&0x7F) << shift
  5113. if b < 0x80 {
  5114. break
  5115. }
  5116. }
  5117. fieldNum := int32(wire >> 3)
  5118. wireType := int(wire & 0x7)
  5119. if wireType == 4 {
  5120. return fmt.Errorf("proto: UserSubject: wiretype end group for non-group")
  5121. }
  5122. if fieldNum <= 0 {
  5123. return fmt.Errorf("proto: UserSubject: illegal tag %d (wire type %d)", fieldNum, wire)
  5124. }
  5125. switch fieldNum {
  5126. case 1:
  5127. if wireType != 2 {
  5128. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5129. }
  5130. var stringLen uint64
  5131. for shift := uint(0); ; shift += 7 {
  5132. if shift >= 64 {
  5133. return ErrIntOverflowGenerated
  5134. }
  5135. if iNdEx >= l {
  5136. return io.ErrUnexpectedEOF
  5137. }
  5138. b := dAtA[iNdEx]
  5139. iNdEx++
  5140. stringLen |= uint64(b&0x7F) << shift
  5141. if b < 0x80 {
  5142. break
  5143. }
  5144. }
  5145. intStringLen := int(stringLen)
  5146. if intStringLen < 0 {
  5147. return ErrInvalidLengthGenerated
  5148. }
  5149. postIndex := iNdEx + intStringLen
  5150. if postIndex < 0 {
  5151. return ErrInvalidLengthGenerated
  5152. }
  5153. if postIndex > l {
  5154. return io.ErrUnexpectedEOF
  5155. }
  5156. m.Name = string(dAtA[iNdEx:postIndex])
  5157. iNdEx = postIndex
  5158. default:
  5159. iNdEx = preIndex
  5160. skippy, err := skipGenerated(dAtA[iNdEx:])
  5161. if err != nil {
  5162. return err
  5163. }
  5164. if skippy < 0 {
  5165. return ErrInvalidLengthGenerated
  5166. }
  5167. if (iNdEx + skippy) < 0 {
  5168. return ErrInvalidLengthGenerated
  5169. }
  5170. if (iNdEx + skippy) > l {
  5171. return io.ErrUnexpectedEOF
  5172. }
  5173. iNdEx += skippy
  5174. }
  5175. }
  5176. if iNdEx > l {
  5177. return io.ErrUnexpectedEOF
  5178. }
  5179. return nil
  5180. }
  5181. func skipGenerated(dAtA []byte) (n int, err error) {
  5182. l := len(dAtA)
  5183. iNdEx := 0
  5184. depth := 0
  5185. for iNdEx < l {
  5186. var wire uint64
  5187. for shift := uint(0); ; shift += 7 {
  5188. if shift >= 64 {
  5189. return 0, ErrIntOverflowGenerated
  5190. }
  5191. if iNdEx >= l {
  5192. return 0, io.ErrUnexpectedEOF
  5193. }
  5194. b := dAtA[iNdEx]
  5195. iNdEx++
  5196. wire |= (uint64(b) & 0x7F) << shift
  5197. if b < 0x80 {
  5198. break
  5199. }
  5200. }
  5201. wireType := int(wire & 0x7)
  5202. switch wireType {
  5203. case 0:
  5204. for shift := uint(0); ; shift += 7 {
  5205. if shift >= 64 {
  5206. return 0, ErrIntOverflowGenerated
  5207. }
  5208. if iNdEx >= l {
  5209. return 0, io.ErrUnexpectedEOF
  5210. }
  5211. iNdEx++
  5212. if dAtA[iNdEx-1] < 0x80 {
  5213. break
  5214. }
  5215. }
  5216. case 1:
  5217. iNdEx += 8
  5218. case 2:
  5219. var length int
  5220. for shift := uint(0); ; shift += 7 {
  5221. if shift >= 64 {
  5222. return 0, ErrIntOverflowGenerated
  5223. }
  5224. if iNdEx >= l {
  5225. return 0, io.ErrUnexpectedEOF
  5226. }
  5227. b := dAtA[iNdEx]
  5228. iNdEx++
  5229. length |= (int(b) & 0x7F) << shift
  5230. if b < 0x80 {
  5231. break
  5232. }
  5233. }
  5234. if length < 0 {
  5235. return 0, ErrInvalidLengthGenerated
  5236. }
  5237. iNdEx += length
  5238. case 3:
  5239. depth++
  5240. case 4:
  5241. if depth == 0 {
  5242. return 0, ErrUnexpectedEndOfGroupGenerated
  5243. }
  5244. depth--
  5245. case 5:
  5246. iNdEx += 4
  5247. default:
  5248. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5249. }
  5250. if iNdEx < 0 {
  5251. return 0, ErrInvalidLengthGenerated
  5252. }
  5253. if depth == 0 {
  5254. return iNdEx, nil
  5255. }
  5256. }
  5257. return 0, io.ErrUnexpectedEOF
  5258. }
  5259. var (
  5260. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  5261. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  5262. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  5263. )