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/networking/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 | k8s_io_api_core_v1 "k8s.io/api/core/v1" |
| 29 | v11 "k8s.io/api/core/v1" |
| 30 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 31 | |
| 32 | math "math" |
| 33 | math_bits "math/bits" |
| 34 | reflect "reflect" |
| 35 | strings "strings" |
| 36 | |
| 37 | intstr "k8s.io/apimachinery/pkg/util/intstr" |
| 38 | ) |
| 39 | |
| 40 | // Reference imports to suppress errors if they are not otherwise used. |
| 41 | var _ = proto.Marshal |
| 42 | var _ = fmt.Errorf |
| 43 | var _ = math.Inf |
| 44 | |
| 45 | // This is a compile-time assertion to ensure that this generated file |
| 46 | // is compatible with the proto package it is being compiled against. |
| 47 | // A compilation error at this line likely means your copy of the |
| 48 | // proto package needs to be updated. |
| 49 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 50 | |
| 51 | func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } |
| 52 | func (*HTTPIngressPath) ProtoMessage() {} |
| 53 | func (*HTTPIngressPath) Descriptor() ([]byte, []int) { |
| 54 | return fileDescriptor_1c72867a70a7cc90, []int{0} |
| 55 | } |
| 56 | func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error { |
| 57 | return m.Unmarshal(b) |
| 58 | } |
| 59 | func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 60 | b = b[:cap(b)] |
| 61 | n, err := m.MarshalToSizedBuffer(b) |
| 62 | if err != nil { |
| 63 | return nil, err |
| 64 | } |
| 65 | return b[:n], nil |
| 66 | } |
| 67 | func (m *HTTPIngressPath) XXX_Merge(src proto.Message) { |
| 68 | xxx_messageInfo_HTTPIngressPath.Merge(m, src) |
| 69 | } |
| 70 | func (m *HTTPIngressPath) XXX_Size() int { |
| 71 | return m.Size() |
| 72 | } |
| 73 | func (m *HTTPIngressPath) XXX_DiscardUnknown() { |
| 74 | xxx_messageInfo_HTTPIngressPath.DiscardUnknown(m) |
| 75 | } |
| 76 | |
| 77 | var xxx_messageInfo_HTTPIngressPath proto.InternalMessageInfo |
| 78 | |
| 79 | func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } |
| 80 | func (*HTTPIngressRuleValue) ProtoMessage() {} |
| 81 | func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { |
| 82 | return fileDescriptor_1c72867a70a7cc90, []int{1} |
| 83 | } |
| 84 | func (m *HTTPIngressRuleValue) XXX_Unmarshal(b []byte) error { |
| 85 | return m.Unmarshal(b) |
| 86 | } |
| 87 | func (m *HTTPIngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 88 | b = b[:cap(b)] |
| 89 | n, err := m.MarshalToSizedBuffer(b) |
| 90 | if err != nil { |
| 91 | return nil, err |
| 92 | } |
| 93 | return b[:n], nil |
| 94 | } |
| 95 | func (m *HTTPIngressRuleValue) XXX_Merge(src proto.Message) { |
| 96 | xxx_messageInfo_HTTPIngressRuleValue.Merge(m, src) |
| 97 | } |
| 98 | func (m *HTTPIngressRuleValue) XXX_Size() int { |
| 99 | return m.Size() |
| 100 | } |
| 101 | func (m *HTTPIngressRuleValue) XXX_DiscardUnknown() { |
| 102 | xxx_messageInfo_HTTPIngressRuleValue.DiscardUnknown(m) |
| 103 | } |
| 104 | |
| 105 | var xxx_messageInfo_HTTPIngressRuleValue proto.InternalMessageInfo |
| 106 | |
| 107 | func (m *IPBlock) Reset() { *m = IPBlock{} } |
| 108 | func (*IPBlock) ProtoMessage() {} |
| 109 | func (*IPBlock) Descriptor() ([]byte, []int) { |
| 110 | return fileDescriptor_1c72867a70a7cc90, []int{2} |
| 111 | } |
| 112 | func (m *IPBlock) XXX_Unmarshal(b []byte) error { |
| 113 | return m.Unmarshal(b) |
| 114 | } |
| 115 | func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 116 | b = b[:cap(b)] |
| 117 | n, err := m.MarshalToSizedBuffer(b) |
| 118 | if err != nil { |
| 119 | return nil, err |
| 120 | } |
| 121 | return b[:n], nil |
| 122 | } |
| 123 | func (m *IPBlock) XXX_Merge(src proto.Message) { |
| 124 | xxx_messageInfo_IPBlock.Merge(m, src) |
| 125 | } |
| 126 | func (m *IPBlock) XXX_Size() int { |
| 127 | return m.Size() |
| 128 | } |
| 129 | func (m *IPBlock) XXX_DiscardUnknown() { |
| 130 | xxx_messageInfo_IPBlock.DiscardUnknown(m) |
| 131 | } |
| 132 | |
| 133 | var xxx_messageInfo_IPBlock proto.InternalMessageInfo |
| 134 | |
| 135 | func (m *Ingress) Reset() { *m = Ingress{} } |
| 136 | func (*Ingress) ProtoMessage() {} |
| 137 | func (*Ingress) Descriptor() ([]byte, []int) { |
| 138 | return fileDescriptor_1c72867a70a7cc90, []int{3} |
| 139 | } |
| 140 | func (m *Ingress) XXX_Unmarshal(b []byte) error { |
| 141 | return m.Unmarshal(b) |
| 142 | } |
| 143 | func (m *Ingress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 144 | b = b[:cap(b)] |
| 145 | n, err := m.MarshalToSizedBuffer(b) |
| 146 | if err != nil { |
| 147 | return nil, err |
| 148 | } |
| 149 | return b[:n], nil |
| 150 | } |
| 151 | func (m *Ingress) XXX_Merge(src proto.Message) { |
| 152 | xxx_messageInfo_Ingress.Merge(m, src) |
| 153 | } |
| 154 | func (m *Ingress) XXX_Size() int { |
| 155 | return m.Size() |
| 156 | } |
| 157 | func (m *Ingress) XXX_DiscardUnknown() { |
| 158 | xxx_messageInfo_Ingress.DiscardUnknown(m) |
| 159 | } |
| 160 | |
| 161 | var xxx_messageInfo_Ingress proto.InternalMessageInfo |
| 162 | |
| 163 | func (m *IngressBackend) Reset() { *m = IngressBackend{} } |
| 164 | func (*IngressBackend) ProtoMessage() {} |
| 165 | func (*IngressBackend) Descriptor() ([]byte, []int) { |
| 166 | return fileDescriptor_1c72867a70a7cc90, []int{4} |
| 167 | } |
| 168 | func (m *IngressBackend) XXX_Unmarshal(b []byte) error { |
| 169 | return m.Unmarshal(b) |
| 170 | } |
| 171 | func (m *IngressBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 172 | b = b[:cap(b)] |
| 173 | n, err := m.MarshalToSizedBuffer(b) |
| 174 | if err != nil { |
| 175 | return nil, err |
| 176 | } |
| 177 | return b[:n], nil |
| 178 | } |
| 179 | func (m *IngressBackend) XXX_Merge(src proto.Message) { |
| 180 | xxx_messageInfo_IngressBackend.Merge(m, src) |
| 181 | } |
| 182 | func (m *IngressBackend) XXX_Size() int { |
| 183 | return m.Size() |
| 184 | } |
| 185 | func (m *IngressBackend) XXX_DiscardUnknown() { |
| 186 | xxx_messageInfo_IngressBackend.DiscardUnknown(m) |
| 187 | } |
| 188 | |
| 189 | var xxx_messageInfo_IngressBackend proto.InternalMessageInfo |
| 190 | |
| 191 | func (m *IngressClass) Reset() { *m = IngressClass{} } |
| 192 | func (*IngressClass) ProtoMessage() {} |
| 193 | func (*IngressClass) Descriptor() ([]byte, []int) { |
| 194 | return fileDescriptor_1c72867a70a7cc90, []int{5} |
| 195 | } |
| 196 | func (m *IngressClass) XXX_Unmarshal(b []byte) error { |
| 197 | return m.Unmarshal(b) |
| 198 | } |
| 199 | func (m *IngressClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 200 | b = b[:cap(b)] |
| 201 | n, err := m.MarshalToSizedBuffer(b) |
| 202 | if err != nil { |
| 203 | return nil, err |
| 204 | } |
| 205 | return b[:n], nil |
| 206 | } |
| 207 | func (m *IngressClass) XXX_Merge(src proto.Message) { |
| 208 | xxx_messageInfo_IngressClass.Merge(m, src) |
| 209 | } |
| 210 | func (m *IngressClass) XXX_Size() int { |
| 211 | return m.Size() |
| 212 | } |
| 213 | func (m *IngressClass) XXX_DiscardUnknown() { |
| 214 | xxx_messageInfo_IngressClass.DiscardUnknown(m) |
| 215 | } |
| 216 | |
| 217 | var xxx_messageInfo_IngressClass proto.InternalMessageInfo |
| 218 | |
| 219 | func (m *IngressClassList) Reset() { *m = IngressClassList{} } |
| 220 | func (*IngressClassList) ProtoMessage() {} |
| 221 | func (*IngressClassList) Descriptor() ([]byte, []int) { |
| 222 | return fileDescriptor_1c72867a70a7cc90, []int{6} |
| 223 | } |
| 224 | func (m *IngressClassList) XXX_Unmarshal(b []byte) error { |
| 225 | return m.Unmarshal(b) |
| 226 | } |
| 227 | func (m *IngressClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 228 | b = b[:cap(b)] |
| 229 | n, err := m.MarshalToSizedBuffer(b) |
| 230 | if err != nil { |
| 231 | return nil, err |
| 232 | } |
| 233 | return b[:n], nil |
| 234 | } |
| 235 | func (m *IngressClassList) XXX_Merge(src proto.Message) { |
| 236 | xxx_messageInfo_IngressClassList.Merge(m, src) |
| 237 | } |
| 238 | func (m *IngressClassList) XXX_Size() int { |
| 239 | return m.Size() |
| 240 | } |
| 241 | func (m *IngressClassList) XXX_DiscardUnknown() { |
| 242 | xxx_messageInfo_IngressClassList.DiscardUnknown(m) |
| 243 | } |
| 244 | |
| 245 | var xxx_messageInfo_IngressClassList proto.InternalMessageInfo |
| 246 | |
| 247 | func (m *IngressClassSpec) Reset() { *m = IngressClassSpec{} } |
| 248 | func (*IngressClassSpec) ProtoMessage() {} |
| 249 | func (*IngressClassSpec) Descriptor() ([]byte, []int) { |
| 250 | return fileDescriptor_1c72867a70a7cc90, []int{7} |
| 251 | } |
| 252 | func (m *IngressClassSpec) XXX_Unmarshal(b []byte) error { |
| 253 | return m.Unmarshal(b) |
| 254 | } |
| 255 | func (m *IngressClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 256 | b = b[:cap(b)] |
| 257 | n, err := m.MarshalToSizedBuffer(b) |
| 258 | if err != nil { |
| 259 | return nil, err |
| 260 | } |
| 261 | return b[:n], nil |
| 262 | } |
| 263 | func (m *IngressClassSpec) XXX_Merge(src proto.Message) { |
| 264 | xxx_messageInfo_IngressClassSpec.Merge(m, src) |
| 265 | } |
| 266 | func (m *IngressClassSpec) XXX_Size() int { |
| 267 | return m.Size() |
| 268 | } |
| 269 | func (m *IngressClassSpec) XXX_DiscardUnknown() { |
| 270 | xxx_messageInfo_IngressClassSpec.DiscardUnknown(m) |
| 271 | } |
| 272 | |
| 273 | var xxx_messageInfo_IngressClassSpec proto.InternalMessageInfo |
| 274 | |
| 275 | func (m *IngressList) Reset() { *m = IngressList{} } |
| 276 | func (*IngressList) ProtoMessage() {} |
| 277 | func (*IngressList) Descriptor() ([]byte, []int) { |
| 278 | return fileDescriptor_1c72867a70a7cc90, []int{8} |
| 279 | } |
| 280 | func (m *IngressList) XXX_Unmarshal(b []byte) error { |
| 281 | return m.Unmarshal(b) |
| 282 | } |
| 283 | func (m *IngressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 284 | b = b[:cap(b)] |
| 285 | n, err := m.MarshalToSizedBuffer(b) |
| 286 | if err != nil { |
| 287 | return nil, err |
| 288 | } |
| 289 | return b[:n], nil |
| 290 | } |
| 291 | func (m *IngressList) XXX_Merge(src proto.Message) { |
| 292 | xxx_messageInfo_IngressList.Merge(m, src) |
| 293 | } |
| 294 | func (m *IngressList) XXX_Size() int { |
| 295 | return m.Size() |
| 296 | } |
| 297 | func (m *IngressList) XXX_DiscardUnknown() { |
| 298 | xxx_messageInfo_IngressList.DiscardUnknown(m) |
| 299 | } |
| 300 | |
| 301 | var xxx_messageInfo_IngressList proto.InternalMessageInfo |
| 302 | |
| 303 | func (m *IngressRule) Reset() { *m = IngressRule{} } |
| 304 | func (*IngressRule) ProtoMessage() {} |
| 305 | func (*IngressRule) Descriptor() ([]byte, []int) { |
| 306 | return fileDescriptor_1c72867a70a7cc90, []int{9} |
| 307 | } |
| 308 | func (m *IngressRule) XXX_Unmarshal(b []byte) error { |
| 309 | return m.Unmarshal(b) |
| 310 | } |
| 311 | func (m *IngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 312 | b = b[:cap(b)] |
| 313 | n, err := m.MarshalToSizedBuffer(b) |
| 314 | if err != nil { |
| 315 | return nil, err |
| 316 | } |
| 317 | return b[:n], nil |
| 318 | } |
| 319 | func (m *IngressRule) XXX_Merge(src proto.Message) { |
| 320 | xxx_messageInfo_IngressRule.Merge(m, src) |
| 321 | } |
| 322 | func (m *IngressRule) XXX_Size() int { |
| 323 | return m.Size() |
| 324 | } |
| 325 | func (m *IngressRule) XXX_DiscardUnknown() { |
| 326 | xxx_messageInfo_IngressRule.DiscardUnknown(m) |
| 327 | } |
| 328 | |
| 329 | var xxx_messageInfo_IngressRule proto.InternalMessageInfo |
| 330 | |
| 331 | func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } |
| 332 | func (*IngressRuleValue) ProtoMessage() {} |
| 333 | func (*IngressRuleValue) Descriptor() ([]byte, []int) { |
| 334 | return fileDescriptor_1c72867a70a7cc90, []int{10} |
| 335 | } |
| 336 | func (m *IngressRuleValue) XXX_Unmarshal(b []byte) error { |
| 337 | return m.Unmarshal(b) |
| 338 | } |
| 339 | func (m *IngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 340 | b = b[:cap(b)] |
| 341 | n, err := m.MarshalToSizedBuffer(b) |
| 342 | if err != nil { |
| 343 | return nil, err |
| 344 | } |
| 345 | return b[:n], nil |
| 346 | } |
| 347 | func (m *IngressRuleValue) XXX_Merge(src proto.Message) { |
| 348 | xxx_messageInfo_IngressRuleValue.Merge(m, src) |
| 349 | } |
| 350 | func (m *IngressRuleValue) XXX_Size() int { |
| 351 | return m.Size() |
| 352 | } |
| 353 | func (m *IngressRuleValue) XXX_DiscardUnknown() { |
| 354 | xxx_messageInfo_IngressRuleValue.DiscardUnknown(m) |
| 355 | } |
| 356 | |
| 357 | var xxx_messageInfo_IngressRuleValue proto.InternalMessageInfo |
| 358 | |
| 359 | func (m *IngressServiceBackend) Reset() { *m = IngressServiceBackend{} } |
| 360 | func (*IngressServiceBackend) ProtoMessage() {} |
| 361 | func (*IngressServiceBackend) Descriptor() ([]byte, []int) { |
| 362 | return fileDescriptor_1c72867a70a7cc90, []int{11} |
| 363 | } |
| 364 | func (m *IngressServiceBackend) XXX_Unmarshal(b []byte) error { |
| 365 | return m.Unmarshal(b) |
| 366 | } |
| 367 | func (m *IngressServiceBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 368 | b = b[:cap(b)] |
| 369 | n, err := m.MarshalToSizedBuffer(b) |
| 370 | if err != nil { |
| 371 | return nil, err |
| 372 | } |
| 373 | return b[:n], nil |
| 374 | } |
| 375 | func (m *IngressServiceBackend) XXX_Merge(src proto.Message) { |
| 376 | xxx_messageInfo_IngressServiceBackend.Merge(m, src) |
| 377 | } |
| 378 | func (m *IngressServiceBackend) XXX_Size() int { |
| 379 | return m.Size() |
| 380 | } |
| 381 | func (m *IngressServiceBackend) XXX_DiscardUnknown() { |
| 382 | xxx_messageInfo_IngressServiceBackend.DiscardUnknown(m) |
| 383 | } |
| 384 | |
| 385 | var xxx_messageInfo_IngressServiceBackend proto.InternalMessageInfo |
| 386 | |
| 387 | func (m *IngressSpec) Reset() { *m = IngressSpec{} } |
| 388 | func (*IngressSpec) ProtoMessage() {} |
| 389 | func (*IngressSpec) Descriptor() ([]byte, []int) { |
| 390 | return fileDescriptor_1c72867a70a7cc90, []int{12} |
| 391 | } |
| 392 | func (m *IngressSpec) XXX_Unmarshal(b []byte) error { |
| 393 | return m.Unmarshal(b) |
| 394 | } |
| 395 | func (m *IngressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 396 | b = b[:cap(b)] |
| 397 | n, err := m.MarshalToSizedBuffer(b) |
| 398 | if err != nil { |
| 399 | return nil, err |
| 400 | } |
| 401 | return b[:n], nil |
| 402 | } |
| 403 | func (m *IngressSpec) XXX_Merge(src proto.Message) { |
| 404 | xxx_messageInfo_IngressSpec.Merge(m, src) |
| 405 | } |
| 406 | func (m *IngressSpec) XXX_Size() int { |
| 407 | return m.Size() |
| 408 | } |
| 409 | func (m *IngressSpec) XXX_DiscardUnknown() { |
| 410 | xxx_messageInfo_IngressSpec.DiscardUnknown(m) |
| 411 | } |
| 412 | |
| 413 | var xxx_messageInfo_IngressSpec proto.InternalMessageInfo |
| 414 | |
| 415 | func (m *IngressStatus) Reset() { *m = IngressStatus{} } |
| 416 | func (*IngressStatus) ProtoMessage() {} |
| 417 | func (*IngressStatus) Descriptor() ([]byte, []int) { |
| 418 | return fileDescriptor_1c72867a70a7cc90, []int{13} |
| 419 | } |
| 420 | func (m *IngressStatus) XXX_Unmarshal(b []byte) error { |
| 421 | return m.Unmarshal(b) |
| 422 | } |
| 423 | func (m *IngressStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 424 | b = b[:cap(b)] |
| 425 | n, err := m.MarshalToSizedBuffer(b) |
| 426 | if err != nil { |
| 427 | return nil, err |
| 428 | } |
| 429 | return b[:n], nil |
| 430 | } |
| 431 | func (m *IngressStatus) XXX_Merge(src proto.Message) { |
| 432 | xxx_messageInfo_IngressStatus.Merge(m, src) |
| 433 | } |
| 434 | func (m *IngressStatus) XXX_Size() int { |
| 435 | return m.Size() |
| 436 | } |
| 437 | func (m *IngressStatus) XXX_DiscardUnknown() { |
| 438 | xxx_messageInfo_IngressStatus.DiscardUnknown(m) |
| 439 | } |
| 440 | |
| 441 | var xxx_messageInfo_IngressStatus proto.InternalMessageInfo |
| 442 | |
| 443 | func (m *IngressTLS) Reset() { *m = IngressTLS{} } |
| 444 | func (*IngressTLS) ProtoMessage() {} |
| 445 | func (*IngressTLS) Descriptor() ([]byte, []int) { |
| 446 | return fileDescriptor_1c72867a70a7cc90, []int{14} |
| 447 | } |
| 448 | func (m *IngressTLS) XXX_Unmarshal(b []byte) error { |
| 449 | return m.Unmarshal(b) |
| 450 | } |
| 451 | func (m *IngressTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 452 | b = b[:cap(b)] |
| 453 | n, err := m.MarshalToSizedBuffer(b) |
| 454 | if err != nil { |
| 455 | return nil, err |
| 456 | } |
| 457 | return b[:n], nil |
| 458 | } |
| 459 | func (m *IngressTLS) XXX_Merge(src proto.Message) { |
| 460 | xxx_messageInfo_IngressTLS.Merge(m, src) |
| 461 | } |
| 462 | func (m *IngressTLS) XXX_Size() int { |
| 463 | return m.Size() |
| 464 | } |
| 465 | func (m *IngressTLS) XXX_DiscardUnknown() { |
| 466 | xxx_messageInfo_IngressTLS.DiscardUnknown(m) |
| 467 | } |
| 468 | |
| 469 | var xxx_messageInfo_IngressTLS proto.InternalMessageInfo |
| 470 | |
| 471 | func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } |
| 472 | func (*NetworkPolicy) ProtoMessage() {} |
| 473 | func (*NetworkPolicy) Descriptor() ([]byte, []int) { |
| 474 | return fileDescriptor_1c72867a70a7cc90, []int{15} |
| 475 | } |
| 476 | func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error { |
| 477 | return m.Unmarshal(b) |
| 478 | } |
| 479 | func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 480 | b = b[:cap(b)] |
| 481 | n, err := m.MarshalToSizedBuffer(b) |
| 482 | if err != nil { |
| 483 | return nil, err |
| 484 | } |
| 485 | return b[:n], nil |
| 486 | } |
| 487 | func (m *NetworkPolicy) XXX_Merge(src proto.Message) { |
| 488 | xxx_messageInfo_NetworkPolicy.Merge(m, src) |
| 489 | } |
| 490 | func (m *NetworkPolicy) XXX_Size() int { |
| 491 | return m.Size() |
| 492 | } |
| 493 | func (m *NetworkPolicy) XXX_DiscardUnknown() { |
| 494 | xxx_messageInfo_NetworkPolicy.DiscardUnknown(m) |
| 495 | } |
| 496 | |
| 497 | var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo |
| 498 | |
| 499 | func (m *NetworkPolicyEgressRule) Reset() { *m = NetworkPolicyEgressRule{} } |
| 500 | func (*NetworkPolicyEgressRule) ProtoMessage() {} |
| 501 | func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int) { |
| 502 | return fileDescriptor_1c72867a70a7cc90, []int{16} |
| 503 | } |
| 504 | func (m *NetworkPolicyEgressRule) XXX_Unmarshal(b []byte) error { |
| 505 | return m.Unmarshal(b) |
| 506 | } |
| 507 | func (m *NetworkPolicyEgressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 508 | b = b[:cap(b)] |
| 509 | n, err := m.MarshalToSizedBuffer(b) |
| 510 | if err != nil { |
| 511 | return nil, err |
| 512 | } |
| 513 | return b[:n], nil |
| 514 | } |
| 515 | func (m *NetworkPolicyEgressRule) XXX_Merge(src proto.Message) { |
| 516 | xxx_messageInfo_NetworkPolicyEgressRule.Merge(m, src) |
| 517 | } |
| 518 | func (m *NetworkPolicyEgressRule) XXX_Size() int { |
| 519 | return m.Size() |
| 520 | } |
| 521 | func (m *NetworkPolicyEgressRule) XXX_DiscardUnknown() { |
| 522 | xxx_messageInfo_NetworkPolicyEgressRule.DiscardUnknown(m) |
| 523 | } |
| 524 | |
| 525 | var xxx_messageInfo_NetworkPolicyEgressRule proto.InternalMessageInfo |
| 526 | |
| 527 | func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } |
| 528 | func (*NetworkPolicyIngressRule) ProtoMessage() {} |
| 529 | func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { |
| 530 | return fileDescriptor_1c72867a70a7cc90, []int{17} |
| 531 | } |
| 532 | func (m *NetworkPolicyIngressRule) XXX_Unmarshal(b []byte) error { |
| 533 | return m.Unmarshal(b) |
| 534 | } |
| 535 | func (m *NetworkPolicyIngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 536 | b = b[:cap(b)] |
| 537 | n, err := m.MarshalToSizedBuffer(b) |
| 538 | if err != nil { |
| 539 | return nil, err |
| 540 | } |
| 541 | return b[:n], nil |
| 542 | } |
| 543 | func (m *NetworkPolicyIngressRule) XXX_Merge(src proto.Message) { |
| 544 | xxx_messageInfo_NetworkPolicyIngressRule.Merge(m, src) |
| 545 | } |
| 546 | func (m *NetworkPolicyIngressRule) XXX_Size() int { |
| 547 | return m.Size() |
| 548 | } |
| 549 | func (m *NetworkPolicyIngressRule) XXX_DiscardUnknown() { |
| 550 | xxx_messageInfo_NetworkPolicyIngressRule.DiscardUnknown(m) |
| 551 | } |
| 552 | |
| 553 | var xxx_messageInfo_NetworkPolicyIngressRule proto.InternalMessageInfo |
| 554 | |
| 555 | func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } |
| 556 | func (*NetworkPolicyList) ProtoMessage() {} |
| 557 | func (*NetworkPolicyList) Descriptor() ([]byte, []int) { |
| 558 | return fileDescriptor_1c72867a70a7cc90, []int{18} |
| 559 | } |
| 560 | func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error { |
| 561 | return m.Unmarshal(b) |
| 562 | } |
| 563 | func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 564 | b = b[:cap(b)] |
| 565 | n, err := m.MarshalToSizedBuffer(b) |
| 566 | if err != nil { |
| 567 | return nil, err |
| 568 | } |
| 569 | return b[:n], nil |
| 570 | } |
| 571 | func (m *NetworkPolicyList) XXX_Merge(src proto.Message) { |
| 572 | xxx_messageInfo_NetworkPolicyList.Merge(m, src) |
| 573 | } |
| 574 | func (m *NetworkPolicyList) XXX_Size() int { |
| 575 | return m.Size() |
| 576 | } |
| 577 | func (m *NetworkPolicyList) XXX_DiscardUnknown() { |
| 578 | xxx_messageInfo_NetworkPolicyList.DiscardUnknown(m) |
| 579 | } |
| 580 | |
| 581 | var xxx_messageInfo_NetworkPolicyList proto.InternalMessageInfo |
| 582 | |
| 583 | func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } |
| 584 | func (*NetworkPolicyPeer) ProtoMessage() {} |
| 585 | func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { |
| 586 | return fileDescriptor_1c72867a70a7cc90, []int{19} |
| 587 | } |
| 588 | func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error { |
| 589 | return m.Unmarshal(b) |
| 590 | } |
| 591 | func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 592 | b = b[:cap(b)] |
| 593 | n, err := m.MarshalToSizedBuffer(b) |
| 594 | if err != nil { |
| 595 | return nil, err |
| 596 | } |
| 597 | return b[:n], nil |
| 598 | } |
| 599 | func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message) { |
| 600 | xxx_messageInfo_NetworkPolicyPeer.Merge(m, src) |
| 601 | } |
| 602 | func (m *NetworkPolicyPeer) XXX_Size() int { |
| 603 | return m.Size() |
| 604 | } |
| 605 | func (m *NetworkPolicyPeer) XXX_DiscardUnknown() { |
| 606 | xxx_messageInfo_NetworkPolicyPeer.DiscardUnknown(m) |
| 607 | } |
| 608 | |
| 609 | var xxx_messageInfo_NetworkPolicyPeer proto.InternalMessageInfo |
| 610 | |
| 611 | func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } |
| 612 | func (*NetworkPolicyPort) ProtoMessage() {} |
| 613 | func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { |
| 614 | return fileDescriptor_1c72867a70a7cc90, []int{20} |
| 615 | } |
| 616 | func (m *NetworkPolicyPort) XXX_Unmarshal(b []byte) error { |
| 617 | return m.Unmarshal(b) |
| 618 | } |
| 619 | func (m *NetworkPolicyPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 620 | b = b[:cap(b)] |
| 621 | n, err := m.MarshalToSizedBuffer(b) |
| 622 | if err != nil { |
| 623 | return nil, err |
| 624 | } |
| 625 | return b[:n], nil |
| 626 | } |
| 627 | func (m *NetworkPolicyPort) XXX_Merge(src proto.Message) { |
| 628 | xxx_messageInfo_NetworkPolicyPort.Merge(m, src) |
| 629 | } |
| 630 | func (m *NetworkPolicyPort) XXX_Size() int { |
| 631 | return m.Size() |
| 632 | } |
| 633 | func (m *NetworkPolicyPort) XXX_DiscardUnknown() { |
| 634 | xxx_messageInfo_NetworkPolicyPort.DiscardUnknown(m) |
| 635 | } |
| 636 | |
| 637 | var xxx_messageInfo_NetworkPolicyPort proto.InternalMessageInfo |
| 638 | |
| 639 | func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } |
| 640 | func (*NetworkPolicySpec) ProtoMessage() {} |
| 641 | func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { |
| 642 | return fileDescriptor_1c72867a70a7cc90, []int{21} |
| 643 | } |
| 644 | func (m *NetworkPolicySpec) XXX_Unmarshal(b []byte) error { |
| 645 | return m.Unmarshal(b) |
| 646 | } |
| 647 | func (m *NetworkPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 648 | b = b[:cap(b)] |
| 649 | n, err := m.MarshalToSizedBuffer(b) |
| 650 | if err != nil { |
| 651 | return nil, err |
| 652 | } |
| 653 | return b[:n], nil |
| 654 | } |
| 655 | func (m *NetworkPolicySpec) XXX_Merge(src proto.Message) { |
| 656 | xxx_messageInfo_NetworkPolicySpec.Merge(m, src) |
| 657 | } |
| 658 | func (m *NetworkPolicySpec) XXX_Size() int { |
| 659 | return m.Size() |
| 660 | } |
| 661 | func (m *NetworkPolicySpec) XXX_DiscardUnknown() { |
| 662 | xxx_messageInfo_NetworkPolicySpec.DiscardUnknown(m) |
| 663 | } |
| 664 | |
| 665 | var xxx_messageInfo_NetworkPolicySpec proto.InternalMessageInfo |
| 666 | |
| 667 | func (m *ServiceBackendPort) Reset() { *m = ServiceBackendPort{} } |
| 668 | func (*ServiceBackendPort) ProtoMessage() {} |
| 669 | func (*ServiceBackendPort) Descriptor() ([]byte, []int) { |
| 670 | return fileDescriptor_1c72867a70a7cc90, []int{22} |
| 671 | } |
| 672 | func (m *ServiceBackendPort) XXX_Unmarshal(b []byte) error { |
| 673 | return m.Unmarshal(b) |
| 674 | } |
| 675 | func (m *ServiceBackendPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 676 | b = b[:cap(b)] |
| 677 | n, err := m.MarshalToSizedBuffer(b) |
| 678 | if err != nil { |
| 679 | return nil, err |
| 680 | } |
| 681 | return b[:n], nil |
| 682 | } |
| 683 | func (m *ServiceBackendPort) XXX_Merge(src proto.Message) { |
| 684 | xxx_messageInfo_ServiceBackendPort.Merge(m, src) |
| 685 | } |
| 686 | func (m *ServiceBackendPort) XXX_Size() int { |
| 687 | return m.Size() |
| 688 | } |
| 689 | func (m *ServiceBackendPort) XXX_DiscardUnknown() { |
| 690 | xxx_messageInfo_ServiceBackendPort.DiscardUnknown(m) |
| 691 | } |
| 692 | |
| 693 | var xxx_messageInfo_ServiceBackendPort proto.InternalMessageInfo |
| 694 | |
| 695 | func init() { |
| 696 | proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.api.networking.v1.HTTPIngressPath") |
| 697 | proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.networking.v1.HTTPIngressRuleValue") |
| 698 | proto.RegisterType((*IPBlock)(nil), "k8s.io.api.networking.v1.IPBlock") |
| 699 | proto.RegisterType((*Ingress)(nil), "k8s.io.api.networking.v1.Ingress") |
| 700 | proto.RegisterType((*IngressBackend)(nil), "k8s.io.api.networking.v1.IngressBackend") |
| 701 | proto.RegisterType((*IngressClass)(nil), "k8s.io.api.networking.v1.IngressClass") |
| 702 | proto.RegisterType((*IngressClassList)(nil), "k8s.io.api.networking.v1.IngressClassList") |
| 703 | proto.RegisterType((*IngressClassSpec)(nil), "k8s.io.api.networking.v1.IngressClassSpec") |
| 704 | proto.RegisterType((*IngressList)(nil), "k8s.io.api.networking.v1.IngressList") |
| 705 | proto.RegisterType((*IngressRule)(nil), "k8s.io.api.networking.v1.IngressRule") |
| 706 | proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.api.networking.v1.IngressRuleValue") |
| 707 | proto.RegisterType((*IngressServiceBackend)(nil), "k8s.io.api.networking.v1.IngressServiceBackend") |
| 708 | proto.RegisterType((*IngressSpec)(nil), "k8s.io.api.networking.v1.IngressSpec") |
| 709 | proto.RegisterType((*IngressStatus)(nil), "k8s.io.api.networking.v1.IngressStatus") |
| 710 | proto.RegisterType((*IngressTLS)(nil), "k8s.io.api.networking.v1.IngressTLS") |
| 711 | proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.api.networking.v1.NetworkPolicy") |
| 712 | proto.RegisterType((*NetworkPolicyEgressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyEgressRule") |
| 713 | proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyIngressRule") |
| 714 | proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.api.networking.v1.NetworkPolicyList") |
| 715 | proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.api.networking.v1.NetworkPolicyPeer") |
| 716 | proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.api.networking.v1.NetworkPolicyPort") |
| 717 | proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.api.networking.v1.NetworkPolicySpec") |
| 718 | proto.RegisterType((*ServiceBackendPort)(nil), "k8s.io.api.networking.v1.ServiceBackendPort") |
| 719 | } |
| 720 | |
| 721 | func init() { |
| 722 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/networking/v1/generated.proto", fileDescriptor_1c72867a70a7cc90) |
| 723 | } |
| 724 | |
| 725 | var fileDescriptor_1c72867a70a7cc90 = []byte{ |
| 726 | // 1441 bytes of a gzipped FileDescriptorProto |
| 727 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, |
| 728 | 0x1b, 0xcf, 0x3a, 0x71, 0xec, 0x8c, 0xd3, 0x34, 0x9d, 0xb7, 0xd5, 0x6b, 0xf5, 0xd5, 0x6b, 0xe7, |
| 729 | 0x5d, 0xbd, 0xb4, 0x81, 0xd2, 0x35, 0x71, 0x2b, 0xc4, 0x0d, 0xd8, 0xf4, 0x2b, 0xe0, 0x26, 0xd6, |
| 730 | 0xd8, 0x2a, 0x02, 0x51, 0xd4, 0xf1, 0x7a, 0x62, 0x6f, 0xbd, 0xde, 0x59, 0x66, 0xc7, 0xa1, 0xbd, |
| 731 | 0x71, 0xe1, 0xc0, 0x8d, 0x7f, 0x81, 0x03, 0x37, 0x6e, 0x70, 0x43, 0x50, 0xb8, 0xa0, 0x1e, 0x7b, |
| 732 | 0xec, 0xc9, 0xa2, 0xe6, 0xbf, 0xc8, 0x09, 0xcd, 0xec, 0xec, 0xa7, 0x63, 0x6c, 0xaa, 0x2a, 0x27, |
| 733 | 0x7b, 0x9f, 0x8f, 0xdf, 0xf3, 0x39, 0xcf, 0x33, 0x03, 0xde, 0x1f, 0xbc, 0xe3, 0x1b, 0x36, 0xad, |
| 734 | 0x0d, 0x46, 0x1d, 0xc2, 0x5c, 0xc2, 0x89, 0x5f, 0x3b, 0x22, 0x6e, 0x97, 0xb2, 0x9a, 0x62, 0x60, |
| 735 | 0xcf, 0xae, 0xb9, 0x84, 0x7f, 0x41, 0xd9, 0xc0, 0x76, 0x7b, 0xb5, 0xa3, 0x9d, 0x5a, 0x8f, 0xb8, |
| 736 | 0x84, 0x61, 0x4e, 0xba, 0x86, 0xc7, 0x28, 0xa7, 0xb0, 0x1c, 0x48, 0x1a, 0xd8, 0xb3, 0x8d, 0x58, |
| 737 | 0xd2, 0x38, 0xda, 0xb9, 0x78, 0xb5, 0x67, 0xf3, 0xfe, 0xa8, 0x63, 0x58, 0x74, 0x58, 0xeb, 0xd1, |
| 738 | 0x1e, 0xad, 0x49, 0x85, 0xce, 0xe8, 0x50, 0x7e, 0xc9, 0x0f, 0xf9, 0x2f, 0x00, 0xba, 0xa8, 0x27, |
| 739 | 0x4c, 0x5a, 0x94, 0x91, 0x13, 0x8c, 0x5d, 0xbc, 0x1e, 0xcb, 0x0c, 0xb1, 0xd5, 0xb7, 0x5d, 0xc2, |
| 740 | 0x1e, 0xd7, 0xbc, 0x41, 0x4f, 0x10, 0xfc, 0xda, 0x90, 0x70, 0x7c, 0x92, 0x56, 0x6d, 0x96, 0x16, |
| 741 | 0x1b, 0xb9, 0xdc, 0x1e, 0x92, 0x29, 0x85, 0xb7, 0xe7, 0x29, 0xf8, 0x56, 0x9f, 0x0c, 0xf1, 0x94, |
| 742 | 0xde, 0xb5, 0x59, 0x7a, 0x23, 0x6e, 0x3b, 0x35, 0xdb, 0xe5, 0x3e, 0x67, 0x59, 0x25, 0xfd, 0x17, |
| 743 | 0x0d, 0x9c, 0xbd, 0xd3, 0x6e, 0x37, 0xf7, 0xdc, 0x1e, 0x23, 0xbe, 0xdf, 0xc4, 0xbc, 0x0f, 0xb7, |
| 744 | 0xc0, 0x8a, 0x87, 0x79, 0xbf, 0xac, 0x6d, 0x69, 0xdb, 0x6b, 0xe6, 0xfa, 0xd3, 0x71, 0x75, 0x69, |
| 745 | 0x32, 0xae, 0xae, 0x08, 0x1e, 0x92, 0x1c, 0x78, 0x1d, 0x14, 0xc5, 0x6f, 0xfb, 0xb1, 0x47, 0xca, |
| 746 | 0xcb, 0x52, 0xaa, 0x3c, 0x19, 0x57, 0x8b, 0x4d, 0x45, 0x3b, 0x4e, 0xfc, 0x47, 0x91, 0x24, 0x6c, |
| 747 | 0x81, 0x42, 0x07, 0x5b, 0x03, 0xe2, 0x76, 0xcb, 0xb9, 0x2d, 0x6d, 0xbb, 0x54, 0xdf, 0x36, 0x66, |
| 748 | 0x95, 0xcf, 0x50, 0xfe, 0x98, 0x81, 0xbc, 0x79, 0x56, 0x39, 0x51, 0x50, 0x04, 0x14, 0x22, 0xe9, |
| 749 | 0x87, 0xe0, 0x7c, 0xc2, 0x7f, 0x34, 0x72, 0xc8, 0x3d, 0xec, 0x8c, 0x08, 0xdc, 0x07, 0x79, 0x61, |
| 750 | 0xd8, 0x2f, 0x6b, 0x5b, 0xcb, 0xdb, 0xa5, 0xfa, 0xeb, 0xb3, 0x4d, 0x65, 0xc2, 0x37, 0xcf, 0x28, |
| 751 | 0x5b, 0x79, 0xf1, 0xe5, 0xa3, 0x00, 0x46, 0x3f, 0x00, 0x85, 0xbd, 0xa6, 0xe9, 0x50, 0x6b, 0x20, |
| 752 | 0xf2, 0x63, 0xd9, 0x5d, 0x96, 0xcd, 0xcf, 0xee, 0xde, 0x0d, 0x84, 0x24, 0x07, 0xea, 0x60, 0x95, |
| 753 | 0x3c, 0xb2, 0x88, 0xc7, 0xcb, 0xb9, 0xad, 0xe5, 0xed, 0x35, 0x13, 0x4c, 0xc6, 0xd5, 0xd5, 0x9b, |
| 754 | 0x92, 0x82, 0x14, 0x47, 0xff, 0x2a, 0x07, 0x0a, 0xca, 0x2c, 0x7c, 0x00, 0x8a, 0xa2, 0x7d, 0xba, |
| 755 | 0x98, 0x63, 0x89, 0x5a, 0xaa, 0xbf, 0x95, 0xf0, 0x37, 0xaa, 0xa6, 0xe1, 0x0d, 0x7a, 0x82, 0xe0, |
| 756 | 0x1b, 0x42, 0x5a, 0xf8, 0x7e, 0xd0, 0x79, 0x48, 0x2c, 0x7e, 0x97, 0x70, 0x6c, 0x42, 0xe5, 0x07, |
| 757 | 0x88, 0x69, 0x28, 0x42, 0x85, 0xb7, 0xc1, 0x8a, 0xef, 0x11, 0x4b, 0x25, 0xfe, 0xb5, 0xb9, 0x89, |
| 758 | 0x6f, 0x79, 0xc4, 0x8a, 0x43, 0x13, 0x5f, 0x48, 0x02, 0xc0, 0x03, 0xb0, 0xea, 0x73, 0xcc, 0x47, |
| 759 | 0xbe, 0x2c, 0x7c, 0xa9, 0x7e, 0x79, 0x3e, 0x94, 0x14, 0x37, 0x37, 0x14, 0xd8, 0x6a, 0xf0, 0x8d, |
| 760 | 0x14, 0x8c, 0xfe, 0x9b, 0x06, 0x36, 0xd2, 0xd5, 0x86, 0xf7, 0x40, 0xc1, 0x27, 0xec, 0xc8, 0xb6, |
| 761 | 0x48, 0x79, 0x45, 0x1a, 0xa9, 0xcd, 0x37, 0x12, 0xc8, 0x87, 0xfd, 0x52, 0x12, 0xbd, 0xa2, 0x68, |
| 762 | 0x28, 0x04, 0x83, 0x1f, 0x81, 0x22, 0x23, 0x3e, 0x1d, 0x31, 0x8b, 0x28, 0xef, 0xaf, 0x26, 0x81, |
| 763 | 0xc5, 0xb9, 0x17, 0x90, 0xa2, 0x59, 0xbb, 0x0d, 0x6a, 0x61, 0x27, 0x48, 0x25, 0x22, 0x87, 0x84, |
| 764 | 0x11, 0xd7, 0x22, 0xe6, 0xba, 0xe8, 0x72, 0xa4, 0x20, 0x50, 0x04, 0x26, 0x4e, 0xd1, 0xba, 0x72, |
| 765 | 0x64, 0xd7, 0xc1, 0xa7, 0x52, 0xd0, 0x46, 0xaa, 0xa0, 0x6f, 0xcc, 0x4d, 0x90, 0xf4, 0x6b, 0x56, |
| 766 | 0x55, 0xf5, 0x9f, 0x35, 0xb0, 0x99, 0x14, 0x6c, 0xd8, 0x3e, 0x87, 0x9f, 0x4e, 0x05, 0x61, 0x2c, |
| 767 | 0x16, 0x84, 0xd0, 0x96, 0x21, 0x6c, 0x2a, 0x53, 0xc5, 0x90, 0x92, 0x08, 0xe0, 0x43, 0x90, 0xb7, |
| 768 | 0x39, 0x19, 0xfa, 0xf2, 0x88, 0x94, 0xea, 0x97, 0x16, 0x8b, 0x20, 0x3e, 0x9d, 0x7b, 0x42, 0x19, |
| 769 | 0x05, 0x18, 0xfa, 0x77, 0x19, 0xff, 0x45, 0x68, 0xb0, 0x0e, 0x80, 0x45, 0x5d, 0xce, 0xa8, 0xe3, |
| 770 | 0x90, 0xf0, 0xb4, 0x46, 0x49, 0xdd, 0x8d, 0x38, 0x28, 0x21, 0x05, 0xef, 0x03, 0xe0, 0x61, 0x86, |
| 771 | 0x87, 0x84, 0x13, 0xe6, 0xab, 0xe4, 0xfe, 0xc3, 0x26, 0xd9, 0x10, 0xf0, 0xcd, 0x08, 0x04, 0x25, |
| 772 | 0x00, 0xf5, 0x1f, 0x34, 0x50, 0x52, 0x7e, 0x9e, 0x42, 0x8a, 0x6f, 0xa5, 0x53, 0xfc, 0xbf, 0xf9, |
| 773 | 0xe3, 0xf6, 0xe4, 0xec, 0x7e, 0x1b, 0x7b, 0x2d, 0x06, 0xac, 0x18, 0x80, 0x7d, 0xea, 0xf3, 0xec, |
| 774 | 0x00, 0xbc, 0x43, 0x7d, 0x8e, 0x24, 0x07, 0x7a, 0x60, 0xd3, 0xce, 0x4c, 0xe4, 0x85, 0x3b, 0x35, |
| 775 | 0xd2, 0x30, 0xcb, 0x0a, 0x79, 0x33, 0xcb, 0x41, 0x53, 0xe8, 0xfa, 0x03, 0x30, 0x25, 0x25, 0xce, |
| 776 | 0x48, 0x9f, 0x73, 0xef, 0x84, 0xcc, 0xce, 0x5e, 0x01, 0xb1, 0xf5, 0xa2, 0x8c, 0xa9, 0xdd, 0x6e, |
| 777 | 0x22, 0x89, 0xa2, 0x7f, 0xad, 0x81, 0x0b, 0x27, 0x4e, 0x1b, 0x91, 0x0f, 0x17, 0x0f, 0x49, 0x36, |
| 778 | 0x1f, 0xfb, 0x78, 0x48, 0x90, 0xe4, 0xc0, 0x7d, 0xb0, 0xe2, 0x51, 0xc6, 0x55, 0x0e, 0xde, 0x9c, |
| 779 | 0xed, 0x49, 0x1a, 0xb9, 0x49, 0x19, 0x4f, 0x2c, 0x60, 0xca, 0x38, 0x92, 0x38, 0xfa, 0xef, 0xb9, |
| 780 | 0xa8, 0x22, 0xb2, 0xd5, 0xdf, 0x8b, 0xf2, 0x2d, 0xdb, 0x5f, 0x58, 0x96, 0xa3, 0x73, 0xcd, 0x3c, |
| 781 | 0x9f, 0xc8, 0x5f, 0xc4, 0x43, 0x53, 0xd2, 0xb0, 0x0b, 0x36, 0xba, 0xe4, 0x10, 0x8f, 0x1c, 0xae, |
| 782 | 0x6c, 0xab, 0xac, 0x2d, 0xbe, 0xa3, 0xe1, 0x64, 0x5c, 0xdd, 0xb8, 0x91, 0xc2, 0x40, 0x19, 0x4c, |
| 783 | 0xb8, 0x0b, 0x96, 0xb9, 0x13, 0xf6, 0xe3, 0xff, 0xe7, 0x42, 0xb7, 0x1b, 0x2d, 0xb3, 0xa4, 0xc2, |
| 784 | 0x5f, 0x6e, 0x37, 0x5a, 0x48, 0x68, 0xc3, 0x0f, 0x40, 0x9e, 0x8d, 0x1c, 0x22, 0x36, 0xd0, 0xf2, |
| 785 | 0x42, 0xcb, 0x4c, 0xd4, 0x34, 0x6e, 0x6d, 0xf1, 0xe5, 0xa3, 0x00, 0x42, 0xff, 0x1c, 0x9c, 0x49, |
| 786 | 0xad, 0x29, 0xf8, 0x00, 0xac, 0x3b, 0x14, 0x77, 0x4d, 0xec, 0x60, 0xd7, 0x52, 0x63, 0x23, 0x33, |
| 787 | 0x9d, 0xc2, 0x11, 0xd0, 0x48, 0xc8, 0xa9, 0x25, 0x77, 0x5e, 0x19, 0x59, 0x4f, 0xf2, 0x50, 0x0a, |
| 788 | 0x51, 0xc7, 0x00, 0xc4, 0xe1, 0xc1, 0x2a, 0xc8, 0x8b, 0x13, 0x13, 0xdc, 0x53, 0xd6, 0xcc, 0x35, |
| 789 | 0xe1, 0xa1, 0x38, 0x48, 0x3e, 0x0a, 0xe8, 0x62, 0x8a, 0xf9, 0xc4, 0x62, 0x84, 0xcb, 0xa2, 0xe6, |
| 790 | 0xd2, 0x53, 0xac, 0x15, 0x71, 0x50, 0x42, 0x4a, 0xff, 0x55, 0x03, 0x67, 0xf6, 0x83, 0x4c, 0x34, |
| 791 | 0xa9, 0x63, 0x5b, 0x8f, 0x4f, 0x61, 0x21, 0xdd, 0x4d, 0x2d, 0xa4, 0x2b, 0xb3, 0x8b, 0x92, 0x72, |
| 792 | 0x6c, 0xe6, 0x46, 0xfa, 0x51, 0x03, 0xff, 0x4e, 0x49, 0xde, 0x8c, 0xe7, 0x4f, 0x13, 0xe4, 0xc5, |
| 793 | 0x29, 0x08, 0xef, 0x76, 0x8b, 0xda, 0x92, 0xa7, 0x29, 0xbe, 0xdd, 0x09, 0x04, 0x14, 0x00, 0xc1, |
| 794 | 0xdb, 0x20, 0xc7, 0xa9, 0x6a, 0xcb, 0x85, 0xe1, 0x08, 0x61, 0x26, 0x50, 0x70, 0xb9, 0x36, 0x45, |
| 795 | 0x39, 0x4e, 0xf5, 0x9f, 0x34, 0x50, 0x4e, 0x49, 0x25, 0xe7, 0xe6, 0xab, 0xf7, 0xfb, 0x2e, 0x58, |
| 796 | 0x39, 0x64, 0x74, 0xf8, 0x32, 0x9e, 0x47, 0x49, 0xbf, 0xc5, 0xe8, 0x10, 0x49, 0x18, 0xfd, 0x89, |
| 797 | 0x06, 0xce, 0xa5, 0x24, 0x4f, 0x61, 0x49, 0x35, 0xd2, 0x4b, 0xea, 0xf2, 0x82, 0x31, 0xcc, 0x58, |
| 798 | 0x55, 0x4f, 0x72, 0x99, 0x08, 0x44, 0xac, 0xf0, 0x10, 0x94, 0x3c, 0xda, 0x6d, 0x11, 0x87, 0x58, |
| 799 | 0x9c, 0x86, 0x67, 0xfa, 0xda, 0x82, 0x41, 0xe0, 0x0e, 0x71, 0x42, 0x55, 0xf3, 0xec, 0x64, 0x5c, |
| 800 | 0x2d, 0x35, 0x63, 0x2c, 0x94, 0x04, 0x86, 0x8f, 0xc0, 0x39, 0x31, 0xee, 0x7d, 0x0f, 0x5b, 0x24, |
| 801 | 0xb2, 0x96, 0x7b, 0x79, 0x6b, 0x17, 0x26, 0xe3, 0xea, 0xb9, 0xfd, 0x2c, 0x22, 0x9a, 0x36, 0x02, |
| 802 | 0xef, 0x80, 0x82, 0xed, 0xc9, 0xe7, 0x89, 0xba, 0xd9, 0xfe, 0xdd, 0xb2, 0x0f, 0xde, 0x31, 0xc1, |
| 803 | 0x25, 0x59, 0x7d, 0xa0, 0x50, 0x5d, 0xff, 0x3e, 0xdb, 0x03, 0xa2, 0xe1, 0xe0, 0x6d, 0x50, 0x94, |
| 804 | 0x0f, 0x46, 0x8b, 0x3a, 0x6a, 0xcd, 0x5d, 0x91, 0x2f, 0x3e, 0x45, 0x3b, 0x1e, 0x57, 0xff, 0x33, |
| 805 | 0xfd, 0x82, 0x36, 0x42, 0x36, 0x8a, 0x94, 0x33, 0x9b, 0x70, 0xf6, 0x10, 0x12, 0x8f, 0x56, 0x23, |
| 806 | 0x78, 0xb4, 0x1a, 0x7b, 0x2e, 0x3f, 0x60, 0x2d, 0xce, 0x6c, 0xb7, 0x17, 0x6c, 0xe5, 0xc4, 0x26, |
| 807 | 0x3c, 0xce, 0x16, 0x5c, 0xee, 0xc3, 0x87, 0xaf, 0xac, 0xe0, 0xff, 0x52, 0x6d, 0x36, 0xbb, 0xe8, |
| 808 | 0xf7, 0x41, 0x41, 0x6d, 0x53, 0xd5, 0xc2, 0xf5, 0x05, 0x5b, 0x38, 0xb9, 0x9d, 0xa2, 0x07, 0x6e, |
| 809 | 0x48, 0x0c, 0x31, 0xe1, 0xc7, 0x60, 0x95, 0x04, 0xe8, 0xc1, 0xba, 0xdb, 0x59, 0x10, 0x3d, 0x9e, |
| 810 | 0x97, 0xf1, 0xd3, 0x4b, 0xd1, 0x14, 0x20, 0x7c, 0x57, 0x64, 0x49, 0xc8, 0x8a, 0xcb, 0xac, 0x5f, |
| 811 | 0x5e, 0x91, 0x1b, 0xe8, 0xbf, 0x41, 0xb0, 0x11, 0xf9, 0x58, 0xdc, 0x66, 0xa3, 0x4f, 0x94, 0xd4, |
| 812 | 0xd0, 0x3f, 0x03, 0x70, 0xfa, 0xc2, 0xb2, 0xc0, 0x75, 0xe8, 0x12, 0x58, 0x75, 0x47, 0xc3, 0x0e, |
| 813 | 0x09, 0x0e, 0x47, 0x3e, 0x76, 0x70, 0x5f, 0x52, 0x91, 0xe2, 0x9a, 0xdb, 0x4f, 0x5f, 0x54, 0x96, |
| 814 | 0x9e, 0xbd, 0xa8, 0x2c, 0x3d, 0x7f, 0x51, 0x59, 0xfa, 0x72, 0x52, 0xd1, 0x9e, 0x4e, 0x2a, 0xda, |
| 815 | 0xb3, 0x49, 0x45, 0x7b, 0x3e, 0xa9, 0x68, 0x7f, 0x4c, 0x2a, 0xda, 0x37, 0x7f, 0x56, 0x96, 0x3e, |
| 816 | 0xc9, 0x1d, 0xed, 0xfc, 0x15, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x87, 0xf6, 0x28, 0x4c, 0x12, 0x00, |
| 817 | 0x00, |
| 818 | } |
| 819 | |
| 820 | func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) { |
| 821 | size := m.Size() |
| 822 | dAtA = make([]byte, size) |
| 823 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 824 | if err != nil { |
| 825 | return nil, err |
| 826 | } |
| 827 | return dAtA[:n], nil |
| 828 | } |
| 829 | |
| 830 | func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) { |
| 831 | size := m.Size() |
| 832 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 833 | } |
| 834 | |
| 835 | func (m *HTTPIngressPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 836 | i := len(dAtA) |
| 837 | _ = i |
| 838 | var l int |
| 839 | _ = l |
| 840 | if m.PathType != nil { |
| 841 | i -= len(*m.PathType) |
| 842 | copy(dAtA[i:], *m.PathType) |
| 843 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType))) |
| 844 | i-- |
| 845 | dAtA[i] = 0x1a |
| 846 | } |
| 847 | { |
| 848 | size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) |
| 849 | if err != nil { |
| 850 | return 0, err |
| 851 | } |
| 852 | i -= size |
| 853 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 854 | } |
| 855 | i-- |
| 856 | dAtA[i] = 0x12 |
| 857 | i -= len(m.Path) |
| 858 | copy(dAtA[i:], m.Path) |
| 859 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) |
| 860 | i-- |
| 861 | dAtA[i] = 0xa |
| 862 | return len(dAtA) - i, nil |
| 863 | } |
| 864 | |
| 865 | func (m *HTTPIngressRuleValue) Marshal() (dAtA []byte, err error) { |
| 866 | size := m.Size() |
| 867 | dAtA = make([]byte, size) |
| 868 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 869 | if err != nil { |
| 870 | return nil, err |
| 871 | } |
| 872 | return dAtA[:n], nil |
| 873 | } |
| 874 | |
| 875 | func (m *HTTPIngressRuleValue) MarshalTo(dAtA []byte) (int, error) { |
| 876 | size := m.Size() |
| 877 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 878 | } |
| 879 | |
| 880 | func (m *HTTPIngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 881 | i := len(dAtA) |
| 882 | _ = i |
| 883 | var l int |
| 884 | _ = l |
| 885 | if len(m.Paths) > 0 { |
| 886 | for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { |
| 887 | { |
| 888 | size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 889 | if err != nil { |
| 890 | return 0, err |
| 891 | } |
| 892 | i -= size |
| 893 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 894 | } |
| 895 | i-- |
| 896 | dAtA[i] = 0xa |
| 897 | } |
| 898 | } |
| 899 | return len(dAtA) - i, nil |
| 900 | } |
| 901 | |
| 902 | func (m *IPBlock) Marshal() (dAtA []byte, err error) { |
| 903 | size := m.Size() |
| 904 | dAtA = make([]byte, size) |
| 905 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 906 | if err != nil { |
| 907 | return nil, err |
| 908 | } |
| 909 | return dAtA[:n], nil |
| 910 | } |
| 911 | |
| 912 | func (m *IPBlock) MarshalTo(dAtA []byte) (int, error) { |
| 913 | size := m.Size() |
| 914 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 915 | } |
| 916 | |
| 917 | func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 918 | i := len(dAtA) |
| 919 | _ = i |
| 920 | var l int |
| 921 | _ = l |
| 922 | if len(m.Except) > 0 { |
| 923 | for iNdEx := len(m.Except) - 1; iNdEx >= 0; iNdEx-- { |
| 924 | i -= len(m.Except[iNdEx]) |
| 925 | copy(dAtA[i:], m.Except[iNdEx]) |
| 926 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Except[iNdEx]))) |
| 927 | i-- |
| 928 | dAtA[i] = 0x12 |
| 929 | } |
| 930 | } |
| 931 | i -= len(m.CIDR) |
| 932 | copy(dAtA[i:], m.CIDR) |
| 933 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDR))) |
| 934 | i-- |
| 935 | dAtA[i] = 0xa |
| 936 | return len(dAtA) - i, nil |
| 937 | } |
| 938 | |
| 939 | func (m *Ingress) Marshal() (dAtA []byte, err error) { |
| 940 | size := m.Size() |
| 941 | dAtA = make([]byte, size) |
| 942 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 943 | if err != nil { |
| 944 | return nil, err |
| 945 | } |
| 946 | return dAtA[:n], nil |
| 947 | } |
| 948 | |
| 949 | func (m *Ingress) MarshalTo(dAtA []byte) (int, error) { |
| 950 | size := m.Size() |
| 951 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 952 | } |
| 953 | |
| 954 | func (m *Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 955 | i := len(dAtA) |
| 956 | _ = i |
| 957 | var l int |
| 958 | _ = l |
| 959 | { |
| 960 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 961 | if err != nil { |
| 962 | return 0, err |
| 963 | } |
| 964 | i -= size |
| 965 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 966 | } |
| 967 | i-- |
| 968 | dAtA[i] = 0x1a |
| 969 | { |
| 970 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 971 | if err != nil { |
| 972 | return 0, err |
| 973 | } |
| 974 | i -= size |
| 975 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 976 | } |
| 977 | i-- |
| 978 | dAtA[i] = 0x12 |
| 979 | { |
| 980 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 981 | if err != nil { |
| 982 | return 0, err |
| 983 | } |
| 984 | i -= size |
| 985 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 986 | } |
| 987 | i-- |
| 988 | dAtA[i] = 0xa |
| 989 | return len(dAtA) - i, nil |
| 990 | } |
| 991 | |
| 992 | func (m *IngressBackend) Marshal() (dAtA []byte, err error) { |
| 993 | size := m.Size() |
| 994 | dAtA = make([]byte, size) |
| 995 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 996 | if err != nil { |
| 997 | return nil, err |
| 998 | } |
| 999 | return dAtA[:n], nil |
| 1000 | } |
| 1001 | |
| 1002 | func (m *IngressBackend) MarshalTo(dAtA []byte) (int, error) { |
| 1003 | size := m.Size() |
| 1004 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1005 | } |
| 1006 | |
| 1007 | func (m *IngressBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1008 | i := len(dAtA) |
| 1009 | _ = i |
| 1010 | var l int |
| 1011 | _ = l |
| 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] = 0x22 |
| 1023 | } |
| 1024 | if m.Resource != nil { |
| 1025 | { |
| 1026 | size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) |
| 1027 | if err != nil { |
| 1028 | return 0, err |
| 1029 | } |
| 1030 | i -= size |
| 1031 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1032 | } |
| 1033 | i-- |
| 1034 | dAtA[i] = 0x1a |
| 1035 | } |
| 1036 | return len(dAtA) - i, nil |
| 1037 | } |
| 1038 | |
| 1039 | func (m *IngressClass) Marshal() (dAtA []byte, err error) { |
| 1040 | size := m.Size() |
| 1041 | dAtA = make([]byte, size) |
| 1042 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1043 | if err != nil { |
| 1044 | return nil, err |
| 1045 | } |
| 1046 | return dAtA[:n], nil |
| 1047 | } |
| 1048 | |
| 1049 | func (m *IngressClass) MarshalTo(dAtA []byte) (int, error) { |
| 1050 | size := m.Size() |
| 1051 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1052 | } |
| 1053 | |
| 1054 | func (m *IngressClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1055 | i := len(dAtA) |
| 1056 | _ = i |
| 1057 | var l int |
| 1058 | _ = l |
| 1059 | { |
| 1060 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1061 | if err != nil { |
| 1062 | return 0, err |
| 1063 | } |
| 1064 | i -= size |
| 1065 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1066 | } |
| 1067 | i-- |
| 1068 | dAtA[i] = 0x12 |
| 1069 | { |
| 1070 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1071 | if err != nil { |
| 1072 | return 0, err |
| 1073 | } |
| 1074 | i -= size |
| 1075 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1076 | } |
| 1077 | i-- |
| 1078 | dAtA[i] = 0xa |
| 1079 | return len(dAtA) - i, nil |
| 1080 | } |
| 1081 | |
| 1082 | func (m *IngressClassList) Marshal() (dAtA []byte, err error) { |
| 1083 | size := m.Size() |
| 1084 | dAtA = make([]byte, size) |
| 1085 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1086 | if err != nil { |
| 1087 | return nil, err |
| 1088 | } |
| 1089 | return dAtA[:n], nil |
| 1090 | } |
| 1091 | |
| 1092 | func (m *IngressClassList) MarshalTo(dAtA []byte) (int, error) { |
| 1093 | size := m.Size() |
| 1094 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1095 | } |
| 1096 | |
| 1097 | func (m *IngressClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1098 | i := len(dAtA) |
| 1099 | _ = i |
| 1100 | var l int |
| 1101 | _ = l |
| 1102 | if len(m.Items) > 0 { |
| 1103 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1104 | { |
| 1105 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1106 | if err != nil { |
| 1107 | return 0, err |
| 1108 | } |
| 1109 | i -= size |
| 1110 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1111 | } |
| 1112 | i-- |
| 1113 | dAtA[i] = 0x12 |
| 1114 | } |
| 1115 | } |
| 1116 | { |
| 1117 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1118 | if err != nil { |
| 1119 | return 0, err |
| 1120 | } |
| 1121 | i -= size |
| 1122 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1123 | } |
| 1124 | i-- |
| 1125 | dAtA[i] = 0xa |
| 1126 | return len(dAtA) - i, nil |
| 1127 | } |
| 1128 | |
| 1129 | func (m *IngressClassSpec) Marshal() (dAtA []byte, err error) { |
| 1130 | size := m.Size() |
| 1131 | dAtA = make([]byte, size) |
| 1132 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1133 | if err != nil { |
| 1134 | return nil, err |
| 1135 | } |
| 1136 | return dAtA[:n], nil |
| 1137 | } |
| 1138 | |
| 1139 | func (m *IngressClassSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1140 | size := m.Size() |
| 1141 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1142 | } |
| 1143 | |
| 1144 | func (m *IngressClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1145 | i := len(dAtA) |
| 1146 | _ = i |
| 1147 | var l int |
| 1148 | _ = l |
| 1149 | if m.Parameters != nil { |
| 1150 | { |
| 1151 | size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i]) |
| 1152 | if err != nil { |
| 1153 | return 0, err |
| 1154 | } |
| 1155 | i -= size |
| 1156 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1157 | } |
| 1158 | i-- |
| 1159 | dAtA[i] = 0x12 |
| 1160 | } |
| 1161 | i -= len(m.Controller) |
| 1162 | copy(dAtA[i:], m.Controller) |
| 1163 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller))) |
| 1164 | i-- |
| 1165 | dAtA[i] = 0xa |
| 1166 | return len(dAtA) - i, nil |
| 1167 | } |
| 1168 | |
| 1169 | func (m *IngressList) Marshal() (dAtA []byte, err error) { |
| 1170 | size := m.Size() |
| 1171 | dAtA = make([]byte, size) |
| 1172 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1173 | if err != nil { |
| 1174 | return nil, err |
| 1175 | } |
| 1176 | return dAtA[:n], nil |
| 1177 | } |
| 1178 | |
| 1179 | func (m *IngressList) MarshalTo(dAtA []byte) (int, error) { |
| 1180 | size := m.Size() |
| 1181 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1182 | } |
| 1183 | |
| 1184 | func (m *IngressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1185 | i := len(dAtA) |
| 1186 | _ = i |
| 1187 | var l int |
| 1188 | _ = l |
| 1189 | if len(m.Items) > 0 { |
| 1190 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1191 | { |
| 1192 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1193 | if err != nil { |
| 1194 | return 0, err |
| 1195 | } |
| 1196 | i -= size |
| 1197 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1198 | } |
| 1199 | i-- |
| 1200 | dAtA[i] = 0x12 |
| 1201 | } |
| 1202 | } |
| 1203 | { |
| 1204 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1205 | if err != nil { |
| 1206 | return 0, err |
| 1207 | } |
| 1208 | i -= size |
| 1209 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1210 | } |
| 1211 | i-- |
| 1212 | dAtA[i] = 0xa |
| 1213 | return len(dAtA) - i, nil |
| 1214 | } |
| 1215 | |
| 1216 | func (m *IngressRule) Marshal() (dAtA []byte, err error) { |
| 1217 | size := m.Size() |
| 1218 | dAtA = make([]byte, size) |
| 1219 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1220 | if err != nil { |
| 1221 | return nil, err |
| 1222 | } |
| 1223 | return dAtA[:n], nil |
| 1224 | } |
| 1225 | |
| 1226 | func (m *IngressRule) MarshalTo(dAtA []byte) (int, error) { |
| 1227 | size := m.Size() |
| 1228 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1229 | } |
| 1230 | |
| 1231 | func (m *IngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1232 | i := len(dAtA) |
| 1233 | _ = i |
| 1234 | var l int |
| 1235 | _ = l |
| 1236 | { |
| 1237 | size, err := m.IngressRuleValue.MarshalToSizedBuffer(dAtA[:i]) |
| 1238 | if err != nil { |
| 1239 | return 0, err |
| 1240 | } |
| 1241 | i -= size |
| 1242 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1243 | } |
| 1244 | i-- |
| 1245 | dAtA[i] = 0x12 |
| 1246 | i -= len(m.Host) |
| 1247 | copy(dAtA[i:], m.Host) |
| 1248 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) |
| 1249 | i-- |
| 1250 | dAtA[i] = 0xa |
| 1251 | return len(dAtA) - i, nil |
| 1252 | } |
| 1253 | |
| 1254 | func (m *IngressRuleValue) Marshal() (dAtA []byte, err error) { |
| 1255 | size := m.Size() |
| 1256 | dAtA = make([]byte, size) |
| 1257 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1258 | if err != nil { |
| 1259 | return nil, err |
| 1260 | } |
| 1261 | return dAtA[:n], nil |
| 1262 | } |
| 1263 | |
| 1264 | func (m *IngressRuleValue) MarshalTo(dAtA []byte) (int, error) { |
| 1265 | size := m.Size() |
| 1266 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1267 | } |
| 1268 | |
| 1269 | func (m *IngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1270 | i := len(dAtA) |
| 1271 | _ = i |
| 1272 | var l int |
| 1273 | _ = l |
| 1274 | if m.HTTP != nil { |
| 1275 | { |
| 1276 | size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i]) |
| 1277 | if err != nil { |
| 1278 | return 0, err |
| 1279 | } |
| 1280 | i -= size |
| 1281 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1282 | } |
| 1283 | i-- |
| 1284 | dAtA[i] = 0xa |
| 1285 | } |
| 1286 | return len(dAtA) - i, nil |
| 1287 | } |
| 1288 | |
| 1289 | func (m *IngressServiceBackend) Marshal() (dAtA []byte, err error) { |
| 1290 | size := m.Size() |
| 1291 | dAtA = make([]byte, size) |
| 1292 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1293 | if err != nil { |
| 1294 | return nil, err |
| 1295 | } |
| 1296 | return dAtA[:n], nil |
| 1297 | } |
| 1298 | |
| 1299 | func (m *IngressServiceBackend) MarshalTo(dAtA []byte) (int, error) { |
| 1300 | size := m.Size() |
| 1301 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1302 | } |
| 1303 | |
| 1304 | func (m *IngressServiceBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1305 | i := len(dAtA) |
| 1306 | _ = i |
| 1307 | var l int |
| 1308 | _ = l |
| 1309 | { |
| 1310 | size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) |
| 1311 | if err != nil { |
| 1312 | return 0, err |
| 1313 | } |
| 1314 | i -= size |
| 1315 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1316 | } |
| 1317 | i-- |
| 1318 | dAtA[i] = 0x12 |
| 1319 | i -= len(m.Name) |
| 1320 | copy(dAtA[i:], m.Name) |
| 1321 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1322 | i-- |
| 1323 | dAtA[i] = 0xa |
| 1324 | return len(dAtA) - i, nil |
| 1325 | } |
| 1326 | |
| 1327 | func (m *IngressSpec) Marshal() (dAtA []byte, err error) { |
| 1328 | size := m.Size() |
| 1329 | dAtA = make([]byte, size) |
| 1330 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1331 | if err != nil { |
| 1332 | return nil, err |
| 1333 | } |
| 1334 | return dAtA[:n], nil |
| 1335 | } |
| 1336 | |
| 1337 | func (m *IngressSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1338 | size := m.Size() |
| 1339 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1340 | } |
| 1341 | |
| 1342 | func (m *IngressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1343 | i := len(dAtA) |
| 1344 | _ = i |
| 1345 | var l int |
| 1346 | _ = l |
| 1347 | if m.IngressClassName != nil { |
| 1348 | i -= len(*m.IngressClassName) |
| 1349 | copy(dAtA[i:], *m.IngressClassName) |
| 1350 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName))) |
| 1351 | i-- |
| 1352 | dAtA[i] = 0x22 |
| 1353 | } |
| 1354 | if len(m.Rules) > 0 { |
| 1355 | for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { |
| 1356 | { |
| 1357 | size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1358 | if err != nil { |
| 1359 | return 0, err |
| 1360 | } |
| 1361 | i -= size |
| 1362 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1363 | } |
| 1364 | i-- |
| 1365 | dAtA[i] = 0x1a |
| 1366 | } |
| 1367 | } |
| 1368 | if len(m.TLS) > 0 { |
| 1369 | for iNdEx := len(m.TLS) - 1; iNdEx >= 0; iNdEx-- { |
| 1370 | { |
| 1371 | size, err := m.TLS[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1372 | if err != nil { |
| 1373 | return 0, err |
| 1374 | } |
| 1375 | i -= size |
| 1376 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1377 | } |
| 1378 | i-- |
| 1379 | dAtA[i] = 0x12 |
| 1380 | } |
| 1381 | } |
| 1382 | if m.DefaultBackend != nil { |
| 1383 | { |
| 1384 | size, err := m.DefaultBackend.MarshalToSizedBuffer(dAtA[:i]) |
| 1385 | if err != nil { |
| 1386 | return 0, err |
| 1387 | } |
| 1388 | i -= size |
| 1389 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1390 | } |
| 1391 | i-- |
| 1392 | dAtA[i] = 0xa |
| 1393 | } |
| 1394 | return len(dAtA) - i, nil |
| 1395 | } |
| 1396 | |
| 1397 | func (m *IngressStatus) Marshal() (dAtA []byte, err error) { |
| 1398 | size := m.Size() |
| 1399 | dAtA = make([]byte, size) |
| 1400 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1401 | if err != nil { |
| 1402 | return nil, err |
| 1403 | } |
| 1404 | return dAtA[:n], nil |
| 1405 | } |
| 1406 | |
| 1407 | func (m *IngressStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1408 | size := m.Size() |
| 1409 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1410 | } |
| 1411 | |
| 1412 | func (m *IngressStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1413 | i := len(dAtA) |
| 1414 | _ = i |
| 1415 | var l int |
| 1416 | _ = l |
| 1417 | { |
| 1418 | size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i]) |
| 1419 | if err != nil { |
| 1420 | return 0, err |
| 1421 | } |
| 1422 | i -= size |
| 1423 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1424 | } |
| 1425 | i-- |
| 1426 | dAtA[i] = 0xa |
| 1427 | return len(dAtA) - i, nil |
| 1428 | } |
| 1429 | |
| 1430 | func (m *IngressTLS) Marshal() (dAtA []byte, err error) { |
| 1431 | size := m.Size() |
| 1432 | dAtA = make([]byte, size) |
| 1433 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1434 | if err != nil { |
| 1435 | return nil, err |
| 1436 | } |
| 1437 | return dAtA[:n], nil |
| 1438 | } |
| 1439 | |
| 1440 | func (m *IngressTLS) MarshalTo(dAtA []byte) (int, error) { |
| 1441 | size := m.Size() |
| 1442 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1443 | } |
| 1444 | |
| 1445 | func (m *IngressTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1446 | i := len(dAtA) |
| 1447 | _ = i |
| 1448 | var l int |
| 1449 | _ = l |
| 1450 | i -= len(m.SecretName) |
| 1451 | copy(dAtA[i:], m.SecretName) |
| 1452 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) |
| 1453 | i-- |
| 1454 | dAtA[i] = 0x12 |
| 1455 | if len(m.Hosts) > 0 { |
| 1456 | for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { |
| 1457 | i -= len(m.Hosts[iNdEx]) |
| 1458 | copy(dAtA[i:], m.Hosts[iNdEx]) |
| 1459 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hosts[iNdEx]))) |
| 1460 | i-- |
| 1461 | dAtA[i] = 0xa |
| 1462 | } |
| 1463 | } |
| 1464 | return len(dAtA) - i, nil |
| 1465 | } |
| 1466 | |
| 1467 | func (m *NetworkPolicy) Marshal() (dAtA []byte, err error) { |
| 1468 | size := m.Size() |
| 1469 | dAtA = make([]byte, size) |
| 1470 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1471 | if err != nil { |
| 1472 | return nil, err |
| 1473 | } |
| 1474 | return dAtA[:n], nil |
| 1475 | } |
| 1476 | |
| 1477 | func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error) { |
| 1478 | size := m.Size() |
| 1479 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1480 | } |
| 1481 | |
| 1482 | func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1483 | i := len(dAtA) |
| 1484 | _ = i |
| 1485 | var l int |
| 1486 | _ = l |
| 1487 | { |
| 1488 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1489 | if err != nil { |
| 1490 | return 0, err |
| 1491 | } |
| 1492 | i -= size |
| 1493 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1494 | } |
| 1495 | i-- |
| 1496 | dAtA[i] = 0x12 |
| 1497 | { |
| 1498 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1499 | if err != nil { |
| 1500 | return 0, err |
| 1501 | } |
| 1502 | i -= size |
| 1503 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1504 | } |
| 1505 | i-- |
| 1506 | dAtA[i] = 0xa |
| 1507 | return len(dAtA) - i, nil |
| 1508 | } |
| 1509 | |
| 1510 | func (m *NetworkPolicyEgressRule) Marshal() (dAtA []byte, err error) { |
| 1511 | size := m.Size() |
| 1512 | dAtA = make([]byte, size) |
| 1513 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1514 | if err != nil { |
| 1515 | return nil, err |
| 1516 | } |
| 1517 | return dAtA[:n], nil |
| 1518 | } |
| 1519 | |
| 1520 | func (m *NetworkPolicyEgressRule) MarshalTo(dAtA []byte) (int, error) { |
| 1521 | size := m.Size() |
| 1522 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1523 | } |
| 1524 | |
| 1525 | func (m *NetworkPolicyEgressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1526 | i := len(dAtA) |
| 1527 | _ = i |
| 1528 | var l int |
| 1529 | _ = l |
| 1530 | if len(m.To) > 0 { |
| 1531 | for iNdEx := len(m.To) - 1; iNdEx >= 0; iNdEx-- { |
| 1532 | { |
| 1533 | size, err := m.To[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1534 | if err != nil { |
| 1535 | return 0, err |
| 1536 | } |
| 1537 | i -= size |
| 1538 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1539 | } |
| 1540 | i-- |
| 1541 | dAtA[i] = 0x12 |
| 1542 | } |
| 1543 | } |
| 1544 | if len(m.Ports) > 0 { |
| 1545 | for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { |
| 1546 | { |
| 1547 | size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1548 | if err != nil { |
| 1549 | return 0, err |
| 1550 | } |
| 1551 | i -= size |
| 1552 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1553 | } |
| 1554 | i-- |
| 1555 | dAtA[i] = 0xa |
| 1556 | } |
| 1557 | } |
| 1558 | return len(dAtA) - i, nil |
| 1559 | } |
| 1560 | |
| 1561 | func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error) { |
| 1562 | size := m.Size() |
| 1563 | dAtA = make([]byte, size) |
| 1564 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1565 | if err != nil { |
| 1566 | return nil, err |
| 1567 | } |
| 1568 | return dAtA[:n], nil |
| 1569 | } |
| 1570 | |
| 1571 | func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error) { |
| 1572 | size := m.Size() |
| 1573 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1574 | } |
| 1575 | |
| 1576 | func (m *NetworkPolicyIngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1577 | i := len(dAtA) |
| 1578 | _ = i |
| 1579 | var l int |
| 1580 | _ = l |
| 1581 | if len(m.From) > 0 { |
| 1582 | for iNdEx := len(m.From) - 1; iNdEx >= 0; iNdEx-- { |
| 1583 | { |
| 1584 | size, err := m.From[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1585 | if err != nil { |
| 1586 | return 0, err |
| 1587 | } |
| 1588 | i -= size |
| 1589 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1590 | } |
| 1591 | i-- |
| 1592 | dAtA[i] = 0x12 |
| 1593 | } |
| 1594 | } |
| 1595 | if len(m.Ports) > 0 { |
| 1596 | for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { |
| 1597 | { |
| 1598 | size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1599 | if err != nil { |
| 1600 | return 0, err |
| 1601 | } |
| 1602 | i -= size |
| 1603 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1604 | } |
| 1605 | i-- |
| 1606 | dAtA[i] = 0xa |
| 1607 | } |
| 1608 | } |
| 1609 | return len(dAtA) - i, nil |
| 1610 | } |
| 1611 | |
| 1612 | func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error) { |
| 1613 | size := m.Size() |
| 1614 | dAtA = make([]byte, size) |
| 1615 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1616 | if err != nil { |
| 1617 | return nil, err |
| 1618 | } |
| 1619 | return dAtA[:n], nil |
| 1620 | } |
| 1621 | |
| 1622 | func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { |
| 1623 | size := m.Size() |
| 1624 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1625 | } |
| 1626 | |
| 1627 | func (m *NetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1628 | i := len(dAtA) |
| 1629 | _ = i |
| 1630 | var l int |
| 1631 | _ = l |
| 1632 | if len(m.Items) > 0 { |
| 1633 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1634 | { |
| 1635 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1636 | if err != nil { |
| 1637 | return 0, err |
| 1638 | } |
| 1639 | i -= size |
| 1640 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1641 | } |
| 1642 | i-- |
| 1643 | dAtA[i] = 0x12 |
| 1644 | } |
| 1645 | } |
| 1646 | { |
| 1647 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1648 | if err != nil { |
| 1649 | return 0, err |
| 1650 | } |
| 1651 | i -= size |
| 1652 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1653 | } |
| 1654 | i-- |
| 1655 | dAtA[i] = 0xa |
| 1656 | return len(dAtA) - i, nil |
| 1657 | } |
| 1658 | |
| 1659 | func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error) { |
| 1660 | size := m.Size() |
| 1661 | dAtA = make([]byte, size) |
| 1662 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1663 | if err != nil { |
| 1664 | return nil, err |
| 1665 | } |
| 1666 | return dAtA[:n], nil |
| 1667 | } |
| 1668 | |
| 1669 | func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) { |
| 1670 | size := m.Size() |
| 1671 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1672 | } |
| 1673 | |
| 1674 | func (m *NetworkPolicyPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1675 | i := len(dAtA) |
| 1676 | _ = i |
| 1677 | var l int |
| 1678 | _ = l |
| 1679 | if m.IPBlock != nil { |
| 1680 | { |
| 1681 | size, err := m.IPBlock.MarshalToSizedBuffer(dAtA[:i]) |
| 1682 | if err != nil { |
| 1683 | return 0, err |
| 1684 | } |
| 1685 | i -= size |
| 1686 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1687 | } |
| 1688 | i-- |
| 1689 | dAtA[i] = 0x1a |
| 1690 | } |
| 1691 | if m.NamespaceSelector != nil { |
| 1692 | { |
| 1693 | size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 1694 | if err != nil { |
| 1695 | return 0, err |
| 1696 | } |
| 1697 | i -= size |
| 1698 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1699 | } |
| 1700 | i-- |
| 1701 | dAtA[i] = 0x12 |
| 1702 | } |
| 1703 | if m.PodSelector != nil { |
| 1704 | { |
| 1705 | size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 1706 | if err != nil { |
| 1707 | return 0, err |
| 1708 | } |
| 1709 | i -= size |
| 1710 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1711 | } |
| 1712 | i-- |
| 1713 | dAtA[i] = 0xa |
| 1714 | } |
| 1715 | return len(dAtA) - i, nil |
| 1716 | } |
| 1717 | |
| 1718 | func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error) { |
| 1719 | size := m.Size() |
| 1720 | dAtA = make([]byte, size) |
| 1721 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1722 | if err != nil { |
| 1723 | return nil, err |
| 1724 | } |
| 1725 | return dAtA[:n], nil |
| 1726 | } |
| 1727 | |
| 1728 | func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error) { |
| 1729 | size := m.Size() |
| 1730 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1731 | } |
| 1732 | |
| 1733 | func (m *NetworkPolicyPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1734 | i := len(dAtA) |
| 1735 | _ = i |
| 1736 | var l int |
| 1737 | _ = l |
| 1738 | if m.Port != nil { |
| 1739 | { |
| 1740 | size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) |
| 1741 | if err != nil { |
| 1742 | return 0, err |
| 1743 | } |
| 1744 | i -= size |
| 1745 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1746 | } |
| 1747 | i-- |
| 1748 | dAtA[i] = 0x12 |
| 1749 | } |
| 1750 | if m.Protocol != nil { |
| 1751 | i -= len(*m.Protocol) |
| 1752 | copy(dAtA[i:], *m.Protocol) |
| 1753 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) |
| 1754 | i-- |
| 1755 | dAtA[i] = 0xa |
| 1756 | } |
| 1757 | return len(dAtA) - i, nil |
| 1758 | } |
| 1759 | |
| 1760 | func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error) { |
| 1761 | size := m.Size() |
| 1762 | dAtA = make([]byte, size) |
| 1763 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1764 | if err != nil { |
| 1765 | return nil, err |
| 1766 | } |
| 1767 | return dAtA[:n], nil |
| 1768 | } |
| 1769 | |
| 1770 | func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) { |
| 1771 | size := m.Size() |
| 1772 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1773 | } |
| 1774 | |
| 1775 | func (m *NetworkPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1776 | i := len(dAtA) |
| 1777 | _ = i |
| 1778 | var l int |
| 1779 | _ = l |
| 1780 | if len(m.PolicyTypes) > 0 { |
| 1781 | for iNdEx := len(m.PolicyTypes) - 1; iNdEx >= 0; iNdEx-- { |
| 1782 | i -= len(m.PolicyTypes[iNdEx]) |
| 1783 | copy(dAtA[i:], m.PolicyTypes[iNdEx]) |
| 1784 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyTypes[iNdEx]))) |
| 1785 | i-- |
| 1786 | dAtA[i] = 0x22 |
| 1787 | } |
| 1788 | } |
| 1789 | if len(m.Egress) > 0 { |
| 1790 | for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { |
| 1791 | { |
| 1792 | size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1793 | if err != nil { |
| 1794 | return 0, err |
| 1795 | } |
| 1796 | i -= size |
| 1797 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1798 | } |
| 1799 | i-- |
| 1800 | dAtA[i] = 0x1a |
| 1801 | } |
| 1802 | } |
| 1803 | if len(m.Ingress) > 0 { |
| 1804 | for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { |
| 1805 | { |
| 1806 | size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1807 | if err != nil { |
| 1808 | return 0, err |
| 1809 | } |
| 1810 | i -= size |
| 1811 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1812 | } |
| 1813 | i-- |
| 1814 | dAtA[i] = 0x12 |
| 1815 | } |
| 1816 | } |
| 1817 | { |
| 1818 | size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) |
| 1819 | if err != nil { |
| 1820 | return 0, err |
| 1821 | } |
| 1822 | i -= size |
| 1823 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1824 | } |
| 1825 | i-- |
| 1826 | dAtA[i] = 0xa |
| 1827 | return len(dAtA) - i, nil |
| 1828 | } |
| 1829 | |
| 1830 | func (m *ServiceBackendPort) Marshal() (dAtA []byte, err error) { |
| 1831 | size := m.Size() |
| 1832 | dAtA = make([]byte, size) |
| 1833 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1834 | if err != nil { |
| 1835 | return nil, err |
| 1836 | } |
| 1837 | return dAtA[:n], nil |
| 1838 | } |
| 1839 | |
| 1840 | func (m *ServiceBackendPort) MarshalTo(dAtA []byte) (int, error) { |
| 1841 | size := m.Size() |
| 1842 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1843 | } |
| 1844 | |
| 1845 | func (m *ServiceBackendPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1846 | i := len(dAtA) |
| 1847 | _ = i |
| 1848 | var l int |
| 1849 | _ = l |
| 1850 | i = encodeVarintGenerated(dAtA, i, uint64(m.Number)) |
| 1851 | i-- |
| 1852 | dAtA[i] = 0x10 |
| 1853 | i -= len(m.Name) |
| 1854 | copy(dAtA[i:], m.Name) |
| 1855 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1856 | i-- |
| 1857 | dAtA[i] = 0xa |
| 1858 | return len(dAtA) - i, nil |
| 1859 | } |
| 1860 | |
| 1861 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 1862 | offset -= sovGenerated(v) |
| 1863 | base := offset |
| 1864 | for v >= 1<<7 { |
| 1865 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 1866 | v >>= 7 |
| 1867 | offset++ |
| 1868 | } |
| 1869 | dAtA[offset] = uint8(v) |
| 1870 | return base |
| 1871 | } |
| 1872 | func (m *HTTPIngressPath) Size() (n int) { |
| 1873 | if m == nil { |
| 1874 | return 0 |
| 1875 | } |
| 1876 | var l int |
| 1877 | _ = l |
| 1878 | l = len(m.Path) |
| 1879 | n += 1 + l + sovGenerated(uint64(l)) |
| 1880 | l = m.Backend.Size() |
| 1881 | n += 1 + l + sovGenerated(uint64(l)) |
| 1882 | if m.PathType != nil { |
| 1883 | l = len(*m.PathType) |
| 1884 | n += 1 + l + sovGenerated(uint64(l)) |
| 1885 | } |
| 1886 | return n |
| 1887 | } |
| 1888 | |
| 1889 | func (m *HTTPIngressRuleValue) Size() (n int) { |
| 1890 | if m == nil { |
| 1891 | return 0 |
| 1892 | } |
| 1893 | var l int |
| 1894 | _ = l |
| 1895 | if len(m.Paths) > 0 { |
| 1896 | for _, e := range m.Paths { |
| 1897 | l = e.Size() |
| 1898 | n += 1 + l + sovGenerated(uint64(l)) |
| 1899 | } |
| 1900 | } |
| 1901 | return n |
| 1902 | } |
| 1903 | |
| 1904 | func (m *IPBlock) Size() (n int) { |
| 1905 | if m == nil { |
| 1906 | return 0 |
| 1907 | } |
| 1908 | var l int |
| 1909 | _ = l |
| 1910 | l = len(m.CIDR) |
| 1911 | n += 1 + l + sovGenerated(uint64(l)) |
| 1912 | if len(m.Except) > 0 { |
| 1913 | for _, s := range m.Except { |
| 1914 | l = len(s) |
| 1915 | n += 1 + l + sovGenerated(uint64(l)) |
| 1916 | } |
| 1917 | } |
| 1918 | return n |
| 1919 | } |
| 1920 | |
| 1921 | func (m *Ingress) Size() (n int) { |
| 1922 | if m == nil { |
| 1923 | return 0 |
| 1924 | } |
| 1925 | var l int |
| 1926 | _ = l |
| 1927 | l = m.ObjectMeta.Size() |
| 1928 | n += 1 + l + sovGenerated(uint64(l)) |
| 1929 | l = m.Spec.Size() |
| 1930 | n += 1 + l + sovGenerated(uint64(l)) |
| 1931 | l = m.Status.Size() |
| 1932 | n += 1 + l + sovGenerated(uint64(l)) |
| 1933 | return n |
| 1934 | } |
| 1935 | |
| 1936 | func (m *IngressBackend) Size() (n int) { |
| 1937 | if m == nil { |
| 1938 | return 0 |
| 1939 | } |
| 1940 | var l int |
| 1941 | _ = l |
| 1942 | if m.Resource != nil { |
| 1943 | l = m.Resource.Size() |
| 1944 | n += 1 + l + sovGenerated(uint64(l)) |
| 1945 | } |
| 1946 | if m.Service != nil { |
| 1947 | l = m.Service.Size() |
| 1948 | n += 1 + l + sovGenerated(uint64(l)) |
| 1949 | } |
| 1950 | return n |
| 1951 | } |
| 1952 | |
| 1953 | func (m *IngressClass) Size() (n int) { |
| 1954 | if m == nil { |
| 1955 | return 0 |
| 1956 | } |
| 1957 | var l int |
| 1958 | _ = l |
| 1959 | l = m.ObjectMeta.Size() |
| 1960 | n += 1 + l + sovGenerated(uint64(l)) |
| 1961 | l = m.Spec.Size() |
| 1962 | n += 1 + l + sovGenerated(uint64(l)) |
| 1963 | return n |
| 1964 | } |
| 1965 | |
| 1966 | func (m *IngressClassList) Size() (n int) { |
| 1967 | if m == nil { |
| 1968 | return 0 |
| 1969 | } |
| 1970 | var l int |
| 1971 | _ = l |
| 1972 | l = m.ListMeta.Size() |
| 1973 | n += 1 + l + sovGenerated(uint64(l)) |
| 1974 | if len(m.Items) > 0 { |
| 1975 | for _, e := range m.Items { |
| 1976 | l = e.Size() |
| 1977 | n += 1 + l + sovGenerated(uint64(l)) |
| 1978 | } |
| 1979 | } |
| 1980 | return n |
| 1981 | } |
| 1982 | |
| 1983 | func (m *IngressClassSpec) Size() (n int) { |
| 1984 | if m == nil { |
| 1985 | return 0 |
| 1986 | } |
| 1987 | var l int |
| 1988 | _ = l |
| 1989 | l = len(m.Controller) |
| 1990 | n += 1 + l + sovGenerated(uint64(l)) |
| 1991 | if m.Parameters != nil { |
| 1992 | l = m.Parameters.Size() |
| 1993 | n += 1 + l + sovGenerated(uint64(l)) |
| 1994 | } |
| 1995 | return n |
| 1996 | } |
| 1997 | |
| 1998 | func (m *IngressList) Size() (n int) { |
| 1999 | if m == nil { |
| 2000 | return 0 |
| 2001 | } |
| 2002 | var l int |
| 2003 | _ = l |
| 2004 | l = m.ListMeta.Size() |
| 2005 | n += 1 + l + sovGenerated(uint64(l)) |
| 2006 | if len(m.Items) > 0 { |
| 2007 | for _, e := range m.Items { |
| 2008 | l = e.Size() |
| 2009 | n += 1 + l + sovGenerated(uint64(l)) |
| 2010 | } |
| 2011 | } |
| 2012 | return n |
| 2013 | } |
| 2014 | |
| 2015 | func (m *IngressRule) Size() (n int) { |
| 2016 | if m == nil { |
| 2017 | return 0 |
| 2018 | } |
| 2019 | var l int |
| 2020 | _ = l |
| 2021 | l = len(m.Host) |
| 2022 | n += 1 + l + sovGenerated(uint64(l)) |
| 2023 | l = m.IngressRuleValue.Size() |
| 2024 | n += 1 + l + sovGenerated(uint64(l)) |
| 2025 | return n |
| 2026 | } |
| 2027 | |
| 2028 | func (m *IngressRuleValue) Size() (n int) { |
| 2029 | if m == nil { |
| 2030 | return 0 |
| 2031 | } |
| 2032 | var l int |
| 2033 | _ = l |
| 2034 | if m.HTTP != nil { |
| 2035 | l = m.HTTP.Size() |
| 2036 | n += 1 + l + sovGenerated(uint64(l)) |
| 2037 | } |
| 2038 | return n |
| 2039 | } |
| 2040 | |
| 2041 | func (m *IngressServiceBackend) Size() (n int) { |
| 2042 | if m == nil { |
| 2043 | return 0 |
| 2044 | } |
| 2045 | var l int |
| 2046 | _ = l |
| 2047 | l = len(m.Name) |
| 2048 | n += 1 + l + sovGenerated(uint64(l)) |
| 2049 | l = m.Port.Size() |
| 2050 | n += 1 + l + sovGenerated(uint64(l)) |
| 2051 | return n |
| 2052 | } |
| 2053 | |
| 2054 | func (m *IngressSpec) Size() (n int) { |
| 2055 | if m == nil { |
| 2056 | return 0 |
| 2057 | } |
| 2058 | var l int |
| 2059 | _ = l |
| 2060 | if m.DefaultBackend != nil { |
| 2061 | l = m.DefaultBackend.Size() |
| 2062 | n += 1 + l + sovGenerated(uint64(l)) |
| 2063 | } |
| 2064 | if len(m.TLS) > 0 { |
| 2065 | for _, e := range m.TLS { |
| 2066 | l = e.Size() |
| 2067 | n += 1 + l + sovGenerated(uint64(l)) |
| 2068 | } |
| 2069 | } |
| 2070 | if len(m.Rules) > 0 { |
| 2071 | for _, e := range m.Rules { |
| 2072 | l = e.Size() |
| 2073 | n += 1 + l + sovGenerated(uint64(l)) |
| 2074 | } |
| 2075 | } |
| 2076 | if m.IngressClassName != nil { |
| 2077 | l = len(*m.IngressClassName) |
| 2078 | n += 1 + l + sovGenerated(uint64(l)) |
| 2079 | } |
| 2080 | return n |
| 2081 | } |
| 2082 | |
| 2083 | func (m *IngressStatus) Size() (n int) { |
| 2084 | if m == nil { |
| 2085 | return 0 |
| 2086 | } |
| 2087 | var l int |
| 2088 | _ = l |
| 2089 | l = m.LoadBalancer.Size() |
| 2090 | n += 1 + l + sovGenerated(uint64(l)) |
| 2091 | return n |
| 2092 | } |
| 2093 | |
| 2094 | func (m *IngressTLS) Size() (n int) { |
| 2095 | if m == nil { |
| 2096 | return 0 |
| 2097 | } |
| 2098 | var l int |
| 2099 | _ = l |
| 2100 | if len(m.Hosts) > 0 { |
| 2101 | for _, s := range m.Hosts { |
| 2102 | l = len(s) |
| 2103 | n += 1 + l + sovGenerated(uint64(l)) |
| 2104 | } |
| 2105 | } |
| 2106 | l = len(m.SecretName) |
| 2107 | n += 1 + l + sovGenerated(uint64(l)) |
| 2108 | return n |
| 2109 | } |
| 2110 | |
| 2111 | func (m *NetworkPolicy) Size() (n int) { |
| 2112 | if m == nil { |
| 2113 | return 0 |
| 2114 | } |
| 2115 | var l int |
| 2116 | _ = l |
| 2117 | l = m.ObjectMeta.Size() |
| 2118 | n += 1 + l + sovGenerated(uint64(l)) |
| 2119 | l = m.Spec.Size() |
| 2120 | n += 1 + l + sovGenerated(uint64(l)) |
| 2121 | return n |
| 2122 | } |
| 2123 | |
| 2124 | func (m *NetworkPolicyEgressRule) Size() (n int) { |
| 2125 | if m == nil { |
| 2126 | return 0 |
| 2127 | } |
| 2128 | var l int |
| 2129 | _ = l |
| 2130 | if len(m.Ports) > 0 { |
| 2131 | for _, e := range m.Ports { |
| 2132 | l = e.Size() |
| 2133 | n += 1 + l + sovGenerated(uint64(l)) |
| 2134 | } |
| 2135 | } |
| 2136 | if len(m.To) > 0 { |
| 2137 | for _, e := range m.To { |
| 2138 | l = e.Size() |
| 2139 | n += 1 + l + sovGenerated(uint64(l)) |
| 2140 | } |
| 2141 | } |
| 2142 | return n |
| 2143 | } |
| 2144 | |
| 2145 | func (m *NetworkPolicyIngressRule) Size() (n int) { |
| 2146 | if m == nil { |
| 2147 | return 0 |
| 2148 | } |
| 2149 | var l int |
| 2150 | _ = l |
| 2151 | if len(m.Ports) > 0 { |
| 2152 | for _, e := range m.Ports { |
| 2153 | l = e.Size() |
| 2154 | n += 1 + l + sovGenerated(uint64(l)) |
| 2155 | } |
| 2156 | } |
| 2157 | if len(m.From) > 0 { |
| 2158 | for _, e := range m.From { |
| 2159 | l = e.Size() |
| 2160 | n += 1 + l + sovGenerated(uint64(l)) |
| 2161 | } |
| 2162 | } |
| 2163 | return n |
| 2164 | } |
| 2165 | |
| 2166 | func (m *NetworkPolicyList) Size() (n int) { |
| 2167 | if m == nil { |
| 2168 | return 0 |
| 2169 | } |
| 2170 | var l int |
| 2171 | _ = l |
| 2172 | l = m.ListMeta.Size() |
| 2173 | n += 1 + l + sovGenerated(uint64(l)) |
| 2174 | if len(m.Items) > 0 { |
| 2175 | for _, e := range m.Items { |
| 2176 | l = e.Size() |
| 2177 | n += 1 + l + sovGenerated(uint64(l)) |
| 2178 | } |
| 2179 | } |
| 2180 | return n |
| 2181 | } |
| 2182 | |
| 2183 | func (m *NetworkPolicyPeer) Size() (n int) { |
| 2184 | if m == nil { |
| 2185 | return 0 |
| 2186 | } |
| 2187 | var l int |
| 2188 | _ = l |
| 2189 | if m.PodSelector != nil { |
| 2190 | l = m.PodSelector.Size() |
| 2191 | n += 1 + l + sovGenerated(uint64(l)) |
| 2192 | } |
| 2193 | if m.NamespaceSelector != nil { |
| 2194 | l = m.NamespaceSelector.Size() |
| 2195 | n += 1 + l + sovGenerated(uint64(l)) |
| 2196 | } |
| 2197 | if m.IPBlock != nil { |
| 2198 | l = m.IPBlock.Size() |
| 2199 | n += 1 + l + sovGenerated(uint64(l)) |
| 2200 | } |
| 2201 | return n |
| 2202 | } |
| 2203 | |
| 2204 | func (m *NetworkPolicyPort) Size() (n int) { |
| 2205 | if m == nil { |
| 2206 | return 0 |
| 2207 | } |
| 2208 | var l int |
| 2209 | _ = l |
| 2210 | if m.Protocol != nil { |
| 2211 | l = len(*m.Protocol) |
| 2212 | n += 1 + l + sovGenerated(uint64(l)) |
| 2213 | } |
| 2214 | if m.Port != nil { |
| 2215 | l = m.Port.Size() |
| 2216 | n += 1 + l + sovGenerated(uint64(l)) |
| 2217 | } |
| 2218 | return n |
| 2219 | } |
| 2220 | |
| 2221 | func (m *NetworkPolicySpec) Size() (n int) { |
| 2222 | if m == nil { |
| 2223 | return 0 |
| 2224 | } |
| 2225 | var l int |
| 2226 | _ = l |
| 2227 | l = m.PodSelector.Size() |
| 2228 | n += 1 + l + sovGenerated(uint64(l)) |
| 2229 | if len(m.Ingress) > 0 { |
| 2230 | for _, e := range m.Ingress { |
| 2231 | l = e.Size() |
| 2232 | n += 1 + l + sovGenerated(uint64(l)) |
| 2233 | } |
| 2234 | } |
| 2235 | if len(m.Egress) > 0 { |
| 2236 | for _, e := range m.Egress { |
| 2237 | l = e.Size() |
| 2238 | n += 1 + l + sovGenerated(uint64(l)) |
| 2239 | } |
| 2240 | } |
| 2241 | if len(m.PolicyTypes) > 0 { |
| 2242 | for _, s := range m.PolicyTypes { |
| 2243 | l = len(s) |
| 2244 | n += 1 + l + sovGenerated(uint64(l)) |
| 2245 | } |
| 2246 | } |
| 2247 | return n |
| 2248 | } |
| 2249 | |
| 2250 | func (m *ServiceBackendPort) Size() (n int) { |
| 2251 | if m == nil { |
| 2252 | return 0 |
| 2253 | } |
| 2254 | var l int |
| 2255 | _ = l |
| 2256 | l = len(m.Name) |
| 2257 | n += 1 + l + sovGenerated(uint64(l)) |
| 2258 | n += 1 + sovGenerated(uint64(m.Number)) |
| 2259 | return n |
| 2260 | } |
| 2261 | |
| 2262 | func sovGenerated(x uint64) (n int) { |
| 2263 | return (math_bits.Len64(x|1) + 6) / 7 |
| 2264 | } |
| 2265 | func sozGenerated(x uint64) (n int) { |
| 2266 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 2267 | } |
| 2268 | func (this *HTTPIngressPath) String() string { |
| 2269 | if this == nil { |
| 2270 | return "nil" |
| 2271 | } |
| 2272 | s := strings.Join([]string{`&HTTPIngressPath{`, |
| 2273 | `Path:` + fmt.Sprintf("%v", this.Path) + `,`, |
| 2274 | `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`, |
| 2275 | `PathType:` + valueToStringGenerated(this.PathType) + `,`, |
| 2276 | `}`, |
| 2277 | }, "") |
| 2278 | return s |
| 2279 | } |
| 2280 | func (this *HTTPIngressRuleValue) String() string { |
| 2281 | if this == nil { |
| 2282 | return "nil" |
| 2283 | } |
| 2284 | repeatedStringForPaths := "[]HTTPIngressPath{" |
| 2285 | for _, f := range this.Paths { |
| 2286 | repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + "," |
| 2287 | } |
| 2288 | repeatedStringForPaths += "}" |
| 2289 | s := strings.Join([]string{`&HTTPIngressRuleValue{`, |
| 2290 | `Paths:` + repeatedStringForPaths + `,`, |
| 2291 | `}`, |
| 2292 | }, "") |
| 2293 | return s |
| 2294 | } |
| 2295 | func (this *IPBlock) String() string { |
| 2296 | if this == nil { |
| 2297 | return "nil" |
| 2298 | } |
| 2299 | s := strings.Join([]string{`&IPBlock{`, |
| 2300 | `CIDR:` + fmt.Sprintf("%v", this.CIDR) + `,`, |
| 2301 | `Except:` + fmt.Sprintf("%v", this.Except) + `,`, |
| 2302 | `}`, |
| 2303 | }, "") |
| 2304 | return s |
| 2305 | } |
| 2306 | func (this *Ingress) String() string { |
| 2307 | if this == nil { |
| 2308 | return "nil" |
| 2309 | } |
| 2310 | s := strings.Join([]string{`&Ingress{`, |
| 2311 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2312 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`, |
| 2313 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`, |
| 2314 | `}`, |
| 2315 | }, "") |
| 2316 | return s |
| 2317 | } |
| 2318 | func (this *IngressBackend) String() string { |
| 2319 | if this == nil { |
| 2320 | return "nil" |
| 2321 | } |
| 2322 | s := strings.Join([]string{`&IngressBackend{`, |
| 2323 | `Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, |
| 2324 | `Service:` + strings.Replace(this.Service.String(), "IngressServiceBackend", "IngressServiceBackend", 1) + `,`, |
| 2325 | `}`, |
| 2326 | }, "") |
| 2327 | return s |
| 2328 | } |
| 2329 | func (this *IngressClass) String() string { |
| 2330 | if this == nil { |
| 2331 | return "nil" |
| 2332 | } |
| 2333 | s := strings.Join([]string{`&IngressClass{`, |
| 2334 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2335 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressClassSpec", "IngressClassSpec", 1), `&`, ``, 1) + `,`, |
| 2336 | `}`, |
| 2337 | }, "") |
| 2338 | return s |
| 2339 | } |
| 2340 | func (this *IngressClassList) String() string { |
| 2341 | if this == nil { |
| 2342 | return "nil" |
| 2343 | } |
| 2344 | repeatedStringForItems := "[]IngressClass{" |
| 2345 | for _, f := range this.Items { |
| 2346 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IngressClass", "IngressClass", 1), `&`, ``, 1) + "," |
| 2347 | } |
| 2348 | repeatedStringForItems += "}" |
| 2349 | s := strings.Join([]string{`&IngressClassList{`, |
| 2350 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2351 | `Items:` + repeatedStringForItems + `,`, |
| 2352 | `}`, |
| 2353 | }, "") |
| 2354 | return s |
| 2355 | } |
| 2356 | func (this *IngressClassSpec) String() string { |
| 2357 | if this == nil { |
| 2358 | return "nil" |
| 2359 | } |
| 2360 | s := strings.Join([]string{`&IngressClassSpec{`, |
| 2361 | `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, |
| 2362 | `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, |
| 2363 | `}`, |
| 2364 | }, "") |
| 2365 | return s |
| 2366 | } |
| 2367 | func (this *IngressList) String() string { |
| 2368 | if this == nil { |
| 2369 | return "nil" |
| 2370 | } |
| 2371 | repeatedStringForItems := "[]Ingress{" |
| 2372 | for _, f := range this.Items { |
| 2373 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Ingress", "Ingress", 1), `&`, ``, 1) + "," |
| 2374 | } |
| 2375 | repeatedStringForItems += "}" |
| 2376 | s := strings.Join([]string{`&IngressList{`, |
| 2377 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2378 | `Items:` + repeatedStringForItems + `,`, |
| 2379 | `}`, |
| 2380 | }, "") |
| 2381 | return s |
| 2382 | } |
| 2383 | func (this *IngressRule) String() string { |
| 2384 | if this == nil { |
| 2385 | return "nil" |
| 2386 | } |
| 2387 | s := strings.Join([]string{`&IngressRule{`, |
| 2388 | `Host:` + fmt.Sprintf("%v", this.Host) + `,`, |
| 2389 | `IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`, |
| 2390 | `}`, |
| 2391 | }, "") |
| 2392 | return s |
| 2393 | } |
| 2394 | func (this *IngressRuleValue) String() string { |
| 2395 | if this == nil { |
| 2396 | return "nil" |
| 2397 | } |
| 2398 | s := strings.Join([]string{`&IngressRuleValue{`, |
| 2399 | `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`, |
| 2400 | `}`, |
| 2401 | }, "") |
| 2402 | return s |
| 2403 | } |
| 2404 | func (this *IngressServiceBackend) String() string { |
| 2405 | if this == nil { |
| 2406 | return "nil" |
| 2407 | } |
| 2408 | s := strings.Join([]string{`&IngressServiceBackend{`, |
| 2409 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2410 | `Port:` + strings.Replace(strings.Replace(this.Port.String(), "ServiceBackendPort", "ServiceBackendPort", 1), `&`, ``, 1) + `,`, |
| 2411 | `}`, |
| 2412 | }, "") |
| 2413 | return s |
| 2414 | } |
| 2415 | func (this *IngressSpec) String() string { |
| 2416 | if this == nil { |
| 2417 | return "nil" |
| 2418 | } |
| 2419 | repeatedStringForTLS := "[]IngressTLS{" |
| 2420 | for _, f := range this.TLS { |
| 2421 | repeatedStringForTLS += strings.Replace(strings.Replace(f.String(), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + "," |
| 2422 | } |
| 2423 | repeatedStringForTLS += "}" |
| 2424 | repeatedStringForRules := "[]IngressRule{" |
| 2425 | for _, f := range this.Rules { |
| 2426 | repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "IngressRule", "IngressRule", 1), `&`, ``, 1) + "," |
| 2427 | } |
| 2428 | repeatedStringForRules += "}" |
| 2429 | s := strings.Join([]string{`&IngressSpec{`, |
| 2430 | `DefaultBackend:` + strings.Replace(this.DefaultBackend.String(), "IngressBackend", "IngressBackend", 1) + `,`, |
| 2431 | `TLS:` + repeatedStringForTLS + `,`, |
| 2432 | `Rules:` + repeatedStringForRules + `,`, |
| 2433 | `IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`, |
| 2434 | `}`, |
| 2435 | }, "") |
| 2436 | return s |
| 2437 | } |
| 2438 | func (this *IngressStatus) String() string { |
| 2439 | if this == nil { |
| 2440 | return "nil" |
| 2441 | } |
| 2442 | s := strings.Join([]string{`&IngressStatus{`, |
| 2443 | `LoadBalancer:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LoadBalancer), "LoadBalancerStatus", "v11.LoadBalancerStatus", 1), `&`, ``, 1) + `,`, |
| 2444 | `}`, |
| 2445 | }, "") |
| 2446 | return s |
| 2447 | } |
| 2448 | func (this *IngressTLS) String() string { |
| 2449 | if this == nil { |
| 2450 | return "nil" |
| 2451 | } |
| 2452 | s := strings.Join([]string{`&IngressTLS{`, |
| 2453 | `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`, |
| 2454 | `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, |
| 2455 | `}`, |
| 2456 | }, "") |
| 2457 | return s |
| 2458 | } |
| 2459 | func (this *NetworkPolicy) String() string { |
| 2460 | if this == nil { |
| 2461 | return "nil" |
| 2462 | } |
| 2463 | s := strings.Join([]string{`&NetworkPolicy{`, |
| 2464 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2465 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`, |
| 2466 | `}`, |
| 2467 | }, "") |
| 2468 | return s |
| 2469 | } |
| 2470 | func (this *NetworkPolicyEgressRule) String() string { |
| 2471 | if this == nil { |
| 2472 | return "nil" |
| 2473 | } |
| 2474 | repeatedStringForPorts := "[]NetworkPolicyPort{" |
| 2475 | for _, f := range this.Ports { |
| 2476 | repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," |
| 2477 | } |
| 2478 | repeatedStringForPorts += "}" |
| 2479 | repeatedStringForTo := "[]NetworkPolicyPeer{" |
| 2480 | for _, f := range this.To { |
| 2481 | repeatedStringForTo += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," |
| 2482 | } |
| 2483 | repeatedStringForTo += "}" |
| 2484 | s := strings.Join([]string{`&NetworkPolicyEgressRule{`, |
| 2485 | `Ports:` + repeatedStringForPorts + `,`, |
| 2486 | `To:` + repeatedStringForTo + `,`, |
| 2487 | `}`, |
| 2488 | }, "") |
| 2489 | return s |
| 2490 | } |
| 2491 | func (this *NetworkPolicyIngressRule) String() string { |
| 2492 | if this == nil { |
| 2493 | return "nil" |
| 2494 | } |
| 2495 | repeatedStringForPorts := "[]NetworkPolicyPort{" |
| 2496 | for _, f := range this.Ports { |
| 2497 | repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," |
| 2498 | } |
| 2499 | repeatedStringForPorts += "}" |
| 2500 | repeatedStringForFrom := "[]NetworkPolicyPeer{" |
| 2501 | for _, f := range this.From { |
| 2502 | repeatedStringForFrom += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," |
| 2503 | } |
| 2504 | repeatedStringForFrom += "}" |
| 2505 | s := strings.Join([]string{`&NetworkPolicyIngressRule{`, |
| 2506 | `Ports:` + repeatedStringForPorts + `,`, |
| 2507 | `From:` + repeatedStringForFrom + `,`, |
| 2508 | `}`, |
| 2509 | }, "") |
| 2510 | return s |
| 2511 | } |
| 2512 | func (this *NetworkPolicyList) String() string { |
| 2513 | if this == nil { |
| 2514 | return "nil" |
| 2515 | } |
| 2516 | repeatedStringForItems := "[]NetworkPolicy{" |
| 2517 | for _, f := range this.Items { |
| 2518 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + "," |
| 2519 | } |
| 2520 | repeatedStringForItems += "}" |
| 2521 | s := strings.Join([]string{`&NetworkPolicyList{`, |
| 2522 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2523 | `Items:` + repeatedStringForItems + `,`, |
| 2524 | `}`, |
| 2525 | }, "") |
| 2526 | return s |
| 2527 | } |
| 2528 | func (this *NetworkPolicyPeer) String() string { |
| 2529 | if this == nil { |
| 2530 | return "nil" |
| 2531 | } |
| 2532 | s := strings.Join([]string{`&NetworkPolicyPeer{`, |
| 2533 | `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 2534 | `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 2535 | `IPBlock:` + strings.Replace(this.IPBlock.String(), "IPBlock", "IPBlock", 1) + `,`, |
| 2536 | `}`, |
| 2537 | }, "") |
| 2538 | return s |
| 2539 | } |
| 2540 | func (this *NetworkPolicyPort) String() string { |
| 2541 | if this == nil { |
| 2542 | return "nil" |
| 2543 | } |
| 2544 | s := strings.Join([]string{`&NetworkPolicyPort{`, |
| 2545 | `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, |
| 2546 | `Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1) + `,`, |
| 2547 | `}`, |
| 2548 | }, "") |
| 2549 | return s |
| 2550 | } |
| 2551 | func (this *NetworkPolicySpec) String() string { |
| 2552 | if this == nil { |
| 2553 | return "nil" |
| 2554 | } |
| 2555 | repeatedStringForIngress := "[]NetworkPolicyIngressRule{" |
| 2556 | for _, f := range this.Ingress { |
| 2557 | repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + "," |
| 2558 | } |
| 2559 | repeatedStringForIngress += "}" |
| 2560 | repeatedStringForEgress := "[]NetworkPolicyEgressRule{" |
| 2561 | for _, f := range this.Egress { |
| 2562 | repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyEgressRule", "NetworkPolicyEgressRule", 1), `&`, ``, 1) + "," |
| 2563 | } |
| 2564 | repeatedStringForEgress += "}" |
| 2565 | s := strings.Join([]string{`&NetworkPolicySpec{`, |
| 2566 | `PodSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, |
| 2567 | `Ingress:` + repeatedStringForIngress + `,`, |
| 2568 | `Egress:` + repeatedStringForEgress + `,`, |
| 2569 | `PolicyTypes:` + fmt.Sprintf("%v", this.PolicyTypes) + `,`, |
| 2570 | `}`, |
| 2571 | }, "") |
| 2572 | return s |
| 2573 | } |
| 2574 | func (this *ServiceBackendPort) String() string { |
| 2575 | if this == nil { |
| 2576 | return "nil" |
| 2577 | } |
| 2578 | s := strings.Join([]string{`&ServiceBackendPort{`, |
| 2579 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2580 | `Number:` + fmt.Sprintf("%v", this.Number) + `,`, |
| 2581 | `}`, |
| 2582 | }, "") |
| 2583 | return s |
| 2584 | } |
| 2585 | func valueToStringGenerated(v interface{}) string { |
| 2586 | rv := reflect.ValueOf(v) |
| 2587 | if rv.IsNil() { |
| 2588 | return "nil" |
| 2589 | } |
| 2590 | pv := reflect.Indirect(rv).Interface() |
| 2591 | return fmt.Sprintf("*%v", pv) |
| 2592 | } |
| 2593 | func (m *HTTPIngressPath) Unmarshal(dAtA []byte) error { |
| 2594 | l := len(dAtA) |
| 2595 | iNdEx := 0 |
| 2596 | for iNdEx < l { |
| 2597 | preIndex := iNdEx |
| 2598 | var wire uint64 |
| 2599 | for shift := uint(0); ; shift += 7 { |
| 2600 | if shift >= 64 { |
| 2601 | return ErrIntOverflowGenerated |
| 2602 | } |
| 2603 | if iNdEx >= l { |
| 2604 | return io.ErrUnexpectedEOF |
| 2605 | } |
| 2606 | b := dAtA[iNdEx] |
| 2607 | iNdEx++ |
| 2608 | wire |= uint64(b&0x7F) << shift |
| 2609 | if b < 0x80 { |
| 2610 | break |
| 2611 | } |
| 2612 | } |
| 2613 | fieldNum := int32(wire >> 3) |
| 2614 | wireType := int(wire & 0x7) |
| 2615 | if wireType == 4 { |
| 2616 | return fmt.Errorf("proto: HTTPIngressPath: wiretype end group for non-group") |
| 2617 | } |
| 2618 | if fieldNum <= 0 { |
| 2619 | return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2620 | } |
| 2621 | switch fieldNum { |
| 2622 | case 1: |
| 2623 | if wireType != 2 { |
| 2624 | return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
| 2625 | } |
| 2626 | var stringLen uint64 |
| 2627 | for shift := uint(0); ; shift += 7 { |
| 2628 | if shift >= 64 { |
| 2629 | return ErrIntOverflowGenerated |
| 2630 | } |
| 2631 | if iNdEx >= l { |
| 2632 | return io.ErrUnexpectedEOF |
| 2633 | } |
| 2634 | b := dAtA[iNdEx] |
| 2635 | iNdEx++ |
| 2636 | stringLen |= uint64(b&0x7F) << shift |
| 2637 | if b < 0x80 { |
| 2638 | break |
| 2639 | } |
| 2640 | } |
| 2641 | intStringLen := int(stringLen) |
| 2642 | if intStringLen < 0 { |
| 2643 | return ErrInvalidLengthGenerated |
| 2644 | } |
| 2645 | postIndex := iNdEx + intStringLen |
| 2646 | if postIndex < 0 { |
| 2647 | return ErrInvalidLengthGenerated |
| 2648 | } |
| 2649 | if postIndex > l { |
| 2650 | return io.ErrUnexpectedEOF |
| 2651 | } |
| 2652 | m.Path = string(dAtA[iNdEx:postIndex]) |
| 2653 | iNdEx = postIndex |
| 2654 | case 2: |
| 2655 | if wireType != 2 { |
| 2656 | return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) |
| 2657 | } |
| 2658 | var msglen int |
| 2659 | for shift := uint(0); ; shift += 7 { |
| 2660 | if shift >= 64 { |
| 2661 | return ErrIntOverflowGenerated |
| 2662 | } |
| 2663 | if iNdEx >= l { |
| 2664 | return io.ErrUnexpectedEOF |
| 2665 | } |
| 2666 | b := dAtA[iNdEx] |
| 2667 | iNdEx++ |
| 2668 | msglen |= int(b&0x7F) << shift |
| 2669 | if b < 0x80 { |
| 2670 | break |
| 2671 | } |
| 2672 | } |
| 2673 | if msglen < 0 { |
| 2674 | return ErrInvalidLengthGenerated |
| 2675 | } |
| 2676 | postIndex := iNdEx + msglen |
| 2677 | if postIndex < 0 { |
| 2678 | return ErrInvalidLengthGenerated |
| 2679 | } |
| 2680 | if postIndex > l { |
| 2681 | return io.ErrUnexpectedEOF |
| 2682 | } |
| 2683 | if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2684 | return err |
| 2685 | } |
| 2686 | iNdEx = postIndex |
| 2687 | case 3: |
| 2688 | if wireType != 2 { |
| 2689 | return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) |
| 2690 | } |
| 2691 | var stringLen uint64 |
| 2692 | for shift := uint(0); ; shift += 7 { |
| 2693 | if shift >= 64 { |
| 2694 | return ErrIntOverflowGenerated |
| 2695 | } |
| 2696 | if iNdEx >= l { |
| 2697 | return io.ErrUnexpectedEOF |
| 2698 | } |
| 2699 | b := dAtA[iNdEx] |
| 2700 | iNdEx++ |
| 2701 | stringLen |= uint64(b&0x7F) << shift |
| 2702 | if b < 0x80 { |
| 2703 | break |
| 2704 | } |
| 2705 | } |
| 2706 | intStringLen := int(stringLen) |
| 2707 | if intStringLen < 0 { |
| 2708 | return ErrInvalidLengthGenerated |
| 2709 | } |
| 2710 | postIndex := iNdEx + intStringLen |
| 2711 | if postIndex < 0 { |
| 2712 | return ErrInvalidLengthGenerated |
| 2713 | } |
| 2714 | if postIndex > l { |
| 2715 | return io.ErrUnexpectedEOF |
| 2716 | } |
| 2717 | s := PathType(dAtA[iNdEx:postIndex]) |
| 2718 | m.PathType = &s |
| 2719 | iNdEx = postIndex |
| 2720 | default: |
| 2721 | iNdEx = preIndex |
| 2722 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2723 | if err != nil { |
| 2724 | return err |
| 2725 | } |
| 2726 | if skippy < 0 { |
| 2727 | return ErrInvalidLengthGenerated |
| 2728 | } |
| 2729 | if (iNdEx + skippy) < 0 { |
| 2730 | return ErrInvalidLengthGenerated |
| 2731 | } |
| 2732 | if (iNdEx + skippy) > l { |
| 2733 | return io.ErrUnexpectedEOF |
| 2734 | } |
| 2735 | iNdEx += skippy |
| 2736 | } |
| 2737 | } |
| 2738 | |
| 2739 | if iNdEx > l { |
| 2740 | return io.ErrUnexpectedEOF |
| 2741 | } |
| 2742 | return nil |
| 2743 | } |
| 2744 | func (m *HTTPIngressRuleValue) Unmarshal(dAtA []byte) error { |
| 2745 | l := len(dAtA) |
| 2746 | iNdEx := 0 |
| 2747 | for iNdEx < l { |
| 2748 | preIndex := iNdEx |
| 2749 | var wire uint64 |
| 2750 | for shift := uint(0); ; shift += 7 { |
| 2751 | if shift >= 64 { |
| 2752 | return ErrIntOverflowGenerated |
| 2753 | } |
| 2754 | if iNdEx >= l { |
| 2755 | return io.ErrUnexpectedEOF |
| 2756 | } |
| 2757 | b := dAtA[iNdEx] |
| 2758 | iNdEx++ |
| 2759 | wire |= uint64(b&0x7F) << shift |
| 2760 | if b < 0x80 { |
| 2761 | break |
| 2762 | } |
| 2763 | } |
| 2764 | fieldNum := int32(wire >> 3) |
| 2765 | wireType := int(wire & 0x7) |
| 2766 | if wireType == 4 { |
| 2767 | return fmt.Errorf("proto: HTTPIngressRuleValue: wiretype end group for non-group") |
| 2768 | } |
| 2769 | if fieldNum <= 0 { |
| 2770 | return fmt.Errorf("proto: HTTPIngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2771 | } |
| 2772 | switch fieldNum { |
| 2773 | case 1: |
| 2774 | if wireType != 2 { |
| 2775 | return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) |
| 2776 | } |
| 2777 | var msglen int |
| 2778 | for shift := uint(0); ; shift += 7 { |
| 2779 | if shift >= 64 { |
| 2780 | return ErrIntOverflowGenerated |
| 2781 | } |
| 2782 | if iNdEx >= l { |
| 2783 | return io.ErrUnexpectedEOF |
| 2784 | } |
| 2785 | b := dAtA[iNdEx] |
| 2786 | iNdEx++ |
| 2787 | msglen |= int(b&0x7F) << shift |
| 2788 | if b < 0x80 { |
| 2789 | break |
| 2790 | } |
| 2791 | } |
| 2792 | if msglen < 0 { |
| 2793 | return ErrInvalidLengthGenerated |
| 2794 | } |
| 2795 | postIndex := iNdEx + msglen |
| 2796 | if postIndex < 0 { |
| 2797 | return ErrInvalidLengthGenerated |
| 2798 | } |
| 2799 | if postIndex > l { |
| 2800 | return io.ErrUnexpectedEOF |
| 2801 | } |
| 2802 | m.Paths = append(m.Paths, HTTPIngressPath{}) |
| 2803 | if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2804 | return err |
| 2805 | } |
| 2806 | iNdEx = postIndex |
| 2807 | default: |
| 2808 | iNdEx = preIndex |
| 2809 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2810 | if err != nil { |
| 2811 | return err |
| 2812 | } |
| 2813 | if skippy < 0 { |
| 2814 | return ErrInvalidLengthGenerated |
| 2815 | } |
| 2816 | if (iNdEx + skippy) < 0 { |
| 2817 | return ErrInvalidLengthGenerated |
| 2818 | } |
| 2819 | if (iNdEx + skippy) > l { |
| 2820 | return io.ErrUnexpectedEOF |
| 2821 | } |
| 2822 | iNdEx += skippy |
| 2823 | } |
| 2824 | } |
| 2825 | |
| 2826 | if iNdEx > l { |
| 2827 | return io.ErrUnexpectedEOF |
| 2828 | } |
| 2829 | return nil |
| 2830 | } |
| 2831 | func (m *IPBlock) Unmarshal(dAtA []byte) error { |
| 2832 | l := len(dAtA) |
| 2833 | iNdEx := 0 |
| 2834 | for iNdEx < l { |
| 2835 | preIndex := iNdEx |
| 2836 | var wire uint64 |
| 2837 | for shift := uint(0); ; shift += 7 { |
| 2838 | if shift >= 64 { |
| 2839 | return ErrIntOverflowGenerated |
| 2840 | } |
| 2841 | if iNdEx >= l { |
| 2842 | return io.ErrUnexpectedEOF |
| 2843 | } |
| 2844 | b := dAtA[iNdEx] |
| 2845 | iNdEx++ |
| 2846 | wire |= uint64(b&0x7F) << shift |
| 2847 | if b < 0x80 { |
| 2848 | break |
| 2849 | } |
| 2850 | } |
| 2851 | fieldNum := int32(wire >> 3) |
| 2852 | wireType := int(wire & 0x7) |
| 2853 | if wireType == 4 { |
| 2854 | return fmt.Errorf("proto: IPBlock: wiretype end group for non-group") |
| 2855 | } |
| 2856 | if fieldNum <= 0 { |
| 2857 | return fmt.Errorf("proto: IPBlock: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2858 | } |
| 2859 | switch fieldNum { |
| 2860 | case 1: |
| 2861 | if wireType != 2 { |
| 2862 | return fmt.Errorf("proto: wrong wireType = %d for field CIDR", wireType) |
| 2863 | } |
| 2864 | var stringLen uint64 |
| 2865 | for shift := uint(0); ; shift += 7 { |
| 2866 | if shift >= 64 { |
| 2867 | return ErrIntOverflowGenerated |
| 2868 | } |
| 2869 | if iNdEx >= l { |
| 2870 | return io.ErrUnexpectedEOF |
| 2871 | } |
| 2872 | b := dAtA[iNdEx] |
| 2873 | iNdEx++ |
| 2874 | stringLen |= uint64(b&0x7F) << shift |
| 2875 | if b < 0x80 { |
| 2876 | break |
| 2877 | } |
| 2878 | } |
| 2879 | intStringLen := int(stringLen) |
| 2880 | if intStringLen < 0 { |
| 2881 | return ErrInvalidLengthGenerated |
| 2882 | } |
| 2883 | postIndex := iNdEx + intStringLen |
| 2884 | if postIndex < 0 { |
| 2885 | return ErrInvalidLengthGenerated |
| 2886 | } |
| 2887 | if postIndex > l { |
| 2888 | return io.ErrUnexpectedEOF |
| 2889 | } |
| 2890 | m.CIDR = string(dAtA[iNdEx:postIndex]) |
| 2891 | iNdEx = postIndex |
| 2892 | case 2: |
| 2893 | if wireType != 2 { |
| 2894 | return fmt.Errorf("proto: wrong wireType = %d for field Except", wireType) |
| 2895 | } |
| 2896 | var stringLen uint64 |
| 2897 | for shift := uint(0); ; shift += 7 { |
| 2898 | if shift >= 64 { |
| 2899 | return ErrIntOverflowGenerated |
| 2900 | } |
| 2901 | if iNdEx >= l { |
| 2902 | return io.ErrUnexpectedEOF |
| 2903 | } |
| 2904 | b := dAtA[iNdEx] |
| 2905 | iNdEx++ |
| 2906 | stringLen |= uint64(b&0x7F) << shift |
| 2907 | if b < 0x80 { |
| 2908 | break |
| 2909 | } |
| 2910 | } |
| 2911 | intStringLen := int(stringLen) |
| 2912 | if intStringLen < 0 { |
| 2913 | return ErrInvalidLengthGenerated |
| 2914 | } |
| 2915 | postIndex := iNdEx + intStringLen |
| 2916 | if postIndex < 0 { |
| 2917 | return ErrInvalidLengthGenerated |
| 2918 | } |
| 2919 | if postIndex > l { |
| 2920 | return io.ErrUnexpectedEOF |
| 2921 | } |
| 2922 | m.Except = append(m.Except, string(dAtA[iNdEx:postIndex])) |
| 2923 | iNdEx = postIndex |
| 2924 | default: |
| 2925 | iNdEx = preIndex |
| 2926 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2927 | if err != nil { |
| 2928 | return err |
| 2929 | } |
| 2930 | if skippy < 0 { |
| 2931 | return ErrInvalidLengthGenerated |
| 2932 | } |
| 2933 | if (iNdEx + skippy) < 0 { |
| 2934 | return ErrInvalidLengthGenerated |
| 2935 | } |
| 2936 | if (iNdEx + skippy) > l { |
| 2937 | return io.ErrUnexpectedEOF |
| 2938 | } |
| 2939 | iNdEx += skippy |
| 2940 | } |
| 2941 | } |
| 2942 | |
| 2943 | if iNdEx > l { |
| 2944 | return io.ErrUnexpectedEOF |
| 2945 | } |
| 2946 | return nil |
| 2947 | } |
| 2948 | func (m *Ingress) Unmarshal(dAtA []byte) error { |
| 2949 | l := len(dAtA) |
| 2950 | iNdEx := 0 |
| 2951 | for iNdEx < l { |
| 2952 | preIndex := iNdEx |
| 2953 | var wire uint64 |
| 2954 | for shift := uint(0); ; shift += 7 { |
| 2955 | if shift >= 64 { |
| 2956 | return ErrIntOverflowGenerated |
| 2957 | } |
| 2958 | if iNdEx >= l { |
| 2959 | return io.ErrUnexpectedEOF |
| 2960 | } |
| 2961 | b := dAtA[iNdEx] |
| 2962 | iNdEx++ |
| 2963 | wire |= uint64(b&0x7F) << shift |
| 2964 | if b < 0x80 { |
| 2965 | break |
| 2966 | } |
| 2967 | } |
| 2968 | fieldNum := int32(wire >> 3) |
| 2969 | wireType := int(wire & 0x7) |
| 2970 | if wireType == 4 { |
| 2971 | return fmt.Errorf("proto: Ingress: wiretype end group for non-group") |
| 2972 | } |
| 2973 | if fieldNum <= 0 { |
| 2974 | return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2975 | } |
| 2976 | switch fieldNum { |
| 2977 | case 1: |
| 2978 | if wireType != 2 { |
| 2979 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2980 | } |
| 2981 | var msglen int |
| 2982 | for shift := uint(0); ; shift += 7 { |
| 2983 | if shift >= 64 { |
| 2984 | return ErrIntOverflowGenerated |
| 2985 | } |
| 2986 | if iNdEx >= l { |
| 2987 | return io.ErrUnexpectedEOF |
| 2988 | } |
| 2989 | b := dAtA[iNdEx] |
| 2990 | iNdEx++ |
| 2991 | msglen |= int(b&0x7F) << shift |
| 2992 | if b < 0x80 { |
| 2993 | break |
| 2994 | } |
| 2995 | } |
| 2996 | if msglen < 0 { |
| 2997 | return ErrInvalidLengthGenerated |
| 2998 | } |
| 2999 | postIndex := iNdEx + msglen |
| 3000 | if postIndex < 0 { |
| 3001 | return ErrInvalidLengthGenerated |
| 3002 | } |
| 3003 | if postIndex > l { |
| 3004 | return io.ErrUnexpectedEOF |
| 3005 | } |
| 3006 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3007 | return err |
| 3008 | } |
| 3009 | iNdEx = postIndex |
| 3010 | case 2: |
| 3011 | if wireType != 2 { |
| 3012 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 3013 | } |
| 3014 | var msglen int |
| 3015 | for shift := uint(0); ; shift += 7 { |
| 3016 | if shift >= 64 { |
| 3017 | return ErrIntOverflowGenerated |
| 3018 | } |
| 3019 | if iNdEx >= l { |
| 3020 | return io.ErrUnexpectedEOF |
| 3021 | } |
| 3022 | b := dAtA[iNdEx] |
| 3023 | iNdEx++ |
| 3024 | msglen |= int(b&0x7F) << shift |
| 3025 | if b < 0x80 { |
| 3026 | break |
| 3027 | } |
| 3028 | } |
| 3029 | if msglen < 0 { |
| 3030 | return ErrInvalidLengthGenerated |
| 3031 | } |
| 3032 | postIndex := iNdEx + msglen |
| 3033 | if postIndex < 0 { |
| 3034 | return ErrInvalidLengthGenerated |
| 3035 | } |
| 3036 | if postIndex > l { |
| 3037 | return io.ErrUnexpectedEOF |
| 3038 | } |
| 3039 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3040 | return err |
| 3041 | } |
| 3042 | iNdEx = postIndex |
| 3043 | case 3: |
| 3044 | if wireType != 2 { |
| 3045 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3046 | } |
| 3047 | var msglen int |
| 3048 | for shift := uint(0); ; shift += 7 { |
| 3049 | if shift >= 64 { |
| 3050 | return ErrIntOverflowGenerated |
| 3051 | } |
| 3052 | if iNdEx >= l { |
| 3053 | return io.ErrUnexpectedEOF |
| 3054 | } |
| 3055 | b := dAtA[iNdEx] |
| 3056 | iNdEx++ |
| 3057 | msglen |= int(b&0x7F) << shift |
| 3058 | if b < 0x80 { |
| 3059 | break |
| 3060 | } |
| 3061 | } |
| 3062 | if msglen < 0 { |
| 3063 | return ErrInvalidLengthGenerated |
| 3064 | } |
| 3065 | postIndex := iNdEx + msglen |
| 3066 | if postIndex < 0 { |
| 3067 | return ErrInvalidLengthGenerated |
| 3068 | } |
| 3069 | if postIndex > l { |
| 3070 | return io.ErrUnexpectedEOF |
| 3071 | } |
| 3072 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3073 | return err |
| 3074 | } |
| 3075 | iNdEx = postIndex |
| 3076 | default: |
| 3077 | iNdEx = preIndex |
| 3078 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3079 | if err != nil { |
| 3080 | return err |
| 3081 | } |
| 3082 | if skippy < 0 { |
| 3083 | return ErrInvalidLengthGenerated |
| 3084 | } |
| 3085 | if (iNdEx + skippy) < 0 { |
| 3086 | return ErrInvalidLengthGenerated |
| 3087 | } |
| 3088 | if (iNdEx + skippy) > l { |
| 3089 | return io.ErrUnexpectedEOF |
| 3090 | } |
| 3091 | iNdEx += skippy |
| 3092 | } |
| 3093 | } |
| 3094 | |
| 3095 | if iNdEx > l { |
| 3096 | return io.ErrUnexpectedEOF |
| 3097 | } |
| 3098 | return nil |
| 3099 | } |
| 3100 | func (m *IngressBackend) Unmarshal(dAtA []byte) error { |
| 3101 | l := len(dAtA) |
| 3102 | iNdEx := 0 |
| 3103 | for iNdEx < l { |
| 3104 | preIndex := iNdEx |
| 3105 | var wire uint64 |
| 3106 | for shift := uint(0); ; shift += 7 { |
| 3107 | if shift >= 64 { |
| 3108 | return ErrIntOverflowGenerated |
| 3109 | } |
| 3110 | if iNdEx >= l { |
| 3111 | return io.ErrUnexpectedEOF |
| 3112 | } |
| 3113 | b := dAtA[iNdEx] |
| 3114 | iNdEx++ |
| 3115 | wire |= uint64(b&0x7F) << shift |
| 3116 | if b < 0x80 { |
| 3117 | break |
| 3118 | } |
| 3119 | } |
| 3120 | fieldNum := int32(wire >> 3) |
| 3121 | wireType := int(wire & 0x7) |
| 3122 | if wireType == 4 { |
| 3123 | return fmt.Errorf("proto: IngressBackend: wiretype end group for non-group") |
| 3124 | } |
| 3125 | if fieldNum <= 0 { |
| 3126 | return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3127 | } |
| 3128 | switch fieldNum { |
| 3129 | case 3: |
| 3130 | if wireType != 2 { |
| 3131 | return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) |
| 3132 | } |
| 3133 | var msglen int |
| 3134 | for shift := uint(0); ; shift += 7 { |
| 3135 | if shift >= 64 { |
| 3136 | return ErrIntOverflowGenerated |
| 3137 | } |
| 3138 | if iNdEx >= l { |
| 3139 | return io.ErrUnexpectedEOF |
| 3140 | } |
| 3141 | b := dAtA[iNdEx] |
| 3142 | iNdEx++ |
| 3143 | msglen |= int(b&0x7F) << shift |
| 3144 | if b < 0x80 { |
| 3145 | break |
| 3146 | } |
| 3147 | } |
| 3148 | if msglen < 0 { |
| 3149 | return ErrInvalidLengthGenerated |
| 3150 | } |
| 3151 | postIndex := iNdEx + msglen |
| 3152 | if postIndex < 0 { |
| 3153 | return ErrInvalidLengthGenerated |
| 3154 | } |
| 3155 | if postIndex > l { |
| 3156 | return io.ErrUnexpectedEOF |
| 3157 | } |
| 3158 | if m.Resource == nil { |
| 3159 | m.Resource = &v11.TypedLocalObjectReference{} |
| 3160 | } |
| 3161 | if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3162 | return err |
| 3163 | } |
| 3164 | iNdEx = postIndex |
| 3165 | case 4: |
| 3166 | if wireType != 2 { |
| 3167 | return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) |
| 3168 | } |
| 3169 | var msglen int |
| 3170 | for shift := uint(0); ; shift += 7 { |
| 3171 | if shift >= 64 { |
| 3172 | return ErrIntOverflowGenerated |
| 3173 | } |
| 3174 | if iNdEx >= l { |
| 3175 | return io.ErrUnexpectedEOF |
| 3176 | } |
| 3177 | b := dAtA[iNdEx] |
| 3178 | iNdEx++ |
| 3179 | msglen |= int(b&0x7F) << shift |
| 3180 | if b < 0x80 { |
| 3181 | break |
| 3182 | } |
| 3183 | } |
| 3184 | if msglen < 0 { |
| 3185 | return ErrInvalidLengthGenerated |
| 3186 | } |
| 3187 | postIndex := iNdEx + msglen |
| 3188 | if postIndex < 0 { |
| 3189 | return ErrInvalidLengthGenerated |
| 3190 | } |
| 3191 | if postIndex > l { |
| 3192 | return io.ErrUnexpectedEOF |
| 3193 | } |
| 3194 | if m.Service == nil { |
| 3195 | m.Service = &IngressServiceBackend{} |
| 3196 | } |
| 3197 | if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3198 | return err |
| 3199 | } |
| 3200 | iNdEx = postIndex |
| 3201 | default: |
| 3202 | iNdEx = preIndex |
| 3203 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3204 | if err != nil { |
| 3205 | return err |
| 3206 | } |
| 3207 | if skippy < 0 { |
| 3208 | return ErrInvalidLengthGenerated |
| 3209 | } |
| 3210 | if (iNdEx + skippy) < 0 { |
| 3211 | return ErrInvalidLengthGenerated |
| 3212 | } |
| 3213 | if (iNdEx + skippy) > l { |
| 3214 | return io.ErrUnexpectedEOF |
| 3215 | } |
| 3216 | iNdEx += skippy |
| 3217 | } |
| 3218 | } |
| 3219 | |
| 3220 | if iNdEx > l { |
| 3221 | return io.ErrUnexpectedEOF |
| 3222 | } |
| 3223 | return nil |
| 3224 | } |
| 3225 | func (m *IngressClass) Unmarshal(dAtA []byte) error { |
| 3226 | l := len(dAtA) |
| 3227 | iNdEx := 0 |
| 3228 | for iNdEx < l { |
| 3229 | preIndex := iNdEx |
| 3230 | var wire uint64 |
| 3231 | for shift := uint(0); ; shift += 7 { |
| 3232 | if shift >= 64 { |
| 3233 | return ErrIntOverflowGenerated |
| 3234 | } |
| 3235 | if iNdEx >= l { |
| 3236 | return io.ErrUnexpectedEOF |
| 3237 | } |
| 3238 | b := dAtA[iNdEx] |
| 3239 | iNdEx++ |
| 3240 | wire |= uint64(b&0x7F) << shift |
| 3241 | if b < 0x80 { |
| 3242 | break |
| 3243 | } |
| 3244 | } |
| 3245 | fieldNum := int32(wire >> 3) |
| 3246 | wireType := int(wire & 0x7) |
| 3247 | if wireType == 4 { |
| 3248 | return fmt.Errorf("proto: IngressClass: wiretype end group for non-group") |
| 3249 | } |
| 3250 | if fieldNum <= 0 { |
| 3251 | return fmt.Errorf("proto: IngressClass: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3252 | } |
| 3253 | switch fieldNum { |
| 3254 | case 1: |
| 3255 | if wireType != 2 { |
| 3256 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 3257 | } |
| 3258 | var msglen int |
| 3259 | for shift := uint(0); ; shift += 7 { |
| 3260 | if shift >= 64 { |
| 3261 | return ErrIntOverflowGenerated |
| 3262 | } |
| 3263 | if iNdEx >= l { |
| 3264 | return io.ErrUnexpectedEOF |
| 3265 | } |
| 3266 | b := dAtA[iNdEx] |
| 3267 | iNdEx++ |
| 3268 | msglen |= int(b&0x7F) << shift |
| 3269 | if b < 0x80 { |
| 3270 | break |
| 3271 | } |
| 3272 | } |
| 3273 | if msglen < 0 { |
| 3274 | return ErrInvalidLengthGenerated |
| 3275 | } |
| 3276 | postIndex := iNdEx + msglen |
| 3277 | if postIndex < 0 { |
| 3278 | return ErrInvalidLengthGenerated |
| 3279 | } |
| 3280 | if postIndex > l { |
| 3281 | return io.ErrUnexpectedEOF |
| 3282 | } |
| 3283 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3284 | return err |
| 3285 | } |
| 3286 | iNdEx = postIndex |
| 3287 | case 2: |
| 3288 | if wireType != 2 { |
| 3289 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 3290 | } |
| 3291 | var msglen int |
| 3292 | for shift := uint(0); ; shift += 7 { |
| 3293 | if shift >= 64 { |
| 3294 | return ErrIntOverflowGenerated |
| 3295 | } |
| 3296 | if iNdEx >= l { |
| 3297 | return io.ErrUnexpectedEOF |
| 3298 | } |
| 3299 | b := dAtA[iNdEx] |
| 3300 | iNdEx++ |
| 3301 | msglen |= int(b&0x7F) << shift |
| 3302 | if b < 0x80 { |
| 3303 | break |
| 3304 | } |
| 3305 | } |
| 3306 | if msglen < 0 { |
| 3307 | return ErrInvalidLengthGenerated |
| 3308 | } |
| 3309 | postIndex := iNdEx + msglen |
| 3310 | if postIndex < 0 { |
| 3311 | return ErrInvalidLengthGenerated |
| 3312 | } |
| 3313 | if postIndex > l { |
| 3314 | return io.ErrUnexpectedEOF |
| 3315 | } |
| 3316 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3317 | return err |
| 3318 | } |
| 3319 | iNdEx = postIndex |
| 3320 | default: |
| 3321 | iNdEx = preIndex |
| 3322 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3323 | if err != nil { |
| 3324 | return err |
| 3325 | } |
| 3326 | if skippy < 0 { |
| 3327 | return ErrInvalidLengthGenerated |
| 3328 | } |
| 3329 | if (iNdEx + skippy) < 0 { |
| 3330 | return ErrInvalidLengthGenerated |
| 3331 | } |
| 3332 | if (iNdEx + skippy) > l { |
| 3333 | return io.ErrUnexpectedEOF |
| 3334 | } |
| 3335 | iNdEx += skippy |
| 3336 | } |
| 3337 | } |
| 3338 | |
| 3339 | if iNdEx > l { |
| 3340 | return io.ErrUnexpectedEOF |
| 3341 | } |
| 3342 | return nil |
| 3343 | } |
| 3344 | func (m *IngressClassList) Unmarshal(dAtA []byte) error { |
| 3345 | l := len(dAtA) |
| 3346 | iNdEx := 0 |
| 3347 | for iNdEx < l { |
| 3348 | preIndex := iNdEx |
| 3349 | var wire uint64 |
| 3350 | for shift := uint(0); ; shift += 7 { |
| 3351 | if shift >= 64 { |
| 3352 | return ErrIntOverflowGenerated |
| 3353 | } |
| 3354 | if iNdEx >= l { |
| 3355 | return io.ErrUnexpectedEOF |
| 3356 | } |
| 3357 | b := dAtA[iNdEx] |
| 3358 | iNdEx++ |
| 3359 | wire |= uint64(b&0x7F) << shift |
| 3360 | if b < 0x80 { |
| 3361 | break |
| 3362 | } |
| 3363 | } |
| 3364 | fieldNum := int32(wire >> 3) |
| 3365 | wireType := int(wire & 0x7) |
| 3366 | if wireType == 4 { |
| 3367 | return fmt.Errorf("proto: IngressClassList: wiretype end group for non-group") |
| 3368 | } |
| 3369 | if fieldNum <= 0 { |
| 3370 | return fmt.Errorf("proto: IngressClassList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3371 | } |
| 3372 | switch fieldNum { |
| 3373 | case 1: |
| 3374 | if wireType != 2 { |
| 3375 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 3376 | } |
| 3377 | var msglen int |
| 3378 | for shift := uint(0); ; shift += 7 { |
| 3379 | if shift >= 64 { |
| 3380 | return ErrIntOverflowGenerated |
| 3381 | } |
| 3382 | if iNdEx >= l { |
| 3383 | return io.ErrUnexpectedEOF |
| 3384 | } |
| 3385 | b := dAtA[iNdEx] |
| 3386 | iNdEx++ |
| 3387 | msglen |= int(b&0x7F) << shift |
| 3388 | if b < 0x80 { |
| 3389 | break |
| 3390 | } |
| 3391 | } |
| 3392 | if msglen < 0 { |
| 3393 | return ErrInvalidLengthGenerated |
| 3394 | } |
| 3395 | postIndex := iNdEx + msglen |
| 3396 | if postIndex < 0 { |
| 3397 | return ErrInvalidLengthGenerated |
| 3398 | } |
| 3399 | if postIndex > l { |
| 3400 | return io.ErrUnexpectedEOF |
| 3401 | } |
| 3402 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3403 | return err |
| 3404 | } |
| 3405 | iNdEx = postIndex |
| 3406 | case 2: |
| 3407 | if wireType != 2 { |
| 3408 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 3409 | } |
| 3410 | var msglen int |
| 3411 | for shift := uint(0); ; shift += 7 { |
| 3412 | if shift >= 64 { |
| 3413 | return ErrIntOverflowGenerated |
| 3414 | } |
| 3415 | if iNdEx >= l { |
| 3416 | return io.ErrUnexpectedEOF |
| 3417 | } |
| 3418 | b := dAtA[iNdEx] |
| 3419 | iNdEx++ |
| 3420 | msglen |= int(b&0x7F) << shift |
| 3421 | if b < 0x80 { |
| 3422 | break |
| 3423 | } |
| 3424 | } |
| 3425 | if msglen < 0 { |
| 3426 | return ErrInvalidLengthGenerated |
| 3427 | } |
| 3428 | postIndex := iNdEx + msglen |
| 3429 | if postIndex < 0 { |
| 3430 | return ErrInvalidLengthGenerated |
| 3431 | } |
| 3432 | if postIndex > l { |
| 3433 | return io.ErrUnexpectedEOF |
| 3434 | } |
| 3435 | m.Items = append(m.Items, IngressClass{}) |
| 3436 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3437 | return err |
| 3438 | } |
| 3439 | iNdEx = postIndex |
| 3440 | default: |
| 3441 | iNdEx = preIndex |
| 3442 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3443 | if err != nil { |
| 3444 | return err |
| 3445 | } |
| 3446 | if skippy < 0 { |
| 3447 | return ErrInvalidLengthGenerated |
| 3448 | } |
| 3449 | if (iNdEx + skippy) < 0 { |
| 3450 | return ErrInvalidLengthGenerated |
| 3451 | } |
| 3452 | if (iNdEx + skippy) > l { |
| 3453 | return io.ErrUnexpectedEOF |
| 3454 | } |
| 3455 | iNdEx += skippy |
| 3456 | } |
| 3457 | } |
| 3458 | |
| 3459 | if iNdEx > l { |
| 3460 | return io.ErrUnexpectedEOF |
| 3461 | } |
| 3462 | return nil |
| 3463 | } |
| 3464 | func (m *IngressClassSpec) Unmarshal(dAtA []byte) error { |
| 3465 | l := len(dAtA) |
| 3466 | iNdEx := 0 |
| 3467 | for iNdEx < l { |
| 3468 | preIndex := iNdEx |
| 3469 | var wire uint64 |
| 3470 | for shift := uint(0); ; shift += 7 { |
| 3471 | if shift >= 64 { |
| 3472 | return ErrIntOverflowGenerated |
| 3473 | } |
| 3474 | if iNdEx >= l { |
| 3475 | return io.ErrUnexpectedEOF |
| 3476 | } |
| 3477 | b := dAtA[iNdEx] |
| 3478 | iNdEx++ |
| 3479 | wire |= uint64(b&0x7F) << shift |
| 3480 | if b < 0x80 { |
| 3481 | break |
| 3482 | } |
| 3483 | } |
| 3484 | fieldNum := int32(wire >> 3) |
| 3485 | wireType := int(wire & 0x7) |
| 3486 | if wireType == 4 { |
| 3487 | return fmt.Errorf("proto: IngressClassSpec: wiretype end group for non-group") |
| 3488 | } |
| 3489 | if fieldNum <= 0 { |
| 3490 | return fmt.Errorf("proto: IngressClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3491 | } |
| 3492 | switch fieldNum { |
| 3493 | case 1: |
| 3494 | if wireType != 2 { |
| 3495 | return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) |
| 3496 | } |
| 3497 | var stringLen uint64 |
| 3498 | for shift := uint(0); ; shift += 7 { |
| 3499 | if shift >= 64 { |
| 3500 | return ErrIntOverflowGenerated |
| 3501 | } |
| 3502 | if iNdEx >= l { |
| 3503 | return io.ErrUnexpectedEOF |
| 3504 | } |
| 3505 | b := dAtA[iNdEx] |
| 3506 | iNdEx++ |
| 3507 | stringLen |= uint64(b&0x7F) << shift |
| 3508 | if b < 0x80 { |
| 3509 | break |
| 3510 | } |
| 3511 | } |
| 3512 | intStringLen := int(stringLen) |
| 3513 | if intStringLen < 0 { |
| 3514 | return ErrInvalidLengthGenerated |
| 3515 | } |
| 3516 | postIndex := iNdEx + intStringLen |
| 3517 | if postIndex < 0 { |
| 3518 | return ErrInvalidLengthGenerated |
| 3519 | } |
| 3520 | if postIndex > l { |
| 3521 | return io.ErrUnexpectedEOF |
| 3522 | } |
| 3523 | m.Controller = string(dAtA[iNdEx:postIndex]) |
| 3524 | iNdEx = postIndex |
| 3525 | case 2: |
| 3526 | if wireType != 2 { |
| 3527 | return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) |
| 3528 | } |
| 3529 | var msglen int |
| 3530 | for shift := uint(0); ; shift += 7 { |
| 3531 | if shift >= 64 { |
| 3532 | return ErrIntOverflowGenerated |
| 3533 | } |
| 3534 | if iNdEx >= l { |
| 3535 | return io.ErrUnexpectedEOF |
| 3536 | } |
| 3537 | b := dAtA[iNdEx] |
| 3538 | iNdEx++ |
| 3539 | msglen |= int(b&0x7F) << shift |
| 3540 | if b < 0x80 { |
| 3541 | break |
| 3542 | } |
| 3543 | } |
| 3544 | if msglen < 0 { |
| 3545 | return ErrInvalidLengthGenerated |
| 3546 | } |
| 3547 | postIndex := iNdEx + msglen |
| 3548 | if postIndex < 0 { |
| 3549 | return ErrInvalidLengthGenerated |
| 3550 | } |
| 3551 | if postIndex > l { |
| 3552 | return io.ErrUnexpectedEOF |
| 3553 | } |
| 3554 | if m.Parameters == nil { |
| 3555 | m.Parameters = &v11.TypedLocalObjectReference{} |
| 3556 | } |
| 3557 | if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3558 | return err |
| 3559 | } |
| 3560 | iNdEx = postIndex |
| 3561 | default: |
| 3562 | iNdEx = preIndex |
| 3563 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3564 | if err != nil { |
| 3565 | return err |
| 3566 | } |
| 3567 | if skippy < 0 { |
| 3568 | return ErrInvalidLengthGenerated |
| 3569 | } |
| 3570 | if (iNdEx + skippy) < 0 { |
| 3571 | return ErrInvalidLengthGenerated |
| 3572 | } |
| 3573 | if (iNdEx + skippy) > l { |
| 3574 | return io.ErrUnexpectedEOF |
| 3575 | } |
| 3576 | iNdEx += skippy |
| 3577 | } |
| 3578 | } |
| 3579 | |
| 3580 | if iNdEx > l { |
| 3581 | return io.ErrUnexpectedEOF |
| 3582 | } |
| 3583 | return nil |
| 3584 | } |
| 3585 | func (m *IngressList) Unmarshal(dAtA []byte) error { |
| 3586 | l := len(dAtA) |
| 3587 | iNdEx := 0 |
| 3588 | for iNdEx < l { |
| 3589 | preIndex := iNdEx |
| 3590 | var wire uint64 |
| 3591 | for shift := uint(0); ; shift += 7 { |
| 3592 | if shift >= 64 { |
| 3593 | return ErrIntOverflowGenerated |
| 3594 | } |
| 3595 | if iNdEx >= l { |
| 3596 | return io.ErrUnexpectedEOF |
| 3597 | } |
| 3598 | b := dAtA[iNdEx] |
| 3599 | iNdEx++ |
| 3600 | wire |= uint64(b&0x7F) << shift |
| 3601 | if b < 0x80 { |
| 3602 | break |
| 3603 | } |
| 3604 | } |
| 3605 | fieldNum := int32(wire >> 3) |
| 3606 | wireType := int(wire & 0x7) |
| 3607 | if wireType == 4 { |
| 3608 | return fmt.Errorf("proto: IngressList: wiretype end group for non-group") |
| 3609 | } |
| 3610 | if fieldNum <= 0 { |
| 3611 | return fmt.Errorf("proto: IngressList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3612 | } |
| 3613 | switch fieldNum { |
| 3614 | case 1: |
| 3615 | if wireType != 2 { |
| 3616 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 3617 | } |
| 3618 | var msglen int |
| 3619 | for shift := uint(0); ; shift += 7 { |
| 3620 | if shift >= 64 { |
| 3621 | return ErrIntOverflowGenerated |
| 3622 | } |
| 3623 | if iNdEx >= l { |
| 3624 | return io.ErrUnexpectedEOF |
| 3625 | } |
| 3626 | b := dAtA[iNdEx] |
| 3627 | iNdEx++ |
| 3628 | msglen |= int(b&0x7F) << shift |
| 3629 | if b < 0x80 { |
| 3630 | break |
| 3631 | } |
| 3632 | } |
| 3633 | if msglen < 0 { |
| 3634 | return ErrInvalidLengthGenerated |
| 3635 | } |
| 3636 | postIndex := iNdEx + msglen |
| 3637 | if postIndex < 0 { |
| 3638 | return ErrInvalidLengthGenerated |
| 3639 | } |
| 3640 | if postIndex > l { |
| 3641 | return io.ErrUnexpectedEOF |
| 3642 | } |
| 3643 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3644 | return err |
| 3645 | } |
| 3646 | iNdEx = postIndex |
| 3647 | case 2: |
| 3648 | if wireType != 2 { |
| 3649 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 3650 | } |
| 3651 | var msglen int |
| 3652 | for shift := uint(0); ; shift += 7 { |
| 3653 | if shift >= 64 { |
| 3654 | return ErrIntOverflowGenerated |
| 3655 | } |
| 3656 | if iNdEx >= l { |
| 3657 | return io.ErrUnexpectedEOF |
| 3658 | } |
| 3659 | b := dAtA[iNdEx] |
| 3660 | iNdEx++ |
| 3661 | msglen |= int(b&0x7F) << shift |
| 3662 | if b < 0x80 { |
| 3663 | break |
| 3664 | } |
| 3665 | } |
| 3666 | if msglen < 0 { |
| 3667 | return ErrInvalidLengthGenerated |
| 3668 | } |
| 3669 | postIndex := iNdEx + msglen |
| 3670 | if postIndex < 0 { |
| 3671 | return ErrInvalidLengthGenerated |
| 3672 | } |
| 3673 | if postIndex > l { |
| 3674 | return io.ErrUnexpectedEOF |
| 3675 | } |
| 3676 | m.Items = append(m.Items, Ingress{}) |
| 3677 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3678 | return err |
| 3679 | } |
| 3680 | iNdEx = postIndex |
| 3681 | default: |
| 3682 | iNdEx = preIndex |
| 3683 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3684 | if err != nil { |
| 3685 | return err |
| 3686 | } |
| 3687 | if skippy < 0 { |
| 3688 | return ErrInvalidLengthGenerated |
| 3689 | } |
| 3690 | if (iNdEx + skippy) < 0 { |
| 3691 | return ErrInvalidLengthGenerated |
| 3692 | } |
| 3693 | if (iNdEx + skippy) > l { |
| 3694 | return io.ErrUnexpectedEOF |
| 3695 | } |
| 3696 | iNdEx += skippy |
| 3697 | } |
| 3698 | } |
| 3699 | |
| 3700 | if iNdEx > l { |
| 3701 | return io.ErrUnexpectedEOF |
| 3702 | } |
| 3703 | return nil |
| 3704 | } |
| 3705 | func (m *IngressRule) Unmarshal(dAtA []byte) error { |
| 3706 | l := len(dAtA) |
| 3707 | iNdEx := 0 |
| 3708 | for iNdEx < l { |
| 3709 | preIndex := iNdEx |
| 3710 | var wire uint64 |
| 3711 | for shift := uint(0); ; shift += 7 { |
| 3712 | if shift >= 64 { |
| 3713 | return ErrIntOverflowGenerated |
| 3714 | } |
| 3715 | if iNdEx >= l { |
| 3716 | return io.ErrUnexpectedEOF |
| 3717 | } |
| 3718 | b := dAtA[iNdEx] |
| 3719 | iNdEx++ |
| 3720 | wire |= uint64(b&0x7F) << shift |
| 3721 | if b < 0x80 { |
| 3722 | break |
| 3723 | } |
| 3724 | } |
| 3725 | fieldNum := int32(wire >> 3) |
| 3726 | wireType := int(wire & 0x7) |
| 3727 | if wireType == 4 { |
| 3728 | return fmt.Errorf("proto: IngressRule: wiretype end group for non-group") |
| 3729 | } |
| 3730 | if fieldNum <= 0 { |
| 3731 | return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3732 | } |
| 3733 | switch fieldNum { |
| 3734 | case 1: |
| 3735 | if wireType != 2 { |
| 3736 | return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) |
| 3737 | } |
| 3738 | var stringLen uint64 |
| 3739 | for shift := uint(0); ; shift += 7 { |
| 3740 | if shift >= 64 { |
| 3741 | return ErrIntOverflowGenerated |
| 3742 | } |
| 3743 | if iNdEx >= l { |
| 3744 | return io.ErrUnexpectedEOF |
| 3745 | } |
| 3746 | b := dAtA[iNdEx] |
| 3747 | iNdEx++ |
| 3748 | stringLen |= uint64(b&0x7F) << shift |
| 3749 | if b < 0x80 { |
| 3750 | break |
| 3751 | } |
| 3752 | } |
| 3753 | intStringLen := int(stringLen) |
| 3754 | if intStringLen < 0 { |
| 3755 | return ErrInvalidLengthGenerated |
| 3756 | } |
| 3757 | postIndex := iNdEx + intStringLen |
| 3758 | if postIndex < 0 { |
| 3759 | return ErrInvalidLengthGenerated |
| 3760 | } |
| 3761 | if postIndex > l { |
| 3762 | return io.ErrUnexpectedEOF |
| 3763 | } |
| 3764 | m.Host = string(dAtA[iNdEx:postIndex]) |
| 3765 | iNdEx = postIndex |
| 3766 | case 2: |
| 3767 | if wireType != 2 { |
| 3768 | return fmt.Errorf("proto: wrong wireType = %d for field IngressRuleValue", wireType) |
| 3769 | } |
| 3770 | var msglen int |
| 3771 | for shift := uint(0); ; shift += 7 { |
| 3772 | if shift >= 64 { |
| 3773 | return ErrIntOverflowGenerated |
| 3774 | } |
| 3775 | if iNdEx >= l { |
| 3776 | return io.ErrUnexpectedEOF |
| 3777 | } |
| 3778 | b := dAtA[iNdEx] |
| 3779 | iNdEx++ |
| 3780 | msglen |= int(b&0x7F) << shift |
| 3781 | if b < 0x80 { |
| 3782 | break |
| 3783 | } |
| 3784 | } |
| 3785 | if msglen < 0 { |
| 3786 | return ErrInvalidLengthGenerated |
| 3787 | } |
| 3788 | postIndex := iNdEx + msglen |
| 3789 | if postIndex < 0 { |
| 3790 | return ErrInvalidLengthGenerated |
| 3791 | } |
| 3792 | if postIndex > l { |
| 3793 | return io.ErrUnexpectedEOF |
| 3794 | } |
| 3795 | if err := m.IngressRuleValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3796 | return err |
| 3797 | } |
| 3798 | iNdEx = postIndex |
| 3799 | default: |
| 3800 | iNdEx = preIndex |
| 3801 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3802 | if err != nil { |
| 3803 | return err |
| 3804 | } |
| 3805 | if skippy < 0 { |
| 3806 | return ErrInvalidLengthGenerated |
| 3807 | } |
| 3808 | if (iNdEx + skippy) < 0 { |
| 3809 | return ErrInvalidLengthGenerated |
| 3810 | } |
| 3811 | if (iNdEx + skippy) > l { |
| 3812 | return io.ErrUnexpectedEOF |
| 3813 | } |
| 3814 | iNdEx += skippy |
| 3815 | } |
| 3816 | } |
| 3817 | |
| 3818 | if iNdEx > l { |
| 3819 | return io.ErrUnexpectedEOF |
| 3820 | } |
| 3821 | return nil |
| 3822 | } |
| 3823 | func (m *IngressRuleValue) Unmarshal(dAtA []byte) error { |
| 3824 | l := len(dAtA) |
| 3825 | iNdEx := 0 |
| 3826 | for iNdEx < l { |
| 3827 | preIndex := iNdEx |
| 3828 | var wire uint64 |
| 3829 | for shift := uint(0); ; shift += 7 { |
| 3830 | if shift >= 64 { |
| 3831 | return ErrIntOverflowGenerated |
| 3832 | } |
| 3833 | if iNdEx >= l { |
| 3834 | return io.ErrUnexpectedEOF |
| 3835 | } |
| 3836 | b := dAtA[iNdEx] |
| 3837 | iNdEx++ |
| 3838 | wire |= uint64(b&0x7F) << shift |
| 3839 | if b < 0x80 { |
| 3840 | break |
| 3841 | } |
| 3842 | } |
| 3843 | fieldNum := int32(wire >> 3) |
| 3844 | wireType := int(wire & 0x7) |
| 3845 | if wireType == 4 { |
| 3846 | return fmt.Errorf("proto: IngressRuleValue: wiretype end group for non-group") |
| 3847 | } |
| 3848 | if fieldNum <= 0 { |
| 3849 | return fmt.Errorf("proto: IngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3850 | } |
| 3851 | switch fieldNum { |
| 3852 | case 1: |
| 3853 | if wireType != 2 { |
| 3854 | return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType) |
| 3855 | } |
| 3856 | var msglen int |
| 3857 | for shift := uint(0); ; shift += 7 { |
| 3858 | if shift >= 64 { |
| 3859 | return ErrIntOverflowGenerated |
| 3860 | } |
| 3861 | if iNdEx >= l { |
| 3862 | return io.ErrUnexpectedEOF |
| 3863 | } |
| 3864 | b := dAtA[iNdEx] |
| 3865 | iNdEx++ |
| 3866 | msglen |= int(b&0x7F) << shift |
| 3867 | if b < 0x80 { |
| 3868 | break |
| 3869 | } |
| 3870 | } |
| 3871 | if msglen < 0 { |
| 3872 | return ErrInvalidLengthGenerated |
| 3873 | } |
| 3874 | postIndex := iNdEx + msglen |
| 3875 | if postIndex < 0 { |
| 3876 | return ErrInvalidLengthGenerated |
| 3877 | } |
| 3878 | if postIndex > l { |
| 3879 | return io.ErrUnexpectedEOF |
| 3880 | } |
| 3881 | if m.HTTP == nil { |
| 3882 | m.HTTP = &HTTPIngressRuleValue{} |
| 3883 | } |
| 3884 | if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3885 | return err |
| 3886 | } |
| 3887 | iNdEx = postIndex |
| 3888 | default: |
| 3889 | iNdEx = preIndex |
| 3890 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3891 | if err != nil { |
| 3892 | return err |
| 3893 | } |
| 3894 | if skippy < 0 { |
| 3895 | return ErrInvalidLengthGenerated |
| 3896 | } |
| 3897 | if (iNdEx + skippy) < 0 { |
| 3898 | return ErrInvalidLengthGenerated |
| 3899 | } |
| 3900 | if (iNdEx + skippy) > l { |
| 3901 | return io.ErrUnexpectedEOF |
| 3902 | } |
| 3903 | iNdEx += skippy |
| 3904 | } |
| 3905 | } |
| 3906 | |
| 3907 | if iNdEx > l { |
| 3908 | return io.ErrUnexpectedEOF |
| 3909 | } |
| 3910 | return nil |
| 3911 | } |
| 3912 | func (m *IngressServiceBackend) Unmarshal(dAtA []byte) error { |
| 3913 | l := len(dAtA) |
| 3914 | iNdEx := 0 |
| 3915 | for iNdEx < l { |
| 3916 | preIndex := iNdEx |
| 3917 | var wire uint64 |
| 3918 | for shift := uint(0); ; shift += 7 { |
| 3919 | if shift >= 64 { |
| 3920 | return ErrIntOverflowGenerated |
| 3921 | } |
| 3922 | if iNdEx >= l { |
| 3923 | return io.ErrUnexpectedEOF |
| 3924 | } |
| 3925 | b := dAtA[iNdEx] |
| 3926 | iNdEx++ |
| 3927 | wire |= uint64(b&0x7F) << shift |
| 3928 | if b < 0x80 { |
| 3929 | break |
| 3930 | } |
| 3931 | } |
| 3932 | fieldNum := int32(wire >> 3) |
| 3933 | wireType := int(wire & 0x7) |
| 3934 | if wireType == 4 { |
| 3935 | return fmt.Errorf("proto: IngressServiceBackend: wiretype end group for non-group") |
| 3936 | } |
| 3937 | if fieldNum <= 0 { |
| 3938 | return fmt.Errorf("proto: IngressServiceBackend: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3939 | } |
| 3940 | switch fieldNum { |
| 3941 | case 1: |
| 3942 | if wireType != 2 { |
| 3943 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 3944 | } |
| 3945 | var stringLen uint64 |
| 3946 | for shift := uint(0); ; shift += 7 { |
| 3947 | if shift >= 64 { |
| 3948 | return ErrIntOverflowGenerated |
| 3949 | } |
| 3950 | if iNdEx >= l { |
| 3951 | return io.ErrUnexpectedEOF |
| 3952 | } |
| 3953 | b := dAtA[iNdEx] |
| 3954 | iNdEx++ |
| 3955 | stringLen |= uint64(b&0x7F) << shift |
| 3956 | if b < 0x80 { |
| 3957 | break |
| 3958 | } |
| 3959 | } |
| 3960 | intStringLen := int(stringLen) |
| 3961 | if intStringLen < 0 { |
| 3962 | return ErrInvalidLengthGenerated |
| 3963 | } |
| 3964 | postIndex := iNdEx + intStringLen |
| 3965 | if postIndex < 0 { |
| 3966 | return ErrInvalidLengthGenerated |
| 3967 | } |
| 3968 | if postIndex > l { |
| 3969 | return io.ErrUnexpectedEOF |
| 3970 | } |
| 3971 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 3972 | iNdEx = postIndex |
| 3973 | case 2: |
| 3974 | if wireType != 2 { |
| 3975 | return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) |
| 3976 | } |
| 3977 | var msglen int |
| 3978 | for shift := uint(0); ; shift += 7 { |
| 3979 | if shift >= 64 { |
| 3980 | return ErrIntOverflowGenerated |
| 3981 | } |
| 3982 | if iNdEx >= l { |
| 3983 | return io.ErrUnexpectedEOF |
| 3984 | } |
| 3985 | b := dAtA[iNdEx] |
| 3986 | iNdEx++ |
| 3987 | msglen |= int(b&0x7F) << shift |
| 3988 | if b < 0x80 { |
| 3989 | break |
| 3990 | } |
| 3991 | } |
| 3992 | if msglen < 0 { |
| 3993 | return ErrInvalidLengthGenerated |
| 3994 | } |
| 3995 | postIndex := iNdEx + msglen |
| 3996 | if postIndex < 0 { |
| 3997 | return ErrInvalidLengthGenerated |
| 3998 | } |
| 3999 | if postIndex > l { |
| 4000 | return io.ErrUnexpectedEOF |
| 4001 | } |
| 4002 | if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4003 | return err |
| 4004 | } |
| 4005 | iNdEx = postIndex |
| 4006 | default: |
| 4007 | iNdEx = preIndex |
| 4008 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4009 | if err != nil { |
| 4010 | return err |
| 4011 | } |
| 4012 | if skippy < 0 { |
| 4013 | return ErrInvalidLengthGenerated |
| 4014 | } |
| 4015 | if (iNdEx + skippy) < 0 { |
| 4016 | return ErrInvalidLengthGenerated |
| 4017 | } |
| 4018 | if (iNdEx + skippy) > l { |
| 4019 | return io.ErrUnexpectedEOF |
| 4020 | } |
| 4021 | iNdEx += skippy |
| 4022 | } |
| 4023 | } |
| 4024 | |
| 4025 | if iNdEx > l { |
| 4026 | return io.ErrUnexpectedEOF |
| 4027 | } |
| 4028 | return nil |
| 4029 | } |
| 4030 | func (m *IngressSpec) Unmarshal(dAtA []byte) error { |
| 4031 | l := len(dAtA) |
| 4032 | iNdEx := 0 |
| 4033 | for iNdEx < l { |
| 4034 | preIndex := iNdEx |
| 4035 | var wire uint64 |
| 4036 | for shift := uint(0); ; shift += 7 { |
| 4037 | if shift >= 64 { |
| 4038 | return ErrIntOverflowGenerated |
| 4039 | } |
| 4040 | if iNdEx >= l { |
| 4041 | return io.ErrUnexpectedEOF |
| 4042 | } |
| 4043 | b := dAtA[iNdEx] |
| 4044 | iNdEx++ |
| 4045 | wire |= uint64(b&0x7F) << shift |
| 4046 | if b < 0x80 { |
| 4047 | break |
| 4048 | } |
| 4049 | } |
| 4050 | fieldNum := int32(wire >> 3) |
| 4051 | wireType := int(wire & 0x7) |
| 4052 | if wireType == 4 { |
| 4053 | return fmt.Errorf("proto: IngressSpec: wiretype end group for non-group") |
| 4054 | } |
| 4055 | if fieldNum <= 0 { |
| 4056 | return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4057 | } |
| 4058 | switch fieldNum { |
| 4059 | case 1: |
| 4060 | if wireType != 2 { |
| 4061 | return fmt.Errorf("proto: wrong wireType = %d for field DefaultBackend", wireType) |
| 4062 | } |
| 4063 | var msglen int |
| 4064 | for shift := uint(0); ; shift += 7 { |
| 4065 | if shift >= 64 { |
| 4066 | return ErrIntOverflowGenerated |
| 4067 | } |
| 4068 | if iNdEx >= l { |
| 4069 | return io.ErrUnexpectedEOF |
| 4070 | } |
| 4071 | b := dAtA[iNdEx] |
| 4072 | iNdEx++ |
| 4073 | msglen |= int(b&0x7F) << shift |
| 4074 | if b < 0x80 { |
| 4075 | break |
| 4076 | } |
| 4077 | } |
| 4078 | if msglen < 0 { |
| 4079 | return ErrInvalidLengthGenerated |
| 4080 | } |
| 4081 | postIndex := iNdEx + msglen |
| 4082 | if postIndex < 0 { |
| 4083 | return ErrInvalidLengthGenerated |
| 4084 | } |
| 4085 | if postIndex > l { |
| 4086 | return io.ErrUnexpectedEOF |
| 4087 | } |
| 4088 | if m.DefaultBackend == nil { |
| 4089 | m.DefaultBackend = &IngressBackend{} |
| 4090 | } |
| 4091 | if err := m.DefaultBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4092 | return err |
| 4093 | } |
| 4094 | iNdEx = postIndex |
| 4095 | case 2: |
| 4096 | if wireType != 2 { |
| 4097 | return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType) |
| 4098 | } |
| 4099 | var msglen int |
| 4100 | for shift := uint(0); ; shift += 7 { |
| 4101 | if shift >= 64 { |
| 4102 | return ErrIntOverflowGenerated |
| 4103 | } |
| 4104 | if iNdEx >= l { |
| 4105 | return io.ErrUnexpectedEOF |
| 4106 | } |
| 4107 | b := dAtA[iNdEx] |
| 4108 | iNdEx++ |
| 4109 | msglen |= int(b&0x7F) << shift |
| 4110 | if b < 0x80 { |
| 4111 | break |
| 4112 | } |
| 4113 | } |
| 4114 | if msglen < 0 { |
| 4115 | return ErrInvalidLengthGenerated |
| 4116 | } |
| 4117 | postIndex := iNdEx + msglen |
| 4118 | if postIndex < 0 { |
| 4119 | return ErrInvalidLengthGenerated |
| 4120 | } |
| 4121 | if postIndex > l { |
| 4122 | return io.ErrUnexpectedEOF |
| 4123 | } |
| 4124 | m.TLS = append(m.TLS, IngressTLS{}) |
| 4125 | if err := m.TLS[len(m.TLS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4126 | return err |
| 4127 | } |
| 4128 | iNdEx = postIndex |
| 4129 | case 3: |
| 4130 | if wireType != 2 { |
| 4131 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 4132 | } |
| 4133 | var msglen int |
| 4134 | for shift := uint(0); ; shift += 7 { |
| 4135 | if shift >= 64 { |
| 4136 | return ErrIntOverflowGenerated |
| 4137 | } |
| 4138 | if iNdEx >= l { |
| 4139 | return io.ErrUnexpectedEOF |
| 4140 | } |
| 4141 | b := dAtA[iNdEx] |
| 4142 | iNdEx++ |
| 4143 | msglen |= int(b&0x7F) << shift |
| 4144 | if b < 0x80 { |
| 4145 | break |
| 4146 | } |
| 4147 | } |
| 4148 | if msglen < 0 { |
| 4149 | return ErrInvalidLengthGenerated |
| 4150 | } |
| 4151 | postIndex := iNdEx + msglen |
| 4152 | if postIndex < 0 { |
| 4153 | return ErrInvalidLengthGenerated |
| 4154 | } |
| 4155 | if postIndex > l { |
| 4156 | return io.ErrUnexpectedEOF |
| 4157 | } |
| 4158 | m.Rules = append(m.Rules, IngressRule{}) |
| 4159 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4160 | return err |
| 4161 | } |
| 4162 | iNdEx = postIndex |
| 4163 | case 4: |
| 4164 | if wireType != 2 { |
| 4165 | return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) |
| 4166 | } |
| 4167 | var stringLen uint64 |
| 4168 | for shift := uint(0); ; shift += 7 { |
| 4169 | if shift >= 64 { |
| 4170 | return ErrIntOverflowGenerated |
| 4171 | } |
| 4172 | if iNdEx >= l { |
| 4173 | return io.ErrUnexpectedEOF |
| 4174 | } |
| 4175 | b := dAtA[iNdEx] |
| 4176 | iNdEx++ |
| 4177 | stringLen |= uint64(b&0x7F) << shift |
| 4178 | if b < 0x80 { |
| 4179 | break |
| 4180 | } |
| 4181 | } |
| 4182 | intStringLen := int(stringLen) |
| 4183 | if intStringLen < 0 { |
| 4184 | return ErrInvalidLengthGenerated |
| 4185 | } |
| 4186 | postIndex := iNdEx + intStringLen |
| 4187 | if postIndex < 0 { |
| 4188 | return ErrInvalidLengthGenerated |
| 4189 | } |
| 4190 | if postIndex > l { |
| 4191 | return io.ErrUnexpectedEOF |
| 4192 | } |
| 4193 | s := string(dAtA[iNdEx:postIndex]) |
| 4194 | m.IngressClassName = &s |
| 4195 | iNdEx = postIndex |
| 4196 | default: |
| 4197 | iNdEx = preIndex |
| 4198 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4199 | if err != nil { |
| 4200 | return err |
| 4201 | } |
| 4202 | if skippy < 0 { |
| 4203 | return ErrInvalidLengthGenerated |
| 4204 | } |
| 4205 | if (iNdEx + skippy) < 0 { |
| 4206 | return ErrInvalidLengthGenerated |
| 4207 | } |
| 4208 | if (iNdEx + skippy) > l { |
| 4209 | return io.ErrUnexpectedEOF |
| 4210 | } |
| 4211 | iNdEx += skippy |
| 4212 | } |
| 4213 | } |
| 4214 | |
| 4215 | if iNdEx > l { |
| 4216 | return io.ErrUnexpectedEOF |
| 4217 | } |
| 4218 | return nil |
| 4219 | } |
| 4220 | func (m *IngressStatus) Unmarshal(dAtA []byte) error { |
| 4221 | l := len(dAtA) |
| 4222 | iNdEx := 0 |
| 4223 | for iNdEx < l { |
| 4224 | preIndex := iNdEx |
| 4225 | var wire uint64 |
| 4226 | for shift := uint(0); ; shift += 7 { |
| 4227 | if shift >= 64 { |
| 4228 | return ErrIntOverflowGenerated |
| 4229 | } |
| 4230 | if iNdEx >= l { |
| 4231 | return io.ErrUnexpectedEOF |
| 4232 | } |
| 4233 | b := dAtA[iNdEx] |
| 4234 | iNdEx++ |
| 4235 | wire |= uint64(b&0x7F) << shift |
| 4236 | if b < 0x80 { |
| 4237 | break |
| 4238 | } |
| 4239 | } |
| 4240 | fieldNum := int32(wire >> 3) |
| 4241 | wireType := int(wire & 0x7) |
| 4242 | if wireType == 4 { |
| 4243 | return fmt.Errorf("proto: IngressStatus: wiretype end group for non-group") |
| 4244 | } |
| 4245 | if fieldNum <= 0 { |
| 4246 | return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4247 | } |
| 4248 | switch fieldNum { |
| 4249 | case 1: |
| 4250 | if wireType != 2 { |
| 4251 | return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType) |
| 4252 | } |
| 4253 | var msglen int |
| 4254 | for shift := uint(0); ; shift += 7 { |
| 4255 | if shift >= 64 { |
| 4256 | return ErrIntOverflowGenerated |
| 4257 | } |
| 4258 | if iNdEx >= l { |
| 4259 | return io.ErrUnexpectedEOF |
| 4260 | } |
| 4261 | b := dAtA[iNdEx] |
| 4262 | iNdEx++ |
| 4263 | msglen |= int(b&0x7F) << shift |
| 4264 | if b < 0x80 { |
| 4265 | break |
| 4266 | } |
| 4267 | } |
| 4268 | if msglen < 0 { |
| 4269 | return ErrInvalidLengthGenerated |
| 4270 | } |
| 4271 | postIndex := iNdEx + msglen |
| 4272 | if postIndex < 0 { |
| 4273 | return ErrInvalidLengthGenerated |
| 4274 | } |
| 4275 | if postIndex > l { |
| 4276 | return io.ErrUnexpectedEOF |
| 4277 | } |
| 4278 | if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4279 | return err |
| 4280 | } |
| 4281 | iNdEx = postIndex |
| 4282 | default: |
| 4283 | iNdEx = preIndex |
| 4284 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4285 | if err != nil { |
| 4286 | return err |
| 4287 | } |
| 4288 | if skippy < 0 { |
| 4289 | return ErrInvalidLengthGenerated |
| 4290 | } |
| 4291 | if (iNdEx + skippy) < 0 { |
| 4292 | return ErrInvalidLengthGenerated |
| 4293 | } |
| 4294 | if (iNdEx + skippy) > l { |
| 4295 | return io.ErrUnexpectedEOF |
| 4296 | } |
| 4297 | iNdEx += skippy |
| 4298 | } |
| 4299 | } |
| 4300 | |
| 4301 | if iNdEx > l { |
| 4302 | return io.ErrUnexpectedEOF |
| 4303 | } |
| 4304 | return nil |
| 4305 | } |
| 4306 | func (m *IngressTLS) Unmarshal(dAtA []byte) error { |
| 4307 | l := len(dAtA) |
| 4308 | iNdEx := 0 |
| 4309 | for iNdEx < l { |
| 4310 | preIndex := iNdEx |
| 4311 | var wire uint64 |
| 4312 | for shift := uint(0); ; shift += 7 { |
| 4313 | if shift >= 64 { |
| 4314 | return ErrIntOverflowGenerated |
| 4315 | } |
| 4316 | if iNdEx >= l { |
| 4317 | return io.ErrUnexpectedEOF |
| 4318 | } |
| 4319 | b := dAtA[iNdEx] |
| 4320 | iNdEx++ |
| 4321 | wire |= uint64(b&0x7F) << shift |
| 4322 | if b < 0x80 { |
| 4323 | break |
| 4324 | } |
| 4325 | } |
| 4326 | fieldNum := int32(wire >> 3) |
| 4327 | wireType := int(wire & 0x7) |
| 4328 | if wireType == 4 { |
| 4329 | return fmt.Errorf("proto: IngressTLS: wiretype end group for non-group") |
| 4330 | } |
| 4331 | if fieldNum <= 0 { |
| 4332 | return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4333 | } |
| 4334 | switch fieldNum { |
| 4335 | case 1: |
| 4336 | if wireType != 2 { |
| 4337 | return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType) |
| 4338 | } |
| 4339 | var stringLen uint64 |
| 4340 | for shift := uint(0); ; shift += 7 { |
| 4341 | if shift >= 64 { |
| 4342 | return ErrIntOverflowGenerated |
| 4343 | } |
| 4344 | if iNdEx >= l { |
| 4345 | return io.ErrUnexpectedEOF |
| 4346 | } |
| 4347 | b := dAtA[iNdEx] |
| 4348 | iNdEx++ |
| 4349 | stringLen |= uint64(b&0x7F) << shift |
| 4350 | if b < 0x80 { |
| 4351 | break |
| 4352 | } |
| 4353 | } |
| 4354 | intStringLen := int(stringLen) |
| 4355 | if intStringLen < 0 { |
| 4356 | return ErrInvalidLengthGenerated |
| 4357 | } |
| 4358 | postIndex := iNdEx + intStringLen |
| 4359 | if postIndex < 0 { |
| 4360 | return ErrInvalidLengthGenerated |
| 4361 | } |
| 4362 | if postIndex > l { |
| 4363 | return io.ErrUnexpectedEOF |
| 4364 | } |
| 4365 | m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex])) |
| 4366 | iNdEx = postIndex |
| 4367 | case 2: |
| 4368 | if wireType != 2 { |
| 4369 | return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) |
| 4370 | } |
| 4371 | var stringLen uint64 |
| 4372 | for shift := uint(0); ; shift += 7 { |
| 4373 | if shift >= 64 { |
| 4374 | return ErrIntOverflowGenerated |
| 4375 | } |
| 4376 | if iNdEx >= l { |
| 4377 | return io.ErrUnexpectedEOF |
| 4378 | } |
| 4379 | b := dAtA[iNdEx] |
| 4380 | iNdEx++ |
| 4381 | stringLen |= uint64(b&0x7F) << shift |
| 4382 | if b < 0x80 { |
| 4383 | break |
| 4384 | } |
| 4385 | } |
| 4386 | intStringLen := int(stringLen) |
| 4387 | if intStringLen < 0 { |
| 4388 | return ErrInvalidLengthGenerated |
| 4389 | } |
| 4390 | postIndex := iNdEx + intStringLen |
| 4391 | if postIndex < 0 { |
| 4392 | return ErrInvalidLengthGenerated |
| 4393 | } |
| 4394 | if postIndex > l { |
| 4395 | return io.ErrUnexpectedEOF |
| 4396 | } |
| 4397 | m.SecretName = string(dAtA[iNdEx:postIndex]) |
| 4398 | iNdEx = postIndex |
| 4399 | default: |
| 4400 | iNdEx = preIndex |
| 4401 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4402 | if err != nil { |
| 4403 | return err |
| 4404 | } |
| 4405 | if skippy < 0 { |
| 4406 | return ErrInvalidLengthGenerated |
| 4407 | } |
| 4408 | if (iNdEx + skippy) < 0 { |
| 4409 | return ErrInvalidLengthGenerated |
| 4410 | } |
| 4411 | if (iNdEx + skippy) > l { |
| 4412 | return io.ErrUnexpectedEOF |
| 4413 | } |
| 4414 | iNdEx += skippy |
| 4415 | } |
| 4416 | } |
| 4417 | |
| 4418 | if iNdEx > l { |
| 4419 | return io.ErrUnexpectedEOF |
| 4420 | } |
| 4421 | return nil |
| 4422 | } |
| 4423 | func (m *NetworkPolicy) Unmarshal(dAtA []byte) error { |
| 4424 | l := len(dAtA) |
| 4425 | iNdEx := 0 |
| 4426 | for iNdEx < l { |
| 4427 | preIndex := iNdEx |
| 4428 | var wire uint64 |
| 4429 | for shift := uint(0); ; shift += 7 { |
| 4430 | if shift >= 64 { |
| 4431 | return ErrIntOverflowGenerated |
| 4432 | } |
| 4433 | if iNdEx >= l { |
| 4434 | return io.ErrUnexpectedEOF |
| 4435 | } |
| 4436 | b := dAtA[iNdEx] |
| 4437 | iNdEx++ |
| 4438 | wire |= uint64(b&0x7F) << shift |
| 4439 | if b < 0x80 { |
| 4440 | break |
| 4441 | } |
| 4442 | } |
| 4443 | fieldNum := int32(wire >> 3) |
| 4444 | wireType := int(wire & 0x7) |
| 4445 | if wireType == 4 { |
| 4446 | return fmt.Errorf("proto: NetworkPolicy: wiretype end group for non-group") |
| 4447 | } |
| 4448 | if fieldNum <= 0 { |
| 4449 | return fmt.Errorf("proto: NetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4450 | } |
| 4451 | switch fieldNum { |
| 4452 | case 1: |
| 4453 | if wireType != 2 { |
| 4454 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 4455 | } |
| 4456 | var msglen int |
| 4457 | for shift := uint(0); ; shift += 7 { |
| 4458 | if shift >= 64 { |
| 4459 | return ErrIntOverflowGenerated |
| 4460 | } |
| 4461 | if iNdEx >= l { |
| 4462 | return io.ErrUnexpectedEOF |
| 4463 | } |
| 4464 | b := dAtA[iNdEx] |
| 4465 | iNdEx++ |
| 4466 | msglen |= int(b&0x7F) << shift |
| 4467 | if b < 0x80 { |
| 4468 | break |
| 4469 | } |
| 4470 | } |
| 4471 | if msglen < 0 { |
| 4472 | return ErrInvalidLengthGenerated |
| 4473 | } |
| 4474 | postIndex := iNdEx + msglen |
| 4475 | if postIndex < 0 { |
| 4476 | return ErrInvalidLengthGenerated |
| 4477 | } |
| 4478 | if postIndex > l { |
| 4479 | return io.ErrUnexpectedEOF |
| 4480 | } |
| 4481 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4482 | return err |
| 4483 | } |
| 4484 | iNdEx = postIndex |
| 4485 | case 2: |
| 4486 | if wireType != 2 { |
| 4487 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 4488 | } |
| 4489 | var msglen int |
| 4490 | for shift := uint(0); ; shift += 7 { |
| 4491 | if shift >= 64 { |
| 4492 | return ErrIntOverflowGenerated |
| 4493 | } |
| 4494 | if iNdEx >= l { |
| 4495 | return io.ErrUnexpectedEOF |
| 4496 | } |
| 4497 | b := dAtA[iNdEx] |
| 4498 | iNdEx++ |
| 4499 | msglen |= int(b&0x7F) << shift |
| 4500 | if b < 0x80 { |
| 4501 | break |
| 4502 | } |
| 4503 | } |
| 4504 | if msglen < 0 { |
| 4505 | return ErrInvalidLengthGenerated |
| 4506 | } |
| 4507 | postIndex := iNdEx + msglen |
| 4508 | if postIndex < 0 { |
| 4509 | return ErrInvalidLengthGenerated |
| 4510 | } |
| 4511 | if postIndex > l { |
| 4512 | return io.ErrUnexpectedEOF |
| 4513 | } |
| 4514 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4515 | return err |
| 4516 | } |
| 4517 | iNdEx = postIndex |
| 4518 | default: |
| 4519 | iNdEx = preIndex |
| 4520 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4521 | if err != nil { |
| 4522 | return err |
| 4523 | } |
| 4524 | if skippy < 0 { |
| 4525 | return ErrInvalidLengthGenerated |
| 4526 | } |
| 4527 | if (iNdEx + skippy) < 0 { |
| 4528 | return ErrInvalidLengthGenerated |
| 4529 | } |
| 4530 | if (iNdEx + skippy) > l { |
| 4531 | return io.ErrUnexpectedEOF |
| 4532 | } |
| 4533 | iNdEx += skippy |
| 4534 | } |
| 4535 | } |
| 4536 | |
| 4537 | if iNdEx > l { |
| 4538 | return io.ErrUnexpectedEOF |
| 4539 | } |
| 4540 | return nil |
| 4541 | } |
| 4542 | func (m *NetworkPolicyEgressRule) Unmarshal(dAtA []byte) error { |
| 4543 | l := len(dAtA) |
| 4544 | iNdEx := 0 |
| 4545 | for iNdEx < l { |
| 4546 | preIndex := iNdEx |
| 4547 | var wire uint64 |
| 4548 | for shift := uint(0); ; shift += 7 { |
| 4549 | if shift >= 64 { |
| 4550 | return ErrIntOverflowGenerated |
| 4551 | } |
| 4552 | if iNdEx >= l { |
| 4553 | return io.ErrUnexpectedEOF |
| 4554 | } |
| 4555 | b := dAtA[iNdEx] |
| 4556 | iNdEx++ |
| 4557 | wire |= uint64(b&0x7F) << shift |
| 4558 | if b < 0x80 { |
| 4559 | break |
| 4560 | } |
| 4561 | } |
| 4562 | fieldNum := int32(wire >> 3) |
| 4563 | wireType := int(wire & 0x7) |
| 4564 | if wireType == 4 { |
| 4565 | return fmt.Errorf("proto: NetworkPolicyEgressRule: wiretype end group for non-group") |
| 4566 | } |
| 4567 | if fieldNum <= 0 { |
| 4568 | return fmt.Errorf("proto: NetworkPolicyEgressRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4569 | } |
| 4570 | switch fieldNum { |
| 4571 | case 1: |
| 4572 | if wireType != 2 { |
| 4573 | return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) |
| 4574 | } |
| 4575 | var msglen int |
| 4576 | for shift := uint(0); ; shift += 7 { |
| 4577 | if shift >= 64 { |
| 4578 | return ErrIntOverflowGenerated |
| 4579 | } |
| 4580 | if iNdEx >= l { |
| 4581 | return io.ErrUnexpectedEOF |
| 4582 | } |
| 4583 | b := dAtA[iNdEx] |
| 4584 | iNdEx++ |
| 4585 | msglen |= int(b&0x7F) << shift |
| 4586 | if b < 0x80 { |
| 4587 | break |
| 4588 | } |
| 4589 | } |
| 4590 | if msglen < 0 { |
| 4591 | return ErrInvalidLengthGenerated |
| 4592 | } |
| 4593 | postIndex := iNdEx + msglen |
| 4594 | if postIndex < 0 { |
| 4595 | return ErrInvalidLengthGenerated |
| 4596 | } |
| 4597 | if postIndex > l { |
| 4598 | return io.ErrUnexpectedEOF |
| 4599 | } |
| 4600 | m.Ports = append(m.Ports, NetworkPolicyPort{}) |
| 4601 | if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4602 | return err |
| 4603 | } |
| 4604 | iNdEx = postIndex |
| 4605 | case 2: |
| 4606 | if wireType != 2 { |
| 4607 | return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) |
| 4608 | } |
| 4609 | var msglen int |
| 4610 | for shift := uint(0); ; shift += 7 { |
| 4611 | if shift >= 64 { |
| 4612 | return ErrIntOverflowGenerated |
| 4613 | } |
| 4614 | if iNdEx >= l { |
| 4615 | return io.ErrUnexpectedEOF |
| 4616 | } |
| 4617 | b := dAtA[iNdEx] |
| 4618 | iNdEx++ |
| 4619 | msglen |= int(b&0x7F) << shift |
| 4620 | if b < 0x80 { |
| 4621 | break |
| 4622 | } |
| 4623 | } |
| 4624 | if msglen < 0 { |
| 4625 | return ErrInvalidLengthGenerated |
| 4626 | } |
| 4627 | postIndex := iNdEx + msglen |
| 4628 | if postIndex < 0 { |
| 4629 | return ErrInvalidLengthGenerated |
| 4630 | } |
| 4631 | if postIndex > l { |
| 4632 | return io.ErrUnexpectedEOF |
| 4633 | } |
| 4634 | m.To = append(m.To, NetworkPolicyPeer{}) |
| 4635 | if err := m.To[len(m.To)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4636 | return err |
| 4637 | } |
| 4638 | iNdEx = postIndex |
| 4639 | default: |
| 4640 | iNdEx = preIndex |
| 4641 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4642 | if err != nil { |
| 4643 | return err |
| 4644 | } |
| 4645 | if skippy < 0 { |
| 4646 | return ErrInvalidLengthGenerated |
| 4647 | } |
| 4648 | if (iNdEx + skippy) < 0 { |
| 4649 | return ErrInvalidLengthGenerated |
| 4650 | } |
| 4651 | if (iNdEx + skippy) > l { |
| 4652 | return io.ErrUnexpectedEOF |
| 4653 | } |
| 4654 | iNdEx += skippy |
| 4655 | } |
| 4656 | } |
| 4657 | |
| 4658 | if iNdEx > l { |
| 4659 | return io.ErrUnexpectedEOF |
| 4660 | } |
| 4661 | return nil |
| 4662 | } |
| 4663 | func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error { |
| 4664 | l := len(dAtA) |
| 4665 | iNdEx := 0 |
| 4666 | for iNdEx < l { |
| 4667 | preIndex := iNdEx |
| 4668 | var wire uint64 |
| 4669 | for shift := uint(0); ; shift += 7 { |
| 4670 | if shift >= 64 { |
| 4671 | return ErrIntOverflowGenerated |
| 4672 | } |
| 4673 | if iNdEx >= l { |
| 4674 | return io.ErrUnexpectedEOF |
| 4675 | } |
| 4676 | b := dAtA[iNdEx] |
| 4677 | iNdEx++ |
| 4678 | wire |= uint64(b&0x7F) << shift |
| 4679 | if b < 0x80 { |
| 4680 | break |
| 4681 | } |
| 4682 | } |
| 4683 | fieldNum := int32(wire >> 3) |
| 4684 | wireType := int(wire & 0x7) |
| 4685 | if wireType == 4 { |
| 4686 | return fmt.Errorf("proto: NetworkPolicyIngressRule: wiretype end group for non-group") |
| 4687 | } |
| 4688 | if fieldNum <= 0 { |
| 4689 | return fmt.Errorf("proto: NetworkPolicyIngressRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4690 | } |
| 4691 | switch fieldNum { |
| 4692 | case 1: |
| 4693 | if wireType != 2 { |
| 4694 | return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) |
| 4695 | } |
| 4696 | var msglen int |
| 4697 | for shift := uint(0); ; shift += 7 { |
| 4698 | if shift >= 64 { |
| 4699 | return ErrIntOverflowGenerated |
| 4700 | } |
| 4701 | if iNdEx >= l { |
| 4702 | return io.ErrUnexpectedEOF |
| 4703 | } |
| 4704 | b := dAtA[iNdEx] |
| 4705 | iNdEx++ |
| 4706 | msglen |= int(b&0x7F) << shift |
| 4707 | if b < 0x80 { |
| 4708 | break |
| 4709 | } |
| 4710 | } |
| 4711 | if msglen < 0 { |
| 4712 | return ErrInvalidLengthGenerated |
| 4713 | } |
| 4714 | postIndex := iNdEx + msglen |
| 4715 | if postIndex < 0 { |
| 4716 | return ErrInvalidLengthGenerated |
| 4717 | } |
| 4718 | if postIndex > l { |
| 4719 | return io.ErrUnexpectedEOF |
| 4720 | } |
| 4721 | m.Ports = append(m.Ports, NetworkPolicyPort{}) |
| 4722 | if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4723 | return err |
| 4724 | } |
| 4725 | iNdEx = postIndex |
| 4726 | case 2: |
| 4727 | if wireType != 2 { |
| 4728 | return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) |
| 4729 | } |
| 4730 | var msglen int |
| 4731 | for shift := uint(0); ; shift += 7 { |
| 4732 | if shift >= 64 { |
| 4733 | return ErrIntOverflowGenerated |
| 4734 | } |
| 4735 | if iNdEx >= l { |
| 4736 | return io.ErrUnexpectedEOF |
| 4737 | } |
| 4738 | b := dAtA[iNdEx] |
| 4739 | iNdEx++ |
| 4740 | msglen |= int(b&0x7F) << shift |
| 4741 | if b < 0x80 { |
| 4742 | break |
| 4743 | } |
| 4744 | } |
| 4745 | if msglen < 0 { |
| 4746 | return ErrInvalidLengthGenerated |
| 4747 | } |
| 4748 | postIndex := iNdEx + msglen |
| 4749 | if postIndex < 0 { |
| 4750 | return ErrInvalidLengthGenerated |
| 4751 | } |
| 4752 | if postIndex > l { |
| 4753 | return io.ErrUnexpectedEOF |
| 4754 | } |
| 4755 | m.From = append(m.From, NetworkPolicyPeer{}) |
| 4756 | if err := m.From[len(m.From)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4757 | return err |
| 4758 | } |
| 4759 | iNdEx = postIndex |
| 4760 | default: |
| 4761 | iNdEx = preIndex |
| 4762 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4763 | if err != nil { |
| 4764 | return err |
| 4765 | } |
| 4766 | if skippy < 0 { |
| 4767 | return ErrInvalidLengthGenerated |
| 4768 | } |
| 4769 | if (iNdEx + skippy) < 0 { |
| 4770 | return ErrInvalidLengthGenerated |
| 4771 | } |
| 4772 | if (iNdEx + skippy) > l { |
| 4773 | return io.ErrUnexpectedEOF |
| 4774 | } |
| 4775 | iNdEx += skippy |
| 4776 | } |
| 4777 | } |
| 4778 | |
| 4779 | if iNdEx > l { |
| 4780 | return io.ErrUnexpectedEOF |
| 4781 | } |
| 4782 | return nil |
| 4783 | } |
| 4784 | func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error { |
| 4785 | l := len(dAtA) |
| 4786 | iNdEx := 0 |
| 4787 | for iNdEx < l { |
| 4788 | preIndex := iNdEx |
| 4789 | var wire uint64 |
| 4790 | for shift := uint(0); ; shift += 7 { |
| 4791 | if shift >= 64 { |
| 4792 | return ErrIntOverflowGenerated |
| 4793 | } |
| 4794 | if iNdEx >= l { |
| 4795 | return io.ErrUnexpectedEOF |
| 4796 | } |
| 4797 | b := dAtA[iNdEx] |
| 4798 | iNdEx++ |
| 4799 | wire |= uint64(b&0x7F) << shift |
| 4800 | if b < 0x80 { |
| 4801 | break |
| 4802 | } |
| 4803 | } |
| 4804 | fieldNum := int32(wire >> 3) |
| 4805 | wireType := int(wire & 0x7) |
| 4806 | if wireType == 4 { |
| 4807 | return fmt.Errorf("proto: NetworkPolicyList: wiretype end group for non-group") |
| 4808 | } |
| 4809 | if fieldNum <= 0 { |
| 4810 | return fmt.Errorf("proto: NetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4811 | } |
| 4812 | switch fieldNum { |
| 4813 | case 1: |
| 4814 | if wireType != 2 { |
| 4815 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 4816 | } |
| 4817 | var msglen int |
| 4818 | for shift := uint(0); ; shift += 7 { |
| 4819 | if shift >= 64 { |
| 4820 | return ErrIntOverflowGenerated |
| 4821 | } |
| 4822 | if iNdEx >= l { |
| 4823 | return io.ErrUnexpectedEOF |
| 4824 | } |
| 4825 | b := dAtA[iNdEx] |
| 4826 | iNdEx++ |
| 4827 | msglen |= int(b&0x7F) << shift |
| 4828 | if b < 0x80 { |
| 4829 | break |
| 4830 | } |
| 4831 | } |
| 4832 | if msglen < 0 { |
| 4833 | return ErrInvalidLengthGenerated |
| 4834 | } |
| 4835 | postIndex := iNdEx + msglen |
| 4836 | if postIndex < 0 { |
| 4837 | return ErrInvalidLengthGenerated |
| 4838 | } |
| 4839 | if postIndex > l { |
| 4840 | return io.ErrUnexpectedEOF |
| 4841 | } |
| 4842 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4843 | return err |
| 4844 | } |
| 4845 | iNdEx = postIndex |
| 4846 | case 2: |
| 4847 | if wireType != 2 { |
| 4848 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 4849 | } |
| 4850 | var msglen int |
| 4851 | for shift := uint(0); ; shift += 7 { |
| 4852 | if shift >= 64 { |
| 4853 | return ErrIntOverflowGenerated |
| 4854 | } |
| 4855 | if iNdEx >= l { |
| 4856 | return io.ErrUnexpectedEOF |
| 4857 | } |
| 4858 | b := dAtA[iNdEx] |
| 4859 | iNdEx++ |
| 4860 | msglen |= int(b&0x7F) << shift |
| 4861 | if b < 0x80 { |
| 4862 | break |
| 4863 | } |
| 4864 | } |
| 4865 | if msglen < 0 { |
| 4866 | return ErrInvalidLengthGenerated |
| 4867 | } |
| 4868 | postIndex := iNdEx + msglen |
| 4869 | if postIndex < 0 { |
| 4870 | return ErrInvalidLengthGenerated |
| 4871 | } |
| 4872 | if postIndex > l { |
| 4873 | return io.ErrUnexpectedEOF |
| 4874 | } |
| 4875 | m.Items = append(m.Items, NetworkPolicy{}) |
| 4876 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4877 | return err |
| 4878 | } |
| 4879 | iNdEx = postIndex |
| 4880 | default: |
| 4881 | iNdEx = preIndex |
| 4882 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4883 | if err != nil { |
| 4884 | return err |
| 4885 | } |
| 4886 | if skippy < 0 { |
| 4887 | return ErrInvalidLengthGenerated |
| 4888 | } |
| 4889 | if (iNdEx + skippy) < 0 { |
| 4890 | return ErrInvalidLengthGenerated |
| 4891 | } |
| 4892 | if (iNdEx + skippy) > l { |
| 4893 | return io.ErrUnexpectedEOF |
| 4894 | } |
| 4895 | iNdEx += skippy |
| 4896 | } |
| 4897 | } |
| 4898 | |
| 4899 | if iNdEx > l { |
| 4900 | return io.ErrUnexpectedEOF |
| 4901 | } |
| 4902 | return nil |
| 4903 | } |
| 4904 | func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error { |
| 4905 | l := len(dAtA) |
| 4906 | iNdEx := 0 |
| 4907 | for iNdEx < l { |
| 4908 | preIndex := iNdEx |
| 4909 | var wire uint64 |
| 4910 | for shift := uint(0); ; shift += 7 { |
| 4911 | if shift >= 64 { |
| 4912 | return ErrIntOverflowGenerated |
| 4913 | } |
| 4914 | if iNdEx >= l { |
| 4915 | return io.ErrUnexpectedEOF |
| 4916 | } |
| 4917 | b := dAtA[iNdEx] |
| 4918 | iNdEx++ |
| 4919 | wire |= uint64(b&0x7F) << shift |
| 4920 | if b < 0x80 { |
| 4921 | break |
| 4922 | } |
| 4923 | } |
| 4924 | fieldNum := int32(wire >> 3) |
| 4925 | wireType := int(wire & 0x7) |
| 4926 | if wireType == 4 { |
| 4927 | return fmt.Errorf("proto: NetworkPolicyPeer: wiretype end group for non-group") |
| 4928 | } |
| 4929 | if fieldNum <= 0 { |
| 4930 | return fmt.Errorf("proto: NetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4931 | } |
| 4932 | switch fieldNum { |
| 4933 | case 1: |
| 4934 | if wireType != 2 { |
| 4935 | return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) |
| 4936 | } |
| 4937 | var msglen int |
| 4938 | for shift := uint(0); ; shift += 7 { |
| 4939 | if shift >= 64 { |
| 4940 | return ErrIntOverflowGenerated |
| 4941 | } |
| 4942 | if iNdEx >= l { |
| 4943 | return io.ErrUnexpectedEOF |
| 4944 | } |
| 4945 | b := dAtA[iNdEx] |
| 4946 | iNdEx++ |
| 4947 | msglen |= int(b&0x7F) << shift |
| 4948 | if b < 0x80 { |
| 4949 | break |
| 4950 | } |
| 4951 | } |
| 4952 | if msglen < 0 { |
| 4953 | return ErrInvalidLengthGenerated |
| 4954 | } |
| 4955 | postIndex := iNdEx + msglen |
| 4956 | if postIndex < 0 { |
| 4957 | return ErrInvalidLengthGenerated |
| 4958 | } |
| 4959 | if postIndex > l { |
| 4960 | return io.ErrUnexpectedEOF |
| 4961 | } |
| 4962 | if m.PodSelector == nil { |
| 4963 | m.PodSelector = &v1.LabelSelector{} |
| 4964 | } |
| 4965 | if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4966 | return err |
| 4967 | } |
| 4968 | iNdEx = postIndex |
| 4969 | case 2: |
| 4970 | if wireType != 2 { |
| 4971 | return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) |
| 4972 | } |
| 4973 | var msglen int |
| 4974 | for shift := uint(0); ; shift += 7 { |
| 4975 | if shift >= 64 { |
| 4976 | return ErrIntOverflowGenerated |
| 4977 | } |
| 4978 | if iNdEx >= l { |
| 4979 | return io.ErrUnexpectedEOF |
| 4980 | } |
| 4981 | b := dAtA[iNdEx] |
| 4982 | iNdEx++ |
| 4983 | msglen |= int(b&0x7F) << shift |
| 4984 | if b < 0x80 { |
| 4985 | break |
| 4986 | } |
| 4987 | } |
| 4988 | if msglen < 0 { |
| 4989 | return ErrInvalidLengthGenerated |
| 4990 | } |
| 4991 | postIndex := iNdEx + msglen |
| 4992 | if postIndex < 0 { |
| 4993 | return ErrInvalidLengthGenerated |
| 4994 | } |
| 4995 | if postIndex > l { |
| 4996 | return io.ErrUnexpectedEOF |
| 4997 | } |
| 4998 | if m.NamespaceSelector == nil { |
| 4999 | m.NamespaceSelector = &v1.LabelSelector{} |
| 5000 | } |
| 5001 | if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5002 | return err |
| 5003 | } |
| 5004 | iNdEx = postIndex |
| 5005 | case 3: |
| 5006 | if wireType != 2 { |
| 5007 | return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) |
| 5008 | } |
| 5009 | var msglen int |
| 5010 | for shift := uint(0); ; shift += 7 { |
| 5011 | if shift >= 64 { |
| 5012 | return ErrIntOverflowGenerated |
| 5013 | } |
| 5014 | if iNdEx >= l { |
| 5015 | return io.ErrUnexpectedEOF |
| 5016 | } |
| 5017 | b := dAtA[iNdEx] |
| 5018 | iNdEx++ |
| 5019 | msglen |= int(b&0x7F) << shift |
| 5020 | if b < 0x80 { |
| 5021 | break |
| 5022 | } |
| 5023 | } |
| 5024 | if msglen < 0 { |
| 5025 | return ErrInvalidLengthGenerated |
| 5026 | } |
| 5027 | postIndex := iNdEx + msglen |
| 5028 | if postIndex < 0 { |
| 5029 | return ErrInvalidLengthGenerated |
| 5030 | } |
| 5031 | if postIndex > l { |
| 5032 | return io.ErrUnexpectedEOF |
| 5033 | } |
| 5034 | if m.IPBlock == nil { |
| 5035 | m.IPBlock = &IPBlock{} |
| 5036 | } |
| 5037 | if err := m.IPBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5038 | return err |
| 5039 | } |
| 5040 | iNdEx = postIndex |
| 5041 | default: |
| 5042 | iNdEx = preIndex |
| 5043 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5044 | if err != nil { |
| 5045 | return err |
| 5046 | } |
| 5047 | if skippy < 0 { |
| 5048 | return ErrInvalidLengthGenerated |
| 5049 | } |
| 5050 | if (iNdEx + skippy) < 0 { |
| 5051 | return ErrInvalidLengthGenerated |
| 5052 | } |
| 5053 | if (iNdEx + skippy) > l { |
| 5054 | return io.ErrUnexpectedEOF |
| 5055 | } |
| 5056 | iNdEx += skippy |
| 5057 | } |
| 5058 | } |
| 5059 | |
| 5060 | if iNdEx > l { |
| 5061 | return io.ErrUnexpectedEOF |
| 5062 | } |
| 5063 | return nil |
| 5064 | } |
| 5065 | func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error { |
| 5066 | l := len(dAtA) |
| 5067 | iNdEx := 0 |
| 5068 | for iNdEx < l { |
| 5069 | preIndex := iNdEx |
| 5070 | var wire uint64 |
| 5071 | for shift := uint(0); ; shift += 7 { |
| 5072 | if shift >= 64 { |
| 5073 | return ErrIntOverflowGenerated |
| 5074 | } |
| 5075 | if iNdEx >= l { |
| 5076 | return io.ErrUnexpectedEOF |
| 5077 | } |
| 5078 | b := dAtA[iNdEx] |
| 5079 | iNdEx++ |
| 5080 | wire |= uint64(b&0x7F) << shift |
| 5081 | if b < 0x80 { |
| 5082 | break |
| 5083 | } |
| 5084 | } |
| 5085 | fieldNum := int32(wire >> 3) |
| 5086 | wireType := int(wire & 0x7) |
| 5087 | if wireType == 4 { |
| 5088 | return fmt.Errorf("proto: NetworkPolicyPort: wiretype end group for non-group") |
| 5089 | } |
| 5090 | if fieldNum <= 0 { |
| 5091 | return fmt.Errorf("proto: NetworkPolicyPort: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5092 | } |
| 5093 | switch fieldNum { |
| 5094 | case 1: |
| 5095 | if wireType != 2 { |
| 5096 | return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) |
| 5097 | } |
| 5098 | var stringLen uint64 |
| 5099 | for shift := uint(0); ; shift += 7 { |
| 5100 | if shift >= 64 { |
| 5101 | return ErrIntOverflowGenerated |
| 5102 | } |
| 5103 | if iNdEx >= l { |
| 5104 | return io.ErrUnexpectedEOF |
| 5105 | } |
| 5106 | b := dAtA[iNdEx] |
| 5107 | iNdEx++ |
| 5108 | stringLen |= uint64(b&0x7F) << shift |
| 5109 | if b < 0x80 { |
| 5110 | break |
| 5111 | } |
| 5112 | } |
| 5113 | intStringLen := int(stringLen) |
| 5114 | if intStringLen < 0 { |
| 5115 | return ErrInvalidLengthGenerated |
| 5116 | } |
| 5117 | postIndex := iNdEx + intStringLen |
| 5118 | if postIndex < 0 { |
| 5119 | return ErrInvalidLengthGenerated |
| 5120 | } |
| 5121 | if postIndex > l { |
| 5122 | return io.ErrUnexpectedEOF |
| 5123 | } |
| 5124 | s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) |
| 5125 | m.Protocol = &s |
| 5126 | iNdEx = postIndex |
| 5127 | case 2: |
| 5128 | if wireType != 2 { |
| 5129 | return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) |
| 5130 | } |
| 5131 | var msglen int |
| 5132 | for shift := uint(0); ; shift += 7 { |
| 5133 | if shift >= 64 { |
| 5134 | return ErrIntOverflowGenerated |
| 5135 | } |
| 5136 | if iNdEx >= l { |
| 5137 | return io.ErrUnexpectedEOF |
| 5138 | } |
| 5139 | b := dAtA[iNdEx] |
| 5140 | iNdEx++ |
| 5141 | msglen |= int(b&0x7F) << shift |
| 5142 | if b < 0x80 { |
| 5143 | break |
| 5144 | } |
| 5145 | } |
| 5146 | if msglen < 0 { |
| 5147 | return ErrInvalidLengthGenerated |
| 5148 | } |
| 5149 | postIndex := iNdEx + msglen |
| 5150 | if postIndex < 0 { |
| 5151 | return ErrInvalidLengthGenerated |
| 5152 | } |
| 5153 | if postIndex > l { |
| 5154 | return io.ErrUnexpectedEOF |
| 5155 | } |
| 5156 | if m.Port == nil { |
| 5157 | m.Port = &intstr.IntOrString{} |
| 5158 | } |
| 5159 | if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5160 | return err |
| 5161 | } |
| 5162 | iNdEx = postIndex |
| 5163 | default: |
| 5164 | iNdEx = preIndex |
| 5165 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5166 | if err != nil { |
| 5167 | return err |
| 5168 | } |
| 5169 | if skippy < 0 { |
| 5170 | return ErrInvalidLengthGenerated |
| 5171 | } |
| 5172 | if (iNdEx + skippy) < 0 { |
| 5173 | return ErrInvalidLengthGenerated |
| 5174 | } |
| 5175 | if (iNdEx + skippy) > l { |
| 5176 | return io.ErrUnexpectedEOF |
| 5177 | } |
| 5178 | iNdEx += skippy |
| 5179 | } |
| 5180 | } |
| 5181 | |
| 5182 | if iNdEx > l { |
| 5183 | return io.ErrUnexpectedEOF |
| 5184 | } |
| 5185 | return nil |
| 5186 | } |
| 5187 | func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error { |
| 5188 | l := len(dAtA) |
| 5189 | iNdEx := 0 |
| 5190 | for iNdEx < l { |
| 5191 | preIndex := iNdEx |
| 5192 | var wire uint64 |
| 5193 | for shift := uint(0); ; shift += 7 { |
| 5194 | if shift >= 64 { |
| 5195 | return ErrIntOverflowGenerated |
| 5196 | } |
| 5197 | if iNdEx >= l { |
| 5198 | return io.ErrUnexpectedEOF |
| 5199 | } |
| 5200 | b := dAtA[iNdEx] |
| 5201 | iNdEx++ |
| 5202 | wire |= uint64(b&0x7F) << shift |
| 5203 | if b < 0x80 { |
| 5204 | break |
| 5205 | } |
| 5206 | } |
| 5207 | fieldNum := int32(wire >> 3) |
| 5208 | wireType := int(wire & 0x7) |
| 5209 | if wireType == 4 { |
| 5210 | return fmt.Errorf("proto: NetworkPolicySpec: wiretype end group for non-group") |
| 5211 | } |
| 5212 | if fieldNum <= 0 { |
| 5213 | return fmt.Errorf("proto: NetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5214 | } |
| 5215 | switch fieldNum { |
| 5216 | case 1: |
| 5217 | if wireType != 2 { |
| 5218 | return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) |
| 5219 | } |
| 5220 | var msglen int |
| 5221 | for shift := uint(0); ; shift += 7 { |
| 5222 | if shift >= 64 { |
| 5223 | return ErrIntOverflowGenerated |
| 5224 | } |
| 5225 | if iNdEx >= l { |
| 5226 | return io.ErrUnexpectedEOF |
| 5227 | } |
| 5228 | b := dAtA[iNdEx] |
| 5229 | iNdEx++ |
| 5230 | msglen |= int(b&0x7F) << shift |
| 5231 | if b < 0x80 { |
| 5232 | break |
| 5233 | } |
| 5234 | } |
| 5235 | if msglen < 0 { |
| 5236 | return ErrInvalidLengthGenerated |
| 5237 | } |
| 5238 | postIndex := iNdEx + msglen |
| 5239 | if postIndex < 0 { |
| 5240 | return ErrInvalidLengthGenerated |
| 5241 | } |
| 5242 | if postIndex > l { |
| 5243 | return io.ErrUnexpectedEOF |
| 5244 | } |
| 5245 | if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5246 | return err |
| 5247 | } |
| 5248 | iNdEx = postIndex |
| 5249 | case 2: |
| 5250 | if wireType != 2 { |
| 5251 | return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) |
| 5252 | } |
| 5253 | var msglen int |
| 5254 | for shift := uint(0); ; shift += 7 { |
| 5255 | if shift >= 64 { |
| 5256 | return ErrIntOverflowGenerated |
| 5257 | } |
| 5258 | if iNdEx >= l { |
| 5259 | return io.ErrUnexpectedEOF |
| 5260 | } |
| 5261 | b := dAtA[iNdEx] |
| 5262 | iNdEx++ |
| 5263 | msglen |= int(b&0x7F) << shift |
| 5264 | if b < 0x80 { |
| 5265 | break |
| 5266 | } |
| 5267 | } |
| 5268 | if msglen < 0 { |
| 5269 | return ErrInvalidLengthGenerated |
| 5270 | } |
| 5271 | postIndex := iNdEx + msglen |
| 5272 | if postIndex < 0 { |
| 5273 | return ErrInvalidLengthGenerated |
| 5274 | } |
| 5275 | if postIndex > l { |
| 5276 | return io.ErrUnexpectedEOF |
| 5277 | } |
| 5278 | m.Ingress = append(m.Ingress, NetworkPolicyIngressRule{}) |
| 5279 | if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5280 | return err |
| 5281 | } |
| 5282 | iNdEx = postIndex |
| 5283 | case 3: |
| 5284 | if wireType != 2 { |
| 5285 | return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) |
| 5286 | } |
| 5287 | var msglen int |
| 5288 | for shift := uint(0); ; shift += 7 { |
| 5289 | if shift >= 64 { |
| 5290 | return ErrIntOverflowGenerated |
| 5291 | } |
| 5292 | if iNdEx >= l { |
| 5293 | return io.ErrUnexpectedEOF |
| 5294 | } |
| 5295 | b := dAtA[iNdEx] |
| 5296 | iNdEx++ |
| 5297 | msglen |= int(b&0x7F) << shift |
| 5298 | if b < 0x80 { |
| 5299 | break |
| 5300 | } |
| 5301 | } |
| 5302 | if msglen < 0 { |
| 5303 | return ErrInvalidLengthGenerated |
| 5304 | } |
| 5305 | postIndex := iNdEx + msglen |
| 5306 | if postIndex < 0 { |
| 5307 | return ErrInvalidLengthGenerated |
| 5308 | } |
| 5309 | if postIndex > l { |
| 5310 | return io.ErrUnexpectedEOF |
| 5311 | } |
| 5312 | m.Egress = append(m.Egress, NetworkPolicyEgressRule{}) |
| 5313 | if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5314 | return err |
| 5315 | } |
| 5316 | iNdEx = postIndex |
| 5317 | case 4: |
| 5318 | if wireType != 2 { |
| 5319 | return fmt.Errorf("proto: wrong wireType = %d for field PolicyTypes", wireType) |
| 5320 | } |
| 5321 | var stringLen uint64 |
| 5322 | for shift := uint(0); ; shift += 7 { |
| 5323 | if shift >= 64 { |
| 5324 | return ErrIntOverflowGenerated |
| 5325 | } |
| 5326 | if iNdEx >= l { |
| 5327 | return io.ErrUnexpectedEOF |
| 5328 | } |
| 5329 | b := dAtA[iNdEx] |
| 5330 | iNdEx++ |
| 5331 | stringLen |= uint64(b&0x7F) << shift |
| 5332 | if b < 0x80 { |
| 5333 | break |
| 5334 | } |
| 5335 | } |
| 5336 | intStringLen := int(stringLen) |
| 5337 | if intStringLen < 0 { |
| 5338 | return ErrInvalidLengthGenerated |
| 5339 | } |
| 5340 | postIndex := iNdEx + intStringLen |
| 5341 | if postIndex < 0 { |
| 5342 | return ErrInvalidLengthGenerated |
| 5343 | } |
| 5344 | if postIndex > l { |
| 5345 | return io.ErrUnexpectedEOF |
| 5346 | } |
| 5347 | m.PolicyTypes = append(m.PolicyTypes, PolicyType(dAtA[iNdEx:postIndex])) |
| 5348 | iNdEx = postIndex |
| 5349 | default: |
| 5350 | iNdEx = preIndex |
| 5351 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5352 | if err != nil { |
| 5353 | return err |
| 5354 | } |
| 5355 | if skippy < 0 { |
| 5356 | return ErrInvalidLengthGenerated |
| 5357 | } |
| 5358 | if (iNdEx + skippy) < 0 { |
| 5359 | return ErrInvalidLengthGenerated |
| 5360 | } |
| 5361 | if (iNdEx + skippy) > l { |
| 5362 | return io.ErrUnexpectedEOF |
| 5363 | } |
| 5364 | iNdEx += skippy |
| 5365 | } |
| 5366 | } |
| 5367 | |
| 5368 | if iNdEx > l { |
| 5369 | return io.ErrUnexpectedEOF |
| 5370 | } |
| 5371 | return nil |
| 5372 | } |
| 5373 | func (m *ServiceBackendPort) Unmarshal(dAtA []byte) error { |
| 5374 | l := len(dAtA) |
| 5375 | iNdEx := 0 |
| 5376 | for iNdEx < l { |
| 5377 | preIndex := iNdEx |
| 5378 | var wire uint64 |
| 5379 | for shift := uint(0); ; shift += 7 { |
| 5380 | if shift >= 64 { |
| 5381 | return ErrIntOverflowGenerated |
| 5382 | } |
| 5383 | if iNdEx >= l { |
| 5384 | return io.ErrUnexpectedEOF |
| 5385 | } |
| 5386 | b := dAtA[iNdEx] |
| 5387 | iNdEx++ |
| 5388 | wire |= uint64(b&0x7F) << shift |
| 5389 | if b < 0x80 { |
| 5390 | break |
| 5391 | } |
| 5392 | } |
| 5393 | fieldNum := int32(wire >> 3) |
| 5394 | wireType := int(wire & 0x7) |
| 5395 | if wireType == 4 { |
| 5396 | return fmt.Errorf("proto: ServiceBackendPort: wiretype end group for non-group") |
| 5397 | } |
| 5398 | if fieldNum <= 0 { |
| 5399 | return fmt.Errorf("proto: ServiceBackendPort: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5400 | } |
| 5401 | switch fieldNum { |
| 5402 | case 1: |
| 5403 | if wireType != 2 { |
| 5404 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 5405 | } |
| 5406 | var stringLen uint64 |
| 5407 | for shift := uint(0); ; shift += 7 { |
| 5408 | if shift >= 64 { |
| 5409 | return ErrIntOverflowGenerated |
| 5410 | } |
| 5411 | if iNdEx >= l { |
| 5412 | return io.ErrUnexpectedEOF |
| 5413 | } |
| 5414 | b := dAtA[iNdEx] |
| 5415 | iNdEx++ |
| 5416 | stringLen |= uint64(b&0x7F) << shift |
| 5417 | if b < 0x80 { |
| 5418 | break |
| 5419 | } |
| 5420 | } |
| 5421 | intStringLen := int(stringLen) |
| 5422 | if intStringLen < 0 { |
| 5423 | return ErrInvalidLengthGenerated |
| 5424 | } |
| 5425 | postIndex := iNdEx + intStringLen |
| 5426 | if postIndex < 0 { |
| 5427 | return ErrInvalidLengthGenerated |
| 5428 | } |
| 5429 | if postIndex > l { |
| 5430 | return io.ErrUnexpectedEOF |
| 5431 | } |
| 5432 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 5433 | iNdEx = postIndex |
| 5434 | case 2: |
| 5435 | if wireType != 0 { |
| 5436 | return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) |
| 5437 | } |
| 5438 | m.Number = 0 |
| 5439 | for shift := uint(0); ; shift += 7 { |
| 5440 | if shift >= 64 { |
| 5441 | return ErrIntOverflowGenerated |
| 5442 | } |
| 5443 | if iNdEx >= l { |
| 5444 | return io.ErrUnexpectedEOF |
| 5445 | } |
| 5446 | b := dAtA[iNdEx] |
| 5447 | iNdEx++ |
| 5448 | m.Number |= int32(b&0x7F) << shift |
| 5449 | if b < 0x80 { |
| 5450 | break |
| 5451 | } |
| 5452 | } |
| 5453 | default: |
| 5454 | iNdEx = preIndex |
| 5455 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5456 | if err != nil { |
| 5457 | return err |
| 5458 | } |
| 5459 | if skippy < 0 { |
| 5460 | return ErrInvalidLengthGenerated |
| 5461 | } |
| 5462 | if (iNdEx + skippy) < 0 { |
| 5463 | return ErrInvalidLengthGenerated |
| 5464 | } |
| 5465 | if (iNdEx + skippy) > l { |
| 5466 | return io.ErrUnexpectedEOF |
| 5467 | } |
| 5468 | iNdEx += skippy |
| 5469 | } |
| 5470 | } |
| 5471 | |
| 5472 | if iNdEx > l { |
| 5473 | return io.ErrUnexpectedEOF |
| 5474 | } |
| 5475 | return nil |
| 5476 | } |
| 5477 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 5478 | l := len(dAtA) |
| 5479 | iNdEx := 0 |
| 5480 | depth := 0 |
| 5481 | for iNdEx < l { |
| 5482 | var wire uint64 |
| 5483 | for shift := uint(0); ; shift += 7 { |
| 5484 | if shift >= 64 { |
| 5485 | return 0, ErrIntOverflowGenerated |
| 5486 | } |
| 5487 | if iNdEx >= l { |
| 5488 | return 0, io.ErrUnexpectedEOF |
| 5489 | } |
| 5490 | b := dAtA[iNdEx] |
| 5491 | iNdEx++ |
| 5492 | wire |= (uint64(b) & 0x7F) << shift |
| 5493 | if b < 0x80 { |
| 5494 | break |
| 5495 | } |
| 5496 | } |
| 5497 | wireType := int(wire & 0x7) |
| 5498 | switch wireType { |
| 5499 | case 0: |
| 5500 | for shift := uint(0); ; shift += 7 { |
| 5501 | if shift >= 64 { |
| 5502 | return 0, ErrIntOverflowGenerated |
| 5503 | } |
| 5504 | if iNdEx >= l { |
| 5505 | return 0, io.ErrUnexpectedEOF |
| 5506 | } |
| 5507 | iNdEx++ |
| 5508 | if dAtA[iNdEx-1] < 0x80 { |
| 5509 | break |
| 5510 | } |
| 5511 | } |
| 5512 | case 1: |
| 5513 | iNdEx += 8 |
| 5514 | case 2: |
| 5515 | var length int |
| 5516 | for shift := uint(0); ; shift += 7 { |
| 5517 | if shift >= 64 { |
| 5518 | return 0, ErrIntOverflowGenerated |
| 5519 | } |
| 5520 | if iNdEx >= l { |
| 5521 | return 0, io.ErrUnexpectedEOF |
| 5522 | } |
| 5523 | b := dAtA[iNdEx] |
| 5524 | iNdEx++ |
| 5525 | length |= (int(b) & 0x7F) << shift |
| 5526 | if b < 0x80 { |
| 5527 | break |
| 5528 | } |
| 5529 | } |
| 5530 | if length < 0 { |
| 5531 | return 0, ErrInvalidLengthGenerated |
| 5532 | } |
| 5533 | iNdEx += length |
| 5534 | case 3: |
| 5535 | depth++ |
| 5536 | case 4: |
| 5537 | if depth == 0 { |
| 5538 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 5539 | } |
| 5540 | depth-- |
| 5541 | case 5: |
| 5542 | iNdEx += 4 |
| 5543 | default: |
| 5544 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 5545 | } |
| 5546 | if iNdEx < 0 { |
| 5547 | return 0, ErrInvalidLengthGenerated |
| 5548 | } |
| 5549 | if depth == 0 { |
| 5550 | return iNdEx, nil |
| 5551 | } |
| 5552 | } |
| 5553 | return 0, io.ErrUnexpectedEOF |
| 5554 | } |
| 5555 | |
| 5556 | var ( |
| 5557 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 5558 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 5559 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 5560 | ) |