generated.pb.go 111 KB

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