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/admissionregistration/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 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 29 | |
| 30 | math "math" |
| 31 | math_bits "math/bits" |
| 32 | reflect "reflect" |
| 33 | strings "strings" |
| 34 | ) |
| 35 | |
| 36 | // Reference imports to suppress errors if they are not otherwise used. |
| 37 | var _ = proto.Marshal |
| 38 | var _ = fmt.Errorf |
| 39 | var _ = math.Inf |
| 40 | |
| 41 | // This is a compile-time assertion to ensure that this generated file |
| 42 | // is compatible with the proto package it is being compiled against. |
| 43 | // A compilation error at this line likely means your copy of the |
| 44 | // proto package needs to be updated. |
| 45 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 46 | |
| 47 | func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } |
| 48 | func (*MutatingWebhook) ProtoMessage() {} |
| 49 | func (*MutatingWebhook) Descriptor() ([]byte, []int) { |
| 50 | return fileDescriptor_aaac5994f79683e8, []int{0} |
| 51 | } |
| 52 | func (m *MutatingWebhook) XXX_Unmarshal(b []byte) error { |
| 53 | return m.Unmarshal(b) |
| 54 | } |
| 55 | func (m *MutatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 56 | b = b[:cap(b)] |
| 57 | n, err := m.MarshalToSizedBuffer(b) |
| 58 | if err != nil { |
| 59 | return nil, err |
| 60 | } |
| 61 | return b[:n], nil |
| 62 | } |
| 63 | func (m *MutatingWebhook) XXX_Merge(src proto.Message) { |
| 64 | xxx_messageInfo_MutatingWebhook.Merge(m, src) |
| 65 | } |
| 66 | func (m *MutatingWebhook) XXX_Size() int { |
| 67 | return m.Size() |
| 68 | } |
| 69 | func (m *MutatingWebhook) XXX_DiscardUnknown() { |
| 70 | xxx_messageInfo_MutatingWebhook.DiscardUnknown(m) |
| 71 | } |
| 72 | |
| 73 | var xxx_messageInfo_MutatingWebhook proto.InternalMessageInfo |
| 74 | |
| 75 | func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} } |
| 76 | func (*MutatingWebhookConfiguration) ProtoMessage() {} |
| 77 | func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) { |
| 78 | return fileDescriptor_aaac5994f79683e8, []int{1} |
| 79 | } |
| 80 | func (m *MutatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { |
| 81 | return m.Unmarshal(b) |
| 82 | } |
| 83 | func (m *MutatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 84 | b = b[:cap(b)] |
| 85 | n, err := m.MarshalToSizedBuffer(b) |
| 86 | if err != nil { |
| 87 | return nil, err |
| 88 | } |
| 89 | return b[:n], nil |
| 90 | } |
| 91 | func (m *MutatingWebhookConfiguration) XXX_Merge(src proto.Message) { |
| 92 | xxx_messageInfo_MutatingWebhookConfiguration.Merge(m, src) |
| 93 | } |
| 94 | func (m *MutatingWebhookConfiguration) XXX_Size() int { |
| 95 | return m.Size() |
| 96 | } |
| 97 | func (m *MutatingWebhookConfiguration) XXX_DiscardUnknown() { |
| 98 | xxx_messageInfo_MutatingWebhookConfiguration.DiscardUnknown(m) |
| 99 | } |
| 100 | |
| 101 | var xxx_messageInfo_MutatingWebhookConfiguration proto.InternalMessageInfo |
| 102 | |
| 103 | func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} } |
| 104 | func (*MutatingWebhookConfigurationList) ProtoMessage() {} |
| 105 | func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) { |
| 106 | return fileDescriptor_aaac5994f79683e8, []int{2} |
| 107 | } |
| 108 | func (m *MutatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { |
| 109 | return m.Unmarshal(b) |
| 110 | } |
| 111 | func (m *MutatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 112 | b = b[:cap(b)] |
| 113 | n, err := m.MarshalToSizedBuffer(b) |
| 114 | if err != nil { |
| 115 | return nil, err |
| 116 | } |
| 117 | return b[:n], nil |
| 118 | } |
| 119 | func (m *MutatingWebhookConfigurationList) XXX_Merge(src proto.Message) { |
| 120 | xxx_messageInfo_MutatingWebhookConfigurationList.Merge(m, src) |
| 121 | } |
| 122 | func (m *MutatingWebhookConfigurationList) XXX_Size() int { |
| 123 | return m.Size() |
| 124 | } |
| 125 | func (m *MutatingWebhookConfigurationList) XXX_DiscardUnknown() { |
| 126 | xxx_messageInfo_MutatingWebhookConfigurationList.DiscardUnknown(m) |
| 127 | } |
| 128 | |
| 129 | var xxx_messageInfo_MutatingWebhookConfigurationList proto.InternalMessageInfo |
| 130 | |
| 131 | func (m *Rule) Reset() { *m = Rule{} } |
| 132 | func (*Rule) ProtoMessage() {} |
| 133 | func (*Rule) Descriptor() ([]byte, []int) { |
| 134 | return fileDescriptor_aaac5994f79683e8, []int{3} |
| 135 | } |
| 136 | func (m *Rule) XXX_Unmarshal(b []byte) error { |
| 137 | return m.Unmarshal(b) |
| 138 | } |
| 139 | func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 140 | b = b[:cap(b)] |
| 141 | n, err := m.MarshalToSizedBuffer(b) |
| 142 | if err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | return b[:n], nil |
| 146 | } |
| 147 | func (m *Rule) XXX_Merge(src proto.Message) { |
| 148 | xxx_messageInfo_Rule.Merge(m, src) |
| 149 | } |
| 150 | func (m *Rule) XXX_Size() int { |
| 151 | return m.Size() |
| 152 | } |
| 153 | func (m *Rule) XXX_DiscardUnknown() { |
| 154 | xxx_messageInfo_Rule.DiscardUnknown(m) |
| 155 | } |
| 156 | |
| 157 | var xxx_messageInfo_Rule proto.InternalMessageInfo |
| 158 | |
| 159 | func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} } |
| 160 | func (*RuleWithOperations) ProtoMessage() {} |
| 161 | func (*RuleWithOperations) Descriptor() ([]byte, []int) { |
| 162 | return fileDescriptor_aaac5994f79683e8, []int{4} |
| 163 | } |
| 164 | func (m *RuleWithOperations) XXX_Unmarshal(b []byte) error { |
| 165 | return m.Unmarshal(b) |
| 166 | } |
| 167 | func (m *RuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 168 | b = b[:cap(b)] |
| 169 | n, err := m.MarshalToSizedBuffer(b) |
| 170 | if err != nil { |
| 171 | return nil, err |
| 172 | } |
| 173 | return b[:n], nil |
| 174 | } |
| 175 | func (m *RuleWithOperations) XXX_Merge(src proto.Message) { |
| 176 | xxx_messageInfo_RuleWithOperations.Merge(m, src) |
| 177 | } |
| 178 | func (m *RuleWithOperations) XXX_Size() int { |
| 179 | return m.Size() |
| 180 | } |
| 181 | func (m *RuleWithOperations) XXX_DiscardUnknown() { |
| 182 | xxx_messageInfo_RuleWithOperations.DiscardUnknown(m) |
| 183 | } |
| 184 | |
| 185 | var xxx_messageInfo_RuleWithOperations proto.InternalMessageInfo |
| 186 | |
| 187 | func (m *ServiceReference) Reset() { *m = ServiceReference{} } |
| 188 | func (*ServiceReference) ProtoMessage() {} |
| 189 | func (*ServiceReference) Descriptor() ([]byte, []int) { |
| 190 | return fileDescriptor_aaac5994f79683e8, []int{5} |
| 191 | } |
| 192 | func (m *ServiceReference) XXX_Unmarshal(b []byte) error { |
| 193 | return m.Unmarshal(b) |
| 194 | } |
| 195 | func (m *ServiceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 196 | b = b[:cap(b)] |
| 197 | n, err := m.MarshalToSizedBuffer(b) |
| 198 | if err != nil { |
| 199 | return nil, err |
| 200 | } |
| 201 | return b[:n], nil |
| 202 | } |
| 203 | func (m *ServiceReference) XXX_Merge(src proto.Message) { |
| 204 | xxx_messageInfo_ServiceReference.Merge(m, src) |
| 205 | } |
| 206 | func (m *ServiceReference) XXX_Size() int { |
| 207 | return m.Size() |
| 208 | } |
| 209 | func (m *ServiceReference) XXX_DiscardUnknown() { |
| 210 | xxx_messageInfo_ServiceReference.DiscardUnknown(m) |
| 211 | } |
| 212 | |
| 213 | var xxx_messageInfo_ServiceReference proto.InternalMessageInfo |
| 214 | |
| 215 | func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } |
| 216 | func (*ValidatingWebhook) ProtoMessage() {} |
| 217 | func (*ValidatingWebhook) Descriptor() ([]byte, []int) { |
| 218 | return fileDescriptor_aaac5994f79683e8, []int{6} |
| 219 | } |
| 220 | func (m *ValidatingWebhook) XXX_Unmarshal(b []byte) error { |
| 221 | return m.Unmarshal(b) |
| 222 | } |
| 223 | func (m *ValidatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 224 | b = b[:cap(b)] |
| 225 | n, err := m.MarshalToSizedBuffer(b) |
| 226 | if err != nil { |
| 227 | return nil, err |
| 228 | } |
| 229 | return b[:n], nil |
| 230 | } |
| 231 | func (m *ValidatingWebhook) XXX_Merge(src proto.Message) { |
| 232 | xxx_messageInfo_ValidatingWebhook.Merge(m, src) |
| 233 | } |
| 234 | func (m *ValidatingWebhook) XXX_Size() int { |
| 235 | return m.Size() |
| 236 | } |
| 237 | func (m *ValidatingWebhook) XXX_DiscardUnknown() { |
| 238 | xxx_messageInfo_ValidatingWebhook.DiscardUnknown(m) |
| 239 | } |
| 240 | |
| 241 | var xxx_messageInfo_ValidatingWebhook proto.InternalMessageInfo |
| 242 | |
| 243 | func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} } |
| 244 | func (*ValidatingWebhookConfiguration) ProtoMessage() {} |
| 245 | func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) { |
| 246 | return fileDescriptor_aaac5994f79683e8, []int{7} |
| 247 | } |
| 248 | func (m *ValidatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { |
| 249 | return m.Unmarshal(b) |
| 250 | } |
| 251 | func (m *ValidatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 252 | b = b[:cap(b)] |
| 253 | n, err := m.MarshalToSizedBuffer(b) |
| 254 | if err != nil { |
| 255 | return nil, err |
| 256 | } |
| 257 | return b[:n], nil |
| 258 | } |
| 259 | func (m *ValidatingWebhookConfiguration) XXX_Merge(src proto.Message) { |
| 260 | xxx_messageInfo_ValidatingWebhookConfiguration.Merge(m, src) |
| 261 | } |
| 262 | func (m *ValidatingWebhookConfiguration) XXX_Size() int { |
| 263 | return m.Size() |
| 264 | } |
| 265 | func (m *ValidatingWebhookConfiguration) XXX_DiscardUnknown() { |
| 266 | xxx_messageInfo_ValidatingWebhookConfiguration.DiscardUnknown(m) |
| 267 | } |
| 268 | |
| 269 | var xxx_messageInfo_ValidatingWebhookConfiguration proto.InternalMessageInfo |
| 270 | |
| 271 | func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} } |
| 272 | func (*ValidatingWebhookConfigurationList) ProtoMessage() {} |
| 273 | func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) { |
| 274 | return fileDescriptor_aaac5994f79683e8, []int{8} |
| 275 | } |
| 276 | func (m *ValidatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { |
| 277 | return m.Unmarshal(b) |
| 278 | } |
| 279 | func (m *ValidatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 280 | b = b[:cap(b)] |
| 281 | n, err := m.MarshalToSizedBuffer(b) |
| 282 | if err != nil { |
| 283 | return nil, err |
| 284 | } |
| 285 | return b[:n], nil |
| 286 | } |
| 287 | func (m *ValidatingWebhookConfigurationList) XXX_Merge(src proto.Message) { |
| 288 | xxx_messageInfo_ValidatingWebhookConfigurationList.Merge(m, src) |
| 289 | } |
| 290 | func (m *ValidatingWebhookConfigurationList) XXX_Size() int { |
| 291 | return m.Size() |
| 292 | } |
| 293 | func (m *ValidatingWebhookConfigurationList) XXX_DiscardUnknown() { |
| 294 | xxx_messageInfo_ValidatingWebhookConfigurationList.DiscardUnknown(m) |
| 295 | } |
| 296 | |
| 297 | var xxx_messageInfo_ValidatingWebhookConfigurationList proto.InternalMessageInfo |
| 298 | |
| 299 | func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } |
| 300 | func (*WebhookClientConfig) ProtoMessage() {} |
| 301 | func (*WebhookClientConfig) Descriptor() ([]byte, []int) { |
| 302 | return fileDescriptor_aaac5994f79683e8, []int{9} |
| 303 | } |
| 304 | func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error { |
| 305 | return m.Unmarshal(b) |
| 306 | } |
| 307 | func (m *WebhookClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 308 | b = b[:cap(b)] |
| 309 | n, err := m.MarshalToSizedBuffer(b) |
| 310 | if err != nil { |
| 311 | return nil, err |
| 312 | } |
| 313 | return b[:n], nil |
| 314 | } |
| 315 | func (m *WebhookClientConfig) XXX_Merge(src proto.Message) { |
| 316 | xxx_messageInfo_WebhookClientConfig.Merge(m, src) |
| 317 | } |
| 318 | func (m *WebhookClientConfig) XXX_Size() int { |
| 319 | return m.Size() |
| 320 | } |
| 321 | func (m *WebhookClientConfig) XXX_DiscardUnknown() { |
| 322 | xxx_messageInfo_WebhookClientConfig.DiscardUnknown(m) |
| 323 | } |
| 324 | |
| 325 | var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo |
| 326 | |
| 327 | func init() { |
| 328 | proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhook") |
| 329 | proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration") |
| 330 | proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList") |
| 331 | proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1.Rule") |
| 332 | proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1.RuleWithOperations") |
| 333 | proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1.ServiceReference") |
| 334 | proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhook") |
| 335 | proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhookConfiguration") |
| 336 | proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhookConfigurationList") |
| 337 | proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1.WebhookClientConfig") |
| 338 | } |
| 339 | |
| 340 | func init() { |
| 341 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1/generated.proto", fileDescriptor_aaac5994f79683e8) |
| 342 | } |
| 343 | |
| 344 | var fileDescriptor_aaac5994f79683e8 = []byte{ |
| 345 | // 1104 bytes of a gzipped FileDescriptorProto |
| 346 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4f, 0x6f, 0x1b, 0x45, |
| 347 | 0x14, 0xcf, 0xc6, 0x76, 0x63, 0x8f, 0xf3, 0xa7, 0x19, 0xa0, 0x35, 0xa1, 0xf2, 0x5a, 0x46, 0x42, |
| 348 | 0x46, 0xc0, 0x6e, 0x13, 0x4a, 0xa9, 0xb8, 0xa0, 0x6c, 0xf8, 0xa3, 0x88, 0xa4, 0x8d, 0x26, 0x6d, |
| 349 | 0x8a, 0x50, 0x0e, 0x1d, 0xaf, 0xc7, 0xf6, 0x10, 0x7b, 0x67, 0x35, 0x33, 0xeb, 0x92, 0x1b, 0x1f, |
| 350 | 0x81, 0xaf, 0x00, 0x9f, 0x82, 0x1b, 0xe2, 0x96, 0x63, 0x8f, 0x39, 0xa0, 0x85, 0x2c, 0x17, 0x0e, |
| 351 | 0x7c, 0x82, 0x9c, 0xd0, 0xcc, 0xae, 0x77, 0xfd, 0x27, 0x09, 0x56, 0x0e, 0x3d, 0xe5, 0xb6, 0xf3, |
| 352 | 0x7b, 0xf3, 0x7e, 0x6f, 0xde, 0xdb, 0xf7, 0xde, 0x0f, 0xec, 0x1c, 0x3d, 0x12, 0x16, 0x65, 0xf6, |
| 353 | 0x51, 0xd0, 0x24, 0xdc, 0x23, 0x92, 0x08, 0x7b, 0x40, 0xbc, 0x16, 0xe3, 0x76, 0x62, 0xc0, 0x3e, |
| 354 | 0xb5, 0x71, 0xab, 0x4f, 0x85, 0xa0, 0xcc, 0xe3, 0xa4, 0x43, 0x85, 0xe4, 0x58, 0x52, 0xe6, 0xd9, |
| 355 | 0x83, 0x75, 0xbb, 0x43, 0x3c, 0xc2, 0xb1, 0x24, 0x2d, 0xcb, 0xe7, 0x4c, 0x32, 0xf8, 0x6e, 0xec, |
| 356 | 0x64, 0x61, 0x9f, 0x5a, 0x17, 0x3a, 0x59, 0x83, 0xf5, 0xb5, 0x8f, 0x3a, 0x54, 0x76, 0x83, 0xa6, |
| 357 | 0xe5, 0xb2, 0xbe, 0xdd, 0x61, 0x1d, 0x66, 0x6b, 0xdf, 0x66, 0xd0, 0xd6, 0x27, 0x7d, 0xd0, 0x5f, |
| 358 | 0x31, 0xe7, 0xda, 0x83, 0xec, 0x21, 0x7d, 0xec, 0x76, 0xa9, 0x47, 0xf8, 0xb1, 0xed, 0x1f, 0x75, |
| 359 | 0x14, 0x20, 0xec, 0x3e, 0x91, 0xf8, 0x82, 0x97, 0xac, 0xd9, 0x97, 0x79, 0xf1, 0xc0, 0x93, 0xb4, |
| 360 | 0x4f, 0xa6, 0x1c, 0x1e, 0xfe, 0x9f, 0x83, 0x70, 0xbb, 0xa4, 0x8f, 0x27, 0xfd, 0xea, 0xbf, 0x2d, |
| 361 | 0x80, 0x95, 0xdd, 0x40, 0x62, 0x49, 0xbd, 0xce, 0x73, 0xd2, 0xec, 0x32, 0x76, 0x04, 0x6b, 0x20, |
| 362 | 0xef, 0xe1, 0x3e, 0xa9, 0x18, 0x35, 0xa3, 0x51, 0x72, 0x16, 0x4f, 0x42, 0x73, 0x2e, 0x0a, 0xcd, |
| 363 | 0xfc, 0x63, 0xdc, 0x27, 0x48, 0x5b, 0x20, 0x07, 0x8b, 0x6e, 0x8f, 0x12, 0x4f, 0x6e, 0x31, 0xaf, |
| 364 | 0x4d, 0x3b, 0x95, 0xf9, 0x9a, 0xd1, 0x28, 0x6f, 0x3c, 0xb2, 0x66, 0xa8, 0x9f, 0x95, 0x44, 0xd9, |
| 365 | 0x1a, 0xf1, 0x77, 0xde, 0x4c, 0x62, 0x2c, 0x8e, 0xa2, 0x68, 0x2c, 0x06, 0x3c, 0x04, 0x05, 0x1e, |
| 366 | 0xf4, 0x88, 0xa8, 0xe4, 0x6a, 0xb9, 0x46, 0x79, 0xe3, 0xd3, 0x99, 0x82, 0xa1, 0xa0, 0x47, 0x9e, |
| 367 | 0x53, 0xd9, 0x7d, 0xe2, 0x93, 0x18, 0x14, 0xce, 0x52, 0x12, 0xab, 0xa0, 0x6c, 0x02, 0xc5, 0xa4, |
| 368 | 0x70, 0x07, 0x2c, 0xb5, 0x31, 0xed, 0x05, 0x9c, 0xec, 0xb1, 0x1e, 0x75, 0x8f, 0x2b, 0x79, 0x9d, |
| 369 | 0xfc, 0x7b, 0x51, 0x68, 0x2e, 0x7d, 0x35, 0x6a, 0x38, 0x0f, 0xcd, 0xd5, 0x31, 0xe0, 0xe9, 0xb1, |
| 370 | 0x4f, 0xd0, 0xb8, 0x33, 0xfc, 0x02, 0x94, 0xfb, 0x58, 0xba, 0xdd, 0x84, 0xab, 0xa4, 0xb9, 0xea, |
| 371 | 0x51, 0x68, 0x96, 0x77, 0x33, 0xf8, 0x3c, 0x34, 0x57, 0x46, 0x8e, 0x9a, 0x67, 0xd4, 0x0d, 0xfe, |
| 372 | 0x00, 0x56, 0x55, 0xb5, 0x85, 0x8f, 0x5d, 0xb2, 0x4f, 0x7a, 0xc4, 0x95, 0x8c, 0x57, 0x0a, 0xba, |
| 373 | 0xd4, 0x1f, 0x8f, 0x64, 0x9f, 0xfe, 0x6f, 0xcb, 0x3f, 0xea, 0x28, 0x40, 0x58, 0xaa, 0xad, 0x54, |
| 374 | 0xfa, 0x3b, 0xb8, 0x49, 0x7a, 0x43, 0x57, 0xe7, 0xad, 0x28, 0x34, 0x57, 0x1f, 0x4f, 0x32, 0xa2, |
| 375 | 0xe9, 0x20, 0x90, 0x81, 0x65, 0xd6, 0xfc, 0x9e, 0xb8, 0x32, 0x0d, 0x5b, 0xbe, 0x7e, 0x58, 0x18, |
| 376 | 0x85, 0xe6, 0xf2, 0x93, 0x31, 0x3a, 0x34, 0x41, 0xaf, 0x0a, 0x26, 0x68, 0x8b, 0x7c, 0xd9, 0x6e, |
| 377 | 0x13, 0x57, 0x8a, 0xca, 0xad, 0xac, 0x60, 0xfb, 0x19, 0xac, 0x0a, 0x96, 0x1d, 0xb7, 0x7a, 0x58, |
| 378 | 0x08, 0x34, 0xea, 0x06, 0x3f, 0x03, 0xcb, 0xaa, 0xd7, 0x59, 0x20, 0xf7, 0x89, 0xcb, 0xbc, 0x96, |
| 379 | 0xa8, 0x2c, 0xd4, 0x8c, 0x46, 0x21, 0x7e, 0xc1, 0xd3, 0x31, 0x0b, 0x9a, 0xb8, 0x09, 0x9f, 0x81, |
| 380 | 0xbb, 0x69, 0x17, 0x21, 0x32, 0xa0, 0xe4, 0xe5, 0x01, 0xe1, 0xea, 0x20, 0x2a, 0xc5, 0x5a, 0xae, |
| 381 | 0x51, 0x72, 0xde, 0x89, 0x42, 0xf3, 0xee, 0xe6, 0xc5, 0x57, 0xd0, 0x65, 0xbe, 0xf0, 0x05, 0x80, |
| 382 | 0x9c, 0x50, 0x6f, 0xc0, 0x5c, 0xdd, 0x7e, 0x49, 0x43, 0x00, 0x9d, 0xdf, 0xfd, 0x28, 0x34, 0x21, |
| 383 | 0x9a, 0xb2, 0x9e, 0x87, 0xe6, 0x9d, 0x69, 0x54, 0xb7, 0xc7, 0x05, 0x5c, 0xf5, 0x53, 0x03, 0xdc, |
| 384 | 0x9b, 0x98, 0xe0, 0x78, 0x62, 0x82, 0xb8, 0xe3, 0xe1, 0x0b, 0x50, 0x54, 0x3f, 0xa6, 0x85, 0x25, |
| 385 | 0xd6, 0x23, 0x5d, 0xde, 0xb8, 0x3f, 0xdb, 0x6f, 0x8c, 0xff, 0xd9, 0x2e, 0x91, 0xd8, 0x81, 0xc9, |
| 386 | 0xd0, 0x80, 0x0c, 0x43, 0x29, 0x2b, 0x3c, 0x00, 0xc5, 0x24, 0xb2, 0xa8, 0xcc, 0xeb, 0xe9, 0x7c, |
| 387 | 0x30, 0xd3, 0x74, 0x4e, 0x3c, 0xdb, 0xc9, 0xab, 0x28, 0xa8, 0xf8, 0x32, 0xe1, 0xaa, 0xff, 0x63, |
| 388 | 0x80, 0xda, 0x55, 0xa9, 0xed, 0x50, 0x21, 0xe1, 0xe1, 0x54, 0x7a, 0xd6, 0x8c, 0x5d, 0x4a, 0x45, |
| 389 | 0x9c, 0xdc, 0xed, 0x24, 0xb9, 0xe2, 0x10, 0x19, 0x49, 0xad, 0x0d, 0x0a, 0x54, 0x92, 0xfe, 0x30, |
| 390 | 0xaf, 0xcd, 0xeb, 0xe4, 0x35, 0xf6, 0xe6, 0x6c, 0xff, 0x6c, 0x2b, 0x5e, 0x14, 0xd3, 0xd7, 0x7f, |
| 391 | 0x37, 0x40, 0x5e, 0x2d, 0x24, 0xf8, 0x01, 0x28, 0x61, 0x9f, 0x7e, 0xcd, 0x59, 0xe0, 0x8b, 0x8a, |
| 392 | 0xa1, 0x3b, 0x6f, 0x29, 0x0a, 0xcd, 0xd2, 0xe6, 0xde, 0x76, 0x0c, 0xa2, 0xcc, 0x0e, 0xd7, 0x41, |
| 393 | 0x19, 0xfb, 0x34, 0x6d, 0xd4, 0x79, 0x7d, 0x7d, 0x45, 0x8d, 0xcd, 0xe6, 0xde, 0x76, 0xda, 0x9c, |
| 394 | 0xa3, 0x77, 0x14, 0x3f, 0x27, 0x82, 0x05, 0xdc, 0x4d, 0x56, 0x69, 0xc2, 0x8f, 0x86, 0x20, 0xca, |
| 395 | 0xec, 0xf0, 0x43, 0x50, 0x10, 0x2e, 0xf3, 0x49, 0xb2, 0x0d, 0xef, 0xa8, 0x67, 0xef, 0x2b, 0xe0, |
| 396 | 0x3c, 0x34, 0x4b, 0xfa, 0x43, 0xb7, 0x65, 0x7c, 0xa9, 0xfe, 0x8b, 0x01, 0xe0, 0xf4, 0xc2, 0x85, |
| 397 | 0x9f, 0x03, 0xc0, 0xd2, 0x53, 0x92, 0x92, 0xa9, 0x7b, 0x29, 0x45, 0xcf, 0x43, 0x73, 0x29, 0x3d, |
| 398 | 0x69, 0xca, 0x11, 0x17, 0xf8, 0x0d, 0xc8, 0xab, 0x25, 0x9d, 0xa8, 0xcc, 0xfb, 0x33, 0x2f, 0xfe, |
| 399 | 0x4c, 0xba, 0xd4, 0x09, 0x69, 0x92, 0xfa, 0xcf, 0x06, 0xb8, 0xbd, 0x4f, 0xf8, 0x80, 0xba, 0x04, |
| 400 | 0x91, 0x36, 0xe1, 0xc4, 0x73, 0x09, 0xb4, 0x41, 0x29, 0x5d, 0x82, 0x89, 0xec, 0xad, 0x26, 0xbe, |
| 401 | 0xa5, 0x74, 0x61, 0xa2, 0xec, 0x4e, 0x2a, 0x91, 0xf3, 0x97, 0x4a, 0xe4, 0x3d, 0x90, 0xf7, 0xb1, |
| 402 | 0xec, 0x56, 0x72, 0xfa, 0x46, 0x51, 0x59, 0xf7, 0xb0, 0xec, 0x22, 0x8d, 0x6a, 0x2b, 0xe3, 0x52, |
| 403 | 0xd7, 0xb5, 0x90, 0x58, 0x19, 0x97, 0x48, 0xa3, 0xf5, 0x3f, 0x6f, 0x81, 0xd5, 0x03, 0xdc, 0xa3, |
| 404 | 0xad, 0x1b, 0x59, 0xbe, 0x91, 0xe5, 0x2b, 0x65, 0x19, 0xdc, 0xc8, 0xf2, 0x75, 0x64, 0xb9, 0xfe, |
| 405 | 0x87, 0x01, 0xaa, 0x53, 0x13, 0xf6, 0xba, 0x65, 0xf3, 0xdb, 0x29, 0xd9, 0x7c, 0x38, 0xd3, 0xf4, |
| 406 | 0x4c, 0x3d, 0x7c, 0x4a, 0x38, 0xff, 0x35, 0x40, 0xfd, 0xea, 0xf4, 0x5e, 0x83, 0x74, 0x76, 0xc7, |
| 407 | 0xa5, 0x73, 0xeb, 0x7a, 0xb9, 0xcd, 0x22, 0x9e, 0xbf, 0x1a, 0xe0, 0x8d, 0x0b, 0xf6, 0x17, 0x7c, |
| 408 | 0x1b, 0xe4, 0x02, 0xde, 0x4b, 0x56, 0xf0, 0x42, 0x14, 0x9a, 0xb9, 0x67, 0x68, 0x07, 0x29, 0x0c, |
| 409 | 0x1e, 0x82, 0x05, 0x11, 0xab, 0x40, 0x92, 0xf9, 0x27, 0x33, 0x3d, 0x6f, 0x52, 0x39, 0x9c, 0x72, |
| 410 | 0x14, 0x9a, 0x0b, 0x43, 0x74, 0x48, 0x09, 0x1b, 0xa0, 0xe8, 0x62, 0x27, 0xf0, 0x5a, 0x89, 0x6a, |
| 411 | 0x2d, 0x3a, 0x8b, 0xaa, 0x48, 0x5b, 0x9b, 0x31, 0x86, 0x52, 0xab, 0xd3, 0x38, 0x39, 0xab, 0xce, |
| 412 | 0xbd, 0x3a, 0xab, 0xce, 0x9d, 0x9e, 0x55, 0xe7, 0x7e, 0x8c, 0xaa, 0xc6, 0x49, 0x54, 0x35, 0x5e, |
| 413 | 0x45, 0x55, 0xe3, 0x34, 0xaa, 0x1a, 0x7f, 0x45, 0x55, 0xe3, 0xa7, 0xbf, 0xab, 0x73, 0xdf, 0xcd, |
| 414 | 0x0f, 0xd6, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x57, 0x91, 0x2c, 0x7b, 0xeb, 0x0e, 0x00, 0x00, |
| 415 | } |
| 416 | |
| 417 | func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { |
| 418 | size := m.Size() |
| 419 | dAtA = make([]byte, size) |
| 420 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 421 | if err != nil { |
| 422 | return nil, err |
| 423 | } |
| 424 | return dAtA[:n], nil |
| 425 | } |
| 426 | |
| 427 | func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { |
| 428 | size := m.Size() |
| 429 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 430 | } |
| 431 | |
| 432 | func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 433 | i := len(dAtA) |
| 434 | _ = i |
| 435 | var l int |
| 436 | _ = l |
| 437 | if m.ObjectSelector != nil { |
| 438 | { |
| 439 | size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 440 | if err != nil { |
| 441 | return 0, err |
| 442 | } |
| 443 | i -= size |
| 444 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 445 | } |
| 446 | i-- |
| 447 | dAtA[i] = 0x5a |
| 448 | } |
| 449 | if m.ReinvocationPolicy != nil { |
| 450 | i -= len(*m.ReinvocationPolicy) |
| 451 | copy(dAtA[i:], *m.ReinvocationPolicy) |
| 452 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) |
| 453 | i-- |
| 454 | dAtA[i] = 0x52 |
| 455 | } |
| 456 | if m.MatchPolicy != nil { |
| 457 | i -= len(*m.MatchPolicy) |
| 458 | copy(dAtA[i:], *m.MatchPolicy) |
| 459 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) |
| 460 | i-- |
| 461 | dAtA[i] = 0x4a |
| 462 | } |
| 463 | if len(m.AdmissionReviewVersions) > 0 { |
| 464 | for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { |
| 465 | i -= len(m.AdmissionReviewVersions[iNdEx]) |
| 466 | copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) |
| 467 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) |
| 468 | i-- |
| 469 | dAtA[i] = 0x42 |
| 470 | } |
| 471 | } |
| 472 | if m.TimeoutSeconds != nil { |
| 473 | i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) |
| 474 | i-- |
| 475 | dAtA[i] = 0x38 |
| 476 | } |
| 477 | if m.SideEffects != nil { |
| 478 | i -= len(*m.SideEffects) |
| 479 | copy(dAtA[i:], *m.SideEffects) |
| 480 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) |
| 481 | i-- |
| 482 | dAtA[i] = 0x32 |
| 483 | } |
| 484 | if m.NamespaceSelector != nil { |
| 485 | { |
| 486 | size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 487 | if err != nil { |
| 488 | return 0, err |
| 489 | } |
| 490 | i -= size |
| 491 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 492 | } |
| 493 | i-- |
| 494 | dAtA[i] = 0x2a |
| 495 | } |
| 496 | if m.FailurePolicy != nil { |
| 497 | i -= len(*m.FailurePolicy) |
| 498 | copy(dAtA[i:], *m.FailurePolicy) |
| 499 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) |
| 500 | i-- |
| 501 | dAtA[i] = 0x22 |
| 502 | } |
| 503 | if len(m.Rules) > 0 { |
| 504 | for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { |
| 505 | { |
| 506 | size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 507 | if err != nil { |
| 508 | return 0, err |
| 509 | } |
| 510 | i -= size |
| 511 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 512 | } |
| 513 | i-- |
| 514 | dAtA[i] = 0x1a |
| 515 | } |
| 516 | } |
| 517 | { |
| 518 | size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) |
| 519 | if err != nil { |
| 520 | return 0, err |
| 521 | } |
| 522 | i -= size |
| 523 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 524 | } |
| 525 | i-- |
| 526 | dAtA[i] = 0x12 |
| 527 | i -= len(m.Name) |
| 528 | copy(dAtA[i:], m.Name) |
| 529 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 530 | i-- |
| 531 | dAtA[i] = 0xa |
| 532 | return len(dAtA) - i, nil |
| 533 | } |
| 534 | |
| 535 | func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { |
| 536 | size := m.Size() |
| 537 | dAtA = make([]byte, size) |
| 538 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 539 | if err != nil { |
| 540 | return nil, err |
| 541 | } |
| 542 | return dAtA[:n], nil |
| 543 | } |
| 544 | |
| 545 | func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 546 | size := m.Size() |
| 547 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 548 | } |
| 549 | |
| 550 | func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 551 | i := len(dAtA) |
| 552 | _ = i |
| 553 | var l int |
| 554 | _ = l |
| 555 | if len(m.Webhooks) > 0 { |
| 556 | for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { |
| 557 | { |
| 558 | size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 559 | if err != nil { |
| 560 | return 0, err |
| 561 | } |
| 562 | i -= size |
| 563 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 564 | } |
| 565 | i-- |
| 566 | dAtA[i] = 0x12 |
| 567 | } |
| 568 | } |
| 569 | { |
| 570 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 571 | if err != nil { |
| 572 | return 0, err |
| 573 | } |
| 574 | i -= size |
| 575 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 576 | } |
| 577 | i-- |
| 578 | dAtA[i] = 0xa |
| 579 | return len(dAtA) - i, nil |
| 580 | } |
| 581 | |
| 582 | func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { |
| 583 | size := m.Size() |
| 584 | dAtA = make([]byte, size) |
| 585 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 586 | if err != nil { |
| 587 | return nil, err |
| 588 | } |
| 589 | return dAtA[:n], nil |
| 590 | } |
| 591 | |
| 592 | func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { |
| 593 | size := m.Size() |
| 594 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 595 | } |
| 596 | |
| 597 | func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 598 | i := len(dAtA) |
| 599 | _ = i |
| 600 | var l int |
| 601 | _ = l |
| 602 | if len(m.Items) > 0 { |
| 603 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 604 | { |
| 605 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 606 | if err != nil { |
| 607 | return 0, err |
| 608 | } |
| 609 | i -= size |
| 610 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 611 | } |
| 612 | i-- |
| 613 | dAtA[i] = 0x12 |
| 614 | } |
| 615 | } |
| 616 | { |
| 617 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 618 | if err != nil { |
| 619 | return 0, err |
| 620 | } |
| 621 | i -= size |
| 622 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 623 | } |
| 624 | i-- |
| 625 | dAtA[i] = 0xa |
| 626 | return len(dAtA) - i, nil |
| 627 | } |
| 628 | |
| 629 | func (m *Rule) Marshal() (dAtA []byte, err error) { |
| 630 | size := m.Size() |
| 631 | dAtA = make([]byte, size) |
| 632 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 633 | if err != nil { |
| 634 | return nil, err |
| 635 | } |
| 636 | return dAtA[:n], nil |
| 637 | } |
| 638 | |
| 639 | func (m *Rule) MarshalTo(dAtA []byte) (int, error) { |
| 640 | size := m.Size() |
| 641 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 642 | } |
| 643 | |
| 644 | func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 645 | i := len(dAtA) |
| 646 | _ = i |
| 647 | var l int |
| 648 | _ = l |
| 649 | if m.Scope != nil { |
| 650 | i -= len(*m.Scope) |
| 651 | copy(dAtA[i:], *m.Scope) |
| 652 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope))) |
| 653 | i-- |
| 654 | dAtA[i] = 0x22 |
| 655 | } |
| 656 | if len(m.Resources) > 0 { |
| 657 | for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { |
| 658 | i -= len(m.Resources[iNdEx]) |
| 659 | copy(dAtA[i:], m.Resources[iNdEx]) |
| 660 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) |
| 661 | i-- |
| 662 | dAtA[i] = 0x1a |
| 663 | } |
| 664 | } |
| 665 | if len(m.APIVersions) > 0 { |
| 666 | for iNdEx := len(m.APIVersions) - 1; iNdEx >= 0; iNdEx-- { |
| 667 | i -= len(m.APIVersions[iNdEx]) |
| 668 | copy(dAtA[i:], m.APIVersions[iNdEx]) |
| 669 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersions[iNdEx]))) |
| 670 | i-- |
| 671 | dAtA[i] = 0x12 |
| 672 | } |
| 673 | } |
| 674 | if len(m.APIGroups) > 0 { |
| 675 | for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { |
| 676 | i -= len(m.APIGroups[iNdEx]) |
| 677 | copy(dAtA[i:], m.APIGroups[iNdEx]) |
| 678 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) |
| 679 | i-- |
| 680 | dAtA[i] = 0xa |
| 681 | } |
| 682 | } |
| 683 | return len(dAtA) - i, nil |
| 684 | } |
| 685 | |
| 686 | func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) { |
| 687 | size := m.Size() |
| 688 | dAtA = make([]byte, size) |
| 689 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 690 | if err != nil { |
| 691 | return nil, err |
| 692 | } |
| 693 | return dAtA[:n], nil |
| 694 | } |
| 695 | |
| 696 | func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) { |
| 697 | size := m.Size() |
| 698 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 699 | } |
| 700 | |
| 701 | func (m *RuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 702 | i := len(dAtA) |
| 703 | _ = i |
| 704 | var l int |
| 705 | _ = l |
| 706 | { |
| 707 | size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) |
| 708 | if err != nil { |
| 709 | return 0, err |
| 710 | } |
| 711 | i -= size |
| 712 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 713 | } |
| 714 | i-- |
| 715 | dAtA[i] = 0x12 |
| 716 | if len(m.Operations) > 0 { |
| 717 | for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- { |
| 718 | i -= len(m.Operations[iNdEx]) |
| 719 | copy(dAtA[i:], m.Operations[iNdEx]) |
| 720 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operations[iNdEx]))) |
| 721 | i-- |
| 722 | dAtA[i] = 0xa |
| 723 | } |
| 724 | } |
| 725 | return len(dAtA) - i, nil |
| 726 | } |
| 727 | |
| 728 | func (m *ServiceReference) Marshal() (dAtA []byte, err error) { |
| 729 | size := m.Size() |
| 730 | dAtA = make([]byte, size) |
| 731 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 732 | if err != nil { |
| 733 | return nil, err |
| 734 | } |
| 735 | return dAtA[:n], nil |
| 736 | } |
| 737 | |
| 738 | func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { |
| 739 | size := m.Size() |
| 740 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 741 | } |
| 742 | |
| 743 | func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 744 | i := len(dAtA) |
| 745 | _ = i |
| 746 | var l int |
| 747 | _ = l |
| 748 | if m.Port != nil { |
| 749 | i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) |
| 750 | i-- |
| 751 | dAtA[i] = 0x20 |
| 752 | } |
| 753 | if m.Path != nil { |
| 754 | i -= len(*m.Path) |
| 755 | copy(dAtA[i:], *m.Path) |
| 756 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) |
| 757 | i-- |
| 758 | dAtA[i] = 0x1a |
| 759 | } |
| 760 | i -= len(m.Name) |
| 761 | copy(dAtA[i:], m.Name) |
| 762 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 763 | i-- |
| 764 | dAtA[i] = 0x12 |
| 765 | i -= len(m.Namespace) |
| 766 | copy(dAtA[i:], m.Namespace) |
| 767 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 768 | i-- |
| 769 | dAtA[i] = 0xa |
| 770 | return len(dAtA) - i, nil |
| 771 | } |
| 772 | |
| 773 | func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { |
| 774 | size := m.Size() |
| 775 | dAtA = make([]byte, size) |
| 776 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 777 | if err != nil { |
| 778 | return nil, err |
| 779 | } |
| 780 | return dAtA[:n], nil |
| 781 | } |
| 782 | |
| 783 | func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { |
| 784 | size := m.Size() |
| 785 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 786 | } |
| 787 | |
| 788 | func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 789 | i := len(dAtA) |
| 790 | _ = i |
| 791 | var l int |
| 792 | _ = l |
| 793 | if m.ObjectSelector != nil { |
| 794 | { |
| 795 | size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 796 | if err != nil { |
| 797 | return 0, err |
| 798 | } |
| 799 | i -= size |
| 800 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 801 | } |
| 802 | i-- |
| 803 | dAtA[i] = 0x52 |
| 804 | } |
| 805 | if m.MatchPolicy != nil { |
| 806 | i -= len(*m.MatchPolicy) |
| 807 | copy(dAtA[i:], *m.MatchPolicy) |
| 808 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) |
| 809 | i-- |
| 810 | dAtA[i] = 0x4a |
| 811 | } |
| 812 | if len(m.AdmissionReviewVersions) > 0 { |
| 813 | for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { |
| 814 | i -= len(m.AdmissionReviewVersions[iNdEx]) |
| 815 | copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) |
| 816 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) |
| 817 | i-- |
| 818 | dAtA[i] = 0x42 |
| 819 | } |
| 820 | } |
| 821 | if m.TimeoutSeconds != nil { |
| 822 | i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) |
| 823 | i-- |
| 824 | dAtA[i] = 0x38 |
| 825 | } |
| 826 | if m.SideEffects != nil { |
| 827 | i -= len(*m.SideEffects) |
| 828 | copy(dAtA[i:], *m.SideEffects) |
| 829 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) |
| 830 | i-- |
| 831 | dAtA[i] = 0x32 |
| 832 | } |
| 833 | if m.NamespaceSelector != nil { |
| 834 | { |
| 835 | size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 836 | if err != nil { |
| 837 | return 0, err |
| 838 | } |
| 839 | i -= size |
| 840 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 841 | } |
| 842 | i-- |
| 843 | dAtA[i] = 0x2a |
| 844 | } |
| 845 | if m.FailurePolicy != nil { |
| 846 | i -= len(*m.FailurePolicy) |
| 847 | copy(dAtA[i:], *m.FailurePolicy) |
| 848 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) |
| 849 | i-- |
| 850 | dAtA[i] = 0x22 |
| 851 | } |
| 852 | if len(m.Rules) > 0 { |
| 853 | for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { |
| 854 | { |
| 855 | size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 856 | if err != nil { |
| 857 | return 0, err |
| 858 | } |
| 859 | i -= size |
| 860 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 861 | } |
| 862 | i-- |
| 863 | dAtA[i] = 0x1a |
| 864 | } |
| 865 | } |
| 866 | { |
| 867 | size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) |
| 868 | if err != nil { |
| 869 | return 0, err |
| 870 | } |
| 871 | i -= size |
| 872 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 873 | } |
| 874 | i-- |
| 875 | dAtA[i] = 0x12 |
| 876 | i -= len(m.Name) |
| 877 | copy(dAtA[i:], m.Name) |
| 878 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 879 | i-- |
| 880 | dAtA[i] = 0xa |
| 881 | return len(dAtA) - i, nil |
| 882 | } |
| 883 | |
| 884 | func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { |
| 885 | size := m.Size() |
| 886 | dAtA = make([]byte, size) |
| 887 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 888 | if err != nil { |
| 889 | return nil, err |
| 890 | } |
| 891 | return dAtA[:n], nil |
| 892 | } |
| 893 | |
| 894 | func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 895 | size := m.Size() |
| 896 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 897 | } |
| 898 | |
| 899 | func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 900 | i := len(dAtA) |
| 901 | _ = i |
| 902 | var l int |
| 903 | _ = l |
| 904 | if len(m.Webhooks) > 0 { |
| 905 | for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { |
| 906 | { |
| 907 | size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 908 | if err != nil { |
| 909 | return 0, err |
| 910 | } |
| 911 | i -= size |
| 912 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 913 | } |
| 914 | i-- |
| 915 | dAtA[i] = 0x12 |
| 916 | } |
| 917 | } |
| 918 | { |
| 919 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 920 | if err != nil { |
| 921 | return 0, err |
| 922 | } |
| 923 | i -= size |
| 924 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 925 | } |
| 926 | i-- |
| 927 | dAtA[i] = 0xa |
| 928 | return len(dAtA) - i, nil |
| 929 | } |
| 930 | |
| 931 | func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { |
| 932 | size := m.Size() |
| 933 | dAtA = make([]byte, size) |
| 934 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 935 | if err != nil { |
| 936 | return nil, err |
| 937 | } |
| 938 | return dAtA[:n], nil |
| 939 | } |
| 940 | |
| 941 | func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { |
| 942 | size := m.Size() |
| 943 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 944 | } |
| 945 | |
| 946 | func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 947 | i := len(dAtA) |
| 948 | _ = i |
| 949 | var l int |
| 950 | _ = l |
| 951 | if len(m.Items) > 0 { |
| 952 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 953 | { |
| 954 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 955 | if err != nil { |
| 956 | return 0, err |
| 957 | } |
| 958 | i -= size |
| 959 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 960 | } |
| 961 | i-- |
| 962 | dAtA[i] = 0x12 |
| 963 | } |
| 964 | } |
| 965 | { |
| 966 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 967 | if err != nil { |
| 968 | return 0, err |
| 969 | } |
| 970 | i -= size |
| 971 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 972 | } |
| 973 | i-- |
| 974 | dAtA[i] = 0xa |
| 975 | return len(dAtA) - i, nil |
| 976 | } |
| 977 | |
| 978 | func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { |
| 979 | size := m.Size() |
| 980 | dAtA = make([]byte, size) |
| 981 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 982 | if err != nil { |
| 983 | return nil, err |
| 984 | } |
| 985 | return dAtA[:n], nil |
| 986 | } |
| 987 | |
| 988 | func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { |
| 989 | size := m.Size() |
| 990 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 991 | } |
| 992 | |
| 993 | func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 994 | i := len(dAtA) |
| 995 | _ = i |
| 996 | var l int |
| 997 | _ = l |
| 998 | if m.URL != nil { |
| 999 | i -= len(*m.URL) |
| 1000 | copy(dAtA[i:], *m.URL) |
| 1001 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) |
| 1002 | i-- |
| 1003 | dAtA[i] = 0x1a |
| 1004 | } |
| 1005 | if m.CABundle != nil { |
| 1006 | i -= len(m.CABundle) |
| 1007 | copy(dAtA[i:], m.CABundle) |
| 1008 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) |
| 1009 | i-- |
| 1010 | dAtA[i] = 0x12 |
| 1011 | } |
| 1012 | if m.Service != nil { |
| 1013 | { |
| 1014 | size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) |
| 1015 | if err != nil { |
| 1016 | return 0, err |
| 1017 | } |
| 1018 | i -= size |
| 1019 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1020 | } |
| 1021 | i-- |
| 1022 | dAtA[i] = 0xa |
| 1023 | } |
| 1024 | return len(dAtA) - i, nil |
| 1025 | } |
| 1026 | |
| 1027 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 1028 | offset -= sovGenerated(v) |
| 1029 | base := offset |
| 1030 | for v >= 1<<7 { |
| 1031 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 1032 | v >>= 7 |
| 1033 | offset++ |
| 1034 | } |
| 1035 | dAtA[offset] = uint8(v) |
| 1036 | return base |
| 1037 | } |
| 1038 | func (m *MutatingWebhook) Size() (n int) { |
| 1039 | if m == nil { |
| 1040 | return 0 |
| 1041 | } |
| 1042 | var l int |
| 1043 | _ = l |
| 1044 | l = len(m.Name) |
| 1045 | n += 1 + l + sovGenerated(uint64(l)) |
| 1046 | l = m.ClientConfig.Size() |
| 1047 | n += 1 + l + sovGenerated(uint64(l)) |
| 1048 | if len(m.Rules) > 0 { |
| 1049 | for _, e := range m.Rules { |
| 1050 | l = e.Size() |
| 1051 | n += 1 + l + sovGenerated(uint64(l)) |
| 1052 | } |
| 1053 | } |
| 1054 | if m.FailurePolicy != nil { |
| 1055 | l = len(*m.FailurePolicy) |
| 1056 | n += 1 + l + sovGenerated(uint64(l)) |
| 1057 | } |
| 1058 | if m.NamespaceSelector != nil { |
| 1059 | l = m.NamespaceSelector.Size() |
| 1060 | n += 1 + l + sovGenerated(uint64(l)) |
| 1061 | } |
| 1062 | if m.SideEffects != nil { |
| 1063 | l = len(*m.SideEffects) |
| 1064 | n += 1 + l + sovGenerated(uint64(l)) |
| 1065 | } |
| 1066 | if m.TimeoutSeconds != nil { |
| 1067 | n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) |
| 1068 | } |
| 1069 | if len(m.AdmissionReviewVersions) > 0 { |
| 1070 | for _, s := range m.AdmissionReviewVersions { |
| 1071 | l = len(s) |
| 1072 | n += 1 + l + sovGenerated(uint64(l)) |
| 1073 | } |
| 1074 | } |
| 1075 | if m.MatchPolicy != nil { |
| 1076 | l = len(*m.MatchPolicy) |
| 1077 | n += 1 + l + sovGenerated(uint64(l)) |
| 1078 | } |
| 1079 | if m.ReinvocationPolicy != nil { |
| 1080 | l = len(*m.ReinvocationPolicy) |
| 1081 | n += 1 + l + sovGenerated(uint64(l)) |
| 1082 | } |
| 1083 | if m.ObjectSelector != nil { |
| 1084 | l = m.ObjectSelector.Size() |
| 1085 | n += 1 + l + sovGenerated(uint64(l)) |
| 1086 | } |
| 1087 | return n |
| 1088 | } |
| 1089 | |
| 1090 | func (m *MutatingWebhookConfiguration) Size() (n int) { |
| 1091 | if m == nil { |
| 1092 | return 0 |
| 1093 | } |
| 1094 | var l int |
| 1095 | _ = l |
| 1096 | l = m.ObjectMeta.Size() |
| 1097 | n += 1 + l + sovGenerated(uint64(l)) |
| 1098 | if len(m.Webhooks) > 0 { |
| 1099 | for _, e := range m.Webhooks { |
| 1100 | l = e.Size() |
| 1101 | n += 1 + l + sovGenerated(uint64(l)) |
| 1102 | } |
| 1103 | } |
| 1104 | return n |
| 1105 | } |
| 1106 | |
| 1107 | func (m *MutatingWebhookConfigurationList) Size() (n int) { |
| 1108 | if m == nil { |
| 1109 | return 0 |
| 1110 | } |
| 1111 | var l int |
| 1112 | _ = l |
| 1113 | l = m.ListMeta.Size() |
| 1114 | n += 1 + l + sovGenerated(uint64(l)) |
| 1115 | if len(m.Items) > 0 { |
| 1116 | for _, e := range m.Items { |
| 1117 | l = e.Size() |
| 1118 | n += 1 + l + sovGenerated(uint64(l)) |
| 1119 | } |
| 1120 | } |
| 1121 | return n |
| 1122 | } |
| 1123 | |
| 1124 | func (m *Rule) Size() (n int) { |
| 1125 | if m == nil { |
| 1126 | return 0 |
| 1127 | } |
| 1128 | var l int |
| 1129 | _ = l |
| 1130 | if len(m.APIGroups) > 0 { |
| 1131 | for _, s := range m.APIGroups { |
| 1132 | l = len(s) |
| 1133 | n += 1 + l + sovGenerated(uint64(l)) |
| 1134 | } |
| 1135 | } |
| 1136 | if len(m.APIVersions) > 0 { |
| 1137 | for _, s := range m.APIVersions { |
| 1138 | l = len(s) |
| 1139 | n += 1 + l + sovGenerated(uint64(l)) |
| 1140 | } |
| 1141 | } |
| 1142 | if len(m.Resources) > 0 { |
| 1143 | for _, s := range m.Resources { |
| 1144 | l = len(s) |
| 1145 | n += 1 + l + sovGenerated(uint64(l)) |
| 1146 | } |
| 1147 | } |
| 1148 | if m.Scope != nil { |
| 1149 | l = len(*m.Scope) |
| 1150 | n += 1 + l + sovGenerated(uint64(l)) |
| 1151 | } |
| 1152 | return n |
| 1153 | } |
| 1154 | |
| 1155 | func (m *RuleWithOperations) Size() (n int) { |
| 1156 | if m == nil { |
| 1157 | return 0 |
| 1158 | } |
| 1159 | var l int |
| 1160 | _ = l |
| 1161 | if len(m.Operations) > 0 { |
| 1162 | for _, s := range m.Operations { |
| 1163 | l = len(s) |
| 1164 | n += 1 + l + sovGenerated(uint64(l)) |
| 1165 | } |
| 1166 | } |
| 1167 | l = m.Rule.Size() |
| 1168 | n += 1 + l + sovGenerated(uint64(l)) |
| 1169 | return n |
| 1170 | } |
| 1171 | |
| 1172 | func (m *ServiceReference) Size() (n int) { |
| 1173 | if m == nil { |
| 1174 | return 0 |
| 1175 | } |
| 1176 | var l int |
| 1177 | _ = l |
| 1178 | l = len(m.Namespace) |
| 1179 | n += 1 + l + sovGenerated(uint64(l)) |
| 1180 | l = len(m.Name) |
| 1181 | n += 1 + l + sovGenerated(uint64(l)) |
| 1182 | if m.Path != nil { |
| 1183 | l = len(*m.Path) |
| 1184 | n += 1 + l + sovGenerated(uint64(l)) |
| 1185 | } |
| 1186 | if m.Port != nil { |
| 1187 | n += 1 + sovGenerated(uint64(*m.Port)) |
| 1188 | } |
| 1189 | return n |
| 1190 | } |
| 1191 | |
| 1192 | func (m *ValidatingWebhook) Size() (n int) { |
| 1193 | if m == nil { |
| 1194 | return 0 |
| 1195 | } |
| 1196 | var l int |
| 1197 | _ = l |
| 1198 | l = len(m.Name) |
| 1199 | n += 1 + l + sovGenerated(uint64(l)) |
| 1200 | l = m.ClientConfig.Size() |
| 1201 | n += 1 + l + sovGenerated(uint64(l)) |
| 1202 | if len(m.Rules) > 0 { |
| 1203 | for _, e := range m.Rules { |
| 1204 | l = e.Size() |
| 1205 | n += 1 + l + sovGenerated(uint64(l)) |
| 1206 | } |
| 1207 | } |
| 1208 | if m.FailurePolicy != nil { |
| 1209 | l = len(*m.FailurePolicy) |
| 1210 | n += 1 + l + sovGenerated(uint64(l)) |
| 1211 | } |
| 1212 | if m.NamespaceSelector != nil { |
| 1213 | l = m.NamespaceSelector.Size() |
| 1214 | n += 1 + l + sovGenerated(uint64(l)) |
| 1215 | } |
| 1216 | if m.SideEffects != nil { |
| 1217 | l = len(*m.SideEffects) |
| 1218 | n += 1 + l + sovGenerated(uint64(l)) |
| 1219 | } |
| 1220 | if m.TimeoutSeconds != nil { |
| 1221 | n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) |
| 1222 | } |
| 1223 | if len(m.AdmissionReviewVersions) > 0 { |
| 1224 | for _, s := range m.AdmissionReviewVersions { |
| 1225 | l = len(s) |
| 1226 | n += 1 + l + sovGenerated(uint64(l)) |
| 1227 | } |
| 1228 | } |
| 1229 | if m.MatchPolicy != nil { |
| 1230 | l = len(*m.MatchPolicy) |
| 1231 | n += 1 + l + sovGenerated(uint64(l)) |
| 1232 | } |
| 1233 | if m.ObjectSelector != nil { |
| 1234 | l = m.ObjectSelector.Size() |
| 1235 | n += 1 + l + sovGenerated(uint64(l)) |
| 1236 | } |
| 1237 | return n |
| 1238 | } |
| 1239 | |
| 1240 | func (m *ValidatingWebhookConfiguration) Size() (n int) { |
| 1241 | if m == nil { |
| 1242 | return 0 |
| 1243 | } |
| 1244 | var l int |
| 1245 | _ = l |
| 1246 | l = m.ObjectMeta.Size() |
| 1247 | n += 1 + l + sovGenerated(uint64(l)) |
| 1248 | if len(m.Webhooks) > 0 { |
| 1249 | for _, e := range m.Webhooks { |
| 1250 | l = e.Size() |
| 1251 | n += 1 + l + sovGenerated(uint64(l)) |
| 1252 | } |
| 1253 | } |
| 1254 | return n |
| 1255 | } |
| 1256 | |
| 1257 | func (m *ValidatingWebhookConfigurationList) Size() (n int) { |
| 1258 | if m == nil { |
| 1259 | return 0 |
| 1260 | } |
| 1261 | var l int |
| 1262 | _ = l |
| 1263 | l = m.ListMeta.Size() |
| 1264 | n += 1 + l + sovGenerated(uint64(l)) |
| 1265 | if len(m.Items) > 0 { |
| 1266 | for _, e := range m.Items { |
| 1267 | l = e.Size() |
| 1268 | n += 1 + l + sovGenerated(uint64(l)) |
| 1269 | } |
| 1270 | } |
| 1271 | return n |
| 1272 | } |
| 1273 | |
| 1274 | func (m *WebhookClientConfig) Size() (n int) { |
| 1275 | if m == nil { |
| 1276 | return 0 |
| 1277 | } |
| 1278 | var l int |
| 1279 | _ = l |
| 1280 | if m.Service != nil { |
| 1281 | l = m.Service.Size() |
| 1282 | n += 1 + l + sovGenerated(uint64(l)) |
| 1283 | } |
| 1284 | if m.CABundle != nil { |
| 1285 | l = len(m.CABundle) |
| 1286 | n += 1 + l + sovGenerated(uint64(l)) |
| 1287 | } |
| 1288 | if m.URL != nil { |
| 1289 | l = len(*m.URL) |
| 1290 | n += 1 + l + sovGenerated(uint64(l)) |
| 1291 | } |
| 1292 | return n |
| 1293 | } |
| 1294 | |
| 1295 | func sovGenerated(x uint64) (n int) { |
| 1296 | return (math_bits.Len64(x|1) + 6) / 7 |
| 1297 | } |
| 1298 | func sozGenerated(x uint64) (n int) { |
| 1299 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1300 | } |
| 1301 | func (this *MutatingWebhook) String() string { |
| 1302 | if this == nil { |
| 1303 | return "nil" |
| 1304 | } |
| 1305 | repeatedStringForRules := "[]RuleWithOperations{" |
| 1306 | for _, f := range this.Rules { |
| 1307 | repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," |
| 1308 | } |
| 1309 | repeatedStringForRules += "}" |
| 1310 | s := strings.Join([]string{`&MutatingWebhook{`, |
| 1311 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1312 | `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, |
| 1313 | `Rules:` + repeatedStringForRules + `,`, |
| 1314 | `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, |
| 1315 | `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 1316 | `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, |
| 1317 | `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, |
| 1318 | `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, |
| 1319 | `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, |
| 1320 | `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, |
| 1321 | `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 1322 | `}`, |
| 1323 | }, "") |
| 1324 | return s |
| 1325 | } |
| 1326 | func (this *MutatingWebhookConfiguration) String() string { |
| 1327 | if this == nil { |
| 1328 | return "nil" |
| 1329 | } |
| 1330 | repeatedStringForWebhooks := "[]MutatingWebhook{" |
| 1331 | for _, f := range this.Webhooks { |
| 1332 | repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + "," |
| 1333 | } |
| 1334 | repeatedStringForWebhooks += "}" |
| 1335 | s := strings.Join([]string{`&MutatingWebhookConfiguration{`, |
| 1336 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1337 | `Webhooks:` + repeatedStringForWebhooks + `,`, |
| 1338 | `}`, |
| 1339 | }, "") |
| 1340 | return s |
| 1341 | } |
| 1342 | func (this *MutatingWebhookConfigurationList) String() string { |
| 1343 | if this == nil { |
| 1344 | return "nil" |
| 1345 | } |
| 1346 | repeatedStringForItems := "[]MutatingWebhookConfiguration{" |
| 1347 | for _, f := range this.Items { |
| 1348 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + "," |
| 1349 | } |
| 1350 | repeatedStringForItems += "}" |
| 1351 | s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, |
| 1352 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 1353 | `Items:` + repeatedStringForItems + `,`, |
| 1354 | `}`, |
| 1355 | }, "") |
| 1356 | return s |
| 1357 | } |
| 1358 | func (this *Rule) String() string { |
| 1359 | if this == nil { |
| 1360 | return "nil" |
| 1361 | } |
| 1362 | s := strings.Join([]string{`&Rule{`, |
| 1363 | `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, |
| 1364 | `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`, |
| 1365 | `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, |
| 1366 | `Scope:` + valueToStringGenerated(this.Scope) + `,`, |
| 1367 | `}`, |
| 1368 | }, "") |
| 1369 | return s |
| 1370 | } |
| 1371 | func (this *RuleWithOperations) String() string { |
| 1372 | if this == nil { |
| 1373 | return "nil" |
| 1374 | } |
| 1375 | s := strings.Join([]string{`&RuleWithOperations{`, |
| 1376 | `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`, |
| 1377 | `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`, |
| 1378 | `}`, |
| 1379 | }, "") |
| 1380 | return s |
| 1381 | } |
| 1382 | func (this *ServiceReference) String() string { |
| 1383 | if this == nil { |
| 1384 | return "nil" |
| 1385 | } |
| 1386 | s := strings.Join([]string{`&ServiceReference{`, |
| 1387 | `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 1388 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1389 | `Path:` + valueToStringGenerated(this.Path) + `,`, |
| 1390 | `Port:` + valueToStringGenerated(this.Port) + `,`, |
| 1391 | `}`, |
| 1392 | }, "") |
| 1393 | return s |
| 1394 | } |
| 1395 | func (this *ValidatingWebhook) String() string { |
| 1396 | if this == nil { |
| 1397 | return "nil" |
| 1398 | } |
| 1399 | repeatedStringForRules := "[]RuleWithOperations{" |
| 1400 | for _, f := range this.Rules { |
| 1401 | repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," |
| 1402 | } |
| 1403 | repeatedStringForRules += "}" |
| 1404 | s := strings.Join([]string{`&ValidatingWebhook{`, |
| 1405 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1406 | `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, |
| 1407 | `Rules:` + repeatedStringForRules + `,`, |
| 1408 | `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, |
| 1409 | `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 1410 | `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, |
| 1411 | `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, |
| 1412 | `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, |
| 1413 | `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, |
| 1414 | `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 1415 | `}`, |
| 1416 | }, "") |
| 1417 | return s |
| 1418 | } |
| 1419 | func (this *ValidatingWebhookConfiguration) String() string { |
| 1420 | if this == nil { |
| 1421 | return "nil" |
| 1422 | } |
| 1423 | repeatedStringForWebhooks := "[]ValidatingWebhook{" |
| 1424 | for _, f := range this.Webhooks { |
| 1425 | repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + "," |
| 1426 | } |
| 1427 | repeatedStringForWebhooks += "}" |
| 1428 | s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, |
| 1429 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1430 | `Webhooks:` + repeatedStringForWebhooks + `,`, |
| 1431 | `}`, |
| 1432 | }, "") |
| 1433 | return s |
| 1434 | } |
| 1435 | func (this *ValidatingWebhookConfigurationList) String() string { |
| 1436 | if this == nil { |
| 1437 | return "nil" |
| 1438 | } |
| 1439 | repeatedStringForItems := "[]ValidatingWebhookConfiguration{" |
| 1440 | for _, f := range this.Items { |
| 1441 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + "," |
| 1442 | } |
| 1443 | repeatedStringForItems += "}" |
| 1444 | s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, |
| 1445 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 1446 | `Items:` + repeatedStringForItems + `,`, |
| 1447 | `}`, |
| 1448 | }, "") |
| 1449 | return s |
| 1450 | } |
| 1451 | func (this *WebhookClientConfig) String() string { |
| 1452 | if this == nil { |
| 1453 | return "nil" |
| 1454 | } |
| 1455 | s := strings.Join([]string{`&WebhookClientConfig{`, |
| 1456 | `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, |
| 1457 | `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, |
| 1458 | `URL:` + valueToStringGenerated(this.URL) + `,`, |
| 1459 | `}`, |
| 1460 | }, "") |
| 1461 | return s |
| 1462 | } |
| 1463 | func valueToStringGenerated(v interface{}) string { |
| 1464 | rv := reflect.ValueOf(v) |
| 1465 | if rv.IsNil() { |
| 1466 | return "nil" |
| 1467 | } |
| 1468 | pv := reflect.Indirect(rv).Interface() |
| 1469 | return fmt.Sprintf("*%v", pv) |
| 1470 | } |
| 1471 | func (m *MutatingWebhook) Unmarshal(dAtA []byte) error { |
| 1472 | l := len(dAtA) |
| 1473 | iNdEx := 0 |
| 1474 | for iNdEx < l { |
| 1475 | preIndex := iNdEx |
| 1476 | var wire 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 | wire |= uint64(b&0x7F) << shift |
| 1487 | if b < 0x80 { |
| 1488 | break |
| 1489 | } |
| 1490 | } |
| 1491 | fieldNum := int32(wire >> 3) |
| 1492 | wireType := int(wire & 0x7) |
| 1493 | if wireType == 4 { |
| 1494 | return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group") |
| 1495 | } |
| 1496 | if fieldNum <= 0 { |
| 1497 | return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1498 | } |
| 1499 | switch fieldNum { |
| 1500 | case 1: |
| 1501 | if wireType != 2 { |
| 1502 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 1503 | } |
| 1504 | var stringLen uint64 |
| 1505 | for shift := uint(0); ; shift += 7 { |
| 1506 | if shift >= 64 { |
| 1507 | return ErrIntOverflowGenerated |
| 1508 | } |
| 1509 | if iNdEx >= l { |
| 1510 | return io.ErrUnexpectedEOF |
| 1511 | } |
| 1512 | b := dAtA[iNdEx] |
| 1513 | iNdEx++ |
| 1514 | stringLen |= uint64(b&0x7F) << shift |
| 1515 | if b < 0x80 { |
| 1516 | break |
| 1517 | } |
| 1518 | } |
| 1519 | intStringLen := int(stringLen) |
| 1520 | if intStringLen < 0 { |
| 1521 | return ErrInvalidLengthGenerated |
| 1522 | } |
| 1523 | postIndex := iNdEx + intStringLen |
| 1524 | if postIndex < 0 { |
| 1525 | return ErrInvalidLengthGenerated |
| 1526 | } |
| 1527 | if postIndex > l { |
| 1528 | return io.ErrUnexpectedEOF |
| 1529 | } |
| 1530 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 1531 | iNdEx = postIndex |
| 1532 | case 2: |
| 1533 | if wireType != 2 { |
| 1534 | return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) |
| 1535 | } |
| 1536 | var msglen int |
| 1537 | for shift := uint(0); ; shift += 7 { |
| 1538 | if shift >= 64 { |
| 1539 | return ErrIntOverflowGenerated |
| 1540 | } |
| 1541 | if iNdEx >= l { |
| 1542 | return io.ErrUnexpectedEOF |
| 1543 | } |
| 1544 | b := dAtA[iNdEx] |
| 1545 | iNdEx++ |
| 1546 | msglen |= int(b&0x7F) << shift |
| 1547 | if b < 0x80 { |
| 1548 | break |
| 1549 | } |
| 1550 | } |
| 1551 | if msglen < 0 { |
| 1552 | return ErrInvalidLengthGenerated |
| 1553 | } |
| 1554 | postIndex := iNdEx + msglen |
| 1555 | if postIndex < 0 { |
| 1556 | return ErrInvalidLengthGenerated |
| 1557 | } |
| 1558 | if postIndex > l { |
| 1559 | return io.ErrUnexpectedEOF |
| 1560 | } |
| 1561 | if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1562 | return err |
| 1563 | } |
| 1564 | iNdEx = postIndex |
| 1565 | case 3: |
| 1566 | if wireType != 2 { |
| 1567 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 1568 | } |
| 1569 | var msglen int |
| 1570 | for shift := uint(0); ; shift += 7 { |
| 1571 | if shift >= 64 { |
| 1572 | return ErrIntOverflowGenerated |
| 1573 | } |
| 1574 | if iNdEx >= l { |
| 1575 | return io.ErrUnexpectedEOF |
| 1576 | } |
| 1577 | b := dAtA[iNdEx] |
| 1578 | iNdEx++ |
| 1579 | msglen |= int(b&0x7F) << shift |
| 1580 | if b < 0x80 { |
| 1581 | break |
| 1582 | } |
| 1583 | } |
| 1584 | if msglen < 0 { |
| 1585 | return ErrInvalidLengthGenerated |
| 1586 | } |
| 1587 | postIndex := iNdEx + msglen |
| 1588 | if postIndex < 0 { |
| 1589 | return ErrInvalidLengthGenerated |
| 1590 | } |
| 1591 | if postIndex > l { |
| 1592 | return io.ErrUnexpectedEOF |
| 1593 | } |
| 1594 | m.Rules = append(m.Rules, RuleWithOperations{}) |
| 1595 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1596 | return err |
| 1597 | } |
| 1598 | iNdEx = postIndex |
| 1599 | case 4: |
| 1600 | if wireType != 2 { |
| 1601 | return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) |
| 1602 | } |
| 1603 | var stringLen uint64 |
| 1604 | for shift := uint(0); ; shift += 7 { |
| 1605 | if shift >= 64 { |
| 1606 | return ErrIntOverflowGenerated |
| 1607 | } |
| 1608 | if iNdEx >= l { |
| 1609 | return io.ErrUnexpectedEOF |
| 1610 | } |
| 1611 | b := dAtA[iNdEx] |
| 1612 | iNdEx++ |
| 1613 | stringLen |= uint64(b&0x7F) << shift |
| 1614 | if b < 0x80 { |
| 1615 | break |
| 1616 | } |
| 1617 | } |
| 1618 | intStringLen := int(stringLen) |
| 1619 | if intStringLen < 0 { |
| 1620 | return ErrInvalidLengthGenerated |
| 1621 | } |
| 1622 | postIndex := iNdEx + intStringLen |
| 1623 | if postIndex < 0 { |
| 1624 | return ErrInvalidLengthGenerated |
| 1625 | } |
| 1626 | if postIndex > l { |
| 1627 | return io.ErrUnexpectedEOF |
| 1628 | } |
| 1629 | s := FailurePolicyType(dAtA[iNdEx:postIndex]) |
| 1630 | m.FailurePolicy = &s |
| 1631 | iNdEx = postIndex |
| 1632 | case 5: |
| 1633 | if wireType != 2 { |
| 1634 | return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) |
| 1635 | } |
| 1636 | var msglen int |
| 1637 | for shift := uint(0); ; shift += 7 { |
| 1638 | if shift >= 64 { |
| 1639 | return ErrIntOverflowGenerated |
| 1640 | } |
| 1641 | if iNdEx >= l { |
| 1642 | return io.ErrUnexpectedEOF |
| 1643 | } |
| 1644 | b := dAtA[iNdEx] |
| 1645 | iNdEx++ |
| 1646 | msglen |= int(b&0x7F) << shift |
| 1647 | if b < 0x80 { |
| 1648 | break |
| 1649 | } |
| 1650 | } |
| 1651 | if msglen < 0 { |
| 1652 | return ErrInvalidLengthGenerated |
| 1653 | } |
| 1654 | postIndex := iNdEx + msglen |
| 1655 | if postIndex < 0 { |
| 1656 | return ErrInvalidLengthGenerated |
| 1657 | } |
| 1658 | if postIndex > l { |
| 1659 | return io.ErrUnexpectedEOF |
| 1660 | } |
| 1661 | if m.NamespaceSelector == nil { |
| 1662 | m.NamespaceSelector = &v1.LabelSelector{} |
| 1663 | } |
| 1664 | if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1665 | return err |
| 1666 | } |
| 1667 | iNdEx = postIndex |
| 1668 | case 6: |
| 1669 | if wireType != 2 { |
| 1670 | return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) |
| 1671 | } |
| 1672 | var stringLen uint64 |
| 1673 | for shift := uint(0); ; shift += 7 { |
| 1674 | if shift >= 64 { |
| 1675 | return ErrIntOverflowGenerated |
| 1676 | } |
| 1677 | if iNdEx >= l { |
| 1678 | return io.ErrUnexpectedEOF |
| 1679 | } |
| 1680 | b := dAtA[iNdEx] |
| 1681 | iNdEx++ |
| 1682 | stringLen |= uint64(b&0x7F) << shift |
| 1683 | if b < 0x80 { |
| 1684 | break |
| 1685 | } |
| 1686 | } |
| 1687 | intStringLen := int(stringLen) |
| 1688 | if intStringLen < 0 { |
| 1689 | return ErrInvalidLengthGenerated |
| 1690 | } |
| 1691 | postIndex := iNdEx + intStringLen |
| 1692 | if postIndex < 0 { |
| 1693 | return ErrInvalidLengthGenerated |
| 1694 | } |
| 1695 | if postIndex > l { |
| 1696 | return io.ErrUnexpectedEOF |
| 1697 | } |
| 1698 | s := SideEffectClass(dAtA[iNdEx:postIndex]) |
| 1699 | m.SideEffects = &s |
| 1700 | iNdEx = postIndex |
| 1701 | case 7: |
| 1702 | if wireType != 0 { |
| 1703 | return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) |
| 1704 | } |
| 1705 | var v int32 |
| 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 | v |= int32(b&0x7F) << shift |
| 1716 | if b < 0x80 { |
| 1717 | break |
| 1718 | } |
| 1719 | } |
| 1720 | m.TimeoutSeconds = &v |
| 1721 | case 8: |
| 1722 | if wireType != 2 { |
| 1723 | return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) |
| 1724 | } |
| 1725 | var stringLen uint64 |
| 1726 | for shift := uint(0); ; shift += 7 { |
| 1727 | if shift >= 64 { |
| 1728 | return ErrIntOverflowGenerated |
| 1729 | } |
| 1730 | if iNdEx >= l { |
| 1731 | return io.ErrUnexpectedEOF |
| 1732 | } |
| 1733 | b := dAtA[iNdEx] |
| 1734 | iNdEx++ |
| 1735 | stringLen |= uint64(b&0x7F) << shift |
| 1736 | if b < 0x80 { |
| 1737 | break |
| 1738 | } |
| 1739 | } |
| 1740 | intStringLen := int(stringLen) |
| 1741 | if intStringLen < 0 { |
| 1742 | return ErrInvalidLengthGenerated |
| 1743 | } |
| 1744 | postIndex := iNdEx + intStringLen |
| 1745 | if postIndex < 0 { |
| 1746 | return ErrInvalidLengthGenerated |
| 1747 | } |
| 1748 | if postIndex > l { |
| 1749 | return io.ErrUnexpectedEOF |
| 1750 | } |
| 1751 | m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) |
| 1752 | iNdEx = postIndex |
| 1753 | case 9: |
| 1754 | if wireType != 2 { |
| 1755 | return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) |
| 1756 | } |
| 1757 | var stringLen uint64 |
| 1758 | for shift := uint(0); ; shift += 7 { |
| 1759 | if shift >= 64 { |
| 1760 | return ErrIntOverflowGenerated |
| 1761 | } |
| 1762 | if iNdEx >= l { |
| 1763 | return io.ErrUnexpectedEOF |
| 1764 | } |
| 1765 | b := dAtA[iNdEx] |
| 1766 | iNdEx++ |
| 1767 | stringLen |= uint64(b&0x7F) << shift |
| 1768 | if b < 0x80 { |
| 1769 | break |
| 1770 | } |
| 1771 | } |
| 1772 | intStringLen := int(stringLen) |
| 1773 | if intStringLen < 0 { |
| 1774 | return ErrInvalidLengthGenerated |
| 1775 | } |
| 1776 | postIndex := iNdEx + intStringLen |
| 1777 | if postIndex < 0 { |
| 1778 | return ErrInvalidLengthGenerated |
| 1779 | } |
| 1780 | if postIndex > l { |
| 1781 | return io.ErrUnexpectedEOF |
| 1782 | } |
| 1783 | s := MatchPolicyType(dAtA[iNdEx:postIndex]) |
| 1784 | m.MatchPolicy = &s |
| 1785 | iNdEx = postIndex |
| 1786 | case 10: |
| 1787 | if wireType != 2 { |
| 1788 | return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType) |
| 1789 | } |
| 1790 | var stringLen uint64 |
| 1791 | for shift := uint(0); ; shift += 7 { |
| 1792 | if shift >= 64 { |
| 1793 | return ErrIntOverflowGenerated |
| 1794 | } |
| 1795 | if iNdEx >= l { |
| 1796 | return io.ErrUnexpectedEOF |
| 1797 | } |
| 1798 | b := dAtA[iNdEx] |
| 1799 | iNdEx++ |
| 1800 | stringLen |= uint64(b&0x7F) << shift |
| 1801 | if b < 0x80 { |
| 1802 | break |
| 1803 | } |
| 1804 | } |
| 1805 | intStringLen := int(stringLen) |
| 1806 | if intStringLen < 0 { |
| 1807 | return ErrInvalidLengthGenerated |
| 1808 | } |
| 1809 | postIndex := iNdEx + intStringLen |
| 1810 | if postIndex < 0 { |
| 1811 | return ErrInvalidLengthGenerated |
| 1812 | } |
| 1813 | if postIndex > l { |
| 1814 | return io.ErrUnexpectedEOF |
| 1815 | } |
| 1816 | s := ReinvocationPolicyType(dAtA[iNdEx:postIndex]) |
| 1817 | m.ReinvocationPolicy = &s |
| 1818 | iNdEx = postIndex |
| 1819 | case 11: |
| 1820 | if wireType != 2 { |
| 1821 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) |
| 1822 | } |
| 1823 | var msglen int |
| 1824 | for shift := uint(0); ; shift += 7 { |
| 1825 | if shift >= 64 { |
| 1826 | return ErrIntOverflowGenerated |
| 1827 | } |
| 1828 | if iNdEx >= l { |
| 1829 | return io.ErrUnexpectedEOF |
| 1830 | } |
| 1831 | b := dAtA[iNdEx] |
| 1832 | iNdEx++ |
| 1833 | msglen |= int(b&0x7F) << shift |
| 1834 | if b < 0x80 { |
| 1835 | break |
| 1836 | } |
| 1837 | } |
| 1838 | if msglen < 0 { |
| 1839 | return ErrInvalidLengthGenerated |
| 1840 | } |
| 1841 | postIndex := iNdEx + msglen |
| 1842 | if postIndex < 0 { |
| 1843 | return ErrInvalidLengthGenerated |
| 1844 | } |
| 1845 | if postIndex > l { |
| 1846 | return io.ErrUnexpectedEOF |
| 1847 | } |
| 1848 | if m.ObjectSelector == nil { |
| 1849 | m.ObjectSelector = &v1.LabelSelector{} |
| 1850 | } |
| 1851 | if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1852 | return err |
| 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 | } |
| 1879 | func (m *MutatingWebhookConfiguration) 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: MutatingWebhookConfiguration: wiretype end group for non-group") |
| 1903 | } |
| 1904 | if fieldNum <= 0 { |
| 1905 | return fmt.Errorf("proto: MutatingWebhookConfiguration: 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 ObjectMeta", wireType) |
| 1911 | } |
| 1912 | var msglen int |
| 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 | msglen |= int(b&0x7F) << shift |
| 1923 | if b < 0x80 { |
| 1924 | break |
| 1925 | } |
| 1926 | } |
| 1927 | if msglen < 0 { |
| 1928 | return ErrInvalidLengthGenerated |
| 1929 | } |
| 1930 | postIndex := iNdEx + msglen |
| 1931 | if postIndex < 0 { |
| 1932 | return ErrInvalidLengthGenerated |
| 1933 | } |
| 1934 | if postIndex > l { |
| 1935 | return io.ErrUnexpectedEOF |
| 1936 | } |
| 1937 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1938 | return err |
| 1939 | } |
| 1940 | iNdEx = postIndex |
| 1941 | case 2: |
| 1942 | if wireType != 2 { |
| 1943 | return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) |
| 1944 | } |
| 1945 | var msglen int |
| 1946 | for shift := uint(0); ; shift += 7 { |
| 1947 | if shift >= 64 { |
| 1948 | return ErrIntOverflowGenerated |
| 1949 | } |
| 1950 | if iNdEx >= l { |
| 1951 | return io.ErrUnexpectedEOF |
| 1952 | } |
| 1953 | b := dAtA[iNdEx] |
| 1954 | iNdEx++ |
| 1955 | msglen |= int(b&0x7F) << shift |
| 1956 | if b < 0x80 { |
| 1957 | break |
| 1958 | } |
| 1959 | } |
| 1960 | if msglen < 0 { |
| 1961 | return ErrInvalidLengthGenerated |
| 1962 | } |
| 1963 | postIndex := iNdEx + msglen |
| 1964 | if postIndex < 0 { |
| 1965 | return ErrInvalidLengthGenerated |
| 1966 | } |
| 1967 | if postIndex > l { |
| 1968 | return io.ErrUnexpectedEOF |
| 1969 | } |
| 1970 | m.Webhooks = append(m.Webhooks, MutatingWebhook{}) |
| 1971 | if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1972 | return err |
| 1973 | } |
| 1974 | iNdEx = postIndex |
| 1975 | default: |
| 1976 | iNdEx = preIndex |
| 1977 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1978 | if err != nil { |
| 1979 | return err |
| 1980 | } |
| 1981 | if skippy < 0 { |
| 1982 | return ErrInvalidLengthGenerated |
| 1983 | } |
| 1984 | if (iNdEx + skippy) < 0 { |
| 1985 | return ErrInvalidLengthGenerated |
| 1986 | } |
| 1987 | if (iNdEx + skippy) > l { |
| 1988 | return io.ErrUnexpectedEOF |
| 1989 | } |
| 1990 | iNdEx += skippy |
| 1991 | } |
| 1992 | } |
| 1993 | |
| 1994 | if iNdEx > l { |
| 1995 | return io.ErrUnexpectedEOF |
| 1996 | } |
| 1997 | return nil |
| 1998 | } |
| 1999 | func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { |
| 2000 | l := len(dAtA) |
| 2001 | iNdEx := 0 |
| 2002 | for iNdEx < l { |
| 2003 | preIndex := iNdEx |
| 2004 | var wire uint64 |
| 2005 | for shift := uint(0); ; shift += 7 { |
| 2006 | if shift >= 64 { |
| 2007 | return ErrIntOverflowGenerated |
| 2008 | } |
| 2009 | if iNdEx >= l { |
| 2010 | return io.ErrUnexpectedEOF |
| 2011 | } |
| 2012 | b := dAtA[iNdEx] |
| 2013 | iNdEx++ |
| 2014 | wire |= uint64(b&0x7F) << shift |
| 2015 | if b < 0x80 { |
| 2016 | break |
| 2017 | } |
| 2018 | } |
| 2019 | fieldNum := int32(wire >> 3) |
| 2020 | wireType := int(wire & 0x7) |
| 2021 | if wireType == 4 { |
| 2022 | return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group") |
| 2023 | } |
| 2024 | if fieldNum <= 0 { |
| 2025 | return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2026 | } |
| 2027 | switch fieldNum { |
| 2028 | case 1: |
| 2029 | if wireType != 2 { |
| 2030 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 2031 | } |
| 2032 | var msglen int |
| 2033 | for shift := uint(0); ; shift += 7 { |
| 2034 | if shift >= 64 { |
| 2035 | return ErrIntOverflowGenerated |
| 2036 | } |
| 2037 | if iNdEx >= l { |
| 2038 | return io.ErrUnexpectedEOF |
| 2039 | } |
| 2040 | b := dAtA[iNdEx] |
| 2041 | iNdEx++ |
| 2042 | msglen |= int(b&0x7F) << shift |
| 2043 | if b < 0x80 { |
| 2044 | break |
| 2045 | } |
| 2046 | } |
| 2047 | if msglen < 0 { |
| 2048 | return ErrInvalidLengthGenerated |
| 2049 | } |
| 2050 | postIndex := iNdEx + msglen |
| 2051 | if postIndex < 0 { |
| 2052 | return ErrInvalidLengthGenerated |
| 2053 | } |
| 2054 | if postIndex > l { |
| 2055 | return io.ErrUnexpectedEOF |
| 2056 | } |
| 2057 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2058 | return err |
| 2059 | } |
| 2060 | iNdEx = postIndex |
| 2061 | case 2: |
| 2062 | if wireType != 2 { |
| 2063 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2064 | } |
| 2065 | var msglen int |
| 2066 | for shift := uint(0); ; shift += 7 { |
| 2067 | if shift >= 64 { |
| 2068 | return ErrIntOverflowGenerated |
| 2069 | } |
| 2070 | if iNdEx >= l { |
| 2071 | return io.ErrUnexpectedEOF |
| 2072 | } |
| 2073 | b := dAtA[iNdEx] |
| 2074 | iNdEx++ |
| 2075 | msglen |= int(b&0x7F) << shift |
| 2076 | if b < 0x80 { |
| 2077 | break |
| 2078 | } |
| 2079 | } |
| 2080 | if msglen < 0 { |
| 2081 | return ErrInvalidLengthGenerated |
| 2082 | } |
| 2083 | postIndex := iNdEx + msglen |
| 2084 | if postIndex < 0 { |
| 2085 | return ErrInvalidLengthGenerated |
| 2086 | } |
| 2087 | if postIndex > l { |
| 2088 | return io.ErrUnexpectedEOF |
| 2089 | } |
| 2090 | m.Items = append(m.Items, MutatingWebhookConfiguration{}) |
| 2091 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2092 | return err |
| 2093 | } |
| 2094 | iNdEx = postIndex |
| 2095 | default: |
| 2096 | iNdEx = preIndex |
| 2097 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2098 | if err != nil { |
| 2099 | return err |
| 2100 | } |
| 2101 | if skippy < 0 { |
| 2102 | return ErrInvalidLengthGenerated |
| 2103 | } |
| 2104 | if (iNdEx + skippy) < 0 { |
| 2105 | return ErrInvalidLengthGenerated |
| 2106 | } |
| 2107 | if (iNdEx + skippy) > l { |
| 2108 | return io.ErrUnexpectedEOF |
| 2109 | } |
| 2110 | iNdEx += skippy |
| 2111 | } |
| 2112 | } |
| 2113 | |
| 2114 | if iNdEx > l { |
| 2115 | return io.ErrUnexpectedEOF |
| 2116 | } |
| 2117 | return nil |
| 2118 | } |
| 2119 | func (m *Rule) Unmarshal(dAtA []byte) error { |
| 2120 | l := len(dAtA) |
| 2121 | iNdEx := 0 |
| 2122 | for iNdEx < l { |
| 2123 | preIndex := iNdEx |
| 2124 | var wire uint64 |
| 2125 | for shift := uint(0); ; shift += 7 { |
| 2126 | if shift >= 64 { |
| 2127 | return ErrIntOverflowGenerated |
| 2128 | } |
| 2129 | if iNdEx >= l { |
| 2130 | return io.ErrUnexpectedEOF |
| 2131 | } |
| 2132 | b := dAtA[iNdEx] |
| 2133 | iNdEx++ |
| 2134 | wire |= uint64(b&0x7F) << shift |
| 2135 | if b < 0x80 { |
| 2136 | break |
| 2137 | } |
| 2138 | } |
| 2139 | fieldNum := int32(wire >> 3) |
| 2140 | wireType := int(wire & 0x7) |
| 2141 | if wireType == 4 { |
| 2142 | return fmt.Errorf("proto: Rule: wiretype end group for non-group") |
| 2143 | } |
| 2144 | if fieldNum <= 0 { |
| 2145 | return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2146 | } |
| 2147 | switch fieldNum { |
| 2148 | case 1: |
| 2149 | if wireType != 2 { |
| 2150 | return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) |
| 2151 | } |
| 2152 | var stringLen uint64 |
| 2153 | for shift := uint(0); ; shift += 7 { |
| 2154 | if shift >= 64 { |
| 2155 | return ErrIntOverflowGenerated |
| 2156 | } |
| 2157 | if iNdEx >= l { |
| 2158 | return io.ErrUnexpectedEOF |
| 2159 | } |
| 2160 | b := dAtA[iNdEx] |
| 2161 | iNdEx++ |
| 2162 | stringLen |= uint64(b&0x7F) << shift |
| 2163 | if b < 0x80 { |
| 2164 | break |
| 2165 | } |
| 2166 | } |
| 2167 | intStringLen := int(stringLen) |
| 2168 | if intStringLen < 0 { |
| 2169 | return ErrInvalidLengthGenerated |
| 2170 | } |
| 2171 | postIndex := iNdEx + intStringLen |
| 2172 | if postIndex < 0 { |
| 2173 | return ErrInvalidLengthGenerated |
| 2174 | } |
| 2175 | if postIndex > l { |
| 2176 | return io.ErrUnexpectedEOF |
| 2177 | } |
| 2178 | m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) |
| 2179 | iNdEx = postIndex |
| 2180 | case 2: |
| 2181 | if wireType != 2 { |
| 2182 | return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType) |
| 2183 | } |
| 2184 | var stringLen uint64 |
| 2185 | for shift := uint(0); ; shift += 7 { |
| 2186 | if shift >= 64 { |
| 2187 | return ErrIntOverflowGenerated |
| 2188 | } |
| 2189 | if iNdEx >= l { |
| 2190 | return io.ErrUnexpectedEOF |
| 2191 | } |
| 2192 | b := dAtA[iNdEx] |
| 2193 | iNdEx++ |
| 2194 | stringLen |= uint64(b&0x7F) << shift |
| 2195 | if b < 0x80 { |
| 2196 | break |
| 2197 | } |
| 2198 | } |
| 2199 | intStringLen := int(stringLen) |
| 2200 | if intStringLen < 0 { |
| 2201 | return ErrInvalidLengthGenerated |
| 2202 | } |
| 2203 | postIndex := iNdEx + intStringLen |
| 2204 | if postIndex < 0 { |
| 2205 | return ErrInvalidLengthGenerated |
| 2206 | } |
| 2207 | if postIndex > l { |
| 2208 | return io.ErrUnexpectedEOF |
| 2209 | } |
| 2210 | m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex])) |
| 2211 | iNdEx = postIndex |
| 2212 | case 3: |
| 2213 | if wireType != 2 { |
| 2214 | return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 2215 | } |
| 2216 | var stringLen uint64 |
| 2217 | for shift := uint(0); ; shift += 7 { |
| 2218 | if shift >= 64 { |
| 2219 | return ErrIntOverflowGenerated |
| 2220 | } |
| 2221 | if iNdEx >= l { |
| 2222 | return io.ErrUnexpectedEOF |
| 2223 | } |
| 2224 | b := dAtA[iNdEx] |
| 2225 | iNdEx++ |
| 2226 | stringLen |= uint64(b&0x7F) << shift |
| 2227 | if b < 0x80 { |
| 2228 | break |
| 2229 | } |
| 2230 | } |
| 2231 | intStringLen := int(stringLen) |
| 2232 | if intStringLen < 0 { |
| 2233 | return ErrInvalidLengthGenerated |
| 2234 | } |
| 2235 | postIndex := iNdEx + intStringLen |
| 2236 | if postIndex < 0 { |
| 2237 | return ErrInvalidLengthGenerated |
| 2238 | } |
| 2239 | if postIndex > l { |
| 2240 | return io.ErrUnexpectedEOF |
| 2241 | } |
| 2242 | m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) |
| 2243 | iNdEx = postIndex |
| 2244 | case 4: |
| 2245 | if wireType != 2 { |
| 2246 | return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) |
| 2247 | } |
| 2248 | var stringLen uint64 |
| 2249 | for shift := uint(0); ; shift += 7 { |
| 2250 | if shift >= 64 { |
| 2251 | return ErrIntOverflowGenerated |
| 2252 | } |
| 2253 | if iNdEx >= l { |
| 2254 | return io.ErrUnexpectedEOF |
| 2255 | } |
| 2256 | b := dAtA[iNdEx] |
| 2257 | iNdEx++ |
| 2258 | stringLen |= uint64(b&0x7F) << shift |
| 2259 | if b < 0x80 { |
| 2260 | break |
| 2261 | } |
| 2262 | } |
| 2263 | intStringLen := int(stringLen) |
| 2264 | if intStringLen < 0 { |
| 2265 | return ErrInvalidLengthGenerated |
| 2266 | } |
| 2267 | postIndex := iNdEx + intStringLen |
| 2268 | if postIndex < 0 { |
| 2269 | return ErrInvalidLengthGenerated |
| 2270 | } |
| 2271 | if postIndex > l { |
| 2272 | return io.ErrUnexpectedEOF |
| 2273 | } |
| 2274 | s := ScopeType(dAtA[iNdEx:postIndex]) |
| 2275 | m.Scope = &s |
| 2276 | iNdEx = postIndex |
| 2277 | default: |
| 2278 | iNdEx = preIndex |
| 2279 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2280 | if err != nil { |
| 2281 | return err |
| 2282 | } |
| 2283 | if skippy < 0 { |
| 2284 | return ErrInvalidLengthGenerated |
| 2285 | } |
| 2286 | if (iNdEx + skippy) < 0 { |
| 2287 | return ErrInvalidLengthGenerated |
| 2288 | } |
| 2289 | if (iNdEx + skippy) > l { |
| 2290 | return io.ErrUnexpectedEOF |
| 2291 | } |
| 2292 | iNdEx += skippy |
| 2293 | } |
| 2294 | } |
| 2295 | |
| 2296 | if iNdEx > l { |
| 2297 | return io.ErrUnexpectedEOF |
| 2298 | } |
| 2299 | return nil |
| 2300 | } |
| 2301 | func (m *RuleWithOperations) Unmarshal(dAtA []byte) error { |
| 2302 | l := len(dAtA) |
| 2303 | iNdEx := 0 |
| 2304 | for iNdEx < l { |
| 2305 | preIndex := iNdEx |
| 2306 | var wire uint64 |
| 2307 | for shift := uint(0); ; shift += 7 { |
| 2308 | if shift >= 64 { |
| 2309 | return ErrIntOverflowGenerated |
| 2310 | } |
| 2311 | if iNdEx >= l { |
| 2312 | return io.ErrUnexpectedEOF |
| 2313 | } |
| 2314 | b := dAtA[iNdEx] |
| 2315 | iNdEx++ |
| 2316 | wire |= uint64(b&0x7F) << shift |
| 2317 | if b < 0x80 { |
| 2318 | break |
| 2319 | } |
| 2320 | } |
| 2321 | fieldNum := int32(wire >> 3) |
| 2322 | wireType := int(wire & 0x7) |
| 2323 | if wireType == 4 { |
| 2324 | return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group") |
| 2325 | } |
| 2326 | if fieldNum <= 0 { |
| 2327 | return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2328 | } |
| 2329 | switch fieldNum { |
| 2330 | case 1: |
| 2331 | if wireType != 2 { |
| 2332 | return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) |
| 2333 | } |
| 2334 | var stringLen uint64 |
| 2335 | for shift := uint(0); ; shift += 7 { |
| 2336 | if shift >= 64 { |
| 2337 | return ErrIntOverflowGenerated |
| 2338 | } |
| 2339 | if iNdEx >= l { |
| 2340 | return io.ErrUnexpectedEOF |
| 2341 | } |
| 2342 | b := dAtA[iNdEx] |
| 2343 | iNdEx++ |
| 2344 | stringLen |= uint64(b&0x7F) << shift |
| 2345 | if b < 0x80 { |
| 2346 | break |
| 2347 | } |
| 2348 | } |
| 2349 | intStringLen := int(stringLen) |
| 2350 | if intStringLen < 0 { |
| 2351 | return ErrInvalidLengthGenerated |
| 2352 | } |
| 2353 | postIndex := iNdEx + intStringLen |
| 2354 | if postIndex < 0 { |
| 2355 | return ErrInvalidLengthGenerated |
| 2356 | } |
| 2357 | if postIndex > l { |
| 2358 | return io.ErrUnexpectedEOF |
| 2359 | } |
| 2360 | m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex])) |
| 2361 | iNdEx = postIndex |
| 2362 | case 2: |
| 2363 | if wireType != 2 { |
| 2364 | return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) |
| 2365 | } |
| 2366 | var msglen int |
| 2367 | for shift := uint(0); ; shift += 7 { |
| 2368 | if shift >= 64 { |
| 2369 | return ErrIntOverflowGenerated |
| 2370 | } |
| 2371 | if iNdEx >= l { |
| 2372 | return io.ErrUnexpectedEOF |
| 2373 | } |
| 2374 | b := dAtA[iNdEx] |
| 2375 | iNdEx++ |
| 2376 | msglen |= int(b&0x7F) << shift |
| 2377 | if b < 0x80 { |
| 2378 | break |
| 2379 | } |
| 2380 | } |
| 2381 | if msglen < 0 { |
| 2382 | return ErrInvalidLengthGenerated |
| 2383 | } |
| 2384 | postIndex := iNdEx + msglen |
| 2385 | if postIndex < 0 { |
| 2386 | return ErrInvalidLengthGenerated |
| 2387 | } |
| 2388 | if postIndex > l { |
| 2389 | return io.ErrUnexpectedEOF |
| 2390 | } |
| 2391 | if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2392 | return err |
| 2393 | } |
| 2394 | iNdEx = postIndex |
| 2395 | default: |
| 2396 | iNdEx = preIndex |
| 2397 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2398 | if err != nil { |
| 2399 | return err |
| 2400 | } |
| 2401 | if skippy < 0 { |
| 2402 | return ErrInvalidLengthGenerated |
| 2403 | } |
| 2404 | if (iNdEx + skippy) < 0 { |
| 2405 | return ErrInvalidLengthGenerated |
| 2406 | } |
| 2407 | if (iNdEx + skippy) > l { |
| 2408 | return io.ErrUnexpectedEOF |
| 2409 | } |
| 2410 | iNdEx += skippy |
| 2411 | } |
| 2412 | } |
| 2413 | |
| 2414 | if iNdEx > l { |
| 2415 | return io.ErrUnexpectedEOF |
| 2416 | } |
| 2417 | return nil |
| 2418 | } |
| 2419 | func (m *ServiceReference) Unmarshal(dAtA []byte) error { |
| 2420 | l := len(dAtA) |
| 2421 | iNdEx := 0 |
| 2422 | for iNdEx < l { |
| 2423 | preIndex := iNdEx |
| 2424 | var wire uint64 |
| 2425 | for shift := uint(0); ; shift += 7 { |
| 2426 | if shift >= 64 { |
| 2427 | return ErrIntOverflowGenerated |
| 2428 | } |
| 2429 | if iNdEx >= l { |
| 2430 | return io.ErrUnexpectedEOF |
| 2431 | } |
| 2432 | b := dAtA[iNdEx] |
| 2433 | iNdEx++ |
| 2434 | wire |= uint64(b&0x7F) << shift |
| 2435 | if b < 0x80 { |
| 2436 | break |
| 2437 | } |
| 2438 | } |
| 2439 | fieldNum := int32(wire >> 3) |
| 2440 | wireType := int(wire & 0x7) |
| 2441 | if wireType == 4 { |
| 2442 | return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") |
| 2443 | } |
| 2444 | if fieldNum <= 0 { |
| 2445 | return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2446 | } |
| 2447 | switch fieldNum { |
| 2448 | case 1: |
| 2449 | if wireType != 2 { |
| 2450 | return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 2451 | } |
| 2452 | var stringLen uint64 |
| 2453 | for shift := uint(0); ; shift += 7 { |
| 2454 | if shift >= 64 { |
| 2455 | return ErrIntOverflowGenerated |
| 2456 | } |
| 2457 | if iNdEx >= l { |
| 2458 | return io.ErrUnexpectedEOF |
| 2459 | } |
| 2460 | b := dAtA[iNdEx] |
| 2461 | iNdEx++ |
| 2462 | stringLen |= uint64(b&0x7F) << shift |
| 2463 | if b < 0x80 { |
| 2464 | break |
| 2465 | } |
| 2466 | } |
| 2467 | intStringLen := int(stringLen) |
| 2468 | if intStringLen < 0 { |
| 2469 | return ErrInvalidLengthGenerated |
| 2470 | } |
| 2471 | postIndex := iNdEx + intStringLen |
| 2472 | if postIndex < 0 { |
| 2473 | return ErrInvalidLengthGenerated |
| 2474 | } |
| 2475 | if postIndex > l { |
| 2476 | return io.ErrUnexpectedEOF |
| 2477 | } |
| 2478 | m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 2479 | iNdEx = postIndex |
| 2480 | case 2: |
| 2481 | if wireType != 2 { |
| 2482 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2483 | } |
| 2484 | var stringLen uint64 |
| 2485 | for shift := uint(0); ; shift += 7 { |
| 2486 | if shift >= 64 { |
| 2487 | return ErrIntOverflowGenerated |
| 2488 | } |
| 2489 | if iNdEx >= l { |
| 2490 | return io.ErrUnexpectedEOF |
| 2491 | } |
| 2492 | b := dAtA[iNdEx] |
| 2493 | iNdEx++ |
| 2494 | stringLen |= uint64(b&0x7F) << shift |
| 2495 | if b < 0x80 { |
| 2496 | break |
| 2497 | } |
| 2498 | } |
| 2499 | intStringLen := int(stringLen) |
| 2500 | if intStringLen < 0 { |
| 2501 | return ErrInvalidLengthGenerated |
| 2502 | } |
| 2503 | postIndex := iNdEx + intStringLen |
| 2504 | if postIndex < 0 { |
| 2505 | return ErrInvalidLengthGenerated |
| 2506 | } |
| 2507 | if postIndex > l { |
| 2508 | return io.ErrUnexpectedEOF |
| 2509 | } |
| 2510 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 2511 | iNdEx = postIndex |
| 2512 | case 3: |
| 2513 | if wireType != 2 { |
| 2514 | return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
| 2515 | } |
| 2516 | var stringLen uint64 |
| 2517 | for shift := uint(0); ; shift += 7 { |
| 2518 | if shift >= 64 { |
| 2519 | return ErrIntOverflowGenerated |
| 2520 | } |
| 2521 | if iNdEx >= l { |
| 2522 | return io.ErrUnexpectedEOF |
| 2523 | } |
| 2524 | b := dAtA[iNdEx] |
| 2525 | iNdEx++ |
| 2526 | stringLen |= uint64(b&0x7F) << shift |
| 2527 | if b < 0x80 { |
| 2528 | break |
| 2529 | } |
| 2530 | } |
| 2531 | intStringLen := int(stringLen) |
| 2532 | if intStringLen < 0 { |
| 2533 | return ErrInvalidLengthGenerated |
| 2534 | } |
| 2535 | postIndex := iNdEx + intStringLen |
| 2536 | if postIndex < 0 { |
| 2537 | return ErrInvalidLengthGenerated |
| 2538 | } |
| 2539 | if postIndex > l { |
| 2540 | return io.ErrUnexpectedEOF |
| 2541 | } |
| 2542 | s := string(dAtA[iNdEx:postIndex]) |
| 2543 | m.Path = &s |
| 2544 | iNdEx = postIndex |
| 2545 | case 4: |
| 2546 | if wireType != 0 { |
| 2547 | return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) |
| 2548 | } |
| 2549 | var v int32 |
| 2550 | for shift := uint(0); ; shift += 7 { |
| 2551 | if shift >= 64 { |
| 2552 | return ErrIntOverflowGenerated |
| 2553 | } |
| 2554 | if iNdEx >= l { |
| 2555 | return io.ErrUnexpectedEOF |
| 2556 | } |
| 2557 | b := dAtA[iNdEx] |
| 2558 | iNdEx++ |
| 2559 | v |= int32(b&0x7F) << shift |
| 2560 | if b < 0x80 { |
| 2561 | break |
| 2562 | } |
| 2563 | } |
| 2564 | m.Port = &v |
| 2565 | default: |
| 2566 | iNdEx = preIndex |
| 2567 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2568 | if err != nil { |
| 2569 | return err |
| 2570 | } |
| 2571 | if skippy < 0 { |
| 2572 | return ErrInvalidLengthGenerated |
| 2573 | } |
| 2574 | if (iNdEx + skippy) < 0 { |
| 2575 | return ErrInvalidLengthGenerated |
| 2576 | } |
| 2577 | if (iNdEx + skippy) > l { |
| 2578 | return io.ErrUnexpectedEOF |
| 2579 | } |
| 2580 | iNdEx += skippy |
| 2581 | } |
| 2582 | } |
| 2583 | |
| 2584 | if iNdEx > l { |
| 2585 | return io.ErrUnexpectedEOF |
| 2586 | } |
| 2587 | return nil |
| 2588 | } |
| 2589 | func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error { |
| 2590 | l := len(dAtA) |
| 2591 | iNdEx := 0 |
| 2592 | for iNdEx < l { |
| 2593 | preIndex := iNdEx |
| 2594 | var wire uint64 |
| 2595 | for shift := uint(0); ; shift += 7 { |
| 2596 | if shift >= 64 { |
| 2597 | return ErrIntOverflowGenerated |
| 2598 | } |
| 2599 | if iNdEx >= l { |
| 2600 | return io.ErrUnexpectedEOF |
| 2601 | } |
| 2602 | b := dAtA[iNdEx] |
| 2603 | iNdEx++ |
| 2604 | wire |= uint64(b&0x7F) << shift |
| 2605 | if b < 0x80 { |
| 2606 | break |
| 2607 | } |
| 2608 | } |
| 2609 | fieldNum := int32(wire >> 3) |
| 2610 | wireType := int(wire & 0x7) |
| 2611 | if wireType == 4 { |
| 2612 | return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group") |
| 2613 | } |
| 2614 | if fieldNum <= 0 { |
| 2615 | return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2616 | } |
| 2617 | switch fieldNum { |
| 2618 | case 1: |
| 2619 | if wireType != 2 { |
| 2620 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2621 | } |
| 2622 | var stringLen uint64 |
| 2623 | for shift := uint(0); ; shift += 7 { |
| 2624 | if shift >= 64 { |
| 2625 | return ErrIntOverflowGenerated |
| 2626 | } |
| 2627 | if iNdEx >= l { |
| 2628 | return io.ErrUnexpectedEOF |
| 2629 | } |
| 2630 | b := dAtA[iNdEx] |
| 2631 | iNdEx++ |
| 2632 | stringLen |= uint64(b&0x7F) << shift |
| 2633 | if b < 0x80 { |
| 2634 | break |
| 2635 | } |
| 2636 | } |
| 2637 | intStringLen := int(stringLen) |
| 2638 | if intStringLen < 0 { |
| 2639 | return ErrInvalidLengthGenerated |
| 2640 | } |
| 2641 | postIndex := iNdEx + intStringLen |
| 2642 | if postIndex < 0 { |
| 2643 | return ErrInvalidLengthGenerated |
| 2644 | } |
| 2645 | if postIndex > l { |
| 2646 | return io.ErrUnexpectedEOF |
| 2647 | } |
| 2648 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 2649 | iNdEx = postIndex |
| 2650 | case 2: |
| 2651 | if wireType != 2 { |
| 2652 | return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) |
| 2653 | } |
| 2654 | var msglen int |
| 2655 | for shift := uint(0); ; shift += 7 { |
| 2656 | if shift >= 64 { |
| 2657 | return ErrIntOverflowGenerated |
| 2658 | } |
| 2659 | if iNdEx >= l { |
| 2660 | return io.ErrUnexpectedEOF |
| 2661 | } |
| 2662 | b := dAtA[iNdEx] |
| 2663 | iNdEx++ |
| 2664 | msglen |= int(b&0x7F) << shift |
| 2665 | if b < 0x80 { |
| 2666 | break |
| 2667 | } |
| 2668 | } |
| 2669 | if msglen < 0 { |
| 2670 | return ErrInvalidLengthGenerated |
| 2671 | } |
| 2672 | postIndex := iNdEx + msglen |
| 2673 | if postIndex < 0 { |
| 2674 | return ErrInvalidLengthGenerated |
| 2675 | } |
| 2676 | if postIndex > l { |
| 2677 | return io.ErrUnexpectedEOF |
| 2678 | } |
| 2679 | if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2680 | return err |
| 2681 | } |
| 2682 | iNdEx = postIndex |
| 2683 | case 3: |
| 2684 | if wireType != 2 { |
| 2685 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 2686 | } |
| 2687 | var msglen int |
| 2688 | for shift := uint(0); ; shift += 7 { |
| 2689 | if shift >= 64 { |
| 2690 | return ErrIntOverflowGenerated |
| 2691 | } |
| 2692 | if iNdEx >= l { |
| 2693 | return io.ErrUnexpectedEOF |
| 2694 | } |
| 2695 | b := dAtA[iNdEx] |
| 2696 | iNdEx++ |
| 2697 | msglen |= int(b&0x7F) << shift |
| 2698 | if b < 0x80 { |
| 2699 | break |
| 2700 | } |
| 2701 | } |
| 2702 | if msglen < 0 { |
| 2703 | return ErrInvalidLengthGenerated |
| 2704 | } |
| 2705 | postIndex := iNdEx + msglen |
| 2706 | if postIndex < 0 { |
| 2707 | return ErrInvalidLengthGenerated |
| 2708 | } |
| 2709 | if postIndex > l { |
| 2710 | return io.ErrUnexpectedEOF |
| 2711 | } |
| 2712 | m.Rules = append(m.Rules, RuleWithOperations{}) |
| 2713 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2714 | return err |
| 2715 | } |
| 2716 | iNdEx = postIndex |
| 2717 | case 4: |
| 2718 | if wireType != 2 { |
| 2719 | return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) |
| 2720 | } |
| 2721 | var stringLen uint64 |
| 2722 | for shift := uint(0); ; shift += 7 { |
| 2723 | if shift >= 64 { |
| 2724 | return ErrIntOverflowGenerated |
| 2725 | } |
| 2726 | if iNdEx >= l { |
| 2727 | return io.ErrUnexpectedEOF |
| 2728 | } |
| 2729 | b := dAtA[iNdEx] |
| 2730 | iNdEx++ |
| 2731 | stringLen |= uint64(b&0x7F) << shift |
| 2732 | if b < 0x80 { |
| 2733 | break |
| 2734 | } |
| 2735 | } |
| 2736 | intStringLen := int(stringLen) |
| 2737 | if intStringLen < 0 { |
| 2738 | return ErrInvalidLengthGenerated |
| 2739 | } |
| 2740 | postIndex := iNdEx + intStringLen |
| 2741 | if postIndex < 0 { |
| 2742 | return ErrInvalidLengthGenerated |
| 2743 | } |
| 2744 | if postIndex > l { |
| 2745 | return io.ErrUnexpectedEOF |
| 2746 | } |
| 2747 | s := FailurePolicyType(dAtA[iNdEx:postIndex]) |
| 2748 | m.FailurePolicy = &s |
| 2749 | iNdEx = postIndex |
| 2750 | case 5: |
| 2751 | if wireType != 2 { |
| 2752 | return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) |
| 2753 | } |
| 2754 | var msglen int |
| 2755 | for shift := uint(0); ; shift += 7 { |
| 2756 | if shift >= 64 { |
| 2757 | return ErrIntOverflowGenerated |
| 2758 | } |
| 2759 | if iNdEx >= l { |
| 2760 | return io.ErrUnexpectedEOF |
| 2761 | } |
| 2762 | b := dAtA[iNdEx] |
| 2763 | iNdEx++ |
| 2764 | msglen |= int(b&0x7F) << shift |
| 2765 | if b < 0x80 { |
| 2766 | break |
| 2767 | } |
| 2768 | } |
| 2769 | if msglen < 0 { |
| 2770 | return ErrInvalidLengthGenerated |
| 2771 | } |
| 2772 | postIndex := iNdEx + msglen |
| 2773 | if postIndex < 0 { |
| 2774 | return ErrInvalidLengthGenerated |
| 2775 | } |
| 2776 | if postIndex > l { |
| 2777 | return io.ErrUnexpectedEOF |
| 2778 | } |
| 2779 | if m.NamespaceSelector == nil { |
| 2780 | m.NamespaceSelector = &v1.LabelSelector{} |
| 2781 | } |
| 2782 | if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2783 | return err |
| 2784 | } |
| 2785 | iNdEx = postIndex |
| 2786 | case 6: |
| 2787 | if wireType != 2 { |
| 2788 | return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) |
| 2789 | } |
| 2790 | var stringLen uint64 |
| 2791 | for shift := uint(0); ; shift += 7 { |
| 2792 | if shift >= 64 { |
| 2793 | return ErrIntOverflowGenerated |
| 2794 | } |
| 2795 | if iNdEx >= l { |
| 2796 | return io.ErrUnexpectedEOF |
| 2797 | } |
| 2798 | b := dAtA[iNdEx] |
| 2799 | iNdEx++ |
| 2800 | stringLen |= uint64(b&0x7F) << shift |
| 2801 | if b < 0x80 { |
| 2802 | break |
| 2803 | } |
| 2804 | } |
| 2805 | intStringLen := int(stringLen) |
| 2806 | if intStringLen < 0 { |
| 2807 | return ErrInvalidLengthGenerated |
| 2808 | } |
| 2809 | postIndex := iNdEx + intStringLen |
| 2810 | if postIndex < 0 { |
| 2811 | return ErrInvalidLengthGenerated |
| 2812 | } |
| 2813 | if postIndex > l { |
| 2814 | return io.ErrUnexpectedEOF |
| 2815 | } |
| 2816 | s := SideEffectClass(dAtA[iNdEx:postIndex]) |
| 2817 | m.SideEffects = &s |
| 2818 | iNdEx = postIndex |
| 2819 | case 7: |
| 2820 | if wireType != 0 { |
| 2821 | return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) |
| 2822 | } |
| 2823 | var v int32 |
| 2824 | for shift := uint(0); ; shift += 7 { |
| 2825 | if shift >= 64 { |
| 2826 | return ErrIntOverflowGenerated |
| 2827 | } |
| 2828 | if iNdEx >= l { |
| 2829 | return io.ErrUnexpectedEOF |
| 2830 | } |
| 2831 | b := dAtA[iNdEx] |
| 2832 | iNdEx++ |
| 2833 | v |= int32(b&0x7F) << shift |
| 2834 | if b < 0x80 { |
| 2835 | break |
| 2836 | } |
| 2837 | } |
| 2838 | m.TimeoutSeconds = &v |
| 2839 | case 8: |
| 2840 | if wireType != 2 { |
| 2841 | return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) |
| 2842 | } |
| 2843 | var stringLen uint64 |
| 2844 | for shift := uint(0); ; shift += 7 { |
| 2845 | if shift >= 64 { |
| 2846 | return ErrIntOverflowGenerated |
| 2847 | } |
| 2848 | if iNdEx >= l { |
| 2849 | return io.ErrUnexpectedEOF |
| 2850 | } |
| 2851 | b := dAtA[iNdEx] |
| 2852 | iNdEx++ |
| 2853 | stringLen |= uint64(b&0x7F) << shift |
| 2854 | if b < 0x80 { |
| 2855 | break |
| 2856 | } |
| 2857 | } |
| 2858 | intStringLen := int(stringLen) |
| 2859 | if intStringLen < 0 { |
| 2860 | return ErrInvalidLengthGenerated |
| 2861 | } |
| 2862 | postIndex := iNdEx + intStringLen |
| 2863 | if postIndex < 0 { |
| 2864 | return ErrInvalidLengthGenerated |
| 2865 | } |
| 2866 | if postIndex > l { |
| 2867 | return io.ErrUnexpectedEOF |
| 2868 | } |
| 2869 | m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) |
| 2870 | iNdEx = postIndex |
| 2871 | case 9: |
| 2872 | if wireType != 2 { |
| 2873 | return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) |
| 2874 | } |
| 2875 | var stringLen uint64 |
| 2876 | for shift := uint(0); ; shift += 7 { |
| 2877 | if shift >= 64 { |
| 2878 | return ErrIntOverflowGenerated |
| 2879 | } |
| 2880 | if iNdEx >= l { |
| 2881 | return io.ErrUnexpectedEOF |
| 2882 | } |
| 2883 | b := dAtA[iNdEx] |
| 2884 | iNdEx++ |
| 2885 | stringLen |= uint64(b&0x7F) << shift |
| 2886 | if b < 0x80 { |
| 2887 | break |
| 2888 | } |
| 2889 | } |
| 2890 | intStringLen := int(stringLen) |
| 2891 | if intStringLen < 0 { |
| 2892 | return ErrInvalidLengthGenerated |
| 2893 | } |
| 2894 | postIndex := iNdEx + intStringLen |
| 2895 | if postIndex < 0 { |
| 2896 | return ErrInvalidLengthGenerated |
| 2897 | } |
| 2898 | if postIndex > l { |
| 2899 | return io.ErrUnexpectedEOF |
| 2900 | } |
| 2901 | s := MatchPolicyType(dAtA[iNdEx:postIndex]) |
| 2902 | m.MatchPolicy = &s |
| 2903 | iNdEx = postIndex |
| 2904 | case 10: |
| 2905 | if wireType != 2 { |
| 2906 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) |
| 2907 | } |
| 2908 | var msglen int |
| 2909 | for shift := uint(0); ; shift += 7 { |
| 2910 | if shift >= 64 { |
| 2911 | return ErrIntOverflowGenerated |
| 2912 | } |
| 2913 | if iNdEx >= l { |
| 2914 | return io.ErrUnexpectedEOF |
| 2915 | } |
| 2916 | b := dAtA[iNdEx] |
| 2917 | iNdEx++ |
| 2918 | msglen |= int(b&0x7F) << shift |
| 2919 | if b < 0x80 { |
| 2920 | break |
| 2921 | } |
| 2922 | } |
| 2923 | if msglen < 0 { |
| 2924 | return ErrInvalidLengthGenerated |
| 2925 | } |
| 2926 | postIndex := iNdEx + msglen |
| 2927 | if postIndex < 0 { |
| 2928 | return ErrInvalidLengthGenerated |
| 2929 | } |
| 2930 | if postIndex > l { |
| 2931 | return io.ErrUnexpectedEOF |
| 2932 | } |
| 2933 | if m.ObjectSelector == nil { |
| 2934 | m.ObjectSelector = &v1.LabelSelector{} |
| 2935 | } |
| 2936 | if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2937 | return err |
| 2938 | } |
| 2939 | iNdEx = postIndex |
| 2940 | default: |
| 2941 | iNdEx = preIndex |
| 2942 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2943 | if err != nil { |
| 2944 | return err |
| 2945 | } |
| 2946 | if skippy < 0 { |
| 2947 | return ErrInvalidLengthGenerated |
| 2948 | } |
| 2949 | if (iNdEx + skippy) < 0 { |
| 2950 | return ErrInvalidLengthGenerated |
| 2951 | } |
| 2952 | if (iNdEx + skippy) > l { |
| 2953 | return io.ErrUnexpectedEOF |
| 2954 | } |
| 2955 | iNdEx += skippy |
| 2956 | } |
| 2957 | } |
| 2958 | |
| 2959 | if iNdEx > l { |
| 2960 | return io.ErrUnexpectedEOF |
| 2961 | } |
| 2962 | return nil |
| 2963 | } |
| 2964 | func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error { |
| 2965 | l := len(dAtA) |
| 2966 | iNdEx := 0 |
| 2967 | for iNdEx < l { |
| 2968 | preIndex := iNdEx |
| 2969 | var wire uint64 |
| 2970 | for shift := uint(0); ; shift += 7 { |
| 2971 | if shift >= 64 { |
| 2972 | return ErrIntOverflowGenerated |
| 2973 | } |
| 2974 | if iNdEx >= l { |
| 2975 | return io.ErrUnexpectedEOF |
| 2976 | } |
| 2977 | b := dAtA[iNdEx] |
| 2978 | iNdEx++ |
| 2979 | wire |= uint64(b&0x7F) << shift |
| 2980 | if b < 0x80 { |
| 2981 | break |
| 2982 | } |
| 2983 | } |
| 2984 | fieldNum := int32(wire >> 3) |
| 2985 | wireType := int(wire & 0x7) |
| 2986 | if wireType == 4 { |
| 2987 | return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group") |
| 2988 | } |
| 2989 | if fieldNum <= 0 { |
| 2990 | return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2991 | } |
| 2992 | switch fieldNum { |
| 2993 | case 1: |
| 2994 | if wireType != 2 { |
| 2995 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2996 | } |
| 2997 | var msglen int |
| 2998 | for shift := uint(0); ; shift += 7 { |
| 2999 | if shift >= 64 { |
| 3000 | return ErrIntOverflowGenerated |
| 3001 | } |
| 3002 | if iNdEx >= l { |
| 3003 | return io.ErrUnexpectedEOF |
| 3004 | } |
| 3005 | b := dAtA[iNdEx] |
| 3006 | iNdEx++ |
| 3007 | msglen |= int(b&0x7F) << shift |
| 3008 | if b < 0x80 { |
| 3009 | break |
| 3010 | } |
| 3011 | } |
| 3012 | if msglen < 0 { |
| 3013 | return ErrInvalidLengthGenerated |
| 3014 | } |
| 3015 | postIndex := iNdEx + msglen |
| 3016 | if postIndex < 0 { |
| 3017 | return ErrInvalidLengthGenerated |
| 3018 | } |
| 3019 | if postIndex > l { |
| 3020 | return io.ErrUnexpectedEOF |
| 3021 | } |
| 3022 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3023 | return err |
| 3024 | } |
| 3025 | iNdEx = postIndex |
| 3026 | case 2: |
| 3027 | if wireType != 2 { |
| 3028 | return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) |
| 3029 | } |
| 3030 | var msglen int |
| 3031 | for shift := uint(0); ; shift += 7 { |
| 3032 | if shift >= 64 { |
| 3033 | return ErrIntOverflowGenerated |
| 3034 | } |
| 3035 | if iNdEx >= l { |
| 3036 | return io.ErrUnexpectedEOF |
| 3037 | } |
| 3038 | b := dAtA[iNdEx] |
| 3039 | iNdEx++ |
| 3040 | msglen |= int(b&0x7F) << shift |
| 3041 | if b < 0x80 { |
| 3042 | break |
| 3043 | } |
| 3044 | } |
| 3045 | if msglen < 0 { |
| 3046 | return ErrInvalidLengthGenerated |
| 3047 | } |
| 3048 | postIndex := iNdEx + msglen |
| 3049 | if postIndex < 0 { |
| 3050 | return ErrInvalidLengthGenerated |
| 3051 | } |
| 3052 | if postIndex > l { |
| 3053 | return io.ErrUnexpectedEOF |
| 3054 | } |
| 3055 | m.Webhooks = append(m.Webhooks, ValidatingWebhook{}) |
| 3056 | if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3057 | return err |
| 3058 | } |
| 3059 | iNdEx = postIndex |
| 3060 | default: |
| 3061 | iNdEx = preIndex |
| 3062 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3063 | if err != nil { |
| 3064 | return err |
| 3065 | } |
| 3066 | if skippy < 0 { |
| 3067 | return ErrInvalidLengthGenerated |
| 3068 | } |
| 3069 | if (iNdEx + skippy) < 0 { |
| 3070 | return ErrInvalidLengthGenerated |
| 3071 | } |
| 3072 | if (iNdEx + skippy) > l { |
| 3073 | return io.ErrUnexpectedEOF |
| 3074 | } |
| 3075 | iNdEx += skippy |
| 3076 | } |
| 3077 | } |
| 3078 | |
| 3079 | if iNdEx > l { |
| 3080 | return io.ErrUnexpectedEOF |
| 3081 | } |
| 3082 | return nil |
| 3083 | } |
| 3084 | func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { |
| 3085 | l := len(dAtA) |
| 3086 | iNdEx := 0 |
| 3087 | for iNdEx < l { |
| 3088 | preIndex := iNdEx |
| 3089 | var wire uint64 |
| 3090 | for shift := uint(0); ; shift += 7 { |
| 3091 | if shift >= 64 { |
| 3092 | return ErrIntOverflowGenerated |
| 3093 | } |
| 3094 | if iNdEx >= l { |
| 3095 | return io.ErrUnexpectedEOF |
| 3096 | } |
| 3097 | b := dAtA[iNdEx] |
| 3098 | iNdEx++ |
| 3099 | wire |= uint64(b&0x7F) << shift |
| 3100 | if b < 0x80 { |
| 3101 | break |
| 3102 | } |
| 3103 | } |
| 3104 | fieldNum := int32(wire >> 3) |
| 3105 | wireType := int(wire & 0x7) |
| 3106 | if wireType == 4 { |
| 3107 | return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group") |
| 3108 | } |
| 3109 | if fieldNum <= 0 { |
| 3110 | return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3111 | } |
| 3112 | switch fieldNum { |
| 3113 | case 1: |
| 3114 | if wireType != 2 { |
| 3115 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 3116 | } |
| 3117 | var msglen int |
| 3118 | for shift := uint(0); ; shift += 7 { |
| 3119 | if shift >= 64 { |
| 3120 | return ErrIntOverflowGenerated |
| 3121 | } |
| 3122 | if iNdEx >= l { |
| 3123 | return io.ErrUnexpectedEOF |
| 3124 | } |
| 3125 | b := dAtA[iNdEx] |
| 3126 | iNdEx++ |
| 3127 | msglen |= int(b&0x7F) << shift |
| 3128 | if b < 0x80 { |
| 3129 | break |
| 3130 | } |
| 3131 | } |
| 3132 | if msglen < 0 { |
| 3133 | return ErrInvalidLengthGenerated |
| 3134 | } |
| 3135 | postIndex := iNdEx + msglen |
| 3136 | if postIndex < 0 { |
| 3137 | return ErrInvalidLengthGenerated |
| 3138 | } |
| 3139 | if postIndex > l { |
| 3140 | return io.ErrUnexpectedEOF |
| 3141 | } |
| 3142 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3143 | return err |
| 3144 | } |
| 3145 | iNdEx = postIndex |
| 3146 | case 2: |
| 3147 | if wireType != 2 { |
| 3148 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 3149 | } |
| 3150 | var msglen int |
| 3151 | for shift := uint(0); ; shift += 7 { |
| 3152 | if shift >= 64 { |
| 3153 | return ErrIntOverflowGenerated |
| 3154 | } |
| 3155 | if iNdEx >= l { |
| 3156 | return io.ErrUnexpectedEOF |
| 3157 | } |
| 3158 | b := dAtA[iNdEx] |
| 3159 | iNdEx++ |
| 3160 | msglen |= int(b&0x7F) << shift |
| 3161 | if b < 0x80 { |
| 3162 | break |
| 3163 | } |
| 3164 | } |
| 3165 | if msglen < 0 { |
| 3166 | return ErrInvalidLengthGenerated |
| 3167 | } |
| 3168 | postIndex := iNdEx + msglen |
| 3169 | if postIndex < 0 { |
| 3170 | return ErrInvalidLengthGenerated |
| 3171 | } |
| 3172 | if postIndex > l { |
| 3173 | return io.ErrUnexpectedEOF |
| 3174 | } |
| 3175 | m.Items = append(m.Items, ValidatingWebhookConfiguration{}) |
| 3176 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3177 | return err |
| 3178 | } |
| 3179 | iNdEx = postIndex |
| 3180 | default: |
| 3181 | iNdEx = preIndex |
| 3182 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3183 | if err != nil { |
| 3184 | return err |
| 3185 | } |
| 3186 | if skippy < 0 { |
| 3187 | return ErrInvalidLengthGenerated |
| 3188 | } |
| 3189 | if (iNdEx + skippy) < 0 { |
| 3190 | return ErrInvalidLengthGenerated |
| 3191 | } |
| 3192 | if (iNdEx + skippy) > l { |
| 3193 | return io.ErrUnexpectedEOF |
| 3194 | } |
| 3195 | iNdEx += skippy |
| 3196 | } |
| 3197 | } |
| 3198 | |
| 3199 | if iNdEx > l { |
| 3200 | return io.ErrUnexpectedEOF |
| 3201 | } |
| 3202 | return nil |
| 3203 | } |
| 3204 | func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { |
| 3205 | l := len(dAtA) |
| 3206 | iNdEx := 0 |
| 3207 | for iNdEx < l { |
| 3208 | preIndex := iNdEx |
| 3209 | var wire uint64 |
| 3210 | for shift := uint(0); ; shift += 7 { |
| 3211 | if shift >= 64 { |
| 3212 | return ErrIntOverflowGenerated |
| 3213 | } |
| 3214 | if iNdEx >= l { |
| 3215 | return io.ErrUnexpectedEOF |
| 3216 | } |
| 3217 | b := dAtA[iNdEx] |
| 3218 | iNdEx++ |
| 3219 | wire |= uint64(b&0x7F) << shift |
| 3220 | if b < 0x80 { |
| 3221 | break |
| 3222 | } |
| 3223 | } |
| 3224 | fieldNum := int32(wire >> 3) |
| 3225 | wireType := int(wire & 0x7) |
| 3226 | if wireType == 4 { |
| 3227 | return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") |
| 3228 | } |
| 3229 | if fieldNum <= 0 { |
| 3230 | return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3231 | } |
| 3232 | switch fieldNum { |
| 3233 | case 1: |
| 3234 | if wireType != 2 { |
| 3235 | return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) |
| 3236 | } |
| 3237 | var msglen int |
| 3238 | for shift := uint(0); ; shift += 7 { |
| 3239 | if shift >= 64 { |
| 3240 | return ErrIntOverflowGenerated |
| 3241 | } |
| 3242 | if iNdEx >= l { |
| 3243 | return io.ErrUnexpectedEOF |
| 3244 | } |
| 3245 | b := dAtA[iNdEx] |
| 3246 | iNdEx++ |
| 3247 | msglen |= int(b&0x7F) << shift |
| 3248 | if b < 0x80 { |
| 3249 | break |
| 3250 | } |
| 3251 | } |
| 3252 | if msglen < 0 { |
| 3253 | return ErrInvalidLengthGenerated |
| 3254 | } |
| 3255 | postIndex := iNdEx + msglen |
| 3256 | if postIndex < 0 { |
| 3257 | return ErrInvalidLengthGenerated |
| 3258 | } |
| 3259 | if postIndex > l { |
| 3260 | return io.ErrUnexpectedEOF |
| 3261 | } |
| 3262 | if m.Service == nil { |
| 3263 | m.Service = &ServiceReference{} |
| 3264 | } |
| 3265 | if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3266 | return err |
| 3267 | } |
| 3268 | iNdEx = postIndex |
| 3269 | case 2: |
| 3270 | if wireType != 2 { |
| 3271 | return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) |
| 3272 | } |
| 3273 | var byteLen int |
| 3274 | for shift := uint(0); ; shift += 7 { |
| 3275 | if shift >= 64 { |
| 3276 | return ErrIntOverflowGenerated |
| 3277 | } |
| 3278 | if iNdEx >= l { |
| 3279 | return io.ErrUnexpectedEOF |
| 3280 | } |
| 3281 | b := dAtA[iNdEx] |
| 3282 | iNdEx++ |
| 3283 | byteLen |= int(b&0x7F) << shift |
| 3284 | if b < 0x80 { |
| 3285 | break |
| 3286 | } |
| 3287 | } |
| 3288 | if byteLen < 0 { |
| 3289 | return ErrInvalidLengthGenerated |
| 3290 | } |
| 3291 | postIndex := iNdEx + byteLen |
| 3292 | if postIndex < 0 { |
| 3293 | return ErrInvalidLengthGenerated |
| 3294 | } |
| 3295 | if postIndex > l { |
| 3296 | return io.ErrUnexpectedEOF |
| 3297 | } |
| 3298 | m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) |
| 3299 | if m.CABundle == nil { |
| 3300 | m.CABundle = []byte{} |
| 3301 | } |
| 3302 | iNdEx = postIndex |
| 3303 | case 3: |
| 3304 | if wireType != 2 { |
| 3305 | return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) |
| 3306 | } |
| 3307 | var stringLen uint64 |
| 3308 | for shift := uint(0); ; shift += 7 { |
| 3309 | if shift >= 64 { |
| 3310 | return ErrIntOverflowGenerated |
| 3311 | } |
| 3312 | if iNdEx >= l { |
| 3313 | return io.ErrUnexpectedEOF |
| 3314 | } |
| 3315 | b := dAtA[iNdEx] |
| 3316 | iNdEx++ |
| 3317 | stringLen |= uint64(b&0x7F) << shift |
| 3318 | if b < 0x80 { |
| 3319 | break |
| 3320 | } |
| 3321 | } |
| 3322 | intStringLen := int(stringLen) |
| 3323 | if intStringLen < 0 { |
| 3324 | return ErrInvalidLengthGenerated |
| 3325 | } |
| 3326 | postIndex := iNdEx + intStringLen |
| 3327 | if postIndex < 0 { |
| 3328 | return ErrInvalidLengthGenerated |
| 3329 | } |
| 3330 | if postIndex > l { |
| 3331 | return io.ErrUnexpectedEOF |
| 3332 | } |
| 3333 | s := string(dAtA[iNdEx:postIndex]) |
| 3334 | m.URL = &s |
| 3335 | iNdEx = postIndex |
| 3336 | default: |
| 3337 | iNdEx = preIndex |
| 3338 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3339 | if err != nil { |
| 3340 | return err |
| 3341 | } |
| 3342 | if skippy < 0 { |
| 3343 | return ErrInvalidLengthGenerated |
| 3344 | } |
| 3345 | if (iNdEx + skippy) < 0 { |
| 3346 | return ErrInvalidLengthGenerated |
| 3347 | } |
| 3348 | if (iNdEx + skippy) > l { |
| 3349 | return io.ErrUnexpectedEOF |
| 3350 | } |
| 3351 | iNdEx += skippy |
| 3352 | } |
| 3353 | } |
| 3354 | |
| 3355 | if iNdEx > l { |
| 3356 | return io.ErrUnexpectedEOF |
| 3357 | } |
| 3358 | return nil |
| 3359 | } |
| 3360 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 3361 | l := len(dAtA) |
| 3362 | iNdEx := 0 |
| 3363 | depth := 0 |
| 3364 | for iNdEx < l { |
| 3365 | var wire uint64 |
| 3366 | for shift := uint(0); ; shift += 7 { |
| 3367 | if shift >= 64 { |
| 3368 | return 0, ErrIntOverflowGenerated |
| 3369 | } |
| 3370 | if iNdEx >= l { |
| 3371 | return 0, io.ErrUnexpectedEOF |
| 3372 | } |
| 3373 | b := dAtA[iNdEx] |
| 3374 | iNdEx++ |
| 3375 | wire |= (uint64(b) & 0x7F) << shift |
| 3376 | if b < 0x80 { |
| 3377 | break |
| 3378 | } |
| 3379 | } |
| 3380 | wireType := int(wire & 0x7) |
| 3381 | switch wireType { |
| 3382 | case 0: |
| 3383 | for shift := uint(0); ; shift += 7 { |
| 3384 | if shift >= 64 { |
| 3385 | return 0, ErrIntOverflowGenerated |
| 3386 | } |
| 3387 | if iNdEx >= l { |
| 3388 | return 0, io.ErrUnexpectedEOF |
| 3389 | } |
| 3390 | iNdEx++ |
| 3391 | if dAtA[iNdEx-1] < 0x80 { |
| 3392 | break |
| 3393 | } |
| 3394 | } |
| 3395 | case 1: |
| 3396 | iNdEx += 8 |
| 3397 | case 2: |
| 3398 | var length int |
| 3399 | for shift := uint(0); ; shift += 7 { |
| 3400 | if shift >= 64 { |
| 3401 | return 0, ErrIntOverflowGenerated |
| 3402 | } |
| 3403 | if iNdEx >= l { |
| 3404 | return 0, io.ErrUnexpectedEOF |
| 3405 | } |
| 3406 | b := dAtA[iNdEx] |
| 3407 | iNdEx++ |
| 3408 | length |= (int(b) & 0x7F) << shift |
| 3409 | if b < 0x80 { |
| 3410 | break |
| 3411 | } |
| 3412 | } |
| 3413 | if length < 0 { |
| 3414 | return 0, ErrInvalidLengthGenerated |
| 3415 | } |
| 3416 | iNdEx += length |
| 3417 | case 3: |
| 3418 | depth++ |
| 3419 | case 4: |
| 3420 | if depth == 0 { |
| 3421 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 3422 | } |
| 3423 | depth-- |
| 3424 | case 5: |
| 3425 | iNdEx += 4 |
| 3426 | default: |
| 3427 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 3428 | } |
| 3429 | if iNdEx < 0 { |
| 3430 | return 0, ErrInvalidLengthGenerated |
| 3431 | } |
| 3432 | if depth == 0 { |
| 3433 | return iNdEx, nil |
| 3434 | } |
| 3435 | } |
| 3436 | return 0, io.ErrUnexpectedEOF |
| 3437 | } |
| 3438 | |
| 3439 | var ( |
| 3440 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 3441 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 3442 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 3443 | ) |