generated.pb.go 142 KB

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