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