2017-11-20 09:30:52 -05:00
|
|
|
/*
|
2018-07-25 04:17:02 -04:00
|
|
|
Copyright The Kubernetes Authors.
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Code generated by protoc-gen-gogo.
|
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v2beta1/generated.proto
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package v2beta1 is a generated protocol buffer package.
|
|
|
|
|
|
|
|
It is generated from these files:
|
|
|
|
k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v2beta1/generated.proto
|
|
|
|
|
|
|
|
It has these top-level messages:
|
2018-07-25 04:17:02 -04:00
|
|
|
ContainerResourcePolicy
|
2017-11-20 09:30:52 -05:00
|
|
|
CrossVersionObjectReference
|
2018-07-25 04:17:02 -04:00
|
|
|
ExternalMetricSource
|
|
|
|
ExternalMetricStatus
|
2017-11-20 09:30:52 -05:00
|
|
|
HorizontalPodAutoscaler
|
|
|
|
HorizontalPodAutoscalerCondition
|
|
|
|
HorizontalPodAutoscalerList
|
|
|
|
HorizontalPodAutoscalerSpec
|
|
|
|
HorizontalPodAutoscalerStatus
|
|
|
|
MetricSpec
|
|
|
|
MetricStatus
|
|
|
|
ObjectMetricSource
|
|
|
|
ObjectMetricStatus
|
2018-07-25 04:17:02 -04:00
|
|
|
PodResourcePolicy
|
|
|
|
PodUpdatePolicy
|
2017-11-20 09:30:52 -05:00
|
|
|
PodsMetricSource
|
|
|
|
PodsMetricStatus
|
2018-07-25 04:17:02 -04:00
|
|
|
RecommendedContainerResources
|
|
|
|
RecommendedPodResources
|
2017-11-20 09:30:52 -05:00
|
|
|
ResourceMetricSource
|
|
|
|
ResourceMetricStatus
|
2018-07-25 04:17:02 -04:00
|
|
|
VerticalPodAutoscaler
|
|
|
|
VerticalPodAutoscalerCondition
|
|
|
|
VerticalPodAutoscalerList
|
|
|
|
VerticalPodAutoscalerSpec
|
|
|
|
VerticalPodAutoscalerStatus
|
2017-11-20 09:30:52 -05:00
|
|
|
*/
|
|
|
|
package v2beta1
|
|
|
|
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
|
|
|
|
import k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource"
|
|
|
|
import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
|
|
|
|
import k8s_io_api_core_v1 "k8s.io/api/core/v1"
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
|
|
|
|
2017-11-20 09:30:52 -05:00
|
|
|
import strings "strings"
|
|
|
|
import reflect "reflect"
|
|
|
|
|
|
|
|
import io "io"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ContainerResourcePolicy) Reset() { *m = ContainerResourcePolicy{} }
|
|
|
|
func (*ContainerResourcePolicy) ProtoMessage() {}
|
|
|
|
func (*ContainerResourcePolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
|
|
|
|
|
2017-11-20 09:30:52 -05:00
|
|
|
func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} }
|
|
|
|
func (*CrossVersionObjectReference) ProtoMessage() {}
|
|
|
|
func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fileDescriptorGenerated, []int{1}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} }
|
|
|
|
func (*ExternalMetricSource) ProtoMessage() {}
|
|
|
|
func (*ExternalMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
|
|
|
|
|
|
|
|
func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} }
|
|
|
|
func (*ExternalMetricStatus) ProtoMessage() {}
|
|
|
|
func (*ExternalMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
|
|
|
|
|
2017-11-20 09:30:52 -05:00
|
|
|
func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} }
|
|
|
|
func (*HorizontalPodAutoscaler) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} }
|
|
|
|
func (*HorizontalPodAutoscalerCondition) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fileDescriptorGenerated, []int{5}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} }
|
|
|
|
func (*HorizontalPodAutoscalerList) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fileDescriptorGenerated, []int{6}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} }
|
|
|
|
func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fileDescriptorGenerated, []int{7}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} }
|
|
|
|
func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fileDescriptorGenerated, []int{8}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MetricSpec) Reset() { *m = MetricSpec{} }
|
|
|
|
func (*MetricSpec) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *MetricStatus) Reset() { *m = MetricStatus{} }
|
|
|
|
func (*MetricStatus) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*MetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} }
|
|
|
|
func (*ObjectMetricSource) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*ObjectMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} }
|
|
|
|
func (*ObjectMetricStatus) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
|
|
|
|
|
|
|
|
func (m *PodResourcePolicy) Reset() { *m = PodResourcePolicy{} }
|
|
|
|
func (*PodResourcePolicy) ProtoMessage() {}
|
|
|
|
func (*PodResourcePolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
|
|
|
|
|
|
|
|
func (m *PodUpdatePolicy) Reset() { *m = PodUpdatePolicy{} }
|
|
|
|
func (*PodUpdatePolicy) ProtoMessage() {}
|
|
|
|
func (*PodUpdatePolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} }
|
|
|
|
func (*PodsMetricSource) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*PodsMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} }
|
|
|
|
func (*PodsMetricStatus) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*PodsMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} }
|
|
|
|
|
|
|
|
func (m *RecommendedContainerResources) Reset() { *m = RecommendedContainerResources{} }
|
|
|
|
func (*RecommendedContainerResources) ProtoMessage() {}
|
|
|
|
func (*RecommendedContainerResources) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{17}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RecommendedPodResources) Reset() { *m = RecommendedPodResources{} }
|
|
|
|
func (*RecommendedPodResources) ProtoMessage() {}
|
|
|
|
func (*RecommendedPodResources) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{18}
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} }
|
|
|
|
func (*ResourceMetricSource) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*ResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} }
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} }
|
|
|
|
func (*ResourceMetricStatus) ProtoMessage() {}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} }
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscaler) Reset() { *m = VerticalPodAutoscaler{} }
|
|
|
|
func (*VerticalPodAutoscaler) ProtoMessage() {}
|
|
|
|
func (*VerticalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} }
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerCondition) Reset() { *m = VerticalPodAutoscalerCondition{} }
|
|
|
|
func (*VerticalPodAutoscalerCondition) ProtoMessage() {}
|
|
|
|
func (*VerticalPodAutoscalerCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{22}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerList) Reset() { *m = VerticalPodAutoscalerList{} }
|
|
|
|
func (*VerticalPodAutoscalerList) ProtoMessage() {}
|
|
|
|
func (*VerticalPodAutoscalerList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{23}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerSpec) Reset() { *m = VerticalPodAutoscalerSpec{} }
|
|
|
|
func (*VerticalPodAutoscalerSpec) ProtoMessage() {}
|
|
|
|
func (*VerticalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{24}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerStatus) Reset() { *m = VerticalPodAutoscalerStatus{} }
|
|
|
|
func (*VerticalPodAutoscalerStatus) ProtoMessage() {}
|
|
|
|
func (*VerticalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{25}
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
|
|
|
|
func init() {
|
2018-07-25 04:17:02 -04:00
|
|
|
proto.RegisterType((*ContainerResourcePolicy)(nil), "k8s.io.api.autoscaling.v2beta1.ContainerResourcePolicy")
|
2017-11-20 09:30:52 -05:00
|
|
|
proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference")
|
2018-07-25 04:17:02 -04:00
|
|
|
proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ExternalMetricSource")
|
|
|
|
proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ExternalMetricStatus")
|
2017-11-20 09:30:52 -05:00
|
|
|
proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscaler")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerCondition")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerList")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus")
|
|
|
|
proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v2beta1.MetricSpec")
|
|
|
|
proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.MetricStatus")
|
|
|
|
proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ObjectMetricSource")
|
|
|
|
proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ObjectMetricStatus")
|
2018-07-25 04:17:02 -04:00
|
|
|
proto.RegisterType((*PodResourcePolicy)(nil), "k8s.io.api.autoscaling.v2beta1.PodResourcePolicy")
|
|
|
|
proto.RegisterType((*PodUpdatePolicy)(nil), "k8s.io.api.autoscaling.v2beta1.PodUpdatePolicy")
|
2017-11-20 09:30:52 -05:00
|
|
|
proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.PodsMetricSource")
|
|
|
|
proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.PodsMetricStatus")
|
2018-07-25 04:17:02 -04:00
|
|
|
proto.RegisterType((*RecommendedContainerResources)(nil), "k8s.io.api.autoscaling.v2beta1.RecommendedContainerResources")
|
|
|
|
proto.RegisterType((*RecommendedPodResources)(nil), "k8s.io.api.autoscaling.v2beta1.RecommendedPodResources")
|
2017-11-20 09:30:52 -05:00
|
|
|
proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ResourceMetricSource")
|
|
|
|
proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ResourceMetricStatus")
|
2018-07-25 04:17:02 -04:00
|
|
|
proto.RegisterType((*VerticalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2beta1.VerticalPodAutoscaler")
|
|
|
|
proto.RegisterType((*VerticalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v2beta1.VerticalPodAutoscalerCondition")
|
|
|
|
proto.RegisterType((*VerticalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v2beta1.VerticalPodAutoscalerList")
|
|
|
|
proto.RegisterType((*VerticalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v2beta1.VerticalPodAutoscalerSpec")
|
|
|
|
proto.RegisterType((*VerticalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v2beta1.VerticalPodAutoscalerStatus")
|
|
|
|
}
|
|
|
|
func (m *ContainerResourcePolicy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContainerResourcePolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName)))
|
|
|
|
i += copy(dAtA[i:], m.ContainerName)
|
|
|
|
if m.Mode != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Mode)))
|
|
|
|
i += copy(dAtA[i:], *m.Mode)
|
|
|
|
}
|
|
|
|
if len(m.MinAllowed) > 0 {
|
|
|
|
keysForMinAllowed := make([]string, 0, len(m.MinAllowed))
|
|
|
|
for k := range m.MinAllowed {
|
|
|
|
keysForMinAllowed = append(keysForMinAllowed, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMinAllowed)
|
|
|
|
for _, k := range keysForMinAllowed {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
v := m.MinAllowed[k8s_io_api_core_v1.ResourceName(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovGenerated(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
|
|
|
|
n1, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.MaxAllowed) > 0 {
|
|
|
|
keysForMaxAllowed := make([]string, 0, len(m.MaxAllowed))
|
|
|
|
for k := range m.MaxAllowed {
|
|
|
|
keysForMaxAllowed = append(keysForMaxAllowed, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMaxAllowed)
|
|
|
|
for _, k := range keysForMaxAllowed {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
v := m.MaxAllowed[k8s_io_api_core_v1.ResourceName(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovGenerated(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
|
|
|
|
n2, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
|
2017-11-20 09:30:52 -05:00
|
|
|
func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
|
|
|
|
i += copy(dAtA[i:], m.Kind)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
|
|
|
|
i += copy(dAtA[i:], m.APIVersion)
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ExternalMetricSource) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExternalMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
if m.MetricSelector != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MetricSelector.Size()))
|
|
|
|
n3, err := m.MetricSelector.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n3
|
|
|
|
}
|
|
|
|
if m.TargetValue != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetValue.Size()))
|
|
|
|
n4, err := m.TargetValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n4
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
|
|
|
|
n5, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n5
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExternalMetricStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExternalMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
if m.MetricSelector != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MetricSelector.Size()))
|
|
|
|
n6, err := m.MetricSelector.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n6
|
|
|
|
}
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentValue.Size()))
|
|
|
|
n7, err := m.CurrentValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n7
|
|
|
|
if m.CurrentAverageValue != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
|
|
|
|
n8, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n8
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-11-20 09:30:52 -05:00
|
|
|
func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n9, err := m.ObjectMeta.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n9
|
2017-11-20 09:30:52 -05:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n10, err := m.Spec.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n10
|
2017-11-20 09:30:52 -05:00
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n11, err := m.Status.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n11
|
2017-11-20 09:30:52 -05:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i += copy(dAtA[i:], m.Status)
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n12, err := m.LastTransitionTime.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n12
|
2017-11-20 09:30:52 -05:00
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i += copy(dAtA[i:], m.Reason)
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
|
|
|
i += copy(dAtA[i:], m.Message)
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n13, err := m.ListMeta.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n13
|
2017-11-20 09:30:52 -05:00
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, msg := range m.Items {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ScaleTargetRef.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n14, err := m.ScaleTargetRef.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n14
|
2017-11-20 09:30:52 -05:00
|
|
|
if m.MinReplicas != nil {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas))
|
|
|
|
}
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas))
|
|
|
|
if len(m.Metrics) > 0 {
|
|
|
|
for _, msg := range m.Metrics {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.ObservedGeneration != nil {
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration))
|
|
|
|
}
|
|
|
|
if m.LastScaleTime != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.LastScaleTime.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n15, err := m.LastScaleTime.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n15
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas))
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas))
|
|
|
|
if len(m.CurrentMetrics) > 0 {
|
|
|
|
for _, msg := range m.CurrentMetrics {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, msg := range m.Conditions {
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MetricSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
|
|
|
if m.Object != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n16, err := m.Object.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n16
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if m.Pods != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n17, err := m.Pods.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n17
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if m.Resource != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n18, err := m.Resource.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n18
|
|
|
|
}
|
|
|
|
if m.External != nil {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.External.Size()))
|
|
|
|
n19, err := m.External.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n19
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MetricStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
|
|
|
if m.Object != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n20, err := m.Object.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n20
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if m.Pods != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n21, err := m.Pods.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n21
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if m.Resource != nil {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n22, err := m.Resource.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n22
|
|
|
|
}
|
|
|
|
if m.External != nil {
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.External.Size()))
|
|
|
|
n23, err := m.External.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n23
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n24, err := m.Target.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n24
|
2017-11-20 09:30:52 -05:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetValue.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n25, err := m.TargetValue.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n25
|
2017-11-20 09:30:52 -05:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n26, err := m.Target.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n26
|
2017-11-20 09:30:52 -05:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentValue.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n27, err := m.CurrentValue.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n27
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodResourcePolicy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodResourcePolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.ContainerPolicies) > 0 {
|
|
|
|
for _, msg := range m.ContainerPolicies {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodUpdatePolicy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodUpdatePolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.UpdateMode != nil {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.UpdateMode)))
|
|
|
|
i += copy(dAtA[i:], *m.UpdateMode)
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n28, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n28
|
2017-11-20 09:30:52 -05:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
|
2018-07-25 04:17:02 -04:00
|
|
|
n29, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
|
2017-11-20 09:30:52 -05:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n29
|
2017-11-20 09:30:52 -05:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *RecommendedContainerResources) Marshal() (dAtA []byte, err error) {
|
2017-11-20 09:30:52 -05:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *RecommendedContainerResources) MarshalTo(dAtA []byte) (int, error) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
2018-07-25 04:17:02 -04:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName)))
|
|
|
|
i += copy(dAtA[i:], m.ContainerName)
|
|
|
|
if len(m.Target) > 0 {
|
|
|
|
keysForTarget := make([]string, 0, len(m.Target))
|
|
|
|
for k := range m.Target {
|
|
|
|
keysForTarget = append(keysForTarget, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForTarget)
|
|
|
|
for _, k := range keysForTarget {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
v := m.Target[k8s_io_api_core_v1.ResourceName(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovGenerated(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
|
|
|
|
n30, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n30
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if len(m.LowerBound) > 0 {
|
|
|
|
keysForLowerBound := make([]string, 0, len(m.LowerBound))
|
|
|
|
for k := range m.LowerBound {
|
|
|
|
keysForLowerBound = append(keysForLowerBound, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForLowerBound)
|
|
|
|
for _, k := range keysForLowerBound {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
v := m.LowerBound[k8s_io_api_core_v1.ResourceName(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovGenerated(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
|
|
|
|
n31, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n31
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.UpperBound) > 0 {
|
|
|
|
keysForUpperBound := make([]string, 0, len(m.UpperBound))
|
|
|
|
for k := range m.UpperBound {
|
|
|
|
keysForUpperBound = append(keysForUpperBound, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForUpperBound)
|
|
|
|
for _, k := range keysForUpperBound {
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
v := m.UpperBound[k8s_io_api_core_v1.ResourceName(k)]
|
|
|
|
msgSize := 0
|
|
|
|
if (&v) != nil {
|
|
|
|
msgSize = (&v).Size()
|
|
|
|
msgSize += 1 + sovGenerated(uint64(msgSize))
|
|
|
|
}
|
|
|
|
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
|
|
|
|
i += copy(dAtA[i:], k)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
|
|
|
|
n32, err := (&v).MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n32
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *RecommendedPodResources) Marshal() (dAtA []byte, err error) {
|
2017-11-20 09:30:52 -05:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *RecommendedPodResources) MarshalTo(dAtA []byte) (int, error) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
if len(m.ContainerRecommendations) > 0 {
|
|
|
|
for _, msg := range m.ContainerRecommendations {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
return dAtA[:n], nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
|
|
|
if m.TargetAverageUtilization != nil {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetAverageUtilization))
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
|
|
|
|
n33, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n33
|
|
|
|
}
|
|
|
|
return i, nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
|
|
|
if m.CurrentAverageUtilization != nil {
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentAverageUtilization))
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
|
|
|
|
n34, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n34
|
|
|
|
return i, nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscaler) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
return dAtA[:n], nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
|
|
|
|
n35, err := m.ObjectMeta.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n35
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
|
|
|
|
n36, err := m.Spec.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n36
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
|
|
|
|
n37, err := m.Status.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n37
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
return dAtA[:n], nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i += copy(dAtA[i:], m.Status)
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size()))
|
|
|
|
n38, err := m.LastTransitionTime.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n38
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i += copy(dAtA[i:], m.Reason)
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
|
|
|
i += copy(dAtA[i:], m.Message)
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
return dAtA[:n], nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
|
|
|
|
n39, err := m.ListMeta.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
i += n39
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, msg := range m.Items {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Selector != nil {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size()))
|
|
|
|
n40, err := m.Selector.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n40
|
|
|
|
}
|
|
|
|
if m.UpdatePolicy != nil {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatePolicy.Size()))
|
|
|
|
n41, err := m.UpdatePolicy.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n41
|
|
|
|
}
|
|
|
|
if m.ResourcePolicy != nil {
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ResourcePolicy.Size()))
|
|
|
|
n42, err := m.ResourcePolicy.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n42
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Recommendation != nil {
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Recommendation.Size()))
|
|
|
|
n43, err := m.Recommendation.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n43
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, msg := range m.Conditions {
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i++
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
dAtA[offset+4] = uint8(v >> 32)
|
|
|
|
dAtA[offset+5] = uint8(v >> 40)
|
|
|
|
dAtA[offset+6] = uint8(v >> 48)
|
|
|
|
dAtA[offset+7] = uint8(v >> 56)
|
|
|
|
return offset + 8
|
|
|
|
}
|
|
|
|
func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
dAtA[offset+1] = uint8(v >> 8)
|
|
|
|
dAtA[offset+2] = uint8(v >> 16)
|
|
|
|
dAtA[offset+3] = uint8(v >> 24)
|
|
|
|
return offset + 4
|
|
|
|
}
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
return offset + 1
|
|
|
|
}
|
|
|
|
func (m *ContainerResourcePolicy) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ContainerName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Mode != nil {
|
|
|
|
l = len(*m.Mode)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if len(m.MinAllowed) > 0 {
|
|
|
|
for k, v := range m.MinAllowed {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.MaxAllowed) > 0 {
|
|
|
|
for k, v := range m.MaxAllowed {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *CrossVersionObjectReference) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.Kind)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.Name)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.APIVersion)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ExternalMetricSource) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.MetricName)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.MetricSelector != nil {
|
|
|
|
l = m.MetricSelector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.TargetValue != nil {
|
|
|
|
l = m.TargetValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
|
|
|
l = m.TargetAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ExternalMetricStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-11-20 09:30:52 -05:00
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.MetricSelector != nil {
|
|
|
|
l = m.MetricSelector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
l = m.CurrentValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.CurrentAverageValue != nil {
|
|
|
|
l = m.CurrentAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *HorizontalPodAutoscaler) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = m.ObjectMeta.Size()
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.Type)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *HorizontalPodAutoscalerList) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = m.ListMeta.Size()
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) Size() (n int) {
|
2017-11-20 09:30:52 -05:00
|
|
|
var l int
|
|
|
|
_ = l
|
2018-07-25 04:17:02 -04:00
|
|
|
l = m.ScaleTargetRef.Size()
|
2017-11-20 09:30:52 -05:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.MinReplicas != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.MinReplicas))
|
|
|
|
}
|
|
|
|
n += 1 + sovGenerated(uint64(m.MaxReplicas))
|
|
|
|
if len(m.Metrics) > 0 {
|
|
|
|
for _, e := range m.Metrics {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.ObservedGeneration != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.ObservedGeneration))
|
|
|
|
}
|
|
|
|
if m.LastScaleTime != nil {
|
|
|
|
l = m.LastScaleTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
n += 1 + sovGenerated(uint64(m.CurrentReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.DesiredReplicas))
|
|
|
|
if len(m.CurrentMetrics) > 0 {
|
|
|
|
for _, e := range m.CurrentMetrics {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
|
|
|
|
func (m *MetricSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Object != nil {
|
|
|
|
l = m.Object.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.Pods != nil {
|
|
|
|
l = m.Pods.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.Resource != nil {
|
|
|
|
l = m.Resource.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.External != nil {
|
|
|
|
l = m.External.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
|
|
|
|
func (m *MetricStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Object != nil {
|
|
|
|
l = m.Object.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Pods != nil {
|
|
|
|
l = m.Pods.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Resource != nil {
|
|
|
|
l = m.Resource.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.External != nil {
|
|
|
|
l = m.External.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricSource) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Target.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.TargetValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ObjectMetricStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Target.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.CurrentValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodResourcePolicy) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.ContainerPolicies) > 0 {
|
|
|
|
for _, e := range m.ContainerPolicies {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodUpdatePolicy) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.UpdateMode != nil {
|
|
|
|
l = len(*m.UpdateMode)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricSource) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.TargetAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodsMetricStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.CurrentAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RecommendedContainerResources) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.ContainerName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Target) > 0 {
|
|
|
|
for k, v := range m.Target {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.LowerBound) > 0 {
|
|
|
|
for k, v := range m.LowerBound {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.UpperBound) > 0 {
|
|
|
|
for k, v := range m.UpperBound {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RecommendedPodResources) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.ContainerRecommendations) > 0 {
|
|
|
|
for _, e := range m.ContainerRecommendations {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResourceMetricSource) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.TargetAverageUtilization != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization))
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
|
|
|
l = m.TargetAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResourceMetricStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.CurrentAverageUtilization != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization))
|
|
|
|
}
|
|
|
|
l = m.CurrentAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscaler) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerCondition) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerList) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerSpec) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.UpdatePolicy != nil {
|
|
|
|
l = m.UpdatePolicy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.ResourcePolicy != nil {
|
|
|
|
l = m.ResourcePolicy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *VerticalPodAutoscalerStatus) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Recommendation != nil {
|
|
|
|
l = m.Recommendation.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
|
|
|
for {
|
|
|
|
n++
|
|
|
|
x >>= 7
|
|
|
|
if x == 0 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *ContainerResourcePolicy) String() string {
|
2017-11-20 09:30:52 -05:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
keysForMinAllowed := make([]string, 0, len(this.MinAllowed))
|
|
|
|
for k := range this.MinAllowed {
|
|
|
|
keysForMinAllowed = append(keysForMinAllowed, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMinAllowed)
|
|
|
|
mapStringForMinAllowed := "k8s_io_api_core_v1.ResourceList{"
|
|
|
|
for _, k := range keysForMinAllowed {
|
|
|
|
mapStringForMinAllowed += fmt.Sprintf("%v: %v,", k, this.MinAllowed[k8s_io_api_core_v1.ResourceName(k)])
|
|
|
|
}
|
|
|
|
mapStringForMinAllowed += "}"
|
|
|
|
keysForMaxAllowed := make([]string, 0, len(this.MaxAllowed))
|
|
|
|
for k := range this.MaxAllowed {
|
|
|
|
keysForMaxAllowed = append(keysForMaxAllowed, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForMaxAllowed)
|
|
|
|
mapStringForMaxAllowed := "k8s_io_api_core_v1.ResourceList{"
|
|
|
|
for _, k := range keysForMaxAllowed {
|
|
|
|
mapStringForMaxAllowed += fmt.Sprintf("%v: %v,", k, this.MaxAllowed[k8s_io_api_core_v1.ResourceName(k)])
|
|
|
|
}
|
|
|
|
mapStringForMaxAllowed += "}"
|
|
|
|
s := strings.Join([]string{`&ContainerResourcePolicy{`,
|
|
|
|
`ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`,
|
|
|
|
`Mode:` + valueToStringGenerated(this.Mode) + `,`,
|
|
|
|
`MinAllowed:` + mapStringForMinAllowed + `,`,
|
|
|
|
`MaxAllowed:` + mapStringForMaxAllowed + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (this *CrossVersionObjectReference) String() string {
|
2017-11-20 09:30:52 -05:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
s := strings.Join([]string{`&CrossVersionObjectReference{`,
|
|
|
|
`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (this *ExternalMetricSource) String() string {
|
2017-11-20 09:30:52 -05:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
s := strings.Join([]string{`&ExternalMetricSource{`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
|
|
|
|
`TargetValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
|
|
|
|
`TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (this *ExternalMetricStatus) String() string {
|
2017-11-20 09:30:52 -05:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
s := strings.Join([]string{`&ExternalMetricStatus{`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
|
|
|
|
`CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`CurrentAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HorizontalPodAutoscaler) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscaler{`,
|
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HorizontalPodAutoscalerCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscalerCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HorizontalPodAutoscalerList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscalerList{`,
|
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HorizontalPodAutoscalerSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`,
|
|
|
|
`ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
|
|
|
|
`MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`,
|
|
|
|
`MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`,
|
|
|
|
`Metrics:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Metrics), "MetricSpec", "MetricSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HorizontalPodAutoscalerStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`,
|
|
|
|
`ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`,
|
|
|
|
`CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`,
|
|
|
|
`DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`,
|
|
|
|
`CurrentMetrics:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentMetrics), "MetricStatus", "MetricStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "HorizontalPodAutoscalerCondition", "HorizontalPodAutoscalerCondition", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *MetricSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&MetricSpec{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`,
|
|
|
|
`Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricSource", "PodsMetricSource", 1) + `,`,
|
|
|
|
`Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`,
|
2018-07-25 04:17:02 -04:00
|
|
|
`External:` + strings.Replace(fmt.Sprintf("%v", this.External), "ExternalMetricSource", "ExternalMetricSource", 1) + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *MetricStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&MetricStatus{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Object:` + strings.Replace(fmt.Sprintf("%v", this.Object), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`,
|
|
|
|
`Pods:` + strings.Replace(fmt.Sprintf("%v", this.Pods), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`,
|
|
|
|
`Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`,
|
2018-07-25 04:17:02 -04:00
|
|
|
`External:` + strings.Replace(fmt.Sprintf("%v", this.External), "ExternalMetricStatus", "ExternalMetricStatus", 1) + `,`,
|
2017-11-20 09:30:52 -05:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ObjectMetricSource) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ObjectMetricSource{`,
|
|
|
|
`Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`TargetValue:` + strings.Replace(strings.Replace(this.TargetValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ObjectMetricStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ObjectMetricStatus{`,
|
|
|
|
`Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`CurrentValue:` + strings.Replace(strings.Replace(this.CurrentValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (this *PodResourcePolicy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodResourcePolicy{`,
|
|
|
|
`ContainerPolicies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ContainerPolicies), "ContainerResourcePolicy", "ContainerResourcePolicy", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodUpdatePolicy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodUpdatePolicy{`,
|
|
|
|
`UpdateMode:` + valueToStringGenerated(this.UpdateMode) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
func (this *PodsMetricSource) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodsMetricSource{`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`TargetAverageValue:` + strings.Replace(strings.Replace(this.TargetAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodsMetricStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodsMetricStatus{`,
|
|
|
|
`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
|
|
|
|
`CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (this *RecommendedContainerResources) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
keysForTarget := make([]string, 0, len(this.Target))
|
|
|
|
for k := range this.Target {
|
|
|
|
keysForTarget = append(keysForTarget, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForTarget)
|
|
|
|
mapStringForTarget := "k8s_io_api_core_v1.ResourceList{"
|
|
|
|
for _, k := range keysForTarget {
|
|
|
|
mapStringForTarget += fmt.Sprintf("%v: %v,", k, this.Target[k8s_io_api_core_v1.ResourceName(k)])
|
|
|
|
}
|
|
|
|
mapStringForTarget += "}"
|
|
|
|
keysForLowerBound := make([]string, 0, len(this.LowerBound))
|
|
|
|
for k := range this.LowerBound {
|
|
|
|
keysForLowerBound = append(keysForLowerBound, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForLowerBound)
|
|
|
|
mapStringForLowerBound := "k8s_io_api_core_v1.ResourceList{"
|
|
|
|
for _, k := range keysForLowerBound {
|
|
|
|
mapStringForLowerBound += fmt.Sprintf("%v: %v,", k, this.LowerBound[k8s_io_api_core_v1.ResourceName(k)])
|
|
|
|
}
|
|
|
|
mapStringForLowerBound += "}"
|
|
|
|
keysForUpperBound := make([]string, 0, len(this.UpperBound))
|
|
|
|
for k := range this.UpperBound {
|
|
|
|
keysForUpperBound = append(keysForUpperBound, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForUpperBound)
|
|
|
|
mapStringForUpperBound := "k8s_io_api_core_v1.ResourceList{"
|
|
|
|
for _, k := range keysForUpperBound {
|
|
|
|
mapStringForUpperBound += fmt.Sprintf("%v: %v,", k, this.UpperBound[k8s_io_api_core_v1.ResourceName(k)])
|
|
|
|
}
|
|
|
|
mapStringForUpperBound += "}"
|
|
|
|
s := strings.Join([]string{`&RecommendedContainerResources{`,
|
|
|
|
`ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`,
|
|
|
|
`Target:` + mapStringForTarget + `,`,
|
|
|
|
`LowerBound:` + mapStringForLowerBound + `,`,
|
|
|
|
`UpperBound:` + mapStringForUpperBound + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RecommendedPodResources) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&RecommendedPodResources{`,
|
|
|
|
`ContainerRecommendations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ContainerRecommendations), "RecommendedContainerResources", "RecommendedContainerResources", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
func (this *ResourceMetricSource) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ResourceMetricSource{`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`,
|
|
|
|
`TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ResourceMetricStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
s := strings.Join([]string{`&ResourceMetricStatus{`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`CurrentAverageUtilization:` + valueToStringGenerated(this.CurrentAverageUtilization) + `,`,
|
|
|
|
`CurrentAverageValue:` + strings.Replace(strings.Replace(this.CurrentAverageValue.String(), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VerticalPodAutoscaler) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VerticalPodAutoscaler{`,
|
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VerticalPodAutoscalerSpec", "VerticalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "VerticalPodAutoscalerStatus", "VerticalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VerticalPodAutoscalerCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VerticalPodAutoscalerCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VerticalPodAutoscalerList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VerticalPodAutoscalerList{`,
|
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "VerticalPodAutoscaler", "VerticalPodAutoscaler", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VerticalPodAutoscalerSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VerticalPodAutoscalerSpec{`,
|
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
|
|
|
|
`UpdatePolicy:` + strings.Replace(fmt.Sprintf("%v", this.UpdatePolicy), "PodUpdatePolicy", "PodUpdatePolicy", 1) + `,`,
|
|
|
|
`ResourcePolicy:` + strings.Replace(fmt.Sprintf("%v", this.ResourcePolicy), "PodResourcePolicy", "PodResourcePolicy", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *VerticalPodAutoscalerStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&VerticalPodAutoscalerStatus{`,
|
|
|
|
`Recommendation:` + strings.Replace(fmt.Sprintf("%v", this.Recommendation), "RecommendedPodResources", "RecommendedPodResources", 1) + `,`,
|
|
|
|
`Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "VerticalPodAutoscalerCondition", "VerticalPodAutoscalerCondition", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
|
|
|
func (m *ContainerResourcePolicy) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ContainerResourcePolicy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ContainerResourcePolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.ContainerName = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := ContainerScalingMode(dAtA[iNdEx:postIndex])
|
|
|
|
m.Mode = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinAllowed", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
var keykey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey := k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
if m.MinAllowed == nil {
|
|
|
|
m.MinAllowed = make(k8s_io_api_core_v1.ResourceList)
|
|
|
|
}
|
|
|
|
if iNdEx < postIndex {
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue := &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
|
|
|
m.MinAllowed[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
|
|
} else {
|
|
|
|
var mapvalue k8s_io_apimachinery_pkg_api_resource.Quantity
|
|
|
|
m.MinAllowed[k8s_io_api_core_v1.ResourceName(mapkey)] = mapvalue
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowed", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
var keykey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey := k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
if m.MaxAllowed == nil {
|
|
|
|
m.MaxAllowed = make(k8s_io_api_core_v1.ResourceList)
|
|
|
|
}
|
|
|
|
if iNdEx < postIndex {
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue := &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
|
|
|
m.MaxAllowed[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
|
|
} else {
|
|
|
|
var mapvalue k8s_io_apimachinery_pkg_api_resource.Quantity
|
|
|
|
m.MaxAllowed[k8s_io_api_core_v1.ResourceName(mapkey)] = mapvalue
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Kind = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.APIVersion = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ExternalMetricSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ExternalMetricSource: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ExternalMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MetricSelector == nil {
|
|
|
|
m.MetricSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
|
|
|
|
}
|
|
|
|
if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.TargetValue == nil {
|
|
|
|
m.TargetValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
}
|
|
|
|
if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue == nil {
|
|
|
|
m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
}
|
|
|
|
if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ExternalMetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ExternalMetricStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ExternalMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MetricSelector == nil {
|
|
|
|
m.MetricSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
|
|
|
|
}
|
|
|
|
if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.CurrentAverageValue == nil {
|
|
|
|
m.CurrentAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
}
|
|
|
|
if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = HorizontalPodAutoscalerConditionType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, HorizontalPodAutoscaler{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.MinReplicas = &v
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.MaxReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.MaxReplicas |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Metrics = append(m.Metrics, MetricSpec{})
|
|
|
|
if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
var v int64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = &v
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.LastScaleTime == nil {
|
|
|
|
m.LastScaleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
|
|
|
|
}
|
|
|
|
if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.CurrentReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.CurrentReplicas |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.DesiredReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.DesiredReplicas |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentMetrics", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.CurrentMetrics = append(m.CurrentMetrics, MetricStatus{})
|
|
|
|
if err := m.CurrentMetrics[len(m.CurrentMetrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, HorizontalPodAutoscalerCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *MetricSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Object == nil {
|
|
|
|
m.Object = &ObjectMetricSource{}
|
|
|
|
}
|
|
|
|
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Pods == nil {
|
|
|
|
m.Pods = &PodsMetricSource{}
|
|
|
|
}
|
|
|
|
if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Resource == nil {
|
|
|
|
m.Resource = &ResourceMetricSource{}
|
|
|
|
}
|
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field External", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.External == nil {
|
|
|
|
m.External = &ExternalMetricSource{}
|
|
|
|
}
|
|
|
|
if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *MetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Object == nil {
|
|
|
|
m.Object = &ObjectMetricStatus{}
|
|
|
|
}
|
|
|
|
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Pods == nil {
|
|
|
|
m.Pods = &PodsMetricStatus{}
|
|
|
|
}
|
|
|
|
if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Resource == nil {
|
|
|
|
m.Resource = &ResourceMetricStatus{}
|
|
|
|
}
|
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field External", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.External == nil {
|
|
|
|
m.External = &ExternalMetricStatus{}
|
|
|
|
}
|
|
|
|
if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
return nil
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLen uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *PodResourcePolicy) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: PodResourcePolicy: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: PodResourcePolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ContainerPolicies", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.ContainerPolicies = append(m.ContainerPolicies, ContainerResourcePolicy{})
|
|
|
|
if err := m.ContainerPolicies[len(m.ContainerPolicies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
2018-07-25 04:17:02 -04:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodUpdatePolicy) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodUpdatePolicy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodUpdatePolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdateMode", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
s := UpdateMode(dAtA[iNdEx:postIndex])
|
|
|
|
m.UpdateMode = &s
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
2018-07-25 04:17:02 -04:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if skippy < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodsMetricSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
2017-11-20 09:30:52 -05:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
2018-07-25 04:17:02 -04:00
|
|
|
case 2:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLen uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *RecommendedContainerResources) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: RecommendedContainerResources: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: RecommendedContainerResources: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLen uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.ContainerName = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2018-07-25 04:17:02 -04:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
var keykey uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey := k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
if m.Target == nil {
|
|
|
|
m.Target = make(k8s_io_api_core_v1.ResourceList)
|
|
|
|
}
|
|
|
|
if iNdEx < postIndex {
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapvalue := &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
|
|
|
m.Target[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
|
|
} else {
|
|
|
|
var mapvalue k8s_io_apimachinery_pkg_api_resource.Quantity
|
|
|
|
m.Target[k8s_io_api_core_v1.ResourceName(mapkey)] = mapvalue
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LowerBound", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var keykey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
2017-11-20 09:30:52 -05:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
mapkey := k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
if m.LowerBound == nil {
|
|
|
|
m.LowerBound = make(k8s_io_api_core_v1.ResourceList)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if iNdEx < postIndex {
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
2017-11-20 09:30:52 -05:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
mapvalue := &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx = postmsgIndex
|
|
|
|
m.LowerBound[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
|
|
} else {
|
|
|
|
var mapvalue k8s_io_apimachinery_pkg_api_resource.Quantity
|
|
|
|
m.LowerBound[k8s_io_api_core_v1.ResourceName(mapkey)] = mapvalue
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpperBound", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var keykey uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
keykey |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLenmapkey uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLenmapkey |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
|
if postStringIndexmapkey > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
mapkey := k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
if m.UpperBound == nil {
|
|
|
|
m.UpperBound = make(k8s_io_api_core_v1.ResourceList)
|
|
|
|
}
|
|
|
|
if iNdEx < postIndex {
|
|
|
|
var valuekey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
valuekey |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
mapmsglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
2017-11-20 09:30:52 -05:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
mapvalue := &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx = postmsgIndex
|
|
|
|
m.UpperBound[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
|
|
} else {
|
|
|
|
var mapvalue k8s_io_apimachinery_pkg_api_resource.Quantity
|
|
|
|
m.UpperBound[k8s_io_api_core_v1.ResourceName(mapkey)] = mapvalue
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if (iNdEx + skippy) > l {
|
2017-11-20 09:30:52 -05:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RecommendedPodResources) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RecommendedPodResources: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RecommendedPodResources: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ContainerRecommendations", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.ContainerRecommendations = append(m.ContainerRecommendations, RecommendedContainerResources{})
|
|
|
|
if err := m.ContainerRecommendations[len(m.ContainerRecommendations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2018-07-25 04:17:02 -04:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var v int32
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
v |= (int32(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.TargetAverageUtilization = &v
|
2017-11-20 09:30:52 -05:00
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.TargetAverageValue == nil {
|
|
|
|
m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2018-07-25 04:17:02 -04:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var v int32
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
v |= (int32(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.CurrentAverageUtilization = &v
|
|
|
|
case 3:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscaler) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscaler: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerCondition) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerCondition: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLen uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Type = VerticalPodAutoscalerConditionType(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2018-07-25 04:17:02 -04:00
|
|
|
case 4:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
2018-07-25 04:17:02 -04:00
|
|
|
case 5:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var stringLen uint64
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerList) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerList: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Items = append(m.Items, VerticalPodAutoscaler{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerSpec) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerSpec: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.Selector == nil {
|
|
|
|
m.Selector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
|
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2017-11-20 09:30:52 -05:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2018-07-25 04:17:02 -04:00
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatePolicy", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.UpdatePolicy == nil {
|
|
|
|
m.UpdatePolicy = &PodUpdatePolicy{}
|
|
|
|
}
|
|
|
|
if err := m.UpdatePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2017-11-20 09:30:52 -05:00
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ResourcePolicy", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.ResourcePolicy == nil {
|
|
|
|
m.ResourcePolicy = &PodResourcePolicy{}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.ResourcePolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
func (m *VerticalPodAutoscalerStatus) Unmarshal(dAtA []byte) error {
|
2017-11-20 09:30:52 -05:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerStatus: wiretype end group for non-group")
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: VerticalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Recommendation", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
var msglen int
|
2017-11-20 09:30:52 -05:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2018-07-25 04:17:02 -04:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-11-20 09:30:52 -05:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if msglen < 0 {
|
2017-11-20 09:30:52 -05:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
postIndex := iNdEx + msglen
|
2017-11-20 09:30:52 -05:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if m.Recommendation == nil {
|
|
|
|
m.Recommendation = &RecommendedPodResources{}
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
if err := m.Recommendation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2017-11-20 09:30:52 -05:00
|
|
|
if wireType != 2 {
|
2018-07-25 04:17:02 -04:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2018-07-25 04:17:02 -04:00
|
|
|
m.Conditions = append(m.Conditions, VerticalPodAutoscalerCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-11-20 09:30:52 -05:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
return iNdEx, nil
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 3:
|
|
|
|
for {
|
|
|
|
var innerWire uint64
|
|
|
|
var start int = iNdEx
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
next, err := skipGenerated(dAtA[start:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
iNdEx = start + next
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 4:
|
|
|
|
return iNdEx, nil
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
return iNdEx, nil
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/autoscaling/v2beta1/generated.proto", fileDescriptorGenerated)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptorGenerated = []byte{
|
2018-07-25 04:17:02 -04:00
|
|
|
// 2044 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xdd, 0x6f, 0x1c, 0x57,
|
|
|
|
0x15, 0xf7, 0xec, 0xae, 0x1d, 0xf7, 0xd8, 0xb1, 0x9d, 0x9b, 0xb4, 0xde, 0x38, 0x64, 0xd7, 0x1a,
|
|
|
|
0x21, 0x54, 0x2a, 0x3a, 0xdb, 0xb8, 0x29, 0x2d, 0x84, 0x22, 0xbc, 0xdb, 0x36, 0x8d, 0xf0, 0x36,
|
|
|
|
0xe6, 0xda, 0x8e, 0xaa, 0x7e, 0x20, 0xc6, 0x33, 0x37, 0x9b, 0xc1, 0x3b, 0x73, 0x57, 0x33, 0x77,
|
|
|
|
0xdd, 0x38, 0x08, 0xa9, 0x20, 0xc1, 0x33, 0x0f, 0x50, 0x1e, 0x78, 0xe1, 0x19, 0xc1, 0x2b, 0x79,
|
|
|
|
0xe0, 0xa9, 0x48, 0x88, 0x3c, 0xe6, 0x05, 0xa9, 0x08, 0x69, 0x21, 0xcb, 0x7f, 0x00, 0x6f, 0x79,
|
|
|
|
0x42, 0xf7, 0x63, 0x3e, 0x77, 0xc7, 0xbb, 0x59, 0xaf, 0x03, 0x48, 0x7d, 0xdb, 0xb9, 0xf7, 0x9c,
|
|
|
|
0xdf, 0xf9, 0xbc, 0xe7, 0xde, 0x73, 0x16, 0xae, 0x1f, 0xbc, 0x16, 0x18, 0x0e, 0xad, 0x1d, 0x74,
|
|
|
|
0xf7, 0x89, 0xef, 0x11, 0x46, 0x82, 0xda, 0x21, 0xf1, 0x6c, 0xea, 0xd7, 0xd4, 0x86, 0xd9, 0x71,
|
|
|
|
0x6a, 0x66, 0x97, 0xd1, 0xc0, 0x32, 0xdb, 0x8e, 0xd7, 0xaa, 0x1d, 0x6e, 0xec, 0x13, 0x66, 0x5e,
|
|
|
|
0xa9, 0xb5, 0x88, 0x47, 0x7c, 0x93, 0x11, 0xdb, 0xe8, 0xf8, 0x94, 0x51, 0x54, 0x91, 0xf4, 0x86,
|
|
|
|
0xd9, 0x71, 0x8c, 0x04, 0xbd, 0xa1, 0xe8, 0xd7, 0x5e, 0x6c, 0x39, 0xec, 0x4e, 0x77, 0xdf, 0xb0,
|
|
|
|
0xa8, 0x5b, 0x6b, 0xd1, 0x16, 0xad, 0x09, 0xb6, 0xfd, 0xee, 0x6d, 0xf1, 0x25, 0x3e, 0xc4, 0x2f,
|
|
|
|
0x09, 0xb7, 0xa6, 0x27, 0xc4, 0x5b, 0xd4, 0x27, 0xb5, 0xc3, 0x01, 0x91, 0x6b, 0x57, 0x63, 0x1a,
|
|
|
|
0xd7, 0xb4, 0xee, 0x38, 0x1e, 0xf1, 0x8f, 0x6a, 0x9d, 0x83, 0x96, 0x60, 0xf2, 0x49, 0x40, 0xbb,
|
|
|
|
0xbe, 0x45, 0x9e, 0x88, 0x2b, 0xa8, 0xb9, 0x84, 0x99, 0xc3, 0x64, 0xd5, 0xf2, 0xb8, 0xfc, 0xae,
|
|
|
|
0xc7, 0x1c, 0x77, 0x50, 0xcc, 0x57, 0x47, 0x31, 0x04, 0xd6, 0x1d, 0xe2, 0x9a, 0x03, 0x7c, 0x2f,
|
|
|
|
0xe7, 0xf1, 0x75, 0x99, 0xd3, 0xae, 0x39, 0x1e, 0x0b, 0x98, 0x9f, 0x65, 0xd2, 0xff, 0x35, 0x0b,
|
|
|
|
0xab, 0x0d, 0xea, 0x31, 0x93, 0x93, 0x63, 0x65, 0xf9, 0x36, 0x6d, 0x3b, 0xd6, 0x11, 0xba, 0x06,
|
|
|
|
0x67, 0xad, 0x70, 0xeb, 0x1d, 0xd3, 0x25, 0x65, 0x6d, 0x5d, 0x7b, 0xfe, 0x99, 0xfa, 0xb3, 0x0f,
|
|
|
|
0x7a, 0xd5, 0x99, 0x7e, 0xaf, 0x7a, 0xb6, 0x91, 0xdc, 0xc4, 0x69, 0x5a, 0x74, 0x15, 0x4a, 0x2e,
|
|
|
|
0xb5, 0x49, 0xb9, 0x20, 0x78, 0xd6, 0xfb, 0xbd, 0x6a, 0xa9, 0x49, 0x6d, 0xf2, 0xb8, 0x57, 0xbd,
|
|
|
|
0x10, 0xf1, 0xed, 0xc8, 0x48, 0xf3, 0x75, 0x2c, 0xa8, 0xd1, 0xa7, 0x1a, 0x80, 0xeb, 0x78, 0x9b,
|
|
|
|
0xed, 0x36, 0xfd, 0x88, 0xd8, 0xe5, 0xe2, 0x7a, 0xf1, 0xf9, 0x85, 0x8d, 0xeb, 0xc6, 0xf1, 0x19,
|
|
|
|
0x62, 0xe4, 0x18, 0x60, 0x34, 0x23, 0xa4, 0x37, 0x3d, 0xe6, 0x1f, 0xd5, 0xdf, 0x55, 0x9a, 0x43,
|
|
|
|
0xbc, 0xf1, 0xb8, 0x57, 0xad, 0x0e, 0x26, 0x8c, 0x11, 0x02, 0x6d, 0x39, 0x01, 0xfb, 0xf1, 0xdf,
|
|
|
|
0x8f, 0x25, 0x11, 0xc6, 0x27, 0x94, 0x96, 0x36, 0x98, 0x77, 0x43, 0x1b, 0x4a, 0x27, 0xb4, 0x21,
|
|
|
|
0x42, 0xca, 0xda, 0x10, 0x6d, 0x4c, 0xcd, 0x86, 0x08, 0x71, 0xcd, 0x85, 0xe5, 0x8c, 0xf3, 0xd0,
|
|
|
|
0x0a, 0x14, 0x0f, 0xc8, 0x91, 0xcc, 0x01, 0xcc, 0x7f, 0xa2, 0x37, 0x60, 0xf6, 0xd0, 0x6c, 0x77,
|
|
|
|
0x65, 0x8c, 0x17, 0x36, 0x8c, 0x84, 0x89, 0x51, 0x02, 0x1a, 0x9d, 0x83, 0x96, 0xb0, 0x39, 0x3c,
|
|
|
|
0x55, 0xc6, 0x77, 0xba, 0xa6, 0xc7, 0x1c, 0x76, 0x84, 0x25, 0xf3, 0xd7, 0x0b, 0xaf, 0x69, 0x42,
|
|
|
|
0x5c, 0xda, 0xce, 0xd3, 0x14, 0xa7, 0xff, 0x42, 0x83, 0x4b, 0x0d, 0x9f, 0x06, 0xc1, 0x2d, 0xe2,
|
|
|
|
0x07, 0x0e, 0xf5, 0x6e, 0xee, 0x7f, 0x9f, 0x58, 0x0c, 0x93, 0xdb, 0xc4, 0x27, 0x9e, 0x45, 0xd0,
|
|
|
|
0x3a, 0x94, 0x0e, 0x1c, 0xcf, 0x56, 0xf9, 0xbe, 0xa8, 0x3c, 0x5e, 0xfa, 0xb6, 0xe3, 0xd9, 0x58,
|
|
|
|
0xec, 0x70, 0x0a, 0x8f, 0x9f, 0x88, 0x42, 0x9a, 0x42, 0xf8, 0x51, 0xec, 0xa0, 0x0d, 0x00, 0xb3,
|
|
|
|
0xe3, 0x28, 0x01, 0xe5, 0xa2, 0xa0, 0x43, 0x61, 0xec, 0x36, 0xb7, 0x6f, 0xa8, 0x1d, 0x9c, 0xa0,
|
|
|
|
0xd2, 0x3f, 0x29, 0xc2, 0x85, 0x37, 0xef, 0x32, 0xe2, 0x7b, 0x66, 0xbb, 0x49, 0x98, 0xef, 0x58,
|
|
|
|
0x3b, 0xc2, 0x08, 0x0e, 0xe6, 0x8a, 0xef, 0xc4, 0x31, 0x8c, 0xc0, 0x9a, 0xd1, 0x0e, 0x4e, 0x50,
|
|
|
|
0x21, 0x0a, 0x4b, 0xf2, 0x6b, 0x87, 0xb4, 0x89, 0xc5, 0xa8, 0xaf, 0xfc, 0xf6, 0xf2, 0x71, 0x7e,
|
|
|
|
0x0b, 0x0c, 0x5e, 0xc6, 0x8c, 0xc3, 0x2b, 0xc6, 0x96, 0xb9, 0x4f, 0xda, 0x21, 0x6b, 0x1d, 0xf5,
|
|
|
|
0x7b, 0xd5, 0xa5, 0x66, 0x0a, 0x0e, 0x67, 0xe0, 0x91, 0x09, 0x0b, 0xcc, 0xf4, 0x5b, 0x84, 0xdd,
|
|
|
|
0x12, 0x51, 0x2a, 0x4e, 0x12, 0xa5, 0xfa, 0x72, 0xbf, 0x57, 0x5d, 0xd8, 0x8d, 0x61, 0x70, 0x12,
|
|
|
|
0x13, 0x1d, 0x02, 0x92, 0x9f, 0x9b, 0x87, 0xc4, 0x37, 0x5b, 0x44, 0x4a, 0x2a, 0x4d, 0x24, 0xe9,
|
|
|
|
0xb9, 0x7e, 0xaf, 0x8a, 0x76, 0x07, 0xd0, 0xf0, 0x10, 0x09, 0xfa, 0xaf, 0x07, 0x03, 0xc3, 0x4c,
|
|
|
|
0xd6, 0x0d, 0xfe, 0x3f, 0x02, 0x73, 0x07, 0x16, 0xad, 0xae, 0xef, 0x13, 0xef, 0x44, 0x91, 0xb9,
|
|
|
|
0xa0, 0xcc, 0x5a, 0x6c, 0x24, 0xb0, 0x70, 0x0a, 0x19, 0x1d, 0xc1, 0x79, 0xf5, 0x3d, 0x85, 0x00,
|
|
|
|
0xad, 0xf6, 0x7b, 0xd5, 0xf3, 0x8d, 0x41, 0x38, 0x3c, 0x4c, 0x86, 0xfe, 0x69, 0x01, 0x56, 0xdf,
|
|
|
|
0xa6, 0xbe, 0x73, 0x8f, 0xd7, 0xd1, 0xf6, 0x36, 0xb5, 0x37, 0x55, 0x91, 0x25, 0x3e, 0xfa, 0x1e,
|
|
|
|
0xcc, 0x73, 0xef, 0xd9, 0x26, 0x33, 0x45, 0x8c, 0x16, 0x36, 0x5e, 0x1a, 0xcf, 0xd7, 0xb2, 0x30,
|
|
|
|
0x34, 0x09, 0x33, 0xe3, 0xa8, 0xc6, 0x6b, 0x38, 0x42, 0x45, 0x1f, 0x42, 0x29, 0xe8, 0x10, 0x4b,
|
|
|
|
0x45, 0xf2, 0xda, 0xa8, 0x62, 0x9f, 0xa3, 0xe8, 0x4e, 0x87, 0x58, 0x71, 0x31, 0xe1, 0x5f, 0x58,
|
|
|
|
0xc0, 0x22, 0x02, 0x73, 0x81, 0x48, 0x38, 0x15, 0xbb, 0xd7, 0x27, 0x15, 0x20, 0x40, 0xea, 0x4b,
|
|
|
|
0x4a, 0xc4, 0x9c, 0xfc, 0xc6, 0x0a, 0x5c, 0xff, 0x49, 0x11, 0xd6, 0x73, 0x38, 0x1b, 0xd4, 0xb3,
|
|
|
|
0x1d, 0xe6, 0x50, 0x0f, 0xbd, 0x0d, 0x25, 0x76, 0xd4, 0x09, 0x93, 0xfd, 0x6a, 0xa8, 0xed, 0xee,
|
|
|
|
0x51, 0x87, 0x5f, 0xee, 0x5f, 0x1c, 0xc5, 0xcf, 0xe9, 0xb0, 0x40, 0x40, 0x5b, 0x91, 0x55, 0x85,
|
|
|
|
0x14, 0x96, 0x52, 0xeb, 0x71, 0xaf, 0x3a, 0xe4, 0x2d, 0x67, 0x44, 0x48, 0x69, 0xe5, 0x79, 0x6d,
|
|
|
|
0x68, 0x9b, 0x01, 0xdb, 0xf5, 0x4d, 0x2f, 0x90, 0x92, 0x1c, 0x37, 0xcc, 0xf5, 0x17, 0xc6, 0x0b,
|
|
|
|
0x37, 0xe7, 0xa8, 0xaf, 0x29, 0x2d, 0xd0, 0xd6, 0x00, 0x1a, 0x1e, 0x22, 0x01, 0x7d, 0x09, 0xe6,
|
|
|
|
0x7c, 0x62, 0x06, 0xd4, 0x13, 0x69, 0xfe, 0x4c, 0xec, 0x5c, 0x2c, 0x56, 0xb1, 0xda, 0x45, 0x5f,
|
|
|
|
0x86, 0x33, 0x2e, 0x09, 0x02, 0xb3, 0x45, 0xca, 0xb3, 0x82, 0x70, 0x59, 0x11, 0x9e, 0x69, 0xca,
|
|
|
|
0x65, 0x1c, 0xee, 0xeb, 0x7f, 0xd5, 0xe0, 0x52, 0x8e, 0x1f, 0xf9, 0x65, 0x8e, 0x3e, 0x18, 0xc8,
|
|
|
|
0x67, 0x63, 0xcc, 0xda, 0xe1, 0x04, 0x32, 0x9b, 0x57, 0x94, 0xec, 0xf9, 0x70, 0x25, 0x91, 0xcb,
|
|
|
|
0x1f, 0xc0, 0xac, 0xc3, 0x88, 0xcb, 0xa3, 0xc2, 0x5f, 0x2e, 0xaf, 0x4e, 0x98, 0x6b, 0xf5, 0xb3,
|
|
|
|
0x4a, 0xc6, 0xec, 0x0d, 0x8e, 0x86, 0x25, 0xa8, 0xfe, 0xb7, 0x42, 0xae, 0x6d, 0x3c, 0xe1, 0xd1,
|
|
|
|
0x0f, 0x60, 0x49, 0x7c, 0xc9, 0xca, 0x8c, 0xc9, 0x6d, 0x65, 0xe1, 0xc8, 0x33, 0x75, 0xcc, 0x85,
|
|
|
|
0x5e, 0x7f, 0x4e, 0xa9, 0xb2, 0xb4, 0x93, 0x82, 0xc6, 0x19, 0x51, 0xe8, 0x0a, 0x2c, 0xb8, 0x8e,
|
|
|
|
0x87, 0x49, 0xa7, 0xed, 0x58, 0xa6, 0x4c, 0xcb, 0x59, 0x79, 0x25, 0x35, 0xe3, 0x65, 0x9c, 0xa4,
|
|
|
|
0x41, 0xaf, 0xc0, 0x82, 0x6b, 0xde, 0x8d, 0x58, 0x8a, 0x82, 0xe5, 0xbc, 0x92, 0xb7, 0xd0, 0x8c,
|
|
|
|
0xb7, 0x70, 0x92, 0x0e, 0xed, 0xf1, 0x6c, 0xe0, 0x55, 0x3a, 0x50, 0x0f, 0xc4, 0x17, 0x46, 0xd9,
|
|
|
|
0xa7, 0x8a, 0x3c, 0x2f, 0x11, 0x89, 0xcc, 0x11, 0x10, 0x38, 0xc4, 0xd2, 0x7f, 0x5f, 0x82, 0xcb,
|
|
|
|
0xc7, 0x9e, 0x7d, 0xf4, 0x16, 0x20, 0xba, 0x1f, 0x10, 0xff, 0x90, 0xd8, 0xd7, 0x65, 0x2f, 0xc0,
|
|
|
|
0xdf, 0x27, 0xdc, 0xc7, 0x45, 0x79, 0x25, 0xde, 0x1c, 0xd8, 0xc5, 0x43, 0x38, 0x90, 0x05, 0x67,
|
|
|
|
0xf9, 0x61, 0x90, 0x0e, 0x75, 0xdc, 0xf0, 0x55, 0xf6, 0x24, 0x27, 0xed, 0x1c, 0x6f, 0x22, 0xb6,
|
|
|
|
0x92, 0x20, 0x38, 0x8d, 0x89, 0x36, 0x61, 0x59, 0xd5, 0xfa, 0x8c, 0x83, 0x57, 0x95, 0x07, 0x96,
|
|
|
|
0x1b, 0xe9, 0x6d, 0x9c, 0xa5, 0xe7, 0x10, 0x36, 0x09, 0x1c, 0x9f, 0xd8, 0x11, 0x44, 0x29, 0x0d,
|
|
|
|
0xf1, 0x46, 0x7a, 0x1b, 0x67, 0xe9, 0x51, 0x1b, 0x96, 0x14, 0xaa, 0xf2, 0x77, 0x79, 0x56, 0x84,
|
|
|
|
0xec, 0x2b, 0x63, 0x86, 0x4c, 0x16, 0xdd, 0x28, 0x07, 0x1b, 0x29, 0x2c, 0x9c, 0xc1, 0x46, 0x0c,
|
|
|
|
0xc0, 0x0a, 0x4b, 0x5c, 0x50, 0x9e, 0x13, 0x92, 0xbe, 0x35, 0xe1, 0x19, 0x8c, 0x6a, 0x65, 0x7c,
|
|
|
|
0x7d, 0x45, 0x4b, 0x01, 0x4e, 0xc8, 0xd1, 0x7f, 0x53, 0x04, 0x88, 0x33, 0x8c, 0x77, 0x6f, 0x89,
|
|
|
|
0x22, 0xbf, 0x9e, 0x29, 0xf2, 0x2b, 0xc9, 0xc7, 0x69, 0xa2, 0xa0, 0xdf, 0x82, 0x39, 0x2a, 0x4e,
|
|
|
|
0x9e, 0x4a, 0x86, 0x8d, 0x51, 0x6a, 0x47, 0x77, 0x69, 0x84, 0x56, 0x07, 0x5e, 0x3a, 0xd5, 0xf9,
|
|
|
|
0x55, 0x68, 0xe8, 0x1d, 0x28, 0x75, 0xa8, 0x1d, 0x5e, 0x7e, 0x2f, 0x8d, 0x42, 0xdd, 0xa6, 0x76,
|
|
|
|
0x90, 0xc2, 0x9c, 0xe7, 0xba, 0xf3, 0x55, 0x2c, 0x70, 0xd0, 0x77, 0x61, 0x3e, 0x7c, 0x6e, 0xa8,
|
|
|
|
0xb7, 0xc9, 0xd5, 0x51, 0x98, 0x61, 0xa7, 0x94, 0xc2, 0x5d, 0xe4, 0x15, 0x34, 0xdc, 0xc1, 0x11,
|
|
|
|
0x26, 0xc7, 0x27, 0xea, 0xb5, 0x28, 0x6a, 0xfd, 0x18, 0xf8, 0xc3, 0x9e, 0xfd, 0x12, 0x3f, 0xdc,
|
|
|
|
0xc1, 0x11, 0xa6, 0xfe, 0xdb, 0x22, 0x2c, 0xa6, 0x9e, 0xa1, 0xff, 0x8d, 0x70, 0xc9, 0xac, 0x9e,
|
|
|
|
0x6e, 0xb8, 0x24, 0xe6, 0xf4, 0xc3, 0x25, 0x71, 0x4f, 0x2f, 0x5c, 0x09, 0xfc, 0x21, 0xe1, 0xfa,
|
|
|
|
0x79, 0x01, 0xd0, 0x60, 0xa6, 0x23, 0x0b, 0xe6, 0x64, 0xab, 0x31, 0x8d, 0x1b, 0x2e, 0x7a, 0x75,
|
|
|
|
0xa8, 0xcb, 0x4c, 0x41, 0x67, 0x1a, 0x94, 0xc2, 0x58, 0x0d, 0x0a, 0x99, 0x46, 0x23, 0x17, 0x5d,
|
|
|
|
0x81, 0x79, 0xcd, 0x9c, 0xfe, 0xcb, 0xac, 0x5b, 0x64, 0x2e, 0xff, 0xcf, 0xba, 0xe5, 0xa9, 0xb5,
|
|
|
|
0x51, 0xfa, 0x27, 0x1a, 0x9c, 0xdb, 0xa6, 0x76, 0x66, 0x1c, 0xf7, 0xb1, 0x06, 0xe7, 0xa2, 0x19,
|
|
|
|
0x9b, 0x58, 0x73, 0x48, 0x50, 0xd6, 0xc6, 0x7b, 0xa4, 0xe5, 0x8c, 0x97, 0xea, 0x17, 0x95, 0x3a,
|
|
|
|
0xe7, 0x1a, 0x59, 0x64, 0x3c, 0x28, 0x4c, 0xbf, 0x09, 0xcb, 0xdb, 0xd4, 0xde, 0xeb, 0xd8, 0x26,
|
|
|
|
0x0b, 0xb5, 0xfa, 0x06, 0x40, 0x57, 0x7c, 0x37, 0xa9, 0x1d, 0x16, 0xa0, 0x2f, 0x70, 0x2f, 0xee,
|
|
|
|
0x45, 0xab, 0x8f, 0x53, 0x5f, 0x38, 0x41, 0xaf, 0xff, 0x51, 0x83, 0x95, 0x6c, 0xb9, 0x9e, 0xa8,
|
|
|
|
0xa9, 0xbe, 0x37, 0x74, 0x32, 0x30, 0xd1, 0xa4, 0x28, 0xee, 0x00, 0xc6, 0x9c, 0x0e, 0xfc, 0x29,
|
|
|
|
0x6d, 0xc4, 0xe4, 0x93, 0x81, 0x1f, 0x0e, 0x6f, 0x9f, 0x27, 0xb3, 0xe2, 0x92, 0x12, 0x36, 0x7e,
|
|
|
|
0x0b, 0xfd, 0xef, 0x33, 0x70, 0x19, 0x13, 0x8b, 0xba, 0x2e, 0xf1, 0x6c, 0x62, 0x0f, 0xa4, 0x4c,
|
|
|
|
0x70, 0xb2, 0x89, 0xf0, 0x7d, 0x2d, 0x3a, 0xd9, 0xb2, 0xb3, 0xb8, 0x31, 0xba, 0x8a, 0x1f, 0xa3,
|
|
|
|
0x8c, 0x21, 0xa3, 0x23, 0xa7, 0xa2, 0xbb, 0xe9, 0x73, 0x3e, 0xa5, 0x89, 0x68, 0x58, 0x2d, 0xfe,
|
|
|
|
0xac, 0x01, 0xb4, 0xe9, 0x47, 0xc4, 0xaf, 0xd3, 0xae, 0x17, 0x4e, 0xa5, 0x9b, 0x27, 0xd3, 0x7e,
|
|
|
|
0x2b, 0xc2, 0xcb, 0xcc, 0x75, 0xe3, 0x8d, 0x69, 0xcd, 0x75, 0x63, 0xd5, 0x85, 0x25, 0xdd, 0x4e,
|
|
|
|
0x27, 0xb4, 0xa4, 0x34, 0x0d, 0x4b, 0xf6, 0x22, 0xbc, 0x8c, 0x25, 0xf1, 0xc6, 0xb4, 0x2c, 0x89,
|
|
|
|
0x55, 0x5f, 0x73, 0x60, 0x21, 0x91, 0x00, 0xa7, 0x3d, 0x9d, 0xce, 0x44, 0xeb, 0xb4, 0xc5, 0x65,
|
|
|
|
0x5c, 0x7a, 0xaa, 0xc3, 0xf0, 0xfb, 0x1a, 0xac, 0x26, 0x02, 0x9c, 0xb8, 0x77, 0x02, 0xf4, 0x2b,
|
|
|
|
0x0d, 0xca, 0x56, 0x1c, 0x71, 0x45, 0x64, 0xca, 0xd6, 0x44, 0xde, 0x3c, 0xaf, 0x9f, 0x28, 0x79,
|
|
|
|
0xa2, 0xb7, 0x6a, 0xb9, 0x91, 0x23, 0x06, 0xe7, 0x2a, 0xa0, 0xff, 0xae, 0x00, 0x17, 0x86, 0xbd,
|
|
|
|
0xcb, 0x51, 0x43, 0x4d, 0xe7, 0x65, 0x75, 0xaa, 0x25, 0xa7, 0xf3, 0x23, 0x32, 0x31, 0x31, 0xc0,
|
|
|
|
0x7f, 0x17, 0xca, 0xa9, 0x5a, 0xbf, 0xc7, 0x9c, 0xb6, 0x73, 0x4f, 0xb6, 0xcb, 0x72, 0x30, 0xc0,
|
|
|
|
0xaf, 0xb9, 0xf2, 0x6e, 0x0e, 0x0d, 0xce, 0xe5, 0xce, 0x99, 0x62, 0x17, 0x4f, 0x7d, 0x8a, 0x7d,
|
|
|
|
0x7f, 0xd0, 0x5f, 0xf2, 0xae, 0x9a, 0x8a, 0xbf, 0xde, 0x87, 0x8b, 0xe9, 0x4b, 0x65, 0xd0, 0x61,
|
|
|
|
0x97, 0xfb, 0xbd, 0xea, 0xc5, 0x46, 0x1e, 0x11, 0xce, 0xe7, 0xcf, 0xbb, 0x19, 0x8b, 0x4f, 0xe9,
|
|
|
|
0x66, 0xfc, 0x43, 0x01, 0x9e, 0xbd, 0x45, 0x7c, 0xe6, 0x58, 0x4f, 0x7f, 0xb4, 0xfc, 0x7e, 0x6a,
|
|
|
|
0xb4, 0xfc, 0xb5, 0x51, 0xc7, 0x6d, 0xa8, 0x9a, 0xb9, 0x83, 0x65, 0x2b, 0x33, 0x58, 0xbe, 0x36,
|
|
|
|
0x19, 0xfc, 0xf1, 0x63, 0xe5, 0x1f, 0x15, 0xa1, 0x32, 0x94, 0x2f, 0x1e, 0x2a, 0xbf, 0x95, 0x6a,
|
|
|
|
0x60, 0x37, 0x32, 0x0d, 0xac, 0x7e, 0x3c, 0xf7, 0xe7, 0x23, 0xe5, 0xd1, 0x23, 0xe5, 0xbf, 0x68,
|
|
|
|
0x70, 0x71, 0xa8, 0x17, 0x9f, 0xc2, 0x40, 0xf9, 0xbd, 0xf4, 0x40, 0xf9, 0x95, 0x89, 0x72, 0x2c,
|
|
|
|
0x67, 0x9c, 0xfc, 0xb0, 0x90, 0x63, 0x97, 0x18, 0x63, 0x7d, 0x08, 0xf3, 0x41, 0xf8, 0x27, 0x9b,
|
|
|
|
0x36, 0xf9, 0x9f, 0x6c, 0xa2, 0xb1, 0x8f, 0xfe, 0x5e, 0x8b, 0x20, 0x11, 0x81, 0xc5, 0x6e, 0xa2,
|
|
|
|
0x17, 0x52, 0x47, 0xb4, 0x36, 0xc6, 0xc0, 0x23, 0xd9, 0x42, 0xd5, 0x57, 0x78, 0x3b, 0x98, 0x5c,
|
|
|
|
0xc1, 0x29, 0x58, 0xe4, 0xc2, 0x92, 0x9f, 0xea, 0xda, 0x54, 0x0a, 0x5e, 0x19, 0x43, 0x50, 0xa6,
|
|
|
|
0xdd, 0x13, 0x7f, 0x17, 0xa6, 0xd7, 0x70, 0x06, 0x5c, 0xff, 0x69, 0x01, 0x2e, 0x1d, 0x73, 0xcc,
|
|
|
|
0x51, 0xc0, 0xd5, 0x49, 0xde, 0xc4, 0xca, 0xb5, 0xaf, 0x3e, 0xc1, 0x4b, 0x20, 0xf9, 0xca, 0x08,
|
|
|
|
0x95, 0x4a, 0x42, 0xe2, 0x8c, 0x08, 0xe4, 0xa7, 0xa6, 0xa2, 0x32, 0x91, 0xbe, 0x39, 0x51, 0x22,
|
|
|
|
0x8d, 0x3d, 0x13, 0xad, 0xbf, 0xf8, 0xe0, 0x51, 0x65, 0xe6, 0xe1, 0xa3, 0xca, 0xcc, 0x67, 0x8f,
|
|
|
|
0x2a, 0x33, 0x1f, 0xf7, 0x2b, 0xda, 0x83, 0x7e, 0x45, 0x7b, 0xd8, 0xaf, 0x68, 0x9f, 0xf5, 0x2b,
|
|
|
|
0xda, 0x3f, 0xfa, 0x15, 0xed, 0x67, 0xff, 0xac, 0xcc, 0xbc, 0x77, 0x46, 0x49, 0xfb, 0x4f, 0x00,
|
|
|
|
0x00, 0x00, 0xff, 0xff, 0x58, 0x06, 0x79, 0x35, 0x11, 0x25, 0x00, 0x00,
|
2017-11-20 09:30:52 -05:00
|
|
|
}
|