generated.pb.go 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233
  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/authentication/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/authentication/v1/generated.proto
  19. It has these top-level messages:
  20. BoundObjectReference
  21. ExtraValue
  22. TokenRequest
  23. TokenRequestSpec
  24. TokenRequestStatus
  25. TokenReview
  26. TokenReviewSpec
  27. TokenReviewStatus
  28. UserInfo
  29. */
  30. package v1
  31. import proto "github.com/gogo/protobuf/proto"
  32. import fmt "fmt"
  33. import math "math"
  34. import k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types"
  35. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  36. import strings "strings"
  37. import reflect "reflect"
  38. import io "io"
  39. // Reference imports to suppress errors if they are not otherwise used.
  40. var _ = proto.Marshal
  41. var _ = fmt.Errorf
  42. var _ = math.Inf
  43. // This is a compile-time assertion to ensure that this generated file
  44. // is compatible with the proto package it is being compiled against.
  45. // A compilation error at this line likely means your copy of the
  46. // proto package needs to be updated.
  47. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  48. func (m *BoundObjectReference) Reset() { *m = BoundObjectReference{} }
  49. func (*BoundObjectReference) ProtoMessage() {}
  50. func (*BoundObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
  51. func (m *ExtraValue) Reset() { *m = ExtraValue{} }
  52. func (*ExtraValue) ProtoMessage() {}
  53. func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
  54. func (m *TokenRequest) Reset() { *m = TokenRequest{} }
  55. func (*TokenRequest) ProtoMessage() {}
  56. func (*TokenRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
  57. func (m *TokenRequestSpec) Reset() { *m = TokenRequestSpec{} }
  58. func (*TokenRequestSpec) ProtoMessage() {}
  59. func (*TokenRequestSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
  60. func (m *TokenRequestStatus) Reset() { *m = TokenRequestStatus{} }
  61. func (*TokenRequestStatus) ProtoMessage() {}
  62. func (*TokenRequestStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
  63. func (m *TokenReview) Reset() { *m = TokenReview{} }
  64. func (*TokenReview) ProtoMessage() {}
  65. func (*TokenReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  66. func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} }
  67. func (*TokenReviewSpec) ProtoMessage() {}
  68. func (*TokenReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
  69. func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} }
  70. func (*TokenReviewStatus) ProtoMessage() {}
  71. func (*TokenReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
  72. func (m *UserInfo) Reset() { *m = UserInfo{} }
  73. func (*UserInfo) ProtoMessage() {}
  74. func (*UserInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
  75. func init() {
  76. proto.RegisterType((*BoundObjectReference)(nil), "k8s.io.api.authentication.v1.BoundObjectReference")
  77. proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1.ExtraValue")
  78. proto.RegisterType((*TokenRequest)(nil), "k8s.io.api.authentication.v1.TokenRequest")
  79. proto.RegisterType((*TokenRequestSpec)(nil), "k8s.io.api.authentication.v1.TokenRequestSpec")
  80. proto.RegisterType((*TokenRequestStatus)(nil), "k8s.io.api.authentication.v1.TokenRequestStatus")
  81. proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1.TokenReview")
  82. proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1.TokenReviewSpec")
  83. proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1.TokenReviewStatus")
  84. proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1.UserInfo")
  85. }
  86. func (m *BoundObjectReference) Marshal() (dAtA []byte, err error) {
  87. size := m.Size()
  88. dAtA = make([]byte, size)
  89. n, err := m.MarshalTo(dAtA)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return dAtA[:n], nil
  94. }
  95. func (m *BoundObjectReference) MarshalTo(dAtA []byte) (int, error) {
  96. var i int
  97. _ = i
  98. var l int
  99. _ = l
  100. dAtA[i] = 0xa
  101. i++
  102. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
  103. i += copy(dAtA[i:], m.Kind)
  104. dAtA[i] = 0x12
  105. i++
  106. i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
  107. i += copy(dAtA[i:], m.APIVersion)
  108. dAtA[i] = 0x1a
  109. i++
  110. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
  111. i += copy(dAtA[i:], m.Name)
  112. dAtA[i] = 0x22
  113. i++
  114. i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
  115. i += copy(dAtA[i:], m.UID)
  116. return i, nil
  117. }
  118. func (m ExtraValue) Marshal() (dAtA []byte, err error) {
  119. size := m.Size()
  120. dAtA = make([]byte, size)
  121. n, err := m.MarshalTo(dAtA)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return dAtA[:n], nil
  126. }
  127. func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) {
  128. var i int
  129. _ = i
  130. var l int
  131. _ = l
  132. if len(m) > 0 {
  133. for _, s := range m {
  134. dAtA[i] = 0xa
  135. i++
  136. l = len(s)
  137. for l >= 1<<7 {
  138. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  139. l >>= 7
  140. i++
  141. }
  142. dAtA[i] = uint8(l)
  143. i++
  144. i += copy(dAtA[i:], s)
  145. }
  146. }
  147. return i, nil
  148. }
  149. func (m *TokenRequest) Marshal() (dAtA []byte, err error) {
  150. size := m.Size()
  151. dAtA = make([]byte, size)
  152. n, err := m.MarshalTo(dAtA)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return dAtA[:n], nil
  157. }
  158. func (m *TokenRequest) MarshalTo(dAtA []byte) (int, error) {
  159. var i int
  160. _ = i
  161. var l int
  162. _ = l
  163. dAtA[i] = 0xa
  164. i++
  165. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  166. n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  167. if err != nil {
  168. return 0, err
  169. }
  170. i += n1
  171. dAtA[i] = 0x12
  172. i++
  173. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  174. n2, err := m.Spec.MarshalTo(dAtA[i:])
  175. if err != nil {
  176. return 0, err
  177. }
  178. i += n2
  179. dAtA[i] = 0x1a
  180. i++
  181. i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
  182. n3, err := m.Status.MarshalTo(dAtA[i:])
  183. if err != nil {
  184. return 0, err
  185. }
  186. i += n3
  187. return i, nil
  188. }
  189. func (m *TokenRequestSpec) Marshal() (dAtA []byte, err error) {
  190. size := m.Size()
  191. dAtA = make([]byte, size)
  192. n, err := m.MarshalTo(dAtA)
  193. if err != nil {
  194. return nil, err
  195. }
  196. return dAtA[:n], nil
  197. }
  198. func (m *TokenRequestSpec) MarshalTo(dAtA []byte) (int, error) {
  199. var i int
  200. _ = i
  201. var l int
  202. _ = l
  203. if len(m.Audiences) > 0 {
  204. for _, s := range m.Audiences {
  205. dAtA[i] = 0xa
  206. i++
  207. l = len(s)
  208. for l >= 1<<7 {
  209. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  210. l >>= 7
  211. i++
  212. }
  213. dAtA[i] = uint8(l)
  214. i++
  215. i += copy(dAtA[i:], s)
  216. }
  217. }
  218. if m.BoundObjectRef != nil {
  219. dAtA[i] = 0x1a
  220. i++
  221. i = encodeVarintGenerated(dAtA, i, uint64(m.BoundObjectRef.Size()))
  222. n4, err := m.BoundObjectRef.MarshalTo(dAtA[i:])
  223. if err != nil {
  224. return 0, err
  225. }
  226. i += n4
  227. }
  228. if m.ExpirationSeconds != nil {
  229. dAtA[i] = 0x20
  230. i++
  231. i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds))
  232. }
  233. return i, nil
  234. }
  235. func (m *TokenRequestStatus) Marshal() (dAtA []byte, err error) {
  236. size := m.Size()
  237. dAtA = make([]byte, size)
  238. n, err := m.MarshalTo(dAtA)
  239. if err != nil {
  240. return nil, err
  241. }
  242. return dAtA[:n], nil
  243. }
  244. func (m *TokenRequestStatus) MarshalTo(dAtA []byte) (int, error) {
  245. var i int
  246. _ = i
  247. var l int
  248. _ = l
  249. dAtA[i] = 0xa
  250. i++
  251. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token)))
  252. i += copy(dAtA[i:], m.Token)
  253. dAtA[i] = 0x12
  254. i++
  255. i = encodeVarintGenerated(dAtA, i, uint64(m.ExpirationTimestamp.Size()))
  256. n5, err := m.ExpirationTimestamp.MarshalTo(dAtA[i:])
  257. if err != nil {
  258. return 0, err
  259. }
  260. i += n5
  261. return i, nil
  262. }
  263. func (m *TokenReview) Marshal() (dAtA []byte, err error) {
  264. size := m.Size()
  265. dAtA = make([]byte, size)
  266. n, err := m.MarshalTo(dAtA)
  267. if err != nil {
  268. return nil, err
  269. }
  270. return dAtA[:n], nil
  271. }
  272. func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) {
  273. var i int
  274. _ = i
  275. var l int
  276. _ = l
  277. dAtA[i] = 0xa
  278. i++
  279. i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
  280. n6, err := m.ObjectMeta.MarshalTo(dAtA[i:])
  281. if err != nil {
  282. return 0, err
  283. }
  284. i += n6
  285. dAtA[i] = 0x12
  286. i++
  287. i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
  288. n7, err := m.Spec.MarshalTo(dAtA[i:])
  289. if err != nil {
  290. return 0, err
  291. }
  292. i += n7
  293. dAtA[i] = 0x1a
  294. i++
  295. i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
  296. n8, err := m.Status.MarshalTo(dAtA[i:])
  297. if err != nil {
  298. return 0, err
  299. }
  300. i += n8
  301. return i, nil
  302. }
  303. func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) {
  304. size := m.Size()
  305. dAtA = make([]byte, size)
  306. n, err := m.MarshalTo(dAtA)
  307. if err != nil {
  308. return nil, err
  309. }
  310. return dAtA[:n], nil
  311. }
  312. func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) {
  313. var i int
  314. _ = i
  315. var l int
  316. _ = l
  317. dAtA[i] = 0xa
  318. i++
  319. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token)))
  320. i += copy(dAtA[i:], m.Token)
  321. if len(m.Audiences) > 0 {
  322. for _, s := range m.Audiences {
  323. dAtA[i] = 0x12
  324. i++
  325. l = len(s)
  326. for l >= 1<<7 {
  327. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  328. l >>= 7
  329. i++
  330. }
  331. dAtA[i] = uint8(l)
  332. i++
  333. i += copy(dAtA[i:], s)
  334. }
  335. }
  336. return i, nil
  337. }
  338. func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) {
  339. size := m.Size()
  340. dAtA = make([]byte, size)
  341. n, err := m.MarshalTo(dAtA)
  342. if err != nil {
  343. return nil, err
  344. }
  345. return dAtA[:n], nil
  346. }
  347. func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) {
  348. var i int
  349. _ = i
  350. var l int
  351. _ = l
  352. dAtA[i] = 0x8
  353. i++
  354. if m.Authenticated {
  355. dAtA[i] = 1
  356. } else {
  357. dAtA[i] = 0
  358. }
  359. i++
  360. dAtA[i] = 0x12
  361. i++
  362. i = encodeVarintGenerated(dAtA, i, uint64(m.User.Size()))
  363. n9, err := m.User.MarshalTo(dAtA[i:])
  364. if err != nil {
  365. return 0, err
  366. }
  367. i += n9
  368. dAtA[i] = 0x1a
  369. i++
  370. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error)))
  371. i += copy(dAtA[i:], m.Error)
  372. if len(m.Audiences) > 0 {
  373. for _, s := range m.Audiences {
  374. dAtA[i] = 0x22
  375. i++
  376. l = len(s)
  377. for l >= 1<<7 {
  378. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  379. l >>= 7
  380. i++
  381. }
  382. dAtA[i] = uint8(l)
  383. i++
  384. i += copy(dAtA[i:], s)
  385. }
  386. }
  387. return i, nil
  388. }
  389. func (m *UserInfo) Marshal() (dAtA []byte, err error) {
  390. size := m.Size()
  391. dAtA = make([]byte, size)
  392. n, err := m.MarshalTo(dAtA)
  393. if err != nil {
  394. return nil, err
  395. }
  396. return dAtA[:n], nil
  397. }
  398. func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) {
  399. var i int
  400. _ = i
  401. var l int
  402. _ = l
  403. dAtA[i] = 0xa
  404. i++
  405. i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username)))
  406. i += copy(dAtA[i:], m.Username)
  407. dAtA[i] = 0x12
  408. i++
  409. i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
  410. i += copy(dAtA[i:], m.UID)
  411. if len(m.Groups) > 0 {
  412. for _, s := range m.Groups {
  413. dAtA[i] = 0x1a
  414. i++
  415. l = len(s)
  416. for l >= 1<<7 {
  417. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  418. l >>= 7
  419. i++
  420. }
  421. dAtA[i] = uint8(l)
  422. i++
  423. i += copy(dAtA[i:], s)
  424. }
  425. }
  426. if len(m.Extra) > 0 {
  427. keysForExtra := make([]string, 0, len(m.Extra))
  428. for k := range m.Extra {
  429. keysForExtra = append(keysForExtra, string(k))
  430. }
  431. github_com_gogo_protobuf_sortkeys.Strings(keysForExtra)
  432. for _, k := range keysForExtra {
  433. dAtA[i] = 0x22
  434. i++
  435. v := m.Extra[string(k)]
  436. msgSize := 0
  437. if (&v) != nil {
  438. msgSize = (&v).Size()
  439. msgSize += 1 + sovGenerated(uint64(msgSize))
  440. }
  441. mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
  442. i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
  443. dAtA[i] = 0xa
  444. i++
  445. i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
  446. i += copy(dAtA[i:], k)
  447. dAtA[i] = 0x12
  448. i++
  449. i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
  450. n10, err := (&v).MarshalTo(dAtA[i:])
  451. if err != nil {
  452. return 0, err
  453. }
  454. i += n10
  455. }
  456. }
  457. return i, nil
  458. }
  459. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  460. for v >= 1<<7 {
  461. dAtA[offset] = uint8(v&0x7f | 0x80)
  462. v >>= 7
  463. offset++
  464. }
  465. dAtA[offset] = uint8(v)
  466. return offset + 1
  467. }
  468. func (m *BoundObjectReference) Size() (n int) {
  469. var l int
  470. _ = l
  471. l = len(m.Kind)
  472. n += 1 + l + sovGenerated(uint64(l))
  473. l = len(m.APIVersion)
  474. n += 1 + l + sovGenerated(uint64(l))
  475. l = len(m.Name)
  476. n += 1 + l + sovGenerated(uint64(l))
  477. l = len(m.UID)
  478. n += 1 + l + sovGenerated(uint64(l))
  479. return n
  480. }
  481. func (m ExtraValue) Size() (n int) {
  482. var l int
  483. _ = l
  484. if len(m) > 0 {
  485. for _, s := range m {
  486. l = len(s)
  487. n += 1 + l + sovGenerated(uint64(l))
  488. }
  489. }
  490. return n
  491. }
  492. func (m *TokenRequest) Size() (n int) {
  493. var l int
  494. _ = l
  495. l = m.ObjectMeta.Size()
  496. n += 1 + l + sovGenerated(uint64(l))
  497. l = m.Spec.Size()
  498. n += 1 + l + sovGenerated(uint64(l))
  499. l = m.Status.Size()
  500. n += 1 + l + sovGenerated(uint64(l))
  501. return n
  502. }
  503. func (m *TokenRequestSpec) Size() (n int) {
  504. var l int
  505. _ = l
  506. if len(m.Audiences) > 0 {
  507. for _, s := range m.Audiences {
  508. l = len(s)
  509. n += 1 + l + sovGenerated(uint64(l))
  510. }
  511. }
  512. if m.BoundObjectRef != nil {
  513. l = m.BoundObjectRef.Size()
  514. n += 1 + l + sovGenerated(uint64(l))
  515. }
  516. if m.ExpirationSeconds != nil {
  517. n += 1 + sovGenerated(uint64(*m.ExpirationSeconds))
  518. }
  519. return n
  520. }
  521. func (m *TokenRequestStatus) Size() (n int) {
  522. var l int
  523. _ = l
  524. l = len(m.Token)
  525. n += 1 + l + sovGenerated(uint64(l))
  526. l = m.ExpirationTimestamp.Size()
  527. n += 1 + l + sovGenerated(uint64(l))
  528. return n
  529. }
  530. func (m *TokenReview) Size() (n int) {
  531. var l int
  532. _ = l
  533. l = m.ObjectMeta.Size()
  534. n += 1 + l + sovGenerated(uint64(l))
  535. l = m.Spec.Size()
  536. n += 1 + l + sovGenerated(uint64(l))
  537. l = m.Status.Size()
  538. n += 1 + l + sovGenerated(uint64(l))
  539. return n
  540. }
  541. func (m *TokenReviewSpec) Size() (n int) {
  542. var l int
  543. _ = l
  544. l = len(m.Token)
  545. n += 1 + l + sovGenerated(uint64(l))
  546. if len(m.Audiences) > 0 {
  547. for _, s := range m.Audiences {
  548. l = len(s)
  549. n += 1 + l + sovGenerated(uint64(l))
  550. }
  551. }
  552. return n
  553. }
  554. func (m *TokenReviewStatus) Size() (n int) {
  555. var l int
  556. _ = l
  557. n += 2
  558. l = m.User.Size()
  559. n += 1 + l + sovGenerated(uint64(l))
  560. l = len(m.Error)
  561. n += 1 + l + sovGenerated(uint64(l))
  562. if len(m.Audiences) > 0 {
  563. for _, s := range m.Audiences {
  564. l = len(s)
  565. n += 1 + l + sovGenerated(uint64(l))
  566. }
  567. }
  568. return n
  569. }
  570. func (m *UserInfo) Size() (n int) {
  571. var l int
  572. _ = l
  573. l = len(m.Username)
  574. n += 1 + l + sovGenerated(uint64(l))
  575. l = len(m.UID)
  576. n += 1 + l + sovGenerated(uint64(l))
  577. if len(m.Groups) > 0 {
  578. for _, s := range m.Groups {
  579. l = len(s)
  580. n += 1 + l + sovGenerated(uint64(l))
  581. }
  582. }
  583. if len(m.Extra) > 0 {
  584. for k, v := range m.Extra {
  585. _ = k
  586. _ = v
  587. l = v.Size()
  588. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
  589. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  590. }
  591. }
  592. return n
  593. }
  594. func sovGenerated(x uint64) (n int) {
  595. for {
  596. n++
  597. x >>= 7
  598. if x == 0 {
  599. break
  600. }
  601. }
  602. return n
  603. }
  604. func sozGenerated(x uint64) (n int) {
  605. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  606. }
  607. func (this *BoundObjectReference) String() string {
  608. if this == nil {
  609. return "nil"
  610. }
  611. s := strings.Join([]string{`&BoundObjectReference{`,
  612. `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  613. `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
  614. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  615. `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
  616. `}`,
  617. }, "")
  618. return s
  619. }
  620. func (this *TokenRequest) String() string {
  621. if this == nil {
  622. return "nil"
  623. }
  624. s := strings.Join([]string{`&TokenRequest{`,
  625. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  626. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenRequestSpec", "TokenRequestSpec", 1), `&`, ``, 1) + `,`,
  627. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenRequestStatus", "TokenRequestStatus", 1), `&`, ``, 1) + `,`,
  628. `}`,
  629. }, "")
  630. return s
  631. }
  632. func (this *TokenRequestSpec) String() string {
  633. if this == nil {
  634. return "nil"
  635. }
  636. s := strings.Join([]string{`&TokenRequestSpec{`,
  637. `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`,
  638. `BoundObjectRef:` + strings.Replace(fmt.Sprintf("%v", this.BoundObjectRef), "BoundObjectReference", "BoundObjectReference", 1) + `,`,
  639. `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`,
  640. `}`,
  641. }, "")
  642. return s
  643. }
  644. func (this *TokenRequestStatus) String() string {
  645. if this == nil {
  646. return "nil"
  647. }
  648. s := strings.Join([]string{`&TokenRequestStatus{`,
  649. `Token:` + fmt.Sprintf("%v", this.Token) + `,`,
  650. `ExpirationTimestamp:` + strings.Replace(strings.Replace(this.ExpirationTimestamp.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
  651. `}`,
  652. }, "")
  653. return s
  654. }
  655. func (this *TokenReview) String() string {
  656. if this == nil {
  657. return "nil"
  658. }
  659. s := strings.Join([]string{`&TokenReview{`,
  660. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  661. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`,
  662. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`,
  663. `}`,
  664. }, "")
  665. return s
  666. }
  667. func (this *TokenReviewSpec) String() string {
  668. if this == nil {
  669. return "nil"
  670. }
  671. s := strings.Join([]string{`&TokenReviewSpec{`,
  672. `Token:` + fmt.Sprintf("%v", this.Token) + `,`,
  673. `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`,
  674. `}`,
  675. }, "")
  676. return s
  677. }
  678. func (this *TokenReviewStatus) String() string {
  679. if this == nil {
  680. return "nil"
  681. }
  682. s := strings.Join([]string{`&TokenReviewStatus{`,
  683. `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`,
  684. `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`,
  685. `Error:` + fmt.Sprintf("%v", this.Error) + `,`,
  686. `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`,
  687. `}`,
  688. }, "")
  689. return s
  690. }
  691. func (this *UserInfo) String() string {
  692. if this == nil {
  693. return "nil"
  694. }
  695. keysForExtra := make([]string, 0, len(this.Extra))
  696. for k := range this.Extra {
  697. keysForExtra = append(keysForExtra, k)
  698. }
  699. github_com_gogo_protobuf_sortkeys.Strings(keysForExtra)
  700. mapStringForExtra := "map[string]ExtraValue{"
  701. for _, k := range keysForExtra {
  702. mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k])
  703. }
  704. mapStringForExtra += "}"
  705. s := strings.Join([]string{`&UserInfo{`,
  706. `Username:` + fmt.Sprintf("%v", this.Username) + `,`,
  707. `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
  708. `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  709. `Extra:` + mapStringForExtra + `,`,
  710. `}`,
  711. }, "")
  712. return s
  713. }
  714. func valueToStringGenerated(v interface{}) string {
  715. rv := reflect.ValueOf(v)
  716. if rv.IsNil() {
  717. return "nil"
  718. }
  719. pv := reflect.Indirect(rv).Interface()
  720. return fmt.Sprintf("*%v", pv)
  721. }
  722. func (m *BoundObjectReference) Unmarshal(dAtA []byte) error {
  723. l := len(dAtA)
  724. iNdEx := 0
  725. for iNdEx < l {
  726. preIndex := iNdEx
  727. var wire uint64
  728. for shift := uint(0); ; shift += 7 {
  729. if shift >= 64 {
  730. return ErrIntOverflowGenerated
  731. }
  732. if iNdEx >= l {
  733. return io.ErrUnexpectedEOF
  734. }
  735. b := dAtA[iNdEx]
  736. iNdEx++
  737. wire |= (uint64(b) & 0x7F) << shift
  738. if b < 0x80 {
  739. break
  740. }
  741. }
  742. fieldNum := int32(wire >> 3)
  743. wireType := int(wire & 0x7)
  744. if wireType == 4 {
  745. return fmt.Errorf("proto: BoundObjectReference: wiretype end group for non-group")
  746. }
  747. if fieldNum <= 0 {
  748. return fmt.Errorf("proto: BoundObjectReference: illegal tag %d (wire type %d)", fieldNum, wire)
  749. }
  750. switch fieldNum {
  751. case 1:
  752. if wireType != 2 {
  753. return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  754. }
  755. var stringLen uint64
  756. for shift := uint(0); ; shift += 7 {
  757. if shift >= 64 {
  758. return ErrIntOverflowGenerated
  759. }
  760. if iNdEx >= l {
  761. return io.ErrUnexpectedEOF
  762. }
  763. b := dAtA[iNdEx]
  764. iNdEx++
  765. stringLen |= (uint64(b) & 0x7F) << shift
  766. if b < 0x80 {
  767. break
  768. }
  769. }
  770. intStringLen := int(stringLen)
  771. if intStringLen < 0 {
  772. return ErrInvalidLengthGenerated
  773. }
  774. postIndex := iNdEx + intStringLen
  775. if postIndex > l {
  776. return io.ErrUnexpectedEOF
  777. }
  778. m.Kind = string(dAtA[iNdEx:postIndex])
  779. iNdEx = postIndex
  780. case 2:
  781. if wireType != 2 {
  782. return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
  783. }
  784. var stringLen uint64
  785. for shift := uint(0); ; shift += 7 {
  786. if shift >= 64 {
  787. return ErrIntOverflowGenerated
  788. }
  789. if iNdEx >= l {
  790. return io.ErrUnexpectedEOF
  791. }
  792. b := dAtA[iNdEx]
  793. iNdEx++
  794. stringLen |= (uint64(b) & 0x7F) << shift
  795. if b < 0x80 {
  796. break
  797. }
  798. }
  799. intStringLen := int(stringLen)
  800. if intStringLen < 0 {
  801. return ErrInvalidLengthGenerated
  802. }
  803. postIndex := iNdEx + intStringLen
  804. if postIndex > l {
  805. return io.ErrUnexpectedEOF
  806. }
  807. m.APIVersion = string(dAtA[iNdEx:postIndex])
  808. iNdEx = postIndex
  809. case 3:
  810. if wireType != 2 {
  811. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  812. }
  813. var stringLen uint64
  814. for shift := uint(0); ; shift += 7 {
  815. if shift >= 64 {
  816. return ErrIntOverflowGenerated
  817. }
  818. if iNdEx >= l {
  819. return io.ErrUnexpectedEOF
  820. }
  821. b := dAtA[iNdEx]
  822. iNdEx++
  823. stringLen |= (uint64(b) & 0x7F) << shift
  824. if b < 0x80 {
  825. break
  826. }
  827. }
  828. intStringLen := int(stringLen)
  829. if intStringLen < 0 {
  830. return ErrInvalidLengthGenerated
  831. }
  832. postIndex := iNdEx + intStringLen
  833. if postIndex > l {
  834. return io.ErrUnexpectedEOF
  835. }
  836. m.Name = string(dAtA[iNdEx:postIndex])
  837. iNdEx = postIndex
  838. case 4:
  839. if wireType != 2 {
  840. return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
  841. }
  842. var stringLen uint64
  843. for shift := uint(0); ; shift += 7 {
  844. if shift >= 64 {
  845. return ErrIntOverflowGenerated
  846. }
  847. if iNdEx >= l {
  848. return io.ErrUnexpectedEOF
  849. }
  850. b := dAtA[iNdEx]
  851. iNdEx++
  852. stringLen |= (uint64(b) & 0x7F) << shift
  853. if b < 0x80 {
  854. break
  855. }
  856. }
  857. intStringLen := int(stringLen)
  858. if intStringLen < 0 {
  859. return ErrInvalidLengthGenerated
  860. }
  861. postIndex := iNdEx + intStringLen
  862. if postIndex > l {
  863. return io.ErrUnexpectedEOF
  864. }
  865. m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
  866. iNdEx = postIndex
  867. default:
  868. iNdEx = preIndex
  869. skippy, err := skipGenerated(dAtA[iNdEx:])
  870. if err != nil {
  871. return err
  872. }
  873. if skippy < 0 {
  874. return ErrInvalidLengthGenerated
  875. }
  876. if (iNdEx + skippy) > l {
  877. return io.ErrUnexpectedEOF
  878. }
  879. iNdEx += skippy
  880. }
  881. }
  882. if iNdEx > l {
  883. return io.ErrUnexpectedEOF
  884. }
  885. return nil
  886. }
  887. func (m *ExtraValue) Unmarshal(dAtA []byte) error {
  888. l := len(dAtA)
  889. iNdEx := 0
  890. for iNdEx < l {
  891. preIndex := iNdEx
  892. var wire uint64
  893. for shift := uint(0); ; shift += 7 {
  894. if shift >= 64 {
  895. return ErrIntOverflowGenerated
  896. }
  897. if iNdEx >= l {
  898. return io.ErrUnexpectedEOF
  899. }
  900. b := dAtA[iNdEx]
  901. iNdEx++
  902. wire |= (uint64(b) & 0x7F) << shift
  903. if b < 0x80 {
  904. break
  905. }
  906. }
  907. fieldNum := int32(wire >> 3)
  908. wireType := int(wire & 0x7)
  909. if wireType == 4 {
  910. return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group")
  911. }
  912. if fieldNum <= 0 {
  913. return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire)
  914. }
  915. switch fieldNum {
  916. case 1:
  917. if wireType != 2 {
  918. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  919. }
  920. var stringLen uint64
  921. for shift := uint(0); ; shift += 7 {
  922. if shift >= 64 {
  923. return ErrIntOverflowGenerated
  924. }
  925. if iNdEx >= l {
  926. return io.ErrUnexpectedEOF
  927. }
  928. b := dAtA[iNdEx]
  929. iNdEx++
  930. stringLen |= (uint64(b) & 0x7F) << shift
  931. if b < 0x80 {
  932. break
  933. }
  934. }
  935. intStringLen := int(stringLen)
  936. if intStringLen < 0 {
  937. return ErrInvalidLengthGenerated
  938. }
  939. postIndex := iNdEx + intStringLen
  940. if postIndex > l {
  941. return io.ErrUnexpectedEOF
  942. }
  943. *m = append(*m, string(dAtA[iNdEx:postIndex]))
  944. iNdEx = postIndex
  945. default:
  946. iNdEx = preIndex
  947. skippy, err := skipGenerated(dAtA[iNdEx:])
  948. if err != nil {
  949. return err
  950. }
  951. if skippy < 0 {
  952. return ErrInvalidLengthGenerated
  953. }
  954. if (iNdEx + skippy) > l {
  955. return io.ErrUnexpectedEOF
  956. }
  957. iNdEx += skippy
  958. }
  959. }
  960. if iNdEx > l {
  961. return io.ErrUnexpectedEOF
  962. }
  963. return nil
  964. }
  965. func (m *TokenRequest) Unmarshal(dAtA []byte) error {
  966. l := len(dAtA)
  967. iNdEx := 0
  968. for iNdEx < l {
  969. preIndex := iNdEx
  970. var wire uint64
  971. for shift := uint(0); ; shift += 7 {
  972. if shift >= 64 {
  973. return ErrIntOverflowGenerated
  974. }
  975. if iNdEx >= l {
  976. return io.ErrUnexpectedEOF
  977. }
  978. b := dAtA[iNdEx]
  979. iNdEx++
  980. wire |= (uint64(b) & 0x7F) << shift
  981. if b < 0x80 {
  982. break
  983. }
  984. }
  985. fieldNum := int32(wire >> 3)
  986. wireType := int(wire & 0x7)
  987. if wireType == 4 {
  988. return fmt.Errorf("proto: TokenRequest: wiretype end group for non-group")
  989. }
  990. if fieldNum <= 0 {
  991. return fmt.Errorf("proto: TokenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  992. }
  993. switch fieldNum {
  994. case 1:
  995. if wireType != 2 {
  996. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  997. }
  998. var msglen int
  999. for shift := uint(0); ; shift += 7 {
  1000. if shift >= 64 {
  1001. return ErrIntOverflowGenerated
  1002. }
  1003. if iNdEx >= l {
  1004. return io.ErrUnexpectedEOF
  1005. }
  1006. b := dAtA[iNdEx]
  1007. iNdEx++
  1008. msglen |= (int(b) & 0x7F) << shift
  1009. if b < 0x80 {
  1010. break
  1011. }
  1012. }
  1013. if msglen < 0 {
  1014. return ErrInvalidLengthGenerated
  1015. }
  1016. postIndex := iNdEx + msglen
  1017. if postIndex > l {
  1018. return io.ErrUnexpectedEOF
  1019. }
  1020. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1021. return err
  1022. }
  1023. iNdEx = postIndex
  1024. case 2:
  1025. if wireType != 2 {
  1026. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  1027. }
  1028. var msglen int
  1029. for shift := uint(0); ; shift += 7 {
  1030. if shift >= 64 {
  1031. return ErrIntOverflowGenerated
  1032. }
  1033. if iNdEx >= l {
  1034. return io.ErrUnexpectedEOF
  1035. }
  1036. b := dAtA[iNdEx]
  1037. iNdEx++
  1038. msglen |= (int(b) & 0x7F) << shift
  1039. if b < 0x80 {
  1040. break
  1041. }
  1042. }
  1043. if msglen < 0 {
  1044. return ErrInvalidLengthGenerated
  1045. }
  1046. postIndex := iNdEx + msglen
  1047. if postIndex > l {
  1048. return io.ErrUnexpectedEOF
  1049. }
  1050. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1051. return err
  1052. }
  1053. iNdEx = postIndex
  1054. case 3:
  1055. if wireType != 2 {
  1056. return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1081. return err
  1082. }
  1083. iNdEx = postIndex
  1084. default:
  1085. iNdEx = preIndex
  1086. skippy, err := skipGenerated(dAtA[iNdEx:])
  1087. if err != nil {
  1088. return err
  1089. }
  1090. if skippy < 0 {
  1091. return ErrInvalidLengthGenerated
  1092. }
  1093. if (iNdEx + skippy) > l {
  1094. return io.ErrUnexpectedEOF
  1095. }
  1096. iNdEx += skippy
  1097. }
  1098. }
  1099. if iNdEx > l {
  1100. return io.ErrUnexpectedEOF
  1101. }
  1102. return nil
  1103. }
  1104. func (m *TokenRequestSpec) Unmarshal(dAtA []byte) error {
  1105. l := len(dAtA)
  1106. iNdEx := 0
  1107. for iNdEx < l {
  1108. preIndex := iNdEx
  1109. var wire uint64
  1110. for shift := uint(0); ; shift += 7 {
  1111. if shift >= 64 {
  1112. return ErrIntOverflowGenerated
  1113. }
  1114. if iNdEx >= l {
  1115. return io.ErrUnexpectedEOF
  1116. }
  1117. b := dAtA[iNdEx]
  1118. iNdEx++
  1119. wire |= (uint64(b) & 0x7F) << shift
  1120. if b < 0x80 {
  1121. break
  1122. }
  1123. }
  1124. fieldNum := int32(wire >> 3)
  1125. wireType := int(wire & 0x7)
  1126. if wireType == 4 {
  1127. return fmt.Errorf("proto: TokenRequestSpec: wiretype end group for non-group")
  1128. }
  1129. if fieldNum <= 0 {
  1130. return fmt.Errorf("proto: TokenRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1131. }
  1132. switch fieldNum {
  1133. case 1:
  1134. if wireType != 2 {
  1135. return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType)
  1136. }
  1137. var stringLen uint64
  1138. for shift := uint(0); ; shift += 7 {
  1139. if shift >= 64 {
  1140. return ErrIntOverflowGenerated
  1141. }
  1142. if iNdEx >= l {
  1143. return io.ErrUnexpectedEOF
  1144. }
  1145. b := dAtA[iNdEx]
  1146. iNdEx++
  1147. stringLen |= (uint64(b) & 0x7F) << shift
  1148. if b < 0x80 {
  1149. break
  1150. }
  1151. }
  1152. intStringLen := int(stringLen)
  1153. if intStringLen < 0 {
  1154. return ErrInvalidLengthGenerated
  1155. }
  1156. postIndex := iNdEx + intStringLen
  1157. if postIndex > l {
  1158. return io.ErrUnexpectedEOF
  1159. }
  1160. m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex]))
  1161. iNdEx = postIndex
  1162. case 3:
  1163. if wireType != 2 {
  1164. return fmt.Errorf("proto: wrong wireType = %d for field BoundObjectRef", wireType)
  1165. }
  1166. var msglen int
  1167. for shift := uint(0); ; shift += 7 {
  1168. if shift >= 64 {
  1169. return ErrIntOverflowGenerated
  1170. }
  1171. if iNdEx >= l {
  1172. return io.ErrUnexpectedEOF
  1173. }
  1174. b := dAtA[iNdEx]
  1175. iNdEx++
  1176. msglen |= (int(b) & 0x7F) << shift
  1177. if b < 0x80 {
  1178. break
  1179. }
  1180. }
  1181. if msglen < 0 {
  1182. return ErrInvalidLengthGenerated
  1183. }
  1184. postIndex := iNdEx + msglen
  1185. if postIndex > l {
  1186. return io.ErrUnexpectedEOF
  1187. }
  1188. if m.BoundObjectRef == nil {
  1189. m.BoundObjectRef = &BoundObjectReference{}
  1190. }
  1191. if err := m.BoundObjectRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1192. return err
  1193. }
  1194. iNdEx = postIndex
  1195. case 4:
  1196. if wireType != 0 {
  1197. return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", wireType)
  1198. }
  1199. var v int64
  1200. for shift := uint(0); ; shift += 7 {
  1201. if shift >= 64 {
  1202. return ErrIntOverflowGenerated
  1203. }
  1204. if iNdEx >= l {
  1205. return io.ErrUnexpectedEOF
  1206. }
  1207. b := dAtA[iNdEx]
  1208. iNdEx++
  1209. v |= (int64(b) & 0x7F) << shift
  1210. if b < 0x80 {
  1211. break
  1212. }
  1213. }
  1214. m.ExpirationSeconds = &v
  1215. default:
  1216. iNdEx = preIndex
  1217. skippy, err := skipGenerated(dAtA[iNdEx:])
  1218. if err != nil {
  1219. return err
  1220. }
  1221. if skippy < 0 {
  1222. return ErrInvalidLengthGenerated
  1223. }
  1224. if (iNdEx + skippy) > l {
  1225. return io.ErrUnexpectedEOF
  1226. }
  1227. iNdEx += skippy
  1228. }
  1229. }
  1230. if iNdEx > l {
  1231. return io.ErrUnexpectedEOF
  1232. }
  1233. return nil
  1234. }
  1235. func (m *TokenRequestStatus) Unmarshal(dAtA []byte) error {
  1236. l := len(dAtA)
  1237. iNdEx := 0
  1238. for iNdEx < l {
  1239. preIndex := iNdEx
  1240. var wire uint64
  1241. for shift := uint(0); ; shift += 7 {
  1242. if shift >= 64 {
  1243. return ErrIntOverflowGenerated
  1244. }
  1245. if iNdEx >= l {
  1246. return io.ErrUnexpectedEOF
  1247. }
  1248. b := dAtA[iNdEx]
  1249. iNdEx++
  1250. wire |= (uint64(b) & 0x7F) << shift
  1251. if b < 0x80 {
  1252. break
  1253. }
  1254. }
  1255. fieldNum := int32(wire >> 3)
  1256. wireType := int(wire & 0x7)
  1257. if wireType == 4 {
  1258. return fmt.Errorf("proto: TokenRequestStatus: wiretype end group for non-group")
  1259. }
  1260. if fieldNum <= 0 {
  1261. return fmt.Errorf("proto: TokenRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1262. }
  1263. switch fieldNum {
  1264. case 1:
  1265. if wireType != 2 {
  1266. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1267. }
  1268. var stringLen uint64
  1269. for shift := uint(0); ; shift += 7 {
  1270. if shift >= 64 {
  1271. return ErrIntOverflowGenerated
  1272. }
  1273. if iNdEx >= l {
  1274. return io.ErrUnexpectedEOF
  1275. }
  1276. b := dAtA[iNdEx]
  1277. iNdEx++
  1278. stringLen |= (uint64(b) & 0x7F) << shift
  1279. if b < 0x80 {
  1280. break
  1281. }
  1282. }
  1283. intStringLen := int(stringLen)
  1284. if intStringLen < 0 {
  1285. return ErrInvalidLengthGenerated
  1286. }
  1287. postIndex := iNdEx + intStringLen
  1288. if postIndex > l {
  1289. return io.ErrUnexpectedEOF
  1290. }
  1291. m.Token = string(dAtA[iNdEx:postIndex])
  1292. iNdEx = postIndex
  1293. case 2:
  1294. if wireType != 2 {
  1295. return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTimestamp", wireType)
  1296. }
  1297. var msglen int
  1298. for shift := uint(0); ; shift += 7 {
  1299. if shift >= 64 {
  1300. return ErrIntOverflowGenerated
  1301. }
  1302. if iNdEx >= l {
  1303. return io.ErrUnexpectedEOF
  1304. }
  1305. b := dAtA[iNdEx]
  1306. iNdEx++
  1307. msglen |= (int(b) & 0x7F) << shift
  1308. if b < 0x80 {
  1309. break
  1310. }
  1311. }
  1312. if msglen < 0 {
  1313. return ErrInvalidLengthGenerated
  1314. }
  1315. postIndex := iNdEx + msglen
  1316. if postIndex > l {
  1317. return io.ErrUnexpectedEOF
  1318. }
  1319. if err := m.ExpirationTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1320. return err
  1321. }
  1322. iNdEx = postIndex
  1323. default:
  1324. iNdEx = preIndex
  1325. skippy, err := skipGenerated(dAtA[iNdEx:])
  1326. if err != nil {
  1327. return err
  1328. }
  1329. if skippy < 0 {
  1330. return ErrInvalidLengthGenerated
  1331. }
  1332. if (iNdEx + skippy) > l {
  1333. return io.ErrUnexpectedEOF
  1334. }
  1335. iNdEx += skippy
  1336. }
  1337. }
  1338. if iNdEx > l {
  1339. return io.ErrUnexpectedEOF
  1340. }
  1341. return nil
  1342. }
  1343. func (m *TokenReview) Unmarshal(dAtA []byte) error {
  1344. l := len(dAtA)
  1345. iNdEx := 0
  1346. for iNdEx < l {
  1347. preIndex := iNdEx
  1348. var wire uint64
  1349. for shift := uint(0); ; shift += 7 {
  1350. if shift >= 64 {
  1351. return ErrIntOverflowGenerated
  1352. }
  1353. if iNdEx >= l {
  1354. return io.ErrUnexpectedEOF
  1355. }
  1356. b := dAtA[iNdEx]
  1357. iNdEx++
  1358. wire |= (uint64(b) & 0x7F) << shift
  1359. if b < 0x80 {
  1360. break
  1361. }
  1362. }
  1363. fieldNum := int32(wire >> 3)
  1364. wireType := int(wire & 0x7)
  1365. if wireType == 4 {
  1366. return fmt.Errorf("proto: TokenReview: wiretype end group for non-group")
  1367. }
  1368. if fieldNum <= 0 {
  1369. return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire)
  1370. }
  1371. switch fieldNum {
  1372. case 1:
  1373. if wireType != 2 {
  1374. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1375. }
  1376. var msglen int
  1377. for shift := uint(0); ; shift += 7 {
  1378. if shift >= 64 {
  1379. return ErrIntOverflowGenerated
  1380. }
  1381. if iNdEx >= l {
  1382. return io.ErrUnexpectedEOF
  1383. }
  1384. b := dAtA[iNdEx]
  1385. iNdEx++
  1386. msglen |= (int(b) & 0x7F) << shift
  1387. if b < 0x80 {
  1388. break
  1389. }
  1390. }
  1391. if msglen < 0 {
  1392. return ErrInvalidLengthGenerated
  1393. }
  1394. postIndex := iNdEx + msglen
  1395. if postIndex > l {
  1396. return io.ErrUnexpectedEOF
  1397. }
  1398. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1399. return err
  1400. }
  1401. iNdEx = postIndex
  1402. case 2:
  1403. if wireType != 2 {
  1404. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  1405. }
  1406. var msglen int
  1407. for shift := uint(0); ; shift += 7 {
  1408. if shift >= 64 {
  1409. return ErrIntOverflowGenerated
  1410. }
  1411. if iNdEx >= l {
  1412. return io.ErrUnexpectedEOF
  1413. }
  1414. b := dAtA[iNdEx]
  1415. iNdEx++
  1416. msglen |= (int(b) & 0x7F) << shift
  1417. if b < 0x80 {
  1418. break
  1419. }
  1420. }
  1421. if msglen < 0 {
  1422. return ErrInvalidLengthGenerated
  1423. }
  1424. postIndex := iNdEx + msglen
  1425. if postIndex > l {
  1426. return io.ErrUnexpectedEOF
  1427. }
  1428. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1429. return err
  1430. }
  1431. iNdEx = postIndex
  1432. case 3:
  1433. if wireType != 2 {
  1434. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1435. }
  1436. var msglen int
  1437. for shift := uint(0); ; shift += 7 {
  1438. if shift >= 64 {
  1439. return ErrIntOverflowGenerated
  1440. }
  1441. if iNdEx >= l {
  1442. return io.ErrUnexpectedEOF
  1443. }
  1444. b := dAtA[iNdEx]
  1445. iNdEx++
  1446. msglen |= (int(b) & 0x7F) << shift
  1447. if b < 0x80 {
  1448. break
  1449. }
  1450. }
  1451. if msglen < 0 {
  1452. return ErrInvalidLengthGenerated
  1453. }
  1454. postIndex := iNdEx + msglen
  1455. if postIndex > l {
  1456. return io.ErrUnexpectedEOF
  1457. }
  1458. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1459. return err
  1460. }
  1461. iNdEx = postIndex
  1462. default:
  1463. iNdEx = preIndex
  1464. skippy, err := skipGenerated(dAtA[iNdEx:])
  1465. if err != nil {
  1466. return err
  1467. }
  1468. if skippy < 0 {
  1469. return ErrInvalidLengthGenerated
  1470. }
  1471. if (iNdEx + skippy) > l {
  1472. return io.ErrUnexpectedEOF
  1473. }
  1474. iNdEx += skippy
  1475. }
  1476. }
  1477. if iNdEx > l {
  1478. return io.ErrUnexpectedEOF
  1479. }
  1480. return nil
  1481. }
  1482. func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error {
  1483. l := len(dAtA)
  1484. iNdEx := 0
  1485. for iNdEx < l {
  1486. preIndex := iNdEx
  1487. var wire uint64
  1488. for shift := uint(0); ; shift += 7 {
  1489. if shift >= 64 {
  1490. return ErrIntOverflowGenerated
  1491. }
  1492. if iNdEx >= l {
  1493. return io.ErrUnexpectedEOF
  1494. }
  1495. b := dAtA[iNdEx]
  1496. iNdEx++
  1497. wire |= (uint64(b) & 0x7F) << shift
  1498. if b < 0x80 {
  1499. break
  1500. }
  1501. }
  1502. fieldNum := int32(wire >> 3)
  1503. wireType := int(wire & 0x7)
  1504. if wireType == 4 {
  1505. return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group")
  1506. }
  1507. if fieldNum <= 0 {
  1508. return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1509. }
  1510. switch fieldNum {
  1511. case 1:
  1512. if wireType != 2 {
  1513. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1514. }
  1515. var stringLen uint64
  1516. for shift := uint(0); ; shift += 7 {
  1517. if shift >= 64 {
  1518. return ErrIntOverflowGenerated
  1519. }
  1520. if iNdEx >= l {
  1521. return io.ErrUnexpectedEOF
  1522. }
  1523. b := dAtA[iNdEx]
  1524. iNdEx++
  1525. stringLen |= (uint64(b) & 0x7F) << shift
  1526. if b < 0x80 {
  1527. break
  1528. }
  1529. }
  1530. intStringLen := int(stringLen)
  1531. if intStringLen < 0 {
  1532. return ErrInvalidLengthGenerated
  1533. }
  1534. postIndex := iNdEx + intStringLen
  1535. if postIndex > l {
  1536. return io.ErrUnexpectedEOF
  1537. }
  1538. m.Token = string(dAtA[iNdEx:postIndex])
  1539. iNdEx = postIndex
  1540. case 2:
  1541. if wireType != 2 {
  1542. return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType)
  1543. }
  1544. var stringLen uint64
  1545. for shift := uint(0); ; shift += 7 {
  1546. if shift >= 64 {
  1547. return ErrIntOverflowGenerated
  1548. }
  1549. if iNdEx >= l {
  1550. return io.ErrUnexpectedEOF
  1551. }
  1552. b := dAtA[iNdEx]
  1553. iNdEx++
  1554. stringLen |= (uint64(b) & 0x7F) << shift
  1555. if b < 0x80 {
  1556. break
  1557. }
  1558. }
  1559. intStringLen := int(stringLen)
  1560. if intStringLen < 0 {
  1561. return ErrInvalidLengthGenerated
  1562. }
  1563. postIndex := iNdEx + intStringLen
  1564. if postIndex > l {
  1565. return io.ErrUnexpectedEOF
  1566. }
  1567. m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex]))
  1568. iNdEx = postIndex
  1569. default:
  1570. iNdEx = preIndex
  1571. skippy, err := skipGenerated(dAtA[iNdEx:])
  1572. if err != nil {
  1573. return err
  1574. }
  1575. if skippy < 0 {
  1576. return ErrInvalidLengthGenerated
  1577. }
  1578. if (iNdEx + skippy) > l {
  1579. return io.ErrUnexpectedEOF
  1580. }
  1581. iNdEx += skippy
  1582. }
  1583. }
  1584. if iNdEx > l {
  1585. return io.ErrUnexpectedEOF
  1586. }
  1587. return nil
  1588. }
  1589. func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error {
  1590. l := len(dAtA)
  1591. iNdEx := 0
  1592. for iNdEx < l {
  1593. preIndex := iNdEx
  1594. var wire uint64
  1595. for shift := uint(0); ; shift += 7 {
  1596. if shift >= 64 {
  1597. return ErrIntOverflowGenerated
  1598. }
  1599. if iNdEx >= l {
  1600. return io.ErrUnexpectedEOF
  1601. }
  1602. b := dAtA[iNdEx]
  1603. iNdEx++
  1604. wire |= (uint64(b) & 0x7F) << shift
  1605. if b < 0x80 {
  1606. break
  1607. }
  1608. }
  1609. fieldNum := int32(wire >> 3)
  1610. wireType := int(wire & 0x7)
  1611. if wireType == 4 {
  1612. return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group")
  1613. }
  1614. if fieldNum <= 0 {
  1615. return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1616. }
  1617. switch fieldNum {
  1618. case 1:
  1619. if wireType != 0 {
  1620. return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType)
  1621. }
  1622. var v int
  1623. for shift := uint(0); ; shift += 7 {
  1624. if shift >= 64 {
  1625. return ErrIntOverflowGenerated
  1626. }
  1627. if iNdEx >= l {
  1628. return io.ErrUnexpectedEOF
  1629. }
  1630. b := dAtA[iNdEx]
  1631. iNdEx++
  1632. v |= (int(b) & 0x7F) << shift
  1633. if b < 0x80 {
  1634. break
  1635. }
  1636. }
  1637. m.Authenticated = bool(v != 0)
  1638. case 2:
  1639. if wireType != 2 {
  1640. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  1641. }
  1642. var msglen int
  1643. for shift := uint(0); ; shift += 7 {
  1644. if shift >= 64 {
  1645. return ErrIntOverflowGenerated
  1646. }
  1647. if iNdEx >= l {
  1648. return io.ErrUnexpectedEOF
  1649. }
  1650. b := dAtA[iNdEx]
  1651. iNdEx++
  1652. msglen |= (int(b) & 0x7F) << shift
  1653. if b < 0x80 {
  1654. break
  1655. }
  1656. }
  1657. if msglen < 0 {
  1658. return ErrInvalidLengthGenerated
  1659. }
  1660. postIndex := iNdEx + msglen
  1661. if postIndex > l {
  1662. return io.ErrUnexpectedEOF
  1663. }
  1664. if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1665. return err
  1666. }
  1667. iNdEx = postIndex
  1668. case 3:
  1669. if wireType != 2 {
  1670. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  1671. }
  1672. var stringLen uint64
  1673. for shift := uint(0); ; shift += 7 {
  1674. if shift >= 64 {
  1675. return ErrIntOverflowGenerated
  1676. }
  1677. if iNdEx >= l {
  1678. return io.ErrUnexpectedEOF
  1679. }
  1680. b := dAtA[iNdEx]
  1681. iNdEx++
  1682. stringLen |= (uint64(b) & 0x7F) << shift
  1683. if b < 0x80 {
  1684. break
  1685. }
  1686. }
  1687. intStringLen := int(stringLen)
  1688. if intStringLen < 0 {
  1689. return ErrInvalidLengthGenerated
  1690. }
  1691. postIndex := iNdEx + intStringLen
  1692. if postIndex > l {
  1693. return io.ErrUnexpectedEOF
  1694. }
  1695. m.Error = string(dAtA[iNdEx:postIndex])
  1696. iNdEx = postIndex
  1697. case 4:
  1698. if wireType != 2 {
  1699. return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType)
  1700. }
  1701. var stringLen uint64
  1702. for shift := uint(0); ; shift += 7 {
  1703. if shift >= 64 {
  1704. return ErrIntOverflowGenerated
  1705. }
  1706. if iNdEx >= l {
  1707. return io.ErrUnexpectedEOF
  1708. }
  1709. b := dAtA[iNdEx]
  1710. iNdEx++
  1711. stringLen |= (uint64(b) & 0x7F) << shift
  1712. if b < 0x80 {
  1713. break
  1714. }
  1715. }
  1716. intStringLen := int(stringLen)
  1717. if intStringLen < 0 {
  1718. return ErrInvalidLengthGenerated
  1719. }
  1720. postIndex := iNdEx + intStringLen
  1721. if postIndex > l {
  1722. return io.ErrUnexpectedEOF
  1723. }
  1724. m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex]))
  1725. iNdEx = postIndex
  1726. default:
  1727. iNdEx = preIndex
  1728. skippy, err := skipGenerated(dAtA[iNdEx:])
  1729. if err != nil {
  1730. return err
  1731. }
  1732. if skippy < 0 {
  1733. return ErrInvalidLengthGenerated
  1734. }
  1735. if (iNdEx + skippy) > l {
  1736. return io.ErrUnexpectedEOF
  1737. }
  1738. iNdEx += skippy
  1739. }
  1740. }
  1741. if iNdEx > l {
  1742. return io.ErrUnexpectedEOF
  1743. }
  1744. return nil
  1745. }
  1746. func (m *UserInfo) Unmarshal(dAtA []byte) error {
  1747. l := len(dAtA)
  1748. iNdEx := 0
  1749. for iNdEx < l {
  1750. preIndex := iNdEx
  1751. var wire uint64
  1752. for shift := uint(0); ; shift += 7 {
  1753. if shift >= 64 {
  1754. return ErrIntOverflowGenerated
  1755. }
  1756. if iNdEx >= l {
  1757. return io.ErrUnexpectedEOF
  1758. }
  1759. b := dAtA[iNdEx]
  1760. iNdEx++
  1761. wire |= (uint64(b) & 0x7F) << shift
  1762. if b < 0x80 {
  1763. break
  1764. }
  1765. }
  1766. fieldNum := int32(wire >> 3)
  1767. wireType := int(wire & 0x7)
  1768. if wireType == 4 {
  1769. return fmt.Errorf("proto: UserInfo: wiretype end group for non-group")
  1770. }
  1771. if fieldNum <= 0 {
  1772. return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1773. }
  1774. switch fieldNum {
  1775. case 1:
  1776. if wireType != 2 {
  1777. return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  1778. }
  1779. var stringLen uint64
  1780. for shift := uint(0); ; shift += 7 {
  1781. if shift >= 64 {
  1782. return ErrIntOverflowGenerated
  1783. }
  1784. if iNdEx >= l {
  1785. return io.ErrUnexpectedEOF
  1786. }
  1787. b := dAtA[iNdEx]
  1788. iNdEx++
  1789. stringLen |= (uint64(b) & 0x7F) << shift
  1790. if b < 0x80 {
  1791. break
  1792. }
  1793. }
  1794. intStringLen := int(stringLen)
  1795. if intStringLen < 0 {
  1796. return ErrInvalidLengthGenerated
  1797. }
  1798. postIndex := iNdEx + intStringLen
  1799. if postIndex > l {
  1800. return io.ErrUnexpectedEOF
  1801. }
  1802. m.Username = string(dAtA[iNdEx:postIndex])
  1803. iNdEx = postIndex
  1804. case 2:
  1805. if wireType != 2 {
  1806. return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
  1807. }
  1808. var stringLen uint64
  1809. for shift := uint(0); ; shift += 7 {
  1810. if shift >= 64 {
  1811. return ErrIntOverflowGenerated
  1812. }
  1813. if iNdEx >= l {
  1814. return io.ErrUnexpectedEOF
  1815. }
  1816. b := dAtA[iNdEx]
  1817. iNdEx++
  1818. stringLen |= (uint64(b) & 0x7F) << shift
  1819. if b < 0x80 {
  1820. break
  1821. }
  1822. }
  1823. intStringLen := int(stringLen)
  1824. if intStringLen < 0 {
  1825. return ErrInvalidLengthGenerated
  1826. }
  1827. postIndex := iNdEx + intStringLen
  1828. if postIndex > l {
  1829. return io.ErrUnexpectedEOF
  1830. }
  1831. m.UID = string(dAtA[iNdEx:postIndex])
  1832. iNdEx = postIndex
  1833. case 3:
  1834. if wireType != 2 {
  1835. return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  1836. }
  1837. var stringLen 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. stringLen |= (uint64(b) & 0x7F) << shift
  1848. if b < 0x80 {
  1849. break
  1850. }
  1851. }
  1852. intStringLen := int(stringLen)
  1853. if intStringLen < 0 {
  1854. return ErrInvalidLengthGenerated
  1855. }
  1856. postIndex := iNdEx + intStringLen
  1857. if postIndex > l {
  1858. return io.ErrUnexpectedEOF
  1859. }
  1860. m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  1861. iNdEx = postIndex
  1862. case 4:
  1863. if wireType != 2 {
  1864. return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
  1865. }
  1866. var msglen int
  1867. for shift := uint(0); ; shift += 7 {
  1868. if shift >= 64 {
  1869. return ErrIntOverflowGenerated
  1870. }
  1871. if iNdEx >= l {
  1872. return io.ErrUnexpectedEOF
  1873. }
  1874. b := dAtA[iNdEx]
  1875. iNdEx++
  1876. msglen |= (int(b) & 0x7F) << shift
  1877. if b < 0x80 {
  1878. break
  1879. }
  1880. }
  1881. if msglen < 0 {
  1882. return ErrInvalidLengthGenerated
  1883. }
  1884. postIndex := iNdEx + msglen
  1885. if postIndex > l {
  1886. return io.ErrUnexpectedEOF
  1887. }
  1888. if m.Extra == nil {
  1889. m.Extra = make(map[string]ExtraValue)
  1890. }
  1891. var mapkey string
  1892. mapvalue := &ExtraValue{}
  1893. for iNdEx < postIndex {
  1894. entryPreIndex := iNdEx
  1895. var wire uint64
  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. wire |= (uint64(b) & 0x7F) << shift
  1906. if b < 0x80 {
  1907. break
  1908. }
  1909. }
  1910. fieldNum := int32(wire >> 3)
  1911. if fieldNum == 1 {
  1912. var stringLenmapkey uint64
  1913. for shift := uint(0); ; shift += 7 {
  1914. if shift >= 64 {
  1915. return ErrIntOverflowGenerated
  1916. }
  1917. if iNdEx >= l {
  1918. return io.ErrUnexpectedEOF
  1919. }
  1920. b := dAtA[iNdEx]
  1921. iNdEx++
  1922. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  1923. if b < 0x80 {
  1924. break
  1925. }
  1926. }
  1927. intStringLenmapkey := int(stringLenmapkey)
  1928. if intStringLenmapkey < 0 {
  1929. return ErrInvalidLengthGenerated
  1930. }
  1931. postStringIndexmapkey := iNdEx + intStringLenmapkey
  1932. if postStringIndexmapkey > l {
  1933. return io.ErrUnexpectedEOF
  1934. }
  1935. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1936. iNdEx = postStringIndexmapkey
  1937. } else if fieldNum == 2 {
  1938. var mapmsglen int
  1939. for shift := uint(0); ; shift += 7 {
  1940. if shift >= 64 {
  1941. return ErrIntOverflowGenerated
  1942. }
  1943. if iNdEx >= l {
  1944. return io.ErrUnexpectedEOF
  1945. }
  1946. b := dAtA[iNdEx]
  1947. iNdEx++
  1948. mapmsglen |= (int(b) & 0x7F) << shift
  1949. if b < 0x80 {
  1950. break
  1951. }
  1952. }
  1953. if mapmsglen < 0 {
  1954. return ErrInvalidLengthGenerated
  1955. }
  1956. postmsgIndex := iNdEx + mapmsglen
  1957. if mapmsglen < 0 {
  1958. return ErrInvalidLengthGenerated
  1959. }
  1960. if postmsgIndex > l {
  1961. return io.ErrUnexpectedEOF
  1962. }
  1963. mapvalue = &ExtraValue{}
  1964. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1965. return err
  1966. }
  1967. iNdEx = postmsgIndex
  1968. } else {
  1969. iNdEx = entryPreIndex
  1970. skippy, err := skipGenerated(dAtA[iNdEx:])
  1971. if err != nil {
  1972. return err
  1973. }
  1974. if skippy < 0 {
  1975. return ErrInvalidLengthGenerated
  1976. }
  1977. if (iNdEx + skippy) > postIndex {
  1978. return io.ErrUnexpectedEOF
  1979. }
  1980. iNdEx += skippy
  1981. }
  1982. }
  1983. m.Extra[mapkey] = *mapvalue
  1984. iNdEx = postIndex
  1985. default:
  1986. iNdEx = preIndex
  1987. skippy, err := skipGenerated(dAtA[iNdEx:])
  1988. if err != nil {
  1989. return err
  1990. }
  1991. if skippy < 0 {
  1992. return ErrInvalidLengthGenerated
  1993. }
  1994. if (iNdEx + skippy) > l {
  1995. return io.ErrUnexpectedEOF
  1996. }
  1997. iNdEx += skippy
  1998. }
  1999. }
  2000. if iNdEx > l {
  2001. return io.ErrUnexpectedEOF
  2002. }
  2003. return nil
  2004. }
  2005. func skipGenerated(dAtA []byte) (n int, err error) {
  2006. l := len(dAtA)
  2007. iNdEx := 0
  2008. for iNdEx < l {
  2009. var wire uint64
  2010. for shift := uint(0); ; shift += 7 {
  2011. if shift >= 64 {
  2012. return 0, ErrIntOverflowGenerated
  2013. }
  2014. if iNdEx >= l {
  2015. return 0, io.ErrUnexpectedEOF
  2016. }
  2017. b := dAtA[iNdEx]
  2018. iNdEx++
  2019. wire |= (uint64(b) & 0x7F) << shift
  2020. if b < 0x80 {
  2021. break
  2022. }
  2023. }
  2024. wireType := int(wire & 0x7)
  2025. switch wireType {
  2026. case 0:
  2027. for shift := uint(0); ; shift += 7 {
  2028. if shift >= 64 {
  2029. return 0, ErrIntOverflowGenerated
  2030. }
  2031. if iNdEx >= l {
  2032. return 0, io.ErrUnexpectedEOF
  2033. }
  2034. iNdEx++
  2035. if dAtA[iNdEx-1] < 0x80 {
  2036. break
  2037. }
  2038. }
  2039. return iNdEx, nil
  2040. case 1:
  2041. iNdEx += 8
  2042. return iNdEx, nil
  2043. case 2:
  2044. var length int
  2045. for shift := uint(0); ; shift += 7 {
  2046. if shift >= 64 {
  2047. return 0, ErrIntOverflowGenerated
  2048. }
  2049. if iNdEx >= l {
  2050. return 0, io.ErrUnexpectedEOF
  2051. }
  2052. b := dAtA[iNdEx]
  2053. iNdEx++
  2054. length |= (int(b) & 0x7F) << shift
  2055. if b < 0x80 {
  2056. break
  2057. }
  2058. }
  2059. iNdEx += length
  2060. if length < 0 {
  2061. return 0, ErrInvalidLengthGenerated
  2062. }
  2063. return iNdEx, nil
  2064. case 3:
  2065. for {
  2066. var innerWire uint64
  2067. var start int = iNdEx
  2068. for shift := uint(0); ; shift += 7 {
  2069. if shift >= 64 {
  2070. return 0, ErrIntOverflowGenerated
  2071. }
  2072. if iNdEx >= l {
  2073. return 0, io.ErrUnexpectedEOF
  2074. }
  2075. b := dAtA[iNdEx]
  2076. iNdEx++
  2077. innerWire |= (uint64(b) & 0x7F) << shift
  2078. if b < 0x80 {
  2079. break
  2080. }
  2081. }
  2082. innerWireType := int(innerWire & 0x7)
  2083. if innerWireType == 4 {
  2084. break
  2085. }
  2086. next, err := skipGenerated(dAtA[start:])
  2087. if err != nil {
  2088. return 0, err
  2089. }
  2090. iNdEx = start + next
  2091. }
  2092. return iNdEx, nil
  2093. case 4:
  2094. return iNdEx, nil
  2095. case 5:
  2096. iNdEx += 4
  2097. return iNdEx, nil
  2098. default:
  2099. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2100. }
  2101. }
  2102. panic("unreachable")
  2103. }
  2104. var (
  2105. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  2106. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  2107. )
  2108. func init() {
  2109. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1/generated.proto", fileDescriptorGenerated)
  2110. }
  2111. var fileDescriptorGenerated = []byte{
  2112. // 900 bytes of a gzipped FileDescriptorProto
  2113. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6f, 0xe3, 0x44,
  2114. 0x14, 0x8e, 0xf3, 0xa3, 0x4a, 0x26, 0xdb, 0xd2, 0xce, 0xb2, 0x52, 0x54, 0xc0, 0x2e, 0x41, 0x42,
  2115. 0x15, 0xb0, 0xf6, 0x26, 0x42, 0xb0, 0x5a, 0x24, 0xa4, 0x9a, 0x46, 0x10, 0x21, 0xd8, 0xd5, 0xec,
  2116. 0xb6, 0x20, 0x4e, 0x4c, 0xec, 0xd7, 0xc4, 0x04, 0x8f, 0x8d, 0x3d, 0x0e, 0x9b, 0xdb, 0xfe, 0x09,
  2117. 0x1c, 0x41, 0xe2, 0xc0, 0x1f, 0x81, 0xc4, 0xbf, 0xd0, 0xe3, 0x8a, 0xd3, 0x1e, 0x50, 0x44, 0xcd,
  2118. 0x95, 0x23, 0x27, 0x4e, 0x68, 0xc6, 0xd3, 0x38, 0x4e, 0xda, 0x34, 0x27, 0x6e, 0x9e, 0xf7, 0xbe,
  2119. 0xf7, 0xbd, 0x37, 0xdf, 0x7c, 0x9e, 0x41, 0xbd, 0xf1, 0xfd, 0xd8, 0xf4, 0x02, 0x6b, 0x9c, 0x0c,
  2120. 0x20, 0x62, 0xc0, 0x21, 0xb6, 0x26, 0xc0, 0xdc, 0x20, 0xb2, 0x54, 0x82, 0x86, 0x9e, 0x45, 0x13,
  2121. 0x3e, 0x02, 0xc6, 0x3d, 0x87, 0x72, 0x2f, 0x60, 0xd6, 0xa4, 0x63, 0x0d, 0x81, 0x41, 0x44, 0x39,
  2122. 0xb8, 0x66, 0x18, 0x05, 0x3c, 0xc0, 0xaf, 0x66, 0x68, 0x93, 0x86, 0x9e, 0x59, 0x44, 0x9b, 0x93,
  2123. 0xce, 0xfe, 0xdd, 0xa1, 0xc7, 0x47, 0xc9, 0xc0, 0x74, 0x02, 0xdf, 0x1a, 0x06, 0xc3, 0xc0, 0x92,
  2124. 0x45, 0x83, 0xe4, 0x4c, 0xae, 0xe4, 0x42, 0x7e, 0x65, 0x64, 0xfb, 0xef, 0xe6, 0xad, 0x7d, 0xea,
  2125. 0x8c, 0x3c, 0x06, 0xd1, 0xd4, 0x0a, 0xc7, 0x43, 0x11, 0x88, 0x2d, 0x1f, 0x38, 0xbd, 0x62, 0x84,
  2126. 0x7d, 0xeb, 0xba, 0xaa, 0x28, 0x61, 0xdc, 0xf3, 0x61, 0xa5, 0xe0, 0xbd, 0x9b, 0x0a, 0x62, 0x67,
  2127. 0x04, 0x3e, 0x5d, 0xae, 0x6b, 0xff, 0xae, 0xa1, 0x97, 0xed, 0x20, 0x61, 0xee, 0xc3, 0xc1, 0x37,
  2128. 0xe0, 0x70, 0x02, 0x67, 0x10, 0x01, 0x73, 0x00, 0x1f, 0xa0, 0xea, 0xd8, 0x63, 0x6e, 0x4b, 0x3b,
  2129. 0xd0, 0x0e, 0x1b, 0xf6, 0xad, 0xf3, 0x99, 0x51, 0x4a, 0x67, 0x46, 0xf5, 0x53, 0x8f, 0xb9, 0x44,
  2130. 0x66, 0x70, 0x17, 0x21, 0xfa, 0xa8, 0x7f, 0x0a, 0x51, 0xec, 0x05, 0xac, 0x55, 0x96, 0x38, 0xac,
  2131. 0x70, 0xe8, 0x68, 0x9e, 0x21, 0x0b, 0x28, 0xc1, 0xca, 0xa8, 0x0f, 0xad, 0x4a, 0x91, 0xf5, 0x73,
  2132. 0xea, 0x03, 0x91, 0x19, 0x6c, 0xa3, 0x4a, 0xd2, 0x3f, 0x6e, 0x55, 0x25, 0xe0, 0x9e, 0x02, 0x54,
  2133. 0x4e, 0xfa, 0xc7, 0xff, 0xce, 0x8c, 0xd7, 0xaf, 0xdb, 0x24, 0x9f, 0x86, 0x10, 0x9b, 0x27, 0xfd,
  2134. 0x63, 0x22, 0x8a, 0xdb, 0xef, 0x23, 0xd4, 0x7b, 0xca, 0x23, 0x7a, 0x4a, 0xbf, 0x4d, 0x00, 0x1b,
  2135. 0xa8, 0xe6, 0x71, 0xf0, 0xe3, 0x96, 0x76, 0x50, 0x39, 0x6c, 0xd8, 0x8d, 0x74, 0x66, 0xd4, 0xfa,
  2136. 0x22, 0x40, 0xb2, 0xf8, 0x83, 0xfa, 0x8f, 0xbf, 0x18, 0xa5, 0x67, 0x7f, 0x1c, 0x94, 0xda, 0x3f,
  2137. 0x97, 0xd1, 0xad, 0x27, 0xc1, 0x18, 0x18, 0x81, 0xef, 0x12, 0x88, 0x39, 0xfe, 0x1a, 0xd5, 0xc5,
  2138. 0x11, 0xb9, 0x94, 0x53, 0xa9, 0x44, 0xb3, 0x7b, 0xcf, 0xcc, 0xdd, 0x31, 0x1f, 0xc2, 0x0c, 0xc7,
  2139. 0x43, 0x11, 0x88, 0x4d, 0x81, 0x36, 0x27, 0x1d, 0x33, 0x93, 0xf3, 0x33, 0xe0, 0x34, 0xd7, 0x24,
  2140. 0x8f, 0x91, 0x39, 0x2b, 0x7e, 0x84, 0xaa, 0x71, 0x08, 0x8e, 0xd4, 0xaf, 0xd9, 0x35, 0xcd, 0x75,
  2141. 0xde, 0x33, 0x17, 0x67, 0x7b, 0x1c, 0x82, 0x93, 0x2b, 0x28, 0x56, 0x44, 0x32, 0xe1, 0x2f, 0xd1,
  2142. 0x56, 0xcc, 0x29, 0x4f, 0x62, 0xa9, 0x72, 0x71, 0xe2, 0x9b, 0x38, 0x65, 0x9d, 0xbd, 0xa3, 0x58,
  2143. 0xb7, 0xb2, 0x35, 0x51, 0x7c, 0xed, 0x7f, 0x34, 0xb4, 0xbb, 0x3c, 0x02, 0x7e, 0x1b, 0x35, 0x68,
  2144. 0xe2, 0x7a, 0xc2, 0x34, 0x97, 0x12, 0x6f, 0xa7, 0x33, 0xa3, 0x71, 0x74, 0x19, 0x24, 0x79, 0x1e,
  2145. 0x33, 0xb4, 0x33, 0x28, 0xb8, 0x4d, 0xcd, 0xd8, 0x5d, 0x3f, 0xe3, 0x55, 0x0e, 0xb5, 0x71, 0x3a,
  2146. 0x33, 0x76, 0x8a, 0x19, 0xb2, 0xc4, 0x8e, 0x3f, 0x42, 0x7b, 0xf0, 0x34, 0xf4, 0x22, 0xc9, 0xf4,
  2147. 0x18, 0x9c, 0x80, 0xb9, 0xb1, 0xf4, 0x56, 0xc5, 0xbe, 0x93, 0xce, 0x8c, 0xbd, 0xde, 0x72, 0x92,
  2148. 0xac, 0xe2, 0xdb, 0xbf, 0x6a, 0x08, 0xaf, 0xaa, 0x84, 0xdf, 0x40, 0x35, 0x2e, 0xa2, 0xea, 0x17,
  2149. 0xd9, 0x56, 0xa2, 0xd5, 0x32, 0x68, 0x96, 0xc3, 0x53, 0x74, 0x3b, 0x27, 0x7c, 0xe2, 0xf9, 0x10,
  2150. 0x73, 0xea, 0x87, 0xea, 0xb4, 0xdf, 0xda, 0xcc, 0x4b, 0xa2, 0xcc, 0x7e, 0x45, 0xd1, 0xdf, 0xee,
  2151. 0xad, 0xd2, 0x91, 0xab, 0x7a, 0xb4, 0x7f, 0x2a, 0xa3, 0xa6, 0x1a, 0x7b, 0xe2, 0xc1, 0xf7, 0xff,
  2152. 0x83, 0x97, 0x1f, 0x16, 0xbc, 0x7c, 0x77, 0x23, 0xdf, 0x89, 0xd1, 0xae, 0xb5, 0xf2, 0x17, 0x4b,
  2153. 0x56, 0xb6, 0x36, 0xa7, 0x5c, 0xef, 0x64, 0x07, 0xbd, 0xb4, 0xd4, 0x7f, 0xb3, 0xe3, 0x2c, 0x98,
  2154. 0xbd, 0xbc, 0xde, 0xec, 0xed, 0xbf, 0x35, 0xb4, 0xb7, 0x32, 0x12, 0xfe, 0x00, 0x6d, 0x2f, 0x4c,
  2155. 0x0e, 0xd9, 0x0d, 0x5b, 0xb7, 0xef, 0xa8, 0x7e, 0xdb, 0x47, 0x8b, 0x49, 0x52, 0xc4, 0xe2, 0x4f,
  2156. 0x50, 0x35, 0x89, 0x21, 0x52, 0x0a, 0xbf, 0xb9, 0x5e, 0x8e, 0x93, 0x18, 0xa2, 0x3e, 0x3b, 0x0b,
  2157. 0x72, 0x69, 0x45, 0x84, 0x48, 0x06, 0xb1, 0x5d, 0x88, 0xa2, 0x20, 0x52, 0x57, 0xf1, 0x7c, 0xbb,
  2158. 0x3d, 0x11, 0x24, 0x59, 0xae, 0xb8, 0xdd, 0xea, 0x0d, 0xdb, 0xfd, 0xad, 0x8c, 0xea, 0x97, 0x2d,
  2159. 0xf1, 0x3b, 0xa8, 0x2e, 0xda, 0xc8, 0xcb, 0x3e, 0x13, 0x74, 0x57, 0x75, 0x90, 0x18, 0x11, 0x27,
  2160. 0x73, 0x04, 0x7e, 0x0d, 0x55, 0x12, 0xcf, 0x55, 0x6f, 0x48, 0x73, 0xe1, 0xd2, 0x27, 0x22, 0x8e,
  2161. 0xdb, 0x68, 0x6b, 0x18, 0x05, 0x49, 0x28, 0x6c, 0x20, 0x66, 0x40, 0xe2, 0x44, 0x3f, 0x96, 0x11,
  2162. 0xa2, 0x32, 0xf8, 0x14, 0xd5, 0x40, 0xdc, 0xf9, 0x72, 0xcc, 0x66, 0xb7, 0xb3, 0x99, 0x34, 0xa6,
  2163. 0x7c, 0x27, 0x7a, 0x8c, 0x47, 0xd3, 0x05, 0x09, 0x44, 0x8c, 0x64, 0x74, 0xfb, 0x03, 0xf5, 0x96,
  2164. 0x48, 0x0c, 0xde, 0x45, 0x95, 0x31, 0x4c, 0xb3, 0x1d, 0x11, 0xf1, 0x89, 0x3f, 0x44, 0xb5, 0x89,
  2165. 0x78, 0x66, 0xd4, 0x91, 0x1c, 0xae, 0xef, 0x9b, 0x3f, 0x4b, 0x24, 0x2b, 0x7b, 0x50, 0xbe, 0xaf,
  2166. 0xd9, 0x87, 0xe7, 0x17, 0x7a, 0xe9, 0xf9, 0x85, 0x5e, 0x7a, 0x71, 0xa1, 0x97, 0x9e, 0xa5, 0xba,
  2167. 0x76, 0x9e, 0xea, 0xda, 0xf3, 0x54, 0xd7, 0x5e, 0xa4, 0xba, 0xf6, 0x67, 0xaa, 0x6b, 0x3f, 0xfc,
  2168. 0xa5, 0x97, 0xbe, 0x2a, 0x4f, 0x3a, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x04, 0x81, 0x6f,
  2169. 0xe2, 0x08, 0x00, 0x00,
  2170. }