generated.pb.go 136 KB

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