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