generated.pb.go 111 KB

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