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