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