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