2017-02-01 00:45:59 +00:00
|
|
|
/*
|
|
|
|
Copyright 2017 The Kubernetes Authors.
|
|
|
|
|
|
|
|
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.
|
2017-06-06 07:19:04 +00:00
|
|
|
// source: k8s.io/kubernetes/pkg/apis/autoscaling/v2alpha1/generated.proto
|
2017-02-01 00:45:59 +00:00
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
2017-06-06 07:19:04 +00:00
|
|
|
Package v2alpha1 is a generated protocol buffer package.
|
2017-02-01 00:45:59 +00:00
|
|
|
|
|
|
|
It is generated from these files:
|
2017-06-06 07:19:04 +00:00
|
|
|
k8s.io/kubernetes/pkg/apis/autoscaling/v2alpha1/generated.proto
|
2017-02-01 00:45:59 +00:00
|
|
|
|
|
|
|
It has these top-level messages:
|
2017-06-06 07:19:04 +00:00
|
|
|
CrossVersionObjectReference
|
|
|
|
HorizontalPodAutoscaler
|
2017-08-04 11:13:19 +00:00
|
|
|
HorizontalPodAutoscalerCondition
|
2017-06-06 07:19:04 +00:00
|
|
|
HorizontalPodAutoscalerList
|
|
|
|
HorizontalPodAutoscalerSpec
|
|
|
|
HorizontalPodAutoscalerStatus
|
|
|
|
MetricSpec
|
|
|
|
MetricStatus
|
|
|
|
ObjectMetricSource
|
|
|
|
ObjectMetricStatus
|
|
|
|
PodsMetricSource
|
|
|
|
PodsMetricStatus
|
|
|
|
ResourceMetricSource
|
|
|
|
ResourceMetricStatus
|
2017-02-01 00:45:59 +00:00
|
|
|
*/
|
2017-06-06 07:19:04 +00:00
|
|
|
package v2alpha1
|
2017-02-01 00:45:59 +00:00
|
|
|
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
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_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1"
|
|
|
|
|
2017-02-01 00:45:59 +00: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.
|
2017-08-04 11:13:19 +00:00
|
|
|
// 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
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} }
|
|
|
|
func (*CrossVersionObjectReference) ProtoMessage() {}
|
|
|
|
func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{0}
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} }
|
|
|
|
func (*HorizontalPodAutoscaler) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} }
|
|
|
|
func (*HorizontalPodAutoscalerCondition) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptorGenerated, []int{2}
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} }
|
|
|
|
func (*HorizontalPodAutoscalerList) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) {
|
2017-08-04 11:13:19 +00:00
|
|
|
return fileDescriptorGenerated, []int{3}
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} }
|
|
|
|
func (*HorizontalPodAutoscalerSpec) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) {
|
2017-08-04 11:13:19 +00:00
|
|
|
return fileDescriptorGenerated, []int{4}
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} }
|
|
|
|
func (*HorizontalPodAutoscalerStatus) ProtoMessage() {}
|
|
|
|
func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) {
|
2017-08-04 11:13:19 +00:00
|
|
|
return fileDescriptorGenerated, []int{5}
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *MetricSpec) Reset() { *m = MetricSpec{} }
|
|
|
|
func (*MetricSpec) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *MetricStatus) Reset() { *m = MetricStatus{} }
|
|
|
|
func (*MetricStatus) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*MetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} }
|
|
|
|
func (*ObjectMetricSource) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*ObjectMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} }
|
|
|
|
func (*ObjectMetricStatus) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} }
|
|
|
|
func (*PodsMetricSource) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*PodsMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} }
|
|
|
|
func (*PodsMetricStatus) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*PodsMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} }
|
|
|
|
func (*ResourceMetricSource) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*ResourceMetricSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} }
|
|
|
|
func (*ResourceMetricStatus) ProtoMessage() {}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} }
|
2017-02-01 00:45:59 +00:00
|
|
|
|
|
|
|
func init() {
|
2017-06-06 07:19:04 +00:00
|
|
|
proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.CrossVersionObjectReference")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscaler")
|
2017-08-04 11:13:19 +00:00
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerCondition")
|
2017-06-06 07:19:04 +00:00
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerList")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerSpec")
|
|
|
|
proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerStatus")
|
|
|
|
proto.RegisterType((*MetricSpec)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.MetricSpec")
|
|
|
|
proto.RegisterType((*MetricStatus)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.MetricStatus")
|
|
|
|
proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.ObjectMetricSource")
|
|
|
|
proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.ObjectMetricStatus")
|
|
|
|
proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.PodsMetricSource")
|
|
|
|
proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.PodsMetricStatus")
|
|
|
|
proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.ResourceMetricSource")
|
|
|
|
proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.kubernetes.pkg.apis.autoscaling.v2alpha1.ResourceMetricStatus")
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
|
|
|
|
i += copy(dAtA[i:], m.Kind)
|
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
|
|
|
dAtA[i] = 0x1a
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
|
|
|
|
i += copy(dAtA[i:], m.APIVersion)
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
|
|
|
|
n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
i += n1
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
|
|
|
|
n2, err := m.Spec.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
i += n2
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x1a
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
|
|
|
|
n3, err := m.Status.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n3
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00: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
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size()))
|
|
|
|
n4, err := m.LastTransitionTime.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n4
|
2017-08-04 11:13:19 +00: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()))
|
|
|
|
n5, err := m.ListMeta.MarshalTo(dAtA[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n5
|
2017-06-06 07:19:04 +00:00
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, msg := range m.Items {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ScaleTargetRef.Size()))
|
|
|
|
n6, err := m.ScaleTargetRef.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n6
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.MinReplicas != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x10
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas))
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x18
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas))
|
2017-06-06 07:19:04 +00:00
|
|
|
if len(m.Metrics) > 0 {
|
|
|
|
for _, msg := range m.Metrics {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x22
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.ObservedGeneration != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x8
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration))
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.LastScaleTime != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.LastScaleTime.Size()))
|
|
|
|
n7, err := m.LastScaleTime.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n7
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x18
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas))
|
|
|
|
dAtA[i] = 0x20
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas))
|
2017-06-06 07:19:04 +00:00
|
|
|
if len(m.CurrentMetrics) > 0 {
|
|
|
|
for _, msg := range m.CurrentMetrics {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x2a
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
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:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricSpec) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Object != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
|
|
|
|
n8, err := m.Object.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n8
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.Pods != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x1a
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
|
|
|
|
n9, err := m.Pods.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n9
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.Resource != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x22
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
|
|
|
|
n10, err := m.Resource.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n10
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricStatus) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i += copy(dAtA[i:], m.Type)
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Object != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
|
|
|
|
n11, err := m.Object.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n11
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.Pods != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x1a
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Pods.Size()))
|
|
|
|
n12, err := m.Pods.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n12
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.Resource != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x22
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
|
|
|
|
n13, err := m.Resource.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n13
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
|
|
|
|
n14, err := m.Target.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n14
|
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x1a
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetValue.Size()))
|
|
|
|
n15, err := m.TargetValue.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n15
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size()))
|
|
|
|
n16, err := m.Target.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n16
|
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x1a
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentValue.Size()))
|
|
|
|
n17, err := m.CurrentValue.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n17
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
|
|
|
|
n18, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n18
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName)))
|
|
|
|
i += copy(dAtA[i:], m.MetricName)
|
|
|
|
dAtA[i] = 0x12
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
|
|
|
|
n19, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n19
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.TargetAverageUtilization != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x10
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetAverageUtilization))
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x1a
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.TargetAverageValue.Size()))
|
|
|
|
n20, err := m.TargetAverageValue.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n20
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
size := m.Size()
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
return dAtA[:n], nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0xa
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i += copy(dAtA[i:], m.Name)
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.CurrentAverageUtilization != nil {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x10
|
2017-06-06 07:19:04 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentAverageUtilization))
|
2017-06-06 07:19:04 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[i] = 0x1a
|
2017-02-01 00:45:59 +00:00
|
|
|
i++
|
2017-08-04 11:13:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentAverageValue.Size()))
|
|
|
|
n21, err := m.CurrentAverageValue.MarshalTo(dAtA[i:])
|
2017-06-06 07:19:04 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
i += n21
|
2017-02-01 00:45:59 +00:00
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
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)
|
2017-02-01 00:45:59 +00:00
|
|
|
return offset + 8
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
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)
|
2017-02-01 00:45:59 +00:00
|
|
|
return offset + 4
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
2017-02-01 00:45:59 +00:00
|
|
|
for v >= 1<<7 {
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
2017-02-01 00:45:59 +00:00
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
dAtA[offset] = uint8(v)
|
2017-02-01 00:45:59 +00:00
|
|
|
return offset + 1
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *CrossVersionObjectReference) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.Kind)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.APIVersion)
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscaler) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.Spec.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.Status.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) 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
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerList) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.ScaleTargetRef.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00: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 {
|
2017-02-01 00:45:59 +00:00
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.ObservedGeneration != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.ObservedGeneration))
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.LastScaleTime != nil {
|
|
|
|
l = m.LastScaleTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *MetricSpec) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.Type)
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
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))
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *MetricStatus) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.Type)
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
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))
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ObjectMetricSource) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.Target.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.TargetValue.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ObjectMetricStatus) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.Target.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.CurrentValue.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *PodsMetricSource) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.MetricName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.TargetAverageValue.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *PodsMetricStatus) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2017-06-06 07:19:04 +00:00
|
|
|
l = len(m.MetricName)
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
l = m.CurrentAverageValue.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResourceMetricSource) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
2017-02-01 00:45:59 +00:00
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.TargetAverageUtilization != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization))
|
|
|
|
}
|
|
|
|
if m.TargetAverageValue != nil {
|
|
|
|
l = m.TargetAverageValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2017-06-06 07:19:04 +00:00
|
|
|
func (m *ResourceMetricStatus) Size() (n int) {
|
2017-02-01 00:45:59 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.CurrentAverageUtilization != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization))
|
|
|
|
}
|
|
|
|
l = m.CurrentAverageValue.Size()
|
2017-02-01 00:45:59 +00:00
|
|
|
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))))
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *CrossVersionObjectReference) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00: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-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *HorizontalPodAutoscaler) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscaler{`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2017-06-06 07:19:04 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
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
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *HorizontalPodAutoscalerList) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *HorizontalPodAutoscalerSpec) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *HorizontalPodAutoscalerStatus) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`,
|
|
|
|
`ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`,
|
|
|
|
`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) + `,`,
|
2017-08-04 11:13:19 +00:00
|
|
|
`Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "HorizontalPodAutoscalerCondition", "HorizontalPodAutoscalerCondition", 1), `&`, ``, 1) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *MetricSpec) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *MetricStatus) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *ObjectMetricSource) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *ObjectMetricStatus) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *PodsMetricSource) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *PodsMetricStatus) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
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) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *ResourceMetricSource) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
s := strings.Join([]string{`&ResourceMetricSource{`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
2017-06-06 07:19:04 +00:00
|
|
|
`TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`,
|
|
|
|
`TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`,
|
2017-02-01 00:45:59 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
func (this *ResourceMetricStatus) String() string {
|
2017-02-01 00:45:59 +00:00
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2017-06-06 07:19:04 +00: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 valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Kind = string(dAtA[iNdEx:postIndex])
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.APIVersion = string(dAtA[iNdEx:postIndex])
|
2017-06-06 07:19:04 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-06-06 07:19:04 +00:00
|
|
|
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-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
return nil
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
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_kubernetes_pkg_api_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]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
m.Items = append(m.Items, HorizontalPodAutoscaler{})
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
m.Metrics = append(m.Metrics, MetricSpec{})
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
iNdEx++
|
|
|
|
v |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = &v
|
|
|
|
case 2:
|
2017-02-01 00:45:59 +00:00
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.LastScaleTime == nil {
|
|
|
|
m.LastScaleTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
iNdEx++
|
|
|
|
m.DesiredReplicas |= (int32(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
2017-02-01 00:45:59 +00:00
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentMetrics", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
m.CurrentMetrics = append(m.CurrentMetrics, MetricStatus{})
|
2017-08-04 11:13:19 +00:00
|
|
|
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 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
|
2017-06-06 07:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-06-06 07:19:04 +00:00
|
|
|
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{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Pods == nil {
|
|
|
|
m.Pods = &PodsMetricSource{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2017-06-06 07:19:04 +00:00
|
|
|
case 4:
|
2017-02-01 00:45:59 +00:00
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Resource == nil {
|
|
|
|
m.Resource = &ResourceMetricSource{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *MetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Type = MetricSourceType(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var msglen int
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if msglen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Object == nil {
|
|
|
|
m.Object = &ObjectMetricStatus{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var msglen int
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if msglen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Pods == nil {
|
|
|
|
m.Pods = &PodsMetricStatus{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var msglen int
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if msglen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.Resource == nil {
|
|
|
|
m.Resource = &ResourceMetricStatus{}
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2017-06-06 07:19:04 +00:00
|
|
|
case 2:
|
2017-02-01 00:45:59 +00:00
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var stringLen uint64
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
2017-06-06 07:19:04 +00:00
|
|
|
case 3:
|
2017-02-01 00:45:59 +00:00
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var stringLen uint64
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var stringLen uint64
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var stringLen uint64
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + intStringLen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.MetricName = string(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-02-01 00:45:59 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Name = k8s_io_kubernetes_pkg_api_v1.ResourceName(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2017-06-06 07:19:04 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var v int32
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
v |= (int32(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
m.TargetAverageUtilization = &v
|
2017-02-01 00:45:59 +00:00
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var msglen int
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if msglen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if m.TargetAverageValue == nil {
|
|
|
|
m.TargetAverageValue = &k8s_io_apimachinery_pkg_api_resource.Quantity{}
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
|
|
|
}
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group")
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
m.Name = k8s_io_kubernetes_pkg_api_v1.ResourceName(dAtA[iNdEx:postIndex])
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
2017-06-06 07:19:04 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var v int32
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
v |= (int32(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
m.CurrentAverageUtilization = &v
|
2017-02-01 00:45:59 +00:00
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
2017-06-06 07:19:04 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType)
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
var msglen int
|
2017-02-01 00:45:59 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
2017-06-06 07:19:04 +00:00
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
2017-02-01 00:45:59 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
if msglen < 0 {
|
2017-02-01 00:45:59 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2017-06-06 07:19:04 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2017-02-01 00:45:59 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2017-06-06 07:19:04 +00:00
|
|
|
return err
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
2017-08-04 11:13:19 +00:00
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
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++
|
2017-08-04 11:13:19 +00:00
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
b := dAtA[iNdEx]
|
2017-02-01 00:45:59 +00:00
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
2017-08-04 11:13:19 +00:00
|
|
|
next, err := skipGenerated(dAtA[start:])
|
2017-02-01 00:45:59 +00:00
|
|
|
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")
|
|
|
|
)
|
|
|
|
|
2017-08-04 11:13:19 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/pkg/apis/autoscaling/v2alpha1/generated.proto", fileDescriptorGenerated)
|
|
|
|
}
|
|
|
|
|
2017-02-01 00:45:59 +00:00
|
|
|
var fileDescriptorGenerated = []byte{
|
2017-09-18 11:04:23 +00:00
|
|
|
// 1323 bytes of a gzipped FileDescriptorProto
|
2017-08-04 11:13:19 +00:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x5b, 0x6f, 0x1b, 0x45,
|
2017-09-18 11:04:23 +00:00
|
|
|
0x14, 0xce, 0x3a, 0x4e, 0x1a, 0xc6, 0x69, 0x52, 0xa6, 0x55, 0xeb, 0xa6, 0xd4, 0x8e, 0x56, 0x08,
|
|
|
|
0xb5, 0x08, 0x76, 0xa9, 0x29, 0x08, 0x84, 0x00, 0xc5, 0xe6, 0xd2, 0x8a, 0xb8, 0x97, 0x69, 0xa8,
|
|
|
|
0x10, 0x20, 0xc1, 0x64, 0x3d, 0x75, 0x86, 0x78, 0x2f, 0xda, 0x19, 0x5b, 0xa4, 0x52, 0x25, 0x5e,
|
|
|
|
0x78, 0x43, 0x82, 0x17, 0x7e, 0x02, 0x12, 0xff, 0x80, 0x67, 0x90, 0x90, 0xfa, 0xd8, 0xc7, 0xf2,
|
|
|
|
0x62, 0x51, 0xf7, 0x8d, 0x9f, 0x50, 0x89, 0x8b, 0xe6, 0xb2, 0x37, 0xaf, 0xd7, 0xad, 0x43, 0x5a,
|
|
|
|
0xc1, 0x9b, 0x3d, 0x73, 0xce, 0xf7, 0x9d, 0xcb, 0x37, 0x67, 0x66, 0xc1, 0xdb, 0xbb, 0xaf, 0x31,
|
|
|
|
0x8b, 0xfa, 0xf6, 0x6e, 0x7f, 0x9b, 0x84, 0x1e, 0xe1, 0x84, 0xd9, 0xc1, 0x6e, 0xd7, 0xc6, 0x01,
|
|
|
|
0x65, 0x36, 0xee, 0x73, 0x9f, 0x39, 0xb8, 0x47, 0xbd, 0xae, 0x3d, 0x68, 0xe0, 0x5e, 0xb0, 0x83,
|
|
|
|
0xcf, 0xd9, 0x5d, 0xe2, 0x91, 0x10, 0x73, 0xd2, 0xb1, 0x82, 0xd0, 0xe7, 0x3e, 0xb4, 0x15, 0x80,
|
|
|
|
0x95, 0x00, 0x58, 0xc1, 0x6e, 0xd7, 0x12, 0x00, 0x56, 0x0a, 0xc0, 0x8a, 0x00, 0xd6, 0x5e, 0xec,
|
|
|
|
0x52, 0xbe, 0xd3, 0xdf, 0xb6, 0x1c, 0xdf, 0xb5, 0xbb, 0x7e, 0xd7, 0xb7, 0x25, 0xce, 0x76, 0xff,
|
|
|
|
0x86, 0xfc, 0x27, 0xff, 0xc8, 0x5f, 0x0a, 0x7f, 0xed, 0xbc, 0x0e, 0x10, 0x07, 0xd4, 0xc5, 0xce,
|
|
|
|
0x0e, 0xf5, 0x48, 0xb8, 0x17, 0x85, 0x68, 0x87, 0x84, 0xf9, 0xfd, 0xd0, 0x21, 0xe3, 0x51, 0x4d,
|
|
|
|
0xf5, 0x62, 0xb6, 0x4b, 0x38, 0xb6, 0x07, 0xb9, 0x5c, 0xd6, 0xec, 0x22, 0xaf, 0xb0, 0xef, 0x71,
|
|
|
|
0xea, 0xe6, 0x69, 0x5e, 0x7d, 0x98, 0x03, 0x73, 0x76, 0x88, 0x8b, 0x73, 0x7e, 0x2f, 0x17, 0xf9,
|
|
|
|
0xf5, 0x39, 0xed, 0xd9, 0xd4, 0xe3, 0x8c, 0x87, 0x39, 0xa7, 0x17, 0x0a, 0x5b, 0x35, 0x21, 0x17,
|
|
|
|
0xf3, 0x7b, 0x03, 0x9c, 0x6a, 0x85, 0x3e, 0x63, 0xd7, 0x49, 0xc8, 0xa8, 0xef, 0x5d, 0xde, 0xfe,
|
|
|
|
0x82, 0x38, 0x1c, 0x91, 0x1b, 0x24, 0x24, 0x9e, 0x43, 0xe0, 0x3a, 0x28, 0xef, 0x52, 0xaf, 0x53,
|
|
|
|
0x35, 0xd6, 0x8d, 0x33, 0x4f, 0x35, 0x97, 0x6f, 0x0f, 0xeb, 0x73, 0xa3, 0x61, 0xbd, 0xfc, 0x01,
|
|
|
|
0xf5, 0x3a, 0x48, 0xee, 0x08, 0x0b, 0x0f, 0xbb, 0xa4, 0x5a, 0xca, 0x5a, 0x5c, 0xc2, 0x2e, 0x41,
|
|
|
|
0x72, 0x07, 0x36, 0x00, 0xc0, 0x01, 0xd5, 0x04, 0xd5, 0x79, 0x69, 0x07, 0xb5, 0x1d, 0xd8, 0xb8,
|
|
|
|
0x72, 0x51, 0xef, 0xa0, 0x94, 0x95, 0x79, 0xbf, 0x04, 0x4e, 0x5c, 0xf0, 0x43, 0x7a, 0xd3, 0xf7,
|
|
|
|
0x38, 0xee, 0x5d, 0xf1, 0x3b, 0x1b, 0x5a, 0x24, 0x24, 0x84, 0x9f, 0x83, 0x25, 0xd1, 0x9a, 0x0e,
|
|
|
|
0xe6, 0x58, 0xc6, 0x55, 0x69, 0xbc, 0x64, 0x69, 0x79, 0xa5, 0x2b, 0x95, 0x08, 0x4c, 0x58, 0x5b,
|
|
|
|
0x83, 0x73, 0x96, 0x4a, 0xae, 0x4d, 0x38, 0x4e, 0xf8, 0x93, 0x35, 0x14, 0xa3, 0x42, 0x0f, 0x94,
|
|
|
|
0x59, 0x40, 0x1c, 0x99, 0x53, 0xa5, 0xb1, 0x69, 0xcd, 0x28, 0x5e, 0xab, 0x20, 0xf2, 0x6b, 0x01,
|
|
|
|
0x71, 0x92, 0x0a, 0x89, 0x7f, 0x48, 0xf2, 0xc0, 0x01, 0x58, 0x64, 0x1c, 0xf3, 0x3e, 0x93, 0xd5,
|
|
|
|
0xa9, 0x34, 0x2e, 0x1d, 0x18, 0xa3, 0x44, 0x6d, 0xae, 0x68, 0xce, 0x45, 0xf5, 0x1f, 0x69, 0x36,
|
|
|
|
0xf3, 0xdb, 0x79, 0xb0, 0x5e, 0xe0, 0xd9, 0xf2, 0xbd, 0x0e, 0xe5, 0xd4, 0xf7, 0xe0, 0x05, 0x50,
|
|
|
|
0xe6, 0x7b, 0x01, 0xd1, 0x12, 0x38, 0x1f, 0x85, 0xbf, 0xb5, 0x17, 0x90, 0x07, 0xc3, 0xfa, 0xb3,
|
|
|
|
0x0f, 0xf3, 0x17, 0x76, 0x48, 0x22, 0xc0, 0xeb, 0x71, 0x9a, 0x4a, 0x2c, 0x6f, 0x65, 0xc3, 0x7a,
|
|
|
|
0x30, 0xac, 0x4f, 0x15, 0xaf, 0x15, 0x63, 0x66, 0xd3, 0x80, 0x03, 0x00, 0x7b, 0x98, 0xf1, 0xad,
|
|
|
|
0x10, 0x7b, 0x4c, 0x71, 0x52, 0x97, 0xe8, 0x52, 0x3e, 0xff, 0x68, 0xd2, 0x10, 0x1e, 0xcd, 0x35,
|
|
|
|
0x1d, 0x0f, 0xdc, 0xcc, 0xa1, 0xa1, 0x09, 0x0c, 0xf0, 0x39, 0xb0, 0x18, 0x12, 0xcc, 0x7c, 0xaf,
|
|
|
|
0x5a, 0x96, 0xf9, 0xc4, 0x65, 0x46, 0x72, 0x15, 0xe9, 0x5d, 0x78, 0x16, 0x1c, 0x72, 0x09, 0x63,
|
|
|
|
0xb8, 0x4b, 0xaa, 0x0b, 0xd2, 0x70, 0x55, 0x1b, 0x1e, 0x6a, 0xab, 0x65, 0x14, 0xed, 0x9b, 0x7f,
|
|
|
|
0x18, 0xe0, 0x54, 0x41, 0x45, 0x37, 0x29, 0xe3, 0xf0, 0xd3, 0x9c, 0xf6, 0xad, 0x47, 0x4b, 0x50,
|
|
|
|
0x78, 0x4b, 0xe5, 0x1f, 0xd1, 0xdc, 0x4b, 0xd1, 0x4a, 0x4a, 0xf7, 0x2e, 0x58, 0xa0, 0x9c, 0xb8,
|
|
|
|
0xa2, 0x3f, 0xf3, 0x67, 0x2a, 0x8d, 0x0b, 0x07, 0x25, 0xc3, 0xe6, 0x61, 0x4d, 0xba, 0x70, 0x51,
|
|
|
|
0xc0, 0x23, 0xc5, 0x62, 0xfe, 0x55, 0x2a, 0x4c, 0x56, 0x1c, 0x0e, 0xf8, 0x8d, 0x01, 0x56, 0xe4,
|
|
|
|
0xdf, 0x2d, 0x1c, 0x76, 0x89, 0x98, 0x4a, 0x3a, 0xe7, 0xd9, 0x4f, 0xe4, 0x94, 0x19, 0xd7, 0x3c,
|
|
|
|
0xae, 0x83, 0x5b, 0xb9, 0x96, 0xe1, 0x42, 0x63, 0xdc, 0xf0, 0x1c, 0xa8, 0xb8, 0xd4, 0x43, 0x24,
|
|
|
|
0xe8, 0x51, 0x07, 0x2b, 0x0d, 0x2f, 0x34, 0x57, 0x47, 0xc3, 0x7a, 0xa5, 0x9d, 0x2c, 0xa3, 0xb4,
|
|
|
|
0x0d, 0x7c, 0x05, 0x54, 0x5c, 0xfc, 0x65, 0xec, 0x32, 0x2f, 0x5d, 0x8e, 0x6a, 0xbe, 0x4a, 0x3b,
|
|
|
|
0xd9, 0x42, 0x69, 0x3b, 0x78, 0x43, 0x08, 0x86, 0x87, 0xd4, 0x61, 0xd5, 0xb2, 0xec, 0xc4, 0x1b,
|
|
|
|
0x33, 0x27, 0xdc, 0x96, 0xfe, 0x72, 0xe2, 0xa4, 0xd4, 0x26, 0x31, 0x51, 0x04, 0x6e, 0xfe, 0x56,
|
|
|
|
0x06, 0xa7, 0xa7, 0x4e, 0x0e, 0xf8, 0x1e, 0x80, 0xfe, 0x36, 0x23, 0xe1, 0x80, 0x74, 0xde, 0x57,
|
|
|
|
0x57, 0x87, 0x98, 0xe1, 0xa2, 0x0b, 0xf3, 0xcd, 0xe3, 0xe2, 0xa8, 0x5c, 0xce, 0xed, 0xa2, 0x09,
|
|
|
|
0x1e, 0xd0, 0x01, 0x87, 0xc5, 0x01, 0x52, 0x15, 0xa6, 0xfa, 0xba, 0x98, 0xed, 0x74, 0x3e, 0x3d,
|
|
|
|
0x1a, 0xd6, 0x0f, 0x6f, 0xa6, 0x41, 0x50, 0x16, 0x13, 0x6e, 0x80, 0x55, 0xa7, 0x1f, 0x86, 0xc4,
|
|
|
|
0xe3, 0x63, 0x15, 0x3f, 0xa1, 0x2b, 0xb0, 0xda, 0xca, 0x6e, 0xa3, 0x71, 0x7b, 0x01, 0xd1, 0x21,
|
|
|
|
0x8c, 0x86, 0xa4, 0x13, 0x43, 0x94, 0xb3, 0x10, 0xef, 0x64, 0xb7, 0xd1, 0xb8, 0x3d, 0xbc, 0x05,
|
|
|
|
0x56, 0x34, 0xaa, 0xae, 0x77, 0x75, 0x41, 0xf6, 0xf0, 0xcd, 0xfd, 0xf6, 0x50, 0xcd, 0xf0, 0x58,
|
|
|
|
0xa5, 0xad, 0x0c, 0x38, 0x1a, 0x23, 0x83, 0x5f, 0x1b, 0x00, 0x38, 0xd1, 0xa0, 0x64, 0xd5, 0x45,
|
|
|
|
0xc9, 0x7d, 0xf5, 0xa0, 0x4e, 0x72, 0x3c, 0x82, 0x93, 0x1b, 0x34, 0x5e, 0x62, 0x28, 0x45, 0x6c,
|
|
|
|
0xfe, 0x59, 0x02, 0x20, 0x11, 0x21, 0x3c, 0x9f, 0xb9, 0x45, 0xd6, 0xc7, 0x6e, 0x91, 0x23, 0xda,
|
|
|
|
0x52, 0x3e, 0xd3, 0x52, 0x37, 0x46, 0x17, 0x2c, 0xfa, 0xf2, 0xb4, 0x6a, 0xbd, 0xb4, 0x66, 0xce,
|
|
|
|
0x23, 0xbe, 0xdf, 0x63, 0xf8, 0x26, 0x10, 0x23, 0x5a, 0x0f, 0x01, 0x0d, 0x0f, 0x3f, 0x03, 0xe5,
|
|
|
|
0xc0, 0xef, 0x44, 0xf7, 0xef, 0xc6, 0xcc, 0x34, 0x57, 0xfc, 0x0e, 0xcb, 0x90, 0x2c, 0x89, 0xec,
|
|
|
|
0xc4, 0x2a, 0x92, 0xc0, 0xd0, 0x07, 0x4b, 0xd1, 0x33, 0x54, 0x2a, 0xaa, 0xd2, 0x78, 0x77, 0x66,
|
|
|
|
0x12, 0xa4, 0x01, 0x32, 0x44, 0xcb, 0x62, 0x96, 0x47, 0x3b, 0x28, 0x26, 0x31, 0xff, 0x2e, 0x81,
|
|
|
|
0xe5, 0xb4, 0x80, 0xfe, 0x1b, 0x1d, 0x50, 0x5a, 0x7e, 0xcc, 0x1d, 0x50, 0x24, 0x4f, 0xa0, 0x03,
|
|
|
|
0x8a, 0xa8, 0xa8, 0x03, 0x3f, 0x94, 0x00, 0xcc, 0xcb, 0x0f, 0x72, 0xb0, 0xc8, 0xe5, 0x9d, 0xf2,
|
|
|
|
0x58, 0x2e, 0xb3, 0xf8, 0x0d, 0xa2, 0xef, 0x2d, 0xcd, 0x25, 0x1e, 0xe1, 0x6a, 0xea, 0x5f, 0x4a,
|
|
|
|
0x1e, 0xeb, 0xf1, 0x11, 0x6e, 0xc7, 0x3b, 0x28, 0x65, 0x05, 0x09, 0xa8, 0x28, 0xef, 0xeb, 0xb8,
|
|
|
|
0xd7, 0x8f, 0x1e, 0x54, 0x53, 0xdf, 0x1b, 0x56, 0x94, 0xbc, 0x75, 0xb5, 0x8f, 0x3d, 0x4e, 0xf9,
|
|
|
|
0x5e, 0x72, 0xdb, 0x6d, 0x25, 0x50, 0x28, 0x8d, 0x6b, 0xfe, 0x38, 0x5e, 0x27, 0xa5, 0xd7, 0xff,
|
|
|
|
0x4f, 0x9d, 0x76, 0xc0, 0xb2, 0x1e, 0xc2, 0xff, 0xa6, 0x50, 0xc7, 0x34, 0xcb, 0x72, 0x2b, 0x85,
|
|
|
|
0x85, 0x32, 0xc8, 0xe6, 0x2f, 0x06, 0x38, 0x32, 0x3e, 0x6a, 0xc6, 0x42, 0x36, 0x1e, 0x29, 0xe4,
|
|
|
|
0x9b, 0x00, 0xaa, 0x84, 0x37, 0x06, 0x24, 0xc4, 0x5d, 0xa2, 0x02, 0x2f, 0xed, 0x2b, 0xf0, 0xf8,
|
|
|
|
0xd9, 0xbc, 0x95, 0x43, 0x44, 0x13, 0x58, 0xcc, 0x5f, 0xb3, 0x49, 0xa8, 0x6e, 0xef, 0x27, 0x89,
|
|
|
|
0x5b, 0xe0, 0xa8, 0xae, 0xce, 0x01, 0x64, 0x71, 0x4a, 0x93, 0x1d, 0x6d, 0xe5, 0x21, 0xd1, 0x24,
|
|
|
|
0x1e, 0xf3, 0xa7, 0x12, 0x38, 0x36, 0x69, 0x24, 0xc3, 0xb6, 0xfe, 0x24, 0x56, 0x59, 0xbc, 0x9e,
|
|
|
|
0xfe, 0x24, 0x7e, 0x30, 0xac, 0x9f, 0x9d, 0xfa, 0x8d, 0x13, 0x01, 0xa6, 0xbe, 0x9f, 0x3f, 0x02,
|
|
|
|
0xd5, 0x4c, 0x15, 0x3f, 0xe4, 0xb4, 0x47, 0x6f, 0xaa, 0x97, 0x98, 0x7a, 0x84, 0x3e, 0x33, 0x1a,
|
|
|
|
0xd6, 0xab, 0x5b, 0x05, 0x36, 0xa8, 0xd0, 0x5b, 0x7c, 0x38, 0x4d, 0x50, 0xc1, 0xfe, 0xe4, 0x7b,
|
|
|
|
0x7c, 0x06, 0x05, 0xfc, 0x9c, 0xaf, 0x9c, 0x52, 0xc1, 0x01, 0x57, 0xee, 0x13, 0x70, 0x32, 0xdb,
|
|
|
|
0xb8, 0x7c, 0xe9, 0x4e, 0x8f, 0x86, 0xf5, 0x93, 0xad, 0x22, 0x23, 0x54, 0xec, 0x5f, 0xa4, 0xbe,
|
|
|
|
0xf9, 0x27, 0xa3, 0xbe, 0xa6, 0x75, 0xfb, 0x5e, 0x6d, 0xee, 0xce, 0xbd, 0xda, 0xdc, 0xdd, 0x7b,
|
|
|
|
0xb5, 0xb9, 0xaf, 0x46, 0x35, 0xe3, 0xf6, 0xa8, 0x66, 0xdc, 0x19, 0xd5, 0x8c, 0xbb, 0xa3, 0x9a,
|
|
|
|
0xf1, 0xfb, 0xa8, 0x66, 0x7c, 0x77, 0xbf, 0x36, 0xf7, 0xf1, 0x52, 0x34, 0x0c, 0xff, 0x09, 0x00,
|
|
|
|
0x00, 0xff, 0xff, 0x88, 0x5a, 0x1f, 0xc3, 0xc3, 0x13, 0x00, 0x00,
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|