generated.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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/certificates/v1alpha1/generated.proto
  15. package v1alpha1
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. proto "github.com/gogo/protobuf/proto"
  20. math "math"
  21. math_bits "math/bits"
  22. reflect "reflect"
  23. strings "strings"
  24. )
  25. // Reference imports to suppress errors if they are not otherwise used.
  26. var _ = proto.Marshal
  27. var _ = fmt.Errorf
  28. var _ = math.Inf
  29. // This is a compile-time assertion to ensure that this generated file
  30. // is compatible with the proto package it is being compiled against.
  31. // A compilation error at this line likely means your copy of the
  32. // proto package needs to be updated.
  33. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  34. func (m *ClusterTrustBundle) Reset() { *m = ClusterTrustBundle{} }
  35. func (*ClusterTrustBundle) ProtoMessage() {}
  36. func (*ClusterTrustBundle) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_8915b0d419f9eda6, []int{0}
  38. }
  39. func (m *ClusterTrustBundle) XXX_Unmarshal(b []byte) error {
  40. return m.Unmarshal(b)
  41. }
  42. func (m *ClusterTrustBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. b = b[:cap(b)]
  44. n, err := m.MarshalToSizedBuffer(b)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return b[:n], nil
  49. }
  50. func (m *ClusterTrustBundle) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_ClusterTrustBundle.Merge(m, src)
  52. }
  53. func (m *ClusterTrustBundle) XXX_Size() int {
  54. return m.Size()
  55. }
  56. func (m *ClusterTrustBundle) XXX_DiscardUnknown() {
  57. xxx_messageInfo_ClusterTrustBundle.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_ClusterTrustBundle proto.InternalMessageInfo
  60. func (m *ClusterTrustBundleList) Reset() { *m = ClusterTrustBundleList{} }
  61. func (*ClusterTrustBundleList) ProtoMessage() {}
  62. func (*ClusterTrustBundleList) Descriptor() ([]byte, []int) {
  63. return fileDescriptor_8915b0d419f9eda6, []int{1}
  64. }
  65. func (m *ClusterTrustBundleList) XXX_Unmarshal(b []byte) error {
  66. return m.Unmarshal(b)
  67. }
  68. func (m *ClusterTrustBundleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  69. b = b[:cap(b)]
  70. n, err := m.MarshalToSizedBuffer(b)
  71. if err != nil {
  72. return nil, err
  73. }
  74. return b[:n], nil
  75. }
  76. func (m *ClusterTrustBundleList) XXX_Merge(src proto.Message) {
  77. xxx_messageInfo_ClusterTrustBundleList.Merge(m, src)
  78. }
  79. func (m *ClusterTrustBundleList) XXX_Size() int {
  80. return m.Size()
  81. }
  82. func (m *ClusterTrustBundleList) XXX_DiscardUnknown() {
  83. xxx_messageInfo_ClusterTrustBundleList.DiscardUnknown(m)
  84. }
  85. var xxx_messageInfo_ClusterTrustBundleList proto.InternalMessageInfo
  86. func (m *ClusterTrustBundleSpec) Reset() { *m = ClusterTrustBundleSpec{} }
  87. func (*ClusterTrustBundleSpec) ProtoMessage() {}
  88. func (*ClusterTrustBundleSpec) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_8915b0d419f9eda6, []int{2}
  90. }
  91. func (m *ClusterTrustBundleSpec) XXX_Unmarshal(b []byte) error {
  92. return m.Unmarshal(b)
  93. }
  94. func (m *ClusterTrustBundleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. b = b[:cap(b)]
  96. n, err := m.MarshalToSizedBuffer(b)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return b[:n], nil
  101. }
  102. func (m *ClusterTrustBundleSpec) XXX_Merge(src proto.Message) {
  103. xxx_messageInfo_ClusterTrustBundleSpec.Merge(m, src)
  104. }
  105. func (m *ClusterTrustBundleSpec) XXX_Size() int {
  106. return m.Size()
  107. }
  108. func (m *ClusterTrustBundleSpec) XXX_DiscardUnknown() {
  109. xxx_messageInfo_ClusterTrustBundleSpec.DiscardUnknown(m)
  110. }
  111. var xxx_messageInfo_ClusterTrustBundleSpec proto.InternalMessageInfo
  112. func init() {
  113. proto.RegisterType((*ClusterTrustBundle)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundle")
  114. proto.RegisterType((*ClusterTrustBundleList)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleList")
  115. proto.RegisterType((*ClusterTrustBundleSpec)(nil), "k8s.io.api.certificates.v1alpha1.ClusterTrustBundleSpec")
  116. }
  117. func init() {
  118. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1alpha1/generated.proto", fileDescriptor_8915b0d419f9eda6)
  119. }
  120. var fileDescriptor_8915b0d419f9eda6 = []byte{
  121. // 448 bytes of a gzipped FileDescriptorProto
  122. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6b, 0x13, 0x41,
  123. 0x14, 0xc7, 0x77, 0x6a, 0x0b, 0xed, 0x44, 0x41, 0x56, 0x90, 0x90, 0xc3, 0x34, 0xe4, 0xd4, 0x8b,
  124. 0x33, 0x26, 0x54, 0xe9, 0x79, 0x05, 0xa1, 0xe0, 0x0f, 0xd8, 0x7a, 0xb1, 0x78, 0x70, 0x32, 0x79,
  125. 0xdd, 0x8c, 0xc9, 0xee, 0x0e, 0x33, 0xb3, 0x01, 0x6f, 0x82, 0xff, 0x80, 0x7f, 0x56, 0x8e, 0xd5,
  126. 0x53, 0x4f, 0xc5, 0xac, 0xff, 0x88, 0xcc, 0x64, 0x93, 0x5d, 0x5c, 0x25, 0xd2, 0xdb, 0xbe, 0x1f,
  127. 0x9f, 0xef, 0x7b, 0xdf, 0xb7, 0x0c, 0x3e, 0x9f, 0x9d, 0x19, 0x2a, 0x73, 0x36, 0x2b, 0xc6, 0xa0,
  128. 0x33, 0xb0, 0x60, 0xd8, 0x02, 0xb2, 0x49, 0xae, 0x59, 0x55, 0xe0, 0x4a, 0x32, 0x01, 0xda, 0xca,
  129. 0x2b, 0x29, 0xb8, 0x2f, 0x0f, 0xf9, 0x5c, 0x4d, 0xf9, 0x90, 0x25, 0x90, 0x81, 0xe6, 0x16, 0x26,
  130. 0x54, 0xe9, 0xdc, 0xe6, 0x61, 0x7f, 0x4d, 0x50, 0xae, 0x24, 0x6d, 0x12, 0x74, 0x43, 0xf4, 0x9e,
  131. 0x24, 0xd2, 0x4e, 0x8b, 0x31, 0x15, 0x79, 0xca, 0x92, 0x3c, 0xc9, 0x99, 0x07, 0xc7, 0xc5, 0x95,
  132. 0x8f, 0x7c, 0xe0, 0xbf, 0xd6, 0x82, 0xbd, 0xd3, 0x7a, 0x85, 0x94, 0x8b, 0xa9, 0xcc, 0x40, 0x7f,
  133. 0x66, 0x6a, 0x96, 0xb8, 0x84, 0x61, 0x29, 0x58, 0xce, 0x16, 0xad, 0x35, 0x7a, 0xec, 0x5f, 0x94,
  134. 0x2e, 0x32, 0x2b, 0x53, 0x68, 0x01, 0xcf, 0x77, 0x01, 0x46, 0x4c, 0x21, 0xe5, 0x7f, 0x72, 0x83,
  135. 0x1f, 0x08, 0x87, 0x2f, 0xe6, 0x85, 0xb1, 0xa0, 0xdf, 0xe9, 0xc2, 0xd8, 0xa8, 0xc8, 0x26, 0x73,
  136. 0x08, 0x3f, 0xe2, 0x43, 0xb7, 0xda, 0x84, 0x5b, 0xde, 0x45, 0x7d, 0x74, 0xd2, 0x19, 0x3d, 0xa5,
  137. 0xf5, 0x65, 0xb6, 0x13, 0xa8, 0x9a, 0x25, 0x2e, 0x61, 0xa8, 0xeb, 0xa6, 0x8b, 0x21, 0x7d, 0x3b,
  138. 0xfe, 0x04, 0xc2, 0xbe, 0x06, 0xcb, 0xa3, 0x70, 0x79, 0x7b, 0x1c, 0x94, 0xb7, 0xc7, 0xb8, 0xce,
  139. 0xc5, 0x5b, 0xd5, 0xf0, 0x12, 0xef, 0x1b, 0x05, 0xa2, 0xbb, 0xe7, 0xd5, 0xcf, 0xe8, 0xae, 0xbb,
  140. 0xd3, 0xf6, 0x96, 0x17, 0x0a, 0x44, 0x74, 0xbf, 0x9a, 0xb2, 0xef, 0xa2, 0xd8, 0x6b, 0x0e, 0xbe,
  141. 0x23, 0xfc, 0xb8, 0xdd, 0xfe, 0x4a, 0x1a, 0x1b, 0x7e, 0x68, 0x19, 0xa3, 0xff, 0x67, 0xcc, 0xd1,
  142. 0xde, 0xd6, 0xc3, 0x6a, 0xe0, 0xe1, 0x26, 0xd3, 0x30, 0xf5, 0x1e, 0x1f, 0x48, 0x0b, 0xa9, 0xe9,
  143. 0xee, 0xf5, 0xef, 0x9d, 0x74, 0x46, 0xa7, 0x77, 0x71, 0x15, 0x3d, 0xa8, 0x06, 0x1c, 0x9c, 0x3b,
  144. 0xa9, 0x78, 0xad, 0x38, 0xf8, 0xfa, 0x57, 0x4f, 0xce, 0x74, 0x38, 0xc2, 0xd8, 0xc8, 0x24, 0x03,
  145. 0xfd, 0x86, 0xa7, 0xe0, 0x5d, 0x1d, 0xd5, 0xc7, 0xbf, 0xd8, 0x56, 0xe2, 0x46, 0x57, 0xf8, 0x0c,
  146. 0x77, 0x6c, 0x2d, 0xe3, 0xff, 0xc2, 0x51, 0xf4, 0xa8, 0x82, 0x3a, 0x8d, 0x09, 0x71, 0xb3, 0x2f,
  147. 0x7a, 0xb9, 0x5c, 0x91, 0xe0, 0x7a, 0x45, 0x82, 0x9b, 0x15, 0x09, 0xbe, 0x94, 0x04, 0x2d, 0x4b,
  148. 0x82, 0xae, 0x4b, 0x82, 0x6e, 0x4a, 0x82, 0x7e, 0x96, 0x04, 0x7d, 0xfb, 0x45, 0x82, 0xcb, 0xfe,
  149. 0xae, 0x67, 0xf7, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x05, 0xe9, 0xaa, 0x07, 0xb2, 0x03, 0x00, 0x00,
  150. }
  151. func (m *ClusterTrustBundle) Marshal() (dAtA []byte, err error) {
  152. size := m.Size()
  153. dAtA = make([]byte, size)
  154. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  155. if err != nil {
  156. return nil, err
  157. }
  158. return dAtA[:n], nil
  159. }
  160. func (m *ClusterTrustBundle) MarshalTo(dAtA []byte) (int, error) {
  161. size := m.Size()
  162. return m.MarshalToSizedBuffer(dAtA[:size])
  163. }
  164. func (m *ClusterTrustBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  165. i := len(dAtA)
  166. _ = i
  167. var l int
  168. _ = l
  169. {
  170. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  171. if err != nil {
  172. return 0, err
  173. }
  174. i -= size
  175. i = encodeVarintGenerated(dAtA, i, uint64(size))
  176. }
  177. i--
  178. dAtA[i] = 0x12
  179. {
  180. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  181. if err != nil {
  182. return 0, err
  183. }
  184. i -= size
  185. i = encodeVarintGenerated(dAtA, i, uint64(size))
  186. }
  187. i--
  188. dAtA[i] = 0xa
  189. return len(dAtA) - i, nil
  190. }
  191. func (m *ClusterTrustBundleList) Marshal() (dAtA []byte, err error) {
  192. size := m.Size()
  193. dAtA = make([]byte, size)
  194. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  195. if err != nil {
  196. return nil, err
  197. }
  198. return dAtA[:n], nil
  199. }
  200. func (m *ClusterTrustBundleList) MarshalTo(dAtA []byte) (int, error) {
  201. size := m.Size()
  202. return m.MarshalToSizedBuffer(dAtA[:size])
  203. }
  204. func (m *ClusterTrustBundleList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  205. i := len(dAtA)
  206. _ = i
  207. var l int
  208. _ = l
  209. if len(m.Items) > 0 {
  210. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  211. {
  212. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  213. if err != nil {
  214. return 0, err
  215. }
  216. i -= size
  217. i = encodeVarintGenerated(dAtA, i, uint64(size))
  218. }
  219. i--
  220. dAtA[i] = 0x12
  221. }
  222. }
  223. {
  224. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  225. if err != nil {
  226. return 0, err
  227. }
  228. i -= size
  229. i = encodeVarintGenerated(dAtA, i, uint64(size))
  230. }
  231. i--
  232. dAtA[i] = 0xa
  233. return len(dAtA) - i, nil
  234. }
  235. func (m *ClusterTrustBundleSpec) Marshal() (dAtA []byte, err error) {
  236. size := m.Size()
  237. dAtA = make([]byte, size)
  238. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  239. if err != nil {
  240. return nil, err
  241. }
  242. return dAtA[:n], nil
  243. }
  244. func (m *ClusterTrustBundleSpec) MarshalTo(dAtA []byte) (int, error) {
  245. size := m.Size()
  246. return m.MarshalToSizedBuffer(dAtA[:size])
  247. }
  248. func (m *ClusterTrustBundleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  249. i := len(dAtA)
  250. _ = i
  251. var l int
  252. _ = l
  253. i -= len(m.TrustBundle)
  254. copy(dAtA[i:], m.TrustBundle)
  255. i = encodeVarintGenerated(dAtA, i, uint64(len(m.TrustBundle)))
  256. i--
  257. dAtA[i] = 0x12
  258. i -= len(m.SignerName)
  259. copy(dAtA[i:], m.SignerName)
  260. i = encodeVarintGenerated(dAtA, i, uint64(len(m.SignerName)))
  261. i--
  262. dAtA[i] = 0xa
  263. return len(dAtA) - i, nil
  264. }
  265. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  266. offset -= sovGenerated(v)
  267. base := offset
  268. for v >= 1<<7 {
  269. dAtA[offset] = uint8(v&0x7f | 0x80)
  270. v >>= 7
  271. offset++
  272. }
  273. dAtA[offset] = uint8(v)
  274. return base
  275. }
  276. func (m *ClusterTrustBundle) Size() (n int) {
  277. if m == nil {
  278. return 0
  279. }
  280. var l int
  281. _ = l
  282. l = m.ObjectMeta.Size()
  283. n += 1 + l + sovGenerated(uint64(l))
  284. l = m.Spec.Size()
  285. n += 1 + l + sovGenerated(uint64(l))
  286. return n
  287. }
  288. func (m *ClusterTrustBundleList) Size() (n int) {
  289. if m == nil {
  290. return 0
  291. }
  292. var l int
  293. _ = l
  294. l = m.ListMeta.Size()
  295. n += 1 + l + sovGenerated(uint64(l))
  296. if len(m.Items) > 0 {
  297. for _, e := range m.Items {
  298. l = e.Size()
  299. n += 1 + l + sovGenerated(uint64(l))
  300. }
  301. }
  302. return n
  303. }
  304. func (m *ClusterTrustBundleSpec) Size() (n int) {
  305. if m == nil {
  306. return 0
  307. }
  308. var l int
  309. _ = l
  310. l = len(m.SignerName)
  311. n += 1 + l + sovGenerated(uint64(l))
  312. l = len(m.TrustBundle)
  313. n += 1 + l + sovGenerated(uint64(l))
  314. return n
  315. }
  316. func sovGenerated(x uint64) (n int) {
  317. return (math_bits.Len64(x|1) + 6) / 7
  318. }
  319. func sozGenerated(x uint64) (n int) {
  320. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  321. }
  322. func (this *ClusterTrustBundle) String() string {
  323. if this == nil {
  324. return "nil"
  325. }
  326. s := strings.Join([]string{`&ClusterTrustBundle{`,
  327. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  328. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ClusterTrustBundleSpec", "ClusterTrustBundleSpec", 1), `&`, ``, 1) + `,`,
  329. `}`,
  330. }, "")
  331. return s
  332. }
  333. func (this *ClusterTrustBundleList) String() string {
  334. if this == nil {
  335. return "nil"
  336. }
  337. repeatedStringForItems := "[]ClusterTrustBundle{"
  338. for _, f := range this.Items {
  339. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterTrustBundle", "ClusterTrustBundle", 1), `&`, ``, 1) + ","
  340. }
  341. repeatedStringForItems += "}"
  342. s := strings.Join([]string{`&ClusterTrustBundleList{`,
  343. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  344. `Items:` + repeatedStringForItems + `,`,
  345. `}`,
  346. }, "")
  347. return s
  348. }
  349. func (this *ClusterTrustBundleSpec) String() string {
  350. if this == nil {
  351. return "nil"
  352. }
  353. s := strings.Join([]string{`&ClusterTrustBundleSpec{`,
  354. `SignerName:` + fmt.Sprintf("%v", this.SignerName) + `,`,
  355. `TrustBundle:` + fmt.Sprintf("%v", this.TrustBundle) + `,`,
  356. `}`,
  357. }, "")
  358. return s
  359. }
  360. func valueToStringGenerated(v interface{}) string {
  361. rv := reflect.ValueOf(v)
  362. if rv.IsNil() {
  363. return "nil"
  364. }
  365. pv := reflect.Indirect(rv).Interface()
  366. return fmt.Sprintf("*%v", pv)
  367. }
  368. func (m *ClusterTrustBundle) Unmarshal(dAtA []byte) error {
  369. l := len(dAtA)
  370. iNdEx := 0
  371. for iNdEx < l {
  372. preIndex := iNdEx
  373. var wire uint64
  374. for shift := uint(0); ; shift += 7 {
  375. if shift >= 64 {
  376. return ErrIntOverflowGenerated
  377. }
  378. if iNdEx >= l {
  379. return io.ErrUnexpectedEOF
  380. }
  381. b := dAtA[iNdEx]
  382. iNdEx++
  383. wire |= uint64(b&0x7F) << shift
  384. if b < 0x80 {
  385. break
  386. }
  387. }
  388. fieldNum := int32(wire >> 3)
  389. wireType := int(wire & 0x7)
  390. if wireType == 4 {
  391. return fmt.Errorf("proto: ClusterTrustBundle: wiretype end group for non-group")
  392. }
  393. if fieldNum <= 0 {
  394. return fmt.Errorf("proto: ClusterTrustBundle: illegal tag %d (wire type %d)", fieldNum, wire)
  395. }
  396. switch fieldNum {
  397. case 1:
  398. if wireType != 2 {
  399. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  400. }
  401. var msglen int
  402. for shift := uint(0); ; shift += 7 {
  403. if shift >= 64 {
  404. return ErrIntOverflowGenerated
  405. }
  406. if iNdEx >= l {
  407. return io.ErrUnexpectedEOF
  408. }
  409. b := dAtA[iNdEx]
  410. iNdEx++
  411. msglen |= int(b&0x7F) << shift
  412. if b < 0x80 {
  413. break
  414. }
  415. }
  416. if msglen < 0 {
  417. return ErrInvalidLengthGenerated
  418. }
  419. postIndex := iNdEx + msglen
  420. if postIndex < 0 {
  421. return ErrInvalidLengthGenerated
  422. }
  423. if postIndex > l {
  424. return io.ErrUnexpectedEOF
  425. }
  426. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  427. return err
  428. }
  429. iNdEx = postIndex
  430. case 2:
  431. if wireType != 2 {
  432. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  433. }
  434. var msglen int
  435. for shift := uint(0); ; shift += 7 {
  436. if shift >= 64 {
  437. return ErrIntOverflowGenerated
  438. }
  439. if iNdEx >= l {
  440. return io.ErrUnexpectedEOF
  441. }
  442. b := dAtA[iNdEx]
  443. iNdEx++
  444. msglen |= int(b&0x7F) << shift
  445. if b < 0x80 {
  446. break
  447. }
  448. }
  449. if msglen < 0 {
  450. return ErrInvalidLengthGenerated
  451. }
  452. postIndex := iNdEx + msglen
  453. if postIndex < 0 {
  454. return ErrInvalidLengthGenerated
  455. }
  456. if postIndex > l {
  457. return io.ErrUnexpectedEOF
  458. }
  459. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  460. return err
  461. }
  462. iNdEx = postIndex
  463. default:
  464. iNdEx = preIndex
  465. skippy, err := skipGenerated(dAtA[iNdEx:])
  466. if err != nil {
  467. return err
  468. }
  469. if (skippy < 0) || (iNdEx+skippy) < 0 {
  470. return ErrInvalidLengthGenerated
  471. }
  472. if (iNdEx + skippy) > l {
  473. return io.ErrUnexpectedEOF
  474. }
  475. iNdEx += skippy
  476. }
  477. }
  478. if iNdEx > l {
  479. return io.ErrUnexpectedEOF
  480. }
  481. return nil
  482. }
  483. func (m *ClusterTrustBundleList) Unmarshal(dAtA []byte) error {
  484. l := len(dAtA)
  485. iNdEx := 0
  486. for iNdEx < l {
  487. preIndex := iNdEx
  488. var wire uint64
  489. for shift := uint(0); ; shift += 7 {
  490. if shift >= 64 {
  491. return ErrIntOverflowGenerated
  492. }
  493. if iNdEx >= l {
  494. return io.ErrUnexpectedEOF
  495. }
  496. b := dAtA[iNdEx]
  497. iNdEx++
  498. wire |= uint64(b&0x7F) << shift
  499. if b < 0x80 {
  500. break
  501. }
  502. }
  503. fieldNum := int32(wire >> 3)
  504. wireType := int(wire & 0x7)
  505. if wireType == 4 {
  506. return fmt.Errorf("proto: ClusterTrustBundleList: wiretype end group for non-group")
  507. }
  508. if fieldNum <= 0 {
  509. return fmt.Errorf("proto: ClusterTrustBundleList: illegal tag %d (wire type %d)", fieldNum, wire)
  510. }
  511. switch fieldNum {
  512. case 1:
  513. if wireType != 2 {
  514. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  515. }
  516. var msglen int
  517. for shift := uint(0); ; shift += 7 {
  518. if shift >= 64 {
  519. return ErrIntOverflowGenerated
  520. }
  521. if iNdEx >= l {
  522. return io.ErrUnexpectedEOF
  523. }
  524. b := dAtA[iNdEx]
  525. iNdEx++
  526. msglen |= int(b&0x7F) << shift
  527. if b < 0x80 {
  528. break
  529. }
  530. }
  531. if msglen < 0 {
  532. return ErrInvalidLengthGenerated
  533. }
  534. postIndex := iNdEx + msglen
  535. if postIndex < 0 {
  536. return ErrInvalidLengthGenerated
  537. }
  538. if postIndex > l {
  539. return io.ErrUnexpectedEOF
  540. }
  541. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  542. return err
  543. }
  544. iNdEx = postIndex
  545. case 2:
  546. if wireType != 2 {
  547. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  548. }
  549. var msglen int
  550. for shift := uint(0); ; shift += 7 {
  551. if shift >= 64 {
  552. return ErrIntOverflowGenerated
  553. }
  554. if iNdEx >= l {
  555. return io.ErrUnexpectedEOF
  556. }
  557. b := dAtA[iNdEx]
  558. iNdEx++
  559. msglen |= int(b&0x7F) << shift
  560. if b < 0x80 {
  561. break
  562. }
  563. }
  564. if msglen < 0 {
  565. return ErrInvalidLengthGenerated
  566. }
  567. postIndex := iNdEx + msglen
  568. if postIndex < 0 {
  569. return ErrInvalidLengthGenerated
  570. }
  571. if postIndex > l {
  572. return io.ErrUnexpectedEOF
  573. }
  574. m.Items = append(m.Items, ClusterTrustBundle{})
  575. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  576. return err
  577. }
  578. iNdEx = postIndex
  579. default:
  580. iNdEx = preIndex
  581. skippy, err := skipGenerated(dAtA[iNdEx:])
  582. if err != nil {
  583. return err
  584. }
  585. if (skippy < 0) || (iNdEx+skippy) < 0 {
  586. return ErrInvalidLengthGenerated
  587. }
  588. if (iNdEx + skippy) > l {
  589. return io.ErrUnexpectedEOF
  590. }
  591. iNdEx += skippy
  592. }
  593. }
  594. if iNdEx > l {
  595. return io.ErrUnexpectedEOF
  596. }
  597. return nil
  598. }
  599. func (m *ClusterTrustBundleSpec) Unmarshal(dAtA []byte) error {
  600. l := len(dAtA)
  601. iNdEx := 0
  602. for iNdEx < l {
  603. preIndex := iNdEx
  604. var wire uint64
  605. for shift := uint(0); ; shift += 7 {
  606. if shift >= 64 {
  607. return ErrIntOverflowGenerated
  608. }
  609. if iNdEx >= l {
  610. return io.ErrUnexpectedEOF
  611. }
  612. b := dAtA[iNdEx]
  613. iNdEx++
  614. wire |= uint64(b&0x7F) << shift
  615. if b < 0x80 {
  616. break
  617. }
  618. }
  619. fieldNum := int32(wire >> 3)
  620. wireType := int(wire & 0x7)
  621. if wireType == 4 {
  622. return fmt.Errorf("proto: ClusterTrustBundleSpec: wiretype end group for non-group")
  623. }
  624. if fieldNum <= 0 {
  625. return fmt.Errorf("proto: ClusterTrustBundleSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  626. }
  627. switch fieldNum {
  628. case 1:
  629. if wireType != 2 {
  630. return fmt.Errorf("proto: wrong wireType = %d for field SignerName", wireType)
  631. }
  632. var stringLen uint64
  633. for shift := uint(0); ; shift += 7 {
  634. if shift >= 64 {
  635. return ErrIntOverflowGenerated
  636. }
  637. if iNdEx >= l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. b := dAtA[iNdEx]
  641. iNdEx++
  642. stringLen |= uint64(b&0x7F) << shift
  643. if b < 0x80 {
  644. break
  645. }
  646. }
  647. intStringLen := int(stringLen)
  648. if intStringLen < 0 {
  649. return ErrInvalidLengthGenerated
  650. }
  651. postIndex := iNdEx + intStringLen
  652. if postIndex < 0 {
  653. return ErrInvalidLengthGenerated
  654. }
  655. if postIndex > l {
  656. return io.ErrUnexpectedEOF
  657. }
  658. m.SignerName = string(dAtA[iNdEx:postIndex])
  659. iNdEx = postIndex
  660. case 2:
  661. if wireType != 2 {
  662. return fmt.Errorf("proto: wrong wireType = %d for field TrustBundle", wireType)
  663. }
  664. var stringLen uint64
  665. for shift := uint(0); ; shift += 7 {
  666. if shift >= 64 {
  667. return ErrIntOverflowGenerated
  668. }
  669. if iNdEx >= l {
  670. return io.ErrUnexpectedEOF
  671. }
  672. b := dAtA[iNdEx]
  673. iNdEx++
  674. stringLen |= uint64(b&0x7F) << shift
  675. if b < 0x80 {
  676. break
  677. }
  678. }
  679. intStringLen := int(stringLen)
  680. if intStringLen < 0 {
  681. return ErrInvalidLengthGenerated
  682. }
  683. postIndex := iNdEx + intStringLen
  684. if postIndex < 0 {
  685. return ErrInvalidLengthGenerated
  686. }
  687. if postIndex > l {
  688. return io.ErrUnexpectedEOF
  689. }
  690. m.TrustBundle = string(dAtA[iNdEx:postIndex])
  691. iNdEx = postIndex
  692. default:
  693. iNdEx = preIndex
  694. skippy, err := skipGenerated(dAtA[iNdEx:])
  695. if err != nil {
  696. return err
  697. }
  698. if (skippy < 0) || (iNdEx+skippy) < 0 {
  699. return ErrInvalidLengthGenerated
  700. }
  701. if (iNdEx + skippy) > l {
  702. return io.ErrUnexpectedEOF
  703. }
  704. iNdEx += skippy
  705. }
  706. }
  707. if iNdEx > l {
  708. return io.ErrUnexpectedEOF
  709. }
  710. return nil
  711. }
  712. func skipGenerated(dAtA []byte) (n int, err error) {
  713. l := len(dAtA)
  714. iNdEx := 0
  715. depth := 0
  716. for iNdEx < l {
  717. var wire uint64
  718. for shift := uint(0); ; shift += 7 {
  719. if shift >= 64 {
  720. return 0, ErrIntOverflowGenerated
  721. }
  722. if iNdEx >= l {
  723. return 0, io.ErrUnexpectedEOF
  724. }
  725. b := dAtA[iNdEx]
  726. iNdEx++
  727. wire |= (uint64(b) & 0x7F) << shift
  728. if b < 0x80 {
  729. break
  730. }
  731. }
  732. wireType := int(wire & 0x7)
  733. switch wireType {
  734. case 0:
  735. for shift := uint(0); ; shift += 7 {
  736. if shift >= 64 {
  737. return 0, ErrIntOverflowGenerated
  738. }
  739. if iNdEx >= l {
  740. return 0, io.ErrUnexpectedEOF
  741. }
  742. iNdEx++
  743. if dAtA[iNdEx-1] < 0x80 {
  744. break
  745. }
  746. }
  747. case 1:
  748. iNdEx += 8
  749. case 2:
  750. var length int
  751. for shift := uint(0); ; shift += 7 {
  752. if shift >= 64 {
  753. return 0, ErrIntOverflowGenerated
  754. }
  755. if iNdEx >= l {
  756. return 0, io.ErrUnexpectedEOF
  757. }
  758. b := dAtA[iNdEx]
  759. iNdEx++
  760. length |= (int(b) & 0x7F) << shift
  761. if b < 0x80 {
  762. break
  763. }
  764. }
  765. if length < 0 {
  766. return 0, ErrInvalidLengthGenerated
  767. }
  768. iNdEx += length
  769. case 3:
  770. depth++
  771. case 4:
  772. if depth == 0 {
  773. return 0, ErrUnexpectedEndOfGroupGenerated
  774. }
  775. depth--
  776. case 5:
  777. iNdEx += 4
  778. default:
  779. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  780. }
  781. if iNdEx < 0 {
  782. return 0, ErrInvalidLengthGenerated
  783. }
  784. if depth == 0 {
  785. return iNdEx, nil
  786. }
  787. }
  788. return 0, io.ErrUnexpectedEOF
  789. }
  790. var (
  791. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  792. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  793. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  794. )