generated.pb.go 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674
  1. /*
  2. Copyright 2017 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.
  14. // source: k8s.io/kubernetes/pkg/apis/certificates/v1beta1/generated.proto
  15. // DO NOT EDIT!
  16. /*
  17. Package v1beta1 is a generated protocol buffer package.
  18. It is generated from these files:
  19. k8s.io/kubernetes/pkg/apis/certificates/v1beta1/generated.proto
  20. It has these top-level messages:
  21. CertificateSigningRequest
  22. CertificateSigningRequestCondition
  23. CertificateSigningRequestList
  24. CertificateSigningRequestSpec
  25. CertificateSigningRequestStatus
  26. ExtraValue
  27. */
  28. package v1beta1
  29. import proto "github.com/gogo/protobuf/proto"
  30. import fmt "fmt"
  31. import math "math"
  32. import strings "strings"
  33. import reflect "reflect"
  34. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  35. import io "io"
  36. // Reference imports to suppress errors if they are not otherwise used.
  37. var _ = proto.Marshal
  38. var _ = fmt.Errorf
  39. var _ = math.Inf
  40. // This is a compile-time assertion to ensure that this generated file
  41. // is compatible with the proto package it is being compiled against.
  42. const _ = proto.GoGoProtoPackageIsVersion1
  43. func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} }
  44. func (*CertificateSigningRequest) ProtoMessage() {}
  45. func (*CertificateSigningRequest) Descriptor() ([]byte, []int) {
  46. return fileDescriptorGenerated, []int{0}
  47. }
  48. func (m *CertificateSigningRequestCondition) Reset() { *m = CertificateSigningRequestCondition{} }
  49. func (*CertificateSigningRequestCondition) ProtoMessage() {}
  50. func (*CertificateSigningRequestCondition) Descriptor() ([]byte, []int) {
  51. return fileDescriptorGenerated, []int{1}
  52. }
  53. func (m *CertificateSigningRequestList) Reset() { *m = CertificateSigningRequestList{} }
  54. func (*CertificateSigningRequestList) ProtoMessage() {}
  55. func (*CertificateSigningRequestList) Descriptor() ([]byte, []int) {
  56. return fileDescriptorGenerated, []int{2}
  57. }
  58. func (m *CertificateSigningRequestSpec) Reset() { *m = CertificateSigningRequestSpec{} }
  59. func (*CertificateSigningRequestSpec) ProtoMessage() {}
  60. func (*CertificateSigningRequestSpec) Descriptor() ([]byte, []int) {
  61. return fileDescriptorGenerated, []int{3}
  62. }
  63. func (m *CertificateSigningRequestStatus) Reset() { *m = CertificateSigningRequestStatus{} }
  64. func (*CertificateSigningRequestStatus) ProtoMessage() {}
  65. func (*CertificateSigningRequestStatus) Descriptor() ([]byte, []int) {
  66. return fileDescriptorGenerated, []int{4}
  67. }
  68. func (m *ExtraValue) Reset() { *m = ExtraValue{} }
  69. func (*ExtraValue) ProtoMessage() {}
  70. func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
  71. func init() {
  72. proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.CertificateSigningRequest")
  73. proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.CertificateSigningRequestCondition")
  74. proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.CertificateSigningRequestList")
  75. proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.CertificateSigningRequestSpec")
  76. proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.CertificateSigningRequestStatus")
  77. proto.RegisterType((*ExtraValue)(nil), "k8s.io.client-go.pkg.apis.certificates.v1beta1.ExtraValue")
  78. }
  79. func (m *CertificateSigningRequest) Marshal() (data []byte, err error) {
  80. size := m.Size()
  81. data = make([]byte, size)
  82. n, err := m.MarshalTo(data)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return data[:n], nil
  87. }
  88. func (m *CertificateSigningRequest) MarshalTo(data []byte) (int, error) {
  89. var i int
  90. _ = i
  91. var l int
  92. _ = l
  93. data[i] = 0xa
  94. i++
  95. i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
  96. n1, err := m.ObjectMeta.MarshalTo(data[i:])
  97. if err != nil {
  98. return 0, err
  99. }
  100. i += n1
  101. data[i] = 0x12
  102. i++
  103. i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
  104. n2, err := m.Spec.MarshalTo(data[i:])
  105. if err != nil {
  106. return 0, err
  107. }
  108. i += n2
  109. data[i] = 0x1a
  110. i++
  111. i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
  112. n3, err := m.Status.MarshalTo(data[i:])
  113. if err != nil {
  114. return 0, err
  115. }
  116. i += n3
  117. return i, nil
  118. }
  119. func (m *CertificateSigningRequestCondition) Marshal() (data []byte, err error) {
  120. size := m.Size()
  121. data = make([]byte, size)
  122. n, err := m.MarshalTo(data)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return data[:n], nil
  127. }
  128. func (m *CertificateSigningRequestCondition) MarshalTo(data []byte) (int, error) {
  129. var i int
  130. _ = i
  131. var l int
  132. _ = l
  133. data[i] = 0xa
  134. i++
  135. i = encodeVarintGenerated(data, i, uint64(len(m.Type)))
  136. i += copy(data[i:], m.Type)
  137. data[i] = 0x12
  138. i++
  139. i = encodeVarintGenerated(data, i, uint64(len(m.Reason)))
  140. i += copy(data[i:], m.Reason)
  141. data[i] = 0x1a
  142. i++
  143. i = encodeVarintGenerated(data, i, uint64(len(m.Message)))
  144. i += copy(data[i:], m.Message)
  145. data[i] = 0x22
  146. i++
  147. i = encodeVarintGenerated(data, i, uint64(m.LastUpdateTime.Size()))
  148. n4, err := m.LastUpdateTime.MarshalTo(data[i:])
  149. if err != nil {
  150. return 0, err
  151. }
  152. i += n4
  153. return i, nil
  154. }
  155. func (m *CertificateSigningRequestList) Marshal() (data []byte, err error) {
  156. size := m.Size()
  157. data = make([]byte, size)
  158. n, err := m.MarshalTo(data)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return data[:n], nil
  163. }
  164. func (m *CertificateSigningRequestList) MarshalTo(data []byte) (int, error) {
  165. var i int
  166. _ = i
  167. var l int
  168. _ = l
  169. data[i] = 0xa
  170. i++
  171. i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
  172. n5, err := m.ListMeta.MarshalTo(data[i:])
  173. if err != nil {
  174. return 0, err
  175. }
  176. i += n5
  177. if len(m.Items) > 0 {
  178. for _, msg := range m.Items {
  179. data[i] = 0x12
  180. i++
  181. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  182. n, err := msg.MarshalTo(data[i:])
  183. if err != nil {
  184. return 0, err
  185. }
  186. i += n
  187. }
  188. }
  189. return i, nil
  190. }
  191. func (m *CertificateSigningRequestSpec) Marshal() (data []byte, err error) {
  192. size := m.Size()
  193. data = make([]byte, size)
  194. n, err := m.MarshalTo(data)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return data[:n], nil
  199. }
  200. func (m *CertificateSigningRequestSpec) MarshalTo(data []byte) (int, error) {
  201. var i int
  202. _ = i
  203. var l int
  204. _ = l
  205. if m.Request != nil {
  206. data[i] = 0xa
  207. i++
  208. i = encodeVarintGenerated(data, i, uint64(len(m.Request)))
  209. i += copy(data[i:], m.Request)
  210. }
  211. data[i] = 0x12
  212. i++
  213. i = encodeVarintGenerated(data, i, uint64(len(m.Username)))
  214. i += copy(data[i:], m.Username)
  215. data[i] = 0x1a
  216. i++
  217. i = encodeVarintGenerated(data, i, uint64(len(m.UID)))
  218. i += copy(data[i:], m.UID)
  219. if len(m.Groups) > 0 {
  220. for _, s := range m.Groups {
  221. data[i] = 0x22
  222. i++
  223. l = len(s)
  224. for l >= 1<<7 {
  225. data[i] = uint8(uint64(l)&0x7f | 0x80)
  226. l >>= 7
  227. i++
  228. }
  229. data[i] = uint8(l)
  230. i++
  231. i += copy(data[i:], s)
  232. }
  233. }
  234. if len(m.Usages) > 0 {
  235. for _, s := range m.Usages {
  236. data[i] = 0x2a
  237. i++
  238. l = len(s)
  239. for l >= 1<<7 {
  240. data[i] = uint8(uint64(l)&0x7f | 0x80)
  241. l >>= 7
  242. i++
  243. }
  244. data[i] = uint8(l)
  245. i++
  246. i += copy(data[i:], s)
  247. }
  248. }
  249. if len(m.Extra) > 0 {
  250. for k := range m.Extra {
  251. data[i] = 0x32
  252. i++
  253. v := m.Extra[k]
  254. msgSize := (&v).Size()
  255. mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + msgSize + sovGenerated(uint64(msgSize))
  256. i = encodeVarintGenerated(data, i, uint64(mapSize))
  257. data[i] = 0xa
  258. i++
  259. i = encodeVarintGenerated(data, i, uint64(len(k)))
  260. i += copy(data[i:], k)
  261. data[i] = 0x12
  262. i++
  263. i = encodeVarintGenerated(data, i, uint64((&v).Size()))
  264. n6, err := (&v).MarshalTo(data[i:])
  265. if err != nil {
  266. return 0, err
  267. }
  268. i += n6
  269. }
  270. }
  271. return i, nil
  272. }
  273. func (m *CertificateSigningRequestStatus) Marshal() (data []byte, err error) {
  274. size := m.Size()
  275. data = make([]byte, size)
  276. n, err := m.MarshalTo(data)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return data[:n], nil
  281. }
  282. func (m *CertificateSigningRequestStatus) MarshalTo(data []byte) (int, error) {
  283. var i int
  284. _ = i
  285. var l int
  286. _ = l
  287. if len(m.Conditions) > 0 {
  288. for _, msg := range m.Conditions {
  289. data[i] = 0xa
  290. i++
  291. i = encodeVarintGenerated(data, i, uint64(msg.Size()))
  292. n, err := msg.MarshalTo(data[i:])
  293. if err != nil {
  294. return 0, err
  295. }
  296. i += n
  297. }
  298. }
  299. if m.Certificate != nil {
  300. data[i] = 0x12
  301. i++
  302. i = encodeVarintGenerated(data, i, uint64(len(m.Certificate)))
  303. i += copy(data[i:], m.Certificate)
  304. }
  305. return i, nil
  306. }
  307. func (m ExtraValue) Marshal() (data []byte, err error) {
  308. size := m.Size()
  309. data = make([]byte, size)
  310. n, err := m.MarshalTo(data)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return data[:n], nil
  315. }
  316. func (m ExtraValue) MarshalTo(data []byte) (int, error) {
  317. var i int
  318. _ = i
  319. var l int
  320. _ = l
  321. if len(m) > 0 {
  322. for _, s := range m {
  323. data[i] = 0xa
  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 encodeFixed64Generated(data []byte, offset int, v uint64) int {
  339. data[offset] = uint8(v)
  340. data[offset+1] = uint8(v >> 8)
  341. data[offset+2] = uint8(v >> 16)
  342. data[offset+3] = uint8(v >> 24)
  343. data[offset+4] = uint8(v >> 32)
  344. data[offset+5] = uint8(v >> 40)
  345. data[offset+6] = uint8(v >> 48)
  346. data[offset+7] = uint8(v >> 56)
  347. return offset + 8
  348. }
  349. func encodeFixed32Generated(data []byte, offset int, v uint32) int {
  350. data[offset] = uint8(v)
  351. data[offset+1] = uint8(v >> 8)
  352. data[offset+2] = uint8(v >> 16)
  353. data[offset+3] = uint8(v >> 24)
  354. return offset + 4
  355. }
  356. func encodeVarintGenerated(data []byte, offset int, v uint64) int {
  357. for v >= 1<<7 {
  358. data[offset] = uint8(v&0x7f | 0x80)
  359. v >>= 7
  360. offset++
  361. }
  362. data[offset] = uint8(v)
  363. return offset + 1
  364. }
  365. func (m *CertificateSigningRequest) Size() (n int) {
  366. var l int
  367. _ = l
  368. l = m.ObjectMeta.Size()
  369. n += 1 + l + sovGenerated(uint64(l))
  370. l = m.Spec.Size()
  371. n += 1 + l + sovGenerated(uint64(l))
  372. l = m.Status.Size()
  373. n += 1 + l + sovGenerated(uint64(l))
  374. return n
  375. }
  376. func (m *CertificateSigningRequestCondition) Size() (n int) {
  377. var l int
  378. _ = l
  379. l = len(m.Type)
  380. n += 1 + l + sovGenerated(uint64(l))
  381. l = len(m.Reason)
  382. n += 1 + l + sovGenerated(uint64(l))
  383. l = len(m.Message)
  384. n += 1 + l + sovGenerated(uint64(l))
  385. l = m.LastUpdateTime.Size()
  386. n += 1 + l + sovGenerated(uint64(l))
  387. return n
  388. }
  389. func (m *CertificateSigningRequestList) Size() (n int) {
  390. var l int
  391. _ = l
  392. l = m.ListMeta.Size()
  393. n += 1 + l + sovGenerated(uint64(l))
  394. if len(m.Items) > 0 {
  395. for _, e := range m.Items {
  396. l = e.Size()
  397. n += 1 + l + sovGenerated(uint64(l))
  398. }
  399. }
  400. return n
  401. }
  402. func (m *CertificateSigningRequestSpec) Size() (n int) {
  403. var l int
  404. _ = l
  405. if m.Request != nil {
  406. l = len(m.Request)
  407. n += 1 + l + sovGenerated(uint64(l))
  408. }
  409. l = len(m.Username)
  410. n += 1 + l + sovGenerated(uint64(l))
  411. l = len(m.UID)
  412. n += 1 + l + sovGenerated(uint64(l))
  413. if len(m.Groups) > 0 {
  414. for _, s := range m.Groups {
  415. l = len(s)
  416. n += 1 + l + sovGenerated(uint64(l))
  417. }
  418. }
  419. if len(m.Usages) > 0 {
  420. for _, s := range m.Usages {
  421. l = len(s)
  422. n += 1 + l + sovGenerated(uint64(l))
  423. }
  424. }
  425. if len(m.Extra) > 0 {
  426. for k, v := range m.Extra {
  427. _ = k
  428. _ = v
  429. l = v.Size()
  430. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
  431. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  432. }
  433. }
  434. return n
  435. }
  436. func (m *CertificateSigningRequestStatus) Size() (n int) {
  437. var l int
  438. _ = l
  439. if len(m.Conditions) > 0 {
  440. for _, e := range m.Conditions {
  441. l = e.Size()
  442. n += 1 + l + sovGenerated(uint64(l))
  443. }
  444. }
  445. if m.Certificate != nil {
  446. l = len(m.Certificate)
  447. n += 1 + l + sovGenerated(uint64(l))
  448. }
  449. return n
  450. }
  451. func (m ExtraValue) Size() (n int) {
  452. var l int
  453. _ = l
  454. if len(m) > 0 {
  455. for _, s := range m {
  456. l = len(s)
  457. n += 1 + l + sovGenerated(uint64(l))
  458. }
  459. }
  460. return n
  461. }
  462. func sovGenerated(x uint64) (n int) {
  463. for {
  464. n++
  465. x >>= 7
  466. if x == 0 {
  467. break
  468. }
  469. }
  470. return n
  471. }
  472. func sozGenerated(x uint64) (n int) {
  473. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  474. }
  475. func (this *CertificateSigningRequest) String() string {
  476. if this == nil {
  477. return "nil"
  478. }
  479. s := strings.Join([]string{`&CertificateSigningRequest{`,
  480. `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  481. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CertificateSigningRequestSpec", "CertificateSigningRequestSpec", 1), `&`, ``, 1) + `,`,
  482. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CertificateSigningRequestStatus", "CertificateSigningRequestStatus", 1), `&`, ``, 1) + `,`,
  483. `}`,
  484. }, "")
  485. return s
  486. }
  487. func (this *CertificateSigningRequestCondition) String() string {
  488. if this == nil {
  489. return "nil"
  490. }
  491. s := strings.Join([]string{`&CertificateSigningRequestCondition{`,
  492. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  493. `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
  494. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  495. `LastUpdateTime:` + strings.Replace(strings.Replace(this.LastUpdateTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
  496. `}`,
  497. }, "")
  498. return s
  499. }
  500. func (this *CertificateSigningRequestList) String() string {
  501. if this == nil {
  502. return "nil"
  503. }
  504. s := strings.Join([]string{`&CertificateSigningRequestList{`,
  505. `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
  506. `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CertificateSigningRequest", "CertificateSigningRequest", 1), `&`, ``, 1) + `,`,
  507. `}`,
  508. }, "")
  509. return s
  510. }
  511. func (this *CertificateSigningRequestSpec) String() string {
  512. if this == nil {
  513. return "nil"
  514. }
  515. keysForExtra := make([]string, 0, len(this.Extra))
  516. for k := range this.Extra {
  517. keysForExtra = append(keysForExtra, k)
  518. }
  519. github_com_gogo_protobuf_sortkeys.Strings(keysForExtra)
  520. mapStringForExtra := "map[string]ExtraValue{"
  521. for _, k := range keysForExtra {
  522. mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k])
  523. }
  524. mapStringForExtra += "}"
  525. s := strings.Join([]string{`&CertificateSigningRequestSpec{`,
  526. `Request:` + valueToStringGenerated(this.Request) + `,`,
  527. `Username:` + fmt.Sprintf("%v", this.Username) + `,`,
  528. `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
  529. `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  530. `Usages:` + fmt.Sprintf("%v", this.Usages) + `,`,
  531. `Extra:` + mapStringForExtra + `,`,
  532. `}`,
  533. }, "")
  534. return s
  535. }
  536. func (this *CertificateSigningRequestStatus) String() string {
  537. if this == nil {
  538. return "nil"
  539. }
  540. s := strings.Join([]string{`&CertificateSigningRequestStatus{`,
  541. `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "CertificateSigningRequestCondition", "CertificateSigningRequestCondition", 1), `&`, ``, 1) + `,`,
  542. `Certificate:` + valueToStringGenerated(this.Certificate) + `,`,
  543. `}`,
  544. }, "")
  545. return s
  546. }
  547. func valueToStringGenerated(v interface{}) string {
  548. rv := reflect.ValueOf(v)
  549. if rv.IsNil() {
  550. return "nil"
  551. }
  552. pv := reflect.Indirect(rv).Interface()
  553. return fmt.Sprintf("*%v", pv)
  554. }
  555. func (m *CertificateSigningRequest) Unmarshal(data []byte) error {
  556. l := len(data)
  557. iNdEx := 0
  558. for iNdEx < l {
  559. preIndex := iNdEx
  560. var wire uint64
  561. for shift := uint(0); ; shift += 7 {
  562. if shift >= 64 {
  563. return ErrIntOverflowGenerated
  564. }
  565. if iNdEx >= l {
  566. return io.ErrUnexpectedEOF
  567. }
  568. b := data[iNdEx]
  569. iNdEx++
  570. wire |= (uint64(b) & 0x7F) << shift
  571. if b < 0x80 {
  572. break
  573. }
  574. }
  575. fieldNum := int32(wire >> 3)
  576. wireType := int(wire & 0x7)
  577. if wireType == 4 {
  578. return fmt.Errorf("proto: CertificateSigningRequest: wiretype end group for non-group")
  579. }
  580. if fieldNum <= 0 {
  581. return fmt.Errorf("proto: CertificateSigningRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  582. }
  583. switch fieldNum {
  584. case 1:
  585. if wireType != 2 {
  586. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  587. }
  588. var msglen int
  589. for shift := uint(0); ; shift += 7 {
  590. if shift >= 64 {
  591. return ErrIntOverflowGenerated
  592. }
  593. if iNdEx >= l {
  594. return io.ErrUnexpectedEOF
  595. }
  596. b := data[iNdEx]
  597. iNdEx++
  598. msglen |= (int(b) & 0x7F) << shift
  599. if b < 0x80 {
  600. break
  601. }
  602. }
  603. if msglen < 0 {
  604. return ErrInvalidLengthGenerated
  605. }
  606. postIndex := iNdEx + msglen
  607. if postIndex > l {
  608. return io.ErrUnexpectedEOF
  609. }
  610. if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  611. return err
  612. }
  613. iNdEx = postIndex
  614. case 2:
  615. if wireType != 2 {
  616. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  617. }
  618. var msglen int
  619. for shift := uint(0); ; shift += 7 {
  620. if shift >= 64 {
  621. return ErrIntOverflowGenerated
  622. }
  623. if iNdEx >= l {
  624. return io.ErrUnexpectedEOF
  625. }
  626. b := data[iNdEx]
  627. iNdEx++
  628. msglen |= (int(b) & 0x7F) << shift
  629. if b < 0x80 {
  630. break
  631. }
  632. }
  633. if msglen < 0 {
  634. return ErrInvalidLengthGenerated
  635. }
  636. postIndex := iNdEx + msglen
  637. if postIndex > l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
  641. return err
  642. }
  643. iNdEx = postIndex
  644. case 3:
  645. if wireType != 2 {
  646. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  647. }
  648. var msglen int
  649. for shift := uint(0); ; shift += 7 {
  650. if shift >= 64 {
  651. return ErrIntOverflowGenerated
  652. }
  653. if iNdEx >= l {
  654. return io.ErrUnexpectedEOF
  655. }
  656. b := data[iNdEx]
  657. iNdEx++
  658. msglen |= (int(b) & 0x7F) << shift
  659. if b < 0x80 {
  660. break
  661. }
  662. }
  663. if msglen < 0 {
  664. return ErrInvalidLengthGenerated
  665. }
  666. postIndex := iNdEx + msglen
  667. if postIndex > l {
  668. return io.ErrUnexpectedEOF
  669. }
  670. if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
  671. return err
  672. }
  673. iNdEx = postIndex
  674. default:
  675. iNdEx = preIndex
  676. skippy, err := skipGenerated(data[iNdEx:])
  677. if err != nil {
  678. return err
  679. }
  680. if skippy < 0 {
  681. return ErrInvalidLengthGenerated
  682. }
  683. if (iNdEx + skippy) > l {
  684. return io.ErrUnexpectedEOF
  685. }
  686. iNdEx += skippy
  687. }
  688. }
  689. if iNdEx > l {
  690. return io.ErrUnexpectedEOF
  691. }
  692. return nil
  693. }
  694. func (m *CertificateSigningRequestCondition) Unmarshal(data []byte) error {
  695. l := len(data)
  696. iNdEx := 0
  697. for iNdEx < l {
  698. preIndex := iNdEx
  699. var wire uint64
  700. for shift := uint(0); ; shift += 7 {
  701. if shift >= 64 {
  702. return ErrIntOverflowGenerated
  703. }
  704. if iNdEx >= l {
  705. return io.ErrUnexpectedEOF
  706. }
  707. b := data[iNdEx]
  708. iNdEx++
  709. wire |= (uint64(b) & 0x7F) << shift
  710. if b < 0x80 {
  711. break
  712. }
  713. }
  714. fieldNum := int32(wire >> 3)
  715. wireType := int(wire & 0x7)
  716. if wireType == 4 {
  717. return fmt.Errorf("proto: CertificateSigningRequestCondition: wiretype end group for non-group")
  718. }
  719. if fieldNum <= 0 {
  720. return fmt.Errorf("proto: CertificateSigningRequestCondition: illegal tag %d (wire type %d)", fieldNum, wire)
  721. }
  722. switch fieldNum {
  723. case 1:
  724. if wireType != 2 {
  725. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  726. }
  727. var stringLen 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. stringLen |= (uint64(b) & 0x7F) << shift
  738. if b < 0x80 {
  739. break
  740. }
  741. }
  742. intStringLen := int(stringLen)
  743. if intStringLen < 0 {
  744. return ErrInvalidLengthGenerated
  745. }
  746. postIndex := iNdEx + intStringLen
  747. if postIndex > l {
  748. return io.ErrUnexpectedEOF
  749. }
  750. m.Type = RequestConditionType(data[iNdEx:postIndex])
  751. iNdEx = postIndex
  752. case 2:
  753. if wireType != 2 {
  754. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  755. }
  756. var stringLen uint64
  757. for shift := uint(0); ; shift += 7 {
  758. if shift >= 64 {
  759. return ErrIntOverflowGenerated
  760. }
  761. if iNdEx >= l {
  762. return io.ErrUnexpectedEOF
  763. }
  764. b := data[iNdEx]
  765. iNdEx++
  766. stringLen |= (uint64(b) & 0x7F) << shift
  767. if b < 0x80 {
  768. break
  769. }
  770. }
  771. intStringLen := int(stringLen)
  772. if intStringLen < 0 {
  773. return ErrInvalidLengthGenerated
  774. }
  775. postIndex := iNdEx + intStringLen
  776. if postIndex > l {
  777. return io.ErrUnexpectedEOF
  778. }
  779. m.Reason = string(data[iNdEx:postIndex])
  780. iNdEx = postIndex
  781. case 3:
  782. if wireType != 2 {
  783. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  784. }
  785. var stringLen uint64
  786. for shift := uint(0); ; shift += 7 {
  787. if shift >= 64 {
  788. return ErrIntOverflowGenerated
  789. }
  790. if iNdEx >= l {
  791. return io.ErrUnexpectedEOF
  792. }
  793. b := data[iNdEx]
  794. iNdEx++
  795. stringLen |= (uint64(b) & 0x7F) << shift
  796. if b < 0x80 {
  797. break
  798. }
  799. }
  800. intStringLen := int(stringLen)
  801. if intStringLen < 0 {
  802. return ErrInvalidLengthGenerated
  803. }
  804. postIndex := iNdEx + intStringLen
  805. if postIndex > l {
  806. return io.ErrUnexpectedEOF
  807. }
  808. m.Message = string(data[iNdEx:postIndex])
  809. iNdEx = postIndex
  810. case 4:
  811. if wireType != 2 {
  812. return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType)
  813. }
  814. var msglen int
  815. for shift := uint(0); ; shift += 7 {
  816. if shift >= 64 {
  817. return ErrIntOverflowGenerated
  818. }
  819. if iNdEx >= l {
  820. return io.ErrUnexpectedEOF
  821. }
  822. b := data[iNdEx]
  823. iNdEx++
  824. msglen |= (int(b) & 0x7F) << shift
  825. if b < 0x80 {
  826. break
  827. }
  828. }
  829. if msglen < 0 {
  830. return ErrInvalidLengthGenerated
  831. }
  832. postIndex := iNdEx + msglen
  833. if postIndex > l {
  834. return io.ErrUnexpectedEOF
  835. }
  836. if err := m.LastUpdateTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
  837. return err
  838. }
  839. iNdEx = postIndex
  840. default:
  841. iNdEx = preIndex
  842. skippy, err := skipGenerated(data[iNdEx:])
  843. if err != nil {
  844. return err
  845. }
  846. if skippy < 0 {
  847. return ErrInvalidLengthGenerated
  848. }
  849. if (iNdEx + skippy) > l {
  850. return io.ErrUnexpectedEOF
  851. }
  852. iNdEx += skippy
  853. }
  854. }
  855. if iNdEx > l {
  856. return io.ErrUnexpectedEOF
  857. }
  858. return nil
  859. }
  860. func (m *CertificateSigningRequestList) Unmarshal(data []byte) error {
  861. l := len(data)
  862. iNdEx := 0
  863. for iNdEx < l {
  864. preIndex := iNdEx
  865. var wire uint64
  866. for shift := uint(0); ; shift += 7 {
  867. if shift >= 64 {
  868. return ErrIntOverflowGenerated
  869. }
  870. if iNdEx >= l {
  871. return io.ErrUnexpectedEOF
  872. }
  873. b := data[iNdEx]
  874. iNdEx++
  875. wire |= (uint64(b) & 0x7F) << shift
  876. if b < 0x80 {
  877. break
  878. }
  879. }
  880. fieldNum := int32(wire >> 3)
  881. wireType := int(wire & 0x7)
  882. if wireType == 4 {
  883. return fmt.Errorf("proto: CertificateSigningRequestList: wiretype end group for non-group")
  884. }
  885. if fieldNum <= 0 {
  886. return fmt.Errorf("proto: CertificateSigningRequestList: illegal tag %d (wire type %d)", fieldNum, wire)
  887. }
  888. switch fieldNum {
  889. case 1:
  890. if wireType != 2 {
  891. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  892. }
  893. var msglen int
  894. for shift := uint(0); ; shift += 7 {
  895. if shift >= 64 {
  896. return ErrIntOverflowGenerated
  897. }
  898. if iNdEx >= l {
  899. return io.ErrUnexpectedEOF
  900. }
  901. b := data[iNdEx]
  902. iNdEx++
  903. msglen |= (int(b) & 0x7F) << shift
  904. if b < 0x80 {
  905. break
  906. }
  907. }
  908. if msglen < 0 {
  909. return ErrInvalidLengthGenerated
  910. }
  911. postIndex := iNdEx + msglen
  912. if postIndex > l {
  913. return io.ErrUnexpectedEOF
  914. }
  915. if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
  916. return err
  917. }
  918. iNdEx = postIndex
  919. case 2:
  920. if wireType != 2 {
  921. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  922. }
  923. var msglen int
  924. for shift := uint(0); ; shift += 7 {
  925. if shift >= 64 {
  926. return ErrIntOverflowGenerated
  927. }
  928. if iNdEx >= l {
  929. return io.ErrUnexpectedEOF
  930. }
  931. b := data[iNdEx]
  932. iNdEx++
  933. msglen |= (int(b) & 0x7F) << shift
  934. if b < 0x80 {
  935. break
  936. }
  937. }
  938. if msglen < 0 {
  939. return ErrInvalidLengthGenerated
  940. }
  941. postIndex := iNdEx + msglen
  942. if postIndex > l {
  943. return io.ErrUnexpectedEOF
  944. }
  945. m.Items = append(m.Items, CertificateSigningRequest{})
  946. if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  947. return err
  948. }
  949. iNdEx = postIndex
  950. default:
  951. iNdEx = preIndex
  952. skippy, err := skipGenerated(data[iNdEx:])
  953. if err != nil {
  954. return err
  955. }
  956. if skippy < 0 {
  957. return ErrInvalidLengthGenerated
  958. }
  959. if (iNdEx + skippy) > l {
  960. return io.ErrUnexpectedEOF
  961. }
  962. iNdEx += skippy
  963. }
  964. }
  965. if iNdEx > l {
  966. return io.ErrUnexpectedEOF
  967. }
  968. return nil
  969. }
  970. func (m *CertificateSigningRequestSpec) Unmarshal(data []byte) error {
  971. l := len(data)
  972. iNdEx := 0
  973. for iNdEx < l {
  974. preIndex := iNdEx
  975. var wire uint64
  976. for shift := uint(0); ; shift += 7 {
  977. if shift >= 64 {
  978. return ErrIntOverflowGenerated
  979. }
  980. if iNdEx >= l {
  981. return io.ErrUnexpectedEOF
  982. }
  983. b := data[iNdEx]
  984. iNdEx++
  985. wire |= (uint64(b) & 0x7F) << shift
  986. if b < 0x80 {
  987. break
  988. }
  989. }
  990. fieldNum := int32(wire >> 3)
  991. wireType := int(wire & 0x7)
  992. if wireType == 4 {
  993. return fmt.Errorf("proto: CertificateSigningRequestSpec: wiretype end group for non-group")
  994. }
  995. if fieldNum <= 0 {
  996. return fmt.Errorf("proto: CertificateSigningRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  997. }
  998. switch fieldNum {
  999. case 1:
  1000. if wireType != 2 {
  1001. return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
  1002. }
  1003. var byteLen int
  1004. for shift := uint(0); ; shift += 7 {
  1005. if shift >= 64 {
  1006. return ErrIntOverflowGenerated
  1007. }
  1008. if iNdEx >= l {
  1009. return io.ErrUnexpectedEOF
  1010. }
  1011. b := data[iNdEx]
  1012. iNdEx++
  1013. byteLen |= (int(b) & 0x7F) << shift
  1014. if b < 0x80 {
  1015. break
  1016. }
  1017. }
  1018. if byteLen < 0 {
  1019. return ErrInvalidLengthGenerated
  1020. }
  1021. postIndex := iNdEx + byteLen
  1022. if postIndex > l {
  1023. return io.ErrUnexpectedEOF
  1024. }
  1025. m.Request = append(m.Request[:0], data[iNdEx:postIndex]...)
  1026. if m.Request == nil {
  1027. m.Request = []byte{}
  1028. }
  1029. iNdEx = postIndex
  1030. case 2:
  1031. if wireType != 2 {
  1032. return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  1033. }
  1034. var stringLen uint64
  1035. for shift := uint(0); ; shift += 7 {
  1036. if shift >= 64 {
  1037. return ErrIntOverflowGenerated
  1038. }
  1039. if iNdEx >= l {
  1040. return io.ErrUnexpectedEOF
  1041. }
  1042. b := data[iNdEx]
  1043. iNdEx++
  1044. stringLen |= (uint64(b) & 0x7F) << shift
  1045. if b < 0x80 {
  1046. break
  1047. }
  1048. }
  1049. intStringLen := int(stringLen)
  1050. if intStringLen < 0 {
  1051. return ErrInvalidLengthGenerated
  1052. }
  1053. postIndex := iNdEx + intStringLen
  1054. if postIndex > l {
  1055. return io.ErrUnexpectedEOF
  1056. }
  1057. m.Username = string(data[iNdEx:postIndex])
  1058. iNdEx = postIndex
  1059. case 3:
  1060. if wireType != 2 {
  1061. return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
  1062. }
  1063. var stringLen uint64
  1064. for shift := uint(0); ; shift += 7 {
  1065. if shift >= 64 {
  1066. return ErrIntOverflowGenerated
  1067. }
  1068. if iNdEx >= l {
  1069. return io.ErrUnexpectedEOF
  1070. }
  1071. b := data[iNdEx]
  1072. iNdEx++
  1073. stringLen |= (uint64(b) & 0x7F) << shift
  1074. if b < 0x80 {
  1075. break
  1076. }
  1077. }
  1078. intStringLen := int(stringLen)
  1079. if intStringLen < 0 {
  1080. return ErrInvalidLengthGenerated
  1081. }
  1082. postIndex := iNdEx + intStringLen
  1083. if postIndex > l {
  1084. return io.ErrUnexpectedEOF
  1085. }
  1086. m.UID = string(data[iNdEx:postIndex])
  1087. iNdEx = postIndex
  1088. case 4:
  1089. if wireType != 2 {
  1090. return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  1091. }
  1092. var stringLen uint64
  1093. for shift := uint(0); ; shift += 7 {
  1094. if shift >= 64 {
  1095. return ErrIntOverflowGenerated
  1096. }
  1097. if iNdEx >= l {
  1098. return io.ErrUnexpectedEOF
  1099. }
  1100. b := data[iNdEx]
  1101. iNdEx++
  1102. stringLen |= (uint64(b) & 0x7F) << shift
  1103. if b < 0x80 {
  1104. break
  1105. }
  1106. }
  1107. intStringLen := int(stringLen)
  1108. if intStringLen < 0 {
  1109. return ErrInvalidLengthGenerated
  1110. }
  1111. postIndex := iNdEx + intStringLen
  1112. if postIndex > l {
  1113. return io.ErrUnexpectedEOF
  1114. }
  1115. m.Groups = append(m.Groups, string(data[iNdEx:postIndex]))
  1116. iNdEx = postIndex
  1117. case 5:
  1118. if wireType != 2 {
  1119. return fmt.Errorf("proto: wrong wireType = %d for field Usages", wireType)
  1120. }
  1121. var stringLen uint64
  1122. for shift := uint(0); ; shift += 7 {
  1123. if shift >= 64 {
  1124. return ErrIntOverflowGenerated
  1125. }
  1126. if iNdEx >= l {
  1127. return io.ErrUnexpectedEOF
  1128. }
  1129. b := data[iNdEx]
  1130. iNdEx++
  1131. stringLen |= (uint64(b) & 0x7F) << shift
  1132. if b < 0x80 {
  1133. break
  1134. }
  1135. }
  1136. intStringLen := int(stringLen)
  1137. if intStringLen < 0 {
  1138. return ErrInvalidLengthGenerated
  1139. }
  1140. postIndex := iNdEx + intStringLen
  1141. if postIndex > l {
  1142. return io.ErrUnexpectedEOF
  1143. }
  1144. m.Usages = append(m.Usages, KeyUsage(data[iNdEx:postIndex]))
  1145. iNdEx = postIndex
  1146. case 6:
  1147. if wireType != 2 {
  1148. return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType)
  1149. }
  1150. var msglen int
  1151. for shift := uint(0); ; shift += 7 {
  1152. if shift >= 64 {
  1153. return ErrIntOverflowGenerated
  1154. }
  1155. if iNdEx >= l {
  1156. return io.ErrUnexpectedEOF
  1157. }
  1158. b := data[iNdEx]
  1159. iNdEx++
  1160. msglen |= (int(b) & 0x7F) << shift
  1161. if b < 0x80 {
  1162. break
  1163. }
  1164. }
  1165. if msglen < 0 {
  1166. return ErrInvalidLengthGenerated
  1167. }
  1168. postIndex := iNdEx + msglen
  1169. if postIndex > l {
  1170. return io.ErrUnexpectedEOF
  1171. }
  1172. var keykey uint64
  1173. for shift := uint(0); ; shift += 7 {
  1174. if shift >= 64 {
  1175. return ErrIntOverflowGenerated
  1176. }
  1177. if iNdEx >= l {
  1178. return io.ErrUnexpectedEOF
  1179. }
  1180. b := data[iNdEx]
  1181. iNdEx++
  1182. keykey |= (uint64(b) & 0x7F) << shift
  1183. if b < 0x80 {
  1184. break
  1185. }
  1186. }
  1187. var stringLenmapkey uint64
  1188. for shift := uint(0); ; shift += 7 {
  1189. if shift >= 64 {
  1190. return ErrIntOverflowGenerated
  1191. }
  1192. if iNdEx >= l {
  1193. return io.ErrUnexpectedEOF
  1194. }
  1195. b := data[iNdEx]
  1196. iNdEx++
  1197. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  1198. if b < 0x80 {
  1199. break
  1200. }
  1201. }
  1202. intStringLenmapkey := int(stringLenmapkey)
  1203. if intStringLenmapkey < 0 {
  1204. return ErrInvalidLengthGenerated
  1205. }
  1206. postStringIndexmapkey := iNdEx + intStringLenmapkey
  1207. if postStringIndexmapkey > l {
  1208. return io.ErrUnexpectedEOF
  1209. }
  1210. mapkey := string(data[iNdEx:postStringIndexmapkey])
  1211. iNdEx = postStringIndexmapkey
  1212. var valuekey uint64
  1213. for shift := uint(0); ; shift += 7 {
  1214. if shift >= 64 {
  1215. return ErrIntOverflowGenerated
  1216. }
  1217. if iNdEx >= l {
  1218. return io.ErrUnexpectedEOF
  1219. }
  1220. b := data[iNdEx]
  1221. iNdEx++
  1222. valuekey |= (uint64(b) & 0x7F) << shift
  1223. if b < 0x80 {
  1224. break
  1225. }
  1226. }
  1227. var mapmsglen int
  1228. for shift := uint(0); ; shift += 7 {
  1229. if shift >= 64 {
  1230. return ErrIntOverflowGenerated
  1231. }
  1232. if iNdEx >= l {
  1233. return io.ErrUnexpectedEOF
  1234. }
  1235. b := data[iNdEx]
  1236. iNdEx++
  1237. mapmsglen |= (int(b) & 0x7F) << shift
  1238. if b < 0x80 {
  1239. break
  1240. }
  1241. }
  1242. if mapmsglen < 0 {
  1243. return ErrInvalidLengthGenerated
  1244. }
  1245. postmsgIndex := iNdEx + mapmsglen
  1246. if mapmsglen < 0 {
  1247. return ErrInvalidLengthGenerated
  1248. }
  1249. if postmsgIndex > l {
  1250. return io.ErrUnexpectedEOF
  1251. }
  1252. mapvalue := &ExtraValue{}
  1253. if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil {
  1254. return err
  1255. }
  1256. iNdEx = postmsgIndex
  1257. if m.Extra == nil {
  1258. m.Extra = make(map[string]ExtraValue)
  1259. }
  1260. m.Extra[mapkey] = *mapvalue
  1261. iNdEx = postIndex
  1262. default:
  1263. iNdEx = preIndex
  1264. skippy, err := skipGenerated(data[iNdEx:])
  1265. if err != nil {
  1266. return err
  1267. }
  1268. if skippy < 0 {
  1269. return ErrInvalidLengthGenerated
  1270. }
  1271. if (iNdEx + skippy) > l {
  1272. return io.ErrUnexpectedEOF
  1273. }
  1274. iNdEx += skippy
  1275. }
  1276. }
  1277. if iNdEx > l {
  1278. return io.ErrUnexpectedEOF
  1279. }
  1280. return nil
  1281. }
  1282. func (m *CertificateSigningRequestStatus) Unmarshal(data []byte) error {
  1283. l := len(data)
  1284. iNdEx := 0
  1285. for iNdEx < l {
  1286. preIndex := iNdEx
  1287. var wire uint64
  1288. for shift := uint(0); ; shift += 7 {
  1289. if shift >= 64 {
  1290. return ErrIntOverflowGenerated
  1291. }
  1292. if iNdEx >= l {
  1293. return io.ErrUnexpectedEOF
  1294. }
  1295. b := data[iNdEx]
  1296. iNdEx++
  1297. wire |= (uint64(b) & 0x7F) << shift
  1298. if b < 0x80 {
  1299. break
  1300. }
  1301. }
  1302. fieldNum := int32(wire >> 3)
  1303. wireType := int(wire & 0x7)
  1304. if wireType == 4 {
  1305. return fmt.Errorf("proto: CertificateSigningRequestStatus: wiretype end group for non-group")
  1306. }
  1307. if fieldNum <= 0 {
  1308. return fmt.Errorf("proto: CertificateSigningRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1309. }
  1310. switch fieldNum {
  1311. case 1:
  1312. if wireType != 2 {
  1313. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  1314. }
  1315. var msglen int
  1316. for shift := uint(0); ; shift += 7 {
  1317. if shift >= 64 {
  1318. return ErrIntOverflowGenerated
  1319. }
  1320. if iNdEx >= l {
  1321. return io.ErrUnexpectedEOF
  1322. }
  1323. b := data[iNdEx]
  1324. iNdEx++
  1325. msglen |= (int(b) & 0x7F) << shift
  1326. if b < 0x80 {
  1327. break
  1328. }
  1329. }
  1330. if msglen < 0 {
  1331. return ErrInvalidLengthGenerated
  1332. }
  1333. postIndex := iNdEx + msglen
  1334. if postIndex > l {
  1335. return io.ErrUnexpectedEOF
  1336. }
  1337. m.Conditions = append(m.Conditions, CertificateSigningRequestCondition{})
  1338. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1339. return err
  1340. }
  1341. iNdEx = postIndex
  1342. case 2:
  1343. if wireType != 2 {
  1344. return fmt.Errorf("proto: wrong wireType = %d for field Certificate", wireType)
  1345. }
  1346. var byteLen int
  1347. for shift := uint(0); ; shift += 7 {
  1348. if shift >= 64 {
  1349. return ErrIntOverflowGenerated
  1350. }
  1351. if iNdEx >= l {
  1352. return io.ErrUnexpectedEOF
  1353. }
  1354. b := data[iNdEx]
  1355. iNdEx++
  1356. byteLen |= (int(b) & 0x7F) << shift
  1357. if b < 0x80 {
  1358. break
  1359. }
  1360. }
  1361. if byteLen < 0 {
  1362. return ErrInvalidLengthGenerated
  1363. }
  1364. postIndex := iNdEx + byteLen
  1365. if postIndex > l {
  1366. return io.ErrUnexpectedEOF
  1367. }
  1368. m.Certificate = append(m.Certificate[:0], data[iNdEx:postIndex]...)
  1369. if m.Certificate == nil {
  1370. m.Certificate = []byte{}
  1371. }
  1372. iNdEx = postIndex
  1373. default:
  1374. iNdEx = preIndex
  1375. skippy, err := skipGenerated(data[iNdEx:])
  1376. if err != nil {
  1377. return err
  1378. }
  1379. if skippy < 0 {
  1380. return ErrInvalidLengthGenerated
  1381. }
  1382. if (iNdEx + skippy) > l {
  1383. return io.ErrUnexpectedEOF
  1384. }
  1385. iNdEx += skippy
  1386. }
  1387. }
  1388. if iNdEx > l {
  1389. return io.ErrUnexpectedEOF
  1390. }
  1391. return nil
  1392. }
  1393. func (m *ExtraValue) Unmarshal(data []byte) error {
  1394. l := len(data)
  1395. iNdEx := 0
  1396. for iNdEx < l {
  1397. preIndex := iNdEx
  1398. var wire uint64
  1399. for shift := uint(0); ; shift += 7 {
  1400. if shift >= 64 {
  1401. return ErrIntOverflowGenerated
  1402. }
  1403. if iNdEx >= l {
  1404. return io.ErrUnexpectedEOF
  1405. }
  1406. b := data[iNdEx]
  1407. iNdEx++
  1408. wire |= (uint64(b) & 0x7F) << shift
  1409. if b < 0x80 {
  1410. break
  1411. }
  1412. }
  1413. fieldNum := int32(wire >> 3)
  1414. wireType := int(wire & 0x7)
  1415. if wireType == 4 {
  1416. return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group")
  1417. }
  1418. if fieldNum <= 0 {
  1419. return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire)
  1420. }
  1421. switch fieldNum {
  1422. case 1:
  1423. if wireType != 2 {
  1424. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1425. }
  1426. var stringLen uint64
  1427. for shift := uint(0); ; shift += 7 {
  1428. if shift >= 64 {
  1429. return ErrIntOverflowGenerated
  1430. }
  1431. if iNdEx >= l {
  1432. return io.ErrUnexpectedEOF
  1433. }
  1434. b := data[iNdEx]
  1435. iNdEx++
  1436. stringLen |= (uint64(b) & 0x7F) << shift
  1437. if b < 0x80 {
  1438. break
  1439. }
  1440. }
  1441. intStringLen := int(stringLen)
  1442. if intStringLen < 0 {
  1443. return ErrInvalidLengthGenerated
  1444. }
  1445. postIndex := iNdEx + intStringLen
  1446. if postIndex > l {
  1447. return io.ErrUnexpectedEOF
  1448. }
  1449. *m = append(*m, string(data[iNdEx:postIndex]))
  1450. iNdEx = postIndex
  1451. default:
  1452. iNdEx = preIndex
  1453. skippy, err := skipGenerated(data[iNdEx:])
  1454. if err != nil {
  1455. return err
  1456. }
  1457. if skippy < 0 {
  1458. return ErrInvalidLengthGenerated
  1459. }
  1460. if (iNdEx + skippy) > l {
  1461. return io.ErrUnexpectedEOF
  1462. }
  1463. iNdEx += skippy
  1464. }
  1465. }
  1466. if iNdEx > l {
  1467. return io.ErrUnexpectedEOF
  1468. }
  1469. return nil
  1470. }
  1471. func skipGenerated(data []byte) (n int, err error) {
  1472. l := len(data)
  1473. iNdEx := 0
  1474. for iNdEx < l {
  1475. var wire uint64
  1476. for shift := uint(0); ; shift += 7 {
  1477. if shift >= 64 {
  1478. return 0, ErrIntOverflowGenerated
  1479. }
  1480. if iNdEx >= l {
  1481. return 0, io.ErrUnexpectedEOF
  1482. }
  1483. b := data[iNdEx]
  1484. iNdEx++
  1485. wire |= (uint64(b) & 0x7F) << shift
  1486. if b < 0x80 {
  1487. break
  1488. }
  1489. }
  1490. wireType := int(wire & 0x7)
  1491. switch wireType {
  1492. case 0:
  1493. for shift := uint(0); ; shift += 7 {
  1494. if shift >= 64 {
  1495. return 0, ErrIntOverflowGenerated
  1496. }
  1497. if iNdEx >= l {
  1498. return 0, io.ErrUnexpectedEOF
  1499. }
  1500. iNdEx++
  1501. if data[iNdEx-1] < 0x80 {
  1502. break
  1503. }
  1504. }
  1505. return iNdEx, nil
  1506. case 1:
  1507. iNdEx += 8
  1508. return iNdEx, nil
  1509. case 2:
  1510. var length int
  1511. for shift := uint(0); ; shift += 7 {
  1512. if shift >= 64 {
  1513. return 0, ErrIntOverflowGenerated
  1514. }
  1515. if iNdEx >= l {
  1516. return 0, io.ErrUnexpectedEOF
  1517. }
  1518. b := data[iNdEx]
  1519. iNdEx++
  1520. length |= (int(b) & 0x7F) << shift
  1521. if b < 0x80 {
  1522. break
  1523. }
  1524. }
  1525. iNdEx += length
  1526. if length < 0 {
  1527. return 0, ErrInvalidLengthGenerated
  1528. }
  1529. return iNdEx, nil
  1530. case 3:
  1531. for {
  1532. var innerWire uint64
  1533. var start int = iNdEx
  1534. for shift := uint(0); ; shift += 7 {
  1535. if shift >= 64 {
  1536. return 0, ErrIntOverflowGenerated
  1537. }
  1538. if iNdEx >= l {
  1539. return 0, io.ErrUnexpectedEOF
  1540. }
  1541. b := data[iNdEx]
  1542. iNdEx++
  1543. innerWire |= (uint64(b) & 0x7F) << shift
  1544. if b < 0x80 {
  1545. break
  1546. }
  1547. }
  1548. innerWireType := int(innerWire & 0x7)
  1549. if innerWireType == 4 {
  1550. break
  1551. }
  1552. next, err := skipGenerated(data[start:])
  1553. if err != nil {
  1554. return 0, err
  1555. }
  1556. iNdEx = start + next
  1557. }
  1558. return iNdEx, nil
  1559. case 4:
  1560. return iNdEx, nil
  1561. case 5:
  1562. iNdEx += 4
  1563. return iNdEx, nil
  1564. default:
  1565. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1566. }
  1567. }
  1568. panic("unreachable")
  1569. }
  1570. var (
  1571. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  1572. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  1573. )
  1574. var fileDescriptorGenerated = []byte{
  1575. // 839 bytes of a gzipped FileDescriptorProto
  1576. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x8f, 0xdb, 0x44,
  1577. 0x14, 0x8e, 0xf3, 0x6b, 0x93, 0xc9, 0xb2, 0xad, 0x46, 0xa8, 0x32, 0x2b, 0xd5, 0x5e, 0x59, 0x80,
  1578. 0xb6, 0xa8, 0xd8, 0x64, 0x41, 0xb0, 0x2a, 0x07, 0x24, 0x97, 0x0a, 0x15, 0x5a, 0x7e, 0xcc, 0x36,
  1579. 0x48, 0x20, 0x0e, 0x4c, 0x9c, 0x57, 0xef, 0x34, 0xf1, 0x0f, 0x3c, 0xe3, 0x68, 0x73, 0x41, 0xbd,
  1580. 0x71, 0xe5, 0xc8, 0x05, 0x89, 0x3f, 0x67, 0x8f, 0x3d, 0x72, 0x40, 0x11, 0x1b, 0x4e, 0x5c, 0xf8,
  1581. 0x03, 0x7a, 0x42, 0x33, 0x9e, 0xc4, 0x66, 0xd3, 0xd0, 0x56, 0xca, 0xcd, 0xf3, 0xcd, 0xf7, 0xbe,
  1582. 0xf7, 0xde, 0xf7, 0x9e, 0x07, 0x7d, 0x34, 0x3e, 0xe6, 0x2e, 0x4b, 0xbc, 0x71, 0x3e, 0x84, 0x2c,
  1583. 0x06, 0x01, 0xdc, 0x4b, 0xc7, 0xa1, 0x47, 0x53, 0xc6, 0xbd, 0x00, 0x32, 0xc1, 0x1e, 0xb2, 0x80,
  1584. 0x4a, 0x74, 0xda, 0x1f, 0x82, 0xa0, 0x7d, 0x2f, 0x84, 0x18, 0x32, 0x2a, 0x60, 0xe4, 0xa6, 0x59,
  1585. 0x22, 0x12, 0xec, 0x15, 0x02, 0x6e, 0x29, 0xe0, 0xa6, 0xe3, 0xd0, 0x95, 0x02, 0x6e, 0x55, 0xc0,
  1586. 0xd5, 0x02, 0xfb, 0x6f, 0x87, 0x4c, 0x9c, 0xe6, 0x43, 0x37, 0x48, 0x22, 0x2f, 0x4c, 0xc2, 0xc4,
  1587. 0x53, 0x3a, 0xc3, 0xfc, 0xa1, 0x3a, 0xa9, 0x83, 0xfa, 0x2a, 0xf4, 0xf7, 0xdf, 0xd3, 0x05, 0xd2,
  1588. 0x94, 0x45, 0x34, 0x38, 0x65, 0x31, 0x64, 0xb3, 0xb2, 0xc4, 0x08, 0x04, 0xf5, 0xa6, 0x6b, 0x55,
  1589. 0xed, 0x7b, 0x9b, 0xa2, 0xb2, 0x3c, 0x16, 0x2c, 0x82, 0xb5, 0x80, 0xf7, 0x9f, 0x17, 0xc0, 0x83,
  1590. 0x53, 0x88, 0xe8, 0x5a, 0xdc, 0xbb, 0x9b, 0xe2, 0x72, 0xc1, 0x26, 0x1e, 0x8b, 0x05, 0x17, 0xd9,
  1591. 0x5a, 0x50, 0xa5, 0x27, 0x0e, 0xd9, 0x14, 0xb2, 0xb2, 0x21, 0x38, 0xa3, 0x51, 0x3a, 0x81, 0x67,
  1592. 0xf5, 0x74, 0x73, 0xe3, 0xa8, 0x9e, 0xc1, 0x76, 0xfe, 0xae, 0xa3, 0xd7, 0x6e, 0x97, 0xfe, 0x9f,
  1593. 0xb0, 0x30, 0x66, 0x71, 0x48, 0xe0, 0x87, 0x1c, 0xb8, 0xc0, 0xdf, 0xa3, 0x8e, 0xb4, 0x6e, 0x44,
  1594. 0x05, 0x35, 0x8d, 0x03, 0xe3, 0xb0, 0x77, 0xf4, 0x8e, 0xab, 0x07, 0x59, 0xed, 0xa4, 0x1c, 0xa5,
  1595. 0x64, 0xbb, 0xd3, 0xbe, 0xfb, 0xc5, 0xf0, 0x11, 0x04, 0xe2, 0x3e, 0x08, 0xea, 0xe3, 0xf3, 0xb9,
  1596. 0x5d, 0x5b, 0xcc, 0x6d, 0x54, 0x62, 0x64, 0xa5, 0x8a, 0x53, 0xd4, 0xe4, 0x29, 0x04, 0x66, 0x5d,
  1597. 0xa9, 0x7f, 0xee, 0xbe, 0xe4, 0x9a, 0xb8, 0x1b, 0x6b, 0x3f, 0x49, 0x21, 0xf0, 0x77, 0x75, 0xee,
  1598. 0xa6, 0x3c, 0x11, 0x95, 0x09, 0x9f, 0xa1, 0x36, 0x17, 0x54, 0xe4, 0xdc, 0x6c, 0xa8, 0x9c, 0x5f,
  1599. 0x6e, 0x31, 0xa7, 0xd2, 0xf5, 0xf7, 0x74, 0xd6, 0x76, 0x71, 0x26, 0x3a, 0x9f, 0xf3, 0x6b, 0x1d,
  1600. 0x39, 0x1b, 0x63, 0x6f, 0x27, 0xf1, 0x88, 0x09, 0x96, 0xc4, 0xf8, 0x18, 0x35, 0xc5, 0x2c, 0x05,
  1601. 0x65, 0x78, 0xd7, 0x7f, 0x7d, 0xd9, 0xc2, 0x83, 0x59, 0x0a, 0x4f, 0xe7, 0xf6, 0xab, 0x97, 0xf9,
  1602. 0x12, 0x27, 0x2a, 0x02, 0xbf, 0x89, 0xda, 0x19, 0x50, 0x9e, 0xc4, 0xca, 0xce, 0x6e, 0x59, 0x08,
  1603. 0x51, 0x28, 0xd1, 0xb7, 0xf8, 0x06, 0xda, 0x89, 0x80, 0x73, 0x1a, 0x82, 0xf2, 0xa0, 0xeb, 0x5f,
  1604. 0xd1, 0xc4, 0x9d, 0xfb, 0x05, 0x4c, 0x96, 0xf7, 0xf8, 0x11, 0xda, 0x9b, 0x50, 0x2e, 0x06, 0xe9,
  1605. 0x88, 0x0a, 0x78, 0xc0, 0x22, 0x30, 0x9b, 0xca, 0xb5, 0xb7, 0x5e, 0x6c, 0x0f, 0x64, 0x84, 0x7f,
  1606. 0x4d, 0xab, 0xef, 0xdd, 0xfb, 0x8f, 0x12, 0xb9, 0xa4, 0xec, 0xfc, 0x63, 0xa0, 0xeb, 0x1b, 0xfd,
  1607. 0xb9, 0xc7, 0xb8, 0xc0, 0xdf, 0xad, 0xed, 0xa3, 0xfb, 0x62, 0x75, 0xc8, 0x68, 0xb5, 0x8d, 0x57,
  1608. 0x75, 0x2d, 0x9d, 0x25, 0x52, 0xd9, 0xc5, 0x04, 0xb5, 0x98, 0x80, 0x88, 0x9b, 0xf5, 0x83, 0xc6,
  1609. 0x61, 0xef, 0xe8, 0xd3, 0xed, 0x2d, 0x86, 0xff, 0x8a, 0x4e, 0xdb, 0xba, 0x2b, 0x13, 0x90, 0x22,
  1610. 0x8f, 0xb3, 0x68, 0xfc, 0x4f, 0xc3, 0x72, 0x65, 0xf1, 0x1b, 0x68, 0x27, 0x2b, 0x8e, 0xaa, 0xdf,
  1611. 0x5d, 0xbf, 0x27, 0xa7, 0xa4, 0x19, 0x64, 0x79, 0x87, 0x6f, 0xa2, 0x4e, 0xce, 0x21, 0x8b, 0x69,
  1612. 0x04, 0x7a, 0xf4, 0xab, 0x3e, 0x07, 0x1a, 0x27, 0x2b, 0x06, 0xbe, 0x8e, 0x1a, 0x39, 0x1b, 0xe9,
  1613. 0xd1, 0xf7, 0x34, 0xb1, 0x31, 0xb8, 0xfb, 0x31, 0x91, 0x38, 0x76, 0x50, 0x3b, 0xcc, 0x92, 0x3c,
  1614. 0xe5, 0x66, 0xf3, 0xa0, 0x71, 0xd8, 0xf5, 0x91, 0xdc, 0xa0, 0x4f, 0x14, 0x42, 0xf4, 0x0d, 0x3e,
  1615. 0x42, 0x9d, 0x31, 0xcc, 0x06, 0x6a, 0x85, 0x5a, 0x8a, 0x75, 0x4d, 0xb2, 0x14, 0xc0, 0x9f, 0xce,
  1616. 0xed, 0xce, 0x67, 0xfa, 0x96, 0xac, 0x78, 0xf8, 0x47, 0xd4, 0x82, 0x33, 0x91, 0x51, 0xb3, 0xad,
  1617. 0xec, 0xfd, 0x66, 0xbb, 0xff, 0xba, 0x7b, 0x47, 0x6a, 0xdf, 0x89, 0x45, 0x36, 0x2b, 0xdd, 0x56,
  1618. 0x18, 0x29, 0xd2, 0xee, 0xe7, 0x08, 0x95, 0x1c, 0x7c, 0x15, 0x35, 0xc6, 0x30, 0x2b, 0x7e, 0x32,
  1619. 0x22, 0x3f, 0xf1, 0x57, 0xa8, 0x35, 0xa5, 0x93, 0x1c, 0xf4, 0x5b, 0xf4, 0xe1, 0x4b, 0xd7, 0xa7,
  1620. 0xd4, 0xbf, 0x96, 0x12, 0xa4, 0x50, 0xba, 0x55, 0x3f, 0x36, 0x9c, 0xb9, 0x81, 0xec, 0xe7, 0xbc,
  1621. 0x18, 0xf8, 0x27, 0x03, 0xa1, 0x60, 0xf9, 0x43, 0x73, 0xd3, 0x50, 0x06, 0x9d, 0x6c, 0xcf, 0xa0,
  1622. 0xd5, 0x63, 0x51, 0xbe, 0xc6, 0x2b, 0x88, 0x93, 0x4a, 0x6a, 0xdc, 0x47, 0xbd, 0x8a, 0xb4, 0xb2,
  1623. 0x62, 0xd7, 0xbf, 0xb2, 0x98, 0xdb, 0xbd, 0x8a, 0x38, 0xa9, 0x72, 0x9c, 0x0f, 0xb4, 0xaf, 0xaa,
  1624. 0x73, 0x6c, 0x2f, 0x7f, 0x22, 0x43, 0xad, 0x45, 0xf7, 0xf2, 0xd2, 0xdf, 0xea, 0xfc, 0xf2, 0x9b,
  1625. 0x5d, 0x7b, 0xfc, 0xc7, 0x41, 0xcd, 0xbf, 0x71, 0x7e, 0x61, 0xd5, 0x9e, 0x5c, 0x58, 0xb5, 0xdf,
  1626. 0x2f, 0xac, 0xda, 0xe3, 0x85, 0x65, 0x9c, 0x2f, 0x2c, 0xe3, 0xc9, 0xc2, 0x32, 0xfe, 0x5c, 0x58,
  1627. 0xc6, 0xcf, 0x7f, 0x59, 0xb5, 0x6f, 0x77, 0x74, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x07,
  1628. 0x0c, 0x3b, 0x3a, 0x80, 0x08, 0x00, 0x00,
  1629. }