generated.pb.go 142 KB

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