generated.pb.go 136 KB

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