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