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