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