2089 lines
55 KiB
Go
2089 lines
55 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: github.com/karmada-io/karmada/pkg/estimator/pb/generated.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
|
|
io "io"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
|
k8s_io_api_core_v1 "k8s.io/api/core/v1"
|
|
v1 "k8s.io/api/core/v1"
|
|
"k8s.io/apimachinery/pkg/api/resource"
|
|
|
|
math "math"
|
|
math_bits "math/bits"
|
|
reflect "reflect"
|
|
strings "strings"
|
|
time "time"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
func (m *MaxAvailableReplicasRequest) Reset() { *m = MaxAvailableReplicasRequest{} }
|
|
func (*MaxAvailableReplicasRequest) ProtoMessage() {}
|
|
func (*MaxAvailableReplicasRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{0}
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MaxAvailableReplicasRequest.Merge(m, src)
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MaxAvailableReplicasRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MaxAvailableReplicasRequest proto.InternalMessageInfo
|
|
|
|
func (m *MaxAvailableReplicasResponse) Reset() { *m = MaxAvailableReplicasResponse{} }
|
|
func (*MaxAvailableReplicasResponse) ProtoMessage() {}
|
|
func (*MaxAvailableReplicasResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{1}
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MaxAvailableReplicasResponse.Merge(m, src)
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MaxAvailableReplicasResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MaxAvailableReplicasResponse proto.InternalMessageInfo
|
|
|
|
func (m *NodeClaim) Reset() { *m = NodeClaim{} }
|
|
func (*NodeClaim) ProtoMessage() {}
|
|
func (*NodeClaim) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{2}
|
|
}
|
|
func (m *NodeClaim) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NodeClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *NodeClaim) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeClaim.Merge(m, src)
|
|
}
|
|
func (m *NodeClaim) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NodeClaim) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeClaim.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeClaim proto.InternalMessageInfo
|
|
|
|
func (m *ObjectReference) Reset() { *m = ObjectReference{} }
|
|
func (*ObjectReference) ProtoMessage() {}
|
|
func (*ObjectReference) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{3}
|
|
}
|
|
func (m *ObjectReference) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *ObjectReference) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ObjectReference.Merge(m, src)
|
|
}
|
|
func (m *ObjectReference) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ObjectReference) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ObjectReference.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ObjectReference proto.InternalMessageInfo
|
|
|
|
func (m *ReplicaRequirements) Reset() { *m = ReplicaRequirements{} }
|
|
func (*ReplicaRequirements) ProtoMessage() {}
|
|
func (*ReplicaRequirements) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{4}
|
|
}
|
|
func (m *ReplicaRequirements) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ReplicaRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *ReplicaRequirements) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReplicaRequirements.Merge(m, src)
|
|
}
|
|
func (m *ReplicaRequirements) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ReplicaRequirements) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReplicaRequirements.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReplicaRequirements proto.InternalMessageInfo
|
|
|
|
func (m *UnimplementedEstimatorServer) Reset() { *m = UnimplementedEstimatorServer{} }
|
|
func (*UnimplementedEstimatorServer) ProtoMessage() {}
|
|
func (*UnimplementedEstimatorServer) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{5}
|
|
}
|
|
func (m *UnimplementedEstimatorServer) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *UnimplementedEstimatorServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *UnimplementedEstimatorServer) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UnimplementedEstimatorServer.Merge(m, src)
|
|
}
|
|
func (m *UnimplementedEstimatorServer) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *UnimplementedEstimatorServer) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UnimplementedEstimatorServer.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UnimplementedEstimatorServer proto.InternalMessageInfo
|
|
|
|
func (m *UnschedulableReplicasRequest) Reset() { *m = UnschedulableReplicasRequest{} }
|
|
func (*UnschedulableReplicasRequest) ProtoMessage() {}
|
|
func (*UnschedulableReplicasRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{6}
|
|
}
|
|
func (m *UnschedulableReplicasRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *UnschedulableReplicasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *UnschedulableReplicasRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UnschedulableReplicasRequest.Merge(m, src)
|
|
}
|
|
func (m *UnschedulableReplicasRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *UnschedulableReplicasRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UnschedulableReplicasRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UnschedulableReplicasRequest proto.InternalMessageInfo
|
|
|
|
func (m *UnschedulableReplicasResponse) Reset() { *m = UnschedulableReplicasResponse{} }
|
|
func (*UnschedulableReplicasResponse) ProtoMessage() {}
|
|
func (*UnschedulableReplicasResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9773618571bdb725, []int{7}
|
|
}
|
|
func (m *UnschedulableReplicasResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *UnschedulableReplicasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
func (m *UnschedulableReplicasResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UnschedulableReplicasResponse.Merge(m, src)
|
|
}
|
|
func (m *UnschedulableReplicasResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *UnschedulableReplicasResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UnschedulableReplicasResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UnschedulableReplicasResponse proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*MaxAvailableReplicasRequest)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.MaxAvailableReplicasRequest")
|
|
proto.RegisterType((*MaxAvailableReplicasResponse)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.MaxAvailableReplicasResponse")
|
|
proto.RegisterType((*NodeClaim)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.NodeClaim")
|
|
proto.RegisterMapType((map[string]string)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.NodeClaim.NodeSelectorEntry")
|
|
proto.RegisterType((*ObjectReference)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.ObjectReference")
|
|
proto.RegisterType((*ReplicaRequirements)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.ReplicaRequirements")
|
|
proto.RegisterMapType((k8s_io_api_core_v1.ResourceList)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.ReplicaRequirements.ResourceRequestEntry")
|
|
proto.RegisterType((*UnimplementedEstimatorServer)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.UnimplementedEstimatorServer")
|
|
proto.RegisterType((*UnschedulableReplicasRequest)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.UnschedulableReplicasRequest")
|
|
proto.RegisterType((*UnschedulableReplicasResponse)(nil), "github.com.karmada_io.karmada.pkg.estimator.pb.UnschedulableReplicasResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("github.com/karmada-io/karmada/pkg/estimator/pb/generated.proto", fileDescriptor_9773618571bdb725)
|
|
}
|
|
|
|
var fileDescriptor_9773618571bdb725 = []byte{
|
|
// 846 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x41, 0x8f, 0xdb, 0x44,
|
|
0x14, 0x8e, 0x93, 0xad, 0xda, 0x4c, 0xb6, 0xda, 0xad, 0x77, 0xa9, 0xa2, 0xb4, 0x75, 0x22, 0x9f,
|
|
0x96, 0x43, 0xc7, 0x6a, 0x04, 0x52, 0xe1, 0x40, 0xb5, 0xde, 0xf6, 0x80, 0x4a, 0x17, 0x98, 0x76,
|
|
0x2b, 0x40, 0x42, 0x68, 0x62, 0xbf, 0x24, 0x43, 0x6c, 0x8f, 0x19, 0x8f, 0xa3, 0x5d, 0x4e, 0x08,
|
|
0xc4, 0x1d, 0xf1, 0x0f, 0xf8, 0x1b, 0xfc, 0x82, 0x3d, 0xf6, 0x82, 0xd4, 0x0b, 0x81, 0x84, 0x7f,
|
|
0xd1, 0x13, 0xf2, 0x78, 0x9c, 0x38, 0x59, 0x2f, 0xd2, 0x02, 0xb7, 0x99, 0x79, 0xdf, 0xfb, 0xde,
|
|
0x37, 0x6f, 0xbe, 0x79, 0xe8, 0x83, 0x11, 0x93, 0xe3, 0x74, 0x80, 0x3d, 0x1e, 0x3a, 0x13, 0x2a,
|
|
0x42, 0xea, 0xd3, 0xfb, 0x8c, 0x17, 0x4b, 0x27, 0x9e, 0x8c, 0x1c, 0x48, 0x24, 0x0b, 0xa9, 0xe4,
|
|
0xc2, 0x89, 0x07, 0xce, 0x08, 0x22, 0x10, 0x54, 0x82, 0x8f, 0x63, 0xc1, 0x25, 0x37, 0xf1, 0x2a,
|
|
0x1f, 0xeb, 0xa4, 0xaf, 0x18, 0x2f, 0x96, 0x38, 0x9e, 0x8c, 0xf0, 0x32, 0x1f, 0xc7, 0x83, 0xce,
|
|
0xfd, 0x52, 0xbd, 0x11, 0x1f, 0x71, 0x47, 0xd1, 0x0c, 0xd2, 0xa1, 0xda, 0xa9, 0x8d, 0x5a, 0xe5,
|
|
0xf4, 0x1d, 0x7b, 0xf2, 0x30, 0xc1, 0x8c, 0x3b, 0x34, 0x66, 0x8e, 0xc7, 0x05, 0x38, 0xd3, 0x07,
|
|
0x9b, 0x12, 0x3a, 0xef, 0xac, 0x30, 0x21, 0xf5, 0xc6, 0x2c, 0x02, 0x71, 0xa6, 0x84, 0x67, 0x49,
|
|
0x02, 0x12, 0x9e, 0x0a, 0x0f, 0x36, 0xb3, 0xec, 0xdf, 0x0d, 0x74, 0xe7, 0x19, 0x3d, 0x3d, 0x9c,
|
|
0x52, 0x16, 0xd0, 0x41, 0x00, 0x04, 0xe2, 0x80, 0x79, 0x34, 0x21, 0xf0, 0x4d, 0x0a, 0x89, 0x34,
|
|
0xdf, 0x46, 0xd7, 0xbd, 0x20, 0x4d, 0x24, 0x88, 0xb6, 0xd1, 0x33, 0x0e, 0x9a, 0xee, 0xce, 0xf9,
|
|
0xac, 0x5b, 0x5b, 0xcc, 0xba, 0xd7, 0x8f, 0xf2, 0x63, 0x52, 0xc4, 0xcd, 0x9f, 0x0d, 0xb4, 0x27,
|
|
0xf2, 0xf4, 0x2c, 0x9b, 0x09, 0x08, 0x21, 0x92, 0x49, 0xbb, 0xde, 0x33, 0x0e, 0x5a, 0xfd, 0xa3,
|
|
0x2b, 0xb6, 0x08, 0x93, 0x8b, 0x54, 0xee, 0x1d, 0x5d, 0x7c, 0xaf, 0x22, 0x48, 0xaa, 0x8a, 0xdb,
|
|
0x27, 0xe8, 0x6e, 0xf5, 0xf5, 0x92, 0x98, 0x47, 0x09, 0x98, 0xef, 0xa2, 0x56, 0x48, 0x4f, 0x8b,
|
|
0x63, 0x75, 0xc7, 0x6b, 0xee, 0x9e, 0x2e, 0xd3, 0x7a, 0xb6, 0x0a, 0x91, 0x32, 0xce, 0xfe, 0xa1,
|
|
0x81, 0x9a, 0xc7, 0xdc, 0x87, 0xa3, 0x80, 0xb2, 0xd0, 0x7c, 0x89, 0xb6, 0x23, 0xee, 0xc3, 0xe1,
|
|
0x70, 0xc8, 0x22, 0x26, 0xcf, 0x14, 0x4b, 0xab, 0xdf, 0xc3, 0xf9, 0x8b, 0x60, 0x1a, 0x33, 0x9c,
|
|
0xbd, 0x1a, 0x9e, 0x3e, 0xc0, 0x59, 0xd2, 0x73, 0x08, 0xc0, 0x93, 0x5c, 0xb8, 0xbb, 0x8b, 0x59,
|
|
0x77, 0xfb, 0xb8, 0x94, 0x49, 0xd6, 0x78, 0xcc, 0x1f, 0x8d, 0x9c, 0xb8, 0x48, 0x68, 0xd7, 0x7b,
|
|
0x8d, 0x83, 0x56, 0xff, 0xe9, 0x55, 0x5b, 0xb9, 0x54, 0xba, 0x56, 0xfe, 0x49, 0x24, 0xc5, 0x99,
|
|
0xbb, 0xaf, 0xef, 0xba, 0x5d, 0x0e, 0x91, 0xb5, 0xb2, 0xe6, 0x09, 0x6a, 0x49, 0x1e, 0x64, 0xbe,
|
|
0x61, 0x3c, 0x4a, 0xda, 0x0d, 0xa5, 0xc2, 0xaa, 0xba, 0xde, 0x8b, 0x25, 0x6c, 0xd5, 0xc4, 0xd5,
|
|
0x59, 0x42, 0xca, 0x3c, 0x9d, 0x47, 0xe8, 0xd6, 0x05, 0x3d, 0xe6, 0x2e, 0x6a, 0x4c, 0x20, 0x6f,
|
|
0x61, 0x93, 0x64, 0x4b, 0x73, 0x1f, 0x5d, 0x9b, 0xd2, 0x20, 0x05, 0x65, 0xa4, 0x26, 0xc9, 0x37,
|
|
0xef, 0xd7, 0x1f, 0x1a, 0xf6, 0xaf, 0x06, 0xda, 0xf9, 0x78, 0xf0, 0x35, 0x78, 0x92, 0xc0, 0x10,
|
|
0x04, 0x44, 0x1e, 0x98, 0x7d, 0x84, 0x68, 0xcc, 0x5e, 0x82, 0x48, 0x18, 0x8f, 0xb4, 0x67, 0x4d,
|
|
0x2d, 0x05, 0x1d, 0x7e, 0xf2, 0xa1, 0x8e, 0x90, 0x12, 0xca, 0xec, 0xa1, 0xad, 0x09, 0x8b, 0xfc,
|
|
0xbc, 0x80, 0xbb, 0xad, 0xd1, 0x5b, 0x4f, 0x59, 0xe4, 0x13, 0x15, 0x31, 0x1d, 0xd4, 0x8c, 0x68,
|
|
0x08, 0x49, 0x4c, 0x3d, 0x68, 0x37, 0x14, 0xec, 0x96, 0x86, 0x35, 0x8f, 0x8b, 0x00, 0x59, 0x61,
|
|
0x32, 0xca, 0x6c, 0xd3, 0xde, 0x5a, 0xa7, 0xcc, 0xb0, 0x44, 0x45, 0xec, 0xdf, 0x1a, 0xa8, 0xca,
|
|
0xc6, 0xe6, 0x10, 0x35, 0xa3, 0xe2, 0xbd, 0xb4, 0x93, 0xde, 0xfb, 0xd7, 0x0f, 0xee, 0xde, 0x54,
|
|
0x0a, 0x8b, 0x2d, 0x59, 0x51, 0x9b, 0x73, 0x03, 0xed, 0x14, 0x63, 0x41, 0xff, 0x76, 0xed, 0xaf,
|
|
0xcf, 0xfe, 0x87, 0xaf, 0x8a, 0xc9, 0x3a, 0x75, 0x6e, 0xb6, 0x2f, 0x75, 0x1f, 0x76, 0x36, 0xa2,
|
|
0x6f, 0x66, 0xdd, 0xee, 0xc5, 0x11, 0xb7, 0xe4, 0xf8, 0x88, 0x25, 0xf2, 0xfb, 0x3f, 0xfe, 0x11,
|
|
0xa2, 0x1a, 0xbb, 0x79, 0x9f, 0x8e, 0x40, 0xfb, 0x55, 0x3a, 0x2a, 0x4c, 0xf6, 0xb8, 0x6c, 0xb2,
|
|
0x56, 0x1f, 0x97, 0xcc, 0xbd, 0x9c, 0xa6, 0xea, 0xe2, 0x99, 0xdb, 0x8b, 0x32, 0xf8, 0xd3, 0x94,
|
|
0x46, 0x32, 0xfb, 0xb7, 0x25, 0x53, 0x5a, 0xe8, 0xee, 0x49, 0xc4, 0xc2, 0x38, 0x50, 0x8d, 0x00,
|
|
0xff, 0x49, 0xd1, 0xa9, 0xe7, 0x20, 0xa6, 0x20, 0xec, 0x5f, 0xea, 0x19, 0x20, 0xf1, 0xc6, 0xe0,
|
|
0xa7, 0xff, 0x75, 0xe4, 0x86, 0xe8, 0x46, 0xa1, 0x45, 0x0b, 0x7f, 0x74, 0xd5, 0xb7, 0xdb, 0xf8,
|
|
0x3f, 0xee, 0xae, 0x2e, 0x76, 0x63, 0xd9, 0xb8, 0x65, 0x09, 0x73, 0x84, 0x6e, 0xa7, 0x65, 0xe5,
|
|
0x2f, 0xc6, 0x02, 0x92, 0x31, 0x0f, 0x7c, 0xf5, 0x25, 0x1a, 0xae, 0xa3, 0x73, 0x6f, 0x9f, 0x54,
|
|
0xa2, 0xde, 0xcc, 0xba, 0x37, 0x25, 0x0b, 0x01, 0x3f, 0x4e, 0xf3, 0x11, 0x40, 0x2e, 0xa1, 0xb3,
|
|
0xbf, 0x45, 0xf7, 0x2e, 0x69, 0x91, 0x1e, 0xdb, 0x9f, 0xa3, 0x76, 0x48, 0x4f, 0x2b, 0x31, 0x7a,
|
|
0x86, 0xdf, 0xd3, 0x5a, 0xde, 0xaa, 0x26, 0xba, 0x34, 0xdd, 0x3d, 0x38, 0x9f, 0x5b, 0xb5, 0x57,
|
|
0x73, 0xab, 0xf6, 0x7a, 0x6e, 0xd5, 0xbe, 0x5b, 0x58, 0xc6, 0xf9, 0xc2, 0x32, 0x5e, 0x2d, 0x2c,
|
|
0xe3, 0xf5, 0xc2, 0x32, 0xfe, 0x5c, 0x58, 0xc6, 0x4f, 0x7f, 0x59, 0xb5, 0x2f, 0xea, 0xf1, 0xe0,
|
|
0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x34, 0x7f, 0xd7, 0x35, 0x08, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.ReplicaRequirements.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
i -= len(m.Cluster)
|
|
copy(dAtA[i:], m.Cluster)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Cluster)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NodeClaim) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NodeClaim) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NodeClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Tolerations) > 0 {
|
|
for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if len(m.NodeSelector) > 0 {
|
|
keysForNodeSelector := make([]string, 0, len(m.NodeSelector))
|
|
for k := range m.NodeSelector {
|
|
keysForNodeSelector = append(keysForNodeSelector, string(k))
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector)
|
|
for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- {
|
|
v := m.NodeSelector[string(keysForNodeSelector[iNdEx])]
|
|
baseI := i
|
|
i -= len(v)
|
|
copy(dAtA[i:], v)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
i -= len(keysForNodeSelector[iNdEx])
|
|
copy(dAtA[i:], keysForNodeSelector[iNdEx])
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if m.NodeAffinity != nil {
|
|
{
|
|
size, err := m.NodeAffinity.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ObjectReference) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ObjectReference) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
i -= len(m.Namespace)
|
|
copy(dAtA[i:], m.Namespace)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
i -= len(m.Kind)
|
|
copy(dAtA[i:], m.Kind)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
i -= len(m.APIVersion)
|
|
copy(dAtA[i:], m.APIVersion)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ReplicaRequirements) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ReplicaRequirements) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ReplicaRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.ResourceRequest) > 0 {
|
|
keysForResourceRequest := make([]string, 0, len(m.ResourceRequest))
|
|
for k := range m.ResourceRequest {
|
|
keysForResourceRequest = append(keysForResourceRequest, string(k))
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForResourceRequest)
|
|
for iNdEx := len(keysForResourceRequest) - 1; iNdEx >= 0; iNdEx-- {
|
|
v := m.ResourceRequest[k8s_io_api_core_v1.ResourceName(keysForResourceRequest[iNdEx])]
|
|
baseI := i
|
|
{
|
|
size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
i -= len(keysForResourceRequest[iNdEx])
|
|
copy(dAtA[i:], keysForResourceRequest[iNdEx])
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForResourceRequest[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if m.NodeClaim != nil {
|
|
{
|
|
size, err := m.NodeClaim.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *UnimplementedEstimatorServer) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *UnimplementedEstimatorServer) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *UnimplementedEstimatorServer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *UnschedulableReplicasRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *UnschedulableReplicasRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *UnschedulableReplicasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UnschedulableThreshold))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
{
|
|
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
i -= len(m.Cluster)
|
|
copy(dAtA[i:], m.Cluster)
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Cluster)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *UnschedulableReplicasResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *UnschedulableReplicasResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *UnschedulableReplicasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UnschedulableReplicas))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovGenerated(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Cluster)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
l = m.ReplicaRequirements.Size()
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *MaxAvailableReplicasResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovGenerated(uint64(m.MaxReplicas))
|
|
return n
|
|
}
|
|
|
|
func (m *NodeClaim) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.NodeAffinity != nil {
|
|
l = m.NodeAffinity.Size()
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
}
|
|
if len(m.NodeSelector) > 0 {
|
|
for k, v := range m.NodeSelector {
|
|
_ = k
|
|
_ = v
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
if len(m.Tolerations) > 0 {
|
|
for _, e := range m.Tolerations {
|
|
l = e.Size()
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ObjectReference) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.APIVersion)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
l = len(m.Kind)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
l = len(m.Namespace)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
l = len(m.Name)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *ReplicaRequirements) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.NodeClaim != nil {
|
|
l = m.NodeClaim.Size()
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
}
|
|
if len(m.ResourceRequest) > 0 {
|
|
for k, v := range m.ResourceRequest {
|
|
_ = k
|
|
_ = v
|
|
l = v.Size()
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *UnimplementedEstimatorServer) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *UnschedulableReplicasRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Cluster)
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
l = m.Resource.Size()
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
n += 1 + sovGenerated(uint64(m.UnschedulableThreshold))
|
|
return n
|
|
}
|
|
|
|
func (m *UnschedulableReplicasResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
n += 1 + sovGenerated(uint64(m.UnschedulableReplicas))
|
|
return n
|
|
}
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozGenerated(x uint64) (n int) {
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (this *MaxAvailableReplicasRequest) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&MaxAvailableReplicasRequest{`,
|
|
`Cluster:` + fmt.Sprintf("%v", this.Cluster) + `,`,
|
|
`ReplicaRequirements:` + strings.Replace(strings.Replace(this.ReplicaRequirements.String(), "ReplicaRequirements", "ReplicaRequirements", 1), `&`, ``, 1) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *MaxAvailableReplicasResponse) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&MaxAvailableReplicasResponse{`,
|
|
`MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *NodeClaim) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
repeatedStringForTolerations := "[]Toleration{"
|
|
for _, f := range this.Tolerations {
|
|
repeatedStringForTolerations += fmt.Sprintf("%v", f) + ","
|
|
}
|
|
repeatedStringForTolerations += "}"
|
|
keysForNodeSelector := make([]string, 0, len(this.NodeSelector))
|
|
for k := range this.NodeSelector {
|
|
keysForNodeSelector = append(keysForNodeSelector, k)
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector)
|
|
mapStringForNodeSelector := "map[string]string{"
|
|
for _, k := range keysForNodeSelector {
|
|
mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k])
|
|
}
|
|
mapStringForNodeSelector += "}"
|
|
s := strings.Join([]string{`&NodeClaim{`,
|
|
`NodeAffinity:` + strings.Replace(fmt.Sprintf("%v", this.NodeAffinity), "NodeSelector", "v1.NodeSelector", 1) + `,`,
|
|
`NodeSelector:` + mapStringForNodeSelector + `,`,
|
|
`Tolerations:` + repeatedStringForTolerations + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *ObjectReference) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&ObjectReference{`,
|
|
`APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
|
|
`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
|
|
`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *ReplicaRequirements) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
keysForResourceRequest := make([]string, 0, len(this.ResourceRequest))
|
|
for k := range this.ResourceRequest {
|
|
keysForResourceRequest = append(keysForResourceRequest, string(k))
|
|
}
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForResourceRequest)
|
|
mapStringForResourceRequest := "k8s_io_api_core_v1.ResourceList{"
|
|
for _, k := range keysForResourceRequest {
|
|
mapStringForResourceRequest += fmt.Sprintf("%v: %v,", k, this.ResourceRequest[k8s_io_api_core_v1.ResourceName(k)])
|
|
}
|
|
mapStringForResourceRequest += "}"
|
|
s := strings.Join([]string{`&ReplicaRequirements{`,
|
|
`NodeClaim:` + strings.Replace(this.NodeClaim.String(), "NodeClaim", "NodeClaim", 1) + `,`,
|
|
`ResourceRequest:` + mapStringForResourceRequest + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *UnimplementedEstimatorServer) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&UnimplementedEstimatorServer{`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *UnschedulableReplicasRequest) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&UnschedulableReplicasRequest{`,
|
|
`Cluster:` + fmt.Sprintf("%v", this.Cluster) + `,`,
|
|
`Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`,
|
|
`UnschedulableThreshold:` + fmt.Sprintf("%v", this.UnschedulableThreshold) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func (this *UnschedulableReplicasResponse) String() string {
|
|
if this == nil {
|
|
return "nil"
|
|
}
|
|
s := strings.Join([]string{`&UnschedulableReplicasResponse{`,
|
|
`UnschedulableReplicas:` + fmt.Sprintf("%v", this.UnschedulableReplicas) + `,`,
|
|
`}`,
|
|
}, "")
|
|
return s
|
|
}
|
|
func valueToStringGenerated(v interface{}) string {
|
|
rv := reflect.ValueOf(v)
|
|
if rv.IsNil() {
|
|
return "nil"
|
|
}
|
|
pv := reflect.Indirect(rv).Interface()
|
|
return fmt.Sprintf("*%v", pv)
|
|
}
|
|
func (m *MaxAvailableReplicasRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: MaxAvailableReplicasRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MaxAvailableReplicasRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cluster = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReplicaRequirements", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.ReplicaRequirements.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *MaxAvailableReplicasResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: MaxAvailableReplicasResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: MaxAvailableReplicasResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType)
|
|
}
|
|
m.MaxReplicas = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.MaxReplicas |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NodeClaim) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: NodeClaim: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NodeClaim: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.NodeAffinity == nil {
|
|
m.NodeAffinity = &v1.NodeSelector{}
|
|
}
|
|
if err := m.NodeAffinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.NodeSelector == nil {
|
|
m.NodeSelector = make(map[string]string)
|
|
}
|
|
var mapkey string
|
|
var mapvalue string
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var stringLenmapvalue uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapvalue |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapvalue := int(stringLenmapvalue)
|
|
if intStringLenmapvalue < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
if postStringIndexmapvalue < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postStringIndexmapvalue > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
iNdEx = postStringIndexmapvalue
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.NodeSelector[mapkey] = mapvalue
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Tolerations = append(m.Tolerations, v1.Toleration{})
|
|
if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ObjectReference) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ObjectReference: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.APIVersion = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Kind = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Namespace = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ReplicaRequirements) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ReplicaRequirements: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ReplicaRequirements: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NodeClaim", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.NodeClaim == nil {
|
|
m.NodeClaim = &NodeClaim{}
|
|
}
|
|
if err := m.NodeClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequest", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.ResourceRequest == nil {
|
|
m.ResourceRequest = make(k8s_io_api_core_v1.ResourceList)
|
|
}
|
|
var mapkey k8s_io_api_core_v1.ResourceName
|
|
mapvalue := &resource.Quantity{}
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postmsgIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &resource.Quantity{}
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > postIndex {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
m.ResourceRequest[k8s_io_api_core_v1.ResourceName(mapkey)] = *mapvalue
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *UnimplementedEstimatorServer) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: UnimplementedEstimatorServer: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: UnimplementedEstimatorServer: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *UnschedulableReplicasRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: UnschedulableReplicasRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: UnschedulableReplicasRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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 < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cluster = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UnschedulableThreshold", wireType)
|
|
}
|
|
m.UnschedulableThreshold = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.UnschedulableThreshold |= time.Duration(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *UnschedulableReplicasResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: UnschedulableReplicasResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: UnschedulableReplicasResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UnschedulableReplicas", wireType)
|
|
}
|
|
m.UnschedulableReplicas = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.UnschedulableReplicas |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthGenerated
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowGenerated
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthGenerated
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthGenerated
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
|
)
|