generated.pb.go 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  14. // source: k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1/generated.proto
  15. /*
  16. Package v1 is a generated protocol buffer package.
  17. It is generated from these files:
  18. k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1/generated.proto
  19. It has these top-level messages:
  20. AggregationRule
  21. ClusterRole
  22. ClusterRoleBinding
  23. ClusterRoleBindingList
  24. ClusterRoleList
  25. PolicyRule
  26. Role
  27. RoleBinding
  28. RoleBindingList
  29. RoleList
  30. RoleRef
  31. Subject
  32. */
  33. package v1
  34. import proto "github.com/gogo/protobuf/proto"
  35. import fmt "fmt"
  36. import math "math"
  37. import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  38. import strings "strings"
  39. import reflect "reflect"
  40. import io "io"
  41. // Reference imports to suppress errors if they are not otherwise used.
  42. var _ = proto.Marshal
  43. var _ = fmt.Errorf
  44. var _ = math.Inf
  45. // This is a compile-time assertion to ensure that this generated file
  46. // is compatible with the proto package it is being compiled against.
  47. // A compilation error at this line likely means your copy of the
  48. // proto package needs to be updated.
  49. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  50. func (m *AggregationRule) Reset() { *m = AggregationRule{} }
  51. func (*AggregationRule) ProtoMessage() {}
  52. func (*AggregationRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  53. func (m *ClusterRole) Reset() { *m = ClusterRole{} }
  54. func (*ClusterRole) ProtoMessage() {}
  55. func (*ClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  56. func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} }
  57. func (*ClusterRoleBinding) ProtoMessage() {}
  58. func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  59. func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} }
  60. func (*ClusterRoleBindingList) ProtoMessage() {}
  61. func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  62. func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} }
  63. func (*ClusterRoleList) ProtoMessage() {}
  64. func (*ClusterRoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
  65. func (m *PolicyRule) Reset() { *m = PolicyRule{} }
  66. func (*PolicyRule) ProtoMessage() {}
  67. func (*PolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  68. func (m *Role) Reset() { *m = Role{} }
  69. func (*Role) ProtoMessage() {}
  70. func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
  71. func (m *RoleBinding) Reset() { *m = RoleBinding{} }
  72. func (*RoleBinding) ProtoMessage() {}
  73. func (*RoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
  74. func (m *RoleBindingList) Reset() { *m = RoleBindingList{} }
  75. func (*RoleBindingList) ProtoMessage() {}
  76. func (*RoleBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
  77. func (m *RoleList) Reset() { *m = RoleList{} }
  78. func (*RoleList) ProtoMessage() {}
  79. func (*RoleList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
  80. func (m *RoleRef) Reset() { *m = RoleRef{} }
  81. func (*RoleRef) ProtoMessage() {}
  82. func (*RoleRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
  83. func (m *Subject) Reset() { *m = Subject{} }
  84. func (*Subject) ProtoMessage() {}
  85. func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
  86. func init() {
  87. proto.RegisterType((*AggregationRule)(nil), "k8s.io.api.rbac.v1.AggregationRule")
  88. proto.RegisterType((*ClusterRole)(nil), "k8s.io.api.rbac.v1.ClusterRole")
  89. proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.api.rbac.v1.ClusterRoleBinding")
  90. proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.api.rbac.v1.ClusterRoleBindingList")
  91. proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.api.rbac.v1.ClusterRoleList")
  92. proto.RegisterType((*PolicyRule)(nil), "k8s.io.api.rbac.v1.PolicyRule")
  93. proto.RegisterType((*Role)(nil), "k8s.io.api.rbac.v1.Role")
  94. proto.RegisterType((*RoleBinding)(nil), "k8s.io.api.rbac.v1.RoleBinding")
  95. proto.RegisterType((*RoleBindingList)(nil), "k8s.io.api.rbac.v1.RoleBindingList")
  96. proto.RegisterType((*RoleList)(nil), "k8s.io.api.rbac.v1.RoleList")
  97. proto.RegisterType((*RoleRef)(nil), "k8s.io.api.rbac.v1.RoleRef")
  98. proto.RegisterType((*Subject)(nil), "k8s.io.api.rbac.v1.Subject")
  99. }
  100. func (m *AggregationRule) Marshal() (dAtA []byte, err error) {
  101. size := m.Size()
  102. dAtA = make([]byte, size)
  103. n, err := m.MarshalTo(dAtA)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return dAtA[:n], nil
  108. }
  109. func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error) {
  110. var i int
  111. _ = i
  112. var l int
  113. _ = l
  114. if len(m.ClusterRoleSelectors) > 0 {
  115. for _, msg := range m.ClusterRoleSelectors {
  116. dAtA[i] = 0xa
  117. i++
  118. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  119. n, err := msg.MarshalTo(dAtA[i:])
  120. if err != nil {
  121. return 0, err
  122. }
  123. i += n
  124. }
  125. }
  126. return i, nil
  127. }
  128. func (m *ClusterRole) Marshal() (dAtA []byte, err error) {
  129. size := m.Size()
  130. dAtA = make([]byte, size)
  131. n, err := m.MarshalTo(dAtA)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return dAtA[:n], nil
  136. }
  137. func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) {
  138. var i int
  139. _ = i
  140. var l int
  141. _ = l
  142. dAtA[i] = 0xa
  143. i++
  144. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  145. n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  146. if err != nil {
  147. return 0, err
  148. }
  149. i += n1
  150. if len(m.Rules) > 0 {
  151. for _, msg := range m.Rules {
  152. dAtA[i] = 0x12
  153. i++
  154. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  155. n, err := msg.MarshalTo(dAtA[i:])
  156. if err != nil {
  157. return 0, err
  158. }
  159. i += n
  160. }
  161. }
  162. if m.AggregationRule != nil {
  163. dAtA[i] = 0x1a
  164. i++
  165. i = encodeVarintGenerated(dAtA, i, uint64(m.AggregationRule.Size()))
  166. n2, err := m.AggregationRule.MarshalTo(dAtA[i:])
  167. if err != nil {
  168. return 0, err
  169. }
  170. i += n2
  171. }
  172. return i, nil
  173. }
  174. func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) {
  175. size := m.Size()
  176. dAtA = make([]byte, size)
  177. n, err := m.MarshalTo(dAtA)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return dAtA[:n], nil
  182. }
  183. func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) {
  184. var i int
  185. _ = i
  186. var l int
  187. _ = l
  188. dAtA[i] = 0xa
  189. i++
  190. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  191. n3, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  192. if err != nil {
  193. return 0, err
  194. }
  195. i += n3
  196. if len(m.Subjects) > 0 {
  197. for _, msg := range m.Subjects {
  198. dAtA[i] = 0x12
  199. i++
  200. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  201. n, err := msg.MarshalTo(dAtA[i:])
  202. if err != nil {
  203. return 0, err
  204. }
  205. i += n
  206. }
  207. }
  208. dAtA[i] = 0x1a
  209. i++
  210. i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size()))
  211. n4, err := m.RoleRef.MarshalTo(dAtA[i:])
  212. if err != nil {
  213. return 0, err
  214. }
  215. i += n4
  216. return i, nil
  217. }
  218. func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) {
  219. size := m.Size()
  220. dAtA = make([]byte, size)
  221. n, err := m.MarshalTo(dAtA)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return dAtA[:n], nil
  226. }
  227. func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) {
  228. var i int
  229. _ = i
  230. var l int
  231. _ = l
  232. dAtA[i] = 0xa
  233. i++
  234. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  235. n5, err := m.ListMeta.MarshalTo(dAtA[i:])
  236. if err != nil {
  237. return 0, err
  238. }
  239. i += n5
  240. if len(m.Items) > 0 {
  241. for _, msg := range m.Items {
  242. dAtA[i] = 0x12
  243. i++
  244. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  245. n, err := msg.MarshalTo(dAtA[i:])
  246. if err != nil {
  247. return 0, err
  248. }
  249. i += n
  250. }
  251. }
  252. return i, nil
  253. }
  254. func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) {
  255. size := m.Size()
  256. dAtA = make([]byte, size)
  257. n, err := m.MarshalTo(dAtA)
  258. if err != nil {
  259. return nil, err
  260. }
  261. return dAtA[:n], nil
  262. }
  263. func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) {
  264. var i int
  265. _ = i
  266. var l int
  267. _ = l
  268. dAtA[i] = 0xa
  269. i++
  270. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  271. n6, err := m.ListMeta.MarshalTo(dAtA[i:])
  272. if err != nil {
  273. return 0, err
  274. }
  275. i += n6
  276. if len(m.Items) > 0 {
  277. for _, msg := range m.Items {
  278. dAtA[i] = 0x12
  279. i++
  280. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  281. n, err := msg.MarshalTo(dAtA[i:])
  282. if err != nil {
  283. return 0, err
  284. }
  285. i += n
  286. }
  287. }
  288. return i, nil
  289. }
  290. func (m *PolicyRule) Marshal() (dAtA []byte, err error) {
  291. size := m.Size()
  292. dAtA = make([]byte, size)
  293. n, err := m.MarshalTo(dAtA)
  294. if err != nil {
  295. return nil, err
  296. }
  297. return dAtA[:n], nil
  298. }
  299. func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) {
  300. var i int
  301. _ = i
  302. var l int
  303. _ = l
  304. if len(m.Verbs) > 0 {
  305. for _, s := range m.Verbs {
  306. dAtA[i] = 0xa
  307. i++
  308. l = len(s)
  309. for l >= 1<<7 {
  310. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  311. l >>= 7
  312. i++
  313. }
  314. dAtA[i] = uint8(l)
  315. i++
  316. i += copy(dAtA[i:], s)
  317. }
  318. }
  319. if len(m.APIGroups) > 0 {
  320. for _, s := range m.APIGroups {
  321. dAtA[i] = 0x12
  322. i++
  323. l = len(s)
  324. for l >= 1<<7 {
  325. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  326. l >>= 7
  327. i++
  328. }
  329. dAtA[i] = uint8(l)
  330. i++
  331. i += copy(dAtA[i:], s)
  332. }
  333. }
  334. if len(m.Resources) > 0 {
  335. for _, s := range m.Resources {
  336. dAtA[i] = 0x1a
  337. i++
  338. l = len(s)
  339. for l >= 1<<7 {
  340. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  341. l >>= 7
  342. i++
  343. }
  344. dAtA[i] = uint8(l)
  345. i++
  346. i += copy(dAtA[i:], s)
  347. }
  348. }
  349. if len(m.ResourceNames) > 0 {
  350. for _, s := range m.ResourceNames {
  351. dAtA[i] = 0x22
  352. i++
  353. l = len(s)
  354. for l >= 1<<7 {
  355. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  356. l >>= 7
  357. i++
  358. }
  359. dAtA[i] = uint8(l)
  360. i++
  361. i += copy(dAtA[i:], s)
  362. }
  363. }
  364. if len(m.NonResourceURLs) > 0 {
  365. for _, s := range m.NonResourceURLs {
  366. dAtA[i] = 0x2a
  367. i++
  368. l = len(s)
  369. for l >= 1<<7 {
  370. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  371. l >>= 7
  372. i++
  373. }
  374. dAtA[i] = uint8(l)
  375. i++
  376. i += copy(dAtA[i:], s)
  377. }
  378. }
  379. return i, nil
  380. }
  381. func (m *Role) Marshal() (dAtA []byte, err error) {
  382. size := m.Size()
  383. dAtA = make([]byte, size)
  384. n, err := m.MarshalTo(dAtA)
  385. if err != nil {
  386. return nil, err
  387. }
  388. return dAtA[:n], nil
  389. }
  390. func (m *Role) MarshalTo(dAtA []byte) (int, error) {
  391. var i int
  392. _ = i
  393. var l int
  394. _ = l
  395. dAtA[i] = 0xa
  396. i++
  397. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  398. n7, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  399. if err != nil {
  400. return 0, err
  401. }
  402. i += n7
  403. if len(m.Rules) > 0 {
  404. for _, msg := range m.Rules {
  405. dAtA[i] = 0x12
  406. i++
  407. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  408. n, err := msg.MarshalTo(dAtA[i:])
  409. if err != nil {
  410. return 0, err
  411. }
  412. i += n
  413. }
  414. }
  415. return i, nil
  416. }
  417. func (m *RoleBinding) Marshal() (dAtA []byte, err error) {
  418. size := m.Size()
  419. dAtA = make([]byte, size)
  420. n, err := m.MarshalTo(dAtA)
  421. if err != nil {
  422. return nil, err
  423. }
  424. return dAtA[:n], nil
  425. }
  426. func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) {
  427. var i int
  428. _ = i
  429. var l int
  430. _ = l
  431. dAtA[i] = 0xa
  432. i++
  433. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  434. n8, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  435. if err != nil {
  436. return 0, err
  437. }
  438. i += n8
  439. if len(m.Subjects) > 0 {
  440. for _, msg := range m.Subjects {
  441. dAtA[i] = 0x12
  442. i++
  443. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  444. n, err := msg.MarshalTo(dAtA[i:])
  445. if err != nil {
  446. return 0, err
  447. }
  448. i += n
  449. }
  450. }
  451. dAtA[i] = 0x1a
  452. i++
  453. i = encodeVarintGenerated(dAtA, i, uint64(m.RoleRef.Size()))
  454. n9, err := m.RoleRef.MarshalTo(dAtA[i:])
  455. if err != nil {
  456. return 0, err
  457. }
  458. i += n9
  459. return i, nil
  460. }
  461. func (m *RoleBindingList) Marshal() (dAtA []byte, err error) {
  462. size := m.Size()
  463. dAtA = make([]byte, size)
  464. n, err := m.MarshalTo(dAtA)
  465. if err != nil {
  466. return nil, err
  467. }
  468. return dAtA[:n], nil
  469. }
  470. func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) {
  471. var i int
  472. _ = i
  473. var l int
  474. _ = l
  475. dAtA[i] = 0xa
  476. i++
  477. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  478. n10, err := m.ListMeta.MarshalTo(dAtA[i:])
  479. if err != nil {
  480. return 0, err
  481. }
  482. i += n10
  483. if len(m.Items) > 0 {
  484. for _, msg := range m.Items {
  485. dAtA[i] = 0x12
  486. i++
  487. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  488. n, err := msg.MarshalTo(dAtA[i:])
  489. if err != nil {
  490. return 0, err
  491. }
  492. i += n
  493. }
  494. }
  495. return i, nil
  496. }
  497. func (m *RoleList) Marshal() (dAtA []byte, err error) {
  498. size := m.Size()
  499. dAtA = make([]byte, size)
  500. n, err := m.MarshalTo(dAtA)
  501. if err != nil {
  502. return nil, err
  503. }
  504. return dAtA[:n], nil
  505. }
  506. func (m *RoleList) MarshalTo(dAtA []byte) (int, error) {
  507. var i int
  508. _ = i
  509. var l int
  510. _ = l
  511. dAtA[i] = 0xa
  512. i++
  513. i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
  514. n11, err := m.ListMeta.MarshalTo(dAtA[i:])
  515. if err != nil {
  516. return 0, err
  517. }
  518. i += n11
  519. if len(m.Items) > 0 {
  520. for _, msg := range m.Items {
  521. dAtA[i] = 0x12
  522. i++
  523. i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
  524. n, err := msg.MarshalTo(dAtA[i:])
  525. if err != nil {
  526. return 0, err
  527. }
  528. i += n
  529. }
  530. }
  531. return i, nil
  532. }
  533. func (m *RoleRef) Marshal() (dAtA []byte, err error) {
  534. size := m.Size()
  535. dAtA = make([]byte, size)
  536. n, err := m.MarshalTo(dAtA)
  537. if err != nil {
  538. return nil, err
  539. }
  540. return dAtA[:n], nil
  541. }
  542. func (m *RoleRef) MarshalTo(dAtA []byte) (int, error) {
  543. var i int
  544. _ = i
  545. var l int
  546. _ = l
  547. dAtA[i] = 0xa
  548. i++
  549. i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
  550. i += copy(dAtA[i:], m.APIGroup)
  551. dAtA[i] = 0x12
  552. i++
  553. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
  554. i += copy(dAtA[i:], m.Kind)
  555. dAtA[i] = 0x1a
  556. i++
  557. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  558. i += copy(dAtA[i:], m.Name)
  559. return i, nil
  560. }
  561. func (m *Subject) Marshal() (dAtA []byte, err error) {
  562. size := m.Size()
  563. dAtA = make([]byte, size)
  564. n, err := m.MarshalTo(dAtA)
  565. if err != nil {
  566. return nil, err
  567. }
  568. return dAtA[:n], nil
  569. }
  570. func (m *Subject) MarshalTo(dAtA []byte) (int, error) {
  571. var i int
  572. _ = i
  573. var l int
  574. _ = l
  575. dAtA[i] = 0xa
  576. i++
  577. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
  578. i += copy(dAtA[i:], m.Kind)
  579. dAtA[i] = 0x12
  580. i++
  581. i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
  582. i += copy(dAtA[i:], m.APIGroup)
  583. dAtA[i] = 0x1a
  584. i++
  585. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  586. i += copy(dAtA[i:], m.Name)
  587. dAtA[i] = 0x22
  588. i++
  589. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
  590. i += copy(dAtA[i:], m.Namespace)
  591. return i, nil
  592. }
  593. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  594. for v >= 1<<7 {
  595. dAtA[offset] = uint8(v&0x7f | 0x80)
  596. v >>= 7
  597. offset++
  598. }
  599. dAtA[offset] = uint8(v)
  600. return offset + 1
  601. }
  602. func (m *AggregationRule) Size() (n int) {
  603. var l int
  604. _ = l
  605. if len(m.ClusterRoleSelectors) > 0 {
  606. for _, e := range m.ClusterRoleSelectors {
  607. l = e.Size()
  608. n += 1 + l + sovGenerated(uint64(l))
  609. }
  610. }
  611. return n
  612. }
  613. func (m *ClusterRole) Size() (n int) {
  614. var l int
  615. _ = l
  616. l = m.ObjectMeta.Size()
  617. n += 1 + l + sovGenerated(uint64(l))
  618. if len(m.Rules) > 0 {
  619. for _, e := range m.Rules {
  620. l = e.Size()
  621. n += 1 + l + sovGenerated(uint64(l))
  622. }
  623. }
  624. if m.AggregationRule != nil {
  625. l = m.AggregationRule.Size()
  626. n += 1 + l + sovGenerated(uint64(l))
  627. }
  628. return n
  629. }
  630. func (m *ClusterRoleBinding) Size() (n int) {
  631. var l int
  632. _ = l
  633. l = m.ObjectMeta.Size()
  634. n += 1 + l + sovGenerated(uint64(l))
  635. if len(m.Subjects) > 0 {
  636. for _, e := range m.Subjects {
  637. l = e.Size()
  638. n += 1 + l + sovGenerated(uint64(l))
  639. }
  640. }
  641. l = m.RoleRef.Size()
  642. n += 1 + l + sovGenerated(uint64(l))
  643. return n
  644. }
  645. func (m *ClusterRoleBindingList) Size() (n int) {
  646. var l int
  647. _ = l
  648. l = m.ListMeta.Size()
  649. n += 1 + l + sovGenerated(uint64(l))
  650. if len(m.Items) > 0 {
  651. for _, e := range m.Items {
  652. l = e.Size()
  653. n += 1 + l + sovGenerated(uint64(l))
  654. }
  655. }
  656. return n
  657. }
  658. func (m *ClusterRoleList) Size() (n int) {
  659. var l int
  660. _ = l
  661. l = m.ListMeta.Size()
  662. n += 1 + l + sovGenerated(uint64(l))
  663. if len(m.Items) > 0 {
  664. for _, e := range m.Items {
  665. l = e.Size()
  666. n += 1 + l + sovGenerated(uint64(l))
  667. }
  668. }
  669. return n
  670. }
  671. func (m *PolicyRule) Size() (n int) {
  672. var l int
  673. _ = l
  674. if len(m.Verbs) > 0 {
  675. for _, s := range m.Verbs {
  676. l = len(s)
  677. n += 1 + l + sovGenerated(uint64(l))
  678. }
  679. }
  680. if len(m.APIGroups) > 0 {
  681. for _, s := range m.APIGroups {
  682. l = len(s)
  683. n += 1 + l + sovGenerated(uint64(l))
  684. }
  685. }
  686. if len(m.Resources) > 0 {
  687. for _, s := range m.Resources {
  688. l = len(s)
  689. n += 1 + l + sovGenerated(uint64(l))
  690. }
  691. }
  692. if len(m.ResourceNames) > 0 {
  693. for _, s := range m.ResourceNames {
  694. l = len(s)
  695. n += 1 + l + sovGenerated(uint64(l))
  696. }
  697. }
  698. if len(m.NonResourceURLs) > 0 {
  699. for _, s := range m.NonResourceURLs {
  700. l = len(s)
  701. n += 1 + l + sovGenerated(uint64(l))
  702. }
  703. }
  704. return n
  705. }
  706. func (m *Role) Size() (n int) {
  707. var l int
  708. _ = l
  709. l = m.ObjectMeta.Size()
  710. n += 1 + l + sovGenerated(uint64(l))
  711. if len(m.Rules) > 0 {
  712. for _, e := range m.Rules {
  713. l = e.Size()
  714. n += 1 + l + sovGenerated(uint64(l))
  715. }
  716. }
  717. return n
  718. }
  719. func (m *RoleBinding) Size() (n int) {
  720. var l int
  721. _ = l
  722. l = m.ObjectMeta.Size()
  723. n += 1 + l + sovGenerated(uint64(l))
  724. if len(m.Subjects) > 0 {
  725. for _, e := range m.Subjects {
  726. l = e.Size()
  727. n += 1 + l + sovGenerated(uint64(l))
  728. }
  729. }
  730. l = m.RoleRef.Size()
  731. n += 1 + l + sovGenerated(uint64(l))
  732. return n
  733. }
  734. func (m *RoleBindingList) Size() (n int) {
  735. var l int
  736. _ = l
  737. l = m.ListMeta.Size()
  738. n += 1 + l + sovGenerated(uint64(l))
  739. if len(m.Items) > 0 {
  740. for _, e := range m.Items {
  741. l = e.Size()
  742. n += 1 + l + sovGenerated(uint64(l))
  743. }
  744. }
  745. return n
  746. }
  747. func (m *RoleList) Size() (n int) {
  748. var l int
  749. _ = l
  750. l = m.ListMeta.Size()
  751. n += 1 + l + sovGenerated(uint64(l))
  752. if len(m.Items) > 0 {
  753. for _, e := range m.Items {
  754. l = e.Size()
  755. n += 1 + l + sovGenerated(uint64(l))
  756. }
  757. }
  758. return n
  759. }
  760. func (m *RoleRef) Size() (n int) {
  761. var l int
  762. _ = l
  763. l = len(m.APIGroup)
  764. n += 1 + l + sovGenerated(uint64(l))
  765. l = len(m.Kind)
  766. n += 1 + l + sovGenerated(uint64(l))
  767. l = len(m.Name)
  768. n += 1 + l + sovGenerated(uint64(l))
  769. return n
  770. }
  771. func (m *Subject) Size() (n int) {
  772. var l int
  773. _ = l
  774. l = len(m.Kind)
  775. n += 1 + l + sovGenerated(uint64(l))
  776. l = len(m.APIGroup)
  777. n += 1 + l + sovGenerated(uint64(l))
  778. l = len(m.Name)
  779. n += 1 + l + sovGenerated(uint64(l))
  780. l = len(m.Namespace)
  781. n += 1 + l + sovGenerated(uint64(l))
  782. return n
  783. }
  784. func sovGenerated(x uint64) (n int) {
  785. for {
  786. n++
  787. x >>= 7
  788. if x == 0 {
  789. break
  790. }
  791. }
  792. return n
  793. }
  794. func sozGenerated(x uint64) (n int) {
  795. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  796. }
  797. func (this *AggregationRule) String() string {
  798. if this == nil {
  799. return "nil"
  800. }
  801. s := strings.Join([]string{`&AggregationRule{`,
  802. `ClusterRoleSelectors:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ClusterRoleSelectors), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`,
  803. `}`,
  804. }, "")
  805. return s
  806. }
  807. func (this *ClusterRole) String() string {
  808. if this == nil {
  809. return "nil"
  810. }
  811. s := strings.Join([]string{`&ClusterRole{`,
  812. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  813. `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`,
  814. `AggregationRule:` + strings.Replace(fmt.Sprintf("%v", this.AggregationRule), "AggregationRule", "AggregationRule", 1) + `,`,
  815. `}`,
  816. }, "")
  817. return s
  818. }
  819. func (this *ClusterRoleBinding) String() string {
  820. if this == nil {
  821. return "nil"
  822. }
  823. s := strings.Join([]string{`&ClusterRoleBinding{`,
  824. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  825. `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`,
  826. `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`,
  827. `}`,
  828. }, "")
  829. return s
  830. }
  831. func (this *ClusterRoleBindingList) String() string {
  832. if this == nil {
  833. return "nil"
  834. }
  835. s := strings.Join([]string{`&ClusterRoleBindingList{`,
  836. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  837. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + `,`,
  838. `}`,
  839. }, "")
  840. return s
  841. }
  842. func (this *ClusterRoleList) String() string {
  843. if this == nil {
  844. return "nil"
  845. }
  846. s := strings.Join([]string{`&ClusterRoleList{`,
  847. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  848. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + `,`,
  849. `}`,
  850. }, "")
  851. return s
  852. }
  853. func (this *PolicyRule) String() string {
  854. if this == nil {
  855. return "nil"
  856. }
  857. s := strings.Join([]string{`&PolicyRule{`,
  858. `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`,
  859. `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
  860. `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
  861. `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`,
  862. `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`,
  863. `}`,
  864. }, "")
  865. return s
  866. }
  867. func (this *Role) String() string {
  868. if this == nil {
  869. return "nil"
  870. }
  871. s := strings.Join([]string{`&Role{`,
  872. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  873. `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + `,`,
  874. `}`,
  875. }, "")
  876. return s
  877. }
  878. func (this *RoleBinding) String() string {
  879. if this == nil {
  880. return "nil"
  881. }
  882. s := strings.Join([]string{`&RoleBinding{`,
  883. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  884. `Subjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Subjects), "Subject", "Subject", 1), `&`, ``, 1) + `,`,
  885. `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`,
  886. `}`,
  887. }, "")
  888. return s
  889. }
  890. func (this *RoleBindingList) String() string {
  891. if this == nil {
  892. return "nil"
  893. }
  894. s := strings.Join([]string{`&RoleBindingList{`,
  895. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  896. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + `,`,
  897. `}`,
  898. }, "")
  899. return s
  900. }
  901. func (this *RoleList) String() string {
  902. if this == nil {
  903. return "nil"
  904. }
  905. s := strings.Join([]string{`&RoleList{`,
  906. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  907. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Role", "Role", 1), `&`, ``, 1) + `,`,
  908. `}`,
  909. }, "")
  910. return s
  911. }
  912. func (this *RoleRef) String() string {
  913. if this == nil {
  914. return "nil"
  915. }
  916. s := strings.Join([]string{`&RoleRef{`,
  917. `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
  918. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  919. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  920. `}`,
  921. }, "")
  922. return s
  923. }
  924. func (this *Subject) String() string {
  925. if this == nil {
  926. return "nil"
  927. }
  928. s := strings.Join([]string{`&Subject{`,
  929. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  930. `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
  931. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  932. `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
  933. `}`,
  934. }, "")
  935. return s
  936. }
  937. func valueToStringGenerated(v interface{}) string {
  938. rv := reflect.ValueOf(v)
  939. if rv.IsNil() {
  940. return "nil"
  941. }
  942. pv := reflect.Indirect(rv).Interface()
  943. return fmt.Sprintf("*%v", pv)
  944. }
  945. func (m *AggregationRule) Unmarshal(dAtA []byte) error {
  946. l := len(dAtA)
  947. iNdEx := 0
  948. for iNdEx < l {
  949. preIndex := iNdEx
  950. var wire uint64
  951. for shift := uint(0); ; shift += 7 {
  952. if shift >= 64 {
  953. return ErrIntOverflowGenerated
  954. }
  955. if iNdEx >= l {
  956. return io.ErrUnexpectedEOF
  957. }
  958. b := dAtA[iNdEx]
  959. iNdEx++
  960. wire |= (uint64(b) & 0x7F) << shift
  961. if b < 0x80 {
  962. break
  963. }
  964. }
  965. fieldNum := int32(wire >> 3)
  966. wireType := int(wire & 0x7)
  967. if wireType == 4 {
  968. return fmt.Errorf("proto: AggregationRule: wiretype end group for non-group")
  969. }
  970. if fieldNum <= 0 {
  971. return fmt.Errorf("proto: AggregationRule: illegal tag %d (wire type %d)", fieldNum, wire)
  972. }
  973. switch fieldNum {
  974. case 1:
  975. if wireType != 2 {
  976. return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleSelectors", wireType)
  977. }
  978. var msglen int
  979. for shift := uint(0); ; shift += 7 {
  980. if shift >= 64 {
  981. return ErrIntOverflowGenerated
  982. }
  983. if iNdEx >= l {
  984. return io.ErrUnexpectedEOF
  985. }
  986. b := dAtA[iNdEx]
  987. iNdEx++
  988. msglen |= (int(b) & 0x7F) << shift
  989. if b < 0x80 {
  990. break
  991. }
  992. }
  993. if msglen < 0 {
  994. return ErrInvalidLengthGenerated
  995. }
  996. postIndex := iNdEx + msglen
  997. if postIndex > l {
  998. return io.ErrUnexpectedEOF
  999. }
  1000. m.ClusterRoleSelectors = append(m.ClusterRoleSelectors, k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{})
  1001. if err := m.ClusterRoleSelectors[len(m.ClusterRoleSelectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1002. return err
  1003. }
  1004. iNdEx = postIndex
  1005. default:
  1006. iNdEx = preIndex
  1007. skippy, err := skipGenerated(dAtA[iNdEx:])
  1008. if err != nil {
  1009. return err
  1010. }
  1011. if skippy < 0 {
  1012. return ErrInvalidLengthGenerated
  1013. }
  1014. if (iNdEx + skippy) > l {
  1015. return io.ErrUnexpectedEOF
  1016. }
  1017. iNdEx += skippy
  1018. }
  1019. }
  1020. if iNdEx > l {
  1021. return io.ErrUnexpectedEOF
  1022. }
  1023. return nil
  1024. }
  1025. func (m *ClusterRole) Unmarshal(dAtA []byte) error {
  1026. l := len(dAtA)
  1027. iNdEx := 0
  1028. for iNdEx < l {
  1029. preIndex := iNdEx
  1030. var wire uint64
  1031. for shift := uint(0); ; shift += 7 {
  1032. if shift >= 64 {
  1033. return ErrIntOverflowGenerated
  1034. }
  1035. if iNdEx >= l {
  1036. return io.ErrUnexpectedEOF
  1037. }
  1038. b := dAtA[iNdEx]
  1039. iNdEx++
  1040. wire |= (uint64(b) & 0x7F) << shift
  1041. if b < 0x80 {
  1042. break
  1043. }
  1044. }
  1045. fieldNum := int32(wire >> 3)
  1046. wireType := int(wire & 0x7)
  1047. if wireType == 4 {
  1048. return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group")
  1049. }
  1050. if fieldNum <= 0 {
  1051. return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire)
  1052. }
  1053. switch fieldNum {
  1054. case 1:
  1055. if wireType != 2 {
  1056. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1057. }
  1058. var msglen int
  1059. for shift := uint(0); ; shift += 7 {
  1060. if shift >= 64 {
  1061. return ErrIntOverflowGenerated
  1062. }
  1063. if iNdEx >= l {
  1064. return io.ErrUnexpectedEOF
  1065. }
  1066. b := dAtA[iNdEx]
  1067. iNdEx++
  1068. msglen |= (int(b) & 0x7F) << shift
  1069. if b < 0x80 {
  1070. break
  1071. }
  1072. }
  1073. if msglen < 0 {
  1074. return ErrInvalidLengthGenerated
  1075. }
  1076. postIndex := iNdEx + msglen
  1077. if postIndex > l {
  1078. return io.ErrUnexpectedEOF
  1079. }
  1080. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1081. return err
  1082. }
  1083. iNdEx = postIndex
  1084. case 2:
  1085. if wireType != 2 {
  1086. return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  1087. }
  1088. var msglen int
  1089. for shift := uint(0); ; shift += 7 {
  1090. if shift >= 64 {
  1091. return ErrIntOverflowGenerated
  1092. }
  1093. if iNdEx >= l {
  1094. return io.ErrUnexpectedEOF
  1095. }
  1096. b := dAtA[iNdEx]
  1097. iNdEx++
  1098. msglen |= (int(b) & 0x7F) << shift
  1099. if b < 0x80 {
  1100. break
  1101. }
  1102. }
  1103. if msglen < 0 {
  1104. return ErrInvalidLengthGenerated
  1105. }
  1106. postIndex := iNdEx + msglen
  1107. if postIndex > l {
  1108. return io.ErrUnexpectedEOF
  1109. }
  1110. m.Rules = append(m.Rules, PolicyRule{})
  1111. if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1112. return err
  1113. }
  1114. iNdEx = postIndex
  1115. case 3:
  1116. if wireType != 2 {
  1117. return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType)
  1118. }
  1119. var msglen int
  1120. for shift := uint(0); ; shift += 7 {
  1121. if shift >= 64 {
  1122. return ErrIntOverflowGenerated
  1123. }
  1124. if iNdEx >= l {
  1125. return io.ErrUnexpectedEOF
  1126. }
  1127. b := dAtA[iNdEx]
  1128. iNdEx++
  1129. msglen |= (int(b) & 0x7F) << shift
  1130. if b < 0x80 {
  1131. break
  1132. }
  1133. }
  1134. if msglen < 0 {
  1135. return ErrInvalidLengthGenerated
  1136. }
  1137. postIndex := iNdEx + msglen
  1138. if postIndex > l {
  1139. return io.ErrUnexpectedEOF
  1140. }
  1141. if m.AggregationRule == nil {
  1142. m.AggregationRule = &AggregationRule{}
  1143. }
  1144. if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1145. return err
  1146. }
  1147. iNdEx = postIndex
  1148. default:
  1149. iNdEx = preIndex
  1150. skippy, err := skipGenerated(dAtA[iNdEx:])
  1151. if err != nil {
  1152. return err
  1153. }
  1154. if skippy < 0 {
  1155. return ErrInvalidLengthGenerated
  1156. }
  1157. if (iNdEx + skippy) > l {
  1158. return io.ErrUnexpectedEOF
  1159. }
  1160. iNdEx += skippy
  1161. }
  1162. }
  1163. if iNdEx > l {
  1164. return io.ErrUnexpectedEOF
  1165. }
  1166. return nil
  1167. }
  1168. func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error {
  1169. l := len(dAtA)
  1170. iNdEx := 0
  1171. for iNdEx < l {
  1172. preIndex := iNdEx
  1173. var wire uint64
  1174. for shift := uint(0); ; shift += 7 {
  1175. if shift >= 64 {
  1176. return ErrIntOverflowGenerated
  1177. }
  1178. if iNdEx >= l {
  1179. return io.ErrUnexpectedEOF
  1180. }
  1181. b := dAtA[iNdEx]
  1182. iNdEx++
  1183. wire |= (uint64(b) & 0x7F) << shift
  1184. if b < 0x80 {
  1185. break
  1186. }
  1187. }
  1188. fieldNum := int32(wire >> 3)
  1189. wireType := int(wire & 0x7)
  1190. if wireType == 4 {
  1191. return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group")
  1192. }
  1193. if fieldNum <= 0 {
  1194. return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  1195. }
  1196. switch fieldNum {
  1197. case 1:
  1198. if wireType != 2 {
  1199. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1200. }
  1201. var msglen int
  1202. for shift := uint(0); ; shift += 7 {
  1203. if shift >= 64 {
  1204. return ErrIntOverflowGenerated
  1205. }
  1206. if iNdEx >= l {
  1207. return io.ErrUnexpectedEOF
  1208. }
  1209. b := dAtA[iNdEx]
  1210. iNdEx++
  1211. msglen |= (int(b) & 0x7F) << shift
  1212. if b < 0x80 {
  1213. break
  1214. }
  1215. }
  1216. if msglen < 0 {
  1217. return ErrInvalidLengthGenerated
  1218. }
  1219. postIndex := iNdEx + msglen
  1220. if postIndex > l {
  1221. return io.ErrUnexpectedEOF
  1222. }
  1223. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1224. return err
  1225. }
  1226. iNdEx = postIndex
  1227. case 2:
  1228. if wireType != 2 {
  1229. return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  1230. }
  1231. var msglen int
  1232. for shift := uint(0); ; shift += 7 {
  1233. if shift >= 64 {
  1234. return ErrIntOverflowGenerated
  1235. }
  1236. if iNdEx >= l {
  1237. return io.ErrUnexpectedEOF
  1238. }
  1239. b := dAtA[iNdEx]
  1240. iNdEx++
  1241. msglen |= (int(b) & 0x7F) << shift
  1242. if b < 0x80 {
  1243. break
  1244. }
  1245. }
  1246. if msglen < 0 {
  1247. return ErrInvalidLengthGenerated
  1248. }
  1249. postIndex := iNdEx + msglen
  1250. if postIndex > l {
  1251. return io.ErrUnexpectedEOF
  1252. }
  1253. m.Subjects = append(m.Subjects, Subject{})
  1254. if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1255. return err
  1256. }
  1257. iNdEx = postIndex
  1258. case 3:
  1259. if wireType != 2 {
  1260. return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
  1261. }
  1262. var msglen int
  1263. for shift := uint(0); ; shift += 7 {
  1264. if shift >= 64 {
  1265. return ErrIntOverflowGenerated
  1266. }
  1267. if iNdEx >= l {
  1268. return io.ErrUnexpectedEOF
  1269. }
  1270. b := dAtA[iNdEx]
  1271. iNdEx++
  1272. msglen |= (int(b) & 0x7F) << shift
  1273. if b < 0x80 {
  1274. break
  1275. }
  1276. }
  1277. if msglen < 0 {
  1278. return ErrInvalidLengthGenerated
  1279. }
  1280. postIndex := iNdEx + msglen
  1281. if postIndex > l {
  1282. return io.ErrUnexpectedEOF
  1283. }
  1284. if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1285. return err
  1286. }
  1287. iNdEx = postIndex
  1288. default:
  1289. iNdEx = preIndex
  1290. skippy, err := skipGenerated(dAtA[iNdEx:])
  1291. if err != nil {
  1292. return err
  1293. }
  1294. if skippy < 0 {
  1295. return ErrInvalidLengthGenerated
  1296. }
  1297. if (iNdEx + skippy) > l {
  1298. return io.ErrUnexpectedEOF
  1299. }
  1300. iNdEx += skippy
  1301. }
  1302. }
  1303. if iNdEx > l {
  1304. return io.ErrUnexpectedEOF
  1305. }
  1306. return nil
  1307. }
  1308. func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error {
  1309. l := len(dAtA)
  1310. iNdEx := 0
  1311. for iNdEx < l {
  1312. preIndex := iNdEx
  1313. var wire uint64
  1314. for shift := uint(0); ; shift += 7 {
  1315. if shift >= 64 {
  1316. return ErrIntOverflowGenerated
  1317. }
  1318. if iNdEx >= l {
  1319. return io.ErrUnexpectedEOF
  1320. }
  1321. b := dAtA[iNdEx]
  1322. iNdEx++
  1323. wire |= (uint64(b) & 0x7F) << shift
  1324. if b < 0x80 {
  1325. break
  1326. }
  1327. }
  1328. fieldNum := int32(wire >> 3)
  1329. wireType := int(wire & 0x7)
  1330. if wireType == 4 {
  1331. return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group")
  1332. }
  1333. if fieldNum <= 0 {
  1334. return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
  1335. }
  1336. switch fieldNum {
  1337. case 1:
  1338. if wireType != 2 {
  1339. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  1340. }
  1341. var msglen int
  1342. for shift := uint(0); ; shift += 7 {
  1343. if shift >= 64 {
  1344. return ErrIntOverflowGenerated
  1345. }
  1346. if iNdEx >= l {
  1347. return io.ErrUnexpectedEOF
  1348. }
  1349. b := dAtA[iNdEx]
  1350. iNdEx++
  1351. msglen |= (int(b) & 0x7F) << shift
  1352. if b < 0x80 {
  1353. break
  1354. }
  1355. }
  1356. if msglen < 0 {
  1357. return ErrInvalidLengthGenerated
  1358. }
  1359. postIndex := iNdEx + msglen
  1360. if postIndex > l {
  1361. return io.ErrUnexpectedEOF
  1362. }
  1363. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1364. return err
  1365. }
  1366. iNdEx = postIndex
  1367. case 2:
  1368. if wireType != 2 {
  1369. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1370. }
  1371. var msglen int
  1372. for shift := uint(0); ; shift += 7 {
  1373. if shift >= 64 {
  1374. return ErrIntOverflowGenerated
  1375. }
  1376. if iNdEx >= l {
  1377. return io.ErrUnexpectedEOF
  1378. }
  1379. b := dAtA[iNdEx]
  1380. iNdEx++
  1381. msglen |= (int(b) & 0x7F) << shift
  1382. if b < 0x80 {
  1383. break
  1384. }
  1385. }
  1386. if msglen < 0 {
  1387. return ErrInvalidLengthGenerated
  1388. }
  1389. postIndex := iNdEx + msglen
  1390. if postIndex > l {
  1391. return io.ErrUnexpectedEOF
  1392. }
  1393. m.Items = append(m.Items, ClusterRoleBinding{})
  1394. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1395. return err
  1396. }
  1397. iNdEx = postIndex
  1398. default:
  1399. iNdEx = preIndex
  1400. skippy, err := skipGenerated(dAtA[iNdEx:])
  1401. if err != nil {
  1402. return err
  1403. }
  1404. if skippy < 0 {
  1405. return ErrInvalidLengthGenerated
  1406. }
  1407. if (iNdEx + skippy) > l {
  1408. return io.ErrUnexpectedEOF
  1409. }
  1410. iNdEx += skippy
  1411. }
  1412. }
  1413. if iNdEx > l {
  1414. return io.ErrUnexpectedEOF
  1415. }
  1416. return nil
  1417. }
  1418. func (m *ClusterRoleList) Unmarshal(dAtA []byte) error {
  1419. l := len(dAtA)
  1420. iNdEx := 0
  1421. for iNdEx < l {
  1422. preIndex := iNdEx
  1423. var wire uint64
  1424. for shift := uint(0); ; shift += 7 {
  1425. if shift >= 64 {
  1426. return ErrIntOverflowGenerated
  1427. }
  1428. if iNdEx >= l {
  1429. return io.ErrUnexpectedEOF
  1430. }
  1431. b := dAtA[iNdEx]
  1432. iNdEx++
  1433. wire |= (uint64(b) & 0x7F) << shift
  1434. if b < 0x80 {
  1435. break
  1436. }
  1437. }
  1438. fieldNum := int32(wire >> 3)
  1439. wireType := int(wire & 0x7)
  1440. if wireType == 4 {
  1441. return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group")
  1442. }
  1443. if fieldNum <= 0 {
  1444. return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire)
  1445. }
  1446. switch fieldNum {
  1447. case 1:
  1448. if wireType != 2 {
  1449. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  1450. }
  1451. var msglen int
  1452. for shift := uint(0); ; shift += 7 {
  1453. if shift >= 64 {
  1454. return ErrIntOverflowGenerated
  1455. }
  1456. if iNdEx >= l {
  1457. return io.ErrUnexpectedEOF
  1458. }
  1459. b := dAtA[iNdEx]
  1460. iNdEx++
  1461. msglen |= (int(b) & 0x7F) << shift
  1462. if b < 0x80 {
  1463. break
  1464. }
  1465. }
  1466. if msglen < 0 {
  1467. return ErrInvalidLengthGenerated
  1468. }
  1469. postIndex := iNdEx + msglen
  1470. if postIndex > l {
  1471. return io.ErrUnexpectedEOF
  1472. }
  1473. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1474. return err
  1475. }
  1476. iNdEx = postIndex
  1477. case 2:
  1478. if wireType != 2 {
  1479. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1480. }
  1481. var msglen int
  1482. for shift := uint(0); ; shift += 7 {
  1483. if shift >= 64 {
  1484. return ErrIntOverflowGenerated
  1485. }
  1486. if iNdEx >= l {
  1487. return io.ErrUnexpectedEOF
  1488. }
  1489. b := dAtA[iNdEx]
  1490. iNdEx++
  1491. msglen |= (int(b) & 0x7F) << shift
  1492. if b < 0x80 {
  1493. break
  1494. }
  1495. }
  1496. if msglen < 0 {
  1497. return ErrInvalidLengthGenerated
  1498. }
  1499. postIndex := iNdEx + msglen
  1500. if postIndex > l {
  1501. return io.ErrUnexpectedEOF
  1502. }
  1503. m.Items = append(m.Items, ClusterRole{})
  1504. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1505. return err
  1506. }
  1507. iNdEx = postIndex
  1508. default:
  1509. iNdEx = preIndex
  1510. skippy, err := skipGenerated(dAtA[iNdEx:])
  1511. if err != nil {
  1512. return err
  1513. }
  1514. if skippy < 0 {
  1515. return ErrInvalidLengthGenerated
  1516. }
  1517. if (iNdEx + skippy) > l {
  1518. return io.ErrUnexpectedEOF
  1519. }
  1520. iNdEx += skippy
  1521. }
  1522. }
  1523. if iNdEx > l {
  1524. return io.ErrUnexpectedEOF
  1525. }
  1526. return nil
  1527. }
  1528. func (m *PolicyRule) Unmarshal(dAtA []byte) error {
  1529. l := len(dAtA)
  1530. iNdEx := 0
  1531. for iNdEx < l {
  1532. preIndex := iNdEx
  1533. var wire uint64
  1534. for shift := uint(0); ; shift += 7 {
  1535. if shift >= 64 {
  1536. return ErrIntOverflowGenerated
  1537. }
  1538. if iNdEx >= l {
  1539. return io.ErrUnexpectedEOF
  1540. }
  1541. b := dAtA[iNdEx]
  1542. iNdEx++
  1543. wire |= (uint64(b) & 0x7F) << shift
  1544. if b < 0x80 {
  1545. break
  1546. }
  1547. }
  1548. fieldNum := int32(wire >> 3)
  1549. wireType := int(wire & 0x7)
  1550. if wireType == 4 {
  1551. return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group")
  1552. }
  1553. if fieldNum <= 0 {
  1554. return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire)
  1555. }
  1556. switch fieldNum {
  1557. case 1:
  1558. if wireType != 2 {
  1559. return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType)
  1560. }
  1561. var stringLen uint64
  1562. for shift := uint(0); ; shift += 7 {
  1563. if shift >= 64 {
  1564. return ErrIntOverflowGenerated
  1565. }
  1566. if iNdEx >= l {
  1567. return io.ErrUnexpectedEOF
  1568. }
  1569. b := dAtA[iNdEx]
  1570. iNdEx++
  1571. stringLen |= (uint64(b) & 0x7F) << shift
  1572. if b < 0x80 {
  1573. break
  1574. }
  1575. }
  1576. intStringLen := int(stringLen)
  1577. if intStringLen < 0 {
  1578. return ErrInvalidLengthGenerated
  1579. }
  1580. postIndex := iNdEx + intStringLen
  1581. if postIndex > l {
  1582. return io.ErrUnexpectedEOF
  1583. }
  1584. m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex]))
  1585. iNdEx = postIndex
  1586. case 2:
  1587. if wireType != 2 {
  1588. return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
  1589. }
  1590. var stringLen uint64
  1591. for shift := uint(0); ; shift += 7 {
  1592. if shift >= 64 {
  1593. return ErrIntOverflowGenerated
  1594. }
  1595. if iNdEx >= l {
  1596. return io.ErrUnexpectedEOF
  1597. }
  1598. b := dAtA[iNdEx]
  1599. iNdEx++
  1600. stringLen |= (uint64(b) & 0x7F) << shift
  1601. if b < 0x80 {
  1602. break
  1603. }
  1604. }
  1605. intStringLen := int(stringLen)
  1606. if intStringLen < 0 {
  1607. return ErrInvalidLengthGenerated
  1608. }
  1609. postIndex := iNdEx + intStringLen
  1610. if postIndex > l {
  1611. return io.ErrUnexpectedEOF
  1612. }
  1613. m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
  1614. iNdEx = postIndex
  1615. case 3:
  1616. if wireType != 2 {
  1617. return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  1618. }
  1619. var stringLen uint64
  1620. for shift := uint(0); ; shift += 7 {
  1621. if shift >= 64 {
  1622. return ErrIntOverflowGenerated
  1623. }
  1624. if iNdEx >= l {
  1625. return io.ErrUnexpectedEOF
  1626. }
  1627. b := dAtA[iNdEx]
  1628. iNdEx++
  1629. stringLen |= (uint64(b) & 0x7F) << shift
  1630. if b < 0x80 {
  1631. break
  1632. }
  1633. }
  1634. intStringLen := int(stringLen)
  1635. if intStringLen < 0 {
  1636. return ErrInvalidLengthGenerated
  1637. }
  1638. postIndex := iNdEx + intStringLen
  1639. if postIndex > l {
  1640. return io.ErrUnexpectedEOF
  1641. }
  1642. m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
  1643. iNdEx = postIndex
  1644. case 4:
  1645. if wireType != 2 {
  1646. return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType)
  1647. }
  1648. var stringLen uint64
  1649. for shift := uint(0); ; shift += 7 {
  1650. if shift >= 64 {
  1651. return ErrIntOverflowGenerated
  1652. }
  1653. if iNdEx >= l {
  1654. return io.ErrUnexpectedEOF
  1655. }
  1656. b := dAtA[iNdEx]
  1657. iNdEx++
  1658. stringLen |= (uint64(b) & 0x7F) << shift
  1659. if b < 0x80 {
  1660. break
  1661. }
  1662. }
  1663. intStringLen := int(stringLen)
  1664. if intStringLen < 0 {
  1665. return ErrInvalidLengthGenerated
  1666. }
  1667. postIndex := iNdEx + intStringLen
  1668. if postIndex > l {
  1669. return io.ErrUnexpectedEOF
  1670. }
  1671. m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex]))
  1672. iNdEx = postIndex
  1673. case 5:
  1674. if wireType != 2 {
  1675. return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType)
  1676. }
  1677. var stringLen uint64
  1678. for shift := uint(0); ; shift += 7 {
  1679. if shift >= 64 {
  1680. return ErrIntOverflowGenerated
  1681. }
  1682. if iNdEx >= l {
  1683. return io.ErrUnexpectedEOF
  1684. }
  1685. b := dAtA[iNdEx]
  1686. iNdEx++
  1687. stringLen |= (uint64(b) & 0x7F) << shift
  1688. if b < 0x80 {
  1689. break
  1690. }
  1691. }
  1692. intStringLen := int(stringLen)
  1693. if intStringLen < 0 {
  1694. return ErrInvalidLengthGenerated
  1695. }
  1696. postIndex := iNdEx + intStringLen
  1697. if postIndex > l {
  1698. return io.ErrUnexpectedEOF
  1699. }
  1700. m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex]))
  1701. iNdEx = postIndex
  1702. default:
  1703. iNdEx = preIndex
  1704. skippy, err := skipGenerated(dAtA[iNdEx:])
  1705. if err != nil {
  1706. return err
  1707. }
  1708. if skippy < 0 {
  1709. return ErrInvalidLengthGenerated
  1710. }
  1711. if (iNdEx + skippy) > l {
  1712. return io.ErrUnexpectedEOF
  1713. }
  1714. iNdEx += skippy
  1715. }
  1716. }
  1717. if iNdEx > l {
  1718. return io.ErrUnexpectedEOF
  1719. }
  1720. return nil
  1721. }
  1722. func (m *Role) Unmarshal(dAtA []byte) error {
  1723. l := len(dAtA)
  1724. iNdEx := 0
  1725. for iNdEx < l {
  1726. preIndex := iNdEx
  1727. var wire uint64
  1728. for shift := uint(0); ; shift += 7 {
  1729. if shift >= 64 {
  1730. return ErrIntOverflowGenerated
  1731. }
  1732. if iNdEx >= l {
  1733. return io.ErrUnexpectedEOF
  1734. }
  1735. b := dAtA[iNdEx]
  1736. iNdEx++
  1737. wire |= (uint64(b) & 0x7F) << shift
  1738. if b < 0x80 {
  1739. break
  1740. }
  1741. }
  1742. fieldNum := int32(wire >> 3)
  1743. wireType := int(wire & 0x7)
  1744. if wireType == 4 {
  1745. return fmt.Errorf("proto: Role: wiretype end group for non-group")
  1746. }
  1747. if fieldNum <= 0 {
  1748. return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire)
  1749. }
  1750. switch fieldNum {
  1751. case 1:
  1752. if wireType != 2 {
  1753. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1754. }
  1755. var msglen int
  1756. for shift := uint(0); ; shift += 7 {
  1757. if shift >= 64 {
  1758. return ErrIntOverflowGenerated
  1759. }
  1760. if iNdEx >= l {
  1761. return io.ErrUnexpectedEOF
  1762. }
  1763. b := dAtA[iNdEx]
  1764. iNdEx++
  1765. msglen |= (int(b) & 0x7F) << shift
  1766. if b < 0x80 {
  1767. break
  1768. }
  1769. }
  1770. if msglen < 0 {
  1771. return ErrInvalidLengthGenerated
  1772. }
  1773. postIndex := iNdEx + msglen
  1774. if postIndex > l {
  1775. return io.ErrUnexpectedEOF
  1776. }
  1777. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1778. return err
  1779. }
  1780. iNdEx = postIndex
  1781. case 2:
  1782. if wireType != 2 {
  1783. return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
  1784. }
  1785. var msglen int
  1786. for shift := uint(0); ; shift += 7 {
  1787. if shift >= 64 {
  1788. return ErrIntOverflowGenerated
  1789. }
  1790. if iNdEx >= l {
  1791. return io.ErrUnexpectedEOF
  1792. }
  1793. b := dAtA[iNdEx]
  1794. iNdEx++
  1795. msglen |= (int(b) & 0x7F) << shift
  1796. if b < 0x80 {
  1797. break
  1798. }
  1799. }
  1800. if msglen < 0 {
  1801. return ErrInvalidLengthGenerated
  1802. }
  1803. postIndex := iNdEx + msglen
  1804. if postIndex > l {
  1805. return io.ErrUnexpectedEOF
  1806. }
  1807. m.Rules = append(m.Rules, PolicyRule{})
  1808. if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1809. return err
  1810. }
  1811. iNdEx = postIndex
  1812. default:
  1813. iNdEx = preIndex
  1814. skippy, err := skipGenerated(dAtA[iNdEx:])
  1815. if err != nil {
  1816. return err
  1817. }
  1818. if skippy < 0 {
  1819. return ErrInvalidLengthGenerated
  1820. }
  1821. if (iNdEx + skippy) > l {
  1822. return io.ErrUnexpectedEOF
  1823. }
  1824. iNdEx += skippy
  1825. }
  1826. }
  1827. if iNdEx > l {
  1828. return io.ErrUnexpectedEOF
  1829. }
  1830. return nil
  1831. }
  1832. func (m *RoleBinding) Unmarshal(dAtA []byte) error {
  1833. l := len(dAtA)
  1834. iNdEx := 0
  1835. for iNdEx < l {
  1836. preIndex := iNdEx
  1837. var wire uint64
  1838. for shift := uint(0); ; shift += 7 {
  1839. if shift >= 64 {
  1840. return ErrIntOverflowGenerated
  1841. }
  1842. if iNdEx >= l {
  1843. return io.ErrUnexpectedEOF
  1844. }
  1845. b := dAtA[iNdEx]
  1846. iNdEx++
  1847. wire |= (uint64(b) & 0x7F) << shift
  1848. if b < 0x80 {
  1849. break
  1850. }
  1851. }
  1852. fieldNum := int32(wire >> 3)
  1853. wireType := int(wire & 0x7)
  1854. if wireType == 4 {
  1855. return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group")
  1856. }
  1857. if fieldNum <= 0 {
  1858. return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire)
  1859. }
  1860. switch fieldNum {
  1861. case 1:
  1862. if wireType != 2 {
  1863. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1864. }
  1865. var msglen int
  1866. for shift := uint(0); ; shift += 7 {
  1867. if shift >= 64 {
  1868. return ErrIntOverflowGenerated
  1869. }
  1870. if iNdEx >= l {
  1871. return io.ErrUnexpectedEOF
  1872. }
  1873. b := dAtA[iNdEx]
  1874. iNdEx++
  1875. msglen |= (int(b) & 0x7F) << shift
  1876. if b < 0x80 {
  1877. break
  1878. }
  1879. }
  1880. if msglen < 0 {
  1881. return ErrInvalidLengthGenerated
  1882. }
  1883. postIndex := iNdEx + msglen
  1884. if postIndex > l {
  1885. return io.ErrUnexpectedEOF
  1886. }
  1887. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1888. return err
  1889. }
  1890. iNdEx = postIndex
  1891. case 2:
  1892. if wireType != 2 {
  1893. return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType)
  1894. }
  1895. var msglen int
  1896. for shift := uint(0); ; shift += 7 {
  1897. if shift >= 64 {
  1898. return ErrIntOverflowGenerated
  1899. }
  1900. if iNdEx >= l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. b := dAtA[iNdEx]
  1904. iNdEx++
  1905. msglen |= (int(b) & 0x7F) << shift
  1906. if b < 0x80 {
  1907. break
  1908. }
  1909. }
  1910. if msglen < 0 {
  1911. return ErrInvalidLengthGenerated
  1912. }
  1913. postIndex := iNdEx + msglen
  1914. if postIndex > l {
  1915. return io.ErrUnexpectedEOF
  1916. }
  1917. m.Subjects = append(m.Subjects, Subject{})
  1918. if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1919. return err
  1920. }
  1921. iNdEx = postIndex
  1922. case 3:
  1923. if wireType != 2 {
  1924. return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType)
  1925. }
  1926. var msglen int
  1927. for shift := uint(0); ; shift += 7 {
  1928. if shift >= 64 {
  1929. return ErrIntOverflowGenerated
  1930. }
  1931. if iNdEx >= l {
  1932. return io.ErrUnexpectedEOF
  1933. }
  1934. b := dAtA[iNdEx]
  1935. iNdEx++
  1936. msglen |= (int(b) & 0x7F) << shift
  1937. if b < 0x80 {
  1938. break
  1939. }
  1940. }
  1941. if msglen < 0 {
  1942. return ErrInvalidLengthGenerated
  1943. }
  1944. postIndex := iNdEx + msglen
  1945. if postIndex > l {
  1946. return io.ErrUnexpectedEOF
  1947. }
  1948. if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1949. return err
  1950. }
  1951. iNdEx = postIndex
  1952. default:
  1953. iNdEx = preIndex
  1954. skippy, err := skipGenerated(dAtA[iNdEx:])
  1955. if err != nil {
  1956. return err
  1957. }
  1958. if skippy < 0 {
  1959. return ErrInvalidLengthGenerated
  1960. }
  1961. if (iNdEx + skippy) > l {
  1962. return io.ErrUnexpectedEOF
  1963. }
  1964. iNdEx += skippy
  1965. }
  1966. }
  1967. if iNdEx > l {
  1968. return io.ErrUnexpectedEOF
  1969. }
  1970. return nil
  1971. }
  1972. func (m *RoleBindingList) Unmarshal(dAtA []byte) error {
  1973. l := len(dAtA)
  1974. iNdEx := 0
  1975. for iNdEx < l {
  1976. preIndex := iNdEx
  1977. var wire uint64
  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. wire |= (uint64(b) & 0x7F) << shift
  1988. if b < 0x80 {
  1989. break
  1990. }
  1991. }
  1992. fieldNum := int32(wire >> 3)
  1993. wireType := int(wire & 0x7)
  1994. if wireType == 4 {
  1995. return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group")
  1996. }
  1997. if fieldNum <= 0 {
  1998. return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire)
  1999. }
  2000. switch fieldNum {
  2001. case 1:
  2002. if wireType != 2 {
  2003. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2004. }
  2005. var msglen int
  2006. for shift := uint(0); ; shift += 7 {
  2007. if shift >= 64 {
  2008. return ErrIntOverflowGenerated
  2009. }
  2010. if iNdEx >= l {
  2011. return io.ErrUnexpectedEOF
  2012. }
  2013. b := dAtA[iNdEx]
  2014. iNdEx++
  2015. msglen |= (int(b) & 0x7F) << shift
  2016. if b < 0x80 {
  2017. break
  2018. }
  2019. }
  2020. if msglen < 0 {
  2021. return ErrInvalidLengthGenerated
  2022. }
  2023. postIndex := iNdEx + msglen
  2024. if postIndex > l {
  2025. return io.ErrUnexpectedEOF
  2026. }
  2027. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2028. return err
  2029. }
  2030. iNdEx = postIndex
  2031. case 2:
  2032. if wireType != 2 {
  2033. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2034. }
  2035. var msglen int
  2036. for shift := uint(0); ; shift += 7 {
  2037. if shift >= 64 {
  2038. return ErrIntOverflowGenerated
  2039. }
  2040. if iNdEx >= l {
  2041. return io.ErrUnexpectedEOF
  2042. }
  2043. b := dAtA[iNdEx]
  2044. iNdEx++
  2045. msglen |= (int(b) & 0x7F) << shift
  2046. if b < 0x80 {
  2047. break
  2048. }
  2049. }
  2050. if msglen < 0 {
  2051. return ErrInvalidLengthGenerated
  2052. }
  2053. postIndex := iNdEx + msglen
  2054. if postIndex > l {
  2055. return io.ErrUnexpectedEOF
  2056. }
  2057. m.Items = append(m.Items, RoleBinding{})
  2058. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2059. return err
  2060. }
  2061. iNdEx = postIndex
  2062. default:
  2063. iNdEx = preIndex
  2064. skippy, err := skipGenerated(dAtA[iNdEx:])
  2065. if err != nil {
  2066. return err
  2067. }
  2068. if skippy < 0 {
  2069. return ErrInvalidLengthGenerated
  2070. }
  2071. if (iNdEx + skippy) > l {
  2072. return io.ErrUnexpectedEOF
  2073. }
  2074. iNdEx += skippy
  2075. }
  2076. }
  2077. if iNdEx > l {
  2078. return io.ErrUnexpectedEOF
  2079. }
  2080. return nil
  2081. }
  2082. func (m *RoleList) Unmarshal(dAtA []byte) error {
  2083. l := len(dAtA)
  2084. iNdEx := 0
  2085. for iNdEx < l {
  2086. preIndex := iNdEx
  2087. var wire uint64
  2088. for shift := uint(0); ; shift += 7 {
  2089. if shift >= 64 {
  2090. return ErrIntOverflowGenerated
  2091. }
  2092. if iNdEx >= l {
  2093. return io.ErrUnexpectedEOF
  2094. }
  2095. b := dAtA[iNdEx]
  2096. iNdEx++
  2097. wire |= (uint64(b) & 0x7F) << shift
  2098. if b < 0x80 {
  2099. break
  2100. }
  2101. }
  2102. fieldNum := int32(wire >> 3)
  2103. wireType := int(wire & 0x7)
  2104. if wireType == 4 {
  2105. return fmt.Errorf("proto: RoleList: wiretype end group for non-group")
  2106. }
  2107. if fieldNum <= 0 {
  2108. return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire)
  2109. }
  2110. switch fieldNum {
  2111. case 1:
  2112. if wireType != 2 {
  2113. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  2114. }
  2115. var msglen int
  2116. for shift := uint(0); ; shift += 7 {
  2117. if shift >= 64 {
  2118. return ErrIntOverflowGenerated
  2119. }
  2120. if iNdEx >= l {
  2121. return io.ErrUnexpectedEOF
  2122. }
  2123. b := dAtA[iNdEx]
  2124. iNdEx++
  2125. msglen |= (int(b) & 0x7F) << shift
  2126. if b < 0x80 {
  2127. break
  2128. }
  2129. }
  2130. if msglen < 0 {
  2131. return ErrInvalidLengthGenerated
  2132. }
  2133. postIndex := iNdEx + msglen
  2134. if postIndex > l {
  2135. return io.ErrUnexpectedEOF
  2136. }
  2137. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2138. return err
  2139. }
  2140. iNdEx = postIndex
  2141. case 2:
  2142. if wireType != 2 {
  2143. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2144. }
  2145. var msglen int
  2146. for shift := uint(0); ; shift += 7 {
  2147. if shift >= 64 {
  2148. return ErrIntOverflowGenerated
  2149. }
  2150. if iNdEx >= l {
  2151. return io.ErrUnexpectedEOF
  2152. }
  2153. b := dAtA[iNdEx]
  2154. iNdEx++
  2155. msglen |= (int(b) & 0x7F) << shift
  2156. if b < 0x80 {
  2157. break
  2158. }
  2159. }
  2160. if msglen < 0 {
  2161. return ErrInvalidLengthGenerated
  2162. }
  2163. postIndex := iNdEx + msglen
  2164. if postIndex > l {
  2165. return io.ErrUnexpectedEOF
  2166. }
  2167. m.Items = append(m.Items, Role{})
  2168. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2169. return err
  2170. }
  2171. iNdEx = postIndex
  2172. default:
  2173. iNdEx = preIndex
  2174. skippy, err := skipGenerated(dAtA[iNdEx:])
  2175. if err != nil {
  2176. return err
  2177. }
  2178. if skippy < 0 {
  2179. return ErrInvalidLengthGenerated
  2180. }
  2181. if (iNdEx + skippy) > l {
  2182. return io.ErrUnexpectedEOF
  2183. }
  2184. iNdEx += skippy
  2185. }
  2186. }
  2187. if iNdEx > l {
  2188. return io.ErrUnexpectedEOF
  2189. }
  2190. return nil
  2191. }
  2192. func (m *RoleRef) Unmarshal(dAtA []byte) error {
  2193. l := len(dAtA)
  2194. iNdEx := 0
  2195. for iNdEx < l {
  2196. preIndex := iNdEx
  2197. var wire uint64
  2198. for shift := uint(0); ; shift += 7 {
  2199. if shift >= 64 {
  2200. return ErrIntOverflowGenerated
  2201. }
  2202. if iNdEx >= l {
  2203. return io.ErrUnexpectedEOF
  2204. }
  2205. b := dAtA[iNdEx]
  2206. iNdEx++
  2207. wire |= (uint64(b) & 0x7F) << shift
  2208. if b < 0x80 {
  2209. break
  2210. }
  2211. }
  2212. fieldNum := int32(wire >> 3)
  2213. wireType := int(wire & 0x7)
  2214. if wireType == 4 {
  2215. return fmt.Errorf("proto: RoleRef: wiretype end group for non-group")
  2216. }
  2217. if fieldNum <= 0 {
  2218. return fmt.Errorf("proto: RoleRef: illegal tag %d (wire type %d)", fieldNum, wire)
  2219. }
  2220. switch fieldNum {
  2221. case 1:
  2222. if wireType != 2 {
  2223. return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
  2224. }
  2225. var stringLen uint64
  2226. for shift := uint(0); ; shift += 7 {
  2227. if shift >= 64 {
  2228. return ErrIntOverflowGenerated
  2229. }
  2230. if iNdEx >= l {
  2231. return io.ErrUnexpectedEOF
  2232. }
  2233. b := dAtA[iNdEx]
  2234. iNdEx++
  2235. stringLen |= (uint64(b) & 0x7F) << shift
  2236. if b < 0x80 {
  2237. break
  2238. }
  2239. }
  2240. intStringLen := int(stringLen)
  2241. if intStringLen < 0 {
  2242. return ErrInvalidLengthGenerated
  2243. }
  2244. postIndex := iNdEx + intStringLen
  2245. if postIndex > l {
  2246. return io.ErrUnexpectedEOF
  2247. }
  2248. m.APIGroup = string(dAtA[iNdEx:postIndex])
  2249. iNdEx = postIndex
  2250. case 2:
  2251. if wireType != 2 {
  2252. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  2253. }
  2254. var stringLen uint64
  2255. for shift := uint(0); ; shift += 7 {
  2256. if shift >= 64 {
  2257. return ErrIntOverflowGenerated
  2258. }
  2259. if iNdEx >= l {
  2260. return io.ErrUnexpectedEOF
  2261. }
  2262. b := dAtA[iNdEx]
  2263. iNdEx++
  2264. stringLen |= (uint64(b) & 0x7F) << shift
  2265. if b < 0x80 {
  2266. break
  2267. }
  2268. }
  2269. intStringLen := int(stringLen)
  2270. if intStringLen < 0 {
  2271. return ErrInvalidLengthGenerated
  2272. }
  2273. postIndex := iNdEx + intStringLen
  2274. if postIndex > l {
  2275. return io.ErrUnexpectedEOF
  2276. }
  2277. m.Kind = string(dAtA[iNdEx:postIndex])
  2278. iNdEx = postIndex
  2279. case 3:
  2280. if wireType != 2 {
  2281. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2282. }
  2283. var stringLen uint64
  2284. for shift := uint(0); ; shift += 7 {
  2285. if shift >= 64 {
  2286. return ErrIntOverflowGenerated
  2287. }
  2288. if iNdEx >= l {
  2289. return io.ErrUnexpectedEOF
  2290. }
  2291. b := dAtA[iNdEx]
  2292. iNdEx++
  2293. stringLen |= (uint64(b) & 0x7F) << shift
  2294. if b < 0x80 {
  2295. break
  2296. }
  2297. }
  2298. intStringLen := int(stringLen)
  2299. if intStringLen < 0 {
  2300. return ErrInvalidLengthGenerated
  2301. }
  2302. postIndex := iNdEx + intStringLen
  2303. if postIndex > l {
  2304. return io.ErrUnexpectedEOF
  2305. }
  2306. m.Name = string(dAtA[iNdEx:postIndex])
  2307. iNdEx = postIndex
  2308. default:
  2309. iNdEx = preIndex
  2310. skippy, err := skipGenerated(dAtA[iNdEx:])
  2311. if err != nil {
  2312. return err
  2313. }
  2314. if skippy < 0 {
  2315. return ErrInvalidLengthGenerated
  2316. }
  2317. if (iNdEx + skippy) > l {
  2318. return io.ErrUnexpectedEOF
  2319. }
  2320. iNdEx += skippy
  2321. }
  2322. }
  2323. if iNdEx > l {
  2324. return io.ErrUnexpectedEOF
  2325. }
  2326. return nil
  2327. }
  2328. func (m *Subject) Unmarshal(dAtA []byte) error {
  2329. l := len(dAtA)
  2330. iNdEx := 0
  2331. for iNdEx < l {
  2332. preIndex := iNdEx
  2333. var wire uint64
  2334. for shift := uint(0); ; shift += 7 {
  2335. if shift >= 64 {
  2336. return ErrIntOverflowGenerated
  2337. }
  2338. if iNdEx >= l {
  2339. return io.ErrUnexpectedEOF
  2340. }
  2341. b := dAtA[iNdEx]
  2342. iNdEx++
  2343. wire |= (uint64(b) & 0x7F) << shift
  2344. if b < 0x80 {
  2345. break
  2346. }
  2347. }
  2348. fieldNum := int32(wire >> 3)
  2349. wireType := int(wire & 0x7)
  2350. if wireType == 4 {
  2351. return fmt.Errorf("proto: Subject: wiretype end group for non-group")
  2352. }
  2353. if fieldNum <= 0 {
  2354. return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire)
  2355. }
  2356. switch fieldNum {
  2357. case 1:
  2358. if wireType != 2 {
  2359. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  2360. }
  2361. var stringLen uint64
  2362. for shift := uint(0); ; shift += 7 {
  2363. if shift >= 64 {
  2364. return ErrIntOverflowGenerated
  2365. }
  2366. if iNdEx >= l {
  2367. return io.ErrUnexpectedEOF
  2368. }
  2369. b := dAtA[iNdEx]
  2370. iNdEx++
  2371. stringLen |= (uint64(b) & 0x7F) << shift
  2372. if b < 0x80 {
  2373. break
  2374. }
  2375. }
  2376. intStringLen := int(stringLen)
  2377. if intStringLen < 0 {
  2378. return ErrInvalidLengthGenerated
  2379. }
  2380. postIndex := iNdEx + intStringLen
  2381. if postIndex > l {
  2382. return io.ErrUnexpectedEOF
  2383. }
  2384. m.Kind = string(dAtA[iNdEx:postIndex])
  2385. iNdEx = postIndex
  2386. case 2:
  2387. if wireType != 2 {
  2388. return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
  2389. }
  2390. var stringLen uint64
  2391. for shift := uint(0); ; shift += 7 {
  2392. if shift >= 64 {
  2393. return ErrIntOverflowGenerated
  2394. }
  2395. if iNdEx >= l {
  2396. return io.ErrUnexpectedEOF
  2397. }
  2398. b := dAtA[iNdEx]
  2399. iNdEx++
  2400. stringLen |= (uint64(b) & 0x7F) << shift
  2401. if b < 0x80 {
  2402. break
  2403. }
  2404. }
  2405. intStringLen := int(stringLen)
  2406. if intStringLen < 0 {
  2407. return ErrInvalidLengthGenerated
  2408. }
  2409. postIndex := iNdEx + intStringLen
  2410. if postIndex > l {
  2411. return io.ErrUnexpectedEOF
  2412. }
  2413. m.APIGroup = string(dAtA[iNdEx:postIndex])
  2414. iNdEx = postIndex
  2415. case 3:
  2416. if wireType != 2 {
  2417. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2418. }
  2419. var stringLen uint64
  2420. for shift := uint(0); ; shift += 7 {
  2421. if shift >= 64 {
  2422. return ErrIntOverflowGenerated
  2423. }
  2424. if iNdEx >= l {
  2425. return io.ErrUnexpectedEOF
  2426. }
  2427. b := dAtA[iNdEx]
  2428. iNdEx++
  2429. stringLen |= (uint64(b) & 0x7F) << shift
  2430. if b < 0x80 {
  2431. break
  2432. }
  2433. }
  2434. intStringLen := int(stringLen)
  2435. if intStringLen < 0 {
  2436. return ErrInvalidLengthGenerated
  2437. }
  2438. postIndex := iNdEx + intStringLen
  2439. if postIndex > l {
  2440. return io.ErrUnexpectedEOF
  2441. }
  2442. m.Name = string(dAtA[iNdEx:postIndex])
  2443. iNdEx = postIndex
  2444. case 4:
  2445. if wireType != 2 {
  2446. return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  2447. }
  2448. var stringLen uint64
  2449. for shift := uint(0); ; shift += 7 {
  2450. if shift >= 64 {
  2451. return ErrIntOverflowGenerated
  2452. }
  2453. if iNdEx >= l {
  2454. return io.ErrUnexpectedEOF
  2455. }
  2456. b := dAtA[iNdEx]
  2457. iNdEx++
  2458. stringLen |= (uint64(b) & 0x7F) << shift
  2459. if b < 0x80 {
  2460. break
  2461. }
  2462. }
  2463. intStringLen := int(stringLen)
  2464. if intStringLen < 0 {
  2465. return ErrInvalidLengthGenerated
  2466. }
  2467. postIndex := iNdEx + intStringLen
  2468. if postIndex > l {
  2469. return io.ErrUnexpectedEOF
  2470. }
  2471. m.Namespace = string(dAtA[iNdEx:postIndex])
  2472. iNdEx = postIndex
  2473. default:
  2474. iNdEx = preIndex
  2475. skippy, err := skipGenerated(dAtA[iNdEx:])
  2476. if err != nil {
  2477. return err
  2478. }
  2479. if skippy < 0 {
  2480. return ErrInvalidLengthGenerated
  2481. }
  2482. if (iNdEx + skippy) > l {
  2483. return io.ErrUnexpectedEOF
  2484. }
  2485. iNdEx += skippy
  2486. }
  2487. }
  2488. if iNdEx > l {
  2489. return io.ErrUnexpectedEOF
  2490. }
  2491. return nil
  2492. }
  2493. func skipGenerated(dAtA []byte) (n int, err error) {
  2494. l := len(dAtA)
  2495. iNdEx := 0
  2496. for iNdEx < l {
  2497. var wire uint64
  2498. for shift := uint(0); ; shift += 7 {
  2499. if shift >= 64 {
  2500. return 0, ErrIntOverflowGenerated
  2501. }
  2502. if iNdEx >= l {
  2503. return 0, io.ErrUnexpectedEOF
  2504. }
  2505. b := dAtA[iNdEx]
  2506. iNdEx++
  2507. wire |= (uint64(b) & 0x7F) << shift
  2508. if b < 0x80 {
  2509. break
  2510. }
  2511. }
  2512. wireType := int(wire & 0x7)
  2513. switch wireType {
  2514. case 0:
  2515. for shift := uint(0); ; shift += 7 {
  2516. if shift >= 64 {
  2517. return 0, ErrIntOverflowGenerated
  2518. }
  2519. if iNdEx >= l {
  2520. return 0, io.ErrUnexpectedEOF
  2521. }
  2522. iNdEx++
  2523. if dAtA[iNdEx-1] < 0x80 {
  2524. break
  2525. }
  2526. }
  2527. return iNdEx, nil
  2528. case 1:
  2529. iNdEx += 8
  2530. return iNdEx, nil
  2531. case 2:
  2532. var length int
  2533. for shift := uint(0); ; shift += 7 {
  2534. if shift >= 64 {
  2535. return 0, ErrIntOverflowGenerated
  2536. }
  2537. if iNdEx >= l {
  2538. return 0, io.ErrUnexpectedEOF
  2539. }
  2540. b := dAtA[iNdEx]
  2541. iNdEx++
  2542. length |= (int(b) & 0x7F) << shift
  2543. if b < 0x80 {
  2544. break
  2545. }
  2546. }
  2547. iNdEx += length
  2548. if length < 0 {
  2549. return 0, ErrInvalidLengthGenerated
  2550. }
  2551. return iNdEx, nil
  2552. case 3:
  2553. for {
  2554. var innerWire uint64
  2555. var start int = iNdEx
  2556. for shift := uint(0); ; shift += 7 {
  2557. if shift >= 64 {
  2558. return 0, ErrIntOverflowGenerated
  2559. }
  2560. if iNdEx >= l {
  2561. return 0, io.ErrUnexpectedEOF
  2562. }
  2563. b := dAtA[iNdEx]
  2564. iNdEx++
  2565. innerWire |= (uint64(b) & 0x7F) << shift
  2566. if b < 0x80 {
  2567. break
  2568. }
  2569. }
  2570. innerWireType := int(innerWire & 0x7)
  2571. if innerWireType == 4 {
  2572. break
  2573. }
  2574. next, err := skipGenerated(dAtA[start:])
  2575. if err != nil {
  2576. return 0, err
  2577. }
  2578. iNdEx = start + next
  2579. }
  2580. return iNdEx, nil
  2581. case 4:
  2582. return iNdEx, nil
  2583. case 5:
  2584. iNdEx += 4
  2585. return iNdEx, nil
  2586. default:
  2587. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2588. }
  2589. }
  2590. panic("unreachable")
  2591. }
  2592. var (
  2593. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  2594. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  2595. )
  2596. func init() {
  2597. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/rbac/v1/generated.proto", fileDescriptorGenerated)
  2598. }
  2599. var fileDescriptorGenerated = []byte{
  2600. // 807 bytes of a gzipped FileDescriptorProto
  2601. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0xcf, 0x6f, 0xe3, 0x44,
  2602. 0x14, 0xce, 0xa4, 0x89, 0x1a, 0x4f, 0x88, 0x42, 0x87, 0x0a, 0x59, 0x05, 0x39, 0x95, 0x91, 0x50,
  2603. 0x25, 0xc0, 0x26, 0x05, 0x01, 0x12, 0xea, 0xa1, 0x2e, 0x02, 0x55, 0x2d, 0xa5, 0x9a, 0x0a, 0x0e,
  2604. 0x88, 0x03, 0x63, 0x67, 0xea, 0x0e, 0xf1, 0x2f, 0xcd, 0xd8, 0x91, 0x2a, 0x2e, 0x08, 0x89, 0x03,
  2605. 0xb7, 0x3d, 0xee, 0xfe, 0x05, 0x7b, 0xd9, 0x3d, 0xee, 0x5f, 0xb0, 0x97, 0x1e, 0x7b, 0xec, 0x29,
  2606. 0xda, 0x7a, 0xff, 0x90, 0x5d, 0xf9, 0x57, 0x9c, 0x1f, 0xee, 0x36, 0xa7, 0x48, 0xab, 0x3d, 0xb5,
  2607. 0xf3, 0xde, 0xf7, 0xbe, 0xf7, 0xcd, 0xe7, 0x79, 0x2f, 0xf0, 0xfb, 0xe1, 0x77, 0x42, 0x63, 0xbe,
  2608. 0x3e, 0x8c, 0x4c, 0xca, 0x3d, 0x1a, 0x52, 0xa1, 0x8f, 0xa8, 0x37, 0xf0, 0xb9, 0x9e, 0x27, 0x48,
  2609. 0xc0, 0x74, 0x6e, 0x12, 0x4b, 0x1f, 0xf5, 0x75, 0x9b, 0x7a, 0x94, 0x93, 0x90, 0x0e, 0xb4, 0x80,
  2610. 0xfb, 0xa1, 0x8f, 0x50, 0x86, 0xd1, 0x48, 0xc0, 0xb4, 0x04, 0xa3, 0x8d, 0xfa, 0x5b, 0x5f, 0xd8,
  2611. 0x2c, 0xbc, 0x88, 0x4c, 0xcd, 0xf2, 0x5d, 0xdd, 0xf6, 0x6d, 0x5f, 0x4f, 0xa1, 0x66, 0x74, 0x9e,
  2612. 0x9e, 0xd2, 0x43, 0xfa, 0x5f, 0x46, 0xb1, 0xf5, 0x75, 0xd9, 0xc6, 0x25, 0xd6, 0x05, 0xf3, 0x28,
  2613. 0xbf, 0xd4, 0x83, 0xa1, 0x9d, 0x04, 0x84, 0xee, 0xd2, 0x90, 0x54, 0x34, 0xde, 0xd2, 0xef, 0xaa,
  2614. 0xe2, 0x91, 0x17, 0x32, 0x97, 0x2e, 0x14, 0x7c, 0x73, 0x5f, 0x81, 0xb0, 0x2e, 0xa8, 0x4b, 0xe6,
  2615. 0xeb, 0xd4, 0x47, 0x00, 0x76, 0xf7, 0x6d, 0x9b, 0x53, 0x9b, 0x84, 0xcc, 0xf7, 0x70, 0xe4, 0x50,
  2616. 0xf4, 0x1f, 0x80, 0x9b, 0x96, 0x13, 0x89, 0x90, 0x72, 0xec, 0x3b, 0xf4, 0x8c, 0x3a, 0xd4, 0x0a,
  2617. 0x7d, 0x2e, 0x64, 0xb0, 0xbd, 0xb6, 0xd3, 0xde, 0xfd, 0x4a, 0x2b, 0x5d, 0x99, 0xf4, 0xd2, 0x82,
  2618. 0xa1, 0x9d, 0x04, 0x84, 0x96, 0x5c, 0x49, 0x1b, 0xf5, 0xb5, 0x63, 0x62, 0x52, 0xa7, 0xa8, 0x35,
  2619. 0x3e, 0xbe, 0x1a, 0xf7, 0x6a, 0xf1, 0xb8, 0xb7, 0x79, 0x50, 0x41, 0x8c, 0x2b, 0xdb, 0xa9, 0x0f,
  2620. 0xeb, 0xb0, 0x3d, 0x05, 0x47, 0x7f, 0xc2, 0x56, 0x42, 0x3e, 0x20, 0x21, 0x91, 0xc1, 0x36, 0xd8,
  2621. 0x69, 0xef, 0x7e, 0xb9, 0x9c, 0x94, 0x5f, 0xcc, 0xbf, 0xa8, 0x15, 0xfe, 0x4c, 0x43, 0x62, 0xa0,
  2622. 0x5c, 0x07, 0x2c, 0x63, 0x78, 0xc2, 0x8a, 0x0e, 0x60, 0x93, 0x47, 0x0e, 0x15, 0x72, 0x3d, 0xbd,
  2623. 0xa9, 0xa2, 0x2d, 0x7e, 0x7f, 0xed, 0xd4, 0x77, 0x98, 0x75, 0x99, 0x18, 0x65, 0x74, 0x72, 0xb2,
  2624. 0x66, 0x72, 0x12, 0x38, 0xab, 0x45, 0x26, 0xec, 0x92, 0x59, 0x47, 0xe5, 0xb5, 0x54, 0xed, 0x27,
  2625. 0x55, 0x74, 0x73, 0xe6, 0x1b, 0x1f, 0xc4, 0xe3, 0xde, 0xfc, 0x17, 0xc1, 0xf3, 0x84, 0xea, 0xff,
  2626. 0x75, 0x88, 0xa6, 0xac, 0x31, 0x98, 0x37, 0x60, 0x9e, 0xbd, 0x02, 0x87, 0x0e, 0x61, 0x4b, 0x44,
  2627. 0x69, 0xa2, 0x30, 0xe9, 0xa3, 0xaa, 0x5b, 0x9d, 0x65, 0x18, 0xe3, 0xfd, 0x9c, 0xac, 0x95, 0x07,
  2628. 0x04, 0x9e, 0x94, 0xa3, 0x1f, 0xe1, 0x3a, 0xf7, 0x1d, 0x8a, 0xe9, 0x79, 0xee, 0x4f, 0x25, 0x13,
  2629. 0xce, 0x20, 0x46, 0x37, 0x67, 0x5a, 0xcf, 0x03, 0xb8, 0x28, 0x56, 0x9f, 0x03, 0xf8, 0xe1, 0xa2,
  2630. 0x17, 0xc7, 0x4c, 0x84, 0xe8, 0x8f, 0x05, 0x3f, 0xb4, 0x25, 0x1f, 0x2f, 0x13, 0x99, 0x1b, 0x93,
  2631. 0x0b, 0x14, 0x91, 0x29, 0x2f, 0x8e, 0x60, 0x93, 0x85, 0xd4, 0x2d, 0x8c, 0xf8, 0xb4, 0x4a, 0xfe,
  2632. 0xa2, 0xb0, 0xf2, 0xd5, 0x1c, 0x26, 0xc5, 0x38, 0xe3, 0x50, 0x9f, 0x01, 0xd8, 0x9d, 0x02, 0xaf,
  2633. 0x40, 0xfe, 0x0f, 0xb3, 0xf2, 0x7b, 0xf7, 0xc9, 0xaf, 0xd6, 0xfd, 0x0a, 0x40, 0x58, 0x8e, 0x04,
  2634. 0xea, 0xc1, 0xe6, 0x88, 0x72, 0x33, 0xdb, 0x15, 0x92, 0x21, 0x25, 0xf8, 0xdf, 0x92, 0x00, 0xce,
  2635. 0xe2, 0xe8, 0x33, 0x28, 0x91, 0x80, 0xfd, 0xc4, 0xfd, 0x28, 0xc8, 0x3a, 0x4b, 0x46, 0x27, 0x1e,
  2636. 0xf7, 0xa4, 0xfd, 0xd3, 0xc3, 0x2c, 0x88, 0xcb, 0x7c, 0x02, 0xe6, 0x54, 0xf8, 0x11, 0xb7, 0xa8,
  2637. 0x90, 0xd7, 0x4a, 0x30, 0x2e, 0x82, 0xb8, 0xcc, 0xa3, 0x6f, 0x61, 0xa7, 0x38, 0x9c, 0x10, 0x97,
  2638. 0x0a, 0xb9, 0x91, 0x16, 0x6c, 0xc4, 0xe3, 0x5e, 0x07, 0x4f, 0x27, 0xf0, 0x2c, 0x0e, 0xed, 0xc1,
  2639. 0xae, 0xe7, 0x7b, 0x05, 0xe4, 0x57, 0x7c, 0x2c, 0xe4, 0x66, 0x5a, 0x9a, 0xce, 0xe2, 0xc9, 0x6c,
  2640. 0x0a, 0xcf, 0x63, 0xd5, 0xa7, 0x00, 0x36, 0xde, 0xa2, 0xfd, 0xa4, 0xfe, 0x5b, 0x87, 0xed, 0x77,
  2641. 0x7e, 0x69, 0x24, 0xe3, 0xb6, 0xda, 0x6d, 0xb1, 0xcc, 0xb8, 0xdd, 0xbf, 0x26, 0x1e, 0x03, 0xd8,
  2642. 0x5a, 0xd1, 0x7e, 0xd8, 0x9b, 0x15, 0x2c, 0xdf, 0x29, 0xb8, 0x5a, 0xe9, 0xdf, 0xb0, 0x70, 0x1d,
  2643. 0x7d, 0x0e, 0x5b, 0xc5, 0x4c, 0xa7, 0x3a, 0xa5, 0xb2, 0x6f, 0x31, 0xf6, 0x78, 0x82, 0x40, 0xdb,
  2644. 0xb0, 0x31, 0x64, 0xde, 0x40, 0xae, 0xa7, 0xc8, 0xf7, 0x72, 0x64, 0xe3, 0x88, 0x79, 0x03, 0x9c,
  2645. 0x66, 0x12, 0x84, 0x47, 0xdc, 0xec, 0x67, 0x75, 0x0a, 0x91, 0x4c, 0x33, 0x4e, 0x33, 0xea, 0x13,
  2646. 0x00, 0xd7, 0xf3, 0xd7, 0x33, 0xe1, 0x03, 0x77, 0xf2, 0x4d, 0xeb, 0xab, 0x2f, 0xa3, 0xef, 0xcd,
  2647. 0xdd, 0x91, 0x0e, 0xa5, 0xe4, 0xaf, 0x08, 0x88, 0x45, 0xe5, 0x46, 0x0a, 0xdb, 0xc8, 0x61, 0xd2,
  2648. 0x49, 0x91, 0xc0, 0x25, 0xc6, 0xd8, 0xb9, 0xba, 0x55, 0x6a, 0xd7, 0xb7, 0x4a, 0xed, 0xe6, 0x56,
  2649. 0xa9, 0xfd, 0x13, 0x2b, 0xe0, 0x2a, 0x56, 0xc0, 0x75, 0xac, 0x80, 0x9b, 0x58, 0x01, 0x2f, 0x62,
  2650. 0x05, 0x3c, 0x78, 0xa9, 0xd4, 0x7e, 0xaf, 0x8f, 0xfa, 0xaf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x24,
  2651. 0xa1, 0x47, 0x98, 0xcf, 0x0a, 0x00, 0x00,
  2652. }