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